71 lines
1.5 KiB
JSON
71 lines
1.5 KiB
JSON
{
|
|
"name": "jj",
|
|
"description": "Autonomous commit stacking and curation workflow for Jujutsu (jj) version control",
|
|
"version": "0.2.0",
|
|
"author": {
|
|
"name": "emiller"
|
|
},
|
|
"skills": [
|
|
"./skills/"
|
|
],
|
|
"commands": [
|
|
"./commands/"
|
|
],
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"condition": "args.command matches '^git '",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/git-to-jj-translator.py"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|MultiEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "jj fix -s @ 2>/dev/null || true"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash",
|
|
"condition": "args.command matches '(jj (describe|new|commit)|/jj:(commit|new))'",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "jj fix -s @ && echo '✓ Formatting applied' || echo '⚠️ Formatting failed but continuing'"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "prompt",
|
|
"prompt": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-commit.py",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "prompt",
|
|
"prompt": "${CLAUDE_PLUGIN_ROOT}/hooks/stop-auto-commit.py",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |