@veruna/api-contracts 1.1.29 → 1.1.31
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/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +47 -0
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +47 -0
- package/build/v1/chat/commands/update-chat-title.command.d.ts +47 -0
- package/build/v1/chat/commands/update-chat.command.d.ts +47 -0
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +47 -0
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +47 -0
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +47 -0
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +47 -0
- package/build/v1/message/commands/create-message.command.d.ts +106 -2
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +53 -1
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +53 -1
- package/build/v1/message/schemas/index.d.ts +3 -1
- package/build/v1/message/schemas/index.js +14 -2
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +47 -0
- package/build/v1/message/schemas/message-step-response.schema.d.ts +188 -0
- package/build/v1/message/schemas/message-step-response.schema.js +3 -0
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build/v1/message/schemas/step-chunk-metadata.schema.d.ts +134 -0
- package/build/v1/message/schemas/step-chunk-metadata.schema.js +65 -0
- package/build/v1/message/schemas/step-chunk-metadata.schema.js.map +1 -0
- package/build/v1/message/schemas/step-metadata.schema.d.ts +2 -0
- package/build/v1/message/schemas/step-metadata.schema.js +1 -2
- package/build/v1/message/schemas/step-metadata.schema.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +106 -2
- package/build/v1/message/schemas/stream-events.schema.js +2 -1
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/tool/sandbox/index.d.ts +2 -1
- package/build/v1/tool/sandbox/index.js +2 -1
- package/build/v1/tool/sandbox/index.js.map +1 -1
- package/build/v1/tool/sandbox/primitive-completion.schema.d.ts +135 -0
- package/build/v1/tool/sandbox/primitive-completion.schema.js +74 -0
- package/build/v1/tool/sandbox/primitive-completion.schema.js.map +1 -0
- package/build/v1/tool/sandbox/sandbox-view-kind.enum.d.ts +6 -0
- package/build/v1/tool/sandbox/sandbox-view-kind.enum.js +11 -0
- package/build/v1/tool/sandbox/sandbox-view-kind.enum.js.map +1 -0
- package/package.json +1 -1
- package/build/v1/tool/sandbox/code-execution-chunk-type.enum.d.ts +0 -7
- package/build/v1/tool/sandbox/code-execution-chunk-type.enum.js +0 -12
- package/build/v1/tool/sandbox/code-execution-chunk-type.enum.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-metadata.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/step-metadata.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gGAAsF;AACtF,qEAA8D;AASjD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAKU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC5B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACnD,CAAC,CAAC;AAKU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC;AAUU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,aAAa,EAAE,OAAC,CAAC,UAAU,CAAC,kDAAoB,CAAC;CACpD,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"step-metadata.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/step-metadata.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gGAAsF;AACtF,qEAA8D;AASjD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAKU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC5B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACnD,CAAC,CAAC;AAKU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC;AAUU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,aAAa,EAAE,OAAC,CAAC,UAAU,CAAC,kDAAoB,CAAC;CACpD,CAAC,CAAC;AAOU,QAAA,uBAAuB,GAEhC;IACA,CAAC,2CAAkB,CAAC,UAAU,CAAC,EAAE,wCAAgC;IACjE,CAAC,2CAAkB,CAAC,UAAU,CAAC,EAAE,wCAAgC;IACjE,CAAC,2CAAkB,CAAC,cAAc,CAAC,EAAE,4CAAoC;IACzE,CAAC,2CAAkB,CAAC,cAAc,CAAC,EAAE,4CAAoC;CAC5E,CAAC;AAMW,QAAA,uBAAuB,GAAG,OAAC;KACnC,KAAK,CAAC;IACH,wCAAgC;IAChC,wCAAgC;IAChC,4CAAoC;IACpC,4CAAoC;CACvC,CAAC;KACD,QAAQ,EAAE,CAAC;AASH,QAAA,4BAA4B,GAAG,OAAC,CAAC,KAAK,CAAC;IAChD,OAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC;IACxC,OAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;IAClD,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;CACf,CAAC,CAAC;AAMU,QAAA,sBAAsB,GAE/B;IACA,CAAC,2CAAkB,CAAC,MAAM,CAAC,EAAE,oCAA4B;CAC5D,CAAC;AAKW,QAAA,sBAAsB,GAAG,oCAA4B,CAAC,QAAQ,EAAE,CAAC"}
|
|
@@ -40,7 +40,59 @@ export declare const StreamStepChunkEventSchema: z.ZodObject<{
|
|
|
40
40
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
41
41
|
stepId: z.ZodString;
|
|
42
42
|
chunk: z.ZodString;
|
|
43
|
-
metadata: z.ZodOptional<z.
|
|
43
|
+
metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.ARGS>;
|
|
45
|
+
primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.DESCRIBE>;
|
|
48
|
+
primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.BASH>;
|
|
51
|
+
stream: z.ZodEnum<typeof import("./step-chunk-metadata.schema").BashChunkStream>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.CREATE_FILE>;
|
|
54
|
+
path: z.ZodString;
|
|
55
|
+
totalLines: z.ZodNumber;
|
|
56
|
+
bytesWritten: z.ZodNumber;
|
|
57
|
+
overwrite: z.ZodBoolean;
|
|
58
|
+
preview: z.ZodObject<{
|
|
59
|
+
lines: z.ZodArray<z.ZodString>;
|
|
60
|
+
truncated: z.ZodBoolean;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.STR_REPLACE>;
|
|
64
|
+
path: z.ZodString;
|
|
65
|
+
linesAdded: z.ZodNumber;
|
|
66
|
+
linesRemoved: z.ZodNumber;
|
|
67
|
+
linesBefore: z.ZodNumber;
|
|
68
|
+
linesAfter: z.ZodNumber;
|
|
69
|
+
hunk: z.ZodObject<{
|
|
70
|
+
startLine: z.ZodNumber;
|
|
71
|
+
contextBefore: z.ZodArray<z.ZodString>;
|
|
72
|
+
oldLines: z.ZodArray<z.ZodString>;
|
|
73
|
+
newLines: z.ZodArray<z.ZodString>;
|
|
74
|
+
contextAfter: z.ZodArray<z.ZodString>;
|
|
75
|
+
truncated: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.VIEW>;
|
|
79
|
+
path: z.ZodString;
|
|
80
|
+
view: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
|
|
82
|
+
entryCount: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
|
|
85
|
+
startLine: z.ZodNumber;
|
|
86
|
+
endLine: z.ZodNumber;
|
|
87
|
+
totalLines: z.ZodNumber;
|
|
88
|
+
truncated: z.ZodBoolean;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
|
|
91
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
|
|
93
|
+
pagesShown: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>], "type">;
|
|
95
|
+
}, z.core.$strip>], "kind">>;
|
|
44
96
|
}, z.core.$strip>;
|
|
45
97
|
export declare const StreamStepErrorEventSchema: z.ZodObject<{
|
|
46
98
|
id: z.ZodNumber;
|
|
@@ -145,7 +197,59 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
145
197
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
146
198
|
stepId: z.ZodString;
|
|
147
199
|
chunk: z.ZodString;
|
|
148
|
-
metadata: z.ZodOptional<z.
|
|
200
|
+
metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.ARGS>;
|
|
202
|
+
primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.DESCRIBE>;
|
|
205
|
+
primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.BASH>;
|
|
208
|
+
stream: z.ZodEnum<typeof import("./step-chunk-metadata.schema").BashChunkStream>;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.CREATE_FILE>;
|
|
211
|
+
path: z.ZodString;
|
|
212
|
+
totalLines: z.ZodNumber;
|
|
213
|
+
bytesWritten: z.ZodNumber;
|
|
214
|
+
overwrite: z.ZodBoolean;
|
|
215
|
+
preview: z.ZodObject<{
|
|
216
|
+
lines: z.ZodArray<z.ZodString>;
|
|
217
|
+
truncated: z.ZodBoolean;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.STR_REPLACE>;
|
|
221
|
+
path: z.ZodString;
|
|
222
|
+
linesAdded: z.ZodNumber;
|
|
223
|
+
linesRemoved: z.ZodNumber;
|
|
224
|
+
linesBefore: z.ZodNumber;
|
|
225
|
+
linesAfter: z.ZodNumber;
|
|
226
|
+
hunk: z.ZodObject<{
|
|
227
|
+
startLine: z.ZodNumber;
|
|
228
|
+
contextBefore: z.ZodArray<z.ZodString>;
|
|
229
|
+
oldLines: z.ZodArray<z.ZodString>;
|
|
230
|
+
newLines: z.ZodArray<z.ZodString>;
|
|
231
|
+
contextAfter: z.ZodArray<z.ZodString>;
|
|
232
|
+
truncated: z.ZodBoolean;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
kind: z.ZodLiteral<import("./step-chunk-metadata.schema").StepChunkKind.VIEW>;
|
|
236
|
+
path: z.ZodString;
|
|
237
|
+
view: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
|
|
239
|
+
entryCount: z.ZodNumber;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
|
|
242
|
+
startLine: z.ZodNumber;
|
|
243
|
+
endLine: z.ZodNumber;
|
|
244
|
+
totalLines: z.ZodNumber;
|
|
245
|
+
truncated: z.ZodBoolean;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
|
|
248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
+
type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
|
|
250
|
+
pagesShown: z.ZodNumber;
|
|
251
|
+
}, z.core.$strip>], "type">;
|
|
252
|
+
}, z.core.$strip>], "kind">>;
|
|
149
253
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
254
|
id: z.ZodNumber;
|
|
151
255
|
chatId: z.ZodString;
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
6
|
const citation_schema_1 = require("./citation.schema");
|
|
7
7
|
const step_metadata_schema_1 = require("./step-metadata.schema");
|
|
8
|
+
const step_chunk_metadata_schema_1 = require("./step-chunk-metadata.schema");
|
|
8
9
|
var StreamEventType;
|
|
9
10
|
(function (StreamEventType) {
|
|
10
11
|
StreamEventType["STEP_START"] = "step_start";
|
|
@@ -36,7 +37,7 @@ exports.StreamStepChunkEventSchema = BaseStreamEventSchema.extend({
|
|
|
36
37
|
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
37
38
|
stepId: zod_1.z.string().uuid(),
|
|
38
39
|
chunk: zod_1.z.string(),
|
|
39
|
-
metadata:
|
|
40
|
+
metadata: step_chunk_metadata_schema_1.StepChunkMetadataSchema.optional(),
|
|
40
41
|
});
|
|
41
42
|
exports.StreamStepErrorEventSchema = BaseStreamEventSchema.extend({
|
|
42
43
|
type: zod_1.z.literal(StreamEventType.STEP_ERROR),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AAC9D,uDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6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ACnC,CAAC,CAAC;AAUU,QAAA,iBAAiB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC1D,kCAA0B;IAC1B,kCAA0B;IAC1B,kCAA0B;IAC1B,iCAAyB;IACzB,8BAAsB;IACtB,6CAAqC;IACrC,kCAA0B;IAC1B,kCAA0B;IAC1B,6BAAqB;IACrB,kCAA0B;IAC1B,8BAAsB;CACzB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './code-execution.errors';
|
|
2
|
-
export * from './code-execution-chunk-type.enum';
|
|
3
2
|
export * from './code-execution-language.enum';
|
|
4
3
|
export * from './code-execution-outcome-kind.enum';
|
|
5
4
|
export * from './sandbox-primitive-type.enum';
|
|
5
|
+
export * from './sandbox-view-kind.enum';
|
|
6
6
|
export * from './sandbox.errors';
|
|
7
|
+
export * from './primitive-completion.schema';
|
|
@@ -15,9 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./code-execution.errors"), exports);
|
|
18
|
-
__exportStar(require("./code-execution-chunk-type.enum"), exports);
|
|
19
18
|
__exportStar(require("./code-execution-language.enum"), exports);
|
|
20
19
|
__exportStar(require("./code-execution-outcome-kind.enum"), exports);
|
|
21
20
|
__exportStar(require("./sandbox-primitive-type.enum"), exports);
|
|
21
|
+
__exportStar(require("./sandbox-view-kind.enum"), exports);
|
|
22
22
|
__exportStar(require("./sandbox.errors"), exports);
|
|
23
|
+
__exportStar(require("./primitive-completion.schema"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,gEAA8C;AAC9C,2DAAyC;AACzC,mDAAiC;AACjC,gEAA8C"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SandboxPrimitiveType } from './sandbox-primitive-type.enum';
|
|
3
|
+
import { SandboxViewKind } from './sandbox-view-kind.enum';
|
|
4
|
+
export declare const SANDBOX_CHUNK_LINE_MAX_LENGTH = 4096;
|
|
5
|
+
export declare const SANDBOX_CHUNK_LINES_MAX_ITEMS = 1024;
|
|
6
|
+
export declare const FilePreviewSchema: z.ZodObject<{
|
|
7
|
+
lines: z.ZodArray<z.ZodString>;
|
|
8
|
+
truncated: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const StrReplaceHunkSchema: z.ZodObject<{
|
|
11
|
+
startLine: z.ZodNumber;
|
|
12
|
+
contextBefore: z.ZodArray<z.ZodString>;
|
|
13
|
+
oldLines: z.ZodArray<z.ZodString>;
|
|
14
|
+
newLines: z.ZodArray<z.ZodString>;
|
|
15
|
+
contextAfter: z.ZodArray<z.ZodString>;
|
|
16
|
+
truncated: z.ZodBoolean;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const SandboxViewDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<SandboxViewKind.DIRECTORY>;
|
|
20
|
+
entryCount: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<SandboxViewKind.TEXT>;
|
|
23
|
+
startLine: z.ZodNumber;
|
|
24
|
+
endLine: z.ZodNumber;
|
|
25
|
+
totalLines: z.ZodNumber;
|
|
26
|
+
truncated: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<SandboxViewKind.IMAGE>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<SandboxViewKind.PDF>;
|
|
31
|
+
pagesShown: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>], "type">;
|
|
33
|
+
export declare const BashCompletionSchema: z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<SandboxPrimitiveType.BASH>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const CreateFileCompletionSchema: z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<SandboxPrimitiveType.CREATE_FILE>;
|
|
38
|
+
path: z.ZodString;
|
|
39
|
+
totalLines: z.ZodNumber;
|
|
40
|
+
bytesWritten: z.ZodNumber;
|
|
41
|
+
overwrite: z.ZodBoolean;
|
|
42
|
+
preview: z.ZodObject<{
|
|
43
|
+
lines: z.ZodArray<z.ZodString>;
|
|
44
|
+
truncated: z.ZodBoolean;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const StrReplaceCompletionSchema: z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<SandboxPrimitiveType.STR_REPLACE>;
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
linesAdded: z.ZodNumber;
|
|
51
|
+
linesRemoved: z.ZodNumber;
|
|
52
|
+
linesBefore: z.ZodNumber;
|
|
53
|
+
linesAfter: z.ZodNumber;
|
|
54
|
+
hunk: z.ZodObject<{
|
|
55
|
+
startLine: z.ZodNumber;
|
|
56
|
+
contextBefore: z.ZodArray<z.ZodString>;
|
|
57
|
+
oldLines: z.ZodArray<z.ZodString>;
|
|
58
|
+
newLines: z.ZodArray<z.ZodString>;
|
|
59
|
+
contextAfter: z.ZodArray<z.ZodString>;
|
|
60
|
+
truncated: z.ZodBoolean;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export declare const ViewCompletionSchema: z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<SandboxPrimitiveType.VIEW>;
|
|
65
|
+
path: z.ZodString;
|
|
66
|
+
view: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<SandboxViewKind.DIRECTORY>;
|
|
68
|
+
entryCount: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<SandboxViewKind.TEXT>;
|
|
71
|
+
startLine: z.ZodNumber;
|
|
72
|
+
endLine: z.ZodNumber;
|
|
73
|
+
totalLines: z.ZodNumber;
|
|
74
|
+
truncated: z.ZodBoolean;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<SandboxViewKind.IMAGE>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<SandboxViewKind.PDF>;
|
|
79
|
+
pagesShown: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>], "type">;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const SandboxPrimitiveCompletionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
+
type: z.ZodLiteral<SandboxPrimitiveType.BASH>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<SandboxPrimitiveType.CREATE_FILE>;
|
|
86
|
+
path: z.ZodString;
|
|
87
|
+
totalLines: z.ZodNumber;
|
|
88
|
+
bytesWritten: z.ZodNumber;
|
|
89
|
+
overwrite: z.ZodBoolean;
|
|
90
|
+
preview: z.ZodObject<{
|
|
91
|
+
lines: z.ZodArray<z.ZodString>;
|
|
92
|
+
truncated: z.ZodBoolean;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<SandboxPrimitiveType.STR_REPLACE>;
|
|
96
|
+
path: z.ZodString;
|
|
97
|
+
linesAdded: z.ZodNumber;
|
|
98
|
+
linesRemoved: z.ZodNumber;
|
|
99
|
+
linesBefore: z.ZodNumber;
|
|
100
|
+
linesAfter: z.ZodNumber;
|
|
101
|
+
hunk: z.ZodObject<{
|
|
102
|
+
startLine: z.ZodNumber;
|
|
103
|
+
contextBefore: z.ZodArray<z.ZodString>;
|
|
104
|
+
oldLines: z.ZodArray<z.ZodString>;
|
|
105
|
+
newLines: z.ZodArray<z.ZodString>;
|
|
106
|
+
contextAfter: z.ZodArray<z.ZodString>;
|
|
107
|
+
truncated: z.ZodBoolean;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<SandboxPrimitiveType.VIEW>;
|
|
111
|
+
path: z.ZodString;
|
|
112
|
+
view: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<SandboxViewKind.DIRECTORY>;
|
|
114
|
+
entryCount: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
type: z.ZodLiteral<SandboxViewKind.TEXT>;
|
|
117
|
+
startLine: z.ZodNumber;
|
|
118
|
+
endLine: z.ZodNumber;
|
|
119
|
+
totalLines: z.ZodNumber;
|
|
120
|
+
truncated: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<SandboxViewKind.IMAGE>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<SandboxViewKind.PDF>;
|
|
125
|
+
pagesShown: z.ZodNumber;
|
|
126
|
+
}, z.core.$strip>], "type">;
|
|
127
|
+
}, z.core.$strip>], "type">;
|
|
128
|
+
export type FilePreview = z.infer<typeof FilePreviewSchema>;
|
|
129
|
+
export type StrReplaceHunk = z.infer<typeof StrReplaceHunkSchema>;
|
|
130
|
+
export type SandboxViewData = z.infer<typeof SandboxViewDataSchema>;
|
|
131
|
+
export type BashCompletion = z.infer<typeof BashCompletionSchema>;
|
|
132
|
+
export type CreateFileCompletion = z.infer<typeof CreateFileCompletionSchema>;
|
|
133
|
+
export type StrReplaceCompletion = z.infer<typeof StrReplaceCompletionSchema>;
|
|
134
|
+
export type ViewCompletion = z.infer<typeof ViewCompletionSchema>;
|
|
135
|
+
export type SandboxPrimitiveCompletion = z.infer<typeof SandboxPrimitiveCompletionSchema>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SandboxPrimitiveCompletionSchema = exports.ViewCompletionSchema = exports.StrReplaceCompletionSchema = exports.CreateFileCompletionSchema = exports.BashCompletionSchema = exports.SandboxViewDataSchema = exports.StrReplaceHunkSchema = exports.FilePreviewSchema = exports.SANDBOX_CHUNK_LINES_MAX_ITEMS = exports.SANDBOX_CHUNK_LINE_MAX_LENGTH = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const sandbox_primitive_type_enum_1 = require("./sandbox-primitive-type.enum");
|
|
6
|
+
const sandbox_view_kind_enum_1 = require("./sandbox-view-kind.enum");
|
|
7
|
+
exports.SANDBOX_CHUNK_LINE_MAX_LENGTH = 4096;
|
|
8
|
+
exports.SANDBOX_CHUNK_LINES_MAX_ITEMS = 1024;
|
|
9
|
+
const sandboxLineSchema = zod_1.z.string().max(exports.SANDBOX_CHUNK_LINE_MAX_LENGTH);
|
|
10
|
+
const sandboxLinesSchema = zod_1.z.array(sandboxLineSchema).max(exports.SANDBOX_CHUNK_LINES_MAX_ITEMS);
|
|
11
|
+
exports.FilePreviewSchema = zod_1.z.object({
|
|
12
|
+
lines: sandboxLinesSchema,
|
|
13
|
+
truncated: zod_1.z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
exports.StrReplaceHunkSchema = zod_1.z.object({
|
|
16
|
+
startLine: zod_1.z.number().int().positive(),
|
|
17
|
+
contextBefore: sandboxLinesSchema,
|
|
18
|
+
oldLines: sandboxLinesSchema,
|
|
19
|
+
newLines: sandboxLinesSchema,
|
|
20
|
+
contextAfter: sandboxLinesSchema,
|
|
21
|
+
truncated: zod_1.z.boolean(),
|
|
22
|
+
});
|
|
23
|
+
exports.SandboxViewDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
24
|
+
zod_1.z.object({
|
|
25
|
+
type: zod_1.z.literal(sandbox_view_kind_enum_1.SandboxViewKind.DIRECTORY),
|
|
26
|
+
entryCount: zod_1.z.number().int().nonnegative(),
|
|
27
|
+
}),
|
|
28
|
+
zod_1.z.object({
|
|
29
|
+
type: zod_1.z.literal(sandbox_view_kind_enum_1.SandboxViewKind.TEXT),
|
|
30
|
+
startLine: zod_1.z.number().int().positive(),
|
|
31
|
+
endLine: zod_1.z.number().int().nonnegative(),
|
|
32
|
+
totalLines: zod_1.z.number().int().nonnegative(),
|
|
33
|
+
truncated: zod_1.z.boolean(),
|
|
34
|
+
}),
|
|
35
|
+
zod_1.z.object({
|
|
36
|
+
type: zod_1.z.literal(sandbox_view_kind_enum_1.SandboxViewKind.IMAGE),
|
|
37
|
+
}),
|
|
38
|
+
zod_1.z.object({
|
|
39
|
+
type: zod_1.z.literal(sandbox_view_kind_enum_1.SandboxViewKind.PDF),
|
|
40
|
+
pagesShown: zod_1.z.number().int().nonnegative(),
|
|
41
|
+
}),
|
|
42
|
+
]);
|
|
43
|
+
exports.BashCompletionSchema = zod_1.z.object({
|
|
44
|
+
type: zod_1.z.literal(sandbox_primitive_type_enum_1.SandboxPrimitiveType.BASH),
|
|
45
|
+
});
|
|
46
|
+
exports.CreateFileCompletionSchema = zod_1.z.object({
|
|
47
|
+
type: zod_1.z.literal(sandbox_primitive_type_enum_1.SandboxPrimitiveType.CREATE_FILE),
|
|
48
|
+
path: zod_1.z.string().min(1).max(4096),
|
|
49
|
+
totalLines: zod_1.z.number().int().nonnegative(),
|
|
50
|
+
bytesWritten: zod_1.z.number().int().nonnegative(),
|
|
51
|
+
overwrite: zod_1.z.boolean(),
|
|
52
|
+
preview: exports.FilePreviewSchema,
|
|
53
|
+
});
|
|
54
|
+
exports.StrReplaceCompletionSchema = zod_1.z.object({
|
|
55
|
+
type: zod_1.z.literal(sandbox_primitive_type_enum_1.SandboxPrimitiveType.STR_REPLACE),
|
|
56
|
+
path: zod_1.z.string().min(1).max(4096),
|
|
57
|
+
linesAdded: zod_1.z.number().int().nonnegative(),
|
|
58
|
+
linesRemoved: zod_1.z.number().int().nonnegative(),
|
|
59
|
+
linesBefore: zod_1.z.number().int().nonnegative(),
|
|
60
|
+
linesAfter: zod_1.z.number().int().nonnegative(),
|
|
61
|
+
hunk: exports.StrReplaceHunkSchema,
|
|
62
|
+
});
|
|
63
|
+
exports.ViewCompletionSchema = zod_1.z.object({
|
|
64
|
+
type: zod_1.z.literal(sandbox_primitive_type_enum_1.SandboxPrimitiveType.VIEW),
|
|
65
|
+
path: zod_1.z.string().min(1).max(4096),
|
|
66
|
+
view: exports.SandboxViewDataSchema,
|
|
67
|
+
});
|
|
68
|
+
exports.SandboxPrimitiveCompletionSchema = zod_1.z.discriminatedUnion('type', [
|
|
69
|
+
exports.BashCompletionSchema,
|
|
70
|
+
exports.CreateFileCompletionSchema,
|
|
71
|
+
exports.StrReplaceCompletionSchema,
|
|
72
|
+
exports.ViewCompletionSchema,
|
|
73
|
+
]);
|
|
74
|
+
//# sourceMappingURL=primitive-completion.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-completion.schema.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/primitive-completion.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+EAAqE;AACrE,qEAA2D;AAO9C,QAAA,6BAA6B,GAAG,IAAI,CAAC;AAMrC,QAAA,6BAA6B,GAAG,IAAI,CAAC;AAElD,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,qCAA6B,CAAC,C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AAE,CAAC,WAAW,EAAE;IAC5C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC1C,IAAI,EAAE,4BAAoB;CAC7B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kDAAoB,CAAC,IAAI,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,6BAAqB;CAC9B,CAAC,CAAC;AAEU,QAAA,gCAAgC,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACzE,4BAAoB;IACpB,kCAA0B;IAC1B,kCAA0B;IAC1B,4BAAoB;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SandboxViewKind = void 0;
|
|
4
|
+
var SandboxViewKind;
|
|
5
|
+
(function (SandboxViewKind) {
|
|
6
|
+
SandboxViewKind["DIRECTORY"] = "directory";
|
|
7
|
+
SandboxViewKind["TEXT"] = "text";
|
|
8
|
+
SandboxViewKind["IMAGE"] = "image";
|
|
9
|
+
SandboxViewKind["PDF"] = "pdf";
|
|
10
|
+
})(SandboxViewKind || (exports.SandboxViewKind = SandboxViewKind = {}));
|
|
11
|
+
//# sourceMappingURL=sandbox-view-kind.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-view-kind.enum.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/sandbox-view-kind.enum.ts"],"names":[],"mappings":";;;AAUA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,8BAAW,CAAA;AACf,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CodeExecutionChunkType = void 0;
|
|
4
|
-
var CodeExecutionChunkType;
|
|
5
|
-
(function (CodeExecutionChunkType) {
|
|
6
|
-
CodeExecutionChunkType["CODE"] = "code";
|
|
7
|
-
CodeExecutionChunkType["STDOUT"] = "stdout";
|
|
8
|
-
CodeExecutionChunkType["STDERR"] = "stderr";
|
|
9
|
-
CodeExecutionChunkType["RESULT"] = "result";
|
|
10
|
-
CodeExecutionChunkType["ERROR"] = "error";
|
|
11
|
-
})(CodeExecutionChunkType || (exports.CodeExecutionChunkType = CodeExecutionChunkType = {}));
|
|
12
|
-
//# sourceMappingURL=code-execution-chunk-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-execution-chunk-type.enum.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/code-execution-chunk-type.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAE9B,uCAAa,CAAA;IAEb,2CAAiB,CAAA;IAEjB,2CAAiB,CAAA;IAEjB,2CAAiB,CAAA;IAEjB,yCAAe,CAAA;AACnB,CAAC,EAXW,sBAAsB,sCAAtB,sBAAsB,QAWjC"}
|