Mike0021's picture
Enable browser HTTP commands with CORS-aware errors and bounded requests
39371ea verified
|
Raw History Blame Contribute Delete
1.37 kB

Pi CLI presentation components

These files are unmodified copies from the published @earendil-works/pi-coding-agent@0.85.1 npm tarball, under dist/modes/interactive/. provenance.json records their SHA-256 digests. Pi's MIT license is included.

  • CustomEditor is the CLI's actual editor subclass, extending pi-tui's editor.
  • UserMessageComponent and AssistantMessageComponent are its actual message renderers.
  • markdown-transform.js is their upstream helper.
  • light.json and dark.json are the upstream theme palettes; the app uses dark.

The build redirects their @earendil-works/pi-tui import to a selective export of the installed real pi-tui package. It redirects their Node theme service to src/pi/theme.mjs, which uses the dark palette with brighter secondary text, without filesystem watchers or Node syntax highlighting. The build also makes Node-only timer unref() calls optional in browsers. See scripts/pi-browser.mjs for all host adaptations. The vendored files themselves remain unmodified.

The rest of the Node CLI is not vendored. Browser shell tool cards, slash-command dispatch, worker integration, and workspace controls are app code. They do not claim to implement the full CLI's sessions, extensions, or provider management.

Upstream: https://github.com/earendil-works/pi/tree/v0.85.1/packages/coding-agent