chore(submodules): ai-mcp canonical pools; metamask untrack dist; extend surgical clean

- ai-mcp-pmm-controller: Chain 138 allowlist matches funded PMM pool addresses.
- metamask-integration: ignore and stop tracking tsc dist/.
- surgical-clean-submodule-artifacts.sh: include metamask-integration dist/ step.
- SUBMODULE_HYGIENE: note metamask dist/ pattern.

Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-07 22:15:11 -07:00
parent 518923203e
commit 08940e85aa
4 changed files with 28 additions and 5 deletions

View File

@@ -3,8 +3,9 @@
# Does not discard intentional source edits (.ts, .go, .md WIP stays dirty until you commit/stash).
#
# Applies:
# the-order — gitignore + untrack tsc emit under packages/*/src (outDir is dist/)
# smom-dbis-138 — gitignore + untrack Foundry artifacts/
# the-order — gitignore + untrack tsc emit under packages/*/src (outDir is dist/)
# smom-dbis-138 — gitignore + untrack Foundry artifacts/
# metamask-integration — root .gitignore dist/ + git rm --cached dist/ (tsc outDir)
#
# Idempotent: safe to re-run after commits already landed (no-op if nothing tracked).
#
@@ -74,12 +75,34 @@ clean_smom() {
fi
}
clean_metamask_integration() {
local sub="$ROOT/metamask-integration"
[[ -d "$sub/.git" ]] || return 0
log "metamask-integration: ensure root .gitignore has dist/"
if ! $DRY && [[ -f "$sub/.gitignore" ]] && ! grep -qE '^dist/?$' "$sub/.gitignore" 2>/dev/null; then
log " WARN: add dist/ to metamask-integration/.gitignore (tsc outDir)"
fi
local n
n=$(git -C "$sub" ls-files 2>/dev/null | grep -c '^dist/' || true)
if [[ "${n:-0}" -eq 0 ]]; then
log "metamask-integration: no tracked dist/ (OK)"
return 0
fi
if $DRY; then
log "metamask-integration: would git rm -r --cached dist/ ($n files)"
return 0
fi
log "metamask-integration: git rm -r --cached dist/ ($n files)"
git -C "$sub" rm -r -f --cached dist/ 2>/dev/null || true
}
if ! grep -q '^artifacts/' "$ROOT/smom-dbis-138/.gitignore" 2>/dev/null; then
log "WARN: smom-dbis-138/.gitignore should contain 'artifacts/' (add before next commit)"
fi
clean_the_order
clean_smom
clean_metamask_integration
log "Done. Run: bash scripts/verify/submodules-clean.sh"
log "Other submodules with only source/config edits need manual commit or stash (not touched here)."