mirror of
https://github.com/Dasemu/remote-mcp-manager.git
synced 2026-11-26 15:26:27 +00:00
Add root CLAUDE.md, docs/architecture.md, .claude/settings.json hooks (PostToolUse type-check, Stop build+test gate), and a version.yml workflow alongside the existing ci.yml (now also builds apps/web and scopes triggers to master). Record bootstrap version 2. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
719 B
JSON
26 lines
719 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "FILE=$(jq -r '.tool_input.file_path // empty'); case \"$FILE\" in *.ts|*.tsx) WS=$(echo \"$FILE\" | grep -oE 'apps/(server|web)' | head -1); if [ -n \"$WS\" ]; then npx --prefix \"$CLAUDE_PROJECT_DIR\" -y tsc --noEmit -p \"$CLAUDE_PROJECT_DIR/$WS/tsconfig.json\" >&2 || true; fi ;; esac"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && npm run build --workspace apps/server && npm test"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|