@claudexor/schema 3.19.0 → 3.20.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 (75) hide show
  1. package/dist/control-gc.d.ts +9 -0
  2. package/dist/control-gc.d.ts.map +1 -1
  3. package/dist/control-gc.js +12 -0
  4. package/dist/control-gc.js.map +1 -1
  5. package/dist/control-operation-responses.d.ts +63 -9
  6. package/dist/control-operation-responses.d.ts.map +1 -1
  7. package/dist/control-run-detail.d.ts +175 -25
  8. package/dist/control-run-detail.d.ts.map +1 -1
  9. package/dist/control-run-failure.d.ts +36 -6
  10. package/dist/control-run-failure.d.ts.map +1 -1
  11. package/dist/control-run-failure.js +1 -0
  12. package/dist/control-run-failure.js.map +1 -1
  13. package/dist/control-thread-requests.d.ts +101 -0
  14. package/dist/control-thread-requests.d.ts.map +1 -0
  15. package/dist/control-thread-requests.js +52 -0
  16. package/dist/control-thread-requests.js.map +1 -0
  17. package/dist/control.d.ts +62 -100
  18. package/dist/control.d.ts.map +1 -1
  19. package/dist/control.js +5 -42
  20. package/dist/control.js.map +1 -1
  21. package/dist/credential-profile-snapshot.d.ts +28 -14
  22. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  23. package/dist/credential-profile.d.ts +3 -0
  24. package/dist/credential-profile.d.ts.map +1 -1
  25. package/dist/credential-profile.js +2 -1
  26. package/dist/credential-profile.js.map +1 -1
  27. package/dist/events.d.ts +3 -0
  28. package/dist/events.d.ts.map +1 -1
  29. package/dist/harness-input.d.ts +20 -2
  30. package/dist/harness-input.d.ts.map +1 -1
  31. package/dist/harness-input.js +17 -6
  32. package/dist/harness-input.js.map +1 -1
  33. package/dist/harness.d.ts +41 -11
  34. package/dist/harness.d.ts.map +1 -1
  35. package/dist/harness.js +2 -2
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +1 -0
  39. package/dist/index.js.map +1 -1
  40. package/dist/mcp-run-result.d.ts +98 -14
  41. package/dist/mcp-run-result.d.ts.map +1 -1
  42. package/dist/quota.d.ts +255 -12
  43. package/dist/quota.d.ts.map +1 -1
  44. package/dist/quota.js +71 -0
  45. package/dist/quota.js.map +1 -1
  46. package/dist/setup-login.d.ts +35 -0
  47. package/dist/setup-login.d.ts.map +1 -1
  48. package/dist/setup-login.js +10 -0
  49. package/dist/setup-login.js.map +1 -1
  50. package/dist/telemetry.d.ts +76 -4
  51. package/dist/telemetry.d.ts.map +1 -1
  52. package/dist/thread.d.ts +4 -0
  53. package/dist/thread.d.ts.map +1 -1
  54. package/dist/thread.js +10 -1
  55. package/dist/thread.js.map +1 -1
  56. package/generated/ControlCredentialProfilesQueryResponse.schema.json +8 -1
  57. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +8 -1
  58. package/generated/ControlGcReceipt.schema.json +14 -0
  59. package/generated/ControlGcRequest.schema.json +4 -0
  60. package/generated/ControlQuotaResponse.schema.json +8 -1
  61. package/generated/ControlRunDetail.schema.json +105 -53
  62. package/generated/ControlRunListResponse.schema.json +105 -53
  63. package/generated/ControlRunSummary.schema.json +105 -53
  64. package/generated/ControlThread.schema.json +16 -1
  65. package/generated/ControlThreadCreateRequest.schema.json +6 -0
  66. package/generated/ControlThreadDetail.schema.json +16 -1
  67. package/generated/ControlThreadListResponse.schema.json +16 -1
  68. package/generated/ControlThreadUpdateRequest.schema.json +15 -1
  69. package/generated/HarnessEvent.schema.json +107 -54
  70. package/generated/McpRunHandleResult.schema.json +105 -53
  71. package/generated/McpRunToolResult.schema.json +105 -53
  72. package/generated/RunFailure.schema.json +105 -53
  73. package/generated/RunTelemetry.schema.json +104 -53
  74. package/generated/Thread.schema.json +16 -1
  75. package/package.json +2 -2
