Skip to content

omp-hooks v0.0.4

Latest

Choose a tag to compare

@ZeR020 ZeR020 released this 07 Jul 19:55

What's new

Parallel hook execution (Claude Code behavior)

  • All matching hooks now run in parallel via Promise.allSettled
  • Identical handlers deduplicated by command+args across groups
  • Deny-wins: one deny/exit-2 blocks regardless of allow from others
  • stopProcessing wins over deny; updatedInput merges in config order
  • additionalContext concatenated in config order (deterministic)
  • PostToolUse patches: first non-undefined content/details/isError wins
  • Single-hook calls skip allSettled overhead

updatedToolOutput field (PostToolUse)

  • extractToolResultPatch now reads Claude Code's actual updatedToolOutput field as the highest-priority content source
  • Above legacy updatedToolResult.content and updatedMCPToolOutput
  • This was effectively a bug fix — hooks using the documented Claude field were silently ignored before

Type cleanup

  • CommonHookOutput named type (replaces ReturnType<typeof> usage)
  • CollectedHook/HookExecResult named types for parallel helpers

Full Changelog: v0.0.3...v0.0.4