From f4b30cef0c26cdd0516e1b0b2f33d9092b366118 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 14 Sep 2026 16:13:46 +0700 Subject: [PATCH] chore(gitignore): ignore Ruflo runtime, secrets, and scaffolding --- .claude/settings.json | 169 +++++++++++++++++++++++++++++++++++++++++- .gitignore | 30 ++++++++ 2 files changed, 198 insertions(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index cb26a79..ed53167 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -6,7 +6,174 @@ "Bun(bunx *)", "Bun(bun run *)", "Bun(bun build *)", - "Bun(bun install)" + "Bun(bun install)", + "Bash(npx @claude-flow*)", + "Bash(npx claude-flow*)", + "Bash(node .claude/*)", + "mcp__claude-flow__*" ] + }, + "hooks": { + "PreToolUse": [ + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" pre-bash'", + "timeout": 5000 + } + ] + }, + { + "matcher": "Write|Edit|MultiEdit", + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" pre-edit'", + "timeout": 5000 + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "Write|Edit|MultiEdit", + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" post-edit'", + "timeout": 10000 + } + ] + }, + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" post-bash'", + "timeout": 5000 + } + ] + } + ], + "UserPromptSubmit": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" route'", + "timeout": 10000 + } + ] + } + ], + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" session-restore'", + "timeout": 15000 + }, + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/auto-memory-hook.mjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/auto-memory-hook.mjs\" import'", + "timeout": 8000 + } + ] + } + ], + "SessionEnd": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" session-end'", + "timeout": 10000 + } + ] + } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/auto-memory-hook.mjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/auto-memory-hook.mjs\" sync'", + "timeout": 10000 + } + ] + } + ], + "PreCompact": [ + { + "matcher": "manual", + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" compact-manual'" + }, + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" session-end'", + "timeout": 5000 + } + ] + }, + { + "matcher": "auto", + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" compact-auto'" + }, + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" session-end'", + "timeout": 6000 + } + ] + } + ], + "SubagentStart": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" status'", + "timeout": 3000 + } + ] + } + ], + "SubagentStop": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" post-task'", + "timeout": 5000 + } + ] + } + ], + "Notification": [ + { + "hooks": [ + { + "type": "command", + "command": "sh -c 'D=\"${CLAUDE_PROJECT_DIR:-.}\"; [ -f \"$D/.claude/helpers/hook-handler.cjs\" ] || D=\"${HOME}\"; exec node \"$D/.claude/helpers/hook-handler.cjs\" notify'", + "timeout": 3000 + } + ] + } + ] + }, + "env": { + "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1", + "CLAUDE_FLOW_V3_ENABLED": "true", + "CLAUDE_FLOW_HOOKS_ENABLED": "true" } } \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5eb976d..5ea2df0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # dependencies (bun install) node_modules +package-lock.json # output out @@ -37,3 +38,32 @@ S3_GUIDE.md # Finder (MacOS) folder config .DS_Store result + +# Ruflo / Claude Flow local state (scaffolding kept on disk, never committed) +# Secrets & configs with credentials +claude-flow.config.json +claude-flow.config.json.bak +.env.*.local + +# Runtime data & databases +*.db +*.db-shm +*.db-wal +ruvector.db +data/ +.swarm/ +.claude-flow/ +.claude/*.db +.claude/.proven-config-version +.claude/proven-config.json + +# Generated scaffolding (re-creatable via ruflo init; force-add if you want it tracked) +.agents/ +AGENTS.md +.claude/agents/ +.claude/commands/ +.claude/helpers/ +.claude/skills/ + +# Codex local configuration +.codex/