@@ -305,7 +305,7 @@ export declare const ControlRunDetail: z.ZodObject<{
305
305
  runDir: z.ZodOptional<z.ZodString>;
306
306
  error: z.ZodOptional<z.ZodString>;
307
307
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
308
- requestRefusal: z.ZodOptional<z.ZodObject<{
308
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
309
309
  scope: z.ZodLiteral<"turn_text">;
310
310
  unit: z.ZodLiteral<"unicode_scalars">;
311
311
  source: z.ZodString;
@@ -330,10 +330,28 @@ export declare const ControlRunDetail: z.ZodObject<{
330
330
  limit: number | null;
331
331
  actual: number | null;
332
332
  native_code: string;
333
- }>>;
333
+ }>, z.ZodObject<{
334
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
335
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
336
+ source: z.ZodLiteral<"claude_stdout">;
337
+ binary_path: z.ZodNullable<z.ZodString>;
338
+ installed_version: z.ZodNullable<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ kind: "vendor_cli_too_old";
341
+ native_code: "claude_code_version_too_old";
342
+ source: "claude_stdout";
343
+ binary_path: string | null;
344
+ installed_version: string | null;
345
+ }, {
346
+ kind: "vendor_cli_too_old";
347
+ native_code: "claude_code_version_too_old";
348
+ source: "claude_stdout";
349
+ binary_path: string | null;
350
+ installed_version: string | null;
351
+ }>]>>;
334
352
  phase: z.ZodDefault<z.ZodString>;
335
353
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
336
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
354
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
337
355
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
338
356
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
339
357
  safeMessage: z.ZodString;
@@ -365,10 +383,16 @@ export declare const ControlRunDetail: z.ZodObject<{
365
383
  limit: number | null;
366
384
  actual: number | null;
367
385
  native_code: string;
386
+ } | {
387
+ kind: "vendor_cli_too_old";
388
+ native_code: "claude_code_version_too_old";
389
+ source: "claude_stdout";
390
+ binary_path: string | null;
391
+ installed_version: string | null;
368
392
  } | undefined;
369
393
  phase: string;
370
394
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
371
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
395
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
372
396
  harnessId: string | null;
373
397
  attemptId: string | null;
374
398
  safeMessage: string;
@@ -392,10 +416,16 @@ export declare const ControlRunDetail: z.ZodObject<{
392
416
  limit: number | null;
393
417
  actual: number | null;
394
418
  native_code: string;
419
+ } | {
420
+ kind: "vendor_cli_too_old";
421
+ native_code: "claude_code_version_too_old";
422
+ source: "claude_stdout";
423
+ binary_path: string | null;
424
+ installed_version: string | null;
395
425
  } | undefined;
396
426
  phase?: string | undefined;
397
427
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
398
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
428
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
399
429
  harnessId?: string | null | undefined;
400
430
  attemptId?: string | null | undefined;
401
431
  safeMessage: string;
@@ -846,10 +876,16 @@ export declare const ControlRunDetail: z.ZodObject<{
846
876
  limit: number | null;
847
877
  actual: number | null;
848
878
  native_code: string;
879
+ } | {
880
+ kind: "vendor_cli_too_old";
881
+ native_code: "claude_code_version_too_old";
882
+ source: "claude_stdout";
883
+ binary_path: string | null;
884
+ installed_version: string | null;
849
885
  } | undefined;
850
886
  phase: string;
851
887
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
852
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
888
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
853
889
  harnessId: string | null;
854
890
  attemptId: string | null;
855
891
  safeMessage: string;
@@ -1038,10 +1074,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1038
1074
  limit: number | null;
1039
1075
  actual: number | null;
1040
1076
  native_code: string;
1077
+ } | {
1078
+ kind: "vendor_cli_too_old";
1079
+ native_code: "claude_code_version_too_old";
1080
+ source: "claude_stdout";
1081
+ binary_path: string | null;
1082
+ installed_version: string | null;
1041
1083
  } | undefined;
1042
1084
  phase?: string | undefined;
1043
1085
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1044
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
1086
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1045
1087
  harnessId?: string | null | undefined;
1046
1088
  attemptId?: string | null | undefined;
1047
1089
  safeMessage: string;
@@ -1247,7 +1289,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1247
1289
  runDir: z.ZodOptional<z.ZodString>;
1248
1290
  error: z.ZodOptional<z.ZodString>;
1249
1291
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1250
- requestRefusal: z.ZodOptional<z.ZodObject<{
1292
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1251
1293
  scope: z.ZodLiteral<"turn_text">;
1252
1294
  unit: z.ZodLiteral<"unicode_scalars">;
1253
1295
  source: z.ZodString;
@@ -1272,10 +1314,28 @@ export declare const ControlRunDetail: z.ZodObject<{
1272
1314
  limit: number | null;
1273
1315
  actual: number | null;
1274
1316
  native_code: string;
1275
- }>>;
1317
+ }>, z.ZodObject<{
1318
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
1319
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
1320
+ source: z.ZodLiteral<"claude_stdout">;
1321
+ binary_path: z.ZodNullable<z.ZodString>;
1322
+ installed_version: z.ZodNullable<z.ZodString>;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ kind: "vendor_cli_too_old";
1325
+ native_code: "claude_code_version_too_old";
1326
+ source: "claude_stdout";
1327
+ binary_path: string | null;
1328
+ installed_version: string | null;
1329
+ }, {
1330
+ kind: "vendor_cli_too_old";
1331
+ native_code: "claude_code_version_too_old";
1332
+ source: "claude_stdout";
1333
+ binary_path: string | null;
1334
+ installed_version: string | null;
1335
+ }>]>>;
1276
1336
  phase: z.ZodDefault<z.ZodString>;
1277
1337
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
1278
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
1338
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
1279
1339
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1280
1340
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1281
1341
  safeMessage: z.ZodString;
@@ -1307,10 +1367,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1307
1367
  limit: number | null;
1308
1368
  actual: number | null;
1309
1369
  native_code: string;
1370
+ } | {
1371
+ kind: "vendor_cli_too_old";
1372
+ native_code: "claude_code_version_too_old";
1373
+ source: "claude_stdout";
1374
+ binary_path: string | null;
1375
+ installed_version: string | null;
1310
1376
  } | undefined;
1311
1377
  phase: string;
1312
1378
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1313
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
1379
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
1314
1380
  harnessId: string | null;
1315
1381
  attemptId: string | null;
1316
1382
  safeMessage: string;
@@ -1334,10 +1400,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1334
1400
  limit: number | null;
1335
1401
  actual: number | null;
1336
1402
  native_code: string;
1403
+ } | {
1404
+ kind: "vendor_cli_too_old";
1405
+ native_code: "claude_code_version_too_old";
1406
+ source: "claude_stdout";
1407
+ binary_path: string | null;
1408
+ installed_version: string | null;
1337
1409
  } | undefined;
1338
1410
  phase?: string | undefined;
1339
1411
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1340
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
1412
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1341
1413
  harnessId?: string | null | undefined;
1342
1414
  attemptId?: string | null | undefined;
1343
1415
  safeMessage: string;
@@ -1788,10 +1860,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1788
1860
  limit: number | null;
1789
1861
  actual: number | null;
1790
1862
  native_code: string;
1863
+ } | {
1864
+ kind: "vendor_cli_too_old";
1865
+ native_code: "claude_code_version_too_old";
1866
+ source: "claude_stdout";
1867
+ binary_path: string | null;
1868
+ installed_version: string | null;
1791
1869
  } | undefined;
1792
1870
  phase: string;
1793
1871
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1794
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
1872
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
1795
1873
  harnessId: string | null;
1796
1874
  attemptId: string | null;
1797
1875
  safeMessage: string;
@@ -1980,10 +2058,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1980
2058
  limit: number | null;
1981
2059
  actual: number | null;
1982
2060
  native_code: string;
2061
+ } | {
2062
+ kind: "vendor_cli_too_old";
2063
+ native_code: "claude_code_version_too_old";
2064
+ source: "claude_stdout";
2065
+ binary_path: string | null;
2066
+ installed_version: string | null;
1983
2067
  } | undefined;
1984
2068
  phase?: string | undefined;
1985
2069
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1986
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
2070
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1987
2071
  harnessId?: string | null | undefined;
1988
2072
  attemptId?: string | null | undefined;
1989
2073
  safeMessage: string;
@@ -3504,7 +3588,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3504
3588
  evidence?: "complete" | "incomplete" | "unavailable" | undefined;
3505
3589
  }>>>;
3506
3590
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3507
- requestRefusal: z.ZodOptional<z.ZodObject<{
3591
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3508
3592
  scope: z.ZodLiteral<"turn_text">;
3509
3593
  unit: z.ZodLiteral<"unicode_scalars">;
3510
3594
  source: z.ZodString;
@@ -3529,10 +3613,28 @@ export declare const ControlRunDetail: z.ZodObject<{
3529
3613
  limit: number | null;
3530
3614
  actual: number | null;
3531
3615
  native_code: string;
3532
- }>>;
3616
+ }>, z.ZodObject<{
3617
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
3618
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
3619
+ source: z.ZodLiteral<"claude_stdout">;
3620
+ binary_path: z.ZodNullable<z.ZodString>;
3621
+ installed_version: z.ZodNullable<z.ZodString>;
3622
+ }, "strip", z.ZodTypeAny, {
3623
+ kind: "vendor_cli_too_old";
3624
+ native_code: "claude_code_version_too_old";
3625
+ source: "claude_stdout";
3626
+ binary_path: string | null;
3627
+ installed_version: string | null;
3628
+ }, {
3629
+ kind: "vendor_cli_too_old";
3630
+ native_code: "claude_code_version_too_old";
3631
+ source: "claude_stdout";
3632
+ binary_path: string | null;
3633
+ installed_version: string | null;
3634
+ }>]>>;
3533
3635
  phase: z.ZodDefault<z.ZodString>;
3534
3636
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
3535
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
3637
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
3536
3638
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3537
3639
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3538
3640
  safeMessage: z.ZodString;
@@ -3564,10 +3666,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3564
3666
  limit: number | null;
3565
3667
  actual: number | null;
3566
3668
  native_code: string;
3669
+ } | {
3670
+ kind: "vendor_cli_too_old";
3671
+ native_code: "claude_code_version_too_old";
3672
+ source: "claude_stdout";
3673
+ binary_path: string | null;
3674
+ installed_version: string | null;
3567
3675
  } | undefined;
3568
3676
  phase: string;
3569
3677
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3570
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
3678
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3571
3679
  harnessId: string | null;
3572
3680
  attemptId: string | null;
3573
3681
  safeMessage: string;
@@ -3591,10 +3699,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3591
3699
  limit: number | null;
3592
3700
  actual: number | null;
3593
3701
  native_code: string;
3702
+ } | {
3703
+ kind: "vendor_cli_too_old";
3704
+ native_code: "claude_code_version_too_old";
3705
+ source: "claude_stdout";
3706
+ binary_path: string | null;
3707
+ installed_version: string | null;
3594
3708
  } | undefined;
3595
3709
  phase?: string | undefined;
3596
3710
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3597
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
3711
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
3598
3712
  harnessId?: string | null | undefined;
3599
3713
  attemptId?: string | null | undefined;
3600
3714
  safeMessage: string;
@@ -3677,10 +3791,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3677
3791
  limit: number | null;
3678
3792
  actual: number | null;
3679
3793
  native_code: string;
3794
+ } | {
3795
+ kind: "vendor_cli_too_old";
3796
+ native_code: "claude_code_version_too_old";
3797
+ source: "claude_stdout";
3798
+ binary_path: string | null;
3799
+ installed_version: string | null;
3680
3800
  } | undefined;
3681
3801
  phase: string;
3682
3802
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3683
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
3803
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3684
3804
  harnessId: string | null;
3685
3805
  attemptId: string | null;
3686
3806
  safeMessage: string;
@@ -3870,10 +3990,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3870
3990
  limit: number | null;
3871
3991
  actual: number | null;
3872
3992
  native_code: string;
3993
+ } | {
3994
+ kind: "vendor_cli_too_old";
3995
+ native_code: "claude_code_version_too_old";
3996
+ source: "claude_stdout";
3997
+ binary_path: string | null;
3998
+ installed_version: string | null;
3873
3999
  } | undefined;
3874
4000
  phase: string;
3875
4001
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3876
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
4002
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3877
4003
  harnessId: string | null;
