mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
feat(core,cli): enforce mandatory MessageBus injection (Phase 3 Hard Migration) (#15776)
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
SessionStartSource,
|
||||
type HookExecutionResult,
|
||||
} from './types.js';
|
||||
import { createMockMessageBus } from '../test-utils/mock-message-bus.js';
|
||||
|
||||
// Mock debugLogger
|
||||
const mockDebugLogger = vi.hoisted(() => ({
|
||||
@@ -92,6 +93,7 @@ describe('HookEventHandler', () => {
|
||||
mockHookPlanner,
|
||||
mockHookRunner,
|
||||
mockHookAggregator,
|
||||
createMockMessageBus(),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -280,7 +280,7 @@ export class HookEventHandler {
|
||||
private readonly hookPlanner: HookPlanner;
|
||||
private readonly hookRunner: HookRunner;
|
||||
private readonly hookAggregator: HookAggregator;
|
||||
private readonly messageBus?: MessageBus;
|
||||
private readonly messageBus: MessageBus;
|
||||
|
||||
constructor(
|
||||
config: Config,
|
||||
@@ -288,7 +288,7 @@ export class HookEventHandler {
|
||||
hookPlanner: HookPlanner,
|
||||
hookRunner: HookRunner,
|
||||
hookAggregator: HookAggregator,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
) {
|
||||
this.config = config;
|
||||
this.hookPlanner = hookPlanner;
|
||||
|
||||
Reference in New Issue
Block a user