From 2486072b682dc381572ec7e03299aeb8362f9d09 Mon Sep 17 00:00:00 2001 From: P-Theo
diff --git a/docs/configuration.md b/docs/configuration.md
index ae24d9d..0d28c6a 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -2,7 +2,7 @@
Options go in the `options` field of the plugin's `cli.json` entry.
-The plugin always loads. An unknown key, or a value of the wrong type, falls back to the default; a number outside its range is clamped to the nearest limit.
+The plugin always loads. An unknown key is ignored; a value of the wrong type falls back to the default; a number outside its range is clamped to the nearest limit.
| Option | Default | Range | Description |
| --------------- | -------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
diff --git a/docs/development.md b/docs/development.md
index f2ba676..96222d3 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -10,7 +10,14 @@ npm test # bun test
npm run build # write dist/tui.js and its sibling modules
```
-Tests run through `bun test`. `bunfig.toml` preloads `@opentui/solid/preload` so tests use Solid's client build and can observe reactive updates. `tests/tracker.test.ts` covers the throughput tracker, `tests/options.test.ts` the option parsing and label formatting, `tests/debug.test.ts` the debug switch, `tests/plugin.test.ts` the event wiring through a fake context and a patched `setInterval`, `tests/options-schema.test.ts` pins `options.schema.json` and the docs to the same constants the parser uses, and `tests/entrypoint.test.tsx` runs `scripts/build.mjs`, imports `dist/tui.js`, and renders the composer claim with `testRender` asserting the label appears while streaming, settles and freezes, resets for a new prompt, and stays per-session.
+Tests run through `bun test`. `bunfig.toml` preloads `@opentui/solid/preload` so tests use Solid's client build and can observe reactive updates.
+
+- `tests/tracker.test.ts` covers the throughput tracker.
+- `tests/options.test.ts` covers the option parsing and label formatting.
+- `tests/debug.test.ts` covers the debug switch.
+- `tests/plugin.test.ts` covers the event wiring through a fake context and a patched `setInterval`.
+- `tests/options-schema.test.ts` pins `options.schema.json` and the docs to the same constants the parser uses.
+- `tests/entrypoint.test.tsx` runs `scripts/build.mjs`, imports `dist/tui.js`, and renders the composer claim with `testRender`, asserting the label appears while streaming, settles and freezes, resets for a new prompt, and stays per-session.
`scripts/*.mjs` run under plain node and stay outside the `tsconfig.json` typecheck — they are exercised by CI and the entrypoint test instead.
@@ -39,7 +46,7 @@ The host also picks up plugins from a `plugin` or `plugins` directory in the con
## Build
-The host only applies the Solid transform outside `node_modules`, and an installed package lives inside it, so `scripts/build.mjs` runs the transform ahead of time and writes `dist/tui.js` plus its sibling modules (`dist/tracker.js`, `dist/options.js`, `dist/debug.js`), which the entrypoint imports relatively. See `scripts/build.mjs` and the `exports` and `files` fields in `package.json`. The tarball ships only `dist` and `options.schema.json`, so `tui.tsx` never reaches the package — it exists only for path entries.
+`scripts/build.mjs` runs the transform ahead of time and writes `dist/tui.js` plus its sibling modules (`dist/tracker.js`, `dist/options.js`, `dist/debug.js`), which the entrypoint imports relatively, because the host only applies the Solid transform outside `node_modules` and an installed package lives inside it. See `scripts/build.mjs` and the `exports` and `files` fields in `package.json`. The tarball ships only `dist` and `options.schema.json`, so `tui.tsx` never reaches the package — it exists only for path entries.
`solid-js` and `@opentui/solid` are optional peer dependencies; the host supplies its own copies.
@@ -66,7 +73,7 @@ That means one directory and one log per PID. Hot reloads append to the same fil
- A finished run keeps its state until the next run replaces it, and the number of tracked sessions is bounded. See `MAX_TRACKED_RUNS` in `src/tracker.ts`.
- A generation guard makes sure only the newest generation of the plugin counts tokens and renders.
-For the event names and the formulas, read `src/`.
+Read `src/` for the event names and the formulas.
## Example run
diff --git a/docs/release.md b/docs/release.md
index 89ae06c..6db36e5 100644
--- a/docs/release.md
+++ b/docs/release.md
@@ -6,7 +6,7 @@ A path entry loads the `tui.tsx` source through the host's transform; an install
The pinned `@opencode/*` beta is the build and test baseline. Move it in the same pull request as the fix or feature that needs it; CI validates the pin format, the README compatibility floor, and that the installed CLI reports the pinned version.
-A docs-only release skips steps 1 to 5. The bundle is unchanged, and CI already packs and imports the artifact on every push to `main`. Go straight to step 6. npmjs.com only refreshes the rendered README when a new version is published, so a README change that matters on the package page needs a patch release to reach it.
+A docs-only release skips steps 1 to 5. The bundle is unchanged, and CI already packs and imports the artifact on every push to `main`. Go straight to step 6. A README change that matters on the package page needs a patch release to reach it, because npmjs.com only refreshes the rendered README when a new version is published.
## 1. Build the tarball