Files
charleswiltgen__axiom/.github/workflows/cursor-plugin.yml
T
Charles Wiltgen 545798e3bb fix(deps): unblock pi install by overriding the vitepress-plugin-mermaid peer
`pi install git:github.com/CharlesWiltgen/Axiom` — the command in README.md and
the Pi setup guide — failed for every user with npm ERESOLVE. Pi runs a bare
`npm install --omit=dev` in its clone; --omit=dev skips INSTALLING
devDependencies but npm still RESOLVES the whole graph, so a docs-toolchain
conflict aborted an install that has nothing to install (the root manifest
declares no runtime dependencies at all).

vitepress-plugin-mermaid peers on vitepress ^1 and has no v2-compatible release,
and mermaid is used on 25 docs pages, so the plugin cannot be dropped. A narrow
`overrides` entry fixes resolution without disabling peer checks repo-wide:
strict `npm ci` now passes, so both workflows drop --legacy-peer-deps. That flag
was what hid this from CI for seven months — it landed 73 seconds after mermaid
did (e53671ac).

Toolchain moved to current while here: vitepress 2.0.0-alpha.15 (Nov 2025) ->
2.0.0-alpha.19, and mermaid 11.12.2 -> 11.17.1 inside the existing ^11 range.
npm audit drops from 15 vulnerabilities (8 moderate, 7 high) to 2, clearing a
DOMPurify XSS. Docs build stays green with all 25 mermaid pages rendering.

Closes #54.
2026-08-24 09:57:23 -07:00

43 lines
1.0 KiB
YAML

name: Cursor Plugin
on:
pull_request:
paths:
- '.claude-plugin/plugins/axiom/**'
- 'scripts/cursor/**'
- 'scripts/build-cursor.ts'
- 'scripts/inline-auditors.ts'
- '.cursor-plugin/**'
- 'axiom-cursor/**'
- 'package.json'
- 'package-lock.json'
- 'README.md'
- 'CURSOR-MARKETPLACE-SUBMISSION.md'
- 'docs/**'
- '.github/workflows/cursor-plugin.yml'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
- run: npm ci
- run: npm run test:cursor
- run: npm run check:cursor