Skip to content

refactor(setup): share the claude-plugin spawnSync plumbing - #123

Merged
rgao-coreweave merged 1 commit into
mainfrom
109-02-setup-spawn
Jul 17, 2026
Merged

refactor(setup): share the claude-plugin spawnSync plumbing#123
rgao-coreweave merged 1 commit into
mainfrom
109-02-setup-spawn

Conversation

@rgao-coreweave

@rgao-coreweave rgao-coreweave commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Dedupes the repeated claude plugin ... spawnSync blocks in setup.ts. No behavior change.

  • CLAUDE_SPAWN_OPTS: one shared options object (utf8, piped stdio).
  • combinedOutput + failIfError: one implementation of the stderr+stdout join and the non-zero-exit throw/log, keeping the "already registered/installed" carve-out.

Test plan: npm run check (84 tests)

🤖 Generated with Claude Code

rgao-coreweave commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@drtangible drtangible left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

CLAUDE_SPAWN_OPTS + combinedOutput + failIfError replace the spawnSync
options/error blocks repeated across the plugin registration calls.
No behavior change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@rgao-coreweave
rgao-coreweave changed the base branch from 109-01-weave-deps to graphite-base/123 July 17, 2026 20:18
@rgao-coreweave
rgao-coreweave changed the base branch from graphite-base/123 to main July 17, 2026 20:18

rgao-coreweave commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Jul 17, 8:28 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 17, 8:28 PM UTC: @rgao-coreweave merged this pull request with Graphite.

@rgao-coreweave
rgao-coreweave merged commit cc6dbff into main Jul 17, 2026
6 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants