feat(core): Fully migrate packages/core to AgentLoopContext. (#22115)

This commit is contained in:
joshualitt
2026-03-12 18:56:31 -07:00
committed by GitHub
parent 1d2585dba6
commit de656f01d7
53 changed files with 522 additions and 292 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
*/
import {
type AgentLoopContext,
ShellExecutionService,
ShellTool,
type Config as CoreConfig,
@@ -26,7 +27,8 @@ export class SdkAgentShell implements AgentShell {
const abortController = new AbortController();
// Use ShellTool to check policy
const shellTool = new ShellTool(this.config, this.config.getMessageBus());
const loopContext: AgentLoopContext = this.config;
const shellTool = new ShellTool(this.config, loopContext.messageBus);
try {
const invocation = shellTool.build({
command,