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

This commit is contained in:
Kit Langton 2026-06-30 23:30:56 -04:00 committed by GitHub
commit 1ce607c230
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 230 additions and 221 deletions

View file

@ -16,7 +16,6 @@ import { ProviderV2 } from "../provider"
import { Reference } from "../reference"
import { AbsolutePath, type DeepMutable } from "../schema"
import { SkillV2 } from "../skill"
import { Tool } from "../tool/tool"
import { Tools } from "../tool/tools"
import { WorkspaceV2 } from "../workspace"
@ -247,7 +246,7 @@ export const make = Effect.fn("PluginHost.make")(function* (plugin: PluginV2.Int
),
},
tool: {
register: (input) => tools.register(input as Readonly<Record<string, Tool.AnyTool>>),
register: (input) => tools.register(input),
},
session: {
create: (input) =>