refactor(plugin): move tool implementation to plugin (#34665)
This commit is contained in:
parent
c26f6f95f7
commit
1ce607c230
9 changed files with 230 additions and 221 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue