Logo
Explore Help
Register Sign In
zhanj/claude-plugins-official
1
0
Fork 0
You've already forked claude-plugins-official
mirror of https://github.com/anthropics/claude-plugins-official.git synced 2026-04-30 15:02:40 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
d6f180f6eaffcfe0ac46905bb84bccc0a4dc4256
claude-plugins-official/plugins/learning-output-style/hooks/hooks.json

16 lines
320 B
JSON
Raw Normal View History

creating intital scaffolding for claude code plugins
2025-11-20 11:47:24 -08:00
{
"description": "Learning mode hook that adds interactive learning instructions",
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
fix: invoke .sh hooks via bash prefix; add version for cache invalidation Fixes #993 (Permission denied on hook scripts) without relying on client-side +x preservation. The hook executor spawns commands via /bin/sh -c, which requires +x to execute a script directly. Prefixing with bash reads the script as data — mode bits are irrelevant. This works on all Claude Code versions, whereas the client-side chmod fix (claude-cli #24666) only shipped in v2.1.86. All 3 scripts declare #!/bin/bash and use bashisms ([[ ]], =~), so bash (not sh) is the correct interpreter. The version field forces a fresh cache path (1.0.0/ instead of unknown/), ensuring the new hooks.json reaches users with stale caches.
2026-03-28 08:40:34 -07:00
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh\""
creating intital scaffolding for claude code plugins
2025-11-20 11:47:24 -08:00
}
]
}
]
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 119ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API