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
+5 -5
View File
@@ -82,7 +82,7 @@ class GetInternalDocsInvocation extends BaseToolInvocation<
> {
constructor(
params: GetInternalDocsParams,
messageBus?: MessageBus,
messageBus: MessageBus,
_toolName?: string,
_toolDisplayName?: string,
) {
@@ -161,7 +161,7 @@ export class GetInternalDocsTool extends BaseDeclarativeTool<
> {
static readonly Name = GET_INTERNAL_DOCS_TOOL_NAME;
constructor(messageBus?: MessageBus) {
constructor(messageBus: MessageBus) {
super(
GetInternalDocsTool.Name,
'GetInternalDocs',
@@ -177,21 +177,21 @@ export class GetInternalDocsTool extends BaseDeclarativeTool<
},
},
},
messageBus,
/* isOutputMarkdown */ true,
/* canUpdateOutput */ false,
messageBus,
);
}
protected createInvocation(
params: GetInternalDocsParams,
messageBus?: MessageBus,
messageBus: MessageBus,
_toolName?: string,
_toolDisplayName?: string,
): ToolInvocation<GetInternalDocsParams, ToolResult> {
return new GetInternalDocsInvocation(
params,
messageBus ?? this.messageBus,
messageBus,
_toolName ?? GetInternalDocsTool.Name,
_toolDisplayName,
);