@fungi.computer/shed 0.7.11 → 0.8.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.
@@ -47,6 +47,7 @@ it("lists ports only through the admitted Computer binding", async () => {
47
47
  },
48
48
  },
49
49
  {
50
+ scope: { kind: "standalone" as const, tenant: "default" },
50
51
  actor: { kind: "agent", agentId: "agent-a" },
51
52
  computerId: "computer-a",
52
53
  },
@@ -56,6 +57,7 @@ it("lists ports only through the admitted Computer binding", async () => {
56
57
  it("forwards inventories without accepting selectors or starting commands", async () => {
57
58
  const calls: unknown[] = [];
58
59
  const caller: Parameters<typeof appBackend.call>[3] = {
60
+ scope: { kind: "standalone" as const, tenant: "default" },
59
61
  actor: { kind: "member", memberId: "member-a" },
60
62
  computerId: "computer-a",
61
63
  };
@@ -110,6 +112,7 @@ it("passes command and cwd unchanged with a host-owned request identity", async
110
112
  },
111
113
  },
112
114
  {
115
+ scope: { kind: "standalone" as const, tenant: "default" },
113
116
  actor: { kind: "agent", agentId: "agent-a" },
114
117
  computerId: "computer-a",
115
118
  },
@@ -151,6 +154,7 @@ it.each([
151
154
  },
152
155
  },
153
156
  {
157
+ scope: { kind: "standalone" as const, tenant: "default" },
154
158
  actor: { kind: "agent", agentId: "agent-a" },
155
159
  computerId: "computer-a",
156
160
  },
@@ -181,6 +185,7 @@ it("keeps budget retry guidance and omits timeout host request identity", async
181
185
  },
182
186
  },
183
187
  {
188
+ scope: { kind: "standalone" as const, tenant: "default" },
184
189
  actor: { kind: "agent", agentId: "agent-a" },
185
190
  computerId: "computer-a",
186
191
  },
@@ -203,7 +208,11 @@ it("refuses an absent pin and missing execution binding", async () => {
203
208
  }),
204
209
  },
205
210
  },
206
- { actor: { kind: "agent", agentId: "agent-a" }, computerId: null },
211
+ {
212
+ scope: { kind: "standalone" as const, tenant: "default" },
213
+ actor: { kind: "agent", agentId: "agent-a" },
214
+ computerId: null,
215
+ },
207
216
  ),
208
217
  ).toEqual({ error: "not_granted" });
