@mwillbanks/ast-mcp 0.6.1 → 0.6.2
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 +5 -7
- package/dist/ast-mcp.js +390 -390
- package/dist/ast-mcp.js.map +7 -29
- package/dist/workers/code-intelligence-worker.js +31 -31
- package/dist/workers/code-intelligence-worker.js.map +3 -25
- package/dist/workers/dynamic-wasm-worker.js.map +1 -1
- package/dist/workers/infra-wasm-worker.js.map +1 -1
- package/dist/workers/jvm-wasm-worker.js.map +1 -1
- package/dist/workers/legacy-wasm-worker.js.map +1 -1
- package/dist/workers/systems-wasm-worker.js.map +1 -1
- package/package.json +10 -11
- package/src/config/index.ts +10 -7
- package/src/installer/index.ts +17 -7
- package/src/runtime/binary-resolution.ts +19 -5
- package/src/tools/lifecycle.ts +6 -1
- package/templates/skills/ast-mcp/scripts/binary-resolution.ts +19 -5
- package/templates/skills/ast-mcp/scripts/check-install.ts +15 -16
- package/dist/ast-grep-napi.linux-x64-gnu-9t6vx1x7.node +0 -0
- package/dist/ast-grep-napi.linux-x64-musl-a0a0ee7h.node +0 -0
- package/dist/workers/ast-grep-napi.linux-x64-gnu-9t6vx1x7.node +0 -0
- package/dist/workers/ast-grep-napi.linux-x64-musl-a0a0ee7h.node +0 -0
package/CONTRIBUTING.md
CHANGED
|
@@ -4,7 +4,7 @@ Thanks for helping improve ast-mcp. Changes should preserve its core promise: re
|
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
7
|
-
- Bun 1.4.
|
|
7
|
+
- Bun 1.4.4 or newer
|
|
8
8
|
- Node.js 22.19 or newer when running MCP Inspector commands
|
|
9
9
|
- native intelligence dependencies installed by `bun install`
|
|
10
10
|
- a checkout with no unrelated changes in files you plan to edit
|
|
@@ -33,14 +33,12 @@ Before opening a pull request, run:
|
|
|
33
33
|
```bash
|
|
34
34
|
bun run format
|
|
35
35
|
bun run tools:check
|
|
36
|
-
bun run
|
|
36
|
+
bun run lint
|
|
37
37
|
bun run test
|
|
38
38
|
bun run skill:check
|
|
39
39
|
bun run evals:check
|
|
40
40
|
bun run fallow
|
|
41
41
|
bun run build
|
|
42
|
-
bun run --cwd website format:check
|
|
43
|
-
bun run --cwd website typecheck
|
|
44
42
|
bun run --cwd website lint
|
|
45
43
|
bun run --cwd website test
|
|
46
44
|
BASE_PATH=/ast-mcp/ bun run --cwd website build
|
|
@@ -48,7 +46,7 @@ bun run --cwd website test:browser
|
|
|
48
46
|
bun pm pack --dry-run
|
|
49
47
|
```
|
|
50
48
|
|
|
51
|
-
The repository's `bun run format` command
|
|
49
|
+
The repository's `bun run format` command runs `bun fmt`; `bun run format:check` runs `bun fmt --check`. This development formatter is separate from ast-mcp's optional runtime formatting. Runtime formatting defaults to disabled and never downloads formatter binaries. See the [formatting guide](https://mwillbanks.github.io/ast-mcp/docs/guides/formatting/) for external formatter configuration. The `lint` script combines formatting checks, Bun typechecking, and runtime import-boundary validation. Use `bun check --no-script` to invoke Bun's native checker without the repository's aggregate `check` script. General Oxlint diagnostics beyond these gates are no longer enabled.
|
|
52
50
|
|
|
53
51
|
### Optional live host smoke checks
|
|
54
52
|
|
|
@@ -66,7 +64,7 @@ The default timeout is 60 seconds. Set `AST_MCP_HOST_SMOKE_TIMEOUT_MS` to change
|
|
|
66
64
|
|
|
67
65
|
Use a local Windows VM when one is available. If storage prevents that, create one temporary, isolated Windows debug workflow and connect to its runner before changing Windows code. The key-only OpenSSH and Bore workflow used for PR #18 is recorded at commit `f39a5d1` (`.github/workflows/windows-debug.yml`). Restrict it to the intended PR and actor. Fetch only that actor's registered GitHub SSH keys, disable password authentication, validate `sshd_config`, and restart `sshd` before exposing port 2222. Verify the pinned Bore ZIP SHA-256 before starting the tunnel. Delete the temporary workflow after native proof; do not make shell access a release gate.
|
|
68
66
|
|
|
69
|
-
Windows Actions runners can expose the profile through an 8.3 alias. The caller's path spelling must remain native for config values and formatter arguments. Resolve aliases separately when checking authorization, containment, and locks. Use this command prompt recipe in the PR checkout with Bun 1.4.
|
|
67
|
+
Windows Actions runners can expose the profile through an 8.3 alias. The caller's path spelling must remain native for config values and formatter arguments. Resolve aliases separately when checking authorization, containment, and locks. Use this command prompt recipe in the PR checkout with Bun 1.4.4 and dependencies installed:
|
|
70
68
|
|
|
71
69
|
```cmd
|
|
72
70
|
set "PATH=%USERPROFILE%\.bun\bin;%PATH%"
|
|
@@ -95,4 +93,4 @@ An SSH service may not inherit Bun's Actions PATH. The recipe resolves Bun from
|
|
|
95
93
|
|
|
96
94
|
## Releases
|
|
97
95
|
|
|
98
|
-
Releases are automated from `main`. Release Please opens and maintains the release pull request. Before validation is dispatched, the workflow formats its generated `CHANGELOG.md` with the
|
|
96
|
+
Releases are automated from `main`. Release Please opens and maintains the release pull request. Before validation is dispatched, the workflow formats its generated `CHANGELOG.md` with the pinned Bun formatter and checks the result. If formatting changes the file, it creates a changelog-only commit against the expected release-branch head; if already formatted, it skips that commit. It dispatches CI for the resulting exact head SHA. Formatting failures, API errors, invalid release PRs, or concurrent head changes stop dispatch. Merging the release pull request creates the GitHub release and builds one package archive. Clean Bun and npm production installations qualify those exact bytes on macOS ARM64, Linux ARM64 GNU, Linux x64, and Windows x64. ARM64 consumers also test the Bun 1.4.3 runtime minimum. Archive checksum verification and all consumer jobs must pass before npm publication with provenance. The publish job downloads the qualified archive and does not rebuild it.
|