3878
4004
  attemptId: string | null;
3879
4005
  safeMessage: string;
@@ -4359,10 +4485,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4359
4485
  limit: number | null;
4360
4486
  actual: number | null;
4361
4487
  native_code: string;
4488
+ } | {
4489
+ kind: "vendor_cli_too_old";
4490
+ native_code: "claude_code_version_too_old";
4491
+ source: "claude_stdout";
4492
+ binary_path: string | null;
4493
+ installed_version: string | null;
4362
4494
  } | undefined;
4363
4495
  phase: string;
4364
4496
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4365
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
4497
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
4366
4498
  harnessId: string | null;
4367
4499
  attemptId: string | null;
4368
4500
  safeMessage: string;
@@ -4433,10 +4565,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4433
4565
  limit: number | null;
4434
4566
  actual: number | null;
4435
4567
  native_code: string;
4568
+ } | {
4569
+ kind: "vendor_cli_too_old";
4570
+ native_code: "claude_code_version_too_old";
4571
+ source: "claude_stdout";
4572
+ binary_path: string | null;
4573
+ installed_version: string | null;
4436
4574
  } | undefined;
4437
4575
  phase?: string | undefined;
4438
4576
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4439
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
4577
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
4440
4578
  harnessId?: string | null | undefined;
4441
4579
  attemptId?: string | null | undefined;
4442
4580
  safeMessage: string;
@@ -4626,10 +4764,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4626
4764
  limit: number | null;
4627
4765
  actual: number | null;
4628
4766
  native_code: string;
4767
+ } | {
4768
+ kind: "vendor_cli_too_old";
4769
+ native_code: "claude_code_version_too_old";
4770
+ source: "claude_stdout";
4771
+ binary_path: string | null;
4772
+ installed_version: string | null;
4629
4773
  } | undefined;
4630
4774
  phase?: string | undefined;
4631
4775
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4632
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
4776
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
4633
4777
  harnessId?: string | null | undefined;
4634
4778
  attemptId?: string | null | undefined;
4635
4779
  safeMessage: string;
@@ -5115,10 +5259,16 @@ export declare const ControlRunDetail: z.ZodObject<{
5115
5259
  limit: number | null;
5116
5260
  actual: number | null;
5117
5261
  native_code: string;
5262
+ } | {
5263
+ kind: "vendor_cli_too_old";
5264
+ native_code: "claude_code_version_too_old";
5265
+ source: "claude_stdout";
5266
+ binary_path: string | null;
5267
+ installed_version: string | null;
5118
5268
  } | undefined;
5119
5269
  phase?: string | undefined;
5120
5270
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5121
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
5271
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
5122
5272
  harnessId?: string | null | undefined;
5123
5273
  attemptId?: string | null | undefined;
