@fungi.computer/oyster 0.3.2 → 0.4.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/agent-computer-source.d.ts +42 -0
- package/dist/agent-computer-source.js +88 -0
- package/dist/agent-computers.d.ts +104 -0
- package/dist/agent-computers.js +227 -0
- package/dist/agents.d.ts +10 -0
- package/dist/agents.js +33 -0
- package/dist/browser/boot.d.ts +2 -2
- package/dist/browser/boot.js +10 -3
- package/dist/browser/browser.d.ts +1 -1
- package/dist/browser/browser.js +2 -1
- package/dist/browser/cdp-client.d.ts +2 -0
- package/dist/browser/errors.d.ts +2 -2
- package/dist/browser/errors.js +2 -2
- package/dist/browser/index.d.ts +3 -2
- package/dist/browser/index.js +3 -2
- package/dist/browser/page.js +11 -4
- package/dist/browser/sessions.d.ts +7 -4
- package/dist/browser/sessions.js +159 -0
- package/dist/browser/url-policy.d.ts +4 -2
- package/dist/browser/url-policy.js +4 -2
- package/dist/computer-control-port.d.ts +26 -0
- package/dist/computer-control-port.js +1 -0
- package/dist/host.d.ts +3 -0
- package/dist/machine-link/delivery.d.ts +1 -1
- package/dist/machine-link/delivery.js +2 -3
- package/dist/machine-link/host.d.ts +37 -6
- package/dist/machine-link/host.js +209 -14
- package/dist/machine-link/link.d.ts +13 -1
- package/dist/machine-link/link.js +20 -7
- package/dist/mcp.d.ts +144 -10
- package/dist/mcp.js +130 -13
- package/dist/page/computer-handles.d.ts +3 -3
- package/dist/page-script.js +1 -1
- package/dist/standalone/agent-computers.d.ts +29 -0
- package/dist/standalone/agent-computers.js +101 -0
- package/dist/standalone/agent-mail.d.ts +41 -18
- package/dist/standalone/agent-model-choice.d.ts +26 -0
- package/dist/standalone/agent-model-choice.js +72 -0
- package/dist/standalone/agents.d.ts +44 -4
- package/dist/standalone/agents.js +502 -46
- package/dist/standalone/computer-control.d.ts +4 -0
- package/dist/standalone/computer-control.js +62 -0
- package/dist/standalone/computer-fleet.d.ts +1 -0
- package/dist/standalone/computer-fleet.js +1 -1
- package/dist/standalone/computer.d.ts +21 -2
- package/dist/standalone/computer.js +12 -0
- package/dist/standalone/machine-link.d.ts +10 -0
- package/dist/standalone/machine-link.js +6 -0
- package/dist/standalone/registry.d.ts +9 -0
- package/dist/standalone/registry.js +9 -0
- package/dist/standalone/worker.js +12 -0
- package/dist/standalone/workflow-binding.d.ts +2 -2
- package/dist/standalone/workflow-host.d.ts +11 -11
- package/dist/standalone/workflows.d.ts +22 -22
- package/dist/storage-frame.d.ts +3 -3
- package/dist/workers-git.d.ts +2 -0
- package/dist/workers-git.js +2 -0
- package/dist/workers.d.ts +8 -8
- package/docs/api/agents.md +66 -0
- package/docs/api/apps.md +104 -104
- package/docs/api/build-contract.md +35 -35
- package/docs/api/build.md +12 -12
- package/docs/api/host.md +61 -61
- package/docs/api/mcp.md +127 -13
- package/docs/api/root-data.md +1 -1
- package/docs/api/tenancy.md +1 -1
- package/docs/api/workers-git.md +3 -2
- package/docs/api/workers.md +81 -83
- package/package.json +25 -17
package/dist/workers.d.ts
CHANGED
|
@@ -110,23 +110,24 @@ export declare class OysterRegistry<Env extends OysterWorkerEnv = OysterWorkerEn
|
|
|
110
110
|
}>): Promise<{
|
|
111
111
|
readonly record: {
|
|
112
112
|
readonly revision: number;
|
|
113
|
+
readonly expiresAt: number;
|
|
114
|
+
readonly operation: string;
|
|
115
|
+
readonly description: {
|
|
116
|
+
readonly title: string;
|
|
117
|
+
readonly inputBytes: number;
|
|
118
|
+
readonly inputSha256: string;
|
|
119
|
+
};
|
|
113
120
|
readonly by: {
|
|
114
121
|
readonly kind: "human";
|
|
115
122
|
readonly memberId: string;
|
|
116
123
|
} | {
|
|
117
124
|
readonly kind: "policy";
|
|
118
125
|
} | null;
|
|
119
|
-
readonly description: {
|
|
120
|
-
readonly title: string;
|
|
121
|
-
readonly inputBytes: number;
|
|
122
|
-
readonly inputSha256: string;
|
|
123
|
-
};
|
|
124
|
-
readonly operation: string;
|
|
125
126
|
readonly access: "write" | "external";
|
|
126
|
-
readonly expiresAt: number;
|
|
127
127
|
readonly reason: "pending" | "expired" | "not-found" | "not-eligible" | "already-answered" | "stale-revision" | "declined" | "fenced" | "not-granted" | "read-only" | "in-flight" | "outcome-unknown" | "identity-conflict" | null;
|
|
128
128
|
readonly updatedAt: number;
|
|
129
129
|
readonly module: string;
|
|
130
|
+
readonly state: "pending" | "expired" | "denied" | "applied" | "requested" | "approved" | "claimed" | "outcome_unknown";
|
|
130
131
|
readonly recordId: string;
|
|
131
132
|
readonly authorityFence: string;
|
|
132
133
|
readonly requester: {
|
|
@@ -136,7 +137,6 @@ export declare class OysterRegistry<Env extends OysterWorkerEnv = OysterWorkerEn
|
|
|
136
137
|
readonly displayName: string;
|
|
137
138
|
};
|
|
138
139
|
readonly reversibility: "reversible" | "irreversible-external";
|
|
139
|
-
readonly state: "pending" | "expired" | "denied" | "applied" | "requested" | "approved" | "claimed" | "outcome_unknown";
|
|
140
140
|
readonly requestedAt: number;
|
|
141
141
|
readonly evidence?: readonly {
|
|
142
142
|
readonly kind: "artifact";
|
package/docs/api/agents.md
CHANGED
|
@@ -203,6 +203,47 @@ type OysterAgents = Readonly<{
|
|
|
203
203
|
error: "not_found" | "not_granted";
|
|
204
204
|
}>
|
|
205
205
|
>;
|
|
206
|
+
readModelChoice: Promise<{
|
|
207
|
+
keySource: "workers-ai" | "ai-gateway" | "byok";
|
|
208
|
+
model: {
|
|
209
|
+
providerId: Schema.String;
|
|
210
|
+
modelId: Schema.String;
|
|
211
|
+
reasoning?: Schema.optional<
|
|
212
|
+
Schema.Literals<
|
|
213
|
+
readonly ["minimal", "low", "medium", "high", "xhigh", "max"]
|
|
214
|
+
>
|
|
215
|
+
>;
|
|
216
|
+
};
|
|
217
|
+
} | null>;
|
|
218
|
+
decodeModelChoice: {
|
|
219
|
+
keySource: "workers-ai" | "ai-gateway" | "byok";
|
|
220
|
+
model: {
|
|
221
|
+
providerId: Schema.String;
|
|
222
|
+
modelId: Schema.String;
|
|
223
|
+
reasoning?: Schema.optional<
|
|
224
|
+
Schema.Literals<
|
|
225
|
+
readonly ["minimal", "low", "medium", "high", "xhigh", "max"]
|
|
226
|
+
>
|
|
227
|
+
>;
|
|
228
|
+
};
|
|
229
|
+
} | null;
|
|
230
|
+
setModelChoice: Promise<
|
|
231
|
+
| {
|
|
232
|
+
keySource: "workers-ai" | "ai-gateway" | "byok";
|
|
233
|
+
model: {
|
|
234
|
+
providerId: Schema.String;
|
|
235
|
+
modelId: Schema.String;
|
|
236
|
+
reasoning?: Schema.optional<
|
|
237
|
+
Schema.Literals<
|
|
238
|
+
readonly ["minimal", "low", "medium", "high", "xhigh", "max"]
|
|
239
|
+
>
|
|
240
|
+
>;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
| Readonly<{
|
|
244
|
+
error: "not_found" | "not_granted" | AgentModelRefusal;
|
|
245
|
+
}>
|
|
246
|
+
>;
|
|
206
247
|
policyStatus: Promise<Readonly<{
|
|
207
248
|
status: "pending" | "approved";
|
|
208
249
|
revision: string;
|
|
@@ -262,6 +303,31 @@ type OysterAgents = Readonly<{
|
|
|
262
303
|
|
|
263
304
|
Where an Oyster's agents live and run.
|
|
264
305
|
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
### AgentModelChoice
|
|
309
|
+
|
|
310
|
+
```ts
|
|
311
|
+
type AgentModelChoice = typeof agentModelChoiceSchema.Type;
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
The Agent's model preference and source reference, never credential material.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
### AgentModelRefusal
|
|
319
|
+
|
|
320
|
+
```ts
|
|
321
|
+
type AgentModelRefusal =
|
|
322
|
+
| "invalid_model_choice"
|
|
323
|
+
| "unsupported_key_source"
|
|
324
|
+
| "key_source_mismatch"
|
|
325
|
+
| "model_unavailable"
|
|
326
|
+
| "key_not_connected";
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Stable reason for rejecting a model or credential source before a run.
|
|
330
|
+
|
|
265
331
|
## Variables
|
|
266
332
|
|
|
267
333
|
### maxAgentMcpServers
|