feat(core,cli): enforce mandatory MessageBus injection (Phase 3 Hard Migration) (#15776)

This commit is contained in:
Abhi
2026-01-04 17:11:43 -05:00
committed by GitHub
parent 90be9c3587
commit 12c7c9cc42
57 changed files with 442 additions and 278 deletions
+4 -4
View File
@@ -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> {