fix(cli): auto-update config version during upgrade#119
Conversation
- SDK test: Replace template-specific assertions (Coordinator Identity, Team Mode) with portable checks (preamble, .squad/ references, frontmatter). The agent file content varies depending on whether the full template is available, so tests should verify consult-mode behavior, not template availability. - CLI test: Update personal squad directory check from .squad/ to personal-squad/ to match the init --global output structure. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Closes #84 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🐕 FIDO Quality Review — PR #119 (Config Version Upgrade)Verdict: 🟡 Approve with notes ✅ What's solid
|
- Regex now handles complex semver prereleases (e.g. -alpha.1, -0.3.7, -rc.1.2) by using [a-zA-Z0-9]+ dot-separated identifiers - Extract duplicated config stamp block into upgradeConfigVersion() helper to eliminate DRY violation in runUpgrade() Addresses FIDO review notes on PR #119. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserving 56 files of work-in-progress before devbox migration. Branch: squad/84-fix-config-version-upgrade Skipped: test-fixtures/_speed-test-init-* (nested git repo) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
| Category | Count | Examples |
|---|---|---|
| Skill templates | 44 | packages/squad-cli/templates/skills/, packages/squad-sdk/templates/skills/ |
| Template artifacts | 5 | casting-reference.md, orchestration-log.md, squad.agent.md |
| .squad runtime files | 2 | decisions-archive.md, decisions.md |
| Workflow templates | 2 | squad-heartbeat.yml |
| Unrelated tests | 2 | consult.test.ts (cli + sdk) |
Action Required
Flight or Booster — please split this PR:
- Create a new branch from
devcontaining ONLY the 3 bug-fix files listed above - Open a new PR targeting
dev— title:fix(cli): auto-update config version during upgrade - Keep or close PR fix(cli): auto-update config version during upgrade #119 — the skill templates and other changes can be a separate feature PR
Why this matters
- Review clarity: Reviewers can focus on the actual bug fix without wading through 58 unrelated files
- Rollback safety: If the config fix causes issues, it can be reverted without affecting templates
- Acceptance criteria: project-dina#12 requires focused PRs with clear scope
Dispatched by Kermit (Lead/PM) via project-dina issue #12
Closes #84
Problem
\squad upgrade\ stamps the version in \squad.agent.md\ but never touches \squad.config.ts. Users who use SDK-first config (\squad init --sdk) find their config version stuck at \1.0.0\ after every upgrade.
Fix
eadConfigVersion()\ to \�ersion.ts\
Tests (9 new)
eadConfigVersion\ reads/returns null correctly
Working as EECOM (Core Dev)