Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.198 Home All releases olderv2.1.197 v2.1.199newer

Hooks: Improved Validation Error Messages

Hook configuration parsing now reports cleaner, more specific errors: invalid hook event names, malformed matcher arrays, and wrong top-level types each produce distinct messages with the offending path.

Details
  • "must be an object mapping hook event names to matcher arrays; received <type>" for wrong root type
  • "unknown hook event. Valid events: <list>" for unrecognized event names
  • "must be an array of matchers; received <type>" for non-array event handlers
Evidence

New validator (search for "must be an object mapping hook event names to matcher arrays")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.198 →