@agent-finops/core 0.9.8 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionVerification.d.ts +70 -70
- package/dist/activitySnapshot.d.ts +53 -53
- package/dist/agentEconomicsReceipt.d.ts +53 -53
- package/dist/localAgentLogs.d.ts +13 -1
- package/dist/localAgentLogs.js +156 -26
- package/dist/projectIndexStore.d.ts +4 -4
- package/dist/qualitativeIndexCache.d.ts +4 -4
- package/package.json +1 -1
|
@@ -13,9 +13,9 @@ export declare const wasteFindingCaveatValues: readonly ["signal_not_cause", "no
|
|
|
13
13
|
export type WasteFindingCaveat = typeof wasteFindingCaveatValues[number];
|
|
14
14
|
export declare const actionVerificationEvidenceValues: readonly ["verified", "observed", "calculated", "user_declared", "modeled", "missing"];
|
|
15
15
|
export declare const actionVerificationEvidenceSchema: z.ZodEnum<{
|
|
16
|
-
verified: "verified";
|
|
17
|
-
missing: "missing";
|
|
18
16
|
observed: "observed";
|
|
17
|
+
missing: "missing";
|
|
18
|
+
verified: "verified";
|
|
19
19
|
calculated: "calculated";
|
|
20
20
|
user_declared: "user_declared";
|
|
21
21
|
modeled: "modeled";
|
|
@@ -54,11 +54,11 @@ declare const wasteFindingBodySchema: z.ZodObject<{
|
|
|
54
54
|
}>>;
|
|
55
55
|
candidateAction: z.ZodObject<{
|
|
56
56
|
kind: z.ZodEnum<{
|
|
57
|
-
start_fresh: "start_fresh";
|
|
58
57
|
inspect_scope: "inspect_scope";
|
|
59
58
|
lazy_load: "lazy_load";
|
|
60
59
|
disable: "disable";
|
|
61
60
|
remove: "remove";
|
|
61
|
+
start_fresh: "start_fresh";
|
|
62
62
|
reduce_repeated_reads: "reduce_repeated_reads";
|
|
63
63
|
trim_context: "trim_context";
|
|
64
64
|
}>;
|
|
@@ -95,9 +95,9 @@ declare const wasteFindingBodySchema: z.ZodObject<{
|
|
|
95
95
|
failed: "failed";
|
|
96
96
|
}>;
|
|
97
97
|
freshness: z.ZodEnum<{
|
|
98
|
+
not_checked: "not_checked";
|
|
98
99
|
fresh: "fresh";
|
|
99
100
|
stale: "stale";
|
|
100
|
-
not_checked: "not_checked";
|
|
101
101
|
}>;
|
|
102
102
|
}, z.core.$strict>;
|
|
103
103
|
metric: z.ZodObject<{
|
|
@@ -109,16 +109,16 @@ declare const wasteFindingBodySchema: z.ZodObject<{
|
|
|
109
109
|
configured_items: "configured_items";
|
|
110
110
|
}>;
|
|
111
111
|
unit: z.ZodEnum<{
|
|
112
|
-
items: "items";
|
|
113
112
|
tokens: "tokens";
|
|
114
113
|
events: "events";
|
|
114
|
+
items: "items";
|
|
115
115
|
ratio: "ratio";
|
|
116
116
|
}>;
|
|
117
117
|
value: z.ZodNullable<z.ZodNumber>;
|
|
118
118
|
sampleCount: z.ZodNumber;
|
|
119
119
|
evidence: z.ZodEnum<{
|
|
120
|
-
missing: "missing";
|
|
121
120
|
observed: "observed";
|
|
121
|
+
missing: "missing";
|
|
122
122
|
calculated: "calculated";
|
|
123
123
|
}>;
|
|
124
124
|
}, z.core.$strict>;
|
|
@@ -155,11 +155,11 @@ declare const wasteFindingObjectSchema: z.ZodObject<{
|
|
|
155
155
|
}>>;
|
|
156
156
|
candidateAction: z.ZodObject<{
|
|
157
157
|
kind: z.ZodEnum<{
|
|
158
|
-
start_fresh: "start_fresh";
|
|
159
158
|
inspect_scope: "inspect_scope";
|
|
160
159
|
lazy_load: "lazy_load";
|
|
161
160
|
disable: "disable";
|
|
162
161
|
remove: "remove";
|
|
162
|
+
start_fresh: "start_fresh";
|
|
163
163
|
reduce_repeated_reads: "reduce_repeated_reads";
|
|
164
164
|
trim_context: "trim_context";
|
|
165
165
|
}>;
|
|
@@ -196,9 +196,9 @@ declare const wasteFindingObjectSchema: z.ZodObject<{
|
|
|
196
196
|
failed: "failed";
|
|
197
197
|
}>;
|
|
198
198
|
freshness: z.ZodEnum<{
|
|
199
|
+
not_checked: "not_checked";
|
|
199
200
|
fresh: "fresh";
|
|
200
201
|
stale: "stale";
|
|
201
|
-
not_checked: "not_checked";
|
|
202
202
|
}>;
|
|
203
203
|
}, z.core.$strict>;
|
|
204
204
|
metric: z.ZodObject<{
|
|
@@ -210,16 +210,16 @@ declare const wasteFindingObjectSchema: z.ZodObject<{
|
|
|
210
210
|
configured_items: "configured_items";
|
|
211
211
|
}>;
|
|
212
212
|
unit: z.ZodEnum<{
|
|
213
|
-
items: "items";
|
|
214
213
|
tokens: "tokens";
|
|
215
214
|
events: "events";
|
|
215
|
+
items: "items";
|
|
216
216
|
ratio: "ratio";
|
|
217
217
|
}>;
|
|
218
218
|
value: z.ZodNullable<z.ZodNumber>;
|
|
219
219
|
sampleCount: z.ZodNumber;
|
|
220
220
|
evidence: z.ZodEnum<{
|
|
221
|
-
missing: "missing";
|
|
222
221
|
observed: "observed";
|
|
222
|
+
missing: "missing";
|
|
223
223
|
calculated: "calculated";
|
|
224
224
|
}>;
|
|
225
225
|
}, z.core.$strict>;
|
|
@@ -240,15 +240,15 @@ declare const tokenSessionSchema: z.ZodObject<{
|
|
|
240
240
|
model: z.ZodString;
|
|
241
241
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
242
242
|
sessionType: z.ZodEnum<{
|
|
243
|
-
subagent: "subagent";
|
|
244
243
|
unknown: "unknown";
|
|
244
|
+
subagent: "subagent";
|
|
245
245
|
parent: "parent";
|
|
246
246
|
}>;
|
|
247
247
|
workTypeRef: z.ZodOptional<z.ZodString>;
|
|
248
248
|
workUnitRef: z.ZodOptional<z.ZodString>;
|
|
249
249
|
workUnitEvidence: z.ZodOptional<z.ZodEnum<{
|
|
250
|
-
verified: "verified";
|
|
251
250
|
observed: "observed";
|
|
251
|
+
verified: "verified";
|
|
252
252
|
user_declared: "user_declared";
|
|
253
253
|
}>>;
|
|
254
254
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -294,9 +294,9 @@ declare const tokenSessionSchema: z.ZodObject<{
|
|
|
294
294
|
not_separately_reported: "not_separately_reported";
|
|
295
295
|
}>;
|
|
296
296
|
calculatedTotalTokens: z.ZodEnum<{
|
|
297
|
-
missing: "missing";
|
|
298
297
|
calculated_complete: "calculated_complete";
|
|
299
298
|
calculated_partial: "calculated_partial";
|
|
299
|
+
missing: "missing";
|
|
300
300
|
}>;
|
|
301
301
|
reportedTotalTokens: z.ZodEnum<{
|
|
302
302
|
provider_reported: "provider_reported";
|
|
@@ -311,9 +311,9 @@ declare const tokenSessionSchema: z.ZodObject<{
|
|
|
311
311
|
passed: "passed";
|
|
312
312
|
}>;
|
|
313
313
|
evidence: z.ZodEnum<{
|
|
314
|
-
verified: "verified";
|
|
315
|
-
missing: "missing";
|
|
316
314
|
observed: "observed";
|
|
315
|
+
missing: "missing";
|
|
316
|
+
verified: "verified";
|
|
317
317
|
user_declared: "user_declared";
|
|
318
318
|
}>;
|
|
319
319
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -352,11 +352,11 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
352
352
|
}>>;
|
|
353
353
|
candidateAction: z.ZodObject<{
|
|
354
354
|
kind: z.ZodEnum<{
|
|
355
|
-
start_fresh: "start_fresh";
|
|
356
355
|
inspect_scope: "inspect_scope";
|
|
357
356
|
lazy_load: "lazy_load";
|
|
358
357
|
disable: "disable";
|
|
359
358
|
remove: "remove";
|
|
359
|
+
start_fresh: "start_fresh";
|
|
360
360
|
reduce_repeated_reads: "reduce_repeated_reads";
|
|
361
361
|
trim_context: "trim_context";
|
|
362
362
|
}>;
|
|
@@ -393,9 +393,9 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
393
393
|
failed: "failed";
|
|
394
394
|
}>;
|
|
395
395
|
freshness: z.ZodEnum<{
|
|
396
|
+
not_checked: "not_checked";
|
|
396
397
|
fresh: "fresh";
|
|
397
398
|
stale: "stale";
|
|
398
|
-
not_checked: "not_checked";
|
|
399
399
|
}>;
|
|
400
400
|
}, z.core.$strict>;
|
|
401
401
|
metric: z.ZodObject<{
|
|
@@ -407,16 +407,16 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
407
407
|
configured_items: "configured_items";
|
|
408
408
|
}>;
|
|
409
409
|
unit: z.ZodEnum<{
|
|
410
|
-
items: "items";
|
|
411
410
|
tokens: "tokens";
|
|
412
411
|
events: "events";
|
|
412
|
+
items: "items";
|
|
413
413
|
ratio: "ratio";
|
|
414
414
|
}>;
|
|
415
415
|
value: z.ZodNullable<z.ZodNumber>;
|
|
416
416
|
sampleCount: z.ZodNumber;
|
|
417
417
|
evidence: z.ZodEnum<{
|
|
418
|
-
missing: "missing";
|
|
419
418
|
observed: "observed";
|
|
419
|
+
missing: "missing";
|
|
420
420
|
calculated: "calculated";
|
|
421
421
|
}>;
|
|
422
422
|
}, z.core.$strict>;
|
|
@@ -438,8 +438,8 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
438
438
|
}>;
|
|
439
439
|
workTypeRef: z.ZodString;
|
|
440
440
|
workTypeEvidence: z.ZodEnum<{
|
|
441
|
-
verified: "verified";
|
|
442
441
|
observed: "observed";
|
|
442
|
+
verified: "verified";
|
|
443
443
|
user_declared: "user_declared";
|
|
444
444
|
}>;
|
|
445
445
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -456,8 +456,8 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
456
456
|
qualityGuard: z.ZodObject<{
|
|
457
457
|
required: z.ZodLiteral<true>;
|
|
458
458
|
minimumEvidence: z.ZodEnum<{
|
|
459
|
-
verified: "verified";
|
|
460
459
|
observed: "observed";
|
|
460
|
+
verified: "verified";
|
|
461
461
|
user_declared: "user_declared";
|
|
462
462
|
}>;
|
|
463
463
|
rollbackOnRegression: z.ZodLiteral<true>;
|
|
@@ -471,15 +471,15 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
471
471
|
model: z.ZodString;
|
|
472
472
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
473
473
|
sessionType: z.ZodEnum<{
|
|
474
|
-
subagent: "subagent";
|
|
475
474
|
unknown: "unknown";
|
|
475
|
+
subagent: "subagent";
|
|
476
476
|
parent: "parent";
|
|
477
477
|
}>;
|
|
478
478
|
workTypeRef: z.ZodOptional<z.ZodString>;
|
|
479
479
|
workUnitRef: z.ZodOptional<z.ZodString>;
|
|
480
480
|
workUnitEvidence: z.ZodOptional<z.ZodEnum<{
|
|
481
|
-
verified: "verified";
|
|
482
481
|
observed: "observed";
|
|
482
|
+
verified: "verified";
|
|
483
483
|
user_declared: "user_declared";
|
|
484
484
|
}>>;
|
|
485
485
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -525,9 +525,9 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
525
525
|
not_separately_reported: "not_separately_reported";
|
|
526
526
|
}>;
|
|
527
527
|
calculatedTotalTokens: z.ZodEnum<{
|
|
528
|
-
missing: "missing";
|
|
529
528
|
calculated_complete: "calculated_complete";
|
|
530
529
|
calculated_partial: "calculated_partial";
|
|
530
|
+
missing: "missing";
|
|
531
531
|
}>;
|
|
532
532
|
reportedTotalTokens: z.ZodEnum<{
|
|
533
533
|
provider_reported: "provider_reported";
|
|
@@ -542,9 +542,9 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
542
542
|
passed: "passed";
|
|
543
543
|
}>;
|
|
544
544
|
evidence: z.ZodEnum<{
|
|
545
|
-
verified: "verified";
|
|
546
|
-
missing: "missing";
|
|
547
545
|
observed: "observed";
|
|
546
|
+
missing: "missing";
|
|
547
|
+
verified: "verified";
|
|
548
548
|
user_declared: "user_declared";
|
|
549
549
|
}>;
|
|
550
550
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -557,8 +557,8 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
557
557
|
explicit: "explicit";
|
|
558
558
|
}>;
|
|
559
559
|
evidence: z.ZodEnum<{
|
|
560
|
-
verified: "verified";
|
|
561
560
|
missing: "missing";
|
|
561
|
+
verified: "verified";
|
|
562
562
|
user_declared: "user_declared";
|
|
563
563
|
}>;
|
|
564
564
|
approvedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -574,9 +574,9 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
574
574
|
passed: "passed";
|
|
575
575
|
}>;
|
|
576
576
|
evidence: z.ZodEnum<{
|
|
577
|
-
verified: "verified";
|
|
578
|
-
missing: "missing";
|
|
579
577
|
observed: "observed";
|
|
578
|
+
missing: "missing";
|
|
579
|
+
verified: "verified";
|
|
580
580
|
user_declared: "user_declared";
|
|
581
581
|
}>;
|
|
582
582
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -592,15 +592,15 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
592
592
|
model: z.ZodString;
|
|
593
593
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
594
594
|
sessionType: z.ZodEnum<{
|
|
595
|
-
subagent: "subagent";
|
|
596
595
|
unknown: "unknown";
|
|
596
|
+
subagent: "subagent";
|
|
597
597
|
parent: "parent";
|
|
598
598
|
}>;
|
|
599
599
|
workTypeRef: z.ZodOptional<z.ZodString>;
|
|
600
600
|
workUnitRef: z.ZodOptional<z.ZodString>;
|
|
601
601
|
workUnitEvidence: z.ZodOptional<z.ZodEnum<{
|
|
602
|
-
verified: "verified";
|
|
603
602
|
observed: "observed";
|
|
603
|
+
verified: "verified";
|
|
604
604
|
user_declared: "user_declared";
|
|
605
605
|
}>>;
|
|
606
606
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -646,9 +646,9 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
646
646
|
not_separately_reported: "not_separately_reported";
|
|
647
647
|
}>;
|
|
648
648
|
calculatedTotalTokens: z.ZodEnum<{
|
|
649
|
-
missing: "missing";
|
|
650
649
|
calculated_complete: "calculated_complete";
|
|
651
650
|
calculated_partial: "calculated_partial";
|
|
651
|
+
missing: "missing";
|
|
652
652
|
}>;
|
|
653
653
|
reportedTotalTokens: z.ZodEnum<{
|
|
654
654
|
provider_reported: "provider_reported";
|
|
@@ -663,9 +663,9 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
663
663
|
passed: "passed";
|
|
664
664
|
}>;
|
|
665
665
|
evidence: z.ZodEnum<{
|
|
666
|
-
verified: "verified";
|
|
667
|
-
missing: "missing";
|
|
668
666
|
observed: "observed";
|
|
667
|
+
missing: "missing";
|
|
668
|
+
verified: "verified";
|
|
669
669
|
user_declared: "user_declared";
|
|
670
670
|
}>;
|
|
671
671
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -673,10 +673,10 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
673
673
|
}, z.core.$strict>>;
|
|
674
674
|
invalidation: z.ZodOptional<z.ZodObject<{
|
|
675
675
|
reason: z.ZodEnum<{
|
|
676
|
-
manual: "manual";
|
|
677
676
|
scope_changed: "scope_changed";
|
|
678
677
|
source_semantics_changed: "source_semantics_changed";
|
|
679
678
|
concurrent_change: "concurrent_change";
|
|
679
|
+
manual: "manual";
|
|
680
680
|
}>;
|
|
681
681
|
invalidatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
682
682
|
}, z.core.$strict>>;
|
|
@@ -684,11 +684,11 @@ declare const experimentBodySchema: z.ZodObject<{
|
|
|
684
684
|
export type TokenReductionExperimentV0DraftInput = z.input<typeof experimentBodySchema>;
|
|
685
685
|
declare const evaluationSchema: z.ZodObject<{
|
|
686
686
|
status: z.ZodEnum<{
|
|
687
|
+
regressed: "regressed";
|
|
687
688
|
collecting: "collecting";
|
|
688
689
|
not_evaluated: "not_evaluated";
|
|
689
690
|
measured_token_reduction: "measured_token_reduction";
|
|
690
691
|
no_measured_change: "no_measured_change";
|
|
691
|
-
regressed: "regressed";
|
|
692
692
|
inconclusive: "inconclusive";
|
|
693
693
|
}>;
|
|
694
694
|
metricEvidence: z.ZodEnum<{
|
|
@@ -696,20 +696,20 @@ declare const evaluationSchema: z.ZodObject<{
|
|
|
696
696
|
calculated: "calculated";
|
|
697
697
|
}>;
|
|
698
698
|
matchingEvidence: z.ZodEnum<{
|
|
699
|
-
verified: "verified";
|
|
700
|
-
missing: "missing";
|
|
701
699
|
observed: "observed";
|
|
700
|
+
missing: "missing";
|
|
701
|
+
verified: "verified";
|
|
702
702
|
user_declared: "user_declared";
|
|
703
703
|
}>;
|
|
704
704
|
qualityStatus: z.ZodEnum<{
|
|
705
|
-
regressed: "regressed";
|
|
706
|
-
held: "held";
|
|
707
705
|
insufficient: "insufficient";
|
|
706
|
+
held: "held";
|
|
707
|
+
regressed: "regressed";
|
|
708
708
|
}>;
|
|
709
709
|
qualityEvidence: z.ZodEnum<{
|
|
710
|
-
verified: "verified";
|
|
711
|
-
missing: "missing";
|
|
712
710
|
observed: "observed";
|
|
711
|
+
missing: "missing";
|
|
712
|
+
verified: "verified";
|
|
713
713
|
user_declared: "user_declared";
|
|
714
714
|
}>;
|
|
715
715
|
baseline: z.ZodObject<{
|
|
@@ -794,11 +794,11 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
794
794
|
}>>;
|
|
795
795
|
candidateAction: z.ZodObject<{
|
|
796
796
|
kind: z.ZodEnum<{
|
|
797
|
-
start_fresh: "start_fresh";
|
|
798
797
|
inspect_scope: "inspect_scope";
|
|
799
798
|
lazy_load: "lazy_load";
|
|
800
799
|
disable: "disable";
|
|
801
800
|
remove: "remove";
|
|
801
|
+
start_fresh: "start_fresh";
|
|
802
802
|
reduce_repeated_reads: "reduce_repeated_reads";
|
|
803
803
|
trim_context: "trim_context";
|
|
804
804
|
}>;
|
|
@@ -835,9 +835,9 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
835
835
|
failed: "failed";
|
|
836
836
|
}>;
|
|
837
837
|
freshness: z.ZodEnum<{
|
|
838
|
+
not_checked: "not_checked";
|
|
838
839
|
fresh: "fresh";
|
|
839
840
|
stale: "stale";
|
|
840
|
-
not_checked: "not_checked";
|
|
841
841
|
}>;
|
|
842
842
|
}, z.core.$strict>;
|
|
843
843
|
metric: z.ZodObject<{
|
|
@@ -849,16 +849,16 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
849
849
|
configured_items: "configured_items";
|
|
850
850
|
}>;
|
|
851
851
|
unit: z.ZodEnum<{
|
|
852
|
-
items: "items";
|
|
853
852
|
tokens: "tokens";
|
|
854
853
|
events: "events";
|
|
854
|
+
items: "items";
|
|
855
855
|
ratio: "ratio";
|
|
856
856
|
}>;
|
|
857
857
|
value: z.ZodNullable<z.ZodNumber>;
|
|
858
858
|
sampleCount: z.ZodNumber;
|
|
859
859
|
evidence: z.ZodEnum<{
|
|
860
|
-
missing: "missing";
|
|
861
860
|
observed: "observed";
|
|
861
|
+
missing: "missing";
|
|
862
862
|
calculated: "calculated";
|
|
863
863
|
}>;
|
|
864
864
|
}, z.core.$strict>;
|
|
@@ -880,8 +880,8 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
880
880
|
}>;
|
|
881
881
|
workTypeRef: z.ZodString;
|
|
882
882
|
workTypeEvidence: z.ZodEnum<{
|
|
883
|
-
verified: "verified";
|
|
884
883
|
observed: "observed";
|
|
884
|
+
verified: "verified";
|
|
885
885
|
user_declared: "user_declared";
|
|
886
886
|
}>;
|
|
887
887
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -898,8 +898,8 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
898
898
|
qualityGuard: z.ZodObject<{
|
|
899
899
|
required: z.ZodLiteral<true>;
|
|
900
900
|
minimumEvidence: z.ZodEnum<{
|
|
901
|
-
verified: "verified";
|
|
902
901
|
observed: "observed";
|
|
902
|
+
verified: "verified";
|
|
903
903
|
user_declared: "user_declared";
|
|
904
904
|
}>;
|
|
905
905
|
rollbackOnRegression: z.ZodLiteral<true>;
|
|
@@ -913,15 +913,15 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
913
913
|
model: z.ZodString;
|
|
914
914
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
915
915
|
sessionType: z.ZodEnum<{
|
|
916
|
-
subagent: "subagent";
|
|
917
916
|
unknown: "unknown";
|
|
917
|
+
subagent: "subagent";
|
|
918
918
|
parent: "parent";
|
|
919
919
|
}>;
|
|
920
920
|
workTypeRef: z.ZodOptional<z.ZodString>;
|
|
921
921
|
workUnitRef: z.ZodOptional<z.ZodString>;
|
|
922
922
|
workUnitEvidence: z.ZodOptional<z.ZodEnum<{
|
|
923
|
-
verified: "verified";
|
|
924
923
|
observed: "observed";
|
|
924
|
+
verified: "verified";
|
|
925
925
|
user_declared: "user_declared";
|
|
926
926
|
}>>;
|
|
927
927
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -967,9 +967,9 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
967
967
|
not_separately_reported: "not_separately_reported";
|
|
968
968
|
}>;
|
|
969
969
|
calculatedTotalTokens: z.ZodEnum<{
|
|
970
|
-
missing: "missing";
|
|
971
970
|
calculated_complete: "calculated_complete";
|
|
972
971
|
calculated_partial: "calculated_partial";
|
|
972
|
+
missing: "missing";
|
|
973
973
|
}>;
|
|
974
974
|
reportedTotalTokens: z.ZodEnum<{
|
|
975
975
|
provider_reported: "provider_reported";
|
|
@@ -984,9 +984,9 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
984
984
|
passed: "passed";
|
|
985
985
|
}>;
|
|
986
986
|
evidence: z.ZodEnum<{
|
|
987
|
-
verified: "verified";
|
|
988
|
-
missing: "missing";
|
|
989
987
|
observed: "observed";
|
|
988
|
+
missing: "missing";
|
|
989
|
+
verified: "verified";
|
|
990
990
|
user_declared: "user_declared";
|
|
991
991
|
}>;
|
|
992
992
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -999,8 +999,8 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
999
999
|
explicit: "explicit";
|
|
1000
1000
|
}>;
|
|
1001
1001
|
evidence: z.ZodEnum<{
|
|
1002
|
-
verified: "verified";
|
|
1003
1002
|
missing: "missing";
|
|
1003
|
+
verified: "verified";
|
|
1004
1004
|
user_declared: "user_declared";
|
|
1005
1005
|
}>;
|
|
1006
1006
|
approvedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -1016,9 +1016,9 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1016
1016
|
passed: "passed";
|
|
1017
1017
|
}>;
|
|
1018
1018
|
evidence: z.ZodEnum<{
|
|
1019
|
-
verified: "verified";
|
|
1020
|
-
missing: "missing";
|
|
1021
1019
|
observed: "observed";
|
|
1020
|
+
missing: "missing";
|
|
1021
|
+
verified: "verified";
|
|
1022
1022
|
user_declared: "user_declared";
|
|
1023
1023
|
}>;
|
|
1024
1024
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1034,15 +1034,15 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1034
1034
|
model: z.ZodString;
|
|
1035
1035
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
1036
1036
|
sessionType: z.ZodEnum<{
|
|
1037
|
-
subagent: "subagent";
|
|
1038
1037
|
unknown: "unknown";
|
|
1038
|
+
subagent: "subagent";
|
|
1039
1039
|
parent: "parent";
|
|
1040
1040
|
}>;
|
|
1041
1041
|
workTypeRef: z.ZodOptional<z.ZodString>;
|
|
1042
1042
|
workUnitRef: z.ZodOptional<z.ZodString>;
|
|
1043
1043
|
workUnitEvidence: z.ZodOptional<z.ZodEnum<{
|
|
1044
|
-
verified: "verified";
|
|
1045
1044
|
observed: "observed";
|
|
1045
|
+
verified: "verified";
|
|
1046
1046
|
user_declared: "user_declared";
|
|
1047
1047
|
}>>;
|
|
1048
1048
|
sourceVersionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1088,9 +1088,9 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1088
1088
|
not_separately_reported: "not_separately_reported";
|
|
1089
1089
|
}>;
|
|
1090
1090
|
calculatedTotalTokens: z.ZodEnum<{
|
|
1091
|
-
missing: "missing";
|
|
1092
1091
|
calculated_complete: "calculated_complete";
|
|
1093
1092
|
calculated_partial: "calculated_partial";
|
|
1093
|
+
missing: "missing";
|
|
1094
1094
|
}>;
|
|
1095
1095
|
reportedTotalTokens: z.ZodEnum<{
|
|
1096
1096
|
provider_reported: "provider_reported";
|
|
@@ -1105,9 +1105,9 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1105
1105
|
passed: "passed";
|
|
1106
1106
|
}>;
|
|
1107
1107
|
evidence: z.ZodEnum<{
|
|
1108
|
-
verified: "verified";
|
|
1109
|
-
missing: "missing";
|
|
1110
1108
|
observed: "observed";
|
|
1109
|
+
missing: "missing";
|
|
1110
|
+
verified: "verified";
|
|
1111
1111
|
user_declared: "user_declared";
|
|
1112
1112
|
}>;
|
|
1113
1113
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1115,10 +1115,10 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1115
1115
|
}, z.core.$strict>>;
|
|
1116
1116
|
invalidation: z.ZodOptional<z.ZodObject<{
|
|
1117
1117
|
reason: z.ZodEnum<{
|
|
1118
|
-
manual: "manual";
|
|
1119
1118
|
scope_changed: "scope_changed";
|
|
1120
1119
|
source_semantics_changed: "source_semantics_changed";
|
|
1121
1120
|
concurrent_change: "concurrent_change";
|
|
1121
|
+
manual: "manual";
|
|
1122
1122
|
}>;
|
|
1123
1123
|
invalidatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1124
1124
|
}, z.core.$strict>>;
|
|
@@ -1126,20 +1126,20 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1126
1126
|
revisionId: z.ZodString;
|
|
1127
1127
|
lifecycle: z.ZodEnum<{
|
|
1128
1128
|
complete: "complete";
|
|
1129
|
+
rolled_back: "rolled_back";
|
|
1129
1130
|
draft: "draft";
|
|
1130
1131
|
baseline_ready: "baseline_ready";
|
|
1131
1132
|
applied: "applied";
|
|
1132
1133
|
collecting: "collecting";
|
|
1133
|
-
rolled_back: "rolled_back";
|
|
1134
1134
|
invalidated: "invalidated";
|
|
1135
1135
|
}>;
|
|
1136
1136
|
evaluation: z.ZodObject<{
|
|
1137
1137
|
status: z.ZodEnum<{
|
|
1138
|
+
regressed: "regressed";
|
|
1138
1139
|
collecting: "collecting";
|
|
1139
1140
|
not_evaluated: "not_evaluated";
|
|
1140
1141
|
measured_token_reduction: "measured_token_reduction";
|
|
1141
1142
|
no_measured_change: "no_measured_change";
|
|
1142
|
-
regressed: "regressed";
|
|
1143
1143
|
inconclusive: "inconclusive";
|
|
1144
1144
|
}>;
|
|
1145
1145
|
metricEvidence: z.ZodEnum<{
|
|
@@ -1147,20 +1147,20 @@ declare const experimentObjectSchema: z.ZodObject<{
|
|
|
1147
1147
|
calculated: "calculated";
|
|
1148
1148
|
}>;
|
|
1149
1149
|
matchingEvidence: z.ZodEnum<{
|
|
1150
|
-
verified: "verified";
|
|
1151
|
-
missing: "missing";
|
|
1152
1150
|
observed: "observed";
|
|
1151
|
+
missing: "missing";
|
|
1152
|
+
verified: "verified";
|
|
1153
1153
|
user_declared: "user_declared";
|
|
1154
1154
|
}>;
|
|
1155
1155
|
qualityStatus: z.ZodEnum<{
|
|
1156
|
-
regressed: "regressed";
|
|
1157
|
-
held: "held";
|
|
1158
1156
|
insufficient: "insufficient";
|
|
1157
|
+
held: "held";
|
|
1158
|
+
regressed: "regressed";
|
|
1159
1159
|
}>;
|
|
1160
1160
|
qualityEvidence: z.ZodEnum<{
|
|
1161
|
-
verified: "verified";
|
|
1162
|
-
missing: "missing";
|
|
1163
1161
|
observed: "observed";
|
|
1162
|
+
missing: "missing";
|
|
1163
|
+
verified: "verified";
|
|
1164
1164
|
user_declared: "user_declared";
|
|
1165
1165
|
}>;
|
|
1166
1166
|
baseline: z.ZodObject<{
|