@fungi.computer/bonsai 0.11.2 → 0.11.4

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/CHANGELOG.md +32 -0
  2. package/README.md +26 -12
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @fungi.computer/bonsai
2
2
 
3
+ ## 0.11.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - Updated dependencies
9
+ - @fungi.computer/agar@0.22.1
10
+ - @fungi.computer/oyster@0.38.1
11
+ - @fungi.computer/trellis@0.18.1
12
+ - @fungi.computer/braid@0.5.3
13
+ - @fungi.computer/nacre@0.8.2
14
+ - @fungi.computer/workflows-wire@0.5.3
15
+
16
+ ## 0.11.3
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - Updated dependencies
22
+ - Updated dependencies
23
+ - Updated dependencies
24
+ - Updated dependencies
25
+ - Updated dependencies
26
+ - @fungi.computer/agar@0.22.0
27
+ - @fungi.computer/caps@0.12.1
28
+ - @fungi.computer/nacre@0.8.1
29
+ - @fungi.computer/oyster@0.38.0
30
+ - @fungi.computer/puffball@0.12.0
31
+ - @fungi.computer/trellis@0.18.0
32
+ - @fungi.computer/braid@0.5.2
33
+ - @fungi.computer/workflows-wire@0.5.2
34
+
3
35
  ## 0.11.2
4
36
 
5
37
  ### Patch Changes
package/README.md CHANGED
@@ -11,7 +11,18 @@ on your own Cloudflare account. Its repositories live in Cloudflare Artifacts,
11
11
  so a repository per agent is cheap. To try Oyster without a Cloudflare account,
12
12
  [run it locally](https://docs.fungi.computer/guides/run-your-own-oyster/#run-it-on-your-laptop).
13
13
 
14
- ## What you can do
14
+ ## Quick start
15
+
16
+ Bonsai runs inside Oyster, so the quickest check from a checkout is to build it:
17
+
18
+ ```sh
19
+ pnpm --filter @fungi.computer/bonsai build
20
+ ```
21
+
22
+ That produces the App's built files. To use Bonsai for real, see
23
+ [Get it](#get-it).
24
+
25
+ ## Common tasks
15
26
 
16
27
  - **Give every agent its own fork.** `repos.fork` makes one in a single call,
17
28
  and the agent clones it through Oyster's git door with its own key. It never
@@ -39,7 +50,9 @@ so a repository per agent is cheap. To try Oyster without a Cloudflare account,
39
50
 
40
51
  <img alt="Bonsai on a phone in the light theme: the network graph above the live feed" src="docs/media/overview-phone.png" width="300">
41
52
 
42
- ## Get it
53
+ ## Reference
54
+
55
+ ### Get it
43
56
 
44
57
  Bonsai installs with the other starter Apps. On a deployed Oyster (see the
45
58
  [Oyster quick start](https://github.com/fungi-computer/oyster#deploy-to-cloudflare)),
@@ -63,7 +76,7 @@ curl -X PUT -H "Authorization: Bearer $OYSTER_OWNER_KEY" -H 'content-type: appli
63
76
  -d '{"visibility":"public"}' $OYSTER_URL/api/installations/bonsai/visibility
64
77
  ```
65
78
 
66
- ## Put agents to work
79
+ ### Put agents to work
67
80
 
68
81
  Create a key for each agent. Oyster shows it once; its `name` is also its id, so
69
82
  a fork is always `<repo>--<name>`. These grants let the key use every App on
@@ -90,7 +103,7 @@ git -c http.extraHeader="Authorization: Bearer $KEY" \
90
103
  `scripts/agent.sh <name> <repo> "<task>"` does all of that and starts a coding
91
104
  agent in the clone. It uses Codex by default; set `AGENT_CMD` to use another.
92
105
 
93
- ## Webhooks
106
+ ### Webhooks
94
107
 
95
108
  ```sh
96
109
  curl -X POST -H "Authorization: Bearer $OYSTER_OWNER_KEY" -H 'content-type: application/json' \
@@ -106,7 +119,7 @@ event types are `git.push`, `git.fork`, `change.opened`, `change.merged`,
106
119
  retried after 10 s, 1 min, 5 min, 30 min and 2 h;
107
120
  `GET /api/webhooks/<id>/deliveries` lists the attempts.
108
121
 
109
- ## Build and install Apps
122
+ ### Build and install Apps
110
123
 
111
124
  Bonsai also edits the other Apps on your Oyster. `apps.fork` copies an installed
112
125
  App's source into a new Bonsai repository you own. Push your changes to it, then
@@ -128,7 +141,7 @@ your forks with `--repositories <base URL>` and `--ref <branch or tag>`. The
128
141
  installer reads all seven starter Apps from that base, so fork them under one
129
142
  account.
130
143
 
131
- ## Make a repository an App
144
+ ### Make a repository an App
132
145
 
133
146
  On a standalone Oyster, open the repository's **Settings → Make this an App**.
134
147
  The owner-only `apps.register({ repo })` call reads the committed main root's
@@ -159,8 +172,9 @@ remembered browser job ID is required. No recorded job returns `null`, not an
159
172
  invented success or failure. Workflows still poll their specific job with
160
173
  `apps.buildStatus({ jobId })`; that call is Pending until build and automatic
161
174
  installation settle. These are two current selectors for different callers. A
162
- local-only Computer is not a build backend and returns typed `no_backend`. This
163
- flow does not deploy a host or implement a separate consent ledger.
175
+ local-only Computer is not a build backend, so the build is refused with a "no
176
+ backend" error. This flow does not deploy a host or implement a separate consent
177
+ ledger.
164
178
 
165
179
  The retained Trellis **Build on merge** template is requested through the
166
180
  Workflows capability by Bonsai's host-attested accepted-main lifecycle, with the
@@ -181,7 +195,7 @@ request; Bonsai declares that read operation rather than bypassing the host's
181
195
  check. Updated declarations must go through the ordinary owner-consent path. Old
182
196
  App-origin installation remains refused.
183
197
 
184
- ## Agent tools
198
+ ### Agent tools
185
199
 
186
200
  Every method is `POST $OYSTER_URL/apps/bonsai/methods/<name>` with a JSON body
187
201
  and a key, and the same methods reach agents through Oyster's MCP endpoint; see
@@ -198,7 +212,7 @@ Bonsai's own UI uses the same API.
198
212
  | Insights | `insights.code`, `insights.layout.get`, `insights.layout.save` |
199
213
  | Apps (owner) | `apps.register`, `apps.fork`, `apps.startBuildWorkflow`, `apps.buildWorkflowRuns`, `apps.buildWorkflowRun`, `apps.build`, `apps.buildStatus`, `apps.verifyBuild`, `apps.install` |
200
214
 
201
- ## How it is built
215
+ ### How it is built
202
216
 
203
217
  Bonsai is an App on Oyster. Oyster serves its UI in a sandboxed frame, runs its
204
218
  backend as a Durable Object with its own SQLite, and grants it only the two
@@ -222,7 +236,7 @@ browsing a repository makes no Git calls once its copies are warm.
222
236
  | Contracts | `shared/` | Response shapes and the event envelope (`verifyHook`) |
223
237
  | UI | `web/` | React; the network graph is `web/network-graph.tsx` |
224
238
 
225
- ## Build and check
239
+ ### Build and check
226
240
 
227
241
  ```sh
228
242
  pnpm install
@@ -244,6 +258,6 @@ pnpm seed:demo --origin $OYSTER_URL \
244
258
 
245
259
  A completed rerun checks the three outcomes without making new commits.
246
260
 
247
- ## License
261
+ ### License
248
262
 
249
263
  MIT. See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@fungi.computer/bonsai",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "type": "module",
6
6
  "description": "Bonsai: a git platform for many agents working at once, on Workers and Artifacts",
7
7
  "dependencies": {
8
- "@fungi.computer/agar": "0.21.0",
9
- "@fungi.computer/caps": "0.12.0",
8
+ "@fungi.computer/agar": "0.22.1",
9
+ "@fungi.computer/caps": "0.12.1",
10
10
  "@fungi.computer/issues": "0.2.0",
11
- "@fungi.computer/oyster": "0.37.2",
12
- "@fungi.computer/puffball": "0.11.0",
11
+ "@fungi.computer/oyster": "0.38.1",
12
+ "@fungi.computer/puffball": "0.12.0",
13
13
  "@fungi.computer/sigils": "0.3.2",
14
14
  "@fungi.computer/stipe": "0.1.1",
15
15
  "@pierre/diffs": "1.3.6",
@@ -29,10 +29,10 @@
29
29
  "@fungi.computer/maosaico": "0.1.2",
30
30
  "@visx/hierarchy": "3.12.0",
31
31
  "@fungi.computer/gills": "0.4.0",
32
- "@fungi.computer/nacre": "0.8.0",
33
- "@fungi.computer/trellis": "0.17.1",
34
- "@fungi.computer/braid": "0.5.1",
35
- "@fungi.computer/workflows-wire": "0.5.1"
32
+ "@fungi.computer/nacre": "0.8.2",
33
+ "@fungi.computer/trellis": "0.18.1",
34
+ "@fungi.computer/braid": "0.5.3",
35
+ "@fungi.computer/workflows-wire": "0.5.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "playwright": "1.62.1",
@@ -52,7 +52,7 @@
52
52
  "eslint": "10.9.1",
53
53
  "oxlint": "1.78.0",
54
54
  "jsdom": "29.0.1",
55
- "@fungi.computer/computer-contract": "0.5.5"
55
+ "@fungi.computer/computer-contract": "0.5.6"
56
56
  },
57
57
  "botanical": {
58
58
  "role": "app",