@claudexor/schema 2.0.0 → 2.1.2

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 (128) hide show
  1. package/dist/agent-capabilities.d.ts +24 -24
  2. package/dist/attachment.d.ts +13 -13
  3. package/dist/auth.d.ts +21 -0
  4. package/dist/auth.d.ts.map +1 -1
  5. package/dist/auth.js +54 -0
  6. package/dist/auth.js.map +1 -1
  7. package/dist/budget.d.ts +17 -5
  8. package/dist/budget.d.ts.map +1 -1
  9. package/dist/budget.js +15 -0
  10. package/dist/budget.js.map +1 -1
  11. package/dist/config.d.ts +380 -20
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js +81 -0
  14. package/dist/config.js.map +1 -1
  15. package/dist/control-gc.d.ts +185 -0
  16. package/dist/control-gc.d.ts.map +1 -0
  17. package/dist/control-gc.js +81 -0
  18. package/dist/control-gc.js.map +1 -0
  19. package/dist/control-operation-responses.d.ts +155 -29
  20. package/dist/control-operation-responses.d.ts.map +1 -1
  21. package/dist/control-run-detail.d.ts +140 -32
  22. package/dist/control-run-detail.d.ts.map +1 -1
  23. package/dist/control-spec.d.ts +6 -6
  24. package/dist/control-thread-apply.d.ts +2 -2
  25. package/dist/control.d.ts +427 -586
  26. package/dist/control.d.ts.map +1 -1
  27. package/dist/control.js +155 -54
  28. package/dist/control.js.map +1 -1
  29. package/dist/credential-profile.d.ts +454 -0
  30. package/dist/credential-profile.d.ts.map +1 -0
  31. package/dist/credential-profile.js +140 -0
  32. package/dist/credential-profile.js.map +1 -0
  33. package/dist/events.d.ts +20 -6
  34. package/dist/events.d.ts.map +1 -1
  35. package/dist/events.js +22 -0
  36. package/dist/events.js.map +1 -1
  37. package/dist/gate.d.ts +3 -3
  38. package/dist/harness.d.ts +243 -88
  39. package/dist/harness.d.ts.map +1 -1
  40. package/dist/harness.js +124 -46
  41. package/dist/harness.js.map +1 -1
  42. package/dist/index.d.ts +4 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +4 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/orchestrate.d.ts +23 -0
  47. package/dist/orchestrate.d.ts.map +1 -1
  48. package/dist/orchestrate.js +56 -0
  49. package/dist/orchestrate.js.map +1 -1
  50. package/dist/project.d.ts +2 -2
  51. package/dist/quota.d.ts +27 -9
  52. package/dist/quota.d.ts.map +1 -1
  53. package/dist/quota.js +14 -2
  54. package/dist/quota.js.map +1 -1
  55. package/dist/readiness.d.ts +596 -0
  56. package/dist/readiness.d.ts.map +1 -0
  57. package/dist/readiness.js +87 -0
  58. package/dist/readiness.js.map +1 -0
  59. package/dist/request-requirements.d.ts +8 -8
  60. package/dist/request-requirements.d.ts.map +1 -1
  61. package/dist/request-requirements.js +4 -1
  62. package/dist/request-requirements.js.map +1 -1
  63. package/dist/route.d.ts +4 -4
  64. package/dist/setup.d.ts +69 -24
  65. package/dist/setup.d.ts.map +1 -1
  66. package/dist/setup.js +25 -0
  67. package/dist/setup.js.map +1 -1
  68. package/dist/spec.d.ts +4 -4
  69. package/dist/task.d.ts +99 -4
  70. package/dist/task.d.ts.map +1 -1
  71. package/dist/task.js +48 -1
  72. package/dist/task.js.map +1 -1
  73. package/dist/telemetry.d.ts +309 -67
  74. package/dist/telemetry.d.ts.map +1 -1
  75. package/dist/telemetry.js +97 -1
  76. package/dist/telemetry.js.map +1 -1
  77. package/dist/thread.d.ts +26 -15
  78. package/dist/thread.d.ts.map +1 -1
  79. package/dist/thread.js +11 -0
  80. package/dist/thread.js.map +1 -1
  81. package/dist/tool-ref.d.ts +45 -0
  82. package/dist/tool-ref.d.ts.map +1 -0
  83. package/dist/tool-ref.js +45 -0
  84. package/dist/tool-ref.js.map +1 -0
  85. package/dist/workspace.d.ts +2 -2
  86. package/generated/BudgetObservation.schema.json +16 -0
  87. package/generated/ControlCredentialProfileCreateRequest.schema.json +32 -0
  88. package/generated/ControlCredentialProfileCreateResponse.schema.json +142 -0
  89. package/generated/ControlCredentialProfileDeleteResponse.schema.json +107 -0
  90. package/generated/ControlCredentialProfilesResponse.schema.json +155 -0
  91. package/generated/ControlGcReceipt.schema.json +170 -0
  92. package/generated/ControlGcRequest.schema.json +18 -0
  93. package/generated/ControlHarnessListResponse.schema.json +95 -2
  94. package/generated/ControlHarnessModelsResponse.schema.json +19 -0
  95. package/generated/ControlHarnessSettingsPatch.schema.json +9 -0
  96. package/generated/ControlQuotaResponse.schema.json +3 -2
  97. package/generated/ControlRunAgainDraft.schema.json +40 -0
  98. package/generated/ControlRunDetail.schema.json +178 -6
  99. package/generated/ControlRunListResponse.schema.json +174 -3
  100. package/generated/ControlRunStartRequest.schema.json +40 -0
  101. package/generated/ControlRunSummary.schema.json +174 -3
  102. package/generated/ControlSettingsSnapshot.schema.json +10 -0
  103. package/generated/ControlSettingsUpdateRequest.schema.json +9 -0
  104. package/generated/ControlSetupJob.schema.json +8 -0
  105. package/generated/ControlSetupJobCreateRequest.schema.json +5 -0
  106. package/generated/ControlSetupJobEvent.schema.json +8 -0
  107. package/generated/ControlSetupJobListResponse.schema.json +8 -0
  108. package/generated/ControlSetupJobSnapshot.schema.json +8 -0
  109. package/generated/ControlThread.schema.json +16 -4
  110. package/generated/ControlThreadCreateRequest.schema.json +6 -2
  111. package/generated/ControlThreadDetail.schema.json +32 -8
  112. package/generated/ControlThreadListResponse.schema.json +16 -4
  113. package/generated/ControlThreadTurnRequest.schema.json +40 -0
  114. package/generated/ControlThreadUpdateRequest.schema.json +11 -0
  115. package/generated/CredentialProfile.schema.json +78 -0
  116. package/generated/CredentialProfileStatus.schema.json +61 -0
  117. package/generated/GlobalConfig.schema.json +136 -0
  118. package/generated/HarnessEvent.schema.json +62 -5
  119. package/generated/HarnessManifest.schema.json +33 -2
  120. package/generated/HarnessModel.schema.json +19 -0
  121. package/generated/HarnessStatusDto.schema.json +95 -2
  122. package/generated/RunEvent.schema.json +3 -0
  123. package/generated/RunTelemetry.schema.json +202 -2
  124. package/generated/Session.schema.json +14 -0
  125. package/generated/TaskContract.schema.json +65 -4
  126. package/generated/Thread.schema.json +17 -5
  127. package/generated/ThreadHeadPing.schema.json +40 -0
  128. package/package.json +3 -2