209
218
  expect(
@@ -218,6 +227,7 @@ it("refuses an absent pin and missing execution binding", async () => {
218
227
  },
219
228
  },
220
229
  {
230
+ scope: { kind: "standalone" as const, tenant: "default" },
221
231
  actor: { kind: "agent", agentId: "agent-a" },
222
232
  computerId: "computer-a",
223
233
  },
@@ -227,6 +237,7 @@ it("refuses an absent pin and missing execution binding", async () => {
227
237
  });
228
238
  it("bounds inventory and command replies", async () => {
229
239
  const caller: Parameters<typeof appBackend.call>[3] = {
240
+ scope: { kind: "standalone" as const, tenant: "default" },
230
241
  actor: { kind: "agent", agentId: "agent-a" },
231
242
  computerId: "computer-a",
232
243
  };
@@ -316,6 +327,7 @@ it("returns exit status for both streams cut inside UTF-8 by the Computer", asyn
316
327
  },
317
328
  },
318
329
  {
330
+ scope: { kind: "standalone" as const, tenant: "default" },
319
331
  actor: { kind: "agent", agentId: "agent-a" },
320
332
  computerId: "computer-a",
321
333
  },
@@ -372,6 +384,7 @@ it.each([
372
384
  },
373
385
  },
374
386
  {
387
+ scope: { kind: "standalone" as const, tenant: "default" },
375
388
  actor: { kind: "agent", agentId: "agent-a" },
376
389
  computerId: "computer-a",
377
390
  },
@@ -407,6 +420,7 @@ it("retains a process whose native cwd contains parent segments", async () => {
407
420
  },
408
421
  },
409
422
  {
423
+ scope: { kind: "standalone" as const, tenant: "default" },
410
424
  actor: { kind: "agent", agentId: "agent-a" },
411
425
  computerId: "computer-a",
412
426
  },
@@ -447,6 +461,7 @@ it("pages retained processes on the admitted Computer without starting work and
447
461
  },
448
462
  };
449
463
  const caller: Parameters<typeof appBackend.call>[3] = {
464
+ scope: { kind: "standalone" as const, tenant: "default" },
450
465
  actor: { kind: "member", memberId: "member-a" },
451
466
  computerId: "computer-a",
452
467
  };
@@ -508,6 +523,7 @@ it("projects a process page through the declared read Gill with App-local naviga
508
523
  { id: "processes", params: { computer: "computer-a" } },
509
524
  context,
510
525
  {
526
+ scope: { kind: "standalone" as const, tenant: "default" },
511
527
  actor: { kind: "member", memberId: "member-a" },
512
528
  computerId: "computer-a",
513
529
  },
@@ -523,6 +539,7 @@ it("projects a process page through the declared read Gill with App-local naviga
523
539
 
524
540
  it("keeps inventory refusals actionable and separate from empty without guessing container state", async () => {
525
541
  const caller: Parameters<typeof appBackend.call>[3] = {
542
+ scope: { kind: "standalone" as const, tenant: "default" },
526
543
  actor: { kind: "member", memberId: "member-a" },
527
544
  computerId: "computer-a",
528
545
  };
@@ -596,6 +613,7 @@ it("shortens long display text without losing a retained process or changing its
596
613
  },
597
614
  },
598
615
  {
616
+ scope: { kind: "standalone" as const, tenant: "default" },
599
617
  actor: { kind: "member", memberId: "member-a" },
600
618
  computerId: "computer-a",
601
619
  },
@@ -651,6 +669,7 @@ it("stops the selected process through the pinned Computer without accepting ano
651
669
  },
652
670
  };
653
671
  const caller = {
672
+ scope: { kind: "standalone" as const, tenant: "default" },
654
673
  actor: { kind: "member", memberId: "member-one" },
655
674
  idempotencyKey: "stop-test",
656
675
  computerId: "computer-one",
@@ -716,6 +735,7 @@ it("sends a Workflow step's runCommand as ordinary exec input, with no credentia
716
735
  });
717
736
  expect(
718
737
  await appBackend.call("runCommand", input, context, {
738
+ scope: { kind: "standalone" as const, tenant: "default" },
719
739
  actor: { kind: "member", memberId: "member-a" },
720
740
  computerId: "computer-a",
721
741
  }),
@@ -739,6 +759,7 @@ const directBindings = [
739
759
  ["runCommand", "exec"],
740
760
  ] as const;
741
761
  const bindingCaller = {
762
+ scope: { kind: "standalone" as const, tenant: "default" },
742
763
  actor: { kind: "member", memberId: "member-a" },
743
764
  computerId: "computer-a",
744
765
  } satisfies Parameters<typeof appBackend.call>[3];
@@ -83,6 +83,7 @@ void it("reuses one process across repeated and restored calls, then returns its
83
83
  processes: () => Promise.resolve({ processes: [process] }),
84
84
  });
85
85
  const caller = {
86
+ scope: { kind: "standalone" as const, tenant: "default" },
86
87
  actor: { kind: "member", memberId: "member-one" },
87
88
  computerId: "computer-one",
88
89
  idempotencyKey: "run-one:node-one:0",
@@ -160,6 +161,7 @@ void it("tails only the recorded run log on its pinned Computer within the byte
160
161
  },
161
162
  };
162
163
  const caller = {
164
+ scope: { kind: "standalone" as const, tenant: "default" },
163
165
  actor: { kind: "member", memberId: "member-one" },
164
166
  computerId: "computer-one",
165
167
  idempotencyKey: "log-run",
@@ -250,6 +252,7 @@ void it("returns only an admitted preview and refuses an unexposed port", async
250
252
  },
251
253
  };
252
254
  const caller = {
255
+ scope: { kind: "standalone" as const, tenant: "default" },
253
256
  actor: { kind: "member", memberId: "member-one" },
254
257
  computerId: "computer-one",
255
258
  } satisfies Parameters<typeof appBackend.call>[3];
@@ -318,6 +321,7 @@ void it("tees both real shell streams, returns a nonzero exit as a normal result
318
321
  Promise.reject(new Error("completed exit must be remembered")),
319
322
  });
320
323
  const caller = {
324
+ scope: { kind: "standalone" as const, tenant: "default" },
321
325
  actor: { kind: "member", memberId: "member-one" },
322
326
  computerId: "computer-one",
323
327
  idempotencyKey: key,
@@ -382,6 +386,7 @@ void it("rejects a command whose quoted wrapper exceeds the native bound before
382
386
  },
383
387
  };
384
388
  const caller = {
389
+ scope: { kind: "standalone" as const, tenant: "default" },
385
390
  actor: { kind: "member", memberId: "member-one" },
386
391
  computerId: "computer-one",
387
392
  idempotencyKey: "oversized-wrapper",
@@ -422,6 +427,7 @@ void it("requires the host key and Computer, and refuses to restart after a lost
422
427
  Promise.reject(new Error("unidentified process must not be guessed")),
423
428
  });
424
429
  const caller = {
430
+ scope: { kind: "standalone" as const, tenant: "default" },
425
431
  actor: { kind: "member", memberId: "member-one" },
426
432
  computerId: "computer-one",
427
433
  } satisfies Parameters<typeof appBackend.call>[3];
@@ -535,6 +541,7 @@ void it("retains the original process across polls and reopen without any creden
535
541
  processes: () => Promise.resolve({ processes: [process] }),
536
542
  });
537
543
  const caller = {
544
+ scope: { kind: "standalone" as const, tenant: "default" },
538
545
  actor: { kind: "member" as const, memberId: "member_one" },
539
546
  computerId: "computer_one",
540
547
  idempotencyKey: "opaque_call_key",
@@ -606,6 +613,7 @@ function workflowRunFixture(t: TestContext) {
606
613
  env: { COMPUTER: computer },
607
614
  };
608
615
  const caller = {
616
+ scope: { kind: "standalone" as const, tenant: "default" },
609
617
  actor: { kind: "member" as const, memberId: "member_one" },
610
618
  computerId: "computer_one",
611
619
  idempotencyKey: "opaque_call_key",
@@ -948,6 +956,7 @@ void it("drops the superseded claim table and keeps a current claim across reope
948
956
  processes: () => Promise.resolve({ processes: [process] }),
949
957
  });
950
958
  const caller = {
959
+ scope: { kind: "standalone" as const, tenant: "default" },
951
960
  actor: { kind: "member" as const, memberId: "member_one" },
952
961
  computerId: "computer_one",
953
962
  idempotencyKey: "reopen_key",
@@ -1018,6 +1027,7 @@ void it("returns a running process at start and reuses its durable claim after r
1018
1027
  processes: () => Promise.resolve({ processes: [process] }),
1019
1028
  });
1020
1029
  const caller = {
1030
+ scope: { kind: "standalone" as const, tenant: "default" },
1021
1031
  actor: { kind: "member", memberId: "member-one" },
1022
1032
  computerId: "computer-one",
1023
1033
  idempotencyKey: "server-one",
@@ -1081,6 +1091,7 @@ void it("recovers a lost start reply with the same native input instead of start
1081
1091
  processes: () => Promise.resolve({ processes: [process] }),
1082
1092
  });
1083
1093
  const caller = {
1094
+ scope: { kind: "standalone" as const, tenant: "default" },
1084
1095
  actor: { kind: "member", memberId: "member-one" },
1085
1096
  computerId: "computer-one",
1086
1097
  idempotencyKey: "lost-server-start",
@@ -1145,6 +1156,7 @@ void it("starts a declared port and binds retry identity to the native process p
1145
1156
  processes: () => Promise.resolve({ processes: [process] }),
1146
1157
  });
1147
1158
  const caller = {
1159
+ scope: { kind: "standalone" as const, tenant: "default" },
1148
1160
  actor: { kind: "member", memberId: "member-one" },
1149
1161
  computerId: "computer-one",
1150
1162
  idempotencyKey: "port-server",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@fungi.computer/shed",
3
3
  "description": "Shed: a terminal on your Computer, with its ports and processes, for Oyster",
4
- "version": "0.7.11",
4
+ "version": "0.8.0",
5
5
  "author": "Levi <levi@technomancy.dev>",
6
6
  "type": "module",
7
7
  "dependencies": {
8
8
  "@fungi.computer/cairn": "0.1.0",
9
- "@fungi.computer/agar": "0.19.0",
9
+ "@fungi.computer/agar": "0.20.0",
10
10
  "@fungi.computer/caps": "0.12.0",
11
11
  "@fungi.computer/maosaico": "0.1.2",
12
12
  "@fungi.computer/sigils": "0.3.2",
@@ -22,9 +22,9 @@
22
22
  "@tanstack/react-query": "5.102.8",
23
23
  "effect": "4.0.2",
24
24
  "zod": "4.4.3",
25
- "@fungi.computer/braid": "0.4.22",
25
+ "@fungi.computer/braid": "0.4.24",
26
26
  "@fungi.computer/gills": "0.3.0",
27
- "@fungi.computer/computer-contract": "0.5.1"
27
+ "@fungi.computer/computer-contract": "0.5.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@ladle/react": "5.1.1",
@@ -39,7 +39,7 @@
39
39
  "vitest": "4.1.11",
40
40
  "playwright": "1.62.1",
41
41
  "@cloudflare/workers-types": "5.20260828.1",
42
- "@fungi.computer/puffball": "0.9.1",
42
+ "@fungi.computer/puffball": "0.10.0",
43
43
  "esbuild": "0.28.2",
44
44
  "eslint": "10.9.1",
45
45
  "tsx": "4.23.12",