@fungi.computer/oyster 0.25.0 → 0.26.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/app-builds.d.ts +4 -2
- package/dist/app-builds.js +14 -0
- 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 +19 -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/mcp.d.ts +26 -0
- package/dist/mcp.js +12 -2
- package/dist/page-script.js +2 -2
- package/dist/release.d.ts +5 -0
- package/dist/standalone/agents.js +11 -1
- package/dist/standalone/app-set.d.ts +4 -3
- package/dist/standalone/app-set.js +9 -5
- package/dist/standalone/computer-control.js +7 -1
- package/dist/standalone/computer-fleet.d.ts +5 -0
- 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 +4 -1
- package/dist/standalone/computer.js +28 -2
- package/dist/standalone/install-apps-cli.js +1 -1
- package/dist/standalone/media.d.ts +1 -1
- package/dist/standalone/registry.d.ts +3 -0
- package/dist/standalone/registry.js +1 -1
- package/docs/api/cloudflare.md +4 -1
- package/docs/api/mcp.md +52 -46
- package/package.json +17 -17
package/dist/mcp.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ declare const fleetComputerId: z.ZodObject<{
|
|
|
24
24
|
}, z.core.$strict>;
|
|
25
25
|
declare const fleetCreate: z.ZodObject<{
|
|
26
26
|
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
size: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
28
|
+
default: "default";
|
|
29
|
+
small: "small";
|
|
30
|
+
large: "large";
|
|
31
|
+
}>>>;
|
|
27
32
|
requestId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
28
33
|
}, z.core.$strict>;
|
|
29
34
|
declare const fleetBackends: z.ZodObject<{
|
|
@@ -83,6 +88,11 @@ declare const fleetCreation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
83
88
|
computer: z.ZodObject<{
|
|
84
89
|
computerId: z.ZodString;
|
|
85
90
|
name: z.ZodString;
|
|
91
|
+
size: z.ZodEnum<{
|
|
92
|
+
default: "default";
|
|
93
|
+
small: "small";
|
|
94
|
+
large: "large";
|
|
95
|
+
}>;
|
|
86
96
|
}, z.core.$strict>;
|
|
87
97
|
}, z.core.$strict>, z.ZodObject<{
|
|
88
98
|
kind: z.ZodEnum<{
|
|
@@ -107,6 +117,11 @@ export declare function computerControlSpecs(port: ComputerControlPort): {
|
|
|
107
117
|
computers: z.ZodArray<z.ZodObject<{
|
|
108
118
|
computerId: z.ZodString;
|
|
109
119
|
name: z.ZodString;
|
|
120
|
+
size: z.ZodEnum<{
|
|
121
|
+
readonly small: "small";
|
|
122
|
+
readonly default: "default";
|
|
123
|
+
readonly large: "large";
|
|
124
|
+
}>;
|
|
110
125
|
createdAt: z.ZodNumber;
|
|
111
126
|
updatedAt: z.ZodNumber;
|
|
112
127
|
}, z.core.$strict>>;
|
|
@@ -117,6 +132,7 @@ export declare function computerControlSpecs(port: ComputerControlPort): {
|
|
|
117
132
|
computers: {
|
|
118
133
|
computerId: string;
|
|
119
134
|
name: string;
|
|
135
|
+
size: "default" | "small" | "large";
|
|
120
136
|
createdAt: number;
|
|
121
137
|
updatedAt: number;
|
|
122
138
|
}[];
|
|
@@ -179,6 +195,11 @@ export declare function computerControlSpecs(port: ComputerControlPort): {
|
|
|
179
195
|
description: string;
|
|
180
196
|
input: z.ZodObject<{
|
|
181
197
|
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
size: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
199
|
+
default: "default";
|
|
200
|
+
small: "small";
|
|
201
|
+
large: "large";
|
|
202
|
+
}>>>;
|
|
182
203
|
requestId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
183
204
|
}, z.core.$strict>;
|
|
184
205
|
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -187,6 +208,11 @@ export declare function computerControlSpecs(port: ComputerControlPort): {
|
|
|
187
208
|
computer: z.ZodObject<{
|
|
188
209
|
computerId: z.ZodString;
|
|
189
210
|
name: z.ZodString;
|
|
211
|
+
size: z.ZodEnum<{
|
|
212
|
+
default: "default";
|
|
213
|
+
small: "small";
|
|
214
|
+
large: "large";
|
|
215
|
+
}>;
|
|
190
216
|
}, z.core.$strict>;
|
|
191
217
|
}, z.core.$strict>, z.ZodObject<{
|
|
192
218
|
kind: z.ZodEnum<{
|
package/dist/mcp.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { computerSizeSchema } from "@fungi.computer/computer/backing";
|
|
2
3
|
import { PendingApprovalSchema, ApprovalRefusalSchema, } from "@fungi.computer/approvals";
|
|
3
4
|
import { admits } from "./apps/gate.js";
|
|
4
5
|
import { createMcpWorkflowControl, WORKFLOW_CONTROL_MODULE_ID, } from "./workflows.js";
|
|
@@ -41,6 +42,10 @@ const fleetCreate = z.strictObject({
|
|
|
41
42
|
.unwrap()
|
|
42
43
|
.nullable()
|
|
43
44
|
.default(null),
|
|
45
|
+
size: computerCreateRequestSchema.shape.size
|
|
46
|
+
.unwrap()
|
|
47
|
+
.nullable()
|
|
48
|
+
.default(null),
|
|
44
49
|
requestId: computerCreateRequestSchema.shape.requestId
|
|
45
50
|
.nullable()
|
|
46
51
|
.default(null),
|
|
@@ -48,6 +53,7 @@ const fleetCreate = z.strictObject({
|
|
|
48
53
|
const fleetComputer = z.strictObject({
|
|
49
54
|
computerId: z.string(),
|
|
50
55
|
name: z.string(),
|
|
56
|
+
size: computerSizeSchema,
|
|
51
57
|
});
|
|
52
58
|
const fleetBackends = z.strictObject({
|
|
53
59
|
backends: z.array(computerBackendViewSchema),
|
|
@@ -116,13 +122,17 @@ export function computerControlSpecs(port) {
|
|
|
116
122
|
},
|
|
117
123
|
create: {
|
|
118
124
|
replay: "unsafe",
|
|
119
|
-
description: "Create a Computer with an optional friendly name. Request identity is generated automatically. If the outcome is uncertain, retry with its returned requestId and the original name input; do not start a second creation.",
|
|
125
|
+
description: "Create a Computer with an optional friendly name and size (small, default or large; default when omitted). Request identity is generated automatically. If the outcome is uncertain, retry with its returned requestId and the original name and size input; do not start a second creation.",
|
|
120
126
|
input: fleetCreate,
|
|
121
127
|
output: fleetCreation,
|
|
122
128
|
/** Mint one identity or preserve the requestId for an uncertain retry. */
|
|
123
129
|
execute: async (input, context) => {
|
|
124
130
|
const requestId = input.requestId ?? fleetIds.request.generate();
|
|
125
|
-
const result = await port.create({
|
|
131
|
+
const result = await port.create({
|
|
132
|
+
name: input.name ?? undefined,
|
|
133
|
+
size: input.size ?? undefined,
|
|
134
|
+
requestId,
|
|
135
|
+
}, context);
|
|
126
136
|
return { ...result, requestId };
|
|
127
137
|
},
|
|
128
138
|
},
|