openpond-sdk 0.6.1 → 0.6.2
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 +15 -0
- package/dist/{chunk-APHPXQEA.js → chunk-22RMONJA.js} +3 -3
- package/dist/chunk-22RMONJA.js.map +7 -0
- package/dist/{chunk-QLEJOCQX.js → chunk-6T23L3LH.js} +2 -2
- package/dist/{chunk-27ETSPHQ.js → chunk-FJ7IMEG5.js} +2 -2
- package/dist/{chunk-7O5X7DBU.js → chunk-JHKNPQD5.js} +2 -2
- package/dist/index.js +132 -40
- package/dist/index.js.map +3 -3
- package/dist/profile-actions.js +2 -2
- package/dist/project-actions.js +2 -2
- package/dist/types/packages/cloud/src/api/core.d.ts +1 -0
- package/dist/types/packages/cloud/src/api/core.d.ts.map +1 -1
- package/dist/types/packages/cloud/src/sandbox/sandbox-instance-client.d.ts +2 -1
- package/dist/types/packages/cloud/src/sandbox/sandbox-instance-client.d.ts.map +1 -1
- package/dist/types/packages/cloud/src/sandbox/types/client.d.ts +2 -0
- package/dist/types/packages/cloud/src/sandbox/types/client.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/index.d.ts +6 -6
- package/dist/types/packages/sdk/src/index.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-batch-review-preparation.d.ts +1 -1
- package/dist/types/packages/sdk/src/model-starter-catalog.d.ts +10 -10
- package/dist/types/packages/sdk/src/model-starters.d.ts +8 -8
- package/dist/types/packages/sdk/src/taskset-authored-contracts.d.ts +2 -2
- package/dist/types/packages/sdk/src/taskset-authored-files.d.ts +2 -2
- package/dist/types/packages/sdk/src/taskset-draft-api-contracts.d.ts +4 -4
- package/dist/types/packages/sdk/src/taskset-draft-client.d.ts +12 -12
- package/dist/types/packages/sdk/src/taskset-draft-core.d.ts +3 -3
- package/dist/types/packages/sdk/src/taskset-draft-document.d.ts +2 -2
- package/dist/types/packages/sdk/src/taskset-draft-package-compiler.d.ts +8 -8
- package/dist/types/packages/sdk/src/taskset-draft-source.d.ts +4 -4
- package/dist/types/packages/sdk/src/taskset-draft-workspace.d.ts +4 -4
- package/dist/types/packages/sdk/src/taskset-package-grader-projection.d.ts +1 -1
- package/dist/types/packages/sdk/src/taskset-package-projection.d.ts +10 -10
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts +6 -6
- package/dist/types/packages/sdk/src/types.d.ts +17 -1
- package/dist/types/packages/sdk/src/types.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/work-model.d.ts +17 -0
- package/dist/types/packages/sdk/src/work-model.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/work-sandbox.d.ts +17 -0
- package/dist/types/packages/sdk/src/work-sandbox.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/work.d.ts +8 -2
- package/dist/types/packages/sdk/src/work.d.ts.map +1 -1
- package/dist/workflows.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-APHPXQEA.js.map +0 -7
- /package/dist/{chunk-QLEJOCQX.js.map → chunk-6T23L3LH.js.map} +0 -0
- /package/dist/{chunk-27ETSPHQ.js.map → chunk-FJ7IMEG5.js.map} +0 -0
- /package/dist/{chunk-7O5X7DBU.js.map → chunk-JHKNPQD5.js.map} +0 -0
|
@@ -85,7 +85,7 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
85
85
|
hardGate: boolean;
|
|
86
86
|
rewardEligible: boolean;
|
|
87
87
|
privileged: boolean;
|
|
88
|
-
kind: "
|
|
88
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
89
89
|
config: Record<string, unknown>;
|
|
90
90
|
} | {
|
|
91
91
|
id: string;
|
|
@@ -230,7 +230,7 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
230
230
|
hardGate: boolean;
|
|
231
231
|
rewardEligible: boolean;
|
|
232
232
|
privileged: boolean;
|
|
233
|
-
kind: "
|
|
233
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
234
234
|
config: Record<string, unknown>;
|
|
235
235
|
} | {
|
|
236
236
|
id: string;
|
|
@@ -457,7 +457,7 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
457
457
|
name: string;
|
|
458
458
|
description: string;
|
|
459
459
|
implementation: {
|
|
460
|
-
kind: "
|
|
460
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
461
461
|
config: Record<string, unknown>;
|
|
462
462
|
} | {
|
|
463
463
|
kind: "model_judge";
|
|
@@ -601,7 +601,7 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
601
601
|
hardGate: boolean;
|
|
602
602
|
rewardEligible: boolean;
|
|
603
603
|
privileged: boolean;
|
|
604
|
-
kind: "
|
|
604
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
605
605
|
config: Record<string, unknown>;
|
|
606
606
|
} | {
|
|
607
607
|
id: string;
|
|
@@ -704,11 +704,11 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
704
704
|
executionServices?: ({
|
|
705
705
|
kind: "sqlite.v1";
|
|
706
706
|
sql: {
|
|
707
|
-
scope: "input" | "
|
|
707
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
708
708
|
path: string[];
|
|
709
709
|
};
|
|
710
710
|
snapshot: {
|
|
711
|
-
scope: "input" | "
|
|
711
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
712
712
|
path: string[];
|
|
713
713
|
};
|
|
714
714
|
maxRows: number;
|
|
@@ -720,11 +720,11 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
720
720
|
} | {
|
|
721
721
|
kind: "javascript.v1";
|
|
722
722
|
source: {
|
|
723
|
-
scope: "input" | "
|
|
723
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
724
724
|
path: string[];
|
|
725
725
|
};
|
|
726
726
|
cases: {
|
|
727
|
-
scope: "input" | "
|
|
727
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
728
728
|
path: string[];
|
|
729
729
|
};
|
|
730
730
|
exportName: string;
|
|
@@ -392,8 +392,8 @@ export declare const TasksetDraftSourceInitializationSchema: z.ZodObject<{
|
|
|
392
392
|
}, z.core.$strict>>>;
|
|
393
393
|
}, z.core.$strict>>>;
|
|
394
394
|
lifecycle: z.ZodArray<z.ZodEnum<{
|
|
395
|
-
cleanup: "cleanup";
|
|
396
395
|
create: "create";
|
|
396
|
+
cleanup: "cleanup";
|
|
397
397
|
grade: "grade";
|
|
398
398
|
reset: "reset";
|
|
399
399
|
step: "step";
|
|
@@ -573,9 +573,9 @@ export declare const TasksetDraftSourceInitializationSchema: z.ZodObject<{
|
|
|
573
573
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
574
574
|
kind: z.ZodEnum<{
|
|
575
575
|
file: "file";
|
|
576
|
+
content: "content";
|
|
576
577
|
state: "state";
|
|
577
578
|
test: "test";
|
|
578
|
-
content: "content";
|
|
579
579
|
schema: "schema";
|
|
580
580
|
runtime_event: "runtime_event";
|
|
581
581
|
diff: "diff";
|
|
@@ -971,7 +971,7 @@ export declare function materializeTasksetDraftWorkspace(input: {
|
|
|
971
971
|
stateful: boolean;
|
|
972
972
|
deterministicSeeds: boolean;
|
|
973
973
|
toolNames: string[];
|
|
974
|
-
lifecycle: ("
|
|
974
|
+
lifecycle: ("create" | "cleanup" | "grade" | "reset" | "step")[];
|
|
975
975
|
defaultTimeoutMs: number;
|
|
976
976
|
networkPolicy: "none" | "declared_read_only" | "declared_scoped";
|
|
977
977
|
metadata: Record<string, unknown>;
|
|
@@ -1098,7 +1098,7 @@ export declare function materializeTasksetDraftWorkspace(input: {
|
|
|
1098
1098
|
rewardEligible: boolean;
|
|
1099
1099
|
privileged: boolean;
|
|
1100
1100
|
metadata: Record<string, unknown>;
|
|
1101
|
-
kind: "file" | "
|
|
1101
|
+
kind: "file" | "content" | "state" | "test" | "schema" | "runtime_event" | "diff";
|
|
1102
1102
|
config: Record<string, unknown>;
|
|
1103
1103
|
} | {
|
|
1104
1104
|
id: string;
|
|
@@ -398,8 +398,8 @@ declare const WorkspaceContentSchema: z.ZodObject<{
|
|
|
398
398
|
}, z.core.$strict>>>;
|
|
399
399
|
}, z.core.$strict>>>;
|
|
400
400
|
lifecycle: z.ZodArray<z.ZodEnum<{
|
|
401
|
-
cleanup: "cleanup";
|
|
402
401
|
create: "create";
|
|
402
|
+
cleanup: "cleanup";
|
|
403
403
|
grade: "grade";
|
|
404
404
|
reset: "reset";
|
|
405
405
|
step: "step";
|
|
@@ -579,9 +579,9 @@ declare const WorkspaceContentSchema: z.ZodObject<{
|
|
|
579
579
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
580
580
|
kind: z.ZodEnum<{
|
|
581
581
|
file: "file";
|
|
582
|
+
content: "content";
|
|
582
583
|
state: "state";
|
|
583
584
|
test: "test";
|
|
584
|
-
content: "content";
|
|
585
585
|
schema: "schema";
|
|
586
586
|
runtime_event: "runtime_event";
|
|
587
587
|
diff: "diff";
|
|
@@ -1176,8 +1176,8 @@ export declare const TasksetDraftWorkspaceSchema: z.ZodObject<{
|
|
|
1176
1176
|
}, z.core.$strict>>>;
|
|
1177
1177
|
}, z.core.$strict>>>;
|
|
1178
1178
|
lifecycle: z.ZodArray<z.ZodEnum<{
|
|
1179
|
-
cleanup: "cleanup";
|
|
1180
1179
|
create: "create";
|
|
1180
|
+
cleanup: "cleanup";
|
|
1181
1181
|
grade: "grade";
|
|
1182
1182
|
reset: "reset";
|
|
1183
1183
|
step: "step";
|
|
@@ -1357,9 +1357,9 @@ export declare const TasksetDraftWorkspaceSchema: z.ZodObject<{
|
|
|
1357
1357
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1358
1358
|
kind: z.ZodEnum<{
|
|
1359
1359
|
file: "file";
|
|
1360
|
+
content: "content";
|
|
1360
1361
|
state: "state";
|
|
1361
1362
|
test: "test";
|
|
1362
|
-
content: "content";
|
|
1363
1363
|
schema: "schema";
|
|
1364
1364
|
runtime_event: "runtime_event";
|
|
1365
1365
|
diff: "diff";
|
|
@@ -12,7 +12,7 @@ export declare function importedPackageGraders(value: TasksetPackage): ({
|
|
|
12
12
|
rewardEligible: boolean;
|
|
13
13
|
privileged: boolean;
|
|
14
14
|
metadata: Record<string, unknown>;
|
|
15
|
-
kind: "file" | "
|
|
15
|
+
kind: "file" | "content" | "state" | "test" | "schema" | "runtime_event" | "diff";
|
|
16
16
|
config: Record<string, unknown>;
|
|
17
17
|
} | {
|
|
18
18
|
id: string;
|
|
@@ -82,7 +82,7 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
82
82
|
hardGate: boolean;
|
|
83
83
|
rewardEligible: boolean;
|
|
84
84
|
privileged: boolean;
|
|
85
|
-
kind: "
|
|
85
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
86
86
|
config: Record<string, unknown>;
|
|
87
87
|
} | {
|
|
88
88
|
id: string;
|
|
@@ -227,7 +227,7 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
227
227
|
hardGate: boolean;
|
|
228
228
|
rewardEligible: boolean;
|
|
229
229
|
privileged: boolean;
|
|
230
|
-
kind: "
|
|
230
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
231
231
|
config: Record<string, unknown>;
|
|
232
232
|
} | {
|
|
233
233
|
id: string;
|
|
@@ -454,7 +454,7 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
454
454
|
name: string;
|
|
455
455
|
description: string;
|
|
456
456
|
implementation: {
|
|
457
|
-
kind: "
|
|
457
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
458
458
|
config: Record<string, unknown>;
|
|
459
459
|
} | {
|
|
460
460
|
kind: "model_judge";
|
|
@@ -598,7 +598,7 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
598
598
|
hardGate: boolean;
|
|
599
599
|
rewardEligible: boolean;
|
|
600
600
|
privileged: boolean;
|
|
601
|
-
kind: "
|
|
601
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
602
602
|
config: Record<string, unknown>;
|
|
603
603
|
} | {
|
|
604
604
|
id: string;
|
|
@@ -701,11 +701,11 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
701
701
|
executionServices?: ({
|
|
702
702
|
kind: "sqlite.v1";
|
|
703
703
|
sql: {
|
|
704
|
-
scope: "input" | "
|
|
704
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
705
705
|
path: string[];
|
|
706
706
|
};
|
|
707
707
|
snapshot: {
|
|
708
|
-
scope: "input" | "
|
|
708
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
709
709
|
path: string[];
|
|
710
710
|
};
|
|
711
711
|
maxRows: number;
|
|
@@ -717,11 +717,11 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
717
717
|
} | {
|
|
718
718
|
kind: "javascript.v1";
|
|
719
719
|
source: {
|
|
720
|
-
scope: "input" | "
|
|
720
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
721
721
|
path: string[];
|
|
722
722
|
};
|
|
723
723
|
cases: {
|
|
724
|
-
scope: "input" | "
|
|
724
|
+
scope: "input" | "arguments" | "state" | "initialState";
|
|
725
725
|
path: string[];
|
|
726
726
|
};
|
|
727
727
|
exportName: string;
|
|
@@ -1182,7 +1182,7 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
1182
1182
|
stateful: boolean;
|
|
1183
1183
|
deterministicSeeds: boolean;
|
|
1184
1184
|
toolNames: string[];
|
|
1185
|
-
lifecycle: ("
|
|
1185
|
+
lifecycle: ("create" | "cleanup" | "grade" | "reset" | "step")[];
|
|
1186
1186
|
defaultTimeoutMs: number;
|
|
1187
1187
|
networkPolicy: "none" | "declared_read_only" | "declared_scoped";
|
|
1188
1188
|
metadata: Record<string, unknown>;
|
|
@@ -1272,7 +1272,7 @@ export declare function prepareImportedTasksetPackage(input: {
|
|
|
1272
1272
|
rewardEligible: boolean;
|
|
1273
1273
|
privileged: boolean;
|
|
1274
1274
|
metadata: Record<string, unknown>;
|
|
1275
|
-
kind: "file" | "
|
|
1275
|
+
kind: "file" | "content" | "state" | "test" | "schema" | "runtime_event" | "diff";
|
|
1276
1276
|
config: Record<string, unknown>;
|
|
1277
1277
|
} | {
|
|
1278
1278
|
id: string;
|
|
@@ -158,7 +158,7 @@ export declare function materializeLearningBatchTaskset(input: {
|
|
|
158
158
|
stateful: boolean;
|
|
159
159
|
deterministicSeeds: boolean;
|
|
160
160
|
toolNames: string[];
|
|
161
|
-
lifecycle: ("
|
|
161
|
+
lifecycle: ("create" | "cleanup" | "grade" | "reset" | "step")[];
|
|
162
162
|
defaultTimeoutMs: number;
|
|
163
163
|
networkPolicy: "none" | "declared_read_only" | "declared_scoped";
|
|
164
164
|
metadata: Record<string, unknown>;
|
|
@@ -248,7 +248,7 @@ export declare function materializeLearningBatchTaskset(input: {
|
|
|
248
248
|
rewardEligible: boolean;
|
|
249
249
|
privileged: boolean;
|
|
250
250
|
metadata: Record<string, unknown>;
|
|
251
|
-
kind: "file" | "
|
|
251
|
+
kind: "file" | "content" | "state" | "test" | "schema" | "runtime_event" | "diff";
|
|
252
252
|
config: Record<string, unknown>;
|
|
253
253
|
} | {
|
|
254
254
|
id: string;
|
|
@@ -625,7 +625,7 @@ export declare function materializeLearningBatchTaskset(input: {
|
|
|
625
625
|
hardGate: boolean;
|
|
626
626
|
rewardEligible: boolean;
|
|
627
627
|
privileged: boolean;
|
|
628
|
-
kind: "
|
|
628
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
629
629
|
config: Record<string, unknown>;
|
|
630
630
|
} | {
|
|
631
631
|
id: string;
|
|
@@ -870,7 +870,7 @@ export declare function prepareReviewedLearningBatch(input: Omit<Parameters<type
|
|
|
870
870
|
stateful: boolean;
|
|
871
871
|
deterministicSeeds: boolean;
|
|
872
872
|
toolNames: string[];
|
|
873
|
-
lifecycle: ("
|
|
873
|
+
lifecycle: ("create" | "cleanup" | "grade" | "reset" | "step")[];
|
|
874
874
|
defaultTimeoutMs: number;
|
|
875
875
|
networkPolicy: "none" | "declared_read_only" | "declared_scoped";
|
|
876
876
|
metadata: Record<string, unknown>;
|
|
@@ -960,7 +960,7 @@ export declare function prepareReviewedLearningBatch(input: Omit<Parameters<type
|
|
|
960
960
|
rewardEligible: boolean;
|
|
961
961
|
privileged: boolean;
|
|
962
962
|
metadata: Record<string, unknown>;
|
|
963
|
-
kind: "file" | "
|
|
963
|
+
kind: "file" | "content" | "state" | "test" | "schema" | "runtime_event" | "diff";
|
|
964
964
|
config: Record<string, unknown>;
|
|
965
965
|
} | {
|
|
966
966
|
id: string;
|
|
@@ -1337,7 +1337,7 @@ export declare function prepareReviewedLearningBatch(input: Omit<Parameters<type
|
|
|
1337
1337
|
hardGate: boolean;
|
|
1338
1338
|
rewardEligible: boolean;
|
|
1339
1339
|
privileged: boolean;
|
|
1340
|
-
kind: "
|
|
1340
|
+
kind: "content" | "state" | "schema" | "artifact" | "runtime_event";
|
|
1341
1341
|
config: Record<string, unknown>;
|
|
1342
1342
|
} | {
|
|
1343
1343
|
id: string;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
export type OpenPondClientOptions = {
|
|
2
2
|
/** OpenPond server API key. Keep this value on the server. */
|
|
3
|
-
apiKey
|
|
3
|
+
apiKey?: string;
|
|
4
|
+
/** Omit for hosted OpenPond. An explicit endpoint uses its own runtime key. */
|
|
5
|
+
sandbox?: {
|
|
6
|
+
endpoint: string;
|
|
7
|
+
apiKey: string;
|
|
8
|
+
resources?: {
|
|
9
|
+
cpu?: number;
|
|
10
|
+
memoryGb?: number;
|
|
11
|
+
diskGb?: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/** OpenAI-compatible Chat Completions base URL, independent of sandbox auth. */
|
|
15
|
+
model?: {
|
|
16
|
+
endpoint: string;
|
|
17
|
+
apiKey: string;
|
|
18
|
+
model: string;
|
|
19
|
+
};
|
|
4
20
|
/** API origin, such as https://api.openpond.ai. */
|
|
5
21
|
baseUrl?: string;
|
|
6
22
|
/** Optional full sandbox API URL. Overrides the URL derived from baseUrl. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,OAAO,CAAC,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE;YAAE,GAAG,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAClE,CAAC;IACF,gFAAgF;IAChF,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type HostedChatRequestOptions } from "../../cloud/src/hosted-chat.js";
|
|
2
|
+
export declare function workModelTurn(options: HostedChatRequestOptions, custom: boolean): Promise<import("../../cloud/src/hosted-chat.js").HostedChatCompletion | {
|
|
3
|
+
choices: {
|
|
4
|
+
message: {
|
|
5
|
+
content?: string | null | undefined;
|
|
6
|
+
tool_calls?: {
|
|
7
|
+
id: string;
|
|
8
|
+
type: "function";
|
|
9
|
+
function: {
|
|
10
|
+
name: string;
|
|
11
|
+
arguments: string;
|
|
12
|
+
};
|
|
13
|
+
}[] | undefined;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=work-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-model.d.ts","sourceRoot":"","sources":["../../../../../src/work-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAYhG,wBAAsB,aAAa,CAAC,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,OAAO;;;;;;;;;;;;;;GAWrF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OpenPondSandboxClient } from "../../cloud/src/sandbox/client.js";
|
|
2
|
+
import type { SandboxRecord } from "../../cloud/src/sandbox/types/index.js";
|
|
3
|
+
import type { OpenPondClientOptions } from "./types.js";
|
|
4
|
+
/** The operations used by Work; provider-specific provisioning stays here. */
|
|
5
|
+
export type WorkSandbox = Pick<OpenPondSandboxClient, "get" | "start" | "exec" | "mkdir" | "uploadFile" | "uploadFileBase64" | "listFiles" | "downloadFileResponse" | "stop" | "delete"> & {
|
|
6
|
+
readonly supportsResume: boolean;
|
|
7
|
+
createWork(input: {
|
|
8
|
+
requestId?: string;
|
|
9
|
+
repo?: string;
|
|
10
|
+
budgetUsd?: string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
}): Promise<SandboxRecord>;
|
|
13
|
+
};
|
|
14
|
+
export declare function workSandbox(client: OpenPondSandboxClient, custom?: OpenPondClientOptions["sandbox"]): WorkSandbox;
|
|
15
|
+
export declare function configuredEndpoint(value: string, name: string): string;
|
|
16
|
+
export declare function configuredKey(value: string, name: string): string;
|
|
17
|
+
//# sourceMappingURL=work-sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-sandbox.d.ts","sourceRoot":"","sources":["../../../../../src/work-sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,qBAAqB,EAClD,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,GACtE,WAAW,GAAG,sBAAsB,GAAG,MAAM,GAAG,QAAQ,CACzD,GAAG;IACF,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,UAAU,CAAC,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC1I,CAAC;AAEF,wBAAgB,WAAW,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,GAAG,WAAW,CA+BjH;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKtE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { OpenPondSandboxClient } from "
|
|
2
|
-
import type {
|
|
1
|
+
import type { OpenPondSandboxClient } from "../../cloud/src/sandbox/client.js";
|
|
2
|
+
import type { OpenPondClientOptions } from "./types.js";
|
|
3
|
+
import type { SandboxFileDownloadResponse, SandboxRecord } from "../../cloud/src/sandbox/types/index.js";
|
|
3
4
|
export declare const MAX_WORK_COMMAND_CHARS = 20000;
|
|
4
5
|
export type OpenPondWorkCleanup = "keep" | "stop" | "delete";
|
|
5
6
|
export type OpenPondWorkHistoryMessage = {
|
|
@@ -84,6 +85,8 @@ export type OpenPondWorkEvent = {
|
|
|
84
85
|
};
|
|
85
86
|
export type OpenPondWorkRunInput = {
|
|
86
87
|
prompt: string;
|
|
88
|
+
/** Durable caller-generated UUID for recovering a BYOC create after an app restart. */
|
|
89
|
+
requestId?: string;
|
|
87
90
|
/** Reuse this sandbox to continue work in an existing conversation. */
|
|
88
91
|
sandboxId?: string;
|
|
89
92
|
/** Repository cloned when a new sandbox is created. */
|
|
@@ -117,6 +120,9 @@ type WorkClientInput = {
|
|
|
117
120
|
apiBaseUrl: string;
|
|
118
121
|
chatApiBaseUrl: string;
|
|
119
122
|
sandboxes: OpenPondSandboxClient;
|
|
123
|
+
sandboxConfig?: OpenPondClientOptions["sandbox"];
|
|
124
|
+
defaultModel?: string;
|
|
125
|
+
customModel?: boolean;
|
|
120
126
|
};
|
|
121
127
|
export declare class OpenPondWorkClient {
|
|
122
128
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work.d.ts","sourceRoot":"","sources":["../../../../../src/work.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"work.d.ts","sourceRoot":"","sources":["../../../../../src/work.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EACV,2BAA2B,EAE3B,aAAa,EACd,MAAM,+BAA+B,CAAC;AAKvC,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAQ7C,MAAM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C,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,qBAAqB,CAAC;IACjC,aAAa,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,qBAAa,kBAAkB;;gBAQjB,KAAK,EAAE,eAAe;IAS5B,GAAG,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA4GhE,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqKrD,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,GAAG,MAAM,GAClC,OAAO,CAAC,2BAA2B,CAAC;CAgIxC"}
|
package/dist/workflows.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../cloud/src/api/core.ts"],
|
|
4
|
-
"sourcesContent": ["const DEFAULT_API_TIMEOUT_MS = 30_000;\nconst DEFAULT_API_RESPONSE_BYTES = 8 * 1024 * 1024;\nexport const LONG_STREAM_API_OPTIONS = { timeoutMs: 15 * 60 * 1000, maxResponseBytes: 64 * 1024 * 1024 } as const;\n\nexport type ApiFetchOptions = RequestInit & {\n timeoutMs?: number;\n maxResponseBytes?: number;\n};\n\nexport class ApiTimeoutError extends Error {\n readonly code = \"OPENPOND_API_TIMEOUT\";\n\n constructor(readonly timeoutMs: number, readonly requestUrl: string) {\n super(`API request timed out after ${timeoutMs}ms: ${requestUrl}`);\n this.name = \"ApiTimeoutError\";\n }\n}\n\nexport class ApiResponseTooLargeError extends Error {\n readonly code = \"OPENPOND_API_RESPONSE_TOO_LARGE\";\n\n constructor(readonly maximumBytes: number, readonly requestUrl: string) {\n super(`API response exceeded ${maximumBytes} bytes: ${requestUrl}`);\n this.name = \"ApiResponseTooLargeError\";\n }\n}\n\nexport class OpenPondApiError extends Error {\n readonly code: string;\n\n constructor(\n readonly status: number,\n errorCode: string | null,\n label: string,\n readonly apiMessage: string | null = null,\n ) {\n const detail = apiMessage || errorCode;\n super(`${label} failed: ${status}${detail ? ` ${detail}` : \"\"}`);\n this.name = \"OpenPondApiError\";\n this.code = errorCode || \"OPENPOND_API_ERROR\";\n }\n}\n\nexport async function apiFetch(\n baseUrl: string,\n token: string | null,\n requestPath: string,\n options: ApiFetchOptions = {},\n): Promise<Response> {\n const { timeoutMs = DEFAULT_API_TIMEOUT_MS, maxResponseBytes = DEFAULT_API_RESPONSE_BYTES, ...init } = options;\n const requestUrl = `${baseUrl}${requestPath}`;\n const headers = new Headers(init.headers);\n headers.set(\"Content-Type\", \"application/json\");\n const apiKey = process.env.OPENPOND_API_KEY;\n const trimmedToken = token?.trim() || \"\";\n const tokenIsApiKey = trimmedToken.startsWith(\"opk_\");\n const effectiveApiKey = apiKey || (tokenIsApiKey ? trimmedToken : null);\n if (effectiveApiKey && !headers.has(\"openpond-api-key\")) headers.set(\"openpond-api-key\", effectiveApiKey);\n if (token) {\n headers.set(\"Authorization\", tokenIsApiKey ? `ApiKey ${trimmedToken}` : `Bearer ${token}`);\n } else if (apiKey && !headers.has(\"Authorization\")) {\n headers.set(\"Authorization\", `ApiKey ${apiKey}`);\n }\n\n const timeoutController = new AbortController();\n const timeoutError = new ApiTimeoutError(timeoutMs, requestUrl);\n const timer = timeoutMs > 0\n ? setTimeout(() => timeoutController.abort(timeoutError), timeoutMs)\n : null;\n timer?.unref?.();\n const signal = composedSignal(init.signal, timeoutController.signal, timeoutMs);\n const cleanup = () => {\n if (timer) clearTimeout(timer);\n };\n\n try {\n const response = await fetch(requestUrl, { ...init, headers, signal });\n return boundedResponse(response, {\n cleanup,\n maximumBytes: maxResponseBytes,\n requestUrl,\n timeoutController,\n timeoutError,\n });\n } catch (error) {\n cleanup();\n if (timeoutController.signal.aborted) throw timeoutError;\n throw error;\n }\n}\n\nexport async function readApiJson<T>(response: Response, label: string): Promise<T> {\n let payload: T & { error?: unknown; message?: unknown };\n try {\n const text = await response.text();\n payload = (text ? JSON.parse(text) : {}) as T & { error?: unknown; message?: unknown };\n } catch (error) {\n if (error instanceof ApiTimeoutError || error instanceof ApiResponseTooLargeError) throw error;\n payload = {} as T & { error?: unknown; message?: unknown };\n }\n if (!response.ok) {\n const errorCode = typeof payload.error === \"string\" ? payload.error : null;\n const apiMessage =\n typeof payload.message === \"string\" ? payload.message : null;\n throw new OpenPondApiError(response.status, errorCode, label, apiMessage);\n }\n return payload as T;\n}\n\nfunction boundedResponse(\n response: Response,\n input: {\n cleanup: () => void;\n maximumBytes: number;\n requestUrl: string;\n timeoutController: AbortController;\n timeoutError: ApiTimeoutError;\n },\n): Response {\n if (!response.body) {\n input.cleanup();\n return response;\n }\n const contentLength = Number(response.headers.get(\"content-length\"));\n if (input.maximumBytes > 0 && Number.isFinite(contentLength) && contentLength > input.maximumBytes) {\n input.cleanup();\n void response.body.cancel();\n throw new ApiResponseTooLargeError(input.maximumBytes, input.requestUrl);\n }\n\n const reader = response.body.getReader();\n let receivedBytes = 0;\n const body = new ReadableStream<Uint8Array>({\n async pull(controller) {\n try {\n const result = await reader.read();\n if (result.done) {\n input.cleanup();\n controller.close();\n return;\n }\n receivedBytes += result.value.byteLength;\n if (input.maximumBytes > 0 && receivedBytes > input.maximumBytes) {\n input.cleanup();\n await reader.cancel();\n controller.error(new ApiResponseTooLargeError(input.maximumBytes, input.requestUrl));\n return;\n }\n controller.enqueue(result.value);\n } catch (error) {\n input.cleanup();\n controller.error(input.timeoutController.signal.aborted ? input.timeoutError : error);\n }\n },\n async cancel(reason) {\n input.cleanup();\n await reader.cancel(reason);\n },\n });\n return new Response(body, {\n headers: response.headers,\n status: response.status,\n statusText: response.statusText,\n });\n}\n\nfunction composedSignal(\n callerSignal: AbortSignal | null | undefined,\n timeoutSignal: AbortSignal,\n timeoutMs: number,\n): AbortSignal | undefined {\n if (timeoutMs <= 0) return callerSignal ?? undefined;\n return callerSignal ? AbortSignal.any([callerSignal, timeoutSignal]) : timeoutSignal;\n}\n"],
|
|
5
|
-
"mappings": ";AAAA,IAAM,yBAAyB;AAC/B,IAAM,6BAA6B,IAAI,OAAO;AACvC,IAAM,0BAA0B,EAAE,WAAW,KAAK,KAAK,KAAM,kBAAkB,KAAK,OAAO,KAAI;AAOhG,IAAO,kBAAP,cAA+B,MAAK;EAGnB;EAA4B;EAFxC,OAAO;EAEhB,YAAqB,WAA4B,YAAkB;AACjE,UAAM,+BAA+B,SAAS,OAAO,UAAU,EAAE;AAD9C,SAAA,YAAA;AAA4B,SAAA,aAAA;AAE/C,SAAK,OAAO;EACd;;AAGI,IAAO,2BAAP,cAAwC,MAAK;EAG5B;EAA+B;EAF3C,OAAO;EAEhB,YAAqB,cAA+B,YAAkB;AACpE,UAAM,yBAAyB,YAAY,WAAW,UAAU,EAAE;AAD/C,SAAA,eAAA;AAA+B,SAAA,aAAA;AAElD,SAAK,OAAO;EACd;;AAGI,IAAO,mBAAP,cAAgC,MAAK;EAI9B;EAGA;EANF;EAET,YACW,QACT,WACA,OACS,aAA4B,MAAI;AAEzC,UAAM,SAAS,cAAc;AAC7B,UAAM,GAAG,KAAK,YAAY,MAAM,GAAG,SAAS,IAAI,MAAM,KAAK,EAAE,EAAE;AANtD,SAAA,SAAA;AAGA,SAAA,aAAA;AAIT,SAAK,OAAO;AACZ,SAAK,OAAO,aAAa;EAC3B;;AAGF,eAAsB,SACpB,SACA,OACA,aACA,UAA2B,CAAA,GAAE;AAE7B,QAAM,EAAE,YAAY,wBAAwB,mBAAmB,4BAA4B,GAAG,KAAI,IAAK;AACvG,QAAM,aAAa,GAAG,OAAO,GAAG,WAAW;AAC3C,QAAM,UAAU,IAAI,QAAQ,KAAK,OAAO;AACxC,UAAQ,IAAI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