7 of 12 initiative activity state transitions were broken due to missing event routing at three layers: SSE event arrays, live-update prefix rules, and mutation invalidation map. - Add initiative:changes_requested to ALL_EVENT_TYPES and TASK_EVENT_TYPES - Add initiative:/agent: prefix rules to initiatives list and detail pages - Add approveInitiativeReview, requestInitiativeChanges, requestPhaseChanges to INVALIDATION_MAP; add listInitiatives to approvePhase - Extract INITIATIVE_LIST_RULES constant for reuse
25 lines
862 B
TypeScript
25 lines
862 B
TypeScript
/**
|
|
* Shared React hooks for the Codewalkers frontend.
|
|
*
|
|
* This module provides reusable hooks for common patterns like
|
|
* debouncing, subscription management, and agent interactions.
|
|
*/
|
|
|
|
export { useAutoSave } from './useAutoSave.js';
|
|
export { useDebounce, useDebounceWithImmediate } from './useDebounce.js';
|
|
export { useLiveUpdates, INITIATIVE_LIST_RULES } from './useLiveUpdates.js';
|
|
export type { LiveUpdateRule } from './useLiveUpdates.js';
|
|
export { useRefineAgent } from './useRefineAgent.js';
|
|
export { useConflictAgent } from './useConflictAgent.js';
|
|
export { useSubscriptionWithErrorHandling } from './useSubscriptionWithErrorHandling.js';
|
|
|
|
export type {
|
|
RefineAgentState,
|
|
SpawnRefineAgentOptions,
|
|
UseRefineAgentResult,
|
|
} from './useRefineAgent.js';
|
|
|
|
export type {
|
|
ConflictAgentState,
|
|
UseConflictAgentResult,
|
|
} from './useConflictAgent.js'; |