📄 index.ts  •  954 bytes
/**
 * CmdCode V0.5 - 意图识别模块
 * Phase 1: 关键词 + 模式匹配 + 路由分发
 * Phase 2: 与执行计划集成
 */

// 导出类型
export type { IntentType, IntentPattern } from './patterns'
export type { IntentResult } from './classifier'
export type { RouteDecision } from './router'
export type { 
  IntentPlanResult, 
  InteractionMode, 
  IntegratorOptions 
} from './integrator'

// 导出函数
export {
  classifyIntent,
  classifyIntentAsync,
  classifyBatch,
  getIntentLabel,
  getFastPathReason,
} from './classifier'

export {
  routeIntent,
  routeIntentAsync,
  getHandlerName,
  getProcessingAdvice,
} from './router'

export {
  extractParams,
  INTENT_PATTERNS,
} from './patterns'

// 导出集成器
export {
  processUserInput,
  processUserInputAsync,
  parseConfirmation,
  getInteractionAdvice,
  DEFAULT_INTEGRATOR_OPTIONS,
} from './integrator'

/** 版本信息 */
export const INTENT_VERSION = '0.6.0-phase2'