# RelayShield — Git Ignore Rules
# Prevents sensitive files from being accidentally committed

# ── Secrets and credentials ──────────────────────────────────
.env
.env.*
*.pem
*.key
*.p12
*.pfx
secrets.json
credentials.json
config.local.*

# ── Python ───────────────────────────────────────────────────
__pycache__/
*.py[cod]
*.pyo
*.pyd
.Python
*.egg-info/
dist/
!n8n-nodes-relayshield/dist/
build/
venv/
.venv/
.venv-*/
env/

# ── AWS ──────────────────────────────────────────────────────
.aws/
aws-exports.js
samconfig.toml

# ── macOS ────────────────────────────────────────────────────
.DS_Store
.AppleDouble
.LSOverride
Thumbs.db

# ── VS Code ──────────────────────────────────────────────────
.vscode/settings.json
.vscode/launch.json

# ── Node (if used later) ─────────────────────────────────────
node_modules/
npm-debug.log
yarn-error.log

# ── Logs ─────────────────────────────────────────────────────
*.log
logs/

# ── Test output ──────────────────────────────────────────────
.pytest_cache/
coverage/
.coverage

# ── Claude Code local settings ─────────────────────────────────────
# Local Claude Code state (settings.local.json, caches) stays out. The skills
# symlink does NOT: `.claude/skills/relayshield-agent-bait` points at the
# canonical copy under plugins/, CLAUDE.md documents it as the one-file-two-places
# arrangement, and test_agent_bait_skill.py asserts it is a symlink. With a blanket
# `.claude/` ignore that test asserted a path the repo forbade, so it had been
# failing since it was written. Narrow the ignore, do not weaken the test.
.claude/*
!.claude/skills/

# ── Lambda deployment packages (build artifacts — not source) ────────
*.zip

# ── Large binary and media assets ────────────────────────────────────
*.png
*.jpg
*.jpeg
*.pdf

# EAS build needs these tracked to bundle the mobile app icon/splash
!crypto-shield-app/assets/*.png

# Mini App store/catalogue artwork is a deliverable pasted into submission
# forms, so it is tracked deliberately. Keep these SMALL: the blanket *.png
# rule above exists because relayshield_favicon.png is 24576x24576 and 87 MB,
# which is essentially the entire packed size of this repository.
!assets/miniapp/*.png
!assets/miniapp/*.jpg

# The Chrome extension's icon set (FD-6). Same reasoning as assets/miniapp/
# above: keep these SMALL. Generated from assets/miniapp/relayshield_icon_512.png
# via Pillow, 622 bytes to 11KB -- nowhere near the 87MB favicon problem the
# blanket rule exists for.
!chrome-extension/icons/*.png

# The 900x1600 catalogue store screenshots, generated by
# assets/miniapp/build_store_screenshots.sh. A SECOND exception is needed
# because `!assets/miniapp/*.png` does not reach a subdirectory -- and a
# screenshot that is not tracked is a screenshot the merge does not deliver,
# which is the whole point of putting images in the repo rather than the chat.
!assets/miniapp/store/*.png

# The 1080x1920 set, same generator, same rule. tg.app requires 1280x720 or
# 1080x1920 and rejects anything else, so the 900x1600 ton.app set is the
# wrong size there; both are kept rather than one being regenerated each time.
!assets/miniapp/store_1080x1920/*.png

# The AWS Marketplace architecture diagram, rendered from
# assets/marketplace/bundle_b_architecture.html. It is uploaded into the
# portal's Architecture details form by hand, and an image sent through the
# chat arrives re-encoded as .webp, which an upload dialog filters out of the
# file picker entirely. So the merge is the delivery, and the merge only
# delivers a file that is TRACKED. 1600x900, ~170 KB.
!assets/marketplace/*.png
.telethon_venv
zapier_partner_test_key.txt

# ── Mobile signing material ──────────────────────────────────
# *.key does NOT match these; a release keystore leaking on a public repo lets
# anyone sign a fake Crypto Shield build.
*.keystore
*.jks

# ── Mobile build outputs ─────────────────────────────────────
*.apk
*.aab

# ── Firebase client config (contains a Google API key) ───────
google-services.json
GoogleService-Info.plist

# ── Wrangler local state and cache ───────────────────────────
.wrangler/

# ── Local backups ────────────────────────────────────────────
backups/

# ── Embedded git repos with their own remotes ────────────────
# These are separate published repos, each already backed up upstream. Adding
# them here would record a bare gitlink SHA with no .gitmodules entry, which is
# a dead reference for anyone cloning. agentcore-payer-proof is a fork of an
# AWS sample repo and is not ours at all.
/agentcore-payer-proof/
/ai-sdk-relayshield/
/langchain-relayshield/
/llamaindex-relayshield/
/openai-agents-relayshield/
/plugin-relayshield/

# ── Sibling repos that live in this working tree but are NOT part of it ──────
# relayshield-mcp is its own repository and its own release
# (github.com/relayshield/relayshield-mcp, published to PyPI as relayshield-mcp).
# On 2026-08-05 the bulk "track 305 production sources" commit ran git add over a
# working tree where that directory already had its own .git, so git recorded a
# GITLINK -- commit 70f36dc -- instead of the files. With no .gitmodules to go
# with it, that gitlink is inert: git submodule sees nothing, actions/checkout
# never populates it, and the directory is empty in every CI run and every fresh
# clone. It only ever produced noise in git status.
#
# Ignoring the path is what keeps it quiet, because the directory is still there
# on the Mac. Work on the MCP server in its own clone and release it from there.
/relayshield-mcp/

# Generated test shims. test_checkemail_reply.mjs and test_checkemail_verdict.mjs
# each write a copy of cloudflare_worker_checkemail.js with "cloudflare:email"
# stubbed out, import it, then delete it. A run that fails part-way leaves one
# behind, and it is a byte-for-byte copy of a source file -- committing one
# creates a second, silently stale copy of the Worker, which is the DRIFT RULE
# in miniature. Added 2026-09-02 after an ad-hoc debug script left mm_shim.mjs
# in the repo root.
*_shim.mjs
.checkemail_shim.mjs
.checkemail_verdict_shim.mjs

# The BotFather Mini App photo is a DELIVERABLE, not a stray image, and the
# repo-wide *.jpg rule above would drop it. It is generated by
# assets/miniapp/build_botfather_image.sh and its source HTML is committed
# beside it, so it is reproducible rather than an orphan binary.
!assets/miniapp/idcheck_botfather_640x360.jpg
