Skip to content

feat(init): Configure placeholder tokens during onboarding - #25

Merged
admarble merged 1 commit into
mainfrom
feature/18-configure-placeholder-tokens-during-onboarding
Jan 8, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/18-configure-placeholder-tokens-during-onboarding

Conversation

@admarble

@admarble admarble commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add dev server URL prompt during sequant init with smart stack-based defaults
  • Store token values in .claude/.sequant/config.json for persistence
  • Preserve tokens during sequant update for seamless upgrades
  • Replace {{DEV_URL}} placeholder in skill templates

Acceptance Criteria

  • AC-1: sequant init prompts for dev server URL with smart stack defaults
  • AC-2: Tokens replaced in skill templates during initialization
  • AC-3: Token values stored in .claude/.sequant/config.json
  • AC-4: sequant update preserves user-configured token values

Changes

File Description
src/lib/config.ts New config module with getConfig(), saveConfig()
src/lib/stacks.ts Added devUrl defaults per stack
src/commands/init.ts Dev URL prompt, config saving, tokens to templates
src/lib/templates.ts Accept tokens parameter, export processTemplate()
src/commands/update.ts Config loading, legacy migration, token processing
src/index.ts Export new config functions
src/commands/init.test.ts Updated mocks

Test plan

  • npm run build passes
  • npm test - 144 tests pass
  • Manual test: sequant init in fresh project prompts for URL
  • Manual test: sequant update preserves configured URL

Fixes #18


Generated with Claude Code

- Add config module for storing user-configured tokens
- Add devUrl field to stack configurations with smart defaults
- Prompt for dev URL during `sequant init` (auto-accept with --yes)
- Save config to .claude/.sequant/config.json
- Replace {{DEV_URL}} token in templates during init
- Preserve tokens during `sequant update`
- Migrate legacy installs by prompting for tokens on first update

Smart defaults by stack:
- Next.js: http://localhost:3000
- Astro: http://localhost:4321
- Python: http://localhost:5000
- Go/Rust: http://localhost:8080

Closes #18

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 81fc832 into main Jan 8, 2026
@admarble
admarble deleted the feature/18-configure-placeholder-tokens-during-onboarding branch January 8, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure placeholder tokens during onboarding

1 participant