thebird 1.2.48 → 1.2.50

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.
package/README.md CHANGED
@@ -182,20 +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** — Agentic chat powered by thebird `streamGemini` running in-browser (bundled in `docs/vendor/thebird-browser.js`). Tools: `read_file`, `write_file`, `list_files` (IDB-backed, no container required), `run_command` (WebContainer shell), `read_terminal` (xterm buffer snapshot), `send_to_terminal` (jsh stdin). No proxy server required. 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
- - **Preview tab** — iframe pointed at the WebContainer's HTTP server, live-updated when the server starts
185
+ - **Chat tab** — Agentic chat powered by thebird `streamGemini` running in-browser (bundled in `docs/vendor/thebird-browser.js`). Tools: `read_file`, `write_file`, `list_files` (IDB-backed), `run_command`, `read_terminal`, `send_to_terminal`. No proxy server required. Gemini API key stored in localStorage.
186
+ - **Terminal tab** — Browser-native POSIX shell (xstate v5 state machine, V8 eval) backed by IndexedDB filesystem. Built-in commands: `ls`, `cat`, `cd`, `pwd`, `mkdir`, `rm`, `cp`, `mv`, `echo`, `env`, `export`, `node`, `npm install`. Node REPL mode with persistent scope, `require()` from IDB node_modules, `http.createServer` polyfill. No WebContainer or server required.
187
+ - **Preview tab** — iframe served by a service worker reading files from IDB at `/preview/*`. Hot-reloads 5s after any file write.
188
188
 
189
189
  All JS and CSS dependencies are vendored locally in `docs/vendor/` — no CDN required at runtime.
190
190
 
191
- Run the agentic CLI inside the terminal tab:
192
-
193
- ```
194
- GEMINI_API_KEY=<key> node agent.js "your task"
195
- ```
196
-
197
- `agent.js` uses `@anthropic-ai/sdk` pointing at `http://localhost:3000` (thebird proxy) with tools: `read_file`, `write_file`, `run_command`.
198
-
199
191
  ## License
200
192
 
201
193
  MIT
@@ -13,6 +13,7 @@ function idbWrite(path, content) {
13
13
  if (!snap) throw new Error('idb snapshot not ready');
14
14
  snap[path] = content;
15
15
  window.__debug.idbPersist?.();
16
+ window.__debug.shell?.onPreviewWrite?.();
16
17
  }
17
18
 
18
19
  const TOOLS = {
package/docs/index.html CHANGED
@@ -45,5 +45,6 @@ function switchTab(t) {
45
45
  </script>
46
46
  <script type="module" src="app.js"></script>
47
47
  <script type="module" src="terminal.js"></script>
48
+ <script type="module" src="preview-sw-client.js"></script>
48
49
  </body>
49
50
  </html>
@@ -20,3 +20,5 @@ export async function registerPreviewSW() {
20
20
  throw err;
21
21
  }
22
22
  }
23
+
24
+ registerPreviewSW();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thebird",
3
- "version": "1.2.48",
3
+ "version": "1.2.50",
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",