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 -3
View File
@@ -7,8 +7,8 @@
import type { AgentDefinition } from './types.js';
import { GEMINI_MODEL_ALIAS_FLASH } from '../config/models.js';
import { z } from 'zod';
import type { Config } from '../config/config.js';
import { GetInternalDocsTool } from '../tools/get-internal-docs.js';
import type { AgentLoopContext } from '../config/agent-loop-context.js';
const CliHelpReportSchema = z.object({
answer: z
@@ -24,7 +24,7 @@ const CliHelpReportSchema = z.object({
* using its own documentation and runtime state.
*/
export const CliHelpAgent = (
config: Config,
context: AgentLoopContext,
): AgentDefinition<typeof CliHelpReportSchema> => ({
name: 'cli_help',
kind: 'local',
@@ -69,7 +69,7 @@ export const CliHelpAgent = (
},
toolConfig: {
tools: [new GetInternalDocsTool(config.getMessageBus())],
tools: [new GetInternalDocsTool(context.messageBus)],
},
promptConfig: {