Skip to content

feat: CLI dual-path support for .squad/ migration (#101)#111

Merged
bradygaster merged 3 commits intodevfrom
squad/101-cli-dual-path-squad-migration
Feb 20, 2026
Merged

feat: CLI dual-path support for .squad/ migration (#101)#111
bradygaster merged 3 commits intodevfrom
squad/101-cli-dual-path-squad-migration

Conversation

@bradygaster
Copy link
Copy Markdown
Owner

Summary

Implements dual-path support in index.js for the .squad/ directory migration in v0.5.0.

Changes

  • detectSquadDir() helper function checks .squad/ first, falls back to .ai-team/
  • Deprecation warning displayed when .ai-team/ is detected (except on new installs)
  • squad upgrade --migrate-directory command:
    • Renames .ai-team/ → .squad/
    • Updates .gitattributes and .gitignore
    • Shows commit instructions
  • squad init creates .squad/ for new projects
  • Updated help text to document --migrate-directory flag
  • All 53 tests pass

Testing

  • Manual test: squad init creates .squad/ (not .ai-team/)
  • Manual test: squad upgrade with existing .ai-team/ shows deprecation warning
  • Manual test: squad upgrade --migrate-directory successfully migrates
  • Manual test: migration updates .gitattributes and .gitignore
  • All automated tests pass (53/53)

Implementation Notes

  • Backward compatible: existing .ai-team/ repos work without changes
  • Migration is opt-in via --migrate-directory flag
  • Directory detection happens once per run, cached in squadInfo
  • Windows path compatibility maintained throughout

Resolves #101

bradygaster and others added 3 commits February 19, 2026 22:57
Session: 2026-02-20-v050-status-and-error-diagnosis
Requested by: bradygaster

Changes:
- Logged v0.5.0 readiness assessment (scope, risks, timeline)
- Logged network/model error diagnosis (Kujan investigation)
- Merged 3 inbox decisions to decisions.md (Keaton, McManus, Verbal)
- Deleted merged inbox files (3 items)
- Archive entries older than 2026-02-21 to decisions-archive.md
- Reduce decisions.md from 342.01 KB (6277 lines) to 37.48 KB (675 lines)
- Keep only 2 most recent days of decision entries in main file
- Fixes context overflow errors causing network interrupted + model unavailable
- Related to: CI/CD stability, agent reliability

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Implements dual-path directory detection for .squad/ migration in v0.5.0:
- Check .squad/ first, fall back to .ai-team/ for backward compatibility
- Show deprecation warning when .ai-team/ is detected
- squad upgrade --migrate-directory command renames directory and updates config
- squad init creates .squad/ for new projects
- All tests pass

Closes #101

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster merged commit 09fa450 into dev Feb 20, 2026
1 check passed
@bradygaster bradygaster deleted the squad/101-cli-dual-path-squad-migration branch February 27, 2026 01:08
williamhallatt added a commit to williamhallatt/squad that referenced this pull request Mar 4, 2026
squad.agent.md references .squad/templates/ throughout, but index.js
was installing template files to .squad-templates/ at the repo root.
This mismatch meant the coordinator prompt could never find its
templates on a fresh install.

Root cause: PR bradygaster#113 migrated all path references in squad.agent.md to
.squad/templates/ but PR bradygaster#111's code change (which renamed the dir to
.squad-templates/) was never reconciled with it. Both landed in v0.5.0.

Fix:
- Change install destination from .squad-templates to .squad/templates
- Update migrate-directory rename to match the new path
- Update help text and replace-regex to reference .squad/templates
- Add a v0.5.5 migration entry that moves .squad-templates/ to
  .squad/templates/ for existing users upgrading from v0.5.4 or earlier

Bumps version to 0.5.5 so the migration runs on upgrade.
diberry added a commit that referenced this pull request Mar 29, 2026
Closes #103

Adds samples-build CI job that validates all 11 samples compile when SDK changes.
- Loops samples/ directories with npm install/build/test
- Feature-flagged via skip-samples-build label
- 15-minute timeout, --ignore-scripts, npm cache
- Accepted Copilot suggestions: cache-dependency-path, workspace root install

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant