@fungi.computer/oyster 0.35.1 → 0.37.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.
Files changed (39) hide show
  1. package/dist/boot-host-script.js +1 -1
  2. package/dist/build/candidate-cli.mjs +50 -15
  3. package/dist/catalog-frame.js +8 -0
  4. package/dist/cloudflare.js +1 -0
  5. package/dist/embed-metafiles.js +2 -2
  6. package/dist/embed-scripts.js +1 -1
  7. package/dist/hello-app-script.js +1 -1
  8. package/dist/host.d.ts +3 -1
  9. package/dist/host.js +9 -9
  10. package/dist/internal/delivery.js +1 -1
  11. package/dist/invocation.d.ts +27 -5
  12. package/dist/invocation.js +9 -7
  13. package/dist/mcp.d.ts +3 -3
  14. package/dist/mcp.js +1 -1
  15. package/dist/page-script.js +2 -2
  16. package/dist/standalone/agent-self.d.ts +19 -0
  17. package/dist/standalone/agent-self.js +72 -0
  18. package/dist/standalone/agents.d.ts +2 -2
  19. package/dist/standalone/agents.js +30 -8
  20. package/dist/standalone/workflow-git-capture.d.ts +1 -1
  21. package/dist/standalone/workflow-git-capture.js +1 -1
  22. package/dist/standalone/workflow-host.d.ts +63 -26
  23. package/dist/standalone/workflow-host.js +21 -3
  24. package/dist/standalone/workflow-node-capture.d.ts +1 -1
  25. package/dist/standalone/workflow-node-capture.js +1 -1
  26. package/dist/standalone/workflow-trigger-host.d.ts +193 -73
  27. package/dist/standalone/workflows.d.ts +54 -24
  28. package/dist/testing/capabilities.js +2 -0
  29. package/dist/testing/worker.js +1 -0
  30. package/dist/workers-git.js +2 -1
  31. package/dist/workers.js +5 -0
  32. package/docs/api/build-contract.md +27 -27
  33. package/docs/api/build.md +51 -60
  34. package/docs/api/host.md +19 -34
  35. package/docs/api/invocation.md +135 -97
  36. package/docs/api/mcp.md +5 -5
  37. package/docs/api/workers-git.md +180 -179
  38. package/docs/api/workers.md +217 -215
  39. package/package.json +18 -18
package/docs/api/mcp.md CHANGED
@@ -381,7 +381,7 @@ Derive the current principal's admitted App modules and grants.
381
381
 
382
382
  | Parameter | Type |
383
383
  | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
384
- | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), \| `"installations"` \| `"instances"` \| `"artifacts"` \| `"guestLimits"` \| `"backgroundOriginKey"` \| `"computerId"` \| `"capabilities"` \| `"appToolPolicy"` \| `"keys"` \| `"approvals"`\> |
384
+ | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), \| `"tenantId"` \| `"installations"` \| `"instances"` \| `"artifacts"` \| `"guestLimits"` \| `"backgroundOriginKey"` \| `"computerId"` \| `"capabilities"` \| `"appToolPolicy"` \| `"keys"` \| `"approvals"`\> |
385
385
  | `surfaces` | [`AppSurfaceCache`](#appsurfacecache) |
386
386
  | `principal` | [`TenantPrincipal`](tenant.md#tenantprincipal) |
387
387
  | `installations` | readonly `Readonly`\<\{ `installationId`: `string`; `instanceId`: [`InstanceId`](index.md#instanceid) \| `null`; `appId`: `AppId`; `release`: \{ `releaseId`: `ReleaseId`; `appId`: `AppId`; `artifact`: \{ `artifactRef`: `ArtifactRef`; `artifactDigest`: `Sha256Digest`; `provenance`: \{ `sourceRevision`: `SourceRevision`; `sourceTreeDigest`: `Sha256Digest`; `buildRecipeDigest`: `Sha256Digest`; \}; \}; \}; `releasePin`: `"pinned"` \| `"floating"`; `authority`: \{ `authorityVersion`: `number`; `declaredOperationsDigest`: `Sha256Digest`; `approvedGrants`: readonly `Readonly`\<\{ `capability`: \| `"computer.list"` \| `"computer.readFile"` \| `"computer.writeFile"` \| `"computer.execute"` \| `"approvals"` \| `"agent.list"` \| `"agent.manage"` \| `"agent.rename"` \| `"agent.avatar"` \| `"agent.instructions"` \| `"agent.toolPolicy"` \| `"agent.read"` \| `"agent.send"` \| `"llm.generation"` \| `"media.generation"` \| `"media.share"` \| `"games:servers"` \| `"git.repository"` \| `"apps.open"` \| `"apps.call"` \| `"app.storage"` \| `"app.events.emit"` \| `"team.workbenchHost"` \| `"marketplace.browse"` \| `"marketplace.purchase"` \| `"workflow.run"` \| `"workflow.publish"` \| `"workflow.arm"` \| `"world"` \| `"channels.read"` \| `"channels.personal.manage"`; `capabilityApproved`: `true`; `operations`: readonly `string`[]; `fingerprints`: `Readonly`\<`Record`\<`string`, `string`\>\>; `resources`: \| `"tenant-scope"` \| readonly `Readonly`\<\{ `kind`: ...; `id`: ...; \}\>[]; \}\>[]; `approval`: \| `Readonly`\<\{ `by`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `at`: `number`; `authorityVersion`: `number`; \}\> \| `null`; \}; `status`: `"enabled"` \| `"disabled"` \| `"deleted"`; \}\>[] |
@@ -436,7 +436,7 @@ installation authority or the caller's own grants.
436
436
 
437
437
  | Parameter | Type |
438
438
  | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
439
- | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), \| `"installations"` \| `"instances"` \| `"artifacts"` \| `"guestLimits"` \| `"backgroundOriginKey"` \| `"computerId"` \| `"capabilities"` \| `"appToolPolicy"` \| `"keys"` \| `"approvals"`\> |
439
+ | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), \| `"tenantId"` \| `"installations"` \| `"instances"` \| `"artifacts"` \| `"guestLimits"` \| `"backgroundOriginKey"` \| `"computerId"` \| `"capabilities"` \| `"appToolPolicy"` \| `"keys"` \| `"approvals"`\> |
440
440
  | `principal` | [`TenantPrincipal`](tenant.md#tenantprincipal) |
441
441
  | `access` | [`OysterCallerAccess`](#oystercalleraccess) |
442
442
  | `surfaces` | [`AppSurfaceCache`](#appsurfacecache) |
@@ -512,9 +512,9 @@ current App approval and passes the App's gate.
512
512
 
513
513
  #### Parameters
514
514
 
515
- | Parameter | Type |
516
- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
517
- | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), \| `"installations"` \| `"instances"` \| `"artifacts"` \| `"guestLimits"` \| `"backgroundOriginKey"` \| `"computerId"` \| `"computer"` \| `"computerControl"` \| `"capabilities"` \| `"appToolPolicy"` \| `"keys"` \| `"workflows"`\> |
515
+ | Parameter | Type |
516
+ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
517
+ | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), \| `"tenantId"` \| `"installations"` \| `"instances"` \| `"artifacts"` \| `"guestLimits"` \| `"backgroundOriginKey"` \| `"computerId"` \| `"computer"` \| `"computerControl"` \| `"capabilities"` \| `"appToolPolicy"` \| `"keys"` \| `"workflows"`\> |
518
518
 
519
519
  #### Returns
520
520