@@ -175,6 +175,50 @@ export declare const ControlRunDetail: z.ZodObject<{
175
175
  }>]>>;
176
176
  spendUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
177
177
  spendEstimated: z.ZodOptional<z.ZodBoolean>;
178
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
179
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
180
+ cachedInputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
181
+ outputConformance: z.ZodOptional<z.ZodNullable<z.ZodEnum<["passed", "failed"]>>>;
182
+ authRoute: z.ZodOptional<z.ZodNullable<z.ZodObject<{
183
+ requested: z.ZodEnum<["subscription", "api_key", "auto"]>;
184
+ effective: z.ZodDefault<z.ZodNullable<z.ZodEnum<["local_session", "api_key", "unknown"]>>>;
185
+ source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
186
+ reason: z.ZodEnum<["as_requested", "native_first", "no_native_session_fallback", "requested_route_unavailable", "undisclosed"]>;
187
+ harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
188
+ attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
189
+ modelMismatch: z.ZodDefault<z.ZodNullable<z.ZodObject<{
190
+ requested: z.ZodString;
191
+ observed: z.ZodString;
192
+ }, "strip", z.ZodTypeAny, {
193
+ requested: string;
194
+ observed: string;
195
+ }, {
196
+ requested: string;
197
+ observed: string;
198
+ }>>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
201
+ harnessId: string | null;
202
+ requested: "auto" | "subscription" | "api_key";
203
+ attemptId: string | null;
204
+ effective: "unknown" | "api_key" | "local_session" | null;
205
+ reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
206
+ modelMismatch: {
207
+ requested: string;
208
+ observed: string;
209
+ } | null;
210
+ }, {
211
+ requested: "auto" | "subscription" | "api_key";
212
+ reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
213
+ source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
214
+ harnessId?: string | null | undefined;
215
+ attemptId?: string | null | undefined;
216
+ effective?: "unknown" | "api_key" | "local_session" | null | undefined;
217
+ modelMismatch?: {
218
+ requested: string;
219
+ observed: string;
220
+ } | null | undefined;
221
+ }>>>;
178
222
  access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
179
223
  requestedAccess: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
180
224
  effectiveAccess: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
@@ -196,8 +240,8 @@ export declare const ControlRunDetail: z.ZodObject<{
196
240
  }, "strip", z.ZodTypeAny, {
197
241
  status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
198
242
  available: boolean;
199
- mode: "off" | "auto" | "cached" | "live";
200
243
  target: string | null;
244
+ mode: "off" | "auto" | "cached" | "live";
201
245
  tool: string | null;
202
246
  required: boolean;
203
247
  attempted: boolean;
@@ -208,8 +252,8 @@ export declare const ControlRunDetail: z.ZodObject<{
208
252
  }, {
209
253
  status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
210
254
  available?: boolean | undefined;
211
- mode?: "off" | "auto" | "cached" | "live" | undefined;
212
255
  target?: string | null | undefined;
256
+ mode?: "off" | "auto" | "cached" | "live" | undefined;
213
257
  tool?: string | null | undefined;
214
258
  required?: boolean | undefined;
215
259
  attempted?: boolean | undefined;
@@ -219,28 +263,28 @@ export declare const ControlRunDetail: z.ZodObject<{
219
263
  errorSummary?: string | null | undefined;
220
264
  }>>;
221
265
  requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
222
- capability: z.ZodLiteral<"browser">;
266
+ capability: z.ZodEnum<["browser", "path_deny"]>;
223
267
  harness_id: z.ZodString;
224
268
  eligible: z.ZodBoolean;
225
269
  requested: z.ZodBoolean;
226
270
  effective: z.ZodBoolean;
227
- reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible"]>;
271
+ reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
228
272
  evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
229
273
  }, "strip", z.ZodTypeAny, {
230
274
  requested: boolean;
231
275
  effective: boolean;
232
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
233
- evidence_refs: string[];
234
276
  harness_id: string;
277
+ reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
278
+ evidence_refs: string[];
235
279
  eligible: boolean;
236
- capability: "browser";
280
+ capability: "browser" | "path_deny";
237
281
  }, {
238
282
  requested: boolean;
239
283
  effective: boolean;
240
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
241
284
  harness_id: string;
285
+ reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
242
286
  eligible: boolean;
243
- capability: "browser";
287
+ capability: "browser" | "path_deny";
244
288
  evidence_refs?: string[] | undefined;
245
289
  }>, "many">>;
246
290
  toolPermissionPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -360,8 +404,8 @@ export declare const ControlRunDetail: z.ZodObject<{
360
404
  webEvidence: {
361
405
  status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
362
406
  available: boolean;
363
- mode: "off" | "auto" | "cached" | "live";
364
407
  target: string | null;
408
+ mode: "off" | "auto" | "cached" | "live";
365
409
  tool: string | null;
366
410
  required: boolean;
367
411
  attempted: boolean;
@@ -373,11 +417,11 @@ export declare const ControlRunDetail: z.ZodObject<{
373
417
  requestRequirements: {
374
418
  requested: boolean;
375
419
  effective: boolean;
376
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
377
- evidence_refs: string[];
378
420
  harness_id: string;
421
+ reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
422
+ evidence_refs: string[];
379
423
  eligible: boolean;
380
- capability: "browser";
424
+ capability: "browser" | "path_deny";
381
425
  }[];
382
426
  outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
383
427
  toolWarningsTotal: number;
@@ -404,11 +448,11 @@ export declare const ControlRunDetail: z.ZodObject<{
404
448
  verified: boolean;
405
449
  } | null;
406
450
  startedAt?: string | undefined;
451
+ error?: string | undefined;
407
452
  createdAt?: string | undefined;
408
453
  mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
409
454
  prompt?: string | undefined;
410
455
  access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
411
- error?: string | undefined;
412
456
  harnesses?: string[] | undefined;
413
457
  runDir?: string | undefined;
414
458
  model?: string | undefined;
@@ -443,6 +487,22 @@ export declare const ControlRunDetail: z.ZodObject<{
443
487
  strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
444
488
  spendUsd?: number | null | undefined;
445
489
  spendEstimated?: boolean | undefined;
490
+ inputTokens?: number | null | undefined;
491
+ outputTokens?: number | null | undefined;
492
+ cachedInputTokens?: number | null | undefined;
493
+ outputConformance?: "passed" | "failed" | null | undefined;
494
+ authRoute?: {
495
+ source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
496
+ harnessId: string | null;
497
+ requested: "auto" | "subscription" | "api_key";
498
+ attemptId: string | null;
499
+ effective: "unknown" | "api_key" | "local_session" | null;
500
+ reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
501
+ modelMismatch: {
502
+ requested: string;
503
+ observed: string;
504
+ } | null;
505
+ } | null | undefined;
446
506
  requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
447
507
  effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
448
508
  webRequired?: boolean | undefined;
@@ -454,11 +514,11 @@ export declare const ControlRunDetail: z.ZodObject<{
454
514
  runId: string;
455
515
  jobId: string;
456
516
  startedAt?: string | undefined;
517
+ error?: string | undefined;
457
518
  createdAt?: string | undefined;
458
519
  mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
459
520
  prompt?: string | undefined;
460
521
  access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
461
- error?: string | undefined;
462
522
  harnesses?: string[] | undefined;
463
523
  runDir?: string | undefined;
464
524
  model?: string | undefined;
@@ -511,6 +571,22 @@ export declare const ControlRunDetail: z.ZodObject<{
511
571
  strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
512
572
  spendUsd?: number | null | undefined;
513
573
  spendEstimated?: boolean | undefined;
574
+ inputTokens?: number | null | undefined;
575
+ outputTokens?: number | null | undefined;
576
+ cachedInputTokens?: number | null | undefined;
577
+ outputConformance?: "passed" | "failed" | null | undefined;
578
+ authRoute?: {
579
+ requested: "auto" | "subscription" | "api_key";
580
+ reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
581
+ source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
582
+ harnessId?: string | null | undefined;
583
+ attemptId?: string | null | undefined;
584
+ effective?: "unknown" | "api_key" | "local_session" | null | undefined;
585
+ modelMismatch?: {
586
+ requested: string;
587
+ observed: string;
588
+ } | null | undefined;
589
+ } | null | undefined;
514
590
  requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
515
591
  effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
516
592
  webRequired?: boolean | undefined;
@@ -518,8 +594,8 @@ export declare const ControlRunDetail: z.ZodObject<{
518
594
  webEvidence?: {
519
595
  status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
520
596
  available?: boolean | undefined;
521
- mode?: "off" | "auto" | "cached" | "live" | undefined;
522
597
  target?: string | null | undefined;
598
+ mode?: "off" | "auto" | "cached" | "live" | undefined;
523
599
  tool?: string | null | undefined;
524
600
  required?: boolean | undefined;
525
601
  attempted?: boolean | undefined;
@@ -531,10 +607,10 @@ export declare const ControlRunDetail: z.ZodObject<{
531
607
  requestRequirements?: {
532
608
  requested: boolean;
533
609
  effective: boolean;
534
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
535
610
  harness_id: string;
611
+ reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
536
612
  eligible: boolean;
537
- capability: "browser";
613
+ capability: "browser" | "path_deny";
538
614
  evidence_refs?: string[] | undefined;
539
615
  }[] | undefined;
540
616
  toolPermissionPolicy?: Record<string, unknown> | undefined;
@@ -587,18 +663,18 @@ export declare const ControlRunDetail: z.ZodObject<{
587
663
  bytes?: number | undefined;
588
664
  }>, "many">>;
589
665
  primaryOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
590
- kind: z.ZodEnum<["answer", "report", "plan", "summary", "patch", "diagnostic"]>;
666
+ kind: z.ZodEnum<["answer", "report", "plan", "summary", "patch", "diagnostic", "structured_output"]>;
591
667
  path: z.ZodString;
592
668
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
593
669
  bytes: z.ZodOptional<z.ZodNumber>;
594
670
  }, "strip", z.ZodTypeAny, {
595
671
  path: string;
596
- kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
672
+ kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
597
673
  text: string | null;
598
674
  bytes?: number | undefined;
599
675
  }, {
600
676
  path: string;
601
- kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
677
+ kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
602
678
  bytes?: number | undefined;
603
679
  text?: string | null | undefined;
604
680
  }>>>;
@@ -1314,8 +1390,8 @@ export declare const ControlRunDetail: z.ZodObject<{
1314
1390
  webEvidence: {
1315
1391
  status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
1316
1392
  available: boolean;
1317
- mode: "off" | "auto" | "cached" | "live";
1318
1393
  target: string | null;
1394
+ mode: "off" | "auto" | "cached" | "live";
1319
1395
  tool: string | null;
1320
1396
  required: boolean;
1321
1397
  attempted: boolean;
@@ -1327,11 +1403,11 @@ export declare const ControlRunDetail: z.ZodObject<{
1327
1403
  requestRequirements: {
1328
1404
  requested: boolean;
1329
1405
  effective: boolean;
1330
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
1331
- evidence_refs: string[];
1332
1406
  harness_id: string;
1407
+ reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1408
+ evidence_refs: string[];
1333
1409
  eligible: boolean;
1334
- capability: "browser";
1410
+ capability: "browser" | "path_deny";
1335
1411
  }[];
1336
1412
  outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
1337
1413
  toolWarningsTotal: number;
@@ -1358,11 +1434,11 @@ export declare const ControlRunDetail: z.ZodObject<{
1358
1434
  verified: boolean;
1359
1435
  } | null;
1360
1436
  startedAt?: string | undefined;
1437
+ error?: string | undefined;
1361
1438
  createdAt?: string | undefined;
1362
1439
  mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
1363
1440
  prompt?: string | undefined;
1364
1441
  access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1365
- error?: string | undefined;
1366
1442
  harnesses?: string[] | undefined;
1367
1443
  runDir?: string | undefined;
1368
1444
  model?: string | undefined;
@@ -1397,6 +1473,22 @@ export declare const ControlRunDetail: z.ZodObject<{
1397
1473
  strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
1398
1474
  spendUsd?: number | null | undefined;
1399
1475
  spendEstimated?: boolean | undefined;
1476
+ inputTokens?: number | null | undefined;
1477
+ outputTokens?: number | null | undefined;
1478
+ cachedInputTokens?: number | null | undefined;
1479
+ outputConformance?: "passed" | "failed" | null | undefined;
1480
+ authRoute?: {
1481
+ source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1482
+ harnessId: string | null;
1483
+ requested: "auto" | "subscription" | "api_key";
1484
+ attemptId: string | null;
1485
+ effective: "unknown" | "api_key" | "local_session" | null;
1486
+ reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1487
+ modelMismatch: {
1488
+ requested: string;
1489
+ observed: string;
1490
+ } | null;
1491
+ } | null | undefined;
1400
1492
  requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1401
1493
  effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1402
1494
  webRequired?: boolean | undefined;
@@ -1471,7 +1563,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1471
1563
  lastSeq: number;
1472
1564
  primaryOutput: {
1473
1565
  path: string;
1474
- kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
1566
+ kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
1475
1567
  text: string | null;
1476
1568
  bytes?: number | undefined;
1477
1569
  } | null;
@@ -1583,11 +1675,11 @@ export declare const ControlRunDetail: z.ZodObject<{
1583
1675
  runId: string;
1584
1676
  jobId: string;
1585
1677
  startedAt?: string | undefined;
1678
+ error?: string | undefined;
1586
1679
  createdAt?: string | undefined;
1587
1680
  mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
1588
1681
  prompt?: string | undefined;
1589
1682
  access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1590
- error?: string | undefined;
1591
1683
  harnesses?: string[] | undefined;
1592
1684
  runDir?: string | undefined;
1593
1685
  model?: string | undefined;
@@ -1640,6 +1732,22 @@ export declare const ControlRunDetail: z.ZodObject<{
1640
1732
  strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
1641
1733
  spendUsd?: number | null | undefined;
1642
1734
  spendEstimated?: boolean | undefined;
1735
+ inputTokens?: number | null | undefined;
1736
+ outputTokens?: number | null | undefined;
1737
+ cachedInputTokens?: number | null | undefined;
1738
+ outputConformance?: "passed" | "failed" | null | undefined;
1739
+ authRoute?: {
1740
+ requested: "auto" | "subscription" | "api_key";
1741
+ reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1742
+ source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1743
+ harnessId?: string | null | undefined;
1744
+ attemptId?: string | null | undefined;
1745
+ effective?: "unknown" | "api_key" | "local_session" | null | undefined;
1746
+ modelMismatch?: {
1747
+ requested: string;
1748
+ observed: string;
1749
+ } | null | undefined;
1750
+ } | null | undefined;
1643
1751
  requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1644
1752
  effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1645
1753
  webRequired?: boolean | undefined;
@@ -1647,8 +1755,8 @@ export declare const ControlRunDetail: z.ZodObject<{
1647
1755
  webEvidence?: {
1648
1756
  status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
1649
1757
  available?: boolean | undefined;
1650
- mode?: "off" | "auto" | "cached" | "live" | undefined;
1651
1758
  target?: string | null | undefined;
1759
+ mode?: "off" | "auto" | "cached" | "live" | undefined;
1652
1760
  tool?: string | null | undefined;
1653
1761
  required?: boolean | undefined;
1654
1762
  attempted?: boolean | undefined;
@@ -1660,10 +1768,10 @@ export declare const ControlRunDetail: z.ZodObject<{
1660
1768
  requestRequirements?: {
1661
1769
  requested: boolean;
1662
1770
  effective: boolean;
1663
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
1664
1771
  harness_id: string;
1772
+ reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1665
1773
  eligible: boolean;
1666
- capability: "browser";
1774
+ capability: "browser" | "path_deny";
1667
1775
  evidence_refs?: string[] | undefined;
1668
1776
  }[] | undefined;
1669
1777
  toolPermissionPolicy?: Record<string, unknown> | undefined;
@@ -1776,7 +1884,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1776
1884
  lastSeq?: number | undefined;
1777
1885
  primaryOutput?: {
1778
1886
  path: string;
1779
- kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
1887
+ kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
1780
1888
  bytes?: number | undefined;
1781
1889
  text?: string | null | undefined;
1782
1890
  } | null | undefined;
@@ -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,KAAK,CAAC;AAgBxB;;;gCAGgC;AAChC,eAAO,MAAM,gBAAgB;;;;;;;;;IA2BzB,0DAA0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B3D,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BtC,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -265,9 +265,9 @@ export declare const ControlSpecSession: z.ZodObject<{
265
265
  updatedAt: z.ZodString;
266
266
  }, "strict", z.ZodTypeAny, {
267
267
  state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
268
+ error: string | null;
268
269
  createdAt: string;
269
270
  prompt: string;
270
- error: string | null;
271
271
  questions: {
272
272
  options: {
273
273
  id: string;
@@ -303,9 +303,9 @@ export declare const ControlSpecSession: z.ZodObject<{
303
303
  specDir: string | null;
304
304
  }, {
305
305
  state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
306
+ error: string | null;
306
307
  createdAt: string;
307
308
  prompt: string;
308
- error: string | null;
309
309
  questions: {
310
310
  id: string;
311
311
  prompt: string;
@@ -432,9 +432,9 @@ export declare const ControlSpecSessionListResponse: z.ZodObject<{
432
432
  updatedAt: z.ZodString;
433
433
  }, "strict", z.ZodTypeAny, {
434
434
  state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
435
+ error: string | null;
435
436
  createdAt: string;
436
437
  prompt: string;
437
- error: string | null;
438
438
  questions: {
439
439
  options: {
440
440
  id: string;
@@ -470,9 +470,9 @@ export declare const ControlSpecSessionListResponse: z.ZodObject<{
470
470
  specDir: string | null;
471
471
  }, {
472
472
  state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
473
+ error: string | null;
473
474
  createdAt: string;
474
475
  prompt: string;
475
- error: string | null;
476
476
  questions: {
477
477
  id: string;
478
478
  prompt: string;
@@ -510,9 +510,9 @@ export declare const ControlSpecSessionListResponse: z.ZodObject<{
510
510
  }, "strict", z.ZodTypeAny, {
511
511
  sessions: {
512
512
  state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
513
+ error: string | null;
513
514
  createdAt: string;
514
515
  prompt: string;
515
- error: string | null;
516
516
  questions: {
517
517
  options: {
518
518
  id: string;
@@ -550,9 +550,9 @@ export declare const ControlSpecSessionListResponse: z.ZodObject<{
550
550
  }, {
551
551
  sessions: {
552
552
  state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
553
+ error: string | null;
553
554
  createdAt: string;
554
555
  prompt: string;
555
- error: string | null;
556
556
  questions: {
557
557
  id: string;
558
558
  prompt: string;
@@ -115,7 +115,7 @@ export declare const ControlThreadApplyResponse: z.ZodObject<{
115
115
  refused?: boolean | undefined;
116
116
  }>>>;
117
117
  }, "strip", z.ZodTypeAny, {
118
- status: "applied" | "rejected" | "branched" | "committed" | "pr_opened" | "empty" | "conflict";
118
+ status: "rejected" | "applied" | "branched" | "committed" | "pr_opened" | "empty" | "conflict";
119
119
  detail: string | null;
120
120
  delivery: {
121
121
  mode: "apply" | "commit" | "branch" | "pr" | "artifact_only";
@@ -143,7 +143,7 @@ export declare const ControlThreadApplyResponse: z.ZodObject<{
143
143
  applied: boolean;
144
144
  headMoved: boolean;
145
145
  }, {
146
- status: "applied" | "rejected" | "branched" | "committed" | "pr_opened" | "empty" | "conflict";
146
+ status: "rejected" | "applied" | "branched" | "committed" | "pr_opened" | "empty" | "conflict";
147
147
  applied: boolean;
148
148
  detail?: string | null | undefined;
149
149
  delivery?: {