ECC/scripts
Affaan Mustafa bae1129209
feat: add SQLite state store and query CLI (#510)
* feat: add SQLite state store and ECC status CLI

* fix: replace better-sqlite3 with sql.js to eliminate native module CI failures

better-sqlite3 requires native C++ compilation (node-gyp, prebuild-install)
which fails in CI across npm/pnpm on all platforms:
- npm ci: lock file out of sync with native transitive deps
- pnpm: native bindings not found at runtime
- Windows: native compilation fails entirely

sql.js is a pure JavaScript/WASM SQLite implementation with zero native
dependencies. The adapter in index.js wraps the sql.js API to match the
better-sqlite3 interface used by migrations.js and queries.js.

Key implementation detail: sql.js db.export() implicitly ends active
transactions, so the adapter defers disk writes (saveToDisk) until
after transaction commit via an inTransaction guard flag.

createStateStore is now async (sql.js requires async WASM init).
Updated status.js, sessions-cli.js, and tests accordingly.
2026-03-16 01:32:21 -07:00
..
ci fix: harden observer hooks and test discovery (#513) 2026-03-15 21:47:15 -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
hooks feat: add orchestration workflows and harness skills 2026-03-12 14:49:05 -07:00
lib feat: add SQLite state store and query CLI (#510) 2026-03-16 01:32:21 -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 feat: add SQLite state store and query CLI (#510) 2026-03-16 01:32:21 -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: address remaining orchestration review comments 2026-03-12 15:34:05 -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: add skill evolution foundation (#514) 2026-03-15 21:47:39 -07:00
status.js feat: add SQLite state store and query CLI (#510) 2026-03-16 01:32:21 -07:00
uninstall.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00