Skip to content

fix(toolcraft): bundle process-runner and ship transitive npm deps#283

Merged
kamilio merged 1 commit intomainfrom
fix/toolcraft-bundle-process-runner
May 5, 2026
Merged

fix(toolcraft): bundle process-runner and ship transitive npm deps#283
kamilio merged 1 commit intomainfrom
fix/toolcraft-bundle-process-runner

Conversation

@kamilio
Copy link
Copy Markdown
Collaborator

@kamilio kamilio commented May 5, 2026

Summary

  • Resolves toolcraft@0.0.12: bundled @poe-code/task-list imports unbundled @poe-code/process-runner — runCLI fails at module load #282: toolcraft@0.0.12 crashed at module load because bundled @poe-code/task-list imported the private @poe-code/process-runner workspace package, which was neither in toolcraft's bundle nor on the public registry.
  • Extending the standalone smoke to import every toolcraft entry point also surfaced missing transitive deps (jose, jsonc-parser, mustache, smol-toml) of bundled mcp-oauth / @poe-code/config-mutations — npm does not auto-install transitive deps for bundled packages.
  • The toolcraft release workflow now runs smoke:toolcraft-standalone before publishing so this kind of regression cannot ship.

Test plan

  • npm run smoke:toolcraft-standalone — passes (failed before the fix on process-runner, then on jose)
  • npm run test --workspace=toolcraft — 266 tests pass
  • npm run lint --workspace=toolcraft — clean
  • npm run lint:workflows — clean

🤖 Generated with Claude Code

toolcraft@0.0.12 crashed at module load because bundled @poe-code/task-list
imported the private @poe-code/process-runner workspace package, which was
neither in toolcraft's bundle nor on the public registry. Extending the cli
smoke to import every entry point also surfaced jose, jsonc-parser, mustache,
and smol-toml — transitive deps of bundled mcp-oauth and config-mutations
that npm does not auto-install for bundled packages.

- bundle @poe-code/process-runner alongside the other private workspace deps
- declare jose, jsonc-parser, mustache, smol-toml as runtime deps so npm
  resolves them when consumers install toolcraft
- exercise toolcraft/cli, /mcp, /mcp-proxy, /sdk in the standalone smoke
- run smoke:toolcraft-standalone in the toolcraft release workflow before
  publishing so this regression cannot ship again

Closes #282
@kamilio kamilio merged commit c320079 into main May 5, 2026
3 of 4 checks passed
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.

toolcraft@0.0.12: bundled @poe-code/task-list imports unbundled @poe-code/process-runner — runCLI fails at module load

1 participant