mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 14:04:41 -07:00
feat(core): Fully migrate packages/core to AgentLoopContext. (#22115)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user