@fungi.computer/oyster 0.5.0 → 0.7.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 +155 -63
- package/dist/agent-archive-projection.d.ts +8 -0
- package/dist/agent-archive-projection.js +49 -0
- package/dist/agent-schedules.d.ts +50 -0
- package/dist/agent-schedules.js +17 -0
- package/dist/agents.d.ts +35 -14
- package/dist/agents.js +97 -144
- package/dist/app-builds.d.ts +7 -2
- package/dist/app-builds.js +19 -2
- package/dist/approval-capability.d.ts +1 -1
- package/dist/approval-capability.js +11 -16
- package/dist/approval-home.d.ts +2 -1
- package/dist/approval-home.js +5 -3
- package/dist/apps/catalog.js +1 -1
- package/dist/apps/gate.d.ts +4 -7
- package/dist/apps/gate.js +14 -29
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/installation.d.ts +4 -42
- package/dist/apps/installation.js +7 -75
- package/dist/apps/operations.js +0 -10
- package/dist/apps/permissions.d.ts +18 -8
- package/dist/apps/permissions.js +7 -1
- package/dist/auth.js +9 -1
- package/dist/authorization.d.ts +307 -0
- package/dist/authorization.js +542 -0
- package/dist/boot-host-script.js +1 -1
- package/dist/build/build-jobs.d.ts +2 -2
- package/dist/build/candidate-builder.d.ts +2 -0
- package/dist/build/candidate-builder.js +5 -1
- package/dist/build/candidate-cli.js +3 -0
- package/dist/build/candidate-cli.mjs +67 -22
- package/dist/build/job-log.d.ts +23 -0
- package/dist/build/job-log.js +88 -0
- package/dist/build/local-build.d.ts +2 -0
- package/dist/build/local-build.js +11 -9
- package/dist/channels/binding.d.ts +8 -1
- package/dist/channels/binding.js +12 -0
- package/dist/channels/conversations.d.ts +16 -5
- package/dist/channels/visitor-channel.d.ts +53 -0
- package/dist/channels/visitor-channel.js +124 -0
- package/dist/channels/visitor-edge.d.ts +115 -0
- package/dist/channels/visitor-edge.js +582 -0
- package/dist/channels/visitor-request.d.ts +7 -0
- package/dist/channels/visitor-request.js +17 -0
- package/dist/channels/visitor-stream-slots.d.ts +2 -0
- package/dist/channels/visitor-stream-slots.js +33 -0
- package/dist/channels/visitors.d.ts +47 -0
- package/dist/channels/visitors.js +181 -0
- package/dist/cloudflare.d.ts +11 -2
- package/dist/cloudflare.js +27 -1
- package/dist/{page/computer-target.d.ts → computer-target.d.ts} +2 -0
- package/dist/{page/computer-target.js → computer-target.js} +3 -1
- package/dist/files.js +9 -8
- package/dist/git-admission.d.ts +3 -3
- package/dist/git-admission.js +4 -6
- package/dist/git-door.d.ts +8 -7
- package/dist/git-door.js +18 -17
- package/dist/git.d.ts +1 -1
- package/dist/host.d.ts +38 -42
- package/dist/host.js +182 -239
- package/dist/installation-execution.js +10 -5
- package/dist/installation-operations.d.ts +4 -180
- package/dist/installation-operations.js +1 -5
- package/dist/installation-store-generation.d.ts +4 -1
- package/dist/installation-store-generation.js +59 -6
- package/dist/internal/delivery.js +0 -1
- package/dist/internal/host-gate.d.ts +9 -6
- package/dist/internal/host-gate.js +19 -25
- package/dist/internal/invocation-timing.d.ts +16 -0
- package/dist/internal/invocation-timing.js +23 -0
- package/dist/internal/registry-installations.js +1 -0
- package/dist/invocation.d.ts +19 -11
- package/dist/invocation.js +171 -96
- package/dist/keys.d.ts +2 -19
- package/dist/keys.js +1 -37
- package/dist/mcp.d.ts +15 -27
- package/dist/mcp.js +105 -155
- package/dist/page/agent-browser.d.ts +15 -0
- package/dist/page/agent-browser.js +162 -0
- package/dist/page/app-permissions-port.d.ts +3 -0
- package/dist/page/app-permissions-port.js +43 -0
- package/dist/page/app-permissions.d.ts +11 -0
- package/dist/page/app-permissions.js +296 -0
- package/dist/page/capabilities.js +1 -1
- package/dist/page/child-selection.d.ts +27 -0
- package/dist/page/child-selection.js +38 -0
- package/dist/page/isolated-page-theme.d.ts +2 -0
- package/dist/page/isolated-page-theme.js +11 -0
- package/dist/page/mount.d.ts +2 -13
- package/dist/page/mount.js +8 -94
- package/dist/page-script.d.ts +0 -3
- package/dist/page-script.js +3 -4
- package/dist/release.d.ts +13 -0
- package/dist/release.js +10 -0
- package/dist/request-origin.d.ts +4 -0
- package/dist/request-origin.js +10 -0
- package/dist/standalone/agent-archive-owner.d.ts +42 -0
- package/dist/standalone/agent-archive-owner.js +116 -0
- package/dist/standalone/agent-archive-schedules.d.ts +6 -0
- package/dist/standalone/agent-archive-schedules.js +76 -0
- package/dist/standalone/agent-archive.d.ts +31 -0
- package/dist/standalone/agent-archive.js +67 -0
- package/dist/standalone/agent-computers.d.ts +7 -6
- package/dist/standalone/agent-computers.js +4 -7
- package/dist/standalone/agent-mail.d.ts +2 -2
- package/dist/standalone/agents.d.ts +157 -20
- package/dist/standalone/agents.js +242 -38
- package/dist/standalone/app-builds-binding.js +1 -1
- package/dist/standalone/app-set.js +2 -54
- package/dist/standalone/app-source.d.ts +3 -4
- package/dist/standalone/app-source.js +12 -9
- package/dist/standalone/builds.d.ts +2 -14
- package/dist/standalone/builds.js +15 -13
- package/dist/standalone/computer-fleet.d.ts +4 -4
- package/dist/standalone/computer-fleet.js +20 -43
- package/dist/standalone/computer.d.ts +4 -3
- package/dist/standalone/computer.js +52 -53
- package/dist/standalone/dashboard-approval.d.ts +10 -0
- package/dist/standalone/dashboard-approval.js +66 -0
- package/dist/standalone/machine-link.d.ts +4 -221
- package/dist/standalone/machine-link.js +21 -15
- package/dist/standalone/media.d.ts +1 -0
- package/dist/standalone/media.js +20 -14
- package/dist/standalone/owner-routes.d.ts +16 -0
- package/dist/standalone/owner-routes.js +21 -0
- package/dist/standalone/permission-resources.d.ts +5 -0
- package/dist/standalone/permission-resources.js +31 -0
- package/dist/standalone/registry.d.ts +7 -0
- package/dist/standalone/registry.js +3 -0
- package/dist/standalone/tenancy.js +3 -1
- package/dist/standalone/worker-routes.d.ts +19 -0
- package/dist/standalone/worker-routes.js +9 -0
- package/dist/standalone/worker.d.ts +1 -1
- package/dist/standalone/worker.js +27 -35
- package/dist/standalone/workflow-binding.d.ts +8 -3
- package/dist/standalone/workflow-binding.js +14 -5
- package/dist/standalone/workflow-git-capture.js +2 -1
- package/dist/standalone/workflow-host.d.ts +8 -103
- package/dist/standalone/workflow-host.js +1 -1
- package/dist/standalone/workflow-node-capture.js +2 -2
- package/dist/standalone/workflow-root-authority.d.ts +1 -1
- package/dist/standalone/workflow-root-authority.js +1 -1
- package/dist/standalone/workflow-schedules.d.ts +14 -5
- package/dist/standalone/workflow-schedules.js +11 -5
- package/dist/standalone/workflow-webhooks.d.ts +4 -18
- package/dist/standalone/workflow-webhooks.js +5 -5
- package/dist/standalone/workflows.d.ts +36 -28
- package/dist/standalone/workflows.js +6 -3
- package/dist/storage-frame.d.ts +6 -6
- package/dist/testing/capabilities.d.ts +7 -6
- package/dist/testing/capabilities.js +3 -6
- package/dist/testing/installation.d.ts +0 -1
- package/dist/testing/installation.js +2 -5
- package/dist/turnstile.d.ts +27 -0
- package/dist/turnstile.js +51 -0
- package/dist/workers-git.d.ts +12 -4
- package/dist/workers-git.js +58 -36
- package/dist/workers.d.ts +9 -1
- package/dist/workers.js +59 -20
- package/dist/workflows.d.ts +2 -0
- package/dist/workflows.js +1 -0
- package/docs/api/README.md +7 -0
- package/docs/api/agent-schedules.md +175 -0
- package/docs/api/agents.md +34 -13
- package/docs/api/app-storage.md +1 -1
- package/docs/api/apps.md +323 -225
- package/docs/api/authorization.md +1300 -0
- package/docs/api/build-contract.md +2 -2
- package/docs/api/build.md +40 -37
- package/docs/api/cloudflare.md +27 -2
- package/docs/api/git.md +20 -11
- package/docs/api/host.md +80 -199
- package/docs/api/index.md +1 -1
- package/docs/api/invocation.md +15 -11
- package/docs/api/keys.md +1 -98
- package/docs/api/mcp.md +43 -40
- package/docs/api/modules.md +2 -0
- package/docs/api/page/mount.md +16 -19
- package/docs/api/workers-git.md +46 -12
- package/docs/api/workers.md +125 -235
- package/docs/site/agent-quickstart.mdx +6 -2
- package/examples/standalone/wrangler.celld.jsonc +66 -0
- package/package.json +64 -21
- package/dist/standalone/channel-session-door.d.ts +0 -4
- package/dist/standalone/channel-session-door.js +0 -42
package/docs/api/agents.md
CHANGED
|
@@ -167,6 +167,26 @@ type OysterAgents = Readonly<{
|
|
|
167
167
|
)[];
|
|
168
168
|
}>[]
|
|
169
169
|
>;
|
|
170
|
+
setArchived: Promise<
|
|
171
|
+
| Readonly<{
|
|
172
|
+
archived: boolean;
|
|
173
|
+
revision: number;
|
|
174
|
+
}>
|
|
175
|
+
| Readonly<{
|
|
176
|
+
error:
|
|
177
|
+
| "not_found"
|
|
178
|
+
| "not_granted"
|
|
179
|
+
| "self"
|
|
180
|
+
| "not_creator"
|
|
181
|
+
| "running"
|
|
182
|
+
| "pending"
|
|
183
|
+
| "unreadable"
|
|
184
|
+
| "archived";
|
|
185
|
+
message?: string;
|
|
186
|
+
archived?: boolean;
|
|
187
|
+
revision?: number;
|
|
188
|
+
}>
|
|
189
|
+
>;
|
|
170
190
|
create: Promise<
|
|
171
191
|
Readonly<{
|
|
172
192
|
agentId: string;
|
|
@@ -301,7 +321,12 @@ type OysterAgents = Readonly<{
|
|
|
301
321
|
}>;
|
|
302
322
|
```
|
|
303
323
|
|
|
304
|
-
Where an Oyster's agents live and run.
|
|
324
|
+
Where an Oyster's agents live and run. Archive is non-destructive: `list()`
|
|
325
|
+
hides archived agents, and `list({ archived: true })` shows only archives.
|
|
326
|
+
Archived agents keep existing reads, replays and settlements, but refuse new
|
|
327
|
+
Sessions, prompts and steers with `contract/archived`. Archive refuses non-idle
|
|
328
|
+
Session work or unsettled delegations; it pauses Almanac and Loop schedules and
|
|
329
|
+
restores only archive-paused schedules on unarchive.
|
|
305
330
|
|
|
306
331
|
---
|
|
307
332
|
|
|
@@ -358,20 +383,16 @@ optional bearer.
|
|
|
358
383
|
### agentCapabilities()
|
|
359
384
|
|
|
360
385
|
```ts
|
|
361
|
-
function agentCapabilities(
|
|
362
|
-
agents,
|
|
363
|
-
liveKey,
|
|
364
|
-
): readonly Readonly<object & object>[];
|
|
386
|
+
function agentCapabilities(agents): readonly Readonly<object & object>[];
|
|
365
387
|
```
|
|
366
388
|
|
|
367
389
|
Agent adapters admitted against each App's declared capabilities.
|
|
368
390
|
|
|
369
391
|
#### Parameters
|
|
370
392
|
|
|
371
|
-
| Parameter | Type
|
|
372
|
-
| --------- |
|
|
373
|
-
| `agents` | [`OysterAgents`](#oysteragents)
|
|
374
|
-
| `liveKey` | (`keyId`) => `Promise`\< \| `Readonly`\<\{ `keyId`: `string`; `owner`: `string`; `grantVersion`: `number`; `grants`: readonly `Readonly`\<\{ `capability`: [`OysterKeyCapability`](keys.md#oysterkeycapability); `targets`: `GrantTargets`; \}\>[]; \}\> \| `null`\> |
|
|
393
|
+
| Parameter | Type |
|
|
394
|
+
| --------- | ------------------------------- |
|
|
395
|
+
| `agents` | [`OysterAgents`](#oysteragents) |
|
|
375
396
|
|
|
376
397
|
#### Returns
|
|
377
398
|
|
|
@@ -382,7 +403,7 @@ readonly `Readonly`\<`object` & `object`\>[]
|
|
|
382
403
|
### agentApprovalRoutes()
|
|
383
404
|
|
|
384
405
|
```ts
|
|
385
|
-
function agentApprovalRoutes(agents):
|
|
406
|
+
function agentApprovalRoutes(agents): Routes<OysterEnv>;
|
|
386
407
|
```
|
|
387
408
|
|
|
388
409
|
Host-owned direct approval under the admitted owner; never an App capability.
|
|
@@ -395,14 +416,14 @@ Host-owned direct approval under the admitted owner; never an App capability.
|
|
|
395
416
|
|
|
396
417
|
#### Returns
|
|
397
418
|
|
|
398
|
-
`
|
|
419
|
+
[`Routes`](authorization.md#routes)\<[`OysterEnv`](host.md#oysterenv)\>
|
|
399
420
|
|
|
400
421
|
---
|
|
401
422
|
|
|
402
423
|
### agentMcpServerRoutes()
|
|
403
424
|
|
|
404
425
|
```ts
|
|
405
|
-
function agentMcpServerRoutes(agents):
|
|
426
|
+
function agentMcpServerRoutes(agents): Routes<OysterEnv>;
|
|
406
427
|
```
|
|
407
428
|
|
|
408
429
|
Host-owned Agent MCP server custody for the owner directly; never an App
|
|
@@ -416,4 +437,4 @@ capability. Bearer tokens go in and never come back out.
|
|
|
416
437
|
|
|
417
438
|
#### Returns
|
|
418
439
|
|
|
419
|
-
`
|
|
440
|
+
[`Routes`](authorization.md#routes)\<[`OysterEnv`](host.md#oysterenv)\>
|
package/docs/api/app-storage.md
CHANGED
|
@@ -131,7 +131,7 @@ Whether `writer` may mutate `scope`; anything else is `owner_required`.
|
|
|
131
131
|
| Parameter | Type |
|
|
132
132
|
| --------- | --------------------------------------- |
|
|
133
133
|
| `writer` | [`AppStorageWriter`](#appstoragewriter) |
|
|
134
|
-
| `scope` | `"
|
|
134
|
+
| `scope` | `"team"` \| `"member"` |
|
|
135
135
|
|
|
136
136
|
#### Returns
|
|
137
137
|
|