Skip to content

fix: wire up squad link and squad init --mode remote in CLI entry point#230

Merged
bradygaster merged 1 commit intobradygaster:devfrom
EmmittJ:squad/222-wire-link-and-init-remote
Mar 7, 2026
Merged

fix: wire up squad link and squad init --mode remote in CLI entry point#230
bradygaster merged 1 commit intobradygaster:devfrom
EmmittJ:squad/222-wire-link-and-init-remote

Conversation

@EmmittJ
Copy link
Copy Markdown
Contributor

@EmmittJ EmmittJ commented Mar 6, 2026

Summary

Both squad link and squad init --mode remote had full implementations and tests but were never routed in cli-entry.ts, causing them to fall through to the "Unknown command" error.

Closes #222

Changes

packages/squad-cli/src/cli-entry.ts:

  1. squad link <team-repo-path> — Added routing that imports runLink from commands/link.ts and calls it with the provided path. Shows usage error if no path is given.

  2. squad init --mode remote <team-repo-path> — Added --mode flag parsing in the init handler. When --mode remote is specified, imports writeRemoteConfig from commands/init-remote.ts to write .squad/config.json before running normal init scaffolding. Shows usage error if no team path is given.

  3. Help text — Added both commands to the squad help output.

Testing

  • All 9 test/cli/remote-mode.test.ts tests pass
  • All 43 test/cli.test.ts tests pass
  • Manual verification: squad link and squad init --mode remote now work as documented

Both commands had full implementations and tests but were never
routed in cli-entry.ts:

- squad link <path>: imports runLink from commands/link.ts
- squad init --mode remote <path>: imports writeRemoteConfig from
  commands/init-remote.ts, writes config before running normal init

Also adds both commands to the help text.

Closes bradygaster#222
@bradygaster bradygaster merged commit 6d0bd56 into bradygaster:dev Mar 7, 2026
@EmmittJ EmmittJ deleted the squad/222-wire-link-and-init-remote branch March 7, 2026 01:12
bradygaster added a commit that referenced this pull request Mar 7, 2026
Session: 2026-03-07T01-13-00Z-phase2-complete
Requested by: Brady

Changes:
- Merged 3 inbox decisions (Kobayashi PR merges, Keaton community PRs, Fenster template fix)
- Logged orchestration results for all 3 agents (Kobayashi, Keaton, Hockney)
- Logged Phase 2 session completion
- Appended Phase 2 results to agent history files (cross-agent updates)
- Deduplicated: No duplicate decisions found; all 3 inbox items were new.

Merges completed:
- PR #232: Scribe runtime state fix (86598f4)
- PR #212: Version stamp preservation (0fedcce)
- PR #230: CLI wire-up squad link + squad init --mode remote (6d0bd56)
- PR #217: TUI /init no-args flow fix (20970f9)
- PR #219: Fork contribution workflow docs (157b8c0)

Test results: 130/134 test files passing. 12 pre-existing failures in consult, REPL, status, acceptance modes. Core CLI solid.
jongio pushed a commit to jongio/squad that referenced this pull request Mar 9, 2026
Verifies main barrel, parsers barrel, types barrel (zero runtime),
CLI function exports, side-effect-free import, and VERSION export.

Closes bradygaster#230

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.

2 participants