@mwillbanks/ast-mcp 0.6.6 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +6 -0
- package/dist/ast-mcp.js +358 -337
- package/dist/ast-mcp.js.map +45 -32
- package/dist/workers/sql-postgres-worker.js +5 -0
- package/dist/workers/sql-postgres-worker.js.map +10 -0
- package/package.json +3 -2
- package/src/cli/doctor.ts +103 -0
- package/src/cli/index.ts +9 -1
- package/src/config/index.ts +61 -6
- package/src/config/registry.ts +209 -67
- package/src/config/v2-schema.ts +2 -0
- package/src/helpers/installer.ts +10 -1
- package/src/http/index.ts +12 -5
- package/src/installer/codex.ts +237 -0
- package/src/installer/diagnostics.ts +387 -0
- package/src/installer/directory-ancestry.ts +55 -0
- package/src/installer/index.ts +386 -119
- package/src/installer/ownership.ts +165 -0
- package/src/installer/service-state.ts +151 -0
- package/src/installer/service.ts +131 -7
- package/src/installer/transaction.ts +342 -0
- package/src/installer/transport.ts +22 -31
- package/src/intelligence/mutation/locks.ts +4 -1
- package/src/patch/engine.ts +157 -11
- package/src/runtime/approval.ts +427 -66
- package/src/runtime/config-write.ts +27 -1
- package/src/runtime/diagnostics.ts +115 -0
- package/src/runtime/file-capabilities.ts +2 -0
- package/src/runtime/hosts/codex.ts +16 -0
- package/src/runtime/path-policy.ts +2 -0
- package/src/runtime/release.ts +220 -0
- package/src/runtime/sql-assistance.ts +439 -0
- package/src/runtime/sql-options-schema.ts +31 -0
- package/src/runtime/sql-postgres-worker.ts +72 -0
- package/src/runtime/sql-postgres.ts +245 -0
- package/src/server/index.ts +35 -5
- package/src/server/lifecycle.ts +1 -1
- package/src/tools/configuration.ts +2 -0
- package/src/tools/diagnostics.ts +85 -0
- package/src/tools/files.ts +2 -0
- package/src/tools/index.ts +9 -0
- package/templates/skills/ast-mcp/SKILL.md +20 -1
- package/templates/skills/ast-mcp/evals/evals.json +274 -0
- package/templates/skills/ast-mcp/evals/semantic.ts +2 -0
- package/templates/skills/ast-mcp/evals/trigger-queries.json +4 -1
- package/templates/skills/ast-mcp/references/cli.md +97 -0
- package/templates/skills/ast-mcp/references/configuration.md +11 -3
- package/templates/skills/ast-mcp/references/diagnostics.md +106 -0
- package/templates/skills/ast-mcp/references/host-context.md +85 -0
- package/templates/skills/ast-mcp/references/installation.md +37 -0
- package/templates/skills/ast-mcp/references/issue-reporting.md +80 -0
- package/templates/skills/ast-mcp/references/patch-state-machine.md +10 -0
- package/templates/skills/ast-mcp/references/tool-catalog.md +120 -50
- package/templates/skills/ast-mcp/scripts/check-install.ts +223 -24
- package/templates/skills/ast-mcp/scripts/release.ts +220 -0
package/CONTRIBUTING.md
CHANGED
|
@@ -28,6 +28,12 @@ bun run inspect
|
|
|
28
28
|
|
|
29
29
|
Tests mirror source domains beneath `tests/`; use `tests/integration/` for cross-domain behavior and `tests/tooling/` for repository tooling. Keep shared fixtures and helpers under `tests/fixtures/` and `tests/support/`. Application modules live under `src/config`, `src/cli`, `src/installer`, `src/http`, `src/server`, `src/hooks`, and `src/skills`, alongside `src/intelligence`, `src/runtime`, `src/patch`, and `src/tools`. Operational scripts are grouped under `scripts/build`, `scripts/release`, `scripts/validation`, `scripts/testing`, and `scripts/benchmark`; host-smoke implementation belongs under `scripts/testing`. Keep stdio output protocol-safe: server diagnostics belong on stderr, never stdout.
|
|
30
30
|
|
|
31
|
+
Validate locally before committing or pushing for CI. Treat CI as independent confirmation, not the primary debugging loop.
|
|
32
|
+
|
|
33
|
+
When a check exposes a defect, inspect the related domain for the same failure class. Add a reproducer, review sibling paths, and request an independent review before pushing again. After affected checks and review pass, freeze source and run `bun run check:coverage`; a passing test suite alone does not satisfy the per-file coverage gate. Do not mutate source during validation. Restart affected and downstream gates after an edit.
|
|
34
|
+
|
|
35
|
+
Keep boundary contracts executable. Use explicit phase handshakes or injected clocks for cancellation and deadline tests. Fixed delays before configuration or preflight cannot prove the lock-wait phase. Freeze configuration identity inputs for cached reloads and test ambient environment and caller mutation. Treat filesystem events as hints and compare fingerprints before invalidation. Track directory selection identity separately from configuration content; ordinary child operations must preserve workspace generations and grants. Test Windows and POSIX path spellings on every host, preserve user-owned configuration through install-update-uninstall cycles, and validate remote diagnostic payloads before reusing them. Capture external service state before mutation and validate original dependencies before every recovery command. Run independent recovery despite unrelated file conflicts. Keep optional diagnostics separate from required protocol success. Preserve observed approval outcomes and propagate unrelated failures. Prefer shared parsers and ownership helpers over duplicated conditionals; add regression matrices when a source-pattern lint cannot establish behavior safely.
|
|
36
|
+
|
|
31
37
|
Before opening a pull request, run:
|
|
32
38
|
|
|
33
39
|
```bash
|