thebird 1.2.32 → 1.2.34

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 +3 -0
  2. package/README.md +1 -1
  3. package/package.json +1 -1
package/CLAUDE.md CHANGED
@@ -130,6 +130,9 @@ Run examples against real Gemini API to validate message translation.
130
130
  - Some models have different tool naming conventions — check provider docs
131
131
  - Streaming response parsing varies by provider — see lib/providers/ for details
132
132
  - OAuth tokens expire — gembird uses browser session instead of capturing tokens
133
+ - Cannot bundle index.js directly for browser — it imports Node-only modules (oauth.js, config.js, cloud-generate.js) at top level. Create a separate browser entry that imports only lib/client.js, lib/errors.js, lib/convert.js. Use ESM wrapper (not CJS module.exports) to preserve named exports in bundle.
134
+ - Tool parameter types must be lowercase for Gemini API — `object`, `string`, `number` not `OBJECT`, `STRING`, `NUMBER`. Uppercase types fail schema validation.
135
+ - agentGenerate passes raw Anthropic-format messages to streamGemini internally, which calls convertMessages. Do NOT pre-convert in app.js — double-conversion breaks tool schemas.
133
136
 
134
137
  ## Files
135
138
 
package/README.md CHANGED
@@ -182,7 +182,7 @@ 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 Gemini chat with tool use: `read_file`, `write_file`, `run_command` dispatch to the WebContainer FS and shell. Gemini API key stored in localStorage.
185
+ - **Chat tab** — Agentic chat powered by thebird `streamGemini` running in-browser (bundled in `docs/vendor/thebird-browser.js`). Tool use: `read_file`, `write_file`, `run_command` dispatch to WebContainer FS and shell. No proxy server required. Gemini API key stored in localStorage.
186
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thebird",
3
- "version": "1.2.32",
3
+ "version": "1.2.34",
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",