|
|
@@ -67,7 +67,11 @@ export namespace ToolRegistry {
|
|
|
parameters: z.object(def.args),
|
|
|
description: def.description,
|
|
|
execute: async (args, ctx) => {
|
|
|
- const pluginCtx = { ...ctx, directory: Instance.directory } as unknown as PluginToolContext
|
|
|
+ const pluginCtx = {
|
|
|
+ ...ctx,
|
|
|
+ directory: Instance.directory,
|
|
|
+ worktree: Instance.worktree,
|
|
|
+ } as unknown as PluginToolContext
|
|
|
const result = await def.execute(args as any, pluginCtx)
|
|
|
const out = await Truncate.output(result, {}, initCtx?.agent)
|
|
|
return {
|