The hook ran `pnpm test`, the whole coverage suite, and the agent flow in AGENTS.md ran that same suite again before committing: one commit verified identical content twice, about 45s of it. `pnpm run check` (scripts/check.sh) runs lint, typecheck and coverage concurrently, prints each tool's complete output (also kept in .tmp/check-logs) and fails when any of them does. A green run fingerprints the worktree into .tmp/check.stamp, so the hook skips the suite for content that just passed; any tracked or untracked edit, or a stamp older than an hour (gitignored inputs like lib/ and node_modules can drift unseen), re-runs it, and `--full` always does. The hook gains lint and typecheck at no extra wall time: 3.2s and 1.4s hide inside the 23s test run. .gitignore now lists the local tool state (.codegraph, .idea, .zcode): it is not a gate input, and its churn would otherwise invalidate every stamp. Verified: green gate on 146 files / 2305 tests, hook skip in 0.1s, full re-run after any edit, and a stubbed failing tool exits 1 without stamping.
47 lines
770 B
Plaintext
47 lines
770 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Production/Build outputs (compiled JavaScript)
|
|
dist/
|
|
build/
|
|
out/
|
|
lib/
|
|
|
|
# Coverage report (generated by `pnpm run coverage`)
|
|
coverage/
|
|
|
|
# TypeScript incremental build cache
|
|
*.tsbuildinfo
|
|
|
|
# Source maps (optional, remove if you want to track maps)
|
|
*.js.map
|
|
*.d.ts.map
|
|
|
|
# Execution logs
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
*.log
|
|
|
|
# Packed tarballs
|
|
*.tgz
|
|
|
|
# npm cache kept in-repo for sandboxed environments
|
|
.npm-cache/
|
|
|
|
# pnpm workspace-local store and temp
|
|
.pnpm-store/
|
|
.tmp/
|
|
|
|
# Local tool state: CodeGraph index, IDE, agent tooling. They are not gate
|
|
# inputs, and their churn would otherwise invalidate the pre-commit stamp.
|
|
.codegraph/
|
|
.idea/
|
|
.zcode/
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
# macOS Finder metadata
|
|
.DS_Store
|