ECC/scripts
Charlie Tonneslan fdb10ba116
feat(hooks): add config protection hook to block linter config manipulation (#758)
* feat(hooks): add config protection hook to block linter config manipulation

Agents frequently modify linter/formatter configs (.eslintrc, biome.json,
.prettierrc, .ruff.toml, etc.) to make checks pass instead of fixing
the actual code.

This PreToolUse hook intercepts Write/Edit/MultiEdit calls targeting
known config files and blocks them with a steering message that directs
the agent to fix the source code instead.

Covers: ESLint, Prettier, Biome, Ruff, ShellCheck, Stylelint, and
Markdownlint configs.

Fixes #733

* Address review: fix dead code, add missing configs, export run()

- Removed pyproject.toml from PROTECTED_FILES (was dead code since
  it was also in PARTIAL_CONFIG_FILES). Added comment explaining why
  it's intentionally excluded.
- Removed PARTIAL_CONFIG_FILES entirely (no longer needed).
- Added missing ESLint v9 TypeScript flat configs: eslint.config.ts,
  eslint.config.mts, eslint.config.cts
- Added missing Prettier ESM config: prettier.config.mjs
- Exported run() function for in-process execution via run-with-flags,
  avoiding the spawnSync overhead (~50-100ms per call).

* Handle stdin truncation gracefully, log warning instead of fail-open

If stdin exceeds 1MB, the JSON would be malformed and the catch
block would silently pass through. Now we detect truncation and
log a warning. The in-process run() path is not affected.
2026-03-22 15:39:54 -07:00
..
ci feat: define skill placement and provenance policy (#748) 2026-03-22 15:39:48 -07:00
codemaps feat: add scripts/codemaps/generate.ts codemap generator Fixes #247 - The generate.ts script referenced in agents/doc-updater.md was missing from the repository. This adds the actual implementation. The script: - Recursively walks the src directory (skipping node_modules, dist, etc.) - Classifies files into 5 areas: frontend, backend, database, integrations, workers - Generates docs/CODEMAPS/INDEX.md + one .md per area - Uses the codemap format defined in doc-updater.md - Supports optional srcDir argument: npx tsx scripts/codemaps/generate.ts [srcDir] 2026-02-22 16:19:16 +05:30
codex fix: safe Codex config sync — merge AGENTS.md + add-only MCP servers (#723) 2026-03-22 15:39:46 -07:00
codex-git-hooks feat: add Codex CLI customization scripts (#336) 2026-03-16 14:02:40 -07:00
hooks feat(hooks): add config protection hook to block linter config manipulation (#758) 2026-03-22 15:39:54 -07:00
lib feat(session): add worker health alongside state in ecc.session.v1 (#751) 2026-03-22 15:39:51 -07:00
claw.js fix: stabilize windows hook and claw tests 2026-03-05 12:37:24 -08:00
doctor.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
ecc.js fix: resolve all CI test failures (19 fixes across 6 files) (#519) 2026-03-16 01:59:53 -07:00
harness-audit.js fix(harness-audit): make scoring deterministic with scripted rubric (#524) 2026-03-16 13:34:30 -07:00
install-apply.js feat: wire manifest resolution into install execution (#509) 2026-03-15 21:47:22 -07:00
install-plan.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
list-installed.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
orchestrate-codex-worker.sh fix: resolve all CI test failures (19 fixes across 6 files) (#519) 2026-03-16 01:59:53 -07:00
orchestrate-worktrees.js fix: preserve orchestration launcher compatibility 2026-03-12 15:40:25 -07:00
orchestration-status.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
release.sh chore: release v1.7.0 2026-02-27 06:06:41 -08:00
repair.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
session-inspect.js feat: self-improving skills loop — observe, inspect, amend, evaluate 2026-03-14 23:21:18 -07:00
sessions-cli.js feat: add SQLite state store and query CLI (#510) 2026-03-16 01:32:21 -07:00
setup-package-manager.js fix: reject flags passed as package manager names in setup-package-manager CLI 2026-02-13 03:37:46 -08:00
skill-create-output.js fix: use nullish coalescing for confidence default + add 3 tests (round 85) 2026-02-13 12:11:26 -08:00
skills-health.js feat(design): skill health dashboard mockup (#518) 2026-03-16 14:01:41 -07:00
status.js feat: add SQLite state store and query CLI (#510) 2026-03-16 01:32:21 -07:00
sync-ecc-to-codex.sh fix: safe Codex config sync — merge AGENTS.md + add-only MCP servers (#723) 2026-03-22 15:39:46 -07:00
uninstall.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00