mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-27 19:34:57 -04:00
updates
This commit is contained in:
parent
807b7a4504
commit
d7e2aa1af6
13 changed files with 280 additions and 1 deletions
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue