Skip to content
Jupiter documentation
Menu

Build and test

Set up a checkout, run the checks, install the checkout into opencode and rebuild these pages with the documentation generator.

Set up#

You need Node.js 22 or later and pnpm 11.4.0. The repository pins the pnpm version for Corepack.

pnpm install sets core.hooksPath to .githooks.

Run the checks#

check runs five steps and stops at the first that fails:

The tests install into temporary directories and never touch ~/.config/opencode. The syntax tests for dash, shellcheck and PowerShell are skipped when the tool is missing, and the output names each skipped test.

check works offline, so it does not run the documentation generator. Documentation has the command for the pages.

Git hooks#

Source layout#

tests/plugin-contract.test.ts compiles src/opencode-v2.ts against the real @opencode/plugin types, so pnpm run check fails when the API changes.

Try a change in opencode#

The plugin entry in opencode.json now points at the checkout. Restart opencode to load a change. Run ./install-dev.sh --remove to undo it.

Documentation#

These pages are written in docs-src/ and generated with jupiter-docs from belikh/docs. The files in docs/ are output. Change a page in docs-src/, then run:

Commit docs-src/ and docs/ together.

The generator is not on npm, so pnpm install cannot provide it. scripts/docs.mjs clones it into .jupiter-docs/ on first use and downloads the design system release that it reads. Git ignores that directory. The first run needs git, npm and network access.

Every other argument goes to jupiter-docs unchanged.

A checkout that JUPITER_DOCS_DIR names must be ready to run. If it is incomplete, the script stops and names each missing part:

The Docs workflow runs the validation, the check of docs/ and the site build on every push to main and on every pull request. The release workflow runs it too, because docs/ is part of the release archive.

Source: belikh/OpenUltraCode v2.1.1