fix: Correct hooks format - add nested hooks array

SessionEnd hooks require { hooks: [...] } format, not direct type/command.
Fixed install-hooks.sh script and setup.md command.
Bump version to 2.1.3

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-01-07 00:01:56 +00:00
parent f08704af5e
commit b9284a59f7
4 changed files with 24 additions and 14 deletions

View File

@@ -22,9 +22,13 @@ Verifică și instalează hooks-urile necesare pentru plugin-ul Learn în `~/.cl
"hooks": {
"SessionEnd": [
{
"type": "command",
"command": "echo '\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n💡 Tip: Rulează /learn:analyze pentru a captura lecțiile din sesiune\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'",
"timeout": 5
"hooks": [
{
"type": "command",
"command": "echo '\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\n💡 Tip: Rulează /learn:analyze pentru a captura lecțiile din sesiune\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'",
"timeout": 5
}
]
}
],
"PreCompact": [
@@ -33,7 +37,7 @@ Verifică și instalează hooks-urile necesare pentru plugin-ul Learn în `~/.cl
"hooks": [
{
"type": "command",
"command": "echo '\n⚠ Context plin! Rulează /learn:analyze ACUM pentru a salva lecțiile înainte de compact!\n'",
"command": "echo '\\n⚠ Context plin! Rulează /learn:analyze ACUM pentru a salva lecțiile înainte de compact!\\n'",
"timeout": 5
}
]