@openpond/harness 0.1.0 → 0.2.1
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/CONTRACT.md +17 -7
- package/README.md +22 -3
- package/RELEASING.md +3 -6
- package/dist/evaluation-review.js +563 -0
- package/dist/harness-workspaces.js +1 -0
- package/dist/index.js +4 -0
- package/dist/refiner-detection.js +487 -0
- package/dist/refiner-support.js +105 -0
- package/dist/refiner.js +354 -0
- package/dist/types/evaluation-review.d.ts +583 -0
- package/dist/types/evaluation-review.d.ts.map +1 -0
- package/dist/types/harness-improvements.d.ts +18 -18
- package/dist/types/harness-workspaces.d.ts +26 -25
- package/dist/types/harness-workspaces.d.ts.map +1 -1
- package/dist/types/harness.d.ts +2 -2
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/refiner-detection.d.ts +37 -0
- package/dist/types/refiner-detection.d.ts.map +1 -0
- package/dist/types/refiner-support.d.ts +33 -0
- package/dist/types/refiner-support.d.ts.map +1 -0
- package/dist/types/refiner.d.ts +220 -0
- package/dist/types/refiner.d.ts.map +1 -0
- package/package.json +17 -1
|
@@ -21,8 +21,8 @@ export declare const ImprovementEventRefSchema: z.ZodObject<{
|
|
|
21
21
|
contentHash: z.ZodString;
|
|
22
22
|
}, z.core.$strict>;
|
|
23
23
|
export declare const ImprovementObservationKindSchema: z.ZodEnum<{
|
|
24
|
-
recovery: "recovery";
|
|
25
24
|
validation: "validation";
|
|
25
|
+
recovery: "recovery";
|
|
26
26
|
user_turn: "user_turn";
|
|
27
27
|
tool_failure: "tool_failure";
|
|
28
28
|
retry: "retry";
|
|
@@ -58,8 +58,8 @@ export declare const ImprovementObservationContentSchema: z.ZodObject<{
|
|
|
58
58
|
contentHash: z.ZodString;
|
|
59
59
|
}, z.core.$strict>>;
|
|
60
60
|
kind: z.ZodEnum<{
|
|
61
|
-
recovery: "recovery";
|
|
62
61
|
validation: "validation";
|
|
62
|
+
recovery: "recovery";
|
|
63
63
|
user_turn: "user_turn";
|
|
64
64
|
tool_failure: "tool_failure";
|
|
65
65
|
retry: "retry";
|
|
@@ -100,8 +100,8 @@ export declare const ImprovementObservationSchema: z.ZodObject<{
|
|
|
100
100
|
contentHash: z.ZodString;
|
|
101
101
|
}, z.core.$strict>>;
|
|
102
102
|
kind: z.ZodEnum<{
|
|
103
|
-
recovery: "recovery";
|
|
104
103
|
validation: "validation";
|
|
104
|
+
recovery: "recovery";
|
|
105
105
|
user_turn: "user_turn";
|
|
106
106
|
tool_failure: "tool_failure";
|
|
107
107
|
retry: "retry";
|
|
@@ -162,22 +162,22 @@ export declare const RefinementTriggerDecisionContentSchema: z.ZodObject<{
|
|
|
162
162
|
}>;
|
|
163
163
|
deterministicRoute: z.ZodNullable<z.ZodEnum<{
|
|
164
164
|
runtime: "runtime";
|
|
165
|
+
product: "product";
|
|
166
|
+
taskset: "taskset";
|
|
165
167
|
memory: "memory";
|
|
166
168
|
prompt: "prompt";
|
|
167
169
|
skill: "skill";
|
|
168
170
|
agent: "agent";
|
|
169
|
-
product: "product";
|
|
170
|
-
taskset: "taskset";
|
|
171
171
|
training: "training";
|
|
172
172
|
}>>;
|
|
173
173
|
suggestedRoutes: z.ZodArray<z.ZodEnum<{
|
|
174
174
|
runtime: "runtime";
|
|
175
|
+
product: "product";
|
|
176
|
+
taskset: "taskset";
|
|
175
177
|
memory: "memory";
|
|
176
178
|
prompt: "prompt";
|
|
177
179
|
skill: "skill";
|
|
178
180
|
agent: "agent";
|
|
179
|
-
product: "product";
|
|
180
|
-
taskset: "taskset";
|
|
181
181
|
training: "training";
|
|
182
182
|
}>>;
|
|
183
183
|
reason: z.ZodString;
|
|
@@ -232,22 +232,22 @@ export declare const RefinementTriggerDecisionSchema: z.ZodObject<{
|
|
|
232
232
|
}>;
|
|
233
233
|
deterministicRoute: z.ZodNullable<z.ZodEnum<{
|
|
234
234
|
runtime: "runtime";
|
|
235
|
+
product: "product";
|
|
236
|
+
taskset: "taskset";
|
|
235
237
|
memory: "memory";
|
|
236
238
|
prompt: "prompt";
|
|
237
239
|
skill: "skill";
|
|
238
240
|
agent: "agent";
|
|
239
|
-
product: "product";
|
|
240
|
-
taskset: "taskset";
|
|
241
241
|
training: "training";
|
|
242
242
|
}>>;
|
|
243
243
|
suggestedRoutes: z.ZodArray<z.ZodEnum<{
|
|
244
244
|
runtime: "runtime";
|
|
245
|
+
product: "product";
|
|
246
|
+
taskset: "taskset";
|
|
245
247
|
memory: "memory";
|
|
246
248
|
prompt: "prompt";
|
|
247
249
|
skill: "skill";
|
|
248
250
|
agent: "agent";
|
|
249
|
-
product: "product";
|
|
250
|
-
taskset: "taskset";
|
|
251
251
|
training: "training";
|
|
252
252
|
}>>;
|
|
253
253
|
reason: z.ZodString;
|
|
@@ -280,10 +280,10 @@ export declare const RefinementTriggerDecisionSchema: z.ZodObject<{
|
|
|
280
280
|
}, z.core.$strict>;
|
|
281
281
|
export declare const ImprovementRouteAuthoritySchema: z.ZodEnum<{
|
|
282
282
|
runtime_service: "runtime_service";
|
|
283
|
-
refiner_model: "refiner_model";
|
|
284
283
|
human_review: "human_review";
|
|
285
284
|
evaluation_system: "evaluation_system";
|
|
286
285
|
training_system: "training_system";
|
|
286
|
+
refiner_model: "refiner_model";
|
|
287
287
|
}>;
|
|
288
288
|
export declare const ImprovementRouteDecisionContentSchema: z.ZodObject<{
|
|
289
289
|
schemaVersion: z.ZodLiteral<"openpond.improvementRouteDecision.v1">;
|
|
@@ -294,20 +294,20 @@ export declare const ImprovementRouteDecisionContentSchema: z.ZodObject<{
|
|
|
294
294
|
}, z.core.$strict>;
|
|
295
295
|
route: z.ZodEnum<{
|
|
296
296
|
runtime: "runtime";
|
|
297
|
+
product: "product";
|
|
298
|
+
taskset: "taskset";
|
|
297
299
|
memory: "memory";
|
|
298
300
|
prompt: "prompt";
|
|
299
301
|
skill: "skill";
|
|
300
302
|
agent: "agent";
|
|
301
|
-
product: "product";
|
|
302
|
-
taskset: "taskset";
|
|
303
303
|
training: "training";
|
|
304
304
|
}>;
|
|
305
305
|
authority: z.ZodEnum<{
|
|
306
306
|
runtime_service: "runtime_service";
|
|
307
|
-
refiner_model: "refiner_model";
|
|
308
307
|
human_review: "human_review";
|
|
309
308
|
evaluation_system: "evaluation_system";
|
|
310
309
|
training_system: "training_system";
|
|
310
|
+
refiner_model: "refiner_model";
|
|
311
311
|
}>;
|
|
312
312
|
automatic: z.ZodBoolean;
|
|
313
313
|
reason: z.ZodString;
|
|
@@ -323,20 +323,20 @@ export declare const ImprovementRouteDecisionSchema: z.ZodObject<{
|
|
|
323
323
|
}, z.core.$strict>;
|
|
324
324
|
route: z.ZodEnum<{
|
|
325
325
|
runtime: "runtime";
|
|
326
|
+
product: "product";
|
|
327
|
+
taskset: "taskset";
|
|
326
328
|
memory: "memory";
|
|
327
329
|
prompt: "prompt";
|
|
328
330
|
skill: "skill";
|
|
329
331
|
agent: "agent";
|
|
330
|
-
product: "product";
|
|
331
|
-
taskset: "taskset";
|
|
332
332
|
training: "training";
|
|
333
333
|
}>;
|
|
334
334
|
authority: z.ZodEnum<{
|
|
335
335
|
runtime_service: "runtime_service";
|
|
336
|
-
refiner_model: "refiner_model";
|
|
337
336
|
human_review: "human_review";
|
|
338
337
|
evaluation_system: "evaluation_system";
|
|
339
338
|
training_system: "training_system";
|
|
339
|
+
refiner_model: "refiner_model";
|
|
340
340
|
}>;
|
|
341
341
|
automatic: z.ZodBoolean;
|
|
342
342
|
reason: z.ZodString;
|
|
@@ -50,12 +50,12 @@ export declare const HarnessWorkspaceSchema: z.ZodObject<{
|
|
|
50
50
|
}, z.core.$strict>;
|
|
51
51
|
export declare const HarnessImprovementRouteSchema: z.ZodEnum<{
|
|
52
52
|
runtime: "runtime";
|
|
53
|
+
product: "product";
|
|
54
|
+
taskset: "taskset";
|
|
53
55
|
memory: "memory";
|
|
54
56
|
prompt: "prompt";
|
|
55
57
|
skill: "skill";
|
|
56
58
|
agent: "agent";
|
|
57
|
-
product: "product";
|
|
58
|
-
taskset: "taskset";
|
|
59
59
|
training: "training";
|
|
60
60
|
}>;
|
|
61
61
|
export declare const HarnessChangeEffectSchema: z.ZodEnum<{
|
|
@@ -77,12 +77,12 @@ export declare const HarnessOverlayEditSchema: z.ZodObject<{
|
|
|
77
77
|
id: z.ZodString;
|
|
78
78
|
route: z.ZodEnum<{
|
|
79
79
|
runtime: "runtime";
|
|
80
|
+
product: "product";
|
|
81
|
+
taskset: "taskset";
|
|
80
82
|
memory: "memory";
|
|
81
83
|
prompt: "prompt";
|
|
82
84
|
skill: "skill";
|
|
83
85
|
agent: "agent";
|
|
84
|
-
product: "product";
|
|
85
|
-
taskset: "taskset";
|
|
86
86
|
training: "training";
|
|
87
87
|
}>;
|
|
88
88
|
operation: z.ZodEnum<{
|
|
@@ -132,6 +132,7 @@ export declare const HarnessTurnSnapshotSchema: z.ZodObject<{
|
|
|
132
132
|
id: z.ZodString;
|
|
133
133
|
contentHash: z.ZodString;
|
|
134
134
|
}, z.core.$strict>;
|
|
135
|
+
toolCatalogHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
136
|
overlay: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
136
137
|
id: z.ZodString;
|
|
137
138
|
revision: z.ZodNumber;
|
|
@@ -162,12 +163,12 @@ export declare const HarnessRunOverlayContentSchema: z.ZodObject<{
|
|
|
162
163
|
id: z.ZodString;
|
|
163
164
|
route: z.ZodEnum<{
|
|
164
165
|
runtime: "runtime";
|
|
166
|
+
product: "product";
|
|
167
|
+
taskset: "taskset";
|
|
165
168
|
memory: "memory";
|
|
166
169
|
prompt: "prompt";
|
|
167
170
|
skill: "skill";
|
|
168
171
|
agent: "agent";
|
|
169
|
-
product: "product";
|
|
170
|
-
taskset: "taskset";
|
|
171
172
|
training: "training";
|
|
172
173
|
}>;
|
|
173
174
|
operation: z.ZodEnum<{
|
|
@@ -223,12 +224,12 @@ export declare const HarnessRunOverlaySchema: z.ZodObject<{
|
|
|
223
224
|
id: z.ZodString;
|
|
224
225
|
route: z.ZodEnum<{
|
|
225
226
|
runtime: "runtime";
|
|
227
|
+
product: "product";
|
|
228
|
+
taskset: "taskset";
|
|
226
229
|
memory: "memory";
|
|
227
230
|
prompt: "prompt";
|
|
228
231
|
skill: "skill";
|
|
229
232
|
agent: "agent";
|
|
230
|
-
product: "product";
|
|
231
|
-
taskset: "taskset";
|
|
232
233
|
training: "training";
|
|
233
234
|
}>;
|
|
234
235
|
operation: z.ZodEnum<{
|
|
@@ -263,9 +264,9 @@ export declare const HarnessRunOverlaySchema: z.ZodObject<{
|
|
|
263
264
|
}, z.core.$strict>;
|
|
264
265
|
export declare const HarnessProposalEvidenceRefSchema: z.ZodObject<{
|
|
265
266
|
kind: z.ZodEnum<{
|
|
267
|
+
validation: "validation";
|
|
266
268
|
tool_event: "tool_event";
|
|
267
269
|
recovery: "recovery";
|
|
268
|
-
validation: "validation";
|
|
269
270
|
user_turn: "user_turn";
|
|
270
271
|
work_output: "work_output";
|
|
271
272
|
work_receipt: "work_receipt";
|
|
@@ -316,17 +317,17 @@ export declare const HarnessImprovementProposalContentSchema: z.ZodObject<{
|
|
|
316
317
|
}>;
|
|
317
318
|
route: z.ZodEnum<{
|
|
318
319
|
runtime: "runtime";
|
|
320
|
+
product: "product";
|
|
321
|
+
taskset: "taskset";
|
|
319
322
|
memory: "memory";
|
|
320
323
|
prompt: "prompt";
|
|
321
324
|
skill: "skill";
|
|
322
325
|
agent: "agent";
|
|
323
|
-
product: "product";
|
|
324
|
-
taskset: "taskset";
|
|
325
326
|
training: "training";
|
|
326
327
|
}>;
|
|
327
328
|
risk: z.ZodEnum<{
|
|
328
|
-
low: "low";
|
|
329
329
|
review: "review";
|
|
330
|
+
low: "low";
|
|
330
331
|
restricted: "restricted";
|
|
331
332
|
}>;
|
|
332
333
|
effects: z.ZodArray<z.ZodEnum<{
|
|
@@ -346,9 +347,9 @@ export declare const HarnessImprovementProposalContentSchema: z.ZodObject<{
|
|
|
346
347
|
}>>;
|
|
347
348
|
evidence: z.ZodArray<z.ZodObject<{
|
|
348
349
|
kind: z.ZodEnum<{
|
|
350
|
+
validation: "validation";
|
|
349
351
|
tool_event: "tool_event";
|
|
350
352
|
recovery: "recovery";
|
|
351
|
-
validation: "validation";
|
|
352
353
|
user_turn: "user_turn";
|
|
353
354
|
work_output: "work_output";
|
|
354
355
|
work_receipt: "work_receipt";
|
|
@@ -360,12 +361,12 @@ export declare const HarnessImprovementProposalContentSchema: z.ZodObject<{
|
|
|
360
361
|
id: z.ZodString;
|
|
361
362
|
route: z.ZodEnum<{
|
|
362
363
|
runtime: "runtime";
|
|
364
|
+
product: "product";
|
|
365
|
+
taskset: "taskset";
|
|
363
366
|
memory: "memory";
|
|
364
367
|
prompt: "prompt";
|
|
365
368
|
skill: "skill";
|
|
366
369
|
agent: "agent";
|
|
367
|
-
product: "product";
|
|
368
|
-
taskset: "taskset";
|
|
369
370
|
training: "training";
|
|
370
371
|
}>;
|
|
371
372
|
operation: z.ZodEnum<{
|
|
@@ -440,17 +441,17 @@ export declare const HarnessImprovementProposalSchema: z.ZodObject<{
|
|
|
440
441
|
}>;
|
|
441
442
|
route: z.ZodEnum<{
|
|
442
443
|
runtime: "runtime";
|
|
444
|
+
product: "product";
|
|
445
|
+
taskset: "taskset";
|
|
443
446
|
memory: "memory";
|
|
444
447
|
prompt: "prompt";
|
|
445
448
|
skill: "skill";
|
|
446
449
|
agent: "agent";
|
|
447
|
-
product: "product";
|
|
448
|
-
taskset: "taskset";
|
|
449
450
|
training: "training";
|
|
450
451
|
}>;
|
|
451
452
|
risk: z.ZodEnum<{
|
|
452
|
-
low: "low";
|
|
453
453
|
review: "review";
|
|
454
|
+
low: "low";
|
|
454
455
|
restricted: "restricted";
|
|
455
456
|
}>;
|
|
456
457
|
effects: z.ZodArray<z.ZodEnum<{
|
|
@@ -470,9 +471,9 @@ export declare const HarnessImprovementProposalSchema: z.ZodObject<{
|
|
|
470
471
|
}>>;
|
|
471
472
|
evidence: z.ZodArray<z.ZodObject<{
|
|
472
473
|
kind: z.ZodEnum<{
|
|
474
|
+
validation: "validation";
|
|
473
475
|
tool_event: "tool_event";
|
|
474
476
|
recovery: "recovery";
|
|
475
|
-
validation: "validation";
|
|
476
477
|
user_turn: "user_turn";
|
|
477
478
|
work_output: "work_output";
|
|
478
479
|
work_receipt: "work_receipt";
|
|
@@ -484,12 +485,12 @@ export declare const HarnessImprovementProposalSchema: z.ZodObject<{
|
|
|
484
485
|
id: z.ZodString;
|
|
485
486
|
route: z.ZodEnum<{
|
|
486
487
|
runtime: "runtime";
|
|
488
|
+
product: "product";
|
|
489
|
+
taskset: "taskset";
|
|
487
490
|
memory: "memory";
|
|
488
491
|
prompt: "prompt";
|
|
489
492
|
skill: "skill";
|
|
490
493
|
agent: "agent";
|
|
491
|
-
product: "product";
|
|
492
|
-
taskset: "taskset";
|
|
493
494
|
training: "training";
|
|
494
495
|
}>;
|
|
495
496
|
operation: z.ZodEnum<{
|
|
@@ -562,17 +563,17 @@ export declare const HarnessTargetedValidationReceiptContentSchema: z.ZodObject<
|
|
|
562
563
|
component_activation: "component_activation";
|
|
563
564
|
}>;
|
|
564
565
|
status: z.ZodEnum<{
|
|
566
|
+
blocked: "blocked";
|
|
565
567
|
passed: "passed";
|
|
566
568
|
failed: "failed";
|
|
567
|
-
blocked: "blocked";
|
|
568
569
|
skipped: "skipped";
|
|
569
570
|
}>;
|
|
570
571
|
summary: z.ZodString;
|
|
571
572
|
evidenceRefs: z.ZodArray<z.ZodObject<{
|
|
572
573
|
kind: z.ZodEnum<{
|
|
574
|
+
validation: "validation";
|
|
573
575
|
tool_event: "tool_event";
|
|
574
576
|
recovery: "recovery";
|
|
575
|
-
validation: "validation";
|
|
576
577
|
user_turn: "user_turn";
|
|
577
578
|
work_output: "work_output";
|
|
578
579
|
work_receipt: "work_receipt";
|
|
@@ -605,17 +606,17 @@ export declare const HarnessTargetedValidationReceiptSchema: z.ZodObject<{
|
|
|
605
606
|
component_activation: "component_activation";
|
|
606
607
|
}>;
|
|
607
608
|
status: z.ZodEnum<{
|
|
609
|
+
blocked: "blocked";
|
|
608
610
|
passed: "passed";
|
|
609
611
|
failed: "failed";
|
|
610
|
-
blocked: "blocked";
|
|
611
612
|
skipped: "skipped";
|
|
612
613
|
}>;
|
|
613
614
|
summary: z.ZodString;
|
|
614
615
|
evidenceRefs: z.ZodArray<z.ZodObject<{
|
|
615
616
|
kind: z.ZodEnum<{
|
|
617
|
+
validation: "validation";
|
|
616
618
|
tool_event: "tool_event";
|
|
617
619
|
recovery: "recovery";
|
|
618
|
-
validation: "validation";
|
|
619
620
|
user_turn: "user_turn";
|
|
620
621
|
work_output: "work_output";
|
|
621
622
|
work_receipt: "work_receipt";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness-workspaces.d.ts","sourceRoot":"","sources":["../../../../src/harness-workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,uBAAuB;;;;;;kBAKzB,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;kBAM7B,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAexB,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;;;;;;;;EASxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;EAcpC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuCjC,CAAC;AAEL,eAAO,MAAM,iCAAiC;;;;;kBAOnC,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;kBAMjC,CAAC;AAEZ,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"harness-workspaces.d.ts","sourceRoot":"","sources":["../../../../src/harness-workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC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elease(input: z.input<typeof HarnessReleas
|
|
|
342
342
|
export declare const HarnessLifecycleEventSchema: z.ZodObject<{
|
|
343
343
|
sequence: z.ZodNumber;
|
|
344
344
|
type: z.ZodEnum<{
|
|
345
|
+
observation: "observation";
|
|
345
346
|
terminal: "terminal";
|
|
346
347
|
reset: "reset";
|
|
347
348
|
created: "created";
|
|
348
349
|
action: "action";
|
|
349
|
-
observation: "observation";
|
|
350
350
|
failure: "failure";
|
|
351
351
|
collected: "collected";
|
|
352
352
|
destroyed: "destroyed";
|
|
@@ -365,11 +365,11 @@ export declare const HarnessTraceSchema: z.ZodObject<{
|
|
|
365
365
|
events: z.ZodArray<z.ZodObject<{
|
|
366
366
|
sequence: z.ZodNumber;
|
|
367
367
|
type: z.ZodEnum<{
|
|
368
|
+
observation: "observation";
|
|
368
369
|
terminal: "terminal";
|
|
369
370
|
reset: "reset";
|
|
370
371
|
created: "created";
|
|
371
372
|
action: "action";
|
|
372
|
-
observation: "observation";
|
|
373
373
|
failure: "failure";
|
|
374
374
|
collected: "collected";
|
|
375
375
|
destroyed: "destroyed";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export * from "./common.js";
|
|
2
|
+
export * from "./evaluation-review.js";
|
|
2
3
|
export * from "./harness.js";
|
|
3
4
|
export * from "./harness-improvements.js";
|
|
4
5
|
export * from "./harness-workspaces.js";
|
|
5
6
|
export * from "./models.js";
|
|
7
|
+
export * from "./refiner.js";
|
|
8
|
+
export * from "./refiner-detection.js";
|
|
9
|
+
export * from "./refiner-support.js";
|
|
6
10
|
export * from "./tools.js";
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ImprovementObservation, type ImprovementSafeBoundary, type RefinementTriggerDecision, type RefinementTriggerPolicy } from "./harness-improvements.js";
|
|
2
|
+
import { type ImmutableReleaseRef } from "./common.js";
|
|
3
|
+
import type { HarnessOverlaySnapshotRef } from "./harness-workspaces.js";
|
|
4
|
+
export type HarnessRefinerRuntimeEvent = {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
id: string;
|
|
7
|
+
sequence?: number;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
name: string;
|
|
10
|
+
status?: string | null;
|
|
11
|
+
action?: string | null;
|
|
12
|
+
args?: unknown;
|
|
13
|
+
data?: unknown;
|
|
14
|
+
output?: string | null;
|
|
15
|
+
error?: string | null;
|
|
16
|
+
};
|
|
17
|
+
export declare const DEFAULT_REFINEMENT_TRIGGER_POLICY: RefinementTriggerPolicy;
|
|
18
|
+
export type HarnessImprovementDetection = {
|
|
19
|
+
observations: ImprovementObservation[];
|
|
20
|
+
trigger: RefinementTriggerDecision;
|
|
21
|
+
};
|
|
22
|
+
export declare function detectHarnessImprovementAtBoundary(input: {
|
|
23
|
+
runRef: string;
|
|
24
|
+
turnId: string;
|
|
25
|
+
harnessRelease: ImmutableReleaseRef;
|
|
26
|
+
overlay: HarnessOverlaySnapshotRef | null;
|
|
27
|
+
events: readonly HarnessRefinerRuntimeEvent[];
|
|
28
|
+
boundary: ImprovementSafeBoundary;
|
|
29
|
+
policy?: RefinementTriggerPolicy;
|
|
30
|
+
pendingPlanCount?: number;
|
|
31
|
+
priorDeduplicationKeys?: ReadonlySet<string>;
|
|
32
|
+
cooldownUntil?: string | null;
|
|
33
|
+
estimatedRefinerCostUsd?: number;
|
|
34
|
+
loadedSkillNames?: readonly string[];
|
|
35
|
+
turnReviewAlreadyQueued?: boolean;
|
|
36
|
+
}): HarnessImprovementDetection;
|
|
37
|
+
//# sourceMappingURL=refiner-detection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refiner-detection.d.ts","sourceRoot":"","sources":["../../../../src/refiner-detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,MAAM,0BAA0B,GAAG;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,uBAQ/C,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,EAAE,sBAAsB,EAAE,CAAC;IACvC,OAAO,EAAE,yBAAyB,CAAC;CACpC,CAAC;AAWF,wBAAgB,kCAAkC,CAAC,KAAK,EAAE;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,mBAAmB,CAAC;IACpC,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC1C,MAAM,EAAE,SAAS,0BAA0B,EAAE,CAAC;IAC9C,QAAQ,EAAE,uBAAuB,CAAC;IAClC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,GAAG,2BAA2B,CA2J9B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ImprovementObservation, RefinementTriggerDecision } from "./harness-improvements.js";
|
|
2
|
+
import type { HarnessImprovementProposal, HarnessRunOverlay, HarnessWorkspace } from "./harness-workspaces.js";
|
|
3
|
+
export declare function memoryKeyFromTarget(target: string): string;
|
|
4
|
+
export declare function expectedMemoryRevision(proposal: HarnessImprovementProposal, target: string): {
|
|
5
|
+
revision: number | null;
|
|
6
|
+
contentHash: string | null;
|
|
7
|
+
status: "active" | "deleted" | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function boundedTriggerEvidence(trigger: RefinementTriggerDecision): Record<string, unknown>;
|
|
10
|
+
export declare function boundedObservationEvidence(observation: ImprovementObservation): Record<string, unknown>;
|
|
11
|
+
export declare function proposalEvidence(observations: ImprovementObservation[]): {
|
|
12
|
+
kind: "recovery" | "validation" | "user_turn" | "tool_event";
|
|
13
|
+
id: string;
|
|
14
|
+
contentHash: string;
|
|
15
|
+
}[];
|
|
16
|
+
export declare function uniqueEventRefs(observations: ImprovementObservation[]): {
|
|
17
|
+
id: string;
|
|
18
|
+
sequence: number | null;
|
|
19
|
+
contentHash: string;
|
|
20
|
+
}[];
|
|
21
|
+
export declare function sameOverlayRef(overlay: HarnessRunOverlay, reference: {
|
|
22
|
+
id: string;
|
|
23
|
+
revision: number;
|
|
24
|
+
contentHash: string;
|
|
25
|
+
}): boolean;
|
|
26
|
+
export declare function overlayRef(overlay: HarnessRunOverlay): {
|
|
27
|
+
id: string;
|
|
28
|
+
revision: number;
|
|
29
|
+
contentHash: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function sameWorkspaceRevision(workspace: HarnessWorkspace, overlay: HarnessRunOverlay): boolean;
|
|
32
|
+
export declare function stableId(prefix: string, value: unknown): string;
|
|
33
|
+
//# sourceMappingURL=refiner-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refiner-support.d.ts","sourceRoot":"","sources":["../../../../src/refiner-support.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAM1D;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,0BAA0B,EACpC,MAAM,EAAE,MAAM,GACb;IACD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;CACrC,CAuBA;AAED,wBAAgB,sBA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