@fungi.computer/oyster 0.25.0 → 0.27.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/dist/agents.d.ts +24 -8
- package/dist/agents.js +12 -5
- package/dist/app-builds.d.ts +4 -2
- package/dist/app-builds.js +14 -0
- package/dist/apps/catalog.js +1 -1
- package/dist/boot-host-script.js +1 -1
- package/dist/build/build-memory.d.ts +13 -0
- package/dist/build/build-memory.js +29 -0
- package/dist/build/candidate-cli.mjs +25 -2
- package/dist/build/local-build.js +4 -5
- package/dist/cloudflare.d.ts +2 -2
- package/dist/cloudflare.js +3 -0
- package/dist/computer-control-port.d.ts +2 -0
- package/dist/embed-metafiles.js +2 -2
- package/dist/embed-scripts.js +1 -1
- package/dist/hello-app-script.js +1 -1
- package/dist/mcp.d.ts +26 -0
- package/dist/mcp.js +12 -2
- package/dist/media.d.ts +5 -0
- package/dist/media.js +1 -0
- package/dist/page-script.js +2 -2
- package/dist/release.d.ts +5 -0
- package/dist/standalone/agent-computers.js +17 -1
- package/dist/standalone/agents.d.ts +16 -8
- package/dist/standalone/agents.js +88 -25
- package/dist/standalone/app-set.d.ts +11 -3
- package/dist/standalone/app-set.js +26 -8
- package/dist/standalone/computer-control.js +7 -1
- package/dist/standalone/computer-fleet.d.ts +6 -0
- package/dist/standalone/computer-fleet.js +9 -1
- package/dist/standalone/computer-skill-source.d.ts +20 -0
- package/dist/standalone/computer-skill-source.js +165 -0
- package/dist/standalone/computer.d.ts +30 -4
- package/dist/standalone/computer.js +60 -3
- package/dist/standalone/install-apps-cli.js +9 -3
- package/dist/standalone/media.d.ts +9 -4
- package/dist/standalone/media.js +76 -7
- package/dist/standalone/registry.d.ts +8 -1
- package/dist/standalone/registry.js +10 -1
- package/docs/api/agents.md +204 -214
- package/docs/api/apps.md +33 -33
- package/docs/api/cloudflare.md +4 -1
- package/docs/api/mcp.md +52 -46
- package/docs/api/media.md +4 -0
- package/docs/api/workers-git.md +7 -7
- package/examples/standalone/wrangler.jsonc +3 -0
- package/package.json +19 -23
- package/dist/agent-instructions.d.ts +0 -35
- package/dist/agent-instructions.js +0 -42
package/docs/api/agents.md
CHANGED
|
@@ -10,6 +10,24 @@
|
|
|
10
10
|
|
|
11
11
|
## Type Aliases
|
|
12
12
|
|
|
13
|
+
### OysterAgentInstructions
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
type OysterAgentInstructions = Readonly<{
|
|
17
|
+
home: Readonly<{
|
|
18
|
+
name: string;
|
|
19
|
+
}> | null;
|
|
20
|
+
content: string | null;
|
|
21
|
+
bytes: number;
|
|
22
|
+
limit: number;
|
|
23
|
+
}>;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
An Agent's AGENTS.md on its Home Computer, with the byte limit the host
|
|
27
|
+
enforces.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
13
31
|
### OysterAgent
|
|
14
32
|
|
|
15
33
|
```ts
|
|
@@ -189,243 +207,215 @@ This Agent's App-tool policy, in the shape Apps read it.
|
|
|
189
207
|
|
|
190
208
|
```ts
|
|
191
209
|
type OysterAgents = Readonly<{
|
|
192
|
-
list: Promise<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"agent.read" | "agent.send" | "agent.manage"
|
|
199
|
-
)[];
|
|
200
|
-
}>[]
|
|
201
|
-
>;
|
|
210
|
+
list: Promise<readonly Readonly<{
|
|
211
|
+
agentId: string;
|
|
212
|
+
name: string;
|
|
213
|
+
avatar: Avatar;
|
|
214
|
+
sessionOperations: readonly ("agent.read" | "agent.send" | "agent.manage")[];
|
|
215
|
+
}>[]>;
|
|
202
216
|
ensureStarter: Promise<StarterOutcome>;
|
|
203
217
|
setArchived: Promise<
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
avatar: Avatar;
|
|
228
|
-
sessionOperations: readonly (
|
|
229
|
-
"agent.read" | "agent.send" | "agent.manage"
|
|
230
|
-
)[];
|
|
231
|
-
}>
|
|
232
|
-
>;
|
|
218
|
+
| Readonly<{
|
|
219
|
+
archived: boolean;
|
|
220
|
+
revision: number;
|
|
221
|
+
}>
|
|
222
|
+
| Readonly<{
|
|
223
|
+
error: | "not_found"
|
|
224
|
+
| "not_granted"
|
|
225
|
+
| "self"
|
|
226
|
+
| "not_creator"
|
|
227
|
+
| "running"
|
|
228
|
+
| "pending"
|
|
229
|
+
| "unreadable"
|
|
230
|
+
| "archived";
|
|
231
|
+
message?: string;
|
|
232
|
+
archived?: boolean;
|
|
233
|
+
revision?: number;
|
|
234
|
+
}>>;
|
|
235
|
+
create: Promise<Readonly<{
|
|
236
|
+
agentId: string;
|
|
237
|
+
name: string;
|
|
238
|
+
avatar: Avatar;
|
|
239
|
+
sessionOperations: readonly ("agent.read" | "agent.send" | "agent.manage")[];
|
|
240
|
+
}>>;
|
|
233
241
|
rename: Promise<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
error: "not_found" | "name_taken" | "not_granted";
|
|
244
|
-
}>
|
|
245
|
-
>;
|
|
242
|
+
| Readonly<{
|
|
243
|
+
agentId: string;
|
|
244
|
+
name: string;
|
|
245
|
+
avatar: Avatar;
|
|
246
|
+
sessionOperations: readonly ("agent.read" | "agent.send" | "agent.manage")[];
|
|
247
|
+
}>
|
|
248
|
+
| Readonly<{
|
|
249
|
+
error: "not_found" | "name_taken" | "not_granted";
|
|
250
|
+
}>>;
|
|
246
251
|
setAvatar: Promise<
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
>
|
|
268
|
-
>;
|
|
269
|
-
};
|
|
270
|
-
keyId?: string;
|
|
271
|
-
} | null>;
|
|
252
|
+
| Readonly<{
|
|
253
|
+
agentId: string;
|
|
254
|
+
name: string;
|
|
255
|
+
avatar: Avatar;
|
|
256
|
+
sessionOperations: readonly ("agent.read" | "agent.send" | "agent.manage")[];
|
|
257
|
+
}>
|
|
258
|
+
| Readonly<{
|
|
259
|
+
error: "not_found" | "not_granted";
|
|
260
|
+
}>>;
|
|
261
|
+
readModelChoice: Promise<
|
|
262
|
+
| {
|
|
263
|
+
keySource: "workers-ai" | "ai-gateway" | "byok";
|
|
264
|
+
model: {
|
|
265
|
+
providerId: Schema.String;
|
|
266
|
+
modelId: Schema.String;
|
|
267
|
+
reasoning?: Schema.optional<Schema.Literals<readonly ["minimal", "low", "medium", "high", "xhigh", "max"]>>;
|
|
268
|
+
};
|
|
269
|
+
keyId?: string;
|
|
270
|
+
}
|
|
271
|
+
| null>;
|
|
272
272
|
readInstructions: Promise<
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}>
|
|
277
|
-
| Readonly<{
|
|
278
|
-
error: "not_found" | "not_granted";
|
|
273
|
+
| Readonly<object & Readonly<{
|
|
274
|
+
home: | Readonly<{
|
|
275
|
+
name: ...;
|
|
279
276
|
}>
|
|
280
|
-
|
|
277
|
+
| null;
|
|
278
|
+
content: string | null;
|
|
279
|
+
bytes: number;
|
|
280
|
+
limit: number;
|
|
281
|
+
}>>
|
|
282
|
+
| Readonly<{
|
|
283
|
+
error: "not_found" | "not_granted";
|
|
284
|
+
}>>;
|
|
281
285
|
setInstructions: Promise<
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}>
|
|
286
|
-
| Readonly<{
|
|
287
|
-
error: "not_found" | "not_granted";
|
|
286
|
+
| Readonly<object & Readonly<{
|
|
287
|
+
home: | Readonly<{
|
|
288
|
+
name: ...;
|
|
288
289
|
}>
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
290
|
+
| null;
|
|
291
|
+
content: string | null;
|
|
292
|
+
bytes: number;
|
|
293
|
+
limit: number;
|
|
294
|
+
}>>
|
|
295
|
+
| Readonly<{
|
|
296
|
+
error: "not_found" | "not_granted" | "conflict" | "too_large" | "no_home";
|
|
297
|
+
}>>;
|
|
298
|
+
decodeModelChoice: | {
|
|
299
|
+
keySource: "workers-ai" | "ai-gateway" | "byok";
|
|
300
|
+
model: {
|
|
301
|
+
providerId: Schema.String;
|
|
302
|
+
modelId: Schema.String;
|
|
303
|
+
reasoning?: Schema.optional<Schema.Literals<readonly ["minimal", "low", "medium", "high", "xhigh", "max"]>>;
|
|
304
|
+
};
|
|
305
|
+
keyId?: string;
|
|
306
|
+
}
|
|
307
|
+
| null;
|
|
303
308
|
setModelChoice: Promise<
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
} | null>;
|
|
309
|
+
| {
|
|
310
|
+
keySource: "workers-ai" | "ai-gateway" | "byok";
|
|
311
|
+
model: {
|
|
312
|
+
providerId: Schema.String;
|
|
313
|
+
modelId: Schema.String;
|
|
314
|
+
reasoning?: Schema.optional<Schema.Literals<readonly ["minimal", "low", "medium", "high", "xhigh", "max"]>>;
|
|
315
|
+
};
|
|
316
|
+
keyId?: string;
|
|
317
|
+
}
|
|
318
|
+
| Readonly<{
|
|
319
|
+
error: "not_found" | "not_granted" | AgentModelRefusal;
|
|
320
|
+
}>>;
|
|
321
|
+
policyStatus: Promise<
|
|
322
|
+
| Readonly<{
|
|
323
|
+
status: "pending" | "approved";
|
|
324
|
+
revision: string;
|
|
325
|
+
}>
|
|
326
|
+
| null>;
|
|
327
|
+
appToolPolicy: Promise<
|
|
328
|
+
| {
|
|
329
|
+
level: "read" | "write";
|
|
330
|
+
revision: string;
|
|
331
|
+
grantedBy: string;
|
|
332
|
+
}
|
|
333
|
+
| null>;
|
|
330
334
|
policyRevision: Promise<string | null>;
|
|
331
335
|
approveAppToolPolicy: Promise<
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
label: string;
|
|
356
|
-
createdAt: number;
|
|
357
|
-
validatedAt: number;
|
|
358
|
-
}>[]
|
|
359
|
-
>;
|
|
336
|
+
| {
|
|
337
|
+
level: "read" | "write";
|
|
338
|
+
revision: string;
|
|
339
|
+
grantedBy: string;
|
|
340
|
+
}
|
|
341
|
+
| Readonly<{
|
|
342
|
+
status: "pending";
|
|
343
|
+
revision: string;
|
|
344
|
+
}>
|
|
345
|
+
| Readonly<{
|
|
346
|
+
error: "not_found" | "revision_conflict" | "not_granted";
|
|
347
|
+
}>>;
|
|
348
|
+
setup: Promise<Readonly<{
|
|
349
|
+
models: "ready" | "missing";
|
|
350
|
+
media: "ready" | "missing";
|
|
351
|
+
}>>;
|
|
352
|
+
modelKeys: Promise<readonly Readonly<{
|
|
353
|
+
keyId: string;
|
|
354
|
+
provider: StandaloneModelKeyProvider;
|
|
355
|
+
label: string;
|
|
356
|
+
createdAt: number;
|
|
357
|
+
validatedAt: number;
|
|
358
|
+
}>[]>;
|
|
360
359
|
sealModelKey: Promise<
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
>;
|
|
360
|
+
| Readonly<{
|
|
361
|
+
keyId: string;
|
|
362
|
+
provider: StandaloneModelKeyProvider;
|
|
363
|
+
label: string;
|
|
364
|
+
createdAt: number;
|
|
365
|
+
validatedAt: number;
|
|
366
|
+
}>
|
|
367
|
+
| Readonly<{
|
|
368
|
+
error: ModelKeyRefusal;
|
|
369
|
+
}>>;
|
|
372
370
|
removeModelKey: Promise<"deleted" | "absent">;
|
|
373
|
-
connections: Promise<
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
grants: readonly Readonly<{
|
|
371
|
+
connections: Promise<readonly Readonly<{
|
|
372
|
+
connectionId: string;
|
|
373
|
+
name: string;
|
|
374
|
+
label: string;
|
|
375
|
+
kind: "mcp" | "openapi";
|
|
376
|
+
url: string;
|
|
377
|
+
auth: "none" | "token" | "oauth";
|
|
378
|
+
state: "connected" | "pending" | "reconnect_required";
|
|
379
|
+
grants: readonly Readonly<{
|
|
383
380
|
agentId: string;
|
|
384
381
|
access: ConnectionAccess;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
>;
|
|
382
|
+
}>[];
|
|
383
|
+
}>[]>;
|
|
388
384
|
addConnection: Promise<
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
>;
|
|
385
|
+
| Readonly<{
|
|
386
|
+
connectionId: string;
|
|
387
|
+
authorizeUrl: string | null;
|
|
388
|
+
}>
|
|
389
|
+
| Readonly<{
|
|
390
|
+
error: "not_found" | "duplicate_name" | "limit" | "invalid_endpoint";
|
|
391
|
+
}>>;
|
|
397
392
|
grantConnection: Promise<
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
>;
|
|
393
|
+
| Readonly<{
|
|
394
|
+
error: "not_found" | "duplicate_name" | "limit" | "invalid_endpoint";
|
|
395
|
+
}>
|
|
396
|
+
| Readonly<{
|
|
397
|
+
ok: true;
|
|
398
|
+
}>>;
|
|
405
399
|
ungrantConnection: Promise<boolean>;
|
|
406
400
|
removeConnection: Promise<boolean>;
|
|
407
401
|
connectionTools: Promise<
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
>;
|
|
402
|
+
| readonly string[]
|
|
403
|
+
| Readonly<{
|
|
404
|
+
error: "not_found" | "duplicate_name" | "limit" | "invalid_endpoint";
|
|
405
|
+
}>>;
|
|
413
406
|
completeMcpConnection: Promise<
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
>;
|
|
407
|
+
| Readonly<{
|
|
408
|
+
ok: true;
|
|
409
|
+
}>
|
|
410
|
+
| Readonly<{
|
|
411
|
+
error: string;
|
|
412
|
+
}>>;
|
|
421
413
|
mcpCallbackUrl: string;
|
|
422
414
|
fetch: Promise<Response | null>;
|
|
423
|
-
inbox: Promise<
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}>
|
|
428
|
-
>;
|
|
415
|
+
inbox: Promise<Readonly<{
|
|
416
|
+
items: readonly OysterInboxItem[];
|
|
417
|
+
revision: number;
|
|
418
|
+
}>>;
|
|
429
419
|
revision: Promise<number>;
|
|
430
420
|
visit: Promise<boolean>;
|
|
431
421
|
}>;
|