Skip to content

omp-hooks v0.0.2

Choose a tag to compare

@ZeR020 ZeR020 released this 07 Jul 17:23

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 (bashBash, writeWrite, etc.) while preserving lowercase matcher compatibility.
  • Match current Claude Code matcher semantics: omitted/empty/star match all, plain names exact-match, pipe/comma lists match exact alternatives, and regex syntax still works for patterns like mcp__.*.
  • Add command exec-form support with args; when args is present, command is spawned directly without a shell.
  • Add shell support for command hooks (bash by default, powershell supported for shell form).
  • Add background command hook support with async and best-effort asyncRewake.
  • Align default timeouts closer to Claude Code: 600s for command hooks, 30s for UserPromptSubmit, 1.5s for SessionEnd.
  • 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, and StopFailure.

Verified

  • bun run typecheck
  • bun run build
  • Direct smoke tests for matcher behavior, tool-name normalization, hook input shape, timeout defaults, shell-form execution, exec-form args, and async additionalContext delivery.