mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-06 08:07:42 -07:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user