@fungi.computer/oyster 0.47.5 → 0.49.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 +11 -3
- package/dist/apps/index.d.ts +1 -0
- package/dist/apps/index.js +1 -0
- package/dist/apps/install-confirmation.d.ts +26 -0
- package/dist/apps/install-confirmation.js +28 -0
- package/dist/apps/installation.d.ts +6 -0
- package/dist/apps/installation.js +12 -7
- package/dist/build/candidate-cli.mjs +1 -1
- package/dist/build/snapshot-program-scripts.js +1 -1
- package/dist/host.js +42 -2
- package/dist/install-preview.d.ts +19 -0
- package/dist/install-preview.js +41 -0
- package/dist/install-release-cli.d.ts +1 -1
- package/dist/install-release-cli.js +56 -24
- package/dist/pack.d.ts +55 -1
- package/dist/pack.js +66 -11
- package/dist/page/app-permissions.js +2 -5
- package/dist/page-script.js +1 -1
- package/dist/standalone/agents.js +1 -4
- package/dist/standalone/app-set.d.ts +20 -1
- package/dist/standalone/app-set.js +119 -60
- package/dist/standalone/computer.d.ts +10 -0
- package/dist/standalone/computer.js +43 -1
- package/dist/standalone/install-apps-cli.js +25 -3
- package/dist/starter-agent.d.ts +1 -3
- package/dist/starter-agent.js +4 -8
- package/docs/api/apps.md +53 -0
- package/docs/api/pack.md +252 -3
- package/package.json +3 -3
package/docs/api/pack.md
CHANGED
|
@@ -111,6 +111,16 @@ type PackedRelease = Readonly<{
|
|
|
111
111
|
|
|
112
112
|
A packed Release on disk.
|
|
113
113
|
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### UploadedRelease
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
type UploadedRelease = Schema.Schema.Type<typeof releaseSchema>;
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
The Release `release.json` names, as read and uploaded.
|
|
123
|
+
|
|
114
124
|
## Variables
|
|
115
125
|
|
|
116
126
|
### installationOperationSchema
|
|
@@ -317,6 +327,245 @@ retains its original lifetime.
|
|
|
317
327
|
|
|
318
328
|
---
|
|
319
329
|
|
|
330
|
+
### previewBuiltRelease()
|
|
331
|
+
|
|
332
|
+
```ts
|
|
333
|
+
function previewBuiltRelease(input): Promise<{
|
|
334
|
+
name: string;
|
|
335
|
+
capabilities: readonly (
|
|
336
|
+
| "computer.list"
|
|
337
|
+
| "computer.readFile"
|
|
338
|
+
| "computer.writeFile"
|
|
339
|
+
| "computer.execute"
|
|
340
|
+
| "approvals"
|
|
341
|
+
| "agent.list"
|
|
342
|
+
| "agent.manage"
|
|
343
|
+
| "agent.rename"
|
|
344
|
+
| "agent.avatar"
|
|
345
|
+
| "agent.instructions"
|
|
346
|
+
| "agent.toolPolicy"
|
|
347
|
+
| "agent.read"
|
|
348
|
+
| "agent.send"
|
|
349
|
+
| "llm.generation"
|
|
350
|
+
| "media.generation"
|
|
351
|
+
| "media.share"
|
|
352
|
+
| "games:servers"
|
|
353
|
+
| "git.repository"
|
|
354
|
+
| "apps.open"
|
|
355
|
+
| "apps.call"
|
|
356
|
+
| "app.storage"
|
|
357
|
+
| "app.events.emit"
|
|
358
|
+
| "team.workbenchHost"
|
|
359
|
+
| "marketplace.browse"
|
|
360
|
+
| "marketplace.purchase"
|
|
361
|
+
| "workflow.run"
|
|
362
|
+
| "workflow.publish"
|
|
363
|
+
| "workflow.arm"
|
|
364
|
+
| "world"
|
|
365
|
+
| "channels.read"
|
|
366
|
+
| "channels.personal.manage"
|
|
367
|
+
)[];
|
|
368
|
+
update: {
|
|
369
|
+
installationId: string;
|
|
370
|
+
needsApproval: readonly (
|
|
371
|
+
| "computer.list"
|
|
372
|
+
| "computer.readFile"
|
|
373
|
+
| "computer.writeFile"
|
|
374
|
+
| "computer.execute"
|
|
375
|
+
| "approvals"
|
|
376
|
+
| "agent.list"
|
|
377
|
+
| "agent.manage"
|
|
378
|
+
| "agent.rename"
|
|
379
|
+
| "agent.avatar"
|
|
380
|
+
| "agent.instructions"
|
|
381
|
+
| "agent.toolPolicy"
|
|
382
|
+
| "agent.read"
|
|
383
|
+
| "agent.send"
|
|
384
|
+
| "llm.generation"
|
|
385
|
+
| "media.generation"
|
|
386
|
+
| "media.share"
|
|
387
|
+
| "games:servers"
|
|
388
|
+
| "git.repository"
|
|
389
|
+
| "apps.open"
|
|
390
|
+
| "apps.call"
|
|
391
|
+
| "app.storage"
|
|
392
|
+
| "app.events.emit"
|
|
393
|
+
| "team.workbenchHost"
|
|
394
|
+
| "marketplace.browse"
|
|
395
|
+
| "marketplace.purchase"
|
|
396
|
+
| "workflow.run"
|
|
397
|
+
| "workflow.publish"
|
|
398
|
+
| "workflow.arm"
|
|
399
|
+
| "world"
|
|
400
|
+
| "channels.read"
|
|
401
|
+
| "channels.personal.manage"
|
|
402
|
+
)[];
|
|
403
|
+
} | null;
|
|
404
|
+
}>;
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
Ask the Oyster what installing a Release it already holds would request, and
|
|
408
|
+
whether it would update an existing installation.
|
|
409
|
+
|
|
410
|
+
#### Parameters
|
|
411
|
+
|
|
412
|
+
| Parameter | Type |
|
|
413
|
+
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
414
|
+
| `input` | `Readonly`\<\{ `url`: `string`; `key`: `string`; `release`: [`UploadedRelease`](#uploadedrelease); `installationId?`: `string`; `signal?`: `AbortSignal`; \}\> |
|
|
415
|
+
|
|
416
|
+
#### Returns
|
|
417
|
+
|
|
418
|
+
`Promise`\<\{ `name`: `string`; `capabilities`: readonly ( \| `"computer.list"`
|
|
419
|
+
\| `"computer.readFile"` \| `"computer.writeFile"` \| `"computer.execute"` \|
|
|
420
|
+
`"approvals"` \| `"agent.list"` \| `"agent.manage"` \| `"agent.rename"` \|
|
|
421
|
+
`"agent.avatar"` \| `"agent.instructions"` \| `"agent.toolPolicy"` \|
|
|
422
|
+
`"agent.read"` \| `"agent.send"` \| `"llm.generation"` \| `"media.generation"`
|
|
423
|
+
\| `"media.share"` \| `"games:servers"` \| `"git.repository"` \| `"apps.open"`
|
|
424
|
+
\| `"apps.call"` \| `"app.storage"` \| `"app.events.emit"` \|
|
|
425
|
+
`"team.workbenchHost"` \| `"marketplace.browse"` \| `"marketplace.purchase"` \|
|
|
426
|
+
`"workflow.run"` \| `"workflow.publish"` \| `"workflow.arm"` \| `"world"` \|
|
|
427
|
+
`"channels.read"` \| `"channels.personal.manage"`)[]; `update`: \| \{
|
|
428
|
+
`installationId`: `string`; `needsApproval`: readonly ( \| `"computer.list"` \|
|
|
429
|
+
`"computer.readFile"` \| `"computer.writeFile"` \| `"computer.execute"` \|
|
|
430
|
+
`"approvals"` \| `"agent.list"` \| `"agent.manage"` \| `"agent.rename"` \|
|
|
431
|
+
`"agent.avatar"` \| `"agent.instructions"` \| `"agent.toolPolicy"` \|
|
|
432
|
+
`"agent.read"` \| `"agent.send"` \| `"llm.generation"` \| `"media.generation"`
|
|
433
|
+
\| `"media.share"` \| `"games:servers"` \| `"git.repository"` \| `"apps.open"`
|
|
434
|
+
\| `"apps.call"` \| `"app.storage"` \| `"app.events.emit"` \|
|
|
435
|
+
`"team.workbenchHost"` \| `"marketplace.browse"` \| `"marketplace.purchase"` \|
|
|
436
|
+
`"workflow.run"` \| `"workflow.publish"` \| `"workflow.arm"` \| `"world"` \|
|
|
437
|
+
`"channels.read"` \| `"channels.personal.manage"`)[]; \} \| `null`; \}\>
|
|
438
|
+
|
|
439
|
+
---
|
|
440
|
+
|
|
441
|
+
### previewRelease()
|
|
442
|
+
|
|
443
|
+
```ts
|
|
444
|
+
function previewRelease(input): Promise<{
|
|
445
|
+
name: string;
|
|
446
|
+
capabilities: readonly (
|
|
447
|
+
| "computer.list"
|
|
448
|
+
| "computer.readFile"
|
|
449
|
+
| "computer.writeFile"
|
|
450
|
+
| "computer.execute"
|
|
451
|
+
| "approvals"
|
|
452
|
+
| "agent.list"
|
|
453
|
+
| "agent.manage"
|
|
454
|
+
| "agent.rename"
|
|
455
|
+
| "agent.avatar"
|
|
456
|
+
| "agent.instructions"
|
|
457
|
+
| "agent.toolPolicy"
|
|
458
|
+
| "agent.read"
|
|
459
|
+
| "agent.send"
|
|
460
|
+
| "llm.generation"
|
|
461
|
+
| "media.generation"
|
|
462
|
+
| "media.share"
|
|
463
|
+
| "games:servers"
|
|
464
|
+
| "git.repository"
|
|
465
|
+
| "apps.open"
|
|
466
|
+
| "apps.call"
|
|
467
|
+
| "app.storage"
|
|
468
|
+
| "app.events.emit"
|
|
469
|
+
| "team.workbenchHost"
|
|
470
|
+
| "marketplace.browse"
|
|
471
|
+
| "marketplace.purchase"
|
|
472
|
+
| "workflow.run"
|
|
473
|
+
| "workflow.publish"
|
|
474
|
+
| "workflow.arm"
|
|
475
|
+
| "world"
|
|
476
|
+
| "channels.read"
|
|
477
|
+
| "channels.personal.manage"
|
|
478
|
+
)[];
|
|
479
|
+
update: {
|
|
480
|
+
installationId: string;
|
|
481
|
+
needsApproval: readonly (
|
|
482
|
+
| "computer.list"
|
|
483
|
+
| "computer.readFile"
|
|
484
|
+
| "computer.writeFile"
|
|
485
|
+
| "computer.execute"
|
|
486
|
+
| "approvals"
|
|
487
|
+
| "agent.list"
|
|
488
|
+
| "agent.manage"
|
|
489
|
+
| "agent.rename"
|
|
490
|
+
| "agent.avatar"
|
|
491
|
+
| "agent.instructions"
|
|
492
|
+
| "agent.toolPolicy"
|
|
493
|
+
| "agent.read"
|
|
494
|
+
| "agent.send"
|
|
495
|
+
| "llm.generation"
|
|
496
|
+
| "media.generation"
|
|
497
|
+
| "media.share"
|
|
498
|
+
| "games:servers"
|
|
499
|
+
| "git.repository"
|
|
500
|
+
| "apps.open"
|
|
501
|
+
| "apps.call"
|
|
502
|
+
| "app.storage"
|
|
503
|
+
| "app.events.emit"
|
|
504
|
+
| "team.workbenchHost"
|
|
505
|
+
| "marketplace.browse"
|
|
506
|
+
| "marketplace.purchase"
|
|
507
|
+
| "workflow.run"
|
|
508
|
+
| "workflow.publish"
|
|
509
|
+
| "workflow.arm"
|
|
510
|
+
| "world"
|
|
511
|
+
| "channels.read"
|
|
512
|
+
| "channels.personal.manage"
|
|
513
|
+
)[];
|
|
514
|
+
} | null;
|
|
515
|
+
release: {
|
|
516
|
+
releaseId: ReleaseId;
|
|
517
|
+
appId: AppId;
|
|
518
|
+
artifact: {
|
|
519
|
+
artifactRef: ArtifactRef;
|
|
520
|
+
artifactDigest: Sha256Digest;
|
|
521
|
+
provenance: {
|
|
522
|
+
sourceRevision: SourceRevision;
|
|
523
|
+
sourceTreeDigest: Sha256Digest;
|
|
524
|
+
buildRecipeDigest: Sha256Digest;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
}>;
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
Upload one built Release and preview it, so an owner can confirm several
|
|
532
|
+
Releases once before any install.
|
|
533
|
+
|
|
534
|
+
#### Parameters
|
|
535
|
+
|
|
536
|
+
| Parameter | Type |
|
|
537
|
+
| --------- | --------------------------------------------------------------------------------------------------------- |
|
|
538
|
+
| `input` | `Readonly`\<\{ `directory`: `string`; `url`: `string`; `key`: `string`; `installationId?`: `string`; \}\> |
|
|
539
|
+
|
|
540
|
+
#### Returns
|
|
541
|
+
|
|
542
|
+
`Promise`\<\{ `name`: `string`; `capabilities`: readonly ( \| `"computer.list"`
|
|
543
|
+
\| `"computer.readFile"` \| `"computer.writeFile"` \| `"computer.execute"` \|
|
|
544
|
+
`"approvals"` \| `"agent.list"` \| `"agent.manage"` \| `"agent.rename"` \|
|
|
545
|
+
`"agent.avatar"` \| `"agent.instructions"` \| `"agent.toolPolicy"` \|
|
|
546
|
+
`"agent.read"` \| `"agent.send"` \| `"llm.generation"` \| `"media.generation"`
|
|
547
|
+
\| `"media.share"` \| `"games:servers"` \| `"git.repository"` \| `"apps.open"`
|
|
548
|
+
\| `"apps.call"` \| `"app.storage"` \| `"app.events.emit"` \|
|
|
549
|
+
`"team.workbenchHost"` \| `"marketplace.browse"` \| `"marketplace.purchase"` \|
|
|
550
|
+
`"workflow.run"` \| `"workflow.publish"` \| `"workflow.arm"` \| `"world"` \|
|
|
551
|
+
`"channels.read"` \| `"channels.personal.manage"`)[]; `update`: \| \{
|
|
552
|
+
`installationId`: `string`; `needsApproval`: readonly ( \| `"computer.list"` \|
|
|
553
|
+
`"computer.readFile"` \| `"computer.writeFile"` \| `"computer.execute"` \|
|
|
554
|
+
`"approvals"` \| `"agent.list"` \| `"agent.manage"` \| `"agent.rename"` \|
|
|
555
|
+
`"agent.avatar"` \| `"agent.instructions"` \| `"agent.toolPolicy"` \|
|
|
556
|
+
`"agent.read"` \| `"agent.send"` \| `"llm.generation"` \| `"media.generation"`
|
|
557
|
+
\| `"media.share"` \| `"games:servers"` \| `"git.repository"` \| `"apps.open"`
|
|
558
|
+
\| `"apps.call"` \| `"app.storage"` \| `"app.events.emit"` \|
|
|
559
|
+
`"team.workbenchHost"` \| `"marketplace.browse"` \| `"marketplace.purchase"` \|
|
|
560
|
+
`"workflow.run"` \| `"workflow.publish"` \| `"workflow.arm"` \| `"world"` \|
|
|
561
|
+
`"channels.read"` \| `"channels.personal.manage"`)[]; \} \| `null`; `release`:
|
|
562
|
+
\{ `releaseId`: `ReleaseId`; `appId`: `AppId`; `artifact`: \{ `artifactRef`:
|
|
563
|
+
`ArtifactRef`; `artifactDigest`: `Sha256Digest`; `provenance`: \{
|
|
564
|
+
`sourceRevision`: `SourceRevision`; `sourceTreeDigest`: `Sha256Digest`;
|
|
565
|
+
`buildRecipeDigest`: `Sha256Digest`; \}; \}; \}; \}\>
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
320
569
|
### installRelease()
|
|
321
570
|
|
|
322
571
|
```ts
|
|
@@ -333,9 +582,9 @@ is reported as an unconfirmed observation, not refusal.
|
|
|
333
582
|
|
|
334
583
|
#### Parameters
|
|
335
584
|
|
|
336
|
-
| Parameter | Type
|
|
337
|
-
| --------- |
|
|
338
|
-
| `input` | `Readonly`\<\{ `directory`: `string`; `url`: `string`; `key`: `string`; `installationId?`: `string`; `onAdmitted?`: (`operation`) => `void`; `onCompleted?`: (`operation`) => `Promise`\<`void`\>; \}\> & `Readonly`\<\{ `waitMs?`: `number`; `signal?`: `AbortSignal`; \}\> |
|
|
585
|
+
| Parameter | Type |
|
|
586
|
+
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
587
|
+
| `input` | `Readonly`\<\{ `directory`: `string`; `url`: `string`; `key`: `string`; `installationId?`: `string`; `uploaded?`: \{ `releaseId`: `ReleaseId`; `appId`: `AppId`; `artifact`: \{ `artifactRef`: `ArtifactRef`; `artifactDigest`: `Sha256Digest`; `provenance`: \{ `sourceRevision`: `SourceRevision`; `sourceTreeDigest`: `Sha256Digest`; `buildRecipeDigest`: `Sha256Digest`; \}; \}; \}; `onAdmitted?`: (`operation`) => `void`; `onCompleted?`: (`operation`) => `Promise`\<`void`\>; \}\> & `Readonly`\<\{ `waitMs?`: `number`; `signal?`: `AbortSignal`; \}\> |
|
|
339
588
|
|
|
340
589
|
#### Returns
|
|
341
590
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/oyster",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
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",
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"@fungi.computer/capnweb": "0.12.0-fungi.0",
|
|
367
367
|
"@fungi.computer/caps": "0.12.2",
|
|
368
368
|
"@fungi.computer/carrier": "0.2.5",
|
|
369
|
-
"@fungi.computer/computer": "0.16.
|
|
369
|
+
"@fungi.computer/computer": "0.16.2",
|
|
370
370
|
"@fungi.computer/computer-contract": "0.5.8",
|
|
371
371
|
"@fungi.computer/darkroom": "0.11.11",
|
|
372
372
|
"@fungi.computer/ear-tag": "0.1.0",
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
"@fungi.computer/puffball": "0.12.0",
|
|
381
381
|
"@fungi.computer/seam": "0.2.6",
|
|
382
382
|
"@fungi.computer/shiitake": "0.21.11",
|
|
383
|
-
"@fungi.computer/shiitake-extensions": "0.11.
|
|
383
|
+
"@fungi.computer/shiitake-extensions": "0.11.23",
|
|
384
384
|
"@fungi.computer/sigils": "0.3.2",
|
|
385
385
|
"@fungi.computer/sprite": "0.2.2",
|
|
386
386
|
"@fungi.computer/sprite-zdog": "0.3.2",
|