Skip to content

refactor(plugin): move tool implementation to plugin#34665

Merged
kitlangton merged 1 commit into
v2from
tool-package-boundary
Jul 1, 2026
Merged

refactor(plugin): move tool implementation to plugin#34665
kitlangton merged 1 commit into
v2from
tool-package-boundary

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • move the canonical V2 Tool implementation into packages/plugin
  • keep Core compatibility by re-exporting the plugin-owned Tool from @opencode-ai/core/tool/tool
  • narrow ctx.tool.register to Tool.AnyTool and remove the PluginHost cast
  • point sdk-next Tool exports at @opencode-ai/plugin

Verification

  • bun typecheck in packages/plugin
  • bun typecheck in packages/core
  • bun typecheck in packages/server
  • bun typecheck in packages/sdk-next
  • bun run test -- test/session-runner-tool-registry.test.ts test/plugin.test.ts test/tool-shell.test.ts test/tool-subagent.test.ts test/location-layer.test.ts in packages/core
  • bun run test -- embedded.test.ts in packages/sdk-next
  • pre-push bun turbo typecheck

@kitlangton kitlangton merged commit 1ce607c into v2 Jul 1, 2026
8 checks passed
@kitlangton kitlangton deleted the tool-package-boundary branch July 1, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant