typebulb 0.61.12 → 0.62.0
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 +2 -2
- package/SKILL.md +4 -4
- package/dist/agents/claude/client.js +246 -256
- package/dist/agents/claude/styles.css +50 -61
- package/dist/agents/codex/client.js +290 -300
- package/dist/agents/codex/styles.css +50 -61
- package/dist/agents/pi/client.js +260 -270
- package/dist/agents/pi/styles.css +50 -61
- package/dist/index.js +275 -319
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ typebulb stop --agent Stop this project's agent mirror; its bulbs keep
|
|
|
66
66
|
typebulb stop --global Stop every running bulb and mirror, all projects (housekeeping)
|
|
67
67
|
typebulb trust [file] Remember a bulb as trusted (no arg: list trusted bulbs)
|
|
68
68
|
typebulb untrust <file> Forget a bulb's trust (back to Restricted)
|
|
69
|
-
typebulb status [agent] A sub-agent's status:
|
|
69
|
+
typebulb status [agent] A sub-agent's status: what it waits on, its commands, files and hand-backs (no arg: the session's overview)
|
|
70
70
|
typebulb --no-watch <file> Disable hot reload
|
|
71
71
|
typebulb --no-open <file> Open nothing at launch, not even inside VS Code
|
|
72
72
|
typebulb --mode <name> <file> Also load .env.<name> on top of .env / .env.local
|
|
@@ -322,7 +322,7 @@ The host owns light/dark; you style for both.
|
|
|
322
322
|
- **A bulb's working files land beside it automatically** — relative `tb.fs` paths resolve to the bulb's folder, in `code.tsx` and `server.ts` alike: `tb.fs.write('run.json')`, no path prefix, no mkdir.
|
|
323
323
|
- **Images & media: an `assets/` subfolder of the bulb's folder** (`birds.bulb.md` → `birds/assets/robin.png`) — `<img src="assets/robin.png">` just works (always that relative form, never `/assets/…`), every tier except inline. It holds what the bulb ships in order to run (e.g. images), never results.
|
|
324
324
|
- **See what's already running** — `typebulb logs` with no argument lists every running bulb and mirror; check it before launching anything.
|
|
325
|
-
- **Checking on
|
|
325
|
+
- **Checking on sub-agents you spawned** — `typebulb status` is your session's overview, instant and counted from the transcripts: what is running, failure streaks, and the files to check before `git add`. `typebulb status <id or description>` is one agent's commands, files and hand-backs. Run it before committing, and when a hand-back arrives.
|
|
326
326
|
- **Self-testing a local bulb** — To confirm a bulb works, run it, instrument with `tb.log(...)`, and read it back with `typebulb logs`. That's the loop to verify behaviour without asking the user to copy-paste console output. `tb.fs.write(...)` is handy for dumping large outputs.
|
|
327
327
|
- **Self-testing client code** — gate checks behind `tb.onMessage(m => { if (m === 'selftest') return run() })`, trigger with `typebulb send <file> selftest --wait`, and assert on the JSON reply — see [Interrogating the live page](#interrogating-the-live-page).
|
|
328
328
|
- **Probe handlers go in the first draft** — the selftest, readback, and set handlers you'll want later: adding one is an edit, and that hot reload destroys the very state you meant to inspect.
|
package/SKILL.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: typebulb
|
|
3
3
|
description: "Author and run Typebulb bulbs — single-file markdown apps (TypeScript/TSX) that run locally via `npx typebulb` (full power: filesystem, database, `server.ts`, `tb.ai`) or render live inline in your coding agent's session through Typebulb's agent mirror (sandboxed, client-only). A bulb can be a visual widget (chart, simulation, diagram, calculator, UI), a full-stack tool with a Node backend, or an AI app that calls models at runtime. Covers the bulb format, the `tb.*` API, trust, and the local run/inline workflow. Use when the user wants a bulb, a quick local tool (visual, backend-backed, or AI-powered), or something visual rendered inline in the conversation."
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.62.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
> Generated from typebulb v0.
|
|
7
|
+
> Generated from typebulb v0.62.0. `npx typebulb agent` prints the running version alongside the path to its packaged SKILL.md: if that version is newer than this one, replace this file with that one.
|
|
8
8
|
|
|
9
9
|
# typebulb
|
|
10
10
|
|
|
@@ -74,7 +74,7 @@ typebulb stop --agent Stop this project's agent mirror; its bulbs keep
|
|
|
74
74
|
typebulb stop --global Stop every running bulb and mirror, all projects (housekeeping)
|
|
75
75
|
typebulb trust [file] Remember a bulb as trusted (no arg: list trusted bulbs)
|
|
76
76
|
typebulb untrust <file> Forget a bulb's trust (back to Restricted)
|
|
77
|
-
typebulb status [agent] A sub-agent's status:
|
|
77
|
+
typebulb status [agent] A sub-agent's status: what it waits on, its commands, files and hand-backs (no arg: the session's overview)
|
|
78
78
|
typebulb --no-watch <file> Disable hot reload
|
|
79
79
|
typebulb --no-open <file> Open nothing at launch, not even inside VS Code
|
|
80
80
|
typebulb --mode <name> <file> Also load .env.<name> on top of .env / .env.local
|
|
@@ -330,7 +330,7 @@ The host owns light/dark; you style for both.
|
|
|
330
330
|
- **A bulb's working files land beside it automatically** — relative `tb.fs` paths resolve to the bulb's folder, in `code.tsx` and `server.ts` alike: `tb.fs.write('run.json')`, no path prefix, no mkdir.
|
|
331
331
|
- **Images & media: an `assets/` subfolder of the bulb's folder** (`birds.bulb.md` → `birds/assets/robin.png`) — `<img src="assets/robin.png">` just works (always that relative form, never `/assets/…`), every tier except inline. It holds what the bulb ships in order to run (e.g. images), never results.
|
|
332
332
|
- **See what's already running** — `typebulb logs` with no argument lists every running bulb and mirror; check it before launching anything.
|
|
333
|
-
- **Checking on
|
|
333
|
+
- **Checking on sub-agents you spawned** — `typebulb status` is your session's overview, instant and counted from the transcripts: what is running, failure streaks, and the files to check before `git add`. `typebulb status <id or description>` is one agent's commands, files and hand-backs. Run it before committing, and when a hand-back arrives.
|
|
334
334
|
- **Self-testing a local bulb** — To confirm a bulb works, run it, instrument with `tb.log(...)`, and read it back with `typebulb logs`. That's the loop to verify behaviour without asking the user to copy-paste console output. `tb.fs.write(...)` is handy for dumping large outputs.
|
|
335
335
|
- **Self-testing client code** — gate checks behind `tb.onMessage(m => { if (m === 'selftest') return run() })`, trigger with `typebulb send <file> selftest --wait`, and assert on the JSON reply — see [Interrogating the live page](#interrogating-the-live-page).
|
|
336
336
|
- **Probe handlers go in the first draft** — the selftest, readback, and set handlers you'll want later: adding one is an edit, and that hot reload destroys the very state you meant to inspect.
|