Testing and checks¶
CI has two jobs on the boxd-public runner. docs builds this site with mkdocs build --strict, and ci needs it and runs the plugin's checks. The required status check is ci.
Locally¶
npm ci --ignore-scripts
npm run bundle && git diff --exit-code dist/
npm run check
python3 -m venv .venv && .venv/bin/pip install -r docs/requirements.txt
.venv/bin/mkdocs build --strict
npm run check runs, in order:
biome check .for lint;tsc -p tsconfig.jsonfor the type check;npm test, which bundlesdist/index.jsand runs the unit, fixture and real 2.4.1 host tests;npm run test:pack, which packs the tarball, installs it and starts it in OpenCode 2.4.1;plugin-kit check, the conformance, doc file set and forbidden pattern checks;plugin-kit docs --check, which fails when a generated section drifts.
A full check loads the real host; run one at a time on a shared machine.
The manifest first¶
Change capabilities in package.json before the code: a method, source or action, with its class, operations, accounts and cost. Then the handler in src/handlers/, the provider call in src/provider/, and the tests. The register refuses a handler the manifest does not declare, and a declared method without one.
Generated docs¶
Generated sections sit between <!-- generated:<section> --> and <!-- /generated:<section> -->. Edit the manifest, then run:
npm run check fails when a section drifts. The five files that carry generated sections are README.md, docs/capabilities.md, docs/configuration.md, docs/accounts.md and docs/automations.md.
Fixtures¶
fixtures/conformance.json is the plugin's evidence to the conformance kit. It records two synthetic aliases (work, personal) driven through the real handlers over a synthetic Granola server that answers in the live text shapes. Regenerate it after changing an answer:
Every person, meeting, id and link in it is invented. For a real-account recording, use npx plugin-kit record --account <alias>; it redacts secrets and personal data before writing.
More¶
CONTRIBUTING.md has the commit and pull request conventions.