tools/release.sh builds -p lucisv_mcp for the host and every cross triple, stages lucisv-mcp[.exe] beside the two binaries (three per platform package, fifteen in the all-platforms one; the universal package still carries none), smoke-tests it (editors/vscode/mcp_smoke.js: initialize, tools/list ≥ 26, project_overview) loose and unzipped from the host and all-platforms packages; tools/audit_artifacts.sh audits the third name and rejects any other; prune_release_assets.sh unchanged (seven vsix names). editors/vscode/mcp.js: the three-rung binary ladder (lucisv.mcp.path → bundled → PATH), one McpStdioServerDefinition per workspace folder — the constructor is POSITIONAL (label, command, args, env, version) with cwd set afterwards; the plan's object form was wrong and is corrected — with `--root <folder> --index-cache <storage>`, refreshed on folder and setting changes, guarded so VS Code < 1.101 registers nothing but the command; a missing binary refused at resolve time with one output-channel line; the `lucisv.mcp.copyConfig` command puts the Claude Code / Cursor / VS Code snippet on the clipboard. package.json: contributes.mcpServerDefinitionProviders, lucisv.mcp.enabled/path, the command; engine stays ^1.82.0 (vsce 4 accepts). ci.yml runs node --test over the extension's unit tests. Docs: docs/site guides/agents.md with the tool table generated from the binary (site rebuilt), README paragraph, RELEASING.md, extension README/CHANGELOG (Unreleased), manual-acceptance rows 18–25 for the live-VS Code checks. QA (Opus): API signature confirmed against VS Code 1.138's vscode.d.ts; 8 mutation checks caught by mcp_test.js; release.sh run end to end, vsix contents listed (three binaries, mcp.js, no test files), SHA256SUMS verified, the embedded binary smoke-tested, the vsix installed into an isolated profile. Gates: node --test 6/6, fmt clean. Co-Authored-By: Claude Fable 5.1 <[email protected]>
44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
# CI: the three checks CLAUDE.md requires before any work is finished,
|
|
# plus the extension's JavaScript tests and the corpus gate, enforced on
|
|
# every push. Runs on the self-hosted mac-arm64 runner in host mode (no
|
|
# containers), so the toolchain is the same one releases are built with.
|
|
name: ci
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: macos-arm64
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: cargo fmt
|
|
run: cargo fmt --all -- --check
|
|
- name: cargo clippy
|
|
run: cargo clippy --all-targets -- -D warnings
|
|
- name: cargo test
|
|
run: cargo test --workspace
|
|
# The VS Code extension's headless checks (a stubbed `vscode`, no npm
|
|
# dependencies): node >= 18 for `--test`; the runner has node 22.
|
|
- name: extension tests
|
|
run: node --test editors/vscode/*_test.js
|
|
|
|
# The 99.1% headline, enforced: score the 820-file corpus and fail on any
|
|
# regression below scripts/corpus-baseline (verification errors and
|
|
# crashes fail outright). The corpus is pinned-rev clones (not in the
|
|
# repo), cached on the runner host and fetched once on a cache miss.
|
|
corpus:
|
|
runs-on: macos-arm64
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Ensure the cached corpus
|
|
run: |
|
|
corpus="$HOME/.cache/lucisv-corpus"
|
|
[ -d "$corpus" ] || tools/corpus_fetch.sh "$corpus"
|
|
echo "CORPUS=$corpus" >> "$GITHUB_ENV"
|
|
- name: Build the release binary the scorer drives
|
|
run: cargo build --release -p lucisv
|
|
- name: Score and gate
|
|
run: scripts/corpus_gate.sh "$CORPUS"
|