{"version":"2.1.257","anchor":"same-top-level-hooks-guard-extended-to-plugin-hooksjson-fil","canonical_anchor":"same-top-level-hooks-guard-extended-to-plugin-hooksjson-fil","heading":"Same top-level-hooks guard extended to plugin hooks.json files","tier":"notice","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257\/e\/same-top-level-hooks-guard-extended-to-plugin-hooksjson-fil","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257","markdown":"### Same top-level-hooks guard extended to plugin hooks.json files\n\nA plugin hooks.json with permission hooks outside the hooks key now throws instead of loading malformed config.\n\nThe same guard now applies to plugin `hooks.json` manifests: if `PreToolUse` or `PermissionRequest` appear outside the `hooks` key, or `hooks` isn't a proper object mapping event names to matcher arrays, loading now throws instead of proceeding with malformed config.\n\n- Area: Hooks\n- Names: `hooks.json`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}