@fungi.computer/oyster 0.52.2 → 0.53.1
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/dist/agent-computer-source.js +3 -2
- package/dist/build/candidate-cli.mjs +29 -12
- package/dist/build/effect.d.ts +2 -0
- package/dist/build/effect.js +2 -1
- package/dist/build/local-build.d.ts +17 -1
- package/dist/build/local-build.js +112 -10
- package/dist/build/shared-workspace.d.ts +7 -0
- package/dist/build/shared-workspace.js +18 -0
- package/dist/build.d.ts +1 -1
- package/dist/build.js +1 -1
- package/dist/embed-metafiles.js +1 -1
- package/dist/embed-scripts.js +2 -2
- package/dist/page-script.js +3 -3
- package/dist/platform-skills.generated.d.ts +2 -2
- package/dist/platform-skills.generated.js +2 -2
- package/dist/standalone/agent-computers.js +3 -2
- package/dist/standalone/agents.d.ts +2 -2
- package/dist/standalone/agents.js +7 -0
- package/dist/standalone/computer-capabilities.d.ts +5 -0
- package/dist/standalone/computer-capabilities.js +11 -0
- package/dist/standalone/computer.d.ts +2 -2
- package/dist/standalone/computer.js +26 -2
- package/dist/standalone/workflow-host.d.ts +16 -16
- package/dist/standalone/workflows.d.ts +16 -16
- package/dist/workers.d.ts +3 -3
- package/docs/api/build-contract.md +6 -0
- package/docs/api/build.md +62 -0
- package/package.json +22 -22
package/docs/api/build.md
CHANGED
|
@@ -1196,6 +1196,38 @@ policy describes a build this code does not perform.
|
|
|
1196
1196
|
|
|
1197
1197
|
---
|
|
1198
1198
|
|
|
1199
|
+
### captureConfig()
|
|
1200
|
+
|
|
1201
|
+
```ts
|
|
1202
|
+
function captureConfig(input): CapturedConfig;
|
|
1203
|
+
```
|
|
1204
|
+
|
|
1205
|
+
Decode and pin one App Publisher configuration, with its recipe digest.
|
|
1206
|
+
|
|
1207
|
+
#### Parameters
|
|
1208
|
+
|
|
1209
|
+
| Parameter | Type |
|
|
1210
|
+
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1211
|
+
| `input` | \{ `appId`: `string`; `recipe`: \{ `kind?`: `"bundled-html"` \| `"source-html"`; `entry`: `string`; `assets?`: \{ `maxManifestBytes`: `number`; `maxObjects`: `number`; `maxObjectBytes`: `number`; `maxTotalBytes`: `number`; \}; `assetBase?`: `string`; `backend`: \| \{ `entry?`: `string`; `runtime`: \{ `kind`: `"durable-facet"` \| `"region"`; `stateSchema`: `number`; \}; `compatibilityDate`: `string`; `exportName`: `string`; \} \| `null`; `maxOutputBytes`: `number`; \}; \} |
|
|
1212
|
+
| `input.appId` | `string` |
|
|
1213
|
+
| `input.recipe` | \{ `kind?`: `"bundled-html"` \| `"source-html"`; `entry`: `string`; `assets?`: \{ `maxManifestBytes`: `number`; `maxObjects`: `number`; `maxObjectBytes`: `number`; `maxTotalBytes`: `number`; \}; `assetBase?`: `string`; `backend`: \| \{ `entry?`: `string`; `runtime`: \{ `kind`: `"durable-facet"` \| `"region"`; `stateSchema`: `number`; \}; `compatibilityDate`: `string`; `exportName`: `string`; \} \| `null`; `maxOutputBytes`: `number`; \} |
|
|
1214
|
+
| `input.recipe.kind?` | `"bundled-html"` \| `"source-html"` |
|
|
1215
|
+
| `input.recipe.entry` | `string` |
|
|
1216
|
+
| `input.recipe.assets?` | \{ `maxManifestBytes`: `number`; `maxObjects`: `number`; `maxObjectBytes`: `number`; `maxTotalBytes`: `number`; \} |
|
|
1217
|
+
| `input.recipe.assets.maxManifestBytes` | `number` |
|
|
1218
|
+
| `input.recipe.assets.maxObjects` | `number` |
|
|
1219
|
+
| `input.recipe.assets.maxObjectBytes` | `number` |
|
|
1220
|
+
| `input.recipe.assets.maxTotalBytes` | `number` |
|
|
1221
|
+
| `input.recipe.assetBase?` | `string` |
|
|
1222
|
+
| `input.recipe.backend` | \| \{ `entry?`: `string`; `runtime`: \{ `kind`: `"durable-facet"` \| `"region"`; `stateSchema`: `number`; \}; `compatibilityDate`: `string`; `exportName`: `string`; \} \| `null` |
|
|
1223
|
+
| `input.recipe.maxOutputBytes` | `number` |
|
|
1224
|
+
|
|
1225
|
+
#### Returns
|
|
1226
|
+
|
|
1227
|
+
[`CapturedConfig`](#capturedconfig)
|
|
1228
|
+
|
|
1229
|
+
---
|
|
1230
|
+
|
|
1199
1231
|
### digestPinnedRecipe()
|
|
1200
1232
|
|
|
1201
1233
|
```ts
|
|
@@ -1698,6 +1730,36 @@ Local proving adapter; it builds only the captured extracted snapshot.
|
|
|
1698
1730
|
|
|
1699
1731
|
---
|
|
1700
1732
|
|
|
1733
|
+
### createLocalCandidatesPreparer()
|
|
1734
|
+
|
|
1735
|
+
```ts
|
|
1736
|
+
function createLocalCandidatesPreparer(options): Readonly<{
|
|
1737
|
+
prepareCandidates: (
|
|
1738
|
+
releaseIds,
|
|
1739
|
+
) => Effect.Effect<readonly PreparedCandidate[], AppPublisherError>;
|
|
1740
|
+
}>;
|
|
1741
|
+
```
|
|
1742
|
+
|
|
1743
|
+
Prepare several first-party Apps from one capture of one commit: one source
|
|
1744
|
+
snapshot, one frozen install and each workspace TypeScript config compiled once,
|
|
1745
|
+
then each App's stylesheets, page, declaration and backend in order. Every App
|
|
1746
|
+
keeps its own recipe digest and the capture's provenance; the first failure
|
|
1747
|
+
stops the pass.
|
|
1748
|
+
|
|
1749
|
+
#### Parameters
|
|
1750
|
+
|
|
1751
|
+
| Parameter | Type |
|
|
1752
|
+
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1753
|
+
| `options` | `Readonly`\<\{ `configs`: readonly [`AppPublisherCoreConfigInput`](#apppublishercoreconfiginput)[]; `sourceCapture`: [`SourceCapture`](#sourcecapture); `executor`: `Omit`\<[`LocalBuildExecutorOptions`](#localbuildexecutoroptions), `"packageScripts"`\>; \}\> |
|
|
1754
|
+
|
|
1755
|
+
#### Returns
|
|
1756
|
+
|
|
1757
|
+
`Readonly`\<\{ `prepareCandidates`: (`releaseIds`) => `Effect.Effect`\<readonly
|
|
1758
|
+
[`PreparedCandidate`](#preparedcandidate)[],
|
|
1759
|
+
[`AppPublisherError`](#apppublishererror)\>; \}\>
|
|
1760
|
+
|
|
1761
|
+
---
|
|
1762
|
+
|
|
1701
1763
|
### createLocalArtifactWriter()
|
|
1702
1764
|
|
|
1703
1765
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/oyster",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.1",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "Oyster by Fungi: open-source Apps for people and AI agents. Try with one command or run on your own Cloudflare account.",
|
|
6
6
|
"homepage": "https://docs.fungi.computer/oyster",
|
|
@@ -362,37 +362,37 @@
|
|
|
362
362
|
"dependencies": {
|
|
363
363
|
"@cfworker/json-schema": "4.1.1",
|
|
364
364
|
"@earendil-works/pi-ai": "1.5.2",
|
|
365
|
-
"@fungi.computer/agar": "0.25.
|
|
366
|
-
"@fungi.computer/bird-dog": "0.3.
|
|
367
|
-
"@fungi.computer/braid": "0.6.
|
|
365
|
+
"@fungi.computer/agar": "0.25.1",
|
|
366
|
+
"@fungi.computer/bird-dog": "0.3.8",
|
|
367
|
+
"@fungi.computer/braid": "0.6.6",
|
|
368
368
|
"@fungi.computer/burrow": "0.2.1",
|
|
369
369
|
"@fungi.computer/cairn": "0.1.0",
|
|
370
370
|
"@fungi.computer/capnweb": "0.12.0-fungi.0",
|
|
371
|
-
"@fungi.computer/caps": "0.12.
|
|
372
|
-
"@fungi.computer/carrier": "0.2.
|
|
373
|
-
"@fungi.computer/computer": "0.
|
|
374
|
-
"@fungi.computer/computer-contract": "0.
|
|
375
|
-
"@fungi.computer/darkroom": "0.11.
|
|
371
|
+
"@fungi.computer/caps": "0.12.6",
|
|
372
|
+
"@fungi.computer/carrier": "0.2.6",
|
|
373
|
+
"@fungi.computer/computer": "0.17.0",
|
|
374
|
+
"@fungi.computer/computer-contract": "0.6.0",
|
|
375
|
+
"@fungi.computer/darkroom": "0.11.14",
|
|
376
376
|
"@fungi.computer/ear-tag": "0.1.0",
|
|
377
|
-
"@fungi.computer/forage": "0.4.
|
|
377
|
+
"@fungi.computer/forage": "0.4.1",
|
|
378
378
|
"@fungi.computer/gills": "0.4.0",
|
|
379
|
-
"@fungi.computer/knapsack": "0.4.
|
|
379
|
+
"@fungi.computer/knapsack": "0.4.24",
|
|
380
380
|
"@fungi.computer/lantern": "0.4.2",
|
|
381
|
-
"@fungi.computer/mycelium": "0.4.
|
|
382
|
-
"@fungi.computer/nacre": "0.8.
|
|
383
|
-
"@fungi.computer/parakeet": "0.16.
|
|
384
|
-
"@fungi.computer/puffball": "0.13.
|
|
385
|
-
"@fungi.computer/seam": "0.2.
|
|
386
|
-
"@fungi.computer/shiitake": "0.21.
|
|
387
|
-
"@fungi.computer/shiitake-extensions": "0.12.
|
|
381
|
+
"@fungi.computer/mycelium": "0.4.9",
|
|
382
|
+
"@fungi.computer/nacre": "0.8.8",
|
|
383
|
+
"@fungi.computer/parakeet": "0.16.10",
|
|
384
|
+
"@fungi.computer/puffball": "0.13.1",
|
|
385
|
+
"@fungi.computer/seam": "0.2.7",
|
|
386
|
+
"@fungi.computer/shiitake": "0.21.16",
|
|
387
|
+
"@fungi.computer/shiitake-extensions": "0.12.5",
|
|
388
388
|
"@fungi.computer/sigils": "0.3.2",
|
|
389
389
|
"@fungi.computer/sprite": "0.2.2",
|
|
390
390
|
"@fungi.computer/sprite-zdog": "0.3.2",
|
|
391
|
-
"@fungi.computer/veil": "0.11.
|
|
392
|
-
"@fungi.computer/watchdog": "0.1.
|
|
391
|
+
"@fungi.computer/veil": "0.11.6",
|
|
392
|
+
"@fungi.computer/watchdog": "0.1.5",
|
|
393
393
|
"@fungi.computer/whistle": "0.3.0",
|
|
394
|
-
"@fungi.computer/workflows-wire": "0.7.
|
|
395
|
-
"@fungi.computer/zookeeper": "0.0.
|
|
394
|
+
"@fungi.computer/workflows-wire": "0.7.6",
|
|
395
|
+
"@fungi.computer/zookeeper": "0.0.58",
|
|
396
396
|
"@jellybrick/dbus-next": "0.11.4",
|
|
397
397
|
"@modelcontextprotocol/server": "2.0.0",
|
|
398
398
|
"@msgpack/msgpack": "3.1.3",
|