mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 21:32:56 -07:00
feat(core,cli): enforce mandatory MessageBus injection (Phase 3 Hard Migration) (#15776)
This commit is contained in:
@@ -101,7 +101,7 @@ class WriteTodosToolInvocation extends BaseToolInvocation<
|
||||
> {
|
||||
constructor(
|
||||
params: WriteTodosToolParams,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
_toolName?: string,
|
||||
_toolDisplayName?: string,
|
||||
) {
|
||||
@@ -145,7 +145,7 @@ export class WriteTodosTool extends BaseDeclarativeTool<
|
||||
> {
|
||||
static readonly Name = WRITE_TODOS_TOOL_NAME;
|
||||
|
||||
constructor(messageBus?: MessageBus) {
|
||||
constructor(messageBus: MessageBus) {
|
||||
super(
|
||||
WriteTodosTool.Name,
|
||||
'WriteTodos',
|
||||
@@ -180,9 +180,9 @@ export class WriteTodosTool extends BaseDeclarativeTool<
|
||||
required: ['todos'],
|
||||
additionalProperties: false,
|
||||
},
|
||||
messageBus,
|
||||
true, // isOutputMarkdown
|
||||
false, // canUpdateOutput
|
||||
messageBus,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -251,13 +251,13 @@ export class WriteTodosTool extends BaseDeclarativeTool<
|
||||
|
||||
protected createInvocation(
|
||||
params: WriteTodosToolParams,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
_toolName?: string,
|
||||
_displayName?: string,
|
||||
): ToolInvocation<WriteTodosToolParams, ToolResult> {
|
||||
return new WriteTodosToolInvocation(
|
||||
params,
|
||||
messageBus ?? this.messageBus,
|
||||
messageBus,
|
||||
_toolName,
|
||||
_displayName,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user