Skip to content

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:

  1. biome check . for lint;
  2. tsc -p tsconfig.json for the type check;
  3. npm test, which bundles dist/index.js and runs the unit, fixture and real 2.4.1 host tests;
  4. npm run test:pack, which packs the tarball, installs it and starts it in OpenCode 2.4.1;
  5. plugin-kit check, the conformance, doc file set and forbidden pattern checks;
  6. 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:

npx plugin-kit docs

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:

npm run fixtures

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.