@claudexor/schema 3.1.0 → 3.1.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.
Files changed (53) hide show
  1. package/dist/agent-capabilities.d.ts +8 -8
  2. package/dist/budget.d.ts +9 -9
  3. package/dist/config.d.ts +70 -38
  4. package/dist/config.d.ts.map +1 -1
  5. package/dist/config.js +12 -1
  6. package/dist/config.js.map +1 -1
  7. package/dist/control-operation-responses.d.ts +27 -27
  8. package/dist/control-run-detail.d.ts +13 -13
  9. package/dist/control.d.ts +135 -84
  10. package/dist/control.d.ts.map +1 -1
  11. package/dist/effort.d.ts +132 -0
  12. package/dist/effort.d.ts.map +1 -0
  13. package/dist/effort.js +167 -0
  14. package/dist/effort.js.map +1 -0
  15. package/dist/events.d.ts +4 -4
  16. package/dist/events.d.ts.map +1 -1
  17. package/dist/events.js +6 -0
  18. package/dist/events.js.map +1 -1
  19. package/dist/gate.d.ts +2 -2
  20. package/dist/harness.d.ts +98 -25
  21. package/dist/harness.d.ts.map +1 -1
  22. package/dist/harness.js +30 -13
  23. package/dist/harness.js.map +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/operation.d.ts +16 -16
  29. package/dist/readiness.d.ts +48 -7
  30. package/dist/readiness.d.ts.map +1 -1
  31. package/dist/task.d.ts +62 -59
  32. package/dist/task.d.ts.map +1 -1
  33. package/dist/task.js +9 -8
  34. package/dist/task.js.map +1 -1
  35. package/dist/telemetry.d.ts +16 -16
  36. package/generated/AgentCapabilityCatalog.schema.json +4 -8
  37. package/generated/ControlHarnessListResponse.schema.json +45 -9
  38. package/generated/ControlHarnessSettingsPatch.schema.json +4 -8
  39. package/generated/ControlRunAgainDraft.schema.json +3 -7
  40. package/generated/ControlRunDetail.schema.json +3 -7
  41. package/generated/ControlRunListResponse.schema.json +3 -7
  42. package/generated/ControlRunStartRequest.schema.json +3 -7
  43. package/generated/ControlRunSummary.schema.json +3 -7
  44. package/generated/ControlSettingsSnapshot.schema.json +4 -8
  45. package/generated/ControlSettingsUpdateRequest.schema.json +4 -8
  46. package/generated/ControlThreadTurnRequest.schema.json +3 -7
  47. package/generated/GlobalConfig.schema.json +4 -8
  48. package/generated/HarnessManifest.schema.json +45 -9
  49. package/generated/HarnessStatusDto.schema.json +45 -9
  50. package/generated/ProjectConfig.schema.json +26 -0
  51. package/generated/RunEvent.schema.json +1 -0
  52. package/generated/TaskContract.schema.json +5 -9
  53. package/package.json +2 -2
@@ -99,15 +99,15 @@ export declare const ControlRunListResponse: z.ZodObject<{
99
99
  reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
100
  harness: z.ZodString;
101
101
  model: z.ZodOptional<z.ZodString>;
102
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
102
+ effort: z.ZodOptional<z.ZodString>;
103
103
  }, "strict", z.ZodTypeAny, {
104
104
  harness: string;
105
105
  model?: string | undefined;
106
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
106
+ effort?: string | undefined;
107
107
  }, {
108
108
  harness: string;
109
109
  model?: string | undefined;
110
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
110
+ effort?: string | undefined;
111
111
  }>, "many">>;
112
112
  protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
113
  path: z.ZodString;
@@ -205,8 +205,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
205
205
  available: boolean;
206
206
  target: string | null;
207
207
  mode: "off" | "auto" | "cached" | "live";
208
- tool: string | null;
209
208
  required: boolean;
209
+ tool: string | null;
210
210
  attempted: boolean;
211
211
  rawDetailRef: string | null;
212
212
  effectiveMode: "off" | "auto" | "cached" | "live";
@@ -217,8 +217,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
217
217
  available?: boolean | undefined;
218
218
  target?: string | null | undefined;
219
219
  mode?: "off" | "auto" | "cached" | "live" | undefined;
220
- tool?: string | null | undefined;
221
220
  required?: boolean | undefined;
221
+ tool?: string | null | undefined;
222
222
  attempted?: boolean | undefined;
223
223
  rawDetailRef?: string | null | undefined;
224
224
  effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
@@ -485,8 +485,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
485
485
  available: boolean;
486
486
  target: string | null;
487
487
  mode: "off" | "auto" | "cached" | "live";
488
- tool: string | null;
489
488
  required: boolean;
489
+ tool: string | null;
490
490
  attempted: boolean;
491
491
  rawDetailRef: string | null;
492
492
  effectiveMode: "off" | "auto" | "cached" | "live";
@@ -588,7 +588,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
588
588
  reviewerPanel?: {
589
589
  harness: string;
590
590
  model?: string | undefined;
591
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
591
+ effort?: string | undefined;
592
592
  }[] | undefined;
593
593
  strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
594
594
  spendUsd?: number | null | undefined;
@@ -658,7 +658,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
658
658
  reviewerPanel?: {
659
659
  harness: string;
660
660
  model?: string | undefined;
661
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
661
+ effort?: string | undefined;
662
662
  }[] | undefined;
