LibreChat/packages/api
Danny Avila 493ffced46
🪝 feat: Add Claude Hook Compatibility Layer (#14412)
* feat: add Claude hook compatibility layer

* fix: satisfy API declaration build

* fix: normalize hook matchers and conditions

* fix: align Claude hook lifecycle semantics

* fix: preserve Claude hook execution semantics

* fix: gate unsupported Claude hook controls

* fix: refine Claude payload and matcher translation

* fix: scope Claude hook conditions to tool events

* fix: preserve mixed Claude hook documents

* fix: honor Claude hook execution controls

* fix: close Claude hook lifecycle gaps

* fix: isolate Claude hook declaration state

* fix: preserve Claude matcher semantics

* fix: handle PreemptBoundary in plugin hook payload switch

`PreemptBoundary` joined `HOOK_EVENTS` in @librechat/agents 3.4.2. It has no
Claude counterpart and is absent from the compatibility EVENT_MAP, so it can
never reach a registered declaration, but the payload switch must stay
exhaustive so a future event fails the build rather than returning undefined.
2026-08-08 07:13:11 -04:00
..
src 🪝 feat: Add Claude Hook Compatibility Layer (#14412) 2026-08-08 07:13:11 -04:00
types
.gitignore
babel.config.cjs
jest.config.mjs 📦 chore: update sanitize-html to latest (#14573) 2026-08-01 09:35:57 -04:00
jest.setup.cjs
package.json 🫆 chore: Remove Published Credential Defaults (#14680) 2026-08-07 07:25:05 -04:00
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json
tsconfig.spec.json
tsdown.config.mjs 🫆 chore: Remove Published Credential Defaults (#14680) 2026-08-07 07:25:05 -04:00