- Add intelligent-router.sh hook for automatic agent routing - Add AUTO-TRIGGER-SUMMARY.md documentation - Add FINAL-INTEGRATION-SUMMARY.md documentation - Complete Prometheus integration (6 commands + 4 tools) - Complete Dexto integration (12 commands + 5 tools) - Enhanced Ralph with access to all agents - Fix /clawd command (removed disable-model-invocation) - Update hooks.json to v5 with intelligent routing - 291 total skills now available - All 21 commands with automatic routing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
/**
|
|
* Client Event Bus
|
|
*
|
|
* Centralized event system for the WebUI.
|
|
*
|
|
* @example
|
|
* ```typescript
|
|
* import { eventBus, loggingMiddleware } from '@/lib/events';
|
|
*
|
|
* // Configure middleware
|
|
* eventBus.use(loggingMiddleware);
|
|
*
|
|
* // Subscribe to events
|
|
* eventBus.on('llm:chunk', (event) => {
|
|
* console.log('Chunk:', event.content);
|
|
* });
|
|
*
|
|
* // Dispatch events
|
|
* eventBus.dispatch({ name: 'llm:thinking', sessionId: 'abc' });
|
|
* ```
|
|
*/
|
|
|
|
// Core event bus
|
|
export { ClientEventBus, eventBus } from './EventBus.js';
|
|
|
|
// Types
|
|
export type {
|
|
StreamingEvent,
|
|
StreamingEventName,
|
|
EventByName,
|
|
ClientEvent,
|
|
ClientEventName,
|
|
EventMiddleware,
|
|
EventHandler,
|
|
EventSubscription,
|
|
ConnectionStatusEvent,
|
|
} from './types.js';
|
|
|
|
export { isEventType, isConnectionStatusEvent } from './types.js';
|
|
|
|
// Middleware
|
|
export {
|
|
loggingMiddleware,
|
|
createLoggingMiddleware,
|
|
configureLogging,
|
|
resetLoggingConfig,
|
|
activityMiddleware,
|
|
notificationMiddleware,
|
|
type LoggingConfig,
|
|
} from './middleware/index.js';
|
|
|
|
// Event Handlers
|
|
export { registerHandlers, getHandler, setupEventHandlers } from './handlers.js';
|
|
|
|
// Hooks
|
|
export { useEventDispatch } from './useEventDispatch.js';
|