663
663
  failure?: {
664
664
  safeMessage: string;
@@ -701,8 +701,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
701
701
  available?: boolean | undefined;
702
702
  target?: string | null | undefined;
703
703
  mode?: "off" | "auto" | "cached" | "live" | undefined;
704
- tool?: string | null | undefined;
705
704
  required?: boolean | undefined;
705
+ tool?: string | null | undefined;
706
706
  attempted?: boolean | undefined;
707
707
  rawDetailRef?: string | null | undefined;
708
708
  effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
@@ -811,8 +811,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
811
811
  available: boolean;
812
812
  target: string | null;
813
813
  mode: "off" | "auto" | "cached" | "live";
814
- tool: string | null;
815
814
  required: boolean;
815
+ tool: string | null;
816
816
  attempted: boolean;
817
817
  rawDetailRef: string | null;
818
818
  effectiveMode: "off" | "auto" | "cached" | "live";
@@ -914,7 +914,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
914
914
  reviewerPanel?: {
915
915
  harness: string;
916
916
  model?: string | undefined;
917
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
917
+ effort?: string | undefined;
918
918
  }[] | undefined;
919
919
  strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
920
920
  spendUsd?: number | null | undefined;
@@ -988,7 +988,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
988
988
  reviewerPanel?: {
989
989
  harness: string;
990
990
  model?: string | undefined;
991
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
991
+ effort?: string | undefined;
992
992
  }[] | undefined;
993
993
  failure?: {
994
994
  safeMessage: string;
@@ -1031,8 +1031,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
1031
1031
  available?: boolean | undefined;
1032
1032
  target?: string | null | undefined;
1033
1033
  mode?: "off" | "auto" | "cached" | "live" | undefined;
1034
- tool?: string | null | undefined;
1035
1034
  required?: boolean | undefined;
1035
+ tool?: string | null | undefined;
1036
1036
  attempted?: boolean | undefined;
1037
1037
  rawDetailRef?: string | null | undefined;
1038
1038
  effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
@@ -1346,10 +1346,10 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1346
1346
  routingGoal: z.ZodOptional<z.ZodEnum<["auto", "quality", "economy"]>>;
1347
1347
  model: z.ZodOptional<z.ZodString>;
1348
1348
  models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1349
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
1350
- efforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>>;
1349
+ effort: z.ZodOptional<z.ZodString>;
1350
+ efforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1351
1351
  reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
1352
- reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>>;
1352
+ reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
1353
1353
  n: z.ZodOptional<z.ZodNumber>;
1354
1354
  attempts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1355
1355
  untilClean: z.ZodOptional<z.ZodBoolean>;
@@ -1424,15 +1424,15 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1424
1424
  reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
1425
1425
  harness: z.ZodString;
1426
1426
  model: z.ZodOptional<z.ZodString>;
1427
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
1427
+ effort: z.ZodOptional<z.ZodString>;
1428
1428
  }, "strict", z.ZodTypeAny, {
1429
1429
  harness: string;
1430
1430
  model?: string | undefined;
1431
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1431
+ effort?: string | undefined;
1432
1432
  }, {
1433
1433
  harness: string;
1434
1434
  model?: string | undefined;
1435
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1435
+ effort?: string | undefined;
1436
1436
  }>, "many">>;
1437
1437
  authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
1438
1438
  credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1464,7 +1464,7 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1464
1464
  models?: Record<string, string> | undefined;
1465
1465
  harnesses?: string[] | undefined;
1466
1466
  model?: string | undefined;
1467
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1467
+ effort?: string | undefined;
1468
1468
  tests?: {
1469
1469
  args: string[];
1470
1470
  program: string;
@@ -1473,9 +1473,9 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1473
1473
  }[] | undefined;
1474
1474
  primaryHarness?: string | undefined;
1475
1475
  routingGoal?: "auto" | "quality" | "economy" | undefined;
1476
- efforts?: Record<string, "low" | "medium" | "high" | "xhigh" | "max"> | undefined;
1476
+ efforts?: Record<string, string> | undefined;
1477
1477
  reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
1478
- reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
1478
+ reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
1479
1479
  n?: number | undefined;
1480
1480
  attempts?: number | null | undefined;
1481
1481
  untilClean?: boolean | undefined;
@@ -1497,7 +1497,7 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1497
1497
  reviewerPanel?: {
1498
1498
  harness: string;
1499
1499
  model?: string | undefined;
1500
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1500
+ effort?: string | undefined;
1501
1501
  }[] | undefined;
1502
1502
  authPreference?: "auto" | "subscription" | "api_key" | undefined;
1503
1503
  credentialProfileId?: string | null | undefined;
@@ -1526,7 +1526,7 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1526
1526
  models?: Record<string, string> | undefined;
1527
1527
  harnesses?: string[] | undefined;
1528
1528
  model?: string | undefined;
1529
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1529
+ effort?: string | undefined;
1530
1530
  tests?: {
1531
1531
  program: string;
1532
1532
  args?: string[] | undefined;
@@ -1535,9 +1535,9 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1535
1535
  }[] | undefined;
1536
1536
  primaryHarness?: string | undefined;
1537
1537
  routingGoal?: "auto" | "quality" | "economy" | undefined;
1538
- efforts?: Record<string, "low" | "medium" | "high" | "xhigh" | "max"> | undefined;
1538
+ efforts?: Record<string, string> | undefined;
1539
1539
  reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
1540
- reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
1540
+ reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
1541
1541
  n?: number | undefined;
1542
1542
  attempts?: number | null | undefined;
1543
1543
  untilClean?: boolean | undefined;
@@ -1559,7 +1559,7 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
1559
1559
  reviewerPanel?: {
1560
1560
  harness: string;
1561
1561
  model?: string | undefined;
1562
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1562
+ effort?: string | undefined;
1563
1563
  }[] | undefined;
1564
1564
  authPreference?: "auto" | "subscription" | "api_key" | undefined;
1565
1565
  credentialProfileId?: string | null | undefined;
@@ -174,15 +174,15 @@ export declare const ControlRunDetail: z.ZodObject<{
174
174
  reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
175
  harness: z.ZodString;
176
176
  model: z.ZodOptional<z.ZodString>;
177
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
177
+ effort: z.ZodOptional<z.ZodString>;
178
178
  }, "strict", z.ZodTypeAny, {
179
179
  harness: string;
180
180
  model?: string | undefined;
181
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
181
+ effort?: string | undefined;
182
182
  }, {
183
183
  harness: string;
184
184
  model?: string | undefined;
185
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
185
+ effort?: string | undefined;
186
186
  }>, "many">>;
187
187
  protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
188
  path: z.ZodString;
@@ -280,8 +280,8 @@ export declare const ControlRunDetail: z.ZodObject<{
280
280
  available: boolean;
281
281
  target: string | null;
282
282
  mode: "off" | "auto" | "cached" | "live";
283
- tool: string | null;
284
283
  required: boolean;
284
+ tool: string | null;
285
285
  attempted: boolean;
286
286
  rawDetailRef: string | null;
287
287
  effectiveMode: "off" | "auto" | "cached" | "live";
@@ -292,8 +292,8 @@ export declare const ControlRunDetail: z.ZodObject<{
292
292
  available?: boolean | undefined;
293
293
  target?: string | null | undefined;
294
294
  mode?: "off" | "auto" | "cached" | "live" | undefined;
295
- tool?: string | null | undefined;
296
295
  required?: boolean | undefined;
296
+ tool?: string | null | undefined;
297
297
  attempted?: boolean | undefined;
298
298
  rawDetailRef?: string | null | undefined;
299
299
  effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
@@ -560,8 +560,8 @@ export declare const ControlRunDetail: z.ZodObject<{
560
560
  available: boolean;
561
561
  target: string | null;
562
562
  mode: "off" | "auto" | "cached" | "live";
563
- tool: string | null;
564
563
  required: boolean;
564
+ tool: string | null;
565
565
  attempted: boolean;
566
566
  rawDetailRef: string | null;
567
567
  effectiveMode: "off" | "auto" | "cached" | "live";
@@ -663,7 +663,7 @@ export declare const ControlRunDetail: z.ZodObject<{
663
663
  reviewerPanel?: {
664
664
  harness: string;
665
665
  model?: string | undefined;
666
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
666
+ effort?: string | undefined;
667
667
  }[] | undefined;
668
668
  strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
669
669
  spendUsd?: number | null | undefined;
@@ -733,7 +733,7 @@ export declare const ControlRunDetail: z.ZodObject<{
733
733
  reviewerPanel?: {
734
734
  harness: string;
735
735
  model?: string | undefined;
736
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
736
+ effort?: string | undefined;
737
737
  }[] | undefined;
738
738
  failure?: {
739
739
  safeMessage: string;
@@ -776,8 +776,8 @@ export declare const ControlRunDetail: z.ZodObject<{
776
776
  available?: boolean | undefined;
777
777
  target?: string | null | undefined;
778
778
  mode?: "off" | "auto" | "cached" | "live" | undefined;
779
- tool?: string | null | undefined;
780
779
  required?: boolean | undefined;
780
+ tool?: string | null | undefined;
781
781
  attempted?: boolean | undefined;
782
782
  rawDetailRef?: string | null | undefined;
783
783
  effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
@@ -1832,8 +1832,8 @@ export declare const ControlRunDetail: z.ZodObject<{
1832
1832
  available: boolean;
1833
1833
  target: string | null;
1834
1834
  mode: "off" | "auto" | "cached" | "live";
1835
- tool: string | null;
1836
1835
  required: boolean;
1836
+ tool: string | null;
1837
1837
  attempted: boolean;
1838
1838
  rawDetailRef: string | null;
1839
1839
  effectiveMode: "off" | "auto" | "cached" | "live";
@@ -1935,7 +1935,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1935
1935
  reviewerPanel?: {
1936
1936
  harness: string;
1937
1937
  model?: string | undefined;
1938
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
1938
+ effort?: string | undefined;
1939
1939
  }[] | undefined;
1940
1940
  strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
1941
1941
  spendUsd?: number | null | undefined;
@@ -2248,7 +2248,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2248
2248
  reviewerPanel?: {
2249
2249
  harness: string;
2250
2250
  model?: string | undefined;
2251
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
2251
+ effort?: string | undefined;
2252
2252
  }[] | undefined;
2253
2253
  failure?: {
2254
2254
  safeMessage: string;
@@ -2291,8 +2291,8 @@ export declare const ControlRunDetail: z.ZodObject<{
2291
2291
  available?: boolean | undefined;
2292
2292
  target?: string | null | undefined;
2293
2293
  mode?: "off" | "auto" | "cached" | "live" | undefined;
2294
- tool?: string | null | undefined;
2295
2294
  required?: boolean | undefined;
2295
+ tool?: string | null | undefined;
2296
2296
  attempted?: boolean | undefined;
2297
2297
  rawDetailRef?: string | null | undefined;
2298
2298
  effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;