5124
5274
  safeMessage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"control-run-detail.d.ts","sourceRoot":"","sources":["../src/control-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAoB3B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAwB4B,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;kCAGkC;AAClC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAwBrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF;;;gCAGgC;AAChC,eAAO,MAAM,gBAAgB;;;;;;;;;;IAgCzB,0DAA0D;;;;;;;;;;;;;;;;;;IA0B1D;;;;;;;;OAQG;;IAQH;uEACmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASpE,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtE,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -8,7 +8,7 @@ import { z } from "zod/v3";
8
8
  * Re-exported through `index.ts` like the other `control-*` splits, so every
9
9
  * caller keeps importing it from `@claudexor/schema`.
10
10
  */
11
- export declare const RunFailureCode: z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>;
11
+ export declare const RunFailureCode: z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>;
12
12
  export type RunFailureCode = z.infer<typeof RunFailureCode>;
13
13
  /** A vendor's OWN typed failure, forwarded as evidence. `code` is opaque: no
14
14
  * Claudexor code path may branch on its value; retry, rotation, cooldown and
@@ -31,7 +31,7 @@ export declare const VendorFailureEvidence: z.ZodObject<{
31
31
  }>;
32
32
  export type VendorFailureEvidence = z.infer<typeof VendorFailureEvidence>;
33
33
  export declare const RunFailure: z.ZodObject<{
34
- requestRefusal: z.ZodOptional<z.ZodObject<{
34
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
35
35
  scope: z.ZodLiteral<"turn_text">;
36
36
  unit: z.ZodLiteral<"unicode_scalars">;
37
37
  source: z.ZodString;
@@ -56,10 +56,28 @@ export declare const RunFailure: z.ZodObject<{
56
56
  limit: number | null;
57
57
  actual: number | null;
58
58
  native_code: string;
59
- }>>;
59
+ }>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
61
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
62
+ source: z.ZodLiteral<"claude_stdout">;
63
+ binary_path: z.ZodNullable<z.ZodString>;
64
+ installed_version: z.ZodNullable<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ kind: "vendor_cli_too_old";
67
+ native_code: "claude_code_version_too_old";
68
+ source: "claude_stdout";
69
+ binary_path: string | null;
70
+ installed_version: string | null;
71
+ }, {
72
+ kind: "vendor_cli_too_old";
73
+ native_code: "claude_code_version_too_old";
74
+ source: "claude_stdout";
75
+ binary_path: string | null;
76
+ installed_version: string | null;
77
+ }>]>>;
60
78
  phase: z.ZodDefault<z.ZodString>;
61
79
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
62
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
80
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
63
81
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
64
82
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
65
83
  safeMessage: z.ZodString;
@@ -94,10 +112,16 @@ export declare const RunFailure: z.ZodObject<{
94
112
  limit: number | null;
95
113
  actual: number | null;
96
114
  native_code: string;
115
+ } | {
116
+ kind: "vendor_cli_too_old";
117
+ native_code: "claude_code_version_too_old";
118
+ source: "claude_stdout";
119
+ binary_path: string | null;
120
+ installed_version: string | null;
97
121
  } | undefined;
98
122
  phase: string;
99
123
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
100
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
124
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
101
125
  harnessId: string | null;
102
126
  attemptId: string | null;
103
127
  safeMessage: string;
@@ -121,10 +145,16 @@ export declare const RunFailure: z.ZodObject<{
121
145
  limit: number | null;
122
146
  actual: number | null;
123
147
  native_code: string;
148
+ } | {
149
+ kind: "vendor_cli_too_old";
150
+ native_code: "claude_code_version_too_old";
151
+ source: "claude_stdout";
152
+ binary_path: string | null;
153
+ installed_version: string | null;
124
154
  } | undefined;
125
155
  phase?: string | undefined;
126
156
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
127
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
157
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
128
158
  harnessId?: string | null | undefined;
129
159
  attemptId?: string | null | undefined;
130
160
  safeMessage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"control-run-failure.d.ts","sourceRoot":"","sources":["../src/control-run-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,gZA6BxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;+CAK+C;AAC/C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EA2B/B,CAAC;AACJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoDnB;;iEAE6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB9D,CAAC;AACJ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"control-run-failure.d.ts","sourceRoot":"","sources":["../src/control-run-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,saA8BxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;+CAK+C;AAC/C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EA2B/B,CAAC;AACJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoDnB;;iEAE6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB9D,CAAC;AACJ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -26,6 +26,7 @@ export const RunFailureCode = z
26
26
  * member reopens — or null when any member's reset is unknown. */
27
27
  "credential_pool_exhausted",
28
28
  "input_too_large",
29
+ "vendor_cli_too_old",
29
30
  /* Active scoped-HOME/evidence refusals plus the historical confinement
30
31
  * decoder code. Attempt-loop failures must be listed here or
31
32
  * `declaredFailure` drops them to `code: null` and the terminal states less
@@ -1 +1 @@
1
- {"version":3,"file":"control-run-failure.js","sourceRoot":"","sources":["../src/control-run-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,IAAI,CAAC;IACJ,aAAa;IACb,UAAU;IACV,mBAAmB;IACnB,wBAAwB;IACxB,kBAAkB;IAClB,mBAAmB;IACnB,gCAAgC;IAChC,+BAA+B;IAC/B;;;;sEAIkE;IAClE,2BAA2B;IAC3B,iBAAiB;IACjB;;;mEAG+D;IAC/D,4BAA4B;IAC5B,mCAAmC;IACnC,+BAA+B;IAC/B,6BAA6B;IAC7B,wBAAwB;CACzB,CAAC;KACD,QAAQ,CACP,iJAAiJ,CAClJ,CAAC;AAGJ;;;;;+CAK+C;AAC/C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,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