mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 05:55:17 -07:00
feat(core,cli): enforce mandatory MessageBus injection (Phase 3 Hard Migration) (#15776)
This commit is contained in:
@@ -38,7 +38,7 @@ class ActivateSkillToolInvocation extends BaseToolInvocation<
|
||||
constructor(
|
||||
private config: Config,
|
||||
params: ActivateSkillToolParams,
|
||||
messageBus: MessageBus | undefined,
|
||||
messageBus: MessageBus,
|
||||
_toolName?: string,
|
||||
_toolDisplayName?: string,
|
||||
) {
|
||||
@@ -145,7 +145,7 @@ export class ActivateSkillTool extends BaseDeclarativeTool<
|
||||
|
||||
constructor(
|
||||
private config: Config,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
) {
|
||||
const skills = config.getSkillManager().getSkills();
|
||||
const skillNames = skills.map((s) => s.name);
|
||||
@@ -169,15 +169,15 @@ export class ActivateSkillTool extends BaseDeclarativeTool<
|
||||
"Activates a specialized agent skill by name. Returns the skill's instructions wrapped in `<ACTIVATED_SKILL>` tags. These provide specialized guidance for the current task. Use this when you identify a task that matches a skill's description.",
|
||||
Kind.Other,
|
||||
zodToJsonSchema(schema),
|
||||
messageBus,
|
||||
true,
|
||||
false,
|
||||
messageBus,
|
||||
);
|
||||
}
|
||||
|
||||
protected createInvocation(
|
||||
params: ActivateSkillToolParams,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
_toolName?: string,
|
||||
_toolDisplayName?: string,
|
||||
): ToolInvocation<ActivateSkillToolParams, ToolResult> {
|
||||
|
||||
Reference in New Issue
Block a user