thebird 1.2.29 → 1.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CLAUDE.md +21 -0
  2. package/README.md +4 -2
  3. package/package.json +1 -1
package/CLAUDE.md CHANGED
@@ -82,6 +82,27 @@ Arguments parsed in index.js lines 88-115.
82
82
  - Download errors logged with context
83
83
  - Progress logged per view: `[1/4] front view...`
84
84
 
85
+ ## docs/ Build System
86
+
87
+ All frontend dependencies are vendored to `docs/vendor/` to eliminate CDN brittleness.
88
+
89
+ **Vendored files:**
90
+ - `ui-libs.js` (7.7KB): webjsx + htm — bundled with esbuild
91
+ - `xterm-bundle.js` (345KB): @xterm/xterm + @xterm/addon-fit — bundled with esbuild
92
+ - `webcontainer.js` (12KB): @webcontainer/api — bundled with esbuild (no runtime CDN deps)
93
+ - `tailwind.css` (13KB): generated by @tailwindcss/cli v4, purged from `docs/**/*.{html,js}`
94
+ - `rippleui.css` (4.7MB): downloaded directly (includes Tailwind v3 preflight, not utilities)
95
+ - `xterm.css` (7KB): downloaded directly
96
+
97
+ **Regenerate:**
98
+ - esbuild bundles: install devDeps then run esbuild with entry files in project root
99
+ - Tailwind: `tailwindcss --input '_tw-input.css' --output docs/vendor/tailwind.css --minify` where input contains `@import "tailwindcss"`
100
+ - CSS files: fetch from jsdelivr directly
101
+
102
+ **Key detail**: esm.sh returns stub files by default — fetch the actual `.mjs` bundle URL paths directly when downloading from esm.sh.
103
+
104
+ **DevDeps**: esbuild, @tailwindcss/cli, @xterm/xterm, @xterm/addon-fit, @webcontainer/api, webjsx, htm.
105
+
85
106
  ## Development Constraints
86
107
 
87
108
  - Max 200 lines per file (split before hitting limit)
package/README.md CHANGED
@@ -182,10 +182,12 @@ Messages follow the Anthropic SDK format. All image block variants are supported
182
182
 
183
183
  Live at **[anentrypoint.github.io/thebird](https://anentrypoint.github.io/thebird/)**
184
184
 
185
- - **Chat tab** — Gemini chat via direct API (Gemini API key stored in localStorage)
186
- - **Terminal tab** — WebContainer (in-browser Node.js) booting thebird's full stack: `npm install`, `node server.js` (Anthropic→Gemini proxy on port 3000), then a `jsh` shell
185
+ - **Chat tab** — Agentic Gemini chat with tool use: `read_file`, `write_file`, `run_command` dispatch to the WebContainer FS and shell. Gemini API key stored in localStorage.
186
+ - **Terminal tab** — WebContainer (in-browser Node.js) booting thebird's full stack: `npm install`, `node server.js` (Anthropic→Gemini proxy on port 3000), then a `jsh` shell. Run Agent button validates the agent loop from the terminal.
187
187
  - **Preview tab** — iframe pointed at the WebContainer's HTTP server, live-updated when the server starts
188
188
 
189
+ All JS and CSS dependencies are vendored locally in `docs/vendor/` — no CDN required at runtime.
190
+
189
191
  Run the agentic CLI inside the terminal tab:
190
192
 
191
193
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thebird",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "description": "Anthropic SDK to Gemini streaming bridge — drop-in proxy that translates Anthropic message format and tool calls to Google Gemini",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",