Add gitignore-claude template and wire into registration flows
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Introduce scripts/project_rules/gitignore-claude.template with the fleet
pattern that tracks .claude/rules/ while ignoring machine-local Claude state.
ensure_gitignore_claude_rules.py applies it during statehub register,
register_project.sh, and update_agent_instruction_files fleet regen.
This commit is contained in:
tegwick 2026-07-08 15:06:18 +02:00
parent 0d2fca5711
commit 638cdc4ee2
7 changed files with 128 additions and 0 deletions

View file

@ -147,6 +147,9 @@ if [[ "$ADDITIONAL" != "true" ]]; then
echo "==> SCOPE.md already exists — skipping."
fi
echo "==> Ensuring .gitignore tracks .claude/rules/ ..."
python3 "$SCRIPT_DIR/ensure_gitignore_claude_rules.py" "$PROJECT_PATH"
if [[ "$CODEX_MODE" == "true" ]]; then
# ── 5b: Codex — write AGENTS.md from HTTP-API template ────────────────
AGENTS_MD="$PROJECT_PATH/AGENTS.md"