index.ts 1.0 KB

12345678910111213141516171819202122232425
  1. /**
  2. * Shared, non-plugin hook protocol library: matching, command execution and
  3. * decoding, restrictive outcome merging, durable event helpers, and detached
  4. * run quiescence. Claude Code and Codex bridges own their distinct payloads,
  5. * environment rules, matcher mode, and typed seam mappings.
  6. * @module @deepseek-ai/dsh-hook-protocol
  7. */
  8. export type {
  9. CommandHook,
  10. HookDialect,
  11. HookOutput,
  12. MatcherGroup,
  13. MatcherMode,
  14. } from './types.ts'
  15. export { matchesMatcher } from './matcher.ts'
  16. export { parseHookOutput } from './codec.ts'
  17. export { DEFAULT_HOOK_TIMEOUT_MS, runHook } from './runner.ts'
  18. export type { RunHookOptions, RunHookResult } from './runner.ts'
  19. export { mergeHookOutputs } from './merge.ts'
  20. export type { MergedDecision, MergedHookOutcome } from './merge.ts'
  21. export { appendHookInvoked, appendHookResult, DEFAULT_STDERR_SUMMARY_MAX_CHARS, summarizeStderr } from './events.ts'
  22. export type { HookInvocation, HookResultRecord } from './events.ts'
  23. export { createDetachedRuns } from './detached.ts'
  24. export type { DetachedRuns } from './detached.ts'