omp-hooks v0.0.2
omp-hooks v0.0.2
Compatibility-focused patch release for Claude Code command hooks on OMP.
What's changed
- Normalize OMP tool names to Claude-style names for hook scripts and matchers (
bash→Bash,write→Write, etc.) while preserving lowercase matcher compatibility. - Match current Claude Code
matchersemantics: omitted/empty/star match all, plain names exact-match, pipe/comma lists match exact alternatives, and regex syntax still works for patterns likemcp__.*. - Add command exec-form support with
args; whenargsis present,commandis spawned directly without a shell. - Add
shellsupport for command hooks (bashby default,powershellsupported for shell form). - Add background command hook support with
asyncand best-effortasyncRewake. - Align default timeouts closer to Claude Code: 600s for command hooks, 30s for
UserPromptSubmit, 1.5s forSessionEnd. - Update README compatibility docs to describe the supported Claude command-hook subset and explicitly list unsupported handler types/events.
Still unsupported
- Handler types:
http,prompt,agent,mcp_tool. - Newer Claude events outside the mapped subset, including
PostToolBatch,PermissionRequest,PermissionDenied,Notification,MessageDisplay,SubagentStart,SubagentStop, andStopFailure.
Verified
bun run typecheckbun run build- Direct smoke tests for matcher behavior, tool-name normalization, hook input shape, timeout defaults, shell-form execution, exec-form
args, and asyncadditionalContextdelivery.