fix: wire up squad link and squad init --mode remote in CLI entry point#230
Merged
bradygaster merged 1 commit intobradygaster:devfrom Mar 7, 2026
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Both
squad linkandsquad init --mode remotehad full implementations and tests but were never routed incli-entry.ts, causing them to fall through to the "Unknown command" error.Closes #222
Changes
packages/squad-cli/src/cli-entry.ts:squad link <team-repo-path>— Added routing that importsrunLinkfromcommands/link.tsand calls it with the provided path. Shows usage error if no path is given.squad init --mode remote <team-repo-path>— Added--modeflag parsing in theinithandler. When--mode remoteis specified, importswriteRemoteConfigfromcommands/init-remote.tsto write.squad/config.jsonbefore running normal init scaffolding. Shows usage error if no team path is given.Help text — Added both commands to the
squad helpoutput.Testing
test/cli/remote-mode.test.tstests passtest/cli.test.tstests passsquad linkandsquad init --mode remotenow work as documented