mirror of
https://github.com/runbear-io/beardrive.git
synced 2026-08-25 08:08:08 +02:00
architecture/ holds mermaid class diagrams of the bdrive web server: the Server core with its seams (Source, AuthProvider, Directory, QuotaProvider, remote.Backend) and the MetaStore persistence layer. Convention (CLAUDE.md): a PR that changes the drawn structure updates the affected diagram in the same branch and embeds only the changed diagrams' mermaid blocks in the PR description. A PreToolUse hook on gh pr create (.claude/hooks/check-arch-diagrams.sh) blocks PR creation when internal/webapp or internal/remote changed but architecture/ didn't; override with '# skip-diagram-check' when nothing structural changed. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
28 lines
514 B
JSON
28 lines
514 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(go build:*)",
|
|
"Bash(go test:*)",
|
|
"Bash(go vet:*)",
|
|
"Bash(go run ./cmd/bdrive:*)",
|
|
"Bash(gofmt:*)",
|
|
"Bash(go mod tidy)",
|
|
"Bash(go doc:*)",
|
|
"Bash(go env:*)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/check-arch-diagrams.sh"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|