/**
 * Universal Hooks Core Types - Phase 2B of T5237
 *
 * This module defines the core type system for CLEO's Universal Hooks
 * integration with CAAMP 1.6.0. CLEO builds the hook registry and
 * execution system while CAAMP provides the event definitions.
 *
 * @module @cleocode/cleo/hooks/types
 */
// Re-export CAAMP provider query functions for hook capability discovery
export { getCommonHookEvents, getProvidersByHookEvent } from '@cleocode/caamp';
/**
 * CLEO-local coordination events used by the autonomous runtime.
 *
 * These are internal lifecycle signals for worker orchestration and are not
 * surfaced through CAAMP's provider capability registry.
 */
export const INTERNAL_HOOK_EVENTS = [
    'onWorkAvailable',
    'onAgentSpawn',
    'onAgentComplete',
    'onCascadeStart',
    'onPatrol',
];
const INTERNAL_HOOK_EVENT_SET = new Set(INTERNAL_HOOK_EVENTS);
/**
 * Type guard for CAAMP/provider-discoverable hook events.
 */
export function isProviderHookEvent(event) {
    return !INTERNAL_HOOK_EVENT_SET.has(event);
}
/**
 * Type guard for CLEO-local coordination hook events.
 */
export function isInternalHookEvent(event) {
    return INTERNAL_HOOK_EVENT_SET.has(event);
}
/**
 * Mapping from CLEO internal lifecycle events to CAAMP hook events
 * This is where CLEO connects its lifecycle to CAAMP's event definitions
 */
export const CLEO_TO_CAAMP_HOOK_MAP = {
    'session.start': 'onSessionStart',
    'session.end': 'onSessionEnd',
    'task.start': 'onToolStart',
    'task.complete': 'onToolComplete',
    'file.change': 'onFileChange',
    'system.error': 'onError',
    'prompt.submit': 'onPromptSubmit',
    'response.complete': 'onResponseComplete',
};
/**
 * Internal CLEO lifecycle events that drive autonomous coordination.
 */
export const CLEO_INTERNAL_HOOK_MAP = {
    'agent.work.available': 'onWorkAvailable',
    'agent.spawn': 'onAgentSpawn',
    'agent.complete': 'onAgentComplete',
    'cascade.start': 'onCascadeStart',
    'watcher.patrol': 'onPatrol',
};
//# sourceMappingURL=types.js.map