feat(core): subagent local execution and tool isolation (#22718)

This commit is contained in:
AK
2026-03-17 19:34:44 -07:00
committed by GitHub
parent bd34a42ec3
commit 7bfe6ac418
7 changed files with 222 additions and 56 deletions
@@ -7,6 +7,8 @@
import type { GeminiClient } from '../core/client.js';
import type { MessageBus } from '../confirmation-bus/message-bus.js';
import type { ToolRegistry } from '../tools/tool-registry.js';
import type { PromptRegistry } from '../prompts/prompt-registry.js';
import type { ResourceRegistry } from '../resources/resource-registry.js';
import type { SandboxManager } from '../services/sandboxManager.js';
import type { Config } from './config.js';
@@ -24,6 +26,12 @@ export interface AgentLoopContext {
/** The registry of tools available to the agent in this context. */
readonly toolRegistry: ToolRegistry;
/** The registry of prompts available to the agent in this context. */
readonly promptRegistry: PromptRegistry;
/** The registry of resources available to the agent in this context. */
readonly resourceRegistry: ResourceRegistry;
/** The bus for user confirmations and messages in this context. */
readonly messageBus: MessageBus;