Release v1.1.9: Auto-install deps and flag convention - #29
Merged
Conversation
* feat: auto-install dependencies and launch Claude on lane creation This feature streamlines the `switchyard new` command to: - Auto-detect package manager from lockfile (bun → npm → yarn → pnpm) - Install dependencies after creating the lane worktree - Launch Claude Code with cwd set to the new worktree - Support pass-through flags via `--` separator Key changes: - Add deps-installer module with detection and installation logic - Add claude-launcher module with exec pattern for Claude launch - Update new command to integrate deps install and Claude launch - Add --no-claude flag to skip Claude launch - Write error logs to .switchyard/dependency-error.log on failure - 5-minute timeout for dependency installation - Remove /switchyard-new slash command (terminal-only now) Closes #27 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: simplify flag convention - single dash for switchyard, double dash for Claude Changes the CLI flag convention: - Single-dash flags (-flag) go to switchyard - Double-dash flags (--flag) auto-forward to Claude on `new` command This eliminates the need for the `--` separator when passing flags to Claude. Examples: switchyard new feature --model opus # --model opus goes to Claude switchyard init -force # -force is a switchyard flag switchyard new feature -no-claude --verbose # mixed flags work correctly Changes: - Updated parseGlobalOptions to use -v, -json, -f, -h, -V - Added parseClaudeFlags() function for extracting double-dash flags with values - Updated all command handlers to use single-dash flags - Updated Claude command templates with new flag convention - Updated README with "Flag Convention" section - Added comprehensive tests for parseClaudeFlags (10 new test cases) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Test <test@test.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.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
Changes
--separatorparseClaudeFlagsfunction for testable flag parsing🤖 Generated with Claude Code