refactor(core): replace positional execute params with ExecuteOptions bag

Collapse shellExecutionConfig and setExecutionIdCallback into a single
optional ExecuteOptions object on ToolInvocation.execute(). This avoids
forcing every tool implementation to accept shell-specific parameters
just to reach later positional args.
This commit is contained in:
Adam Weidman
2026-03-12 16:09:57 -04:00
parent 1d86b6504b
commit 6510587725
9 changed files with 41 additions and 48 deletions
+3 -1
View File
@@ -104,7 +104,9 @@ export class AddMemoryCommand implements Command {
await context.sendMessage(`Saving memory via ${result.toolName}...`);
await tool.buildAndExecute(result.toolArgs, signal, undefined, {
sanitizationConfig: DEFAULT_SANITIZATION_CONFIG,
shellExecutionConfig: {
sanitizationConfig: DEFAULT_SANITIZATION_CONFIG,
},
});
await refreshMemory(context.config);
return {