refactor(server): share worktree create/list commands#892
Closed
boudra wants to merge 2 commits into
Closed
Conversation
Collaborator
Author
|
Closing in favor of the single integration PR #893, which contains the full Session/MCP command-boundary stack and is being held until after the stable release. |
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
packages/server/src/server/worktree/commands.ts.worktree-session.ts.list_worktrees/create_worktreethrough the same command surface while keeping MCP target parsing and structuredContent shaping inmcp-server.ts.Risk / coverage notes
packages/server/src/server/worktree-session.test.ts(handlePaseoWorktreeListRequest > lists worktrees through the workspace git service). This caught and fixed an exact call-shape drift during the refactor.packages/server/src/server/worktree-session.test.tscreate/workflow tests.packages/server/src/server/agent/mcp-server.test.ts.packages/server/src/server/paseo-worktree-service.test.ts; this PR does not move that service behavior.packages/server/src/server/agent/mcp-parity.e2e.test.ts, not rerun locally per targeted-test rule.Verification
npx vitest run packages/server/src/server/worktree-session.test.ts --bail=1(pre-refactor: green; post-refactor: one call-shape drift found, fixed; rerun green)npx vitest run packages/server/src/server/agent/mcp-server.test.ts --bail=1(pre-refactor green; post-refactor green)npm run formatnpm run typechecknpm run lintUnslop check
listWorktrees,runSetup: false, paseoHome forwarding, and worktree error conversion reappear in both Session and MCP.