@fungi.computer/bonsai 0.9.11 → 0.9.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @fungi.computer/bonsai
2
2
 
3
+ ## 0.9.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - Updated dependencies
9
+ - @fungi.computer/agar@0.19.0
10
+ - @fungi.computer/oyster@0.35.0
11
+ - @fungi.computer/trellis@0.15.6
12
+ - @fungi.computer/braid@0.4.22
13
+ - @fungi.computer/nacre@0.7.1
14
+ - @fungi.computer/workflows-wire@0.4.22
15
+
16
+ ## 0.9.12
17
+
18
+ ### Patch Changes
19
+
20
+ - Changes since 0.9.11:
21
+
22
+ - fix: isolate Oyster previews and refuse sibling requests
23
+
24
+ - Updated dependencies
25
+ - Updated dependencies
26
+ - Updated dependencies
27
+ - Updated dependencies
28
+ - Updated dependencies
29
+ - @fungi.computer/agar@0.18.2
30
+ - @fungi.computer/caps@0.12.0
31
+ - @fungi.computer/nacre@0.7.0
32
+ - @fungi.computer/oyster@0.34.0
33
+ - @fungi.computer/watchdog@0.1.4
34
+ - @fungi.computer/trellis@0.15.5
35
+ - @fungi.computer/braid@0.4.21
36
+ - @fungi.computer/workflows-wire@0.4.21
37
+ - @fungi.computer/puffball@0.9.1
38
+
3
39
  ## 0.9.11
4
40
 
5
41
  ### Patch Changes
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@fungi.computer/bonsai",
3
- "version": "0.9.11",
3
+ "version": "0.9.13",
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.18.1",
9
- "@fungi.computer/caps": "0.11.7",
8
+ "@fungi.computer/agar": "0.19.0",
9
+ "@fungi.computer/caps": "0.12.0",
10
10
  "@fungi.computer/issues": "0.2.0",
11
- "@fungi.computer/oyster": "0.33.0",
12
- "@fungi.computer/puffball": "0.9.0",
11
+ "@fungi.computer/oyster": "0.35.0",
12
+ "@fungi.computer/puffball": "0.9.1",
13
13
  "@fungi.computer/sigils": "0.3.2",
14
14
  "@fungi.computer/stipe": "0.1.1",
15
15
  "@pierre/diffs": "1.3.6",
@@ -23,16 +23,16 @@
23
23
  "react": "18.3.1",
24
24
  "react-dom": "18.3.1",
25
25
  "zod": "4.4.3",
26
- "@fungi.computer/watchdog": "0.1.3",
26
+ "@fungi.computer/watchdog": "0.1.4",
27
27
  "effect": "4.0.2",
28
28
  "@fungi.computer/cairn": "0.1.0",
29
29
  "@fungi.computer/maosaico": "0.1.2",
30
30
  "@visx/hierarchy": "3.12.0",
31
31
  "@fungi.computer/gills": "0.3.0",
32
- "@fungi.computer/nacre": "0.6.7",
33
- "@fungi.computer/trellis": "0.15.4",
34
- "@fungi.computer/braid": "0.4.20",
35
- "@fungi.computer/workflows-wire": "0.4.20"
32
+ "@fungi.computer/nacre": "0.7.1",
33
+ "@fungi.computer/trellis": "0.15.6",
34
+ "@fungi.computer/braid": "0.4.22",
35
+ "@fungi.computer/workflows-wire": "0.4.22"
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.0"
55
+ "@fungi.computer/computer-contract": "0.5.1"
56
56
  },
57
57
  "botanical": {
58
58
  "role": "app",
@@ -90,39 +90,17 @@ const origin = `http://127.0.0.1:${port}`;
90
90
  // proof of this standalone worker already uses (edit-in-inkcap-live,
91
91
  // tourtois-home, landed-push, workflows, agents-sandbox).
92
92
  //
93
- // Opus-PT's reviewed fix for the Ports tray additionally calls for
94
- // OYSTER_PREVIEW_ORIGIN (packages/oyster/src/standalone/preview.ts's
95
- // previewOrigins; packages/oyster/src/standalone/computer.ts:625-626 returns
96
- // port_previews_not_configured without it) and dropping --local-upstream
97
- // for --local-protocol https, since --local-upstream rewrites every
98
- // request's Host to the same single value and the preview popup can never
99
- // reach a second, distinct tunnel origin through it. Tried exactly that
100
- // (OYSTER_PREVIEW_ORIGIN=https://127.0.0.1:<port> alongside
101
- // OYSTER_ORIGIN=https://localhost:<port>, --local-protocol https,
102
- // NODE_TLS_REJECT_UNAUTHORIZED=0 for this script's own Node-side fetches,
103
- // ignoreHTTPSErrors on the browser context) and it broke something more
104
- // fundamental: the scratch vmd fixture's own --worker callback is a fixed
105
- // plain-HTTP URL set at vmd's own launch (http://127.0.0.1:<this port>,
106
- // from s5-vm-fixture.sh), and workerd's now-HTTPS-only local listener
107
- // refuses that plaintext callback outright — confirmed directly in
108
- // workerd's own log: "error accepting tls connection ... OpenSSL error;
109
- // message = error:1000009c:SSL routines:OPENSSL_internal:HTTP_REQUEST".
110
- // Every Computer-backed call then retried twice at 30s and failed (the
111
- // same two-attempts-at-30s shape Sonnet-SG found for Workspace push).
112
- // Fixing that needs vmd restarted with a matching https callback — not
113
- // something to do unilaterally to a VM shared with Sonnet-SG's S9 work
114
- // mid-session ("keep the VM up until S9 is green"). Reverted to the
115
- // known-good --local-upstream transport for now; OYSTER_PREVIEW_ORIGIN
116
- // stays set (harmless, satisfies half the fix) but the Ports tray itself
117
- // is not expected to pass until this is resolved — see the READY/STATUS
118
- // report for the exact finding and the open question.
93
+ // Preview links require a separate wildcard domain. This fixture's fixed
94
+ // plain-HTTP VM callback requires --local-upstream, which rewrites Host;
95
+ // it proves the Ports affordance, not a preview popup. The isolated HTTPS
96
+ // popup is exercised by Oyster's preview-popup.browser.mjs fixture.
119
97
  const tenantHost = "oyster.test";
120
98
  const previewHost = "oyster-preview.test";
121
99
  const vars = {
122
100
  ...computerVars,
123
101
  OYSTER_OWNER_KEY: key,
124
102
  OYSTER_ORIGIN: `https://${tenantHost}`,
125
- OYSTER_PREVIEW_ORIGIN: `https://${previewHost}`,
103
+ OYSTER_PREVIEW_DOMAIN: previewHost,
126
104
  OYSTER_HOME_INSTALLATION: "tourtois",
127
105
  };
128
106
  const worker = spawn(
@@ -620,23 +598,9 @@ try {
620
598
  exact: true,
621
599
  });
622
600
  await expect(openPreview).toBeVisible({ timeout: 30_000 });
623
- // Stop here, by CTO decision: this VM fixture's wrangler runs under
624
- // --local-upstream, which rewrites every request's Host to one fixed
625
- // value, so the popup itself can never reach a second, distinct
626
- // preview-tunnel origin through it (confirmed directly: the popup
627
- // opens but its own "Directory listing" heading never arrives,
628
- // because the popup's request never reaches the real backend). The
629
- // real fix (a distinct HTTPS preview origin) needs --local-protocol
630
- // https, which this VM fixture's vmd cannot yet speak back to
631
- // (tooling/celld-platform/computer-vm/vmd.mjs's proxyHandlers leaks
632
- // TLS socket listeners on its https branch — a separate, logged
633
- // bug). The live demo runs on Cloudflare containers with a real
634
- // certificate and a real preview origin, not this fixture, so its
635
- // own rehearsal is the popup's real end-to-end proof; this proof
636
- // asserts everything the fixture CAN reach for real: the process
637
- // starts, Ports lists it, expose succeeds, and the preview
638
- // affordance renders with the right port — then moves straight to
639
- // Stop.
601
+ // This VM fixture rewrites Host, so it proves expose and the preview
602
+ // affordance only. Oyster's isolated HTTPS browser fixture checks the
603
+ // popup; no deployed preview or wildcard routing is claimed here.
640
604
  await desktop.getByRole("button", { name: /^Processes/ }).click();
641
605
  // A HoldButton: stopping a process is a held, not a single, click.
642
606
  await processRow