thebird 1.2.27 → 1.2.28
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/CLAUDE.md +5 -0
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -134,6 +134,11 @@ Interactive terminal in docs/index.html runs thebird + Node.js server in WebCont
|
|
|
134
134
|
- **iframe allow attribute**: Remove `allow="cross-origin-isolated"` — not a valid Feature Policy keyword. WebContainer iframes work without it.
|
|
135
135
|
- **agent.js routing**: Inside container, agent.js uses `@anthropic-ai/sdk` with `baseURL: "http://localhost:3000"` pointing at thebird proxy (server.js), which translates Anthropic format → Gemini.
|
|
136
136
|
|
|
137
|
+
### spawn() and window.__debug API
|
|
138
|
+
|
|
139
|
+
- **container.spawn() env passing**: `container.spawn('node', ['agent.js', task], { env: { GEMINI_API_KEY: key } })` passes env vars directly to spawned process. Third arg accepts `{ env, cwd, terminal }`.
|
|
140
|
+
- **window.__debug.runAgent(key, task)**: Spawns agent.js in WebContainer with GEMINI_API_KEY env, pipes stdout/stderr to xterm terminal, tracks state in `window.__debug.validation = { running, output, exitCode }`.
|
|
141
|
+
|
|
137
142
|
## Environment Notes
|
|
138
143
|
|
|
139
144
|
- Repo remote: `https://github.com/AnEntrypoint/thebird.git` (capital A)
|
package/package.json
CHANGED