openpond-sdk 0.2.3 → 0.2.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"taskset-package-contracts.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,2EAA2E;AAC3E,eAAO,MAAM,yBAAyB,QAAmB,CAAC;AAC1D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;kBAG1B,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAmG,CAAC;AACrI,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,8EAA8E;AAC9E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAEhE;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,GAAG,UAAU,CAOpG;AAED;iFACiF;AACjF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CA0DrE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,GAAG,cAAc,CAIvG"}
@@ -0,0 +1,572 @@
1
+ import { z } from "zod";
2
+ import type { TasksetRelease } from "@openpond/evals/tasksets";
3
+ /** Review snapshots travel with their exact batch; importing them is not a
4
+ * new local admission or permission to train. */
5
+ export declare const TasksetPackageLearningResourcesSchema: z.ZodObject<{
6
+ batch: z.ZodObject<{
7
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
8
+ id: z.ZodString;
9
+ revision: z.ZodLiteral<1>;
10
+ taskDefinition: z.ZodObject<{
11
+ id: z.ZodString;
12
+ contentHash: z.ZodString;
13
+ revision: z.ZodNumber;
14
+ }, z.core.$strict>;
15
+ rewardBinding: z.ZodObject<{
16
+ id: z.ZodString;
17
+ contentHash: z.ZodString;
18
+ revision: z.ZodNumber;
19
+ }, z.core.$strict>;
20
+ purpose: z.ZodEnum<{
21
+ evaluation: "evaluation";
22
+ supervised_training: "supervised_training";
23
+ reward_training: "reward_training";
24
+ }>;
25
+ examples: z.ZodArray<z.ZodObject<{
26
+ evidence: z.ZodObject<{
27
+ id: z.ZodString;
28
+ contentHash: z.ZodString;
29
+ revision: z.ZodNumber;
30
+ }, z.core.$strict>;
31
+ decision: z.ZodObject<{
32
+ id: z.ZodString;
33
+ contentHash: z.ZodString;
34
+ revision: z.ZodNumber;
35
+ }, z.core.$strict>;
36
+ familyKey: z.ZodString;
37
+ inputHash: z.ZodString;
38
+ split: z.ZodEnum<{
39
+ train: "train";
40
+ validation: "validation";
41
+ test: "test";
42
+ frozen_eval: "frozen_eval";
43
+ }>;
44
+ }, z.core.$strict>>;
45
+ sealedAt: z.ZodString;
46
+ sealedBy: z.ZodString;
47
+ contentHash: z.ZodString;
48
+ }, z.core.$strict>;
49
+ evidence: z.ZodArray<z.ZodObject<{
50
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
51
+ id: z.ZodString;
52
+ revision: z.ZodNumber;
53
+ source: z.ZodObject<{
54
+ id: z.ZodString;
55
+ contentHash: z.ZodString;
56
+ revision: z.ZodNumber;
57
+ }, z.core.$strict>;
58
+ submission: z.ZodObject<{
59
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
60
+ sourceId: z.ZodString;
61
+ idempotencyKey: z.ZodString;
62
+ taskDefinition: z.ZodObject<{
63
+ id: z.ZodString;
64
+ contentHash: z.ZodString;
65
+ revision: z.ZodNumber;
66
+ }, z.core.$strict>;
67
+ exampleId: z.ZodString;
68
+ attemptId: z.ZodString;
69
+ occurredAt: z.ZodString;
70
+ familyKey: z.ZodNullable<z.ZodString>;
71
+ split: z.ZodEnum<{
72
+ train: "train";
73
+ validation: "validation";
74
+ test: "test";
75
+ frozen_eval: "frozen_eval";
76
+ }>;
77
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
78
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
79
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
80
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
81
+ assets: z.ZodArray<z.ZodObject<{
82
+ id: z.ZodString;
83
+ path: z.ZodString;
84
+ contentHash: z.ZodString;
85
+ sizeBytes: z.ZodNumber;
86
+ mediaType: z.ZodString;
87
+ visibility: z.ZodEnum<{
88
+ policy: "policy";
89
+ verifier: "verifier";
90
+ host_private: "host_private";
91
+ }>;
92
+ }, z.core.$strict>>;
93
+ provenance: z.ZodObject<{
94
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
95
+ mappingHash: z.ZodNullable<z.ZodString>;
96
+ }, z.core.$strict>;
97
+ }, z.core.$strict>;
98
+ supersedes: z.ZodNullable<z.ZodObject<{
99
+ id: z.ZodString;
100
+ contentHash: z.ZodString;
101
+ revision: z.ZodNumber;
102
+ }, z.core.$strict>>;
103
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
104
+ receivedAt: z.ZodString;
105
+ contentHash: z.ZodString;
106
+ }, z.core.$strict>>;
107
+ decisions: z.ZodArray<z.ZodObject<{
108
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
109
+ id: z.ZodString;
110
+ revision: z.ZodNumber;
111
+ evidence: z.ZodObject<{
112
+ id: z.ZodString;
113
+ contentHash: z.ZodString;
114
+ revision: z.ZodNumber;
115
+ }, z.core.$strict>;
116
+ supersedes: z.ZodNullable<z.ZodObject<{
117
+ id: z.ZodString;
118
+ contentHash: z.ZodString;
119
+ revision: z.ZodNumber;
120
+ }, z.core.$strict>>;
121
+ actor: z.ZodObject<{
122
+ kind: z.ZodEnum<{
123
+ human: "human";
124
+ qualified_policy: "qualified_policy";
125
+ }>;
126
+ id: z.ZodString;
127
+ policy: z.ZodNullable<z.ZodObject<{
128
+ id: z.ZodString;
129
+ contentHash: z.ZodString;
130
+ revision: z.ZodNumber;
131
+ }, z.core.$strict>>;
132
+ }, z.core.$strict>;
133
+ evidenceValidity: z.ZodEnum<{
134
+ pending: "pending";
135
+ valid: "valid";
136
+ invalid: "invalid";
137
+ }>;
138
+ taskAdmissibility: z.ZodEnum<{
139
+ pending: "pending";
140
+ rejected: "rejected";
141
+ approved: "approved";
142
+ }>;
143
+ observedQuality: z.ZodEnum<{
144
+ passed: "passed";
145
+ failed: "failed";
146
+ unavailable: "unavailable";
147
+ unscored: "unscored";
148
+ }>;
149
+ targetApproval: z.ZodEnum<{
150
+ pending: "pending";
151
+ rejected: "rejected";
152
+ approved: "approved";
153
+ not_required: "not_required";
154
+ }>;
155
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
156
+ grade: z.ZodNullable<z.ZodObject<{
157
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
158
+ binding: z.ZodObject<{
159
+ id: z.ZodString;
160
+ contentHash: z.ZodString;
161
+ revision: z.ZodNumber;
162
+ }, z.core.$strict>;
163
+ taskHash: z.ZodString;
164
+ outputHash: z.ZodString;
165
+ results: z.ZodArray<z.ZodObject<{
166
+ graderId: z.ZodString;
167
+ reward: z.ZodObject<{
168
+ id: z.ZodString;
169
+ contentHash: z.ZodString;
170
+ revision: z.ZodNumber;
171
+ }, z.core.$strict>;
172
+ role: z.ZodEnum<{
173
+ evaluation: "evaluation";
174
+ training: "training";
175
+ }>;
176
+ status: z.ZodEnum<{
177
+ pending: "pending";
178
+ failed: "failed";
179
+ scored: "scored";
180
+ unavailable: "unavailable";
181
+ }>;
182
+ rawScore: z.ZodNullable<z.ZodNumber>;
183
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
184
+ passed: z.ZodNullable<z.ZodBoolean>;
185
+ evidenceHashes: z.ZodArray<z.ZodString>;
186
+ message: z.ZodNullable<z.ZodString>;
187
+ }, z.core.$strict>>;
188
+ training: z.ZodObject<{
189
+ status: z.ZodEnum<{
190
+ scored: "scored";
191
+ unscorable: "unscorable";
192
+ not_configured: "not_configured";
193
+ }>;
194
+ score: z.ZodNullable<z.ZodNumber>;
195
+ passed: z.ZodNullable<z.ZodBoolean>;
196
+ }, z.core.$strict>;
197
+ evaluation: z.ZodObject<{
198
+ status: z.ZodEnum<{
199
+ scored: "scored";
200
+ unscorable: "unscorable";
201
+ not_configured: "not_configured";
202
+ }>;
203
+ score: z.ZodNullable<z.ZodNumber>;
204
+ passed: z.ZodNullable<z.ZodBoolean>;
205
+ }, z.core.$strict>;
206
+ contentHash: z.ZodString;
207
+ }, z.core.$strict>>;
208
+ targetGrade: z.ZodNullable<z.ZodObject<{
209
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
210
+ binding: z.ZodObject<{
211
+ id: z.ZodString;
212
+ contentHash: z.ZodString;
213
+ revision: z.ZodNumber;
214
+ }, z.core.$strict>;
215
+ taskHash: z.ZodString;
216
+ outputHash: z.ZodString;
217
+ results: z.ZodArray<z.ZodObject<{
218
+ graderId: z.ZodString;
219
+ reward: z.ZodObject<{
220
+ id: z.ZodString;
221
+ contentHash: z.ZodString;
222
+ revision: z.ZodNumber;
223
+ }, z.core.$strict>;
224
+ role: z.ZodEnum<{
225
+ evaluation: "evaluation";
226
+ training: "training";
227
+ }>;
228
+ status: z.ZodEnum<{
229
+ pending: "pending";
230
+ failed: "failed";
231
+ scored: "scored";
232
+ unavailable: "unavailable";
233
+ }>;
234
+ rawScore: z.ZodNullable<z.ZodNumber>;
235
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
236
+ passed: z.ZodNullable<z.ZodBoolean>;
237
+ evidenceHashes: z.ZodArray<z.ZodString>;
238
+ message: z.ZodNullable<z.ZodString>;
239
+ }, z.core.$strict>>;
240
+ training: z.ZodObject<{
241
+ status: z.ZodEnum<{
242
+ scored: "scored";
243
+ unscorable: "unscorable";
244
+ not_configured: "not_configured";
245
+ }>;
246
+ score: z.ZodNullable<z.ZodNumber>;
247
+ passed: z.ZodNullable<z.ZodBoolean>;
248
+ }, z.core.$strict>;
249
+ evaluation: z.ZodObject<{
250
+ status: z.ZodEnum<{
251
+ scored: "scored";
252
+ unscorable: "unscorable";
253
+ not_configured: "not_configured";
254
+ }>;
255
+ score: z.ZodNullable<z.ZodNumber>;
256
+ passed: z.ZodNullable<z.ZodBoolean>;
257
+ }, z.core.$strict>;
258
+ contentHash: z.ZodString;
259
+ }, z.core.$strict>>;
260
+ note: z.ZodString;
261
+ decidedAt: z.ZodString;
262
+ contentHash: z.ZodString;
263
+ }, z.core.$strict>>;
264
+ sources: z.ZodArray<z.ZodObject<{
265
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
266
+ id: z.ZodString;
267
+ revision: z.ZodNumber;
268
+ name: z.ZodString;
269
+ kind: z.ZodEnum<{
270
+ work: "work";
271
+ provider: "provider";
272
+ direct: "direct";
273
+ benchmark: "benchmark";
274
+ opentelemetry: "opentelemetry";
275
+ }>;
276
+ taskDefinition: z.ZodObject<{
277
+ id: z.ZodString;
278
+ contentHash: z.ZodString;
279
+ revision: z.ZodNumber;
280
+ }, z.core.$strict>;
281
+ enabled: z.ZodBoolean;
282
+ allowedSplits: z.ZodArray<z.ZodEnum<{
283
+ train: "train";
284
+ validation: "validation";
285
+ test: "test";
286
+ frozen_eval: "frozen_eval";
287
+ }>>;
288
+ mapping: z.ZodNullable<z.ZodObject<{
289
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
290
+ exampleId: z.ZodString;
291
+ attemptId: z.ZodString;
292
+ occurredAt: z.ZodString;
293
+ input: z.ZodString;
294
+ observedOutput: z.ZodNullable<z.ZodString>;
295
+ expected: z.ZodNullable<z.ZodString>;
296
+ evaluatorContext: z.ZodNullable<z.ZodString>;
297
+ familyKey: z.ZodString;
298
+ split: z.ZodEnum<{
299
+ train: "train";
300
+ validation: "validation";
301
+ test: "test";
302
+ frozen_eval: "frozen_eval";
303
+ }>;
304
+ }, z.core.$strict>>;
305
+ adapterVersion: z.ZodNullable<z.ZodString>;
306
+ contentHash: z.ZodString;
307
+ }, z.core.$strict>>;
308
+ assets: z.ZodArray<z.ZodObject<{
309
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
310
+ id: z.ZodString;
311
+ revision: z.ZodLiteral<1>;
312
+ asset: z.ZodObject<{
313
+ id: z.ZodString;
314
+ path: z.ZodString;
315
+ contentHash: z.ZodString;
316
+ sizeBytes: z.ZodNumber;
317
+ mediaType: z.ZodString;
318
+ visibility: z.ZodEnum<{
319
+ policy: "policy";
320
+ verifier: "verifier";
321
+ host_private: "host_private";
322
+ }>;
323
+ }, z.core.$strict>;
324
+ text: z.ZodString;
325
+ contentHash: z.ZodString;
326
+ }, z.core.$strict>>;
327
+ }, z.core.$strict>;
328
+ export type TasksetPackageLearningResources = z.infer<typeof TasksetPackageLearningResourcesSchema>;
329
+ export declare function learningPackageContextFiles(resources: TasksetPackageLearningResources): {
330
+ asset: {
331
+ id: string;
332
+ path: string;
333
+ contentHash: string;
334
+ sizeBytes: number;
335
+ mediaType: string;
336
+ visibility: "host_private";
337
+ };
338
+ base64: string;
339
+ }[];
340
+ export declare function validateTasksetLearningResources(taskset: TasksetRelease, input: unknown): {
341
+ batch: {
342
+ schemaVersion: "openpond.taskBatch.v1";
343
+ id: string;
344
+ revision: 1;
345
+ taskDefinition: {
346
+ id: string;
347
+ contentHash: string;
348
+ revision: number;
349
+ };
350
+ rewardBinding: {
351
+ id: string;
352
+ contentHash: string;
353
+ revision: number;
354
+ };
355
+ purpose: "evaluation" | "supervised_training" | "reward_training";
356
+ examples: {
357
+ evidence: {
358
+ id: string;
359
+ contentHash: string;
360
+ revision: number;
361
+ };
362
+ decision: {
363
+ id: string;
364
+ contentHash: string;
365
+ revision: number;
366
+ };
367
+ familyKey: string;
368
+ inputHash: string;
369
+ split: "train" | "validation" | "test" | "frozen_eval";
370
+ }[];
371
+ sealedAt: string;
372
+ sealedBy: string;
373
+ contentHash: string;
374
+ };
375
+ evidence: {
376
+ schemaVersion: "openpond.taskEvidence.v1";
377
+ id: string;
378
+ revision: number;
379
+ source: {
380
+ id: string;
381
+ contentHash: string;
382
+ revision: number;
383
+ };
384
+ submission: {
385
+ schemaVersion: "openpond.taskExample.v1";
386
+ sourceId: string;
387
+ idempotencyKey: string;
388
+ taskDefinition: {
389
+ id: string;
390
+ contentHash: string;
391
+ revision: number;
392
+ };
393
+ exampleId: string;
394
+ attemptId: string;
395
+ occurredAt: string;
396
+ familyKey: string | null;
397
+ split: "train" | "validation" | "test" | "frozen_eval";
398
+ input: Record<string, z.core.util.JSONType>;
399
+ observedOutput: Record<string, z.core.util.JSONType> | null;
400
+ expected: Record<string, z.core.util.JSONType> | null;
401
+ evaluatorContext: Record<string, z.core.util.JSONType> | null;
402
+ assets: {
403
+ id: string;
404
+ path: string;
405
+ contentHash: string;
406
+ sizeBytes: number;
407
+ mediaType: string;
408
+ visibility: "policy" | "verifier" | "host_private";
409
+ }[];
410
+ provenance: {
411
+ sourceRecordRef: string | null;
412
+ mappingHash: string | null;
413
+ };
414
+ };
415
+ supersedes: {
416
+ id: string;
417
+ contentHash: string;
418
+ revision: number;
419
+ } | null;
420
+ correctionFeedbackId: string | null;
421
+ receivedAt: string;
422
+ contentHash: string;
423
+ }[];
424
+ decisions: {
425
+ schemaVersion: "openpond.taskAdmissionDecision.v1";
426
+ id: string;
427
+ revision: number;
428
+ evidence: {
429
+ id: string;
430
+ contentHash: string;
431
+ revision: number;
432
+ };
433
+ supersedes: {
434
+ id: string;
435
+ contentHash: string;
436
+ revision: number;
437
+ } | null;
438
+ actor: {
439
+ kind: "human" | "qualified_policy";
440
+ id: string;
441
+ policy: {
442
+ id: string;
443
+ contentHash: string;
444
+ revision: number;
445
+ } | null;
446
+ };
447
+ evidenceValidity: "pending" | "valid" | "invalid";
448
+ taskAdmissibility: "pending" | "rejected" | "approved";
449
+ observedQuality: "failed" | "passed" | "unavailable" | "unscored";
450
+ targetApproval: "pending" | "rejected" | "approved" | "not_required";
451
+ approvedTarget: Record<string, z.core.util.JSONType> | null;
452
+ grade: {
453
+ schemaVersion: "openpond.rewardComposition.v1";
454
+ binding: {
455
+ id: string;
456
+ contentHash: string;
457
+ revision: number;
458
+ };
459
+ taskHash: string;
460
+ outputHash: string;
461
+ results: {
462
+ graderId: string;
463
+ reward: {
464
+ id: string;
465
+ contentHash: string;
466
+ revision: number;
467
+ };
468
+ role: "evaluation" | "training";
469
+ status: "failed" | "pending" | "unavailable" | "scored";
470
+ rawScore: number | null;
471
+ normalizedScore: number | null;
472
+ passed: boolean | null;
473
+ evidenceHashes: string[];
474
+ message: string | null;
475
+ }[];
476
+ training: {
477
+ status: "unscorable" | "scored" | "not_configured";
478
+ score: number | null;
479
+ passed: boolean | null;
480
+ };
481
+ evaluation: {
482
+ status: "unscorable" | "scored" | "not_configured";
483
+ score: number | null;
484
+ passed: boolean | null;
485
+ };
486
+ contentHash: string;
487
+ } | null;
488
+ targetGrade: {
489
+ schemaVersion: "openpond.rewardComposition.v1";
490
+ binding: {
491
+ id: string;
492
+ contentHash: string;
493
+ revision: number;
494
+ };
495
+ taskHash: string;
496
+ outputHash: string;
497
+ results: {
498
+ graderId: string;
499
+ reward: {
500
+ id: string;
501
+ contentHash: string;
502
+ revision: number;
503
+ };
504
+ role: "evaluation" | "training";
505
+ status: "failed" | "pending" | "unavailable" | "scored";
506
+ rawScore: number | null;
507
+ normalizedScore: number | null;
508
+ passed: boolean | null;
509
+ evidenceHashes: string[];
510
+ message: string | null;
511
+ }[];
512
+ training: {
513
+ status: "unscorable" | "scored" | "not_configured";
514
+ score: number | null;
515
+ passed: boolean | null;
516
+ };
517
+ evaluation: {
518
+ status: "unscorable" | "scored" | "not_configured";
519
+ score: number | null;
520
+ passed: boolean | null;
521
+ };
522
+ contentHash: string;
523
+ } | null;
524
+ note: string;
525
+ decidedAt: string;
526
+ contentHash: string;
527
+ }[];
528
+ sources: {
529
+ schemaVersion: "openpond.learningSource.v1";
530
+ id: string;
531
+ revision: number;
532
+ name: string;
533
+ kind: "work" | "provider" | "direct" | "benchmark" | "opentelemetry";
534
+ taskDefinition: {
535
+ id: string;
536
+ contentHash: string;
537
+ revision: number;
538
+ };
539
+ enabled: boolean;
540
+ allowedSplits: ("train" | "validation" | "test" | "frozen_eval")[];
541
+ mapping: {
542
+ schemaVersion: "openpond.taskSourceMapping.v1";
543
+ exampleId: string;
544
+ attemptId: string;
545
+ occurredAt: string;
546
+ input: string;
547
+ observedOutput: string | null;
548
+ expected: string | null;
549
+ evaluatorContext: string | null;
550
+ familyKey: string;
551
+ split: "train" | "validation" | "test" | "frozen_eval";
552
+ } | null;
553
+ adapterVersion: string | null;
554
+ contentHash: string;
555
+ }[];
556
+ assets: {
557
+ schemaVersion: "openpond.learningTextAsset.v1";
558
+ id: string;
559
+ revision: 1;
560
+ asset: {
561
+ id: string;
562
+ path: string;
563
+ contentHash: string;
564
+ sizeBytes: number;
565
+ mediaType: string;
566
+ visibility: "policy" | "verifier" | "host_private";
567
+ };
568
+ text: string;
569
+ contentHash: string;
570
+ }[];
571
+ };
572
+ //# sourceMappingURL=taskset-package-learning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskset-package-learning.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-learning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D;iDACiD;AACjD,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,+BAA+B;;;;;;;;;;IAQrF;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCvF"}
@@ -1,3 +1,4 @@
1
1
  export * from "./taskset-package-contracts.js";
2
2
  export * from "./taskset-package-client.js";
3
+ export * from "./taskset-package-learning.js";
3
4
  //# sourceMappingURL=taskset-packages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"taskset-packages.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-packages.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"taskset-packages.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-packages.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond-sdk",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Server-side TypeScript SDK for OpenPond sandboxes and agentic work",
5
5
  "license": "MIT",
6
6
  "type": "module",