-
Notifications
You must be signed in to change notification settings - Fork 0
overview getting started
Douwe de Vries edited this page Jul 2, 2026
·
1 revision
This repo uses Bun, TypeScript, Biome, and GitHub Actions. The package builds an OpenCode plugin entrypoint, a small CLI, and declaration files from the TypeScript sources in src/.
| Tool | Required by |
|---|---|
Node.js >=20
|
package.json engine and TypeScript tooling. |
| Bun | Local scripts in package.json. |
| OpenCode | Runtime host for the published plugin. |
| npm | Release publishing and smoke-package consumption checks. |
bun install
bun run checkbun run check runs bun run typecheck, bun run lint, bun run build, and bun run test in that order, as defined in package.json.
| Script | Output |
|---|---|
bun run build:plugin |
Bundles src/index.ts to dist/index.js. |
bun run build:cli |
Bundles src/cli.ts to dist/cli.js with a Node shebang. |
bun run build:types |
Emits declarations from tsconfig.types.json. |
bun run build |
Runs all three build steps. |
The public install path in README.md is:
opencode plugin opencode-plugin-flow@4.2.0 --global --force
npx -y opencode-plugin-flow@4.2.0 syncAfter restarting OpenCode, a user can start with /flow-auto <goal> or split the loop with /flow-plan, /flow-run, and /flow-review. The CLI commands behind the npm binary are implemented in src/cli.ts.
| Command | Scope |
|---|---|
bun run typecheck |
TypeScript check using tsconfig.json. |
bun run lint |
Biome check for src and tests. |
bun run test |
All Bun tests under tests/. |
bun run package:smoke |
Packed package and consumer import check. |
bun run smoke:live |
Real OpenCode server smoke, gated by FLOW_LIVE_SMOKE=1. |
Related pages: Testing, Tooling, and Deployment.