Skip to content

feat(tools): restore squad-cli as a default-installed tool#489

Merged
primetimetank21 merged 1 commit into
developfrom
feat/487-restore-squad-cli
Jun 19, 2026
Merged

feat(tools): restore squad-cli as a default-installed tool#489
primetimetank21 merged 1 commit into
developfrom
feat/487-restore-squad-cli

Conversation

@primetimetank21

Copy link
Copy Markdown
Owner

Summary

Restores @bradygaster/squad-cli as a default-installed tool (#487), reversing the over-scrub from PR #475.

squad-cli is a dev tool (engine behind gosquad='copilot --agent squad --yolo'), not squad coordination infrastructure. Same class of over-scrub as the gosquad removal reversed in PR #478.

Closes #487


What Changed

Installers (new)

  • scripts/linux/tools/squad-cli.sh -- version-aware, sources nvm, timeout 10 on version detect, --no-fund --no-audit, soft-fail if npm absent
  • scripts/windows/tools/squad-cli.ps1 -- version-aware, soft-fail (Write-Warn + return) if npm absent, ASCII-only (PS 5.1 safe)

Version pin

  • .tool-versions: squad-cli 0.10.0 (npm latest stable)

Orchestrator wiring

  • scripts/linux/setup.sh: run_tool "squad-cli" added immediately after run_tool "copilot-cli"
  • scripts/windows/setup.ps1: dot-source + Install-SquadCli call added immediately after Install-CopilotCli in Main()

Tests

  • tests/test_nvm_bootstrap.sh: T7-T9 (nvm sourcing, version pin, idempotency check)
  • tests/test_windows_setup.ps1: Group HH (HH-1 through HH-4)
  • .github/workflows/e2e-install.yml: squad --version assertion in linux/macos/windows jobs

Docs

  • README.md: squad-cli row in tools table, entry in repo structure diagram, Windows tools count 9->10

Key Decisions (locked)

  • Install by default: yes
  • Version: 0.10.0
  • PS soft-fail: Write-Warn + return if npm absent
  • Insertion point: after copilot-cli on both platforms
  • Out of scope: no embedded .squad/ tree, no squad workflows

Local Verification

  • Group HH tests pass (4/4); all other PS tests pass except pre-existing Copilot live-detection skip
  • squad-cli.ps1 parses clean (AST), ASCII-only verified
  • squad-cli.sh passes shellcheck (pre-commit hook)
  • Changeset: exactly 9 files (2 new + 7 edits)

Not locally exercisable (no npm/nvm/node in CI env): actual npm install, squad --version live output, e2e assertions. Kix to verify in CI.

Restores @bradygaster/squad-cli as a default-installed tool, reversing
the over-scrub from PR #475. squad-cli is a dev tool (engine behind
gosquad='copilot --agent squad --yolo'), not squad coordination
infrastructure.

Changes:
- Add scripts/linux/tools/squad-cli.sh (version-aware, nvm-sourcing,
  --no-fund --no-audit, timeout 10 on version detect, soft-fail on
  absent npm, no cast-name header)
- Add scripts/windows/tools/squad-cli.ps1 (version-aware, soft-fail
  Write-Warn+return on absent npm, ASCII-only, no cast-name header)
- Pin squad-cli 0.10.0 in .tool-versions
- Wire run_tool squad-cli after run_tool copilot-cli in setup.sh
- Dot-source squad-cli.ps1 and call Install-SquadCli after
  Install-CopilotCli in setup.ps1 Main()
- Add T7-T9 tests in test_nvm_bootstrap.sh (nvm sourcing, version pin,
  idempotency check)
- Add Group HH tests in test_windows_setup.ps1 (Install-SquadCli
  function, Get-ToolVersion usage, ordering in Main, soft-fail guard)
- Add squad --version assertions in e2e-install.yml (linux/macos/windows)
- Add squad-cli row to README tools table and repo structure diagram;
  update Windows tools file count to 10

Install default: yes. Version pinned: 0.10.0.
PS installer: soft-fail (Write-Warn + return) if npm absent.
Insertion point: immediately after copilot-cli on both platforms.
Out of scope: no embedded .squad/ tree, no squad workflows.

Closes #487

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@primetimetank21 primetimetank21 marked this pull request as ready for review June 19, 2026 09:27
@primetimetank21 primetimetank21 merged commit 365045d into develop Jun 19, 2026
10 checks passed
@primetimetank21 primetimetank21 deleted the feat/487-restore-squad-cli branch June 19, 2026 09:27
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.

Restore squad-cli as a default-installed tool (reverse part of #475)

1 participant