Develop
The repository is the pi-better-show package: core, elements, React wrappers, the server entry, and the show_doc extension, all TypeScript source.
The package uses Bun for its own code.
Checks
Section titled “Checks”bun installbun testbun run check # tsc, tsc for core without node types, biomebun run demo # examples/elements.html on http://127.0.0.1:4177/bun run show # the show_doc page server on examples/, with a fake pi that prints each messageRun bun test and bun run check before declaring a change verified. bun run demo draws every element with its answer log; bun run show serves the real page server and prints each message the agent would receive.
README.mdandREADME.zh-TW.mdstay short: the pitch, install, quick start, and a one-line-per-block table.- This site is the reference.
site/is a Starlight project served at https://wayne930242.github.io/pi-better-show/ by.github/workflows/pages.yml; it uses npm, like the other documentation sites, while the package uses Bun. docs/reference.mdis the source of the Reference pages;site/scripts/sync.mjssplits it by H2, so keep its headings stable.CHANGELOG.mdbecomes the changelog page, anddocs/imagesis copied to the site.docs/reference.zh-TW.mdmirrors it line for line, and its first line names the English commit it matches.cd site && npm ci && npm run check && npm run buildchecks the twin, the hand-written pages’ zh-TW twins, and every internal link and anchor.
Releasing
- Bump the version in
package.jsonand add the release toCHANGELOG.mdtogether; docs-only changes need no bump. - The
Publishworkflow publishes from av*tag.