typebulb 0.9.2 → 0.9.3

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
@@ -44,10 +44,15 @@ npm install -g typebulb
44
44
  ```
45
45
  typebulb [file.bulb.md] Run a bulb (defaults to .bulb.md in cwd)
46
46
  typebulb check [file.bulb.md] Type-check a bulb without running it
47
+ typebulb logs [file|pid] Print a running bulb's captured console (-f follow, -n N tail)
48
+ typebulb stop [file|pid] Stop a running bulb (no arg: list running servers)
49
+ typebulb trust [file] Remember a bulb as trusted (no arg: list trusted bulbs)
50
+ typebulb untrust <file> Forget a bulb's trust (back to sandboxed)
47
51
  typebulb --no-watch <file> Disable hot reload
48
52
  typebulb --port 3333 <file> Custom port
49
53
  typebulb --no-open <file> Don't auto-open browser
50
- typebulb --trust <file> Grant filesystem + AI + server.ts (default: sandboxed)
54
+ typebulb --trust <file> Grant filesystem + AI + server.ts for this run (default: sandboxed)
55
+ typebulb --no-trust <file> Force sandboxed even if the bulb is remembered-trusted
51
56
  typebulb --server <file> Run server.ts only, no web server (needs --trust)
52
57
  typebulb --replace <name>=<path> Replace a dependency with a local build
53
58
  typebulb --help Show help
@@ -67,7 +72,7 @@ typebulb --version Show version
67
72
  - **Replace dependency** — `--replace <name>=<path>` replaces a declared dependency with a local *built* package folder (browser-ready ESM, no external bare imports) instead of a CDN, for testing an unpublished build. Supplies both runtime bytes and types; applies to `run` and `check`. Under `--watch` the folder is watched and the browser reloads on rebuild (`--no-watch` freezes it). Dev-only; nothing is written to the bulb.
68
73
  - **Local caching** — Resolver metadata and CDN package bytes are cached under `~/.typebulb/cache/`, so repeat runs don't re-hit the network and warm runs work offline.
69
74
  - **AI calls** — `tb.ai()` for general-purpose AI (chatbots, agents, experiments). `tb.models()` lists available models. Set API keys in `.env` (see below). Requires `--trust`.
70
- - **Sandboxed by default** — A plain `npx typebulb my-app.bulb.md` runs with no filesystem, AI, or `server.ts` (like typebulb.com); `--trust` grants those to a bulb you've vetted.
75
+ - **Sandboxed by default** — A plain `npx typebulb my-app.bulb.md` runs with no filesystem or `server.ts` (like typebulb.com); `--trust` grants those for a run. Trust is **remembered**: `typebulb trust <file>` elevates a bulb once so later plain runs are trusted, `untrust` revokes it, and `--no-trust` forces sandboxed for a single run.
71
76
 
72
77
  ## AI Setup
73
78