mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 07:16:17 +00:00
Domain model, SQLite graph store, link parser, journals chained in time, page origin/activity anchors, weighted synapses with spreading activation, content-addressed blob store and HLC op log with LWW remote apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
377 B
Bash
Executable File
10 lines
377 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# PostToolUse (Edit/Write): format the changed file. Never blocks.
|
|
f=$(jq -r '.tool_input.file_path // empty' 2>/dev/null)
|
|
[ -n "$f" ] && [ -f "$f" ] || exit 0
|
|
case "$f" in
|
|
*.rs) command -v rustfmt >/dev/null && rustfmt --edition 2024 -q "$f" 2>/dev/null ;;
|
|
*.dart) command -v dart >/dev/null && dart format -o write "$f" >/dev/null 2>&1 ;;
|
|
esac
|
|
exit 0
|