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
+10 -2
View File
@@ -788,7 +788,11 @@ describe('Plan Mode Denial Consistency', () => {
if (enableEventDrivenScheduler) {
const scheduler = new Scheduler({
context: mockConfig,
context: {
config: mockConfig,
messageBus: mockMessageBus,
toolRegistry: mockToolRegistry,
} as unknown as AgentLoopContext,
getPreferredEditor: () => undefined,
schedulerId: ROOT_SCHEDULER_ID,
});
@@ -804,7 +808,11 @@ describe('Plan Mode Denial Consistency', () => {
} else {
let capturedCalls: CompletedToolCall[] = [];
const scheduler = new CoreToolScheduler({
config: mockConfig,
context: {
config: mockConfig,
messageBus: mockMessageBus,
toolRegistry: mockToolRegistry,
} as unknown as AgentLoopContext,
getPreferredEditor: () => undefined,
onAllToolCallsComplete: async (calls) => {
capturedCalls = calls;