This commit is contained in:
mr0xb 2026-05-22 14:05:39 -04:00
commit d7e2aa1af6
No known key found for this signature in database
GPG key ID: D61C4E28AAE1BC5C
13 changed files with 280 additions and 1 deletions

View file

@ -1,6 +1,9 @@
{
"env": {
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "100000"
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "100000",
"OBSIDIAN_API_KEY": "7079ccd0a88f83f4a96fd9564bf25b3cb21fce1bff6d9e5b213c02b8b3af6d57",
"OBSIDIAN_PORT": "27124",
"OBSIDIAN_VAULT": "https://127.0.0.1:27124/vault"
},
"hooks": {
"Notification": [
@ -29,6 +32,16 @@
"timeout": 2
}
]
},
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path // .tool_response.filePath // \"\"' | { read -r f; if [[ \"$f\" =~ docs/superpowers/specs/.*\\.md$ ]]; then project=$(basename \"$(git -C \"$(dirname \"$f\")\" rev-parse --show-toplevel 2>/dev/null)\" 2>/dev/null || echo \"unknown\"); filename=$(basename \"$f\"); curl -s -k -X PUT \"$OBSIDIAN_VAULT/Claude/$project/$filename\" -H \"Authorization: Bearer $OBSIDIAN_API_KEY\" -H \"Content-Type: text/markdown\" --data-binary \"@$f\" 2>/dev/null || true; fi; } 2>/dev/null || true",
"async": true
}
]
}
],
"PostToolUseFailure": [