2026-07-01 00:38:06 +08:00
|
|
|
/**
|
2026-07-12 03:36:43 +08:00
|
|
|
* `@deepseek-ai/dsh-hook-protocol` — the shared core of the Claude Code / Codex hook wire
|
|
|
|
|
* protocol. not a cordis plugin: it registers nothing and injects nothing. It is a LIBRARY of
|
|
|
|
|
* dialect-neutral primitives the two bridge plugins (`dsh-hooks-claude`, `dsh-hooks-codex`)
|
|
|
|
|
* import to avoid re-implementing the identical halves of the protocol.
|
2026-07-01 00:38:06 +08:00
|
|
|
* @module @deepseek-ai/dsh-hook-protocol
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type {
|
|
|
|
|
CommandHook,
|
|
|
|
|
HookDialect,
|
|
|
|
|
HookOutput,
|
|
|
|
|
MatcherGroup,
|
|
|
|
|
MatcherMode,
|
|
|
|
|
} from './types.ts'
|
|
|
|
|
export { matchesMatcher } from './matcher.ts'
|
2026-07-04 15:44:26 +08:00
|
|
|
export { parseHookOutput } from './codec.ts'
|
|
|
|
|
export { DEFAULT_HOOK_TIMEOUT_MS, runHook } from './runner.ts'
|
2026-07-04 22:00:12 +08:00
|
|
|
export type { RunHookOptions, RunHookResult } from './runner.ts'
|
2026-07-01 00:38:06 +08:00
|
|
|
export { mergeHookOutputs } from './merge.ts'
|
|
|
|
|
export type { MergedDecision, MergedHookOutcome } from './merge.ts'
|
2026-07-04 21:08:50 +08:00
|
|
|
export { appendHookInvoked, appendHookResult, DEFAULT_STDERR_SUMMARY_MAX_CHARS, summarizeStderr } from './events.ts'
|
2026-07-01 00:38:06 +08:00
|
|
|
export type { HookInvocation, HookResultRecord } from './events.ts'
|
2026-07-06 23:27:54 +08:00
|
|
|
export { createDetachedRuns } from './detached.ts'
|
|
|
|
|
export type { DetachedRuns } from './detached.ts'
|