@claudexor/schema 3.0.4 → 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 (146) hide show
  1. package/dist/agent-capabilities.d.ts +45 -8
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +14 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +384 -18
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +20 -1
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/budget.d.ts +84 -9
  10. package/dist/budget.d.ts.map +1 -1
  11. package/dist/budget.js +46 -0
  12. package/dist/budget.js.map +1 -1
  13. package/dist/config.d.ts +97 -65
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/config.js +12 -1
  16. package/dist/config.js.map +1 -1
  17. package/dist/control-operation-responses.d.ts +311 -89
  18. package/dist/control-operation-responses.d.ts.map +1 -1
  19. package/dist/control-operation-responses.js +33 -3
  20. package/dist/control-operation-responses.js.map +1 -1
  21. package/dist/control-run-detail.d.ts +613 -163
  22. package/dist/control-run-detail.d.ts.map +1 -1
  23. package/dist/control-run-detail.js +28 -2
  24. package/dist/control-run-detail.js.map +1 -1
  25. package/dist/control-run-retry.d.ts +1 -1
  26. package/dist/control-run-scope.d.ts +1 -1
  27. package/dist/control-thread-apply.d.ts +10 -0
  28. package/dist/control-thread-apply.d.ts.map +1 -1
  29. package/dist/control.d.ts +791 -232
  30. package/dist/control.d.ts.map +1 -1
  31. package/dist/control.js +76 -2
  32. package/dist/control.js.map +1 -1
  33. package/dist/decision.d.ts +205 -9
  34. package/dist/decision.d.ts.map +1 -1
  35. package/dist/decision.js +69 -1
  36. package/dist/decision.js.map +1 -1
  37. package/dist/deep-scan.d.ts +27 -0
  38. package/dist/deep-scan.d.ts.map +1 -0
  39. package/dist/deep-scan.js +27 -0
  40. package/dist/deep-scan.js.map +1 -0
  41. package/dist/delivery.d.ts +13 -0
  42. package/dist/delivery.d.ts.map +1 -1
  43. package/dist/delivery.js +15 -0
  44. package/dist/delivery.js.map +1 -1
  45. package/dist/effort.d.ts +132 -0
  46. package/dist/effort.d.ts.map +1 -0
  47. package/dist/effort.js +167 -0
  48. package/dist/effort.js.map +1 -0
  49. package/dist/events.d.ts +59 -4
  50. package/dist/events.d.ts.map +1 -1
  51. package/dist/events.js +91 -0
  52. package/dist/events.js.map +1 -1
  53. package/dist/gate.d.ts +2 -2
  54. package/dist/harness.d.ts +209 -28
  55. package/dist/harness.d.ts.map +1 -1
  56. package/dist/harness.js +107 -14
  57. package/dist/harness.js.map +1 -1
  58. package/dist/index.d.ts +4 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +4 -0
  61. package/dist/index.js.map +1 -1
  62. package/dist/operation.d.ts +193 -10
  63. package/dist/operation.d.ts.map +1 -1
  64. package/dist/operation.js +45 -0
  65. package/dist/operation.js.map +1 -1
  66. package/dist/output-schema-dialect.d.ts +22 -0
  67. package/dist/output-schema-dialect.d.ts.map +1 -0
  68. package/dist/output-schema-dialect.js +37 -0
  69. package/dist/output-schema-dialect.js.map +1 -0
  70. package/dist/output-schema.d.ts +26 -2
  71. package/dist/output-schema.d.ts.map +1 -1
  72. package/dist/output-schema.js +313 -16
  73. package/dist/output-schema.js.map +1 -1
  74. package/dist/plan.d.ts +2 -2
  75. package/dist/problem.d.ts +3 -3
  76. package/dist/project.d.ts +47 -12
  77. package/dist/project.d.ts.map +1 -1
  78. package/dist/project.js +32 -0
  79. package/dist/project.js.map +1 -1
  80. package/dist/readiness.d.ts +62 -7
  81. package/dist/readiness.d.ts.map +1 -1
  82. package/dist/recovery.d.ts +14 -14
  83. package/dist/review.d.ts +7 -7
  84. package/dist/route.d.ts +2 -2
  85. package/dist/setup.d.ts +288 -94
  86. package/dist/setup.d.ts.map +1 -1
  87. package/dist/setup.js +90 -6
  88. package/dist/setup.js.map +1 -1
  89. package/dist/status-projection.d.ts +79 -4
  90. package/dist/status-projection.d.ts.map +1 -1
  91. package/dist/status-projection.js +161 -4
  92. package/dist/status-projection.js.map +1 -1
  93. package/dist/task.d.ts +70 -53
  94. package/dist/task.d.ts.map +1 -1
  95. package/dist/task.js +18 -8
  96. package/dist/task.js.map +1 -1
  97. package/dist/telemetry.d.ts +795 -32
  98. package/dist/telemetry.d.ts.map +1 -1
  99. package/dist/telemetry.js +177 -4
  100. package/dist/telemetry.js.map +1 -1
  101. package/dist/tool-ref.d.ts +14 -0
  102. package/dist/tool-ref.d.ts.map +1 -1
  103. package/dist/tool-ref.js +15 -0
  104. package/dist/tool-ref.js.map +1 -1
  105. package/dist/work-report.d.ts +131 -0
  106. package/dist/work-report.d.ts.map +1 -0
  107. package/dist/work-report.js +124 -0
  108. package/dist/work-report.js.map +1 -0
  109. package/dist/workspace.d.ts +2 -2
  110. package/generated/AgentCapabilityCatalog.schema.json +39 -8
  111. package/generated/ControlApplyCheckResponse.schema.json +5 -0
  112. package/generated/ControlDeliveryResponse.schema.json +14 -0
  113. package/generated/ControlHarnessListResponse.schema.json +64 -9
  114. package/generated/ControlHarnessSettingsPatch.schema.json +4 -8
  115. package/generated/ControlOperationCatalog.schema.json +74 -0
  116. package/generated/ControlOperationDescriptor.schema.json +74 -0
  117. package/generated/ControlOperationParameter.schema.json +75 -0
  118. package/generated/ControlProjectRemoveReceipt.schema.json +58 -0
  119. package/generated/ControlRunAgainDraft.schema.json +14 -7
  120. package/generated/ControlRunDetail.schema.json +406 -16
  121. package/generated/ControlRunListResponse.schema.json +232 -10
  122. package/generated/ControlRunStartRequest.schema.json +14 -7
  123. package/generated/ControlRunSummary.schema.json +218 -9
  124. package/generated/ControlSettingsSnapshot.schema.json +4 -8
  125. package/generated/ControlSettingsUpdateRequest.schema.json +4 -8
  126. package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
  127. package/generated/ControlSetupJobEvent.schema.json +28 -0
  128. package/generated/ControlSetupJobSnapshot.schema.json +28 -0
  129. package/generated/ControlThreadApplyResponse.schema.json +14 -0
  130. package/generated/ControlThreadDetail.schema.json +94 -1
  131. package/generated/ControlThreadTurnRequest.schema.json +14 -7
  132. package/generated/DecisionRecord.schema.json +178 -2
  133. package/generated/GlobalConfig.schema.json +4 -8
  134. package/generated/HarnessEvent.schema.json +79 -1
  135. package/generated/HarnessManifest.schema.json +64 -9
  136. package/generated/HarnessStatusDto.schema.json +64 -9
  137. package/generated/McpRunHandleResult.schema.json +286 -1
  138. package/generated/McpRunToolResult.schema.json +171 -1
  139. package/generated/ProjectConfig.schema.json +26 -0
  140. package/generated/RoutePoolDegradedPayload.schema.json +79 -0
  141. package/generated/RunEvent.schema.json +8 -1
  142. package/generated/RunFailure.schema.json +23 -1
  143. package/generated/RunTelemetry.schema.json +376 -1
  144. package/generated/StructuredOutputConformance.schema.json +83 -0
  145. package/generated/TaskContract.schema.json +13 -1
  146. package/package.json +2 -2
package/dist/setup.d.ts CHANGED
@@ -348,42 +348,42 @@ export declare const SetupNativeCommandReceipt: z.ZodEffects<z.ZodObject<{
348
348
  }, "strict", z.ZodTypeAny, {
349
349
  commandDigest: string;
350
350
  finishedAt: string;
351
+ signal: string | null;
351
352
  executionId: string;
352
353
  manifestDigest: string;
353
354
  permitIssuedAt: string | null;
354
355
  commandStarted: boolean;
355
356
  exitCode: number | null;
356
- signal: string | null;
357
357
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
358
358
  }, {
359
359
  commandDigest: string;
360
360
  finishedAt: string;
361
+ signal: string | null;
361
362
  executionId: string;
362
363
  manifestDigest: string;
363
364
  permitIssuedAt: string | null;
364
365
  commandStarted: boolean;
365
366
  exitCode: number | null;
366
- signal: string | null;
367
367
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
368
368
  }>, {
369
369
  commandDigest: string;
370
370
  finishedAt: string;
371
+ signal: string | null;
371
372
  executionId: string;
372
373
  manifestDigest: string;
373
374
  permitIssuedAt: string | null;
374
375
  commandStarted: boolean;
375
376
  exitCode: number | null;
376
- signal: string | null;
377
377
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
378
378
  }, {
379
379
  commandDigest: string;
380
380
  finishedAt: string;
381
+ signal: string | null;
381
382
  executionId: string;
382
383
  manifestDigest: string;
383
384
  permitIssuedAt: string | null;
384
385
  commandStarted: boolean;
385
386
  exitCode: number | null;
386
- signal: string | null;
387
387
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
388
388
  }>;
389
389
  export type SetupNativeCommandReceipt = z.infer<typeof SetupNativeCommandReceipt>;
@@ -405,12 +405,12 @@ export declare const ControlSetupJobOutcome: z.ZodObject<{
405
405
  signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
406
  }, "strict", z.ZodTypeAny, {
407
407
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
408
- exitCode?: number | null | undefined;
409
408
  signal?: string | null | undefined;
409
+ exitCode?: number | null | undefined;
410
410
  }, {
411
411
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
412
- exitCode?: number | null | undefined;
413
412
  signal?: string | null | undefined;
413
+ exitCode?: number | null | undefined;
414
414
  }>;
415
415
  export type ControlSetupJobOutcome = z.infer<typeof ControlSetupJobOutcome>;
416
416
  export declare const SetupTerminationReconciliation: z.ZodObject<{
@@ -434,35 +434,39 @@ export declare const ControlSetupJobCreateRequest: z.ZodEffects<z.ZodObject<{
434
434
  * Absent = the harness's default session (unchanged behavior). */
435
435
  profileId: z.ZodOptional<z.ZodString>;
436
436
  /** Codex-only interactive login flow selection. Default (absent) is
437
- * device_auth — completed in an isolated browser context it avoids the
438
- * account-switch trigger that revokes sibling OpenAI sessions
439
- * (v3.0.3 S6, live-verified). browser_redirect is the explicit opt-in
440
- * localhost-callback flow. */
441
- loginFlow: z.ZodOptional<z.ZodEnum<["device_auth", "browser_redirect"]>>;
437
+ * device_auth — the D-17 primary flow: typed device-code over the official
438
+ * codex app-server (NO Terminal), completed in an isolated browser context
439
+ * it avoids the account-switch trigger that revokes sibling OpenAI sessions
440
+ * (v3.0.3 S6, live-verified). browser_callback is the secondary opt-in
441
+ * app-server flow (`account/login/start {type:"chatgpt"}` → authUrl, no
442
+ * one-time code). browser_redirect is the explicit legacy Terminal
443
+ * localhost-callback flow (the typed fallback when the app-server lacks
444
+ * the auth methods). */
445
+ loginFlow: z.ZodOptional<z.ZodEnum<["device_auth", "browser_callback", "browser_redirect"]>>;
442
446
  }, "strict", z.ZodTypeAny, {
443
447
  authRequest: "subscription";
444
448
  harness: "cursor" | "codex" | "claude";
445
449
  action: "login";
446
450
  profileId?: string | undefined;
447
- loginFlow?: "device_auth" | "browser_redirect" | undefined;
451
+ loginFlow?: "device_auth" | "browser_callback" | "browser_redirect" | undefined;
448
452
  }, {
449
453
  authRequest: "subscription";
450
454
  harness: "cursor" | "codex" | "claude";
451
455
  action: "login";
452
456
  profileId?: string | undefined;
453
- loginFlow?: "device_auth" | "browser_redirect" | undefined;
457
+ loginFlow?: "device_auth" | "browser_callback" | "browser_redirect" | undefined;
454
458
  }>, {
455
459
  authRequest: "subscription";
456
460
  harness: "cursor" | "codex" | "claude";
457
461
  action: "login";
458
462
  profileId?: string | undefined;
459
- loginFlow?: "device_auth" | "browser_redirect" | undefined;
463
+ loginFlow?: "device_auth" | "browser_callback" | "browser_redirect" | undefined;
460
464
  }, {
461
465
  authRequest: "subscription";
462
466
  harness: "cursor" | "codex" | "claude";
463
467
  action: "login";
464
468
  profileId?: string | undefined;
465
- loginFlow?: "device_auth" | "browser_redirect" | undefined;
469
+ loginFlow?: "device_auth" | "browser_callback" | "browser_redirect" | undefined;
466
470
  }>;
467
471
  export type ControlSetupJobCreateRequest = z.infer<typeof ControlSetupJobCreateRequest>;
468
472
  export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
@@ -480,12 +484,12 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
480
484
  signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
485
  }, "strict", z.ZodTypeAny, {
482
486
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
483
- exitCode?: number | null | undefined;
484
487
  signal?: string | null | undefined;
488
+ exitCode?: number | null | undefined;
485
489
  }, {
486
490
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
487
- exitCode?: number | null | undefined;
488
491
  signal?: string | null | undefined;
492
+ exitCode?: number | null | undefined;
489
493
  }>>;
490
494
  command: z.ZodNullable<z.ZodString>;
491
495
  guideUrl: z.ZodNullable<z.ZodString>;
@@ -1580,42 +1584,42 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
1580
1584
  }, "strict", z.ZodTypeAny, {
1581
1585
  commandDigest: string;
1582
1586
  finishedAt: string;
1587
+ signal: string | null;
1583
1588
  executionId: string;
1584
1589
  manifestDigest: string;
1585
1590
  permitIssuedAt: string | null;
1586
1591
  commandStarted: boolean;
1587
1592
  exitCode: number | null;
1588
- signal: string | null;
1589
1593
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
1590
1594
  }, {
1591
1595
  commandDigest: string;
1592
1596
  finishedAt: string;
1597
+ signal: string | null;
1593
1598
  executionId: string;
1594
1599
  manifestDigest: string;
1595
1600
  permitIssuedAt: string | null;
1596
1601
  commandStarted: boolean;
1597
1602
  exitCode: number | null;
1598
- signal: string | null;
1599
1603
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
1600
1604
  }>, {
1601
1605
  commandDigest: string;
1602
1606
  finishedAt: string;
1607
+ signal: string | null;
1603
1608
  executionId: string;
1604
1609
  manifestDigest: string;
1605
1610
  permitIssuedAt: string | null;
1606
1611
  commandStarted: boolean;
1607
1612
  exitCode: number | null;
1608
- signal: string | null;
1609
1613
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
1610
1614
  }, {
1611
1615
  commandDigest: string;
1612
1616
  finishedAt: string;
1617
+ signal: string | null;
1613
1618
  executionId: string;
1614
1619
  manifestDigest: string;
1615
1620
  permitIssuedAt: string | null;
1616
1621
  commandStarted: boolean;
1617
1622
  exitCode: number | null;
1618
- signal: string | null;
1619
1623
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
1620
1624
  }>>;
1621
1625
  terminationReconciliation: z.ZodOptional<z.ZodObject<{
@@ -1662,8 +1666,8 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
1662
1666
  } | undefined;
1663
1667
  outcome?: {
1664
1668
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
1665
- exitCode?: number | null | undefined;
1666
1669
  signal?: string | null | undefined;
1670
+ exitCode?: number | null | undefined;
1667
1671
  } | undefined;
1668
1672
  deadlineAt?: string | undefined;
1669
1673
  authCapability?: {
@@ -1796,12 +1800,12 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
1796
1800
  nativeCommand?: {
1797
1801
  commandDigest: string;
1798
1802
  finishedAt: string;
1803
+ signal: string | null;
1799
1804
  executionId: string;
1800
1805
  manifestDigest: string;
1801
1806
  permitIssuedAt: string | null;
1802
1807
  commandStarted: boolean;
1803
1808
  exitCode: number | null;
1804
- signal: string | null;
1805
1809
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
1806
1810
  } | undefined;
1807
1811
  terminationReconciliation?: {
@@ -1842,8 +1846,8 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
1842
1846
  } | undefined;
1843
1847
  outcome?: {
1844
1848
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
1845
- exitCode?: number | null | undefined;
1846
1849
  signal?: string | null | undefined;
1850
+ exitCode?: number | null | undefined;
1847
1851
  } | undefined;
1848
1852
  deadlineAt?: string | undefined;
1849
1853
  authCapability?: {
@@ -1976,12 +1980,12 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
1976
1980
  nativeCommand?: {
1977
1981
  commandDigest: string;
1978
1982
  finishedAt: string;
1983
+ signal: string | null;
1979
1984
  executionId: string;
1980
1985
  manifestDigest: string;
1981
1986
  permitIssuedAt: string | null;
1982
1987
  commandStarted: boolean;
1983
1988
  exitCode: number | null;
1984
- signal: string | null;
1985
1989
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
1986
1990
  } | undefined;
1987
1991
  terminationReconciliation?: {
@@ -2022,8 +2026,8 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
2022
2026
  } | undefined;
2023
2027
  outcome?: {
2024
2028
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
2025
- exitCode?: number | null | undefined;
2026
2029
  signal?: string | null | undefined;
2030
+ exitCode?: number | null | undefined;
2027
2031
  } | undefined;
2028
2032
  deadlineAt?: string | undefined;
2029
2033
  authCapability?: {
@@ -2156,12 +2160,12 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
2156
2160
  nativeCommand?: {
2157
2161
  commandDigest: string;
2158
2162
  finishedAt: string;
2163
+ signal: string | null;
2159
2164
  executionId: string;
2160
2165
  manifestDigest: string;
2161
2166
  permitIssuedAt: string | null;
2162
2167
  commandStarted: boolean;
2163
2168
  exitCode: number | null;
2164
- signal: string | null;
2165
2169
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
2166
2170
  } | undefined;
2167
2171
  terminationReconciliation?: {
@@ -2202,8 +2206,8 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
2202
2206
  } | undefined;
2203
2207
  outcome?: {
2204
2208
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
2205
- exitCode?: number | null | undefined;
2206
2209
  signal?: string | null | undefined;
2210
+ exitCode?: number | null | undefined;
2207
2211
  } | undefined;
2208
2212
  deadlineAt?: string | undefined;
2209
2213
  authCapability?: {
@@ -2336,12 +2340,12 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
2336
2340
  nativeCommand?: {
2337
2341
  commandDigest: string;
2338
2342
  finishedAt: string;
2343
+ signal: string | null;
2339
2344
  executionId: string;
2340
2345
  manifestDigest: string;
2341
2346
  permitIssuedAt: string | null;
2342
2347
  commandStarted: boolean;
2343
2348
  exitCode: number | null;
2344
- signal: string | null;
2345
2349
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
2346
2350
  } | undefined;
2347
2351
  terminationReconciliation?: {
@@ -2350,6 +2354,34 @@ export declare const ControlSetupJob: z.ZodEffects<z.ZodObject<{
2350
2354
  } | undefined;
2351
2355
  }>;
2352
2356
  export type ControlSetupJob = z.infer<typeof ControlSetupJob>;
2357
+ /** The two app-server device-code login flows (D-17 primary path). */
2358
+ export declare const SetupAppServerLoginFlow: z.ZodEnum<["chatgptDeviceCode", "chatgpt"]>;
2359
+ export type SetupAppServerLoginFlow = z.infer<typeof SetupAppServerLoginFlow>;
2360
+ /**
2361
+ * TRANSIENT device-code disclosure surfaced by the D-17 app-server login flow.
2362
+ *
2363
+ * This is a READ-TIME PROJECTION ONLY: it is overlaid on a setup-job snapshot /
2364
+ * SSE frame from the runner's transient device-code sidecar and is NEVER a
2365
+ * field of the journaled {@link ControlSetupJob}. The one-time `userCode` is
2366
+ * never journaled, logged, or persisted to the durable result receipt
2367
+ * (INV-062 / D-17); the journal records only THAT a code was disclosed via the
2368
+ * awaiting_user phase transition. `userCode` is empty for the browser-callback
2369
+ * (`chatgpt`) flow, which surfaces only an authUrl.
2370
+ */
2371
+ export declare const SetupDeviceCodeDisclosure: z.ZodObject<{
2372
+ flow: z.ZodEnum<["chatgptDeviceCode", "chatgpt"]>;
2373
+ verificationUrl: z.ZodString;
2374
+ userCode: z.ZodString;
2375
+ }, "strict", z.ZodTypeAny, {
2376
+ flow: "chatgptDeviceCode" | "chatgpt";
2377
+ verificationUrl: string;
2378
+ userCode: string;
2379
+ }, {
2380
+ flow: "chatgptDeviceCode" | "chatgpt";
2381
+ verificationUrl: string;
2382
+ userCode: string;
2383
+ }>;
2384
+ export type SetupDeviceCodeDisclosure = z.infer<typeof SetupDeviceCodeDisclosure>;
2353
2385
  export declare const ControlSetupJobListFilter: z.ZodObject<{
2354
2386
  harness: z.ZodOptional<z.ZodEnum<["codex", "claude", "cursor"]>>;
2355
2387
  action: z.ZodOptional<z.ZodLiteral<"login">>;
@@ -2391,12 +2423,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
2391
2423
  signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2392
2424
  }, "strict", z.ZodTypeAny, {
2393
2425
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
2394
- exitCode?: number | null | undefined;
2395
2426
  signal?: string | null | undefined;
2427
+ exitCode?: number | null | undefined;
2396
2428
  }, {
2397
2429
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
2398
- exitCode?: number | null | undefined;
2399
2430
  signal?: string | null | undefined;
2431
+ exitCode?: number | null | undefined;
2400
2432
  }>>;
2401
2433
  command: z.ZodNullable<z.ZodString>;
2402
2434
  guideUrl: z.ZodNullable<z.ZodString>;
@@ -3491,42 +3523,42 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
3491
3523
  }, "strict", z.ZodTypeAny, {
3492
3524
  commandDigest: string;
3493
3525
  finishedAt: string;
3526
+ signal: string | null;
3494
3527
  executionId: string;
3495
3528
  manifestDigest: string;
3496
3529
  permitIssuedAt: string | null;
3497
3530
  commandStarted: boolean;
3498
3531
  exitCode: number | null;
3499
- signal: string | null;
3500
3532
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
3501
3533
  }, {
3502
3534
  commandDigest: string;
3503
3535
  finishedAt: string;
3536
+ signal: string | null;
3504
3537
  executionId: string;
3505
3538
  manifestDigest: string;
3506
3539
  permitIssuedAt: string | null;
3507
3540
  commandStarted: boolean;
3508
3541
  exitCode: number | null;
3509
- signal: string | null;
3510
3542
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
3511
3543
  }>, {
3512
3544
  commandDigest: string;
3513
3545
  finishedAt: string;
3546
+ signal: string | null;
3514
3547
  executionId: string;
3515
3548
  manifestDigest: string;
3516
3549
  permitIssuedAt: string | null;
3517
3550
  commandStarted: boolean;
3518
3551
  exitCode: number | null;
3519
- signal: string | null;
3520
3552
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
3521
3553
  }, {
3522
3554
  commandDigest: string;
3523
3555
  finishedAt: string;
3556
+ signal: string | null;
3524
3557
  executionId: string;
3525
3558
  manifestDigest: string;
3526
3559
  permitIssuedAt: string | null;
3527
3560
  commandStarted: boolean;
3528
3561
  exitCode: number | null;
3529
- signal: string | null;
3530
3562
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
3531
3563
  }>>;
3532
3564
  terminationReconciliation: z.ZodOptional<z.ZodObject<{
@@ -3573,8 +3605,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
3573
3605
  } | undefined;
3574
3606
  outcome?: {
3575
3607
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
3576
- exitCode?: number | null | undefined;
3577
3608
  signal?: string | null | undefined;
3609
+ exitCode?: number | null | undefined;
3578
3610
  } | undefined;
3579
3611
  deadlineAt?: string | undefined;
3580
3612
  authCapability?: {
@@ -3707,12 +3739,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
3707
3739
  nativeCommand?: {
3708
3740
  commandDigest: string;
3709
3741
  finishedAt: string;
3742
+ signal: string | null;
3710
3743
  executionId: string;
3711
3744
  manifestDigest: string;
3712
3745
  permitIssuedAt: string | null;
3713
3746
  commandStarted: boolean;
3714
3747
  exitCode: number | null;
3715
- signal: string | null;
3716
3748
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
3717
3749
  } | undefined;
3718
3750
  terminationReconciliation?: {
@@ -3753,8 +3785,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
3753
3785
  } | undefined;
3754
3786
  outcome?: {
3755
3787
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
3756
- exitCode?: number | null | undefined;
3757
3788
  signal?: string | null | undefined;
3789
+ exitCode?: number | null | undefined;
3758
3790
  } | undefined;
3759
3791
  deadlineAt?: string | undefined;
3760
3792
  authCapability?: {
@@ -3887,12 +3919,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
3887
3919
  nativeCommand?: {
3888
3920
  commandDigest: string;
3889
3921
  finishedAt: string;
3922
+ signal: string | null;
3890
3923
  executionId: string;
3891
3924
  manifestDigest: string;
3892
3925
  permitIssuedAt: string | null;
3893
3926
  commandStarted: boolean;
3894
3927
  exitCode: number | null;
3895
- signal: string | null;
3896
3928
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
3897
3929
  } | undefined;
3898
3930
  terminationReconciliation?: {
@@ -3933,8 +3965,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
3933
3965
  } | undefined;
3934
3966
  outcome?: {
3935
3967
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
3936
- exitCode?: number | null | undefined;
3937
3968
  signal?: string | null | undefined;
3969
+ exitCode?: number | null | undefined;
3938
3970
  } | undefined;
3939
3971
  deadlineAt?: string | undefined;
3940
3972
  authCapability?: {
@@ -4067,12 +4099,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4067
4099
  nativeCommand?: {
4068
4100
  commandDigest: string;
4069
4101
  finishedAt: string;
4102
+ signal: string | null;
4070
4103
  executionId: string;
4071
4104
  manifestDigest: string;
4072
4105
  permitIssuedAt: string | null;
4073
4106
  commandStarted: boolean;
4074
4107
  exitCode: number | null;
4075
- signal: string | null;
4076
4108
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
4077
4109
  } | undefined;
4078
4110
  terminationReconciliation?: {
@@ -4113,8 +4145,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4113
4145
  } | undefined;
4114
4146
  outcome?: {
4115
4147
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
4116
- exitCode?: number | null | undefined;
4117
4148
  signal?: string | null | undefined;
4149
+ exitCode?: number | null | undefined;
4118
4150
  } | undefined;
4119
4151
  deadlineAt?: string | undefined;
4120
4152
  authCapability?: {
@@ -4247,12 +4279,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4247
4279
  nativeCommand?: {
4248
4280
  commandDigest: string;
4249
4281
  finishedAt: string;
4282
+ signal: string | null;
4250
4283
  executionId: string;
4251
4284
  manifestDigest: string;
4252
4285
  permitIssuedAt: string | null;
4253
4286
  commandStarted: boolean;
4254
4287
  exitCode: number | null;
4255
- signal: string | null;
4256
4288
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
4257
4289
  } | undefined;
4258
4290
  terminationReconciliation?: {
@@ -4260,6 +4292,19 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4260
4292
  observedAt: string;
4261
4293
  } | undefined;
4262
4294
  }>;
4295
+ deviceCode: z.ZodOptional<z.ZodObject<{
4296
+ flow: z.ZodEnum<["chatgptDeviceCode", "chatgpt"]>;
4297
+ verificationUrl: z.ZodString;
4298
+ userCode: z.ZodString;
4299
+ }, "strict", z.ZodTypeAny, {
4300
+ flow: "chatgptDeviceCode" | "chatgpt";
4301
+ verificationUrl: string;
4302
+ userCode: string;
4303
+ }, {
4304
+ flow: "chatgptDeviceCode" | "chatgpt";
4305
+ verificationUrl: string;
4306
+ userCode: string;
4307
+ }>>;
4263
4308
  }, "strict", z.ZodTypeAny, {
4264
4309
  message: string;
4265
4310
  cursor: string;
@@ -4303,8 +4348,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4303
4348
  } | undefined;
4304
4349
  outcome?: {
4305
4350
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
4306
- exitCode?: number | null | undefined;
4307
4351
  signal?: string | null | undefined;
4352
+ exitCode?: number | null | undefined;
4308
4353
  } | undefined;
4309
4354
  deadlineAt?: string | undefined;
4310
4355
  authCapability?: {
@@ -4437,12 +4482,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4437
4482
  nativeCommand?: {
4438
4483
  commandDigest: string;
4439
4484
  finishedAt: string;
4485
+ signal: string | null;
4440
4486
  executionId: string;
4441
4487
  manifestDigest: string;
4442
4488
  permitIssuedAt: string | null;
4443
4489
  commandStarted: boolean;
4444
4490
  exitCode: number | null;
4445
- signal: string | null;
4446
4491
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
4447
4492
  } | undefined;
4448
4493
  terminationReconciliation?: {
@@ -4450,6 +4495,11 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4450
4495
  observedAt: string;
4451
4496
  } | undefined;
4452
4497
  };
4498
+ deviceCode?: {
4499
+ flow: "chatgptDeviceCode" | "chatgpt";
4500
+ verificationUrl: string;
4501
+ userCode: string;
4502
+ } | undefined;
4453
4503
  }, {
4454
4504
  message: string;
4455
4505
  cursor: string;
@@ -4493,8 +4543,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4493
4543
  } | undefined;
4494
4544
  outcome?: {
4495
4545
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
4496
- exitCode?: number | null | undefined;
4497
4546
  signal?: string | null | undefined;
4547
+ exitCode?: number | null | undefined;
4498
4548
  } | undefined;
4499
4549
  deadlineAt?: string | undefined;
4500
4550
  authCapability?: {
@@ -4627,12 +4677,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4627
4677
  nativeCommand?: {
4628
4678
  commandDigest: string;
4629
4679
  finishedAt: string;
4680
+ signal: string | null;
4630
4681
  executionId: string;
4631
4682
  manifestDigest: string;
4632
4683
  permitIssuedAt: string | null;
4633
4684
  commandStarted: boolean;
4634
4685
  exitCode: number | null;
4635
- signal: string | null;
4636
4686
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
4637
4687
  } | undefined;
4638
4688
  terminationReconciliation?: {
@@ -4640,6 +4690,11 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4640
4690
  observedAt: string;
4641
4691
  } | undefined;
4642
4692
  };
4693
+ deviceCode?: {
4694
+ flow: "chatgptDeviceCode" | "chatgpt";
4695
+ verificationUrl: string;
4696
+ userCode: string;
4697
+ } | undefined;
4643
4698
  }>, {
4644
4699
  message: string;
4645
4700
  cursor: string;
@@ -4683,8 +4738,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4683
4738
  } | undefined;
4684
4739
  outcome?: {
4685
4740
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
4686
- exitCode?: number | null | undefined;
4687
4741
  signal?: string | null | undefined;
4742
+ exitCode?: number | null | undefined;
4688
4743
  } | undefined;
4689
4744
  deadlineAt?: string | undefined;
4690
4745
  authCapability?: {
@@ -4817,12 +4872,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4817
4872
  nativeCommand?: {
4818
4873
  commandDigest: string;
4819
4874
  finishedAt: string;
4875
+ signal: string | null;
4820
4876
  executionId: string;
4821
4877
  manifestDigest: string;
4822
4878
  permitIssuedAt: string | null;
4823
4879
  commandStarted: boolean;
4824
4880
  exitCode: number | null;
4825
- signal: string | null;
4826
4881
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
4827
4882
  } | undefined;
4828
4883
  terminationReconciliation?: {
@@ -4830,6 +4885,11 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4830
4885
  observedAt: string;
4831
4886
  } | undefined;
4832
4887
  };
4888
+ deviceCode?: {
4889
+ flow: "chatgptDeviceCode" | "chatgpt";
4890
+ verificationUrl: string;
4891
+ userCode: string;
4892
+ } | undefined;
4833
4893
  }, {
4834
4894
  message: string;
4835
4895
  cursor: string;
@@ -4873,8 +4933,8 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
4873
4933
  } | undefined;
4874
4934
  outcome?: {
4875
4935
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
4876
- exitCode?: number | null | undefined;
4877
4936
  signal?: string | null | undefined;
4937
+ exitCode?: number | null | undefined;
4878
4938
  } | undefined;
4879
4939
  deadlineAt?: string | undefined;
4880
4940
  authCapability?: {
@@ -5007,12 +5067,12 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
5007
5067
  nativeCommand?: {
5008
5068
  commandDigest: string;
5009
5069
  finishedAt: string;
5070
+ signal: string | null;
5010
5071
  executionId: string;
5011
5072
  manifestDigest: string;
5012
5073
  permitIssuedAt: string | null;
5013
5074
  commandStarted: boolean;
5014
5075
  exitCode: number | null;
5015
- signal: string | null;
5016
5076
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
5017
5077
  } | undefined;
5018
5078
  terminationReconciliation?: {
@@ -5020,6 +5080,11 @@ export declare const ControlSetupJobEvent: z.ZodEffects<z.ZodObject<{
5020
5080
  observedAt: string;
5021
5081
  } | undefined;
5022
5082
  };
5083
+ deviceCode?: {
5084
+ flow: "chatgptDeviceCode" | "chatgpt";
5085
+ verificationUrl: string;
5086
+ userCode: string;
5087
+ } | undefined;
5023
5088
  }>;
5024
5089
  export type ControlSetupJobEvent = z.infer<typeof ControlSetupJobEvent>;
5025
5090
  export declare const ControlSetupJobSnapshot: z.ZodObject<{
@@ -5038,12 +5103,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
5038
5103
  signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5039
5104
  }, "strict", z.ZodTypeAny, {
5040
5105
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
5041
- exitCode?: number | null | undefined;
5042
5106
  signal?: string | null | undefined;
5107
+ exitCode?: number | null | undefined;
5043
5108
  }, {
5044
5109
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
5045
- exitCode?: number | null | undefined;
5046
5110
  signal?: string | null | undefined;
5111
+ exitCode?: number | null | undefined;
5047
5112
  }>>;
5048
5113
  command: z.ZodNullable<z.ZodString>;
5049
5114
  guideUrl: z.ZodNullable<z.ZodString>;
@@ -6138,42 +6203,42 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6138
6203
  }, "strict", z.ZodTypeAny, {
6139
6204
  commandDigest: string;
6140
6205
  finishedAt: string;
6206
+ signal: string | null;
6141
6207
  executionId: string;
6142
6208
  manifestDigest: string;
6143
6209
  permitIssuedAt: string | null;
6144
6210
  commandStarted: boolean;
6145
6211
  exitCode: number | null;
6146
- signal: string | null;
6147
6212
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6148
6213
  }, {
6149
6214
  commandDigest: string;
6150
6215
  finishedAt: string;
6216
+ signal: string | null;
6151
6217
  executionId: string;
6152
6218
  manifestDigest: string;
6153
6219
  permitIssuedAt: string | null;
6154
6220
  commandStarted: boolean;
6155
6221
  exitCode: number | null;
6156
- signal: string | null;
6157
6222
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6158
6223
  }>, {
6159
6224
  commandDigest: string;
6160
6225
  finishedAt: string;
6226
+ signal: string | null;
6161
6227
  executionId: string;
6162
6228
  manifestDigest: string;
6163
6229
  permitIssuedAt: string | null;
6164
6230
  commandStarted: boolean;
6165
6231
  exitCode: number | null;
6166
- signal: string | null;
6167
6232
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6168
6233
  }, {
6169
6234
  commandDigest: string;
6170
6235
  finishedAt: string;
6236
+ signal: string | null;
6171
6237
  executionId: string;
6172
6238
  manifestDigest: string;
6173
6239
  permitIssuedAt: string | null;
6174
6240
  commandStarted: boolean;
6175
6241
  exitCode: number | null;
6176
- signal: string | null;
6177
6242
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6178
6243
  }>>;
6179
6244
  terminationReconciliation: z.ZodOptional<z.ZodObject<{
@@ -6220,8 +6285,8 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6220
6285
  } | undefined;
6221
6286
  outcome?: {
6222
6287
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
6223
- exitCode?: number | null | undefined;
6224
6288
  signal?: string | null | undefined;
6289
+ exitCode?: number | null | undefined;
6225
6290
  } | undefined;
6226
6291
  deadlineAt?: string | undefined;
6227
6292
  authCapability?: {
@@ -6354,12 +6419,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6354
6419
  nativeCommand?: {
6355
6420
  commandDigest: string;
6356
6421
  finishedAt: string;
6422
+ signal: string | null;
6357
6423
  executionId: string;
6358
6424
  manifestDigest: string;
6359
6425
  permitIssuedAt: string | null;
6360
6426
  commandStarted: boolean;
6361
6427
  exitCode: number | null;
6362
- signal: string | null;
6363
6428
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6364
6429
  } | undefined;
6365
6430
  terminationReconciliation?: {
@@ -6400,8 +6465,8 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6400
6465
  } | undefined;
6401
6466
  outcome?: {
6402
6467
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
6403
- exitCode?: number | null | undefined;
6404
6468
  signal?: string | null | undefined;
6469
+ exitCode?: number | null | undefined;
6405
6470
  } | undefined;
6406
6471
  deadlineAt?: string | undefined;
6407
6472
  authCapability?: {
@@ -6534,12 +6599,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6534
6599
  nativeCommand?: {
6535
6600
  commandDigest: string;
6536
6601
  finishedAt: string;
6602
+ signal: string | null;
6537
6603
  executionId: string;
6538
6604
  manifestDigest: string;
6539
6605
  permitIssuedAt: string | null;
6540
6606
  commandStarted: boolean;
6541
6607
  exitCode: number | null;
6542
- signal: string | null;
6543
6608
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6544
6609
  } | undefined;
6545
6610
  terminationReconciliation?: {
@@ -6580,8 +6645,8 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6580
6645
  } | undefined;
6581
6646
  outcome?: {
6582
6647
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
6583
- exitCode?: number | null | undefined;
6584
6648
  signal?: string | null | undefined;
6649
+ exitCode?: number | null | undefined;
6585
6650
  } | undefined;
6586
6651
  deadlineAt?: string | undefined;
6587
6652
  authCapability?: {
@@ -6714,12 +6779,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6714
6779
  nativeCommand?: {
6715
6780
  commandDigest: string;
6716
6781
  finishedAt: string;
6782
+ signal: string | null;
6717
6783
  executionId: string;
6718
6784
  manifestDigest: string;
6719
6785
  permitIssuedAt: string | null;
6720
6786
  commandStarted: boolean;
6721
6787
  exitCode: number | null;
6722
- signal: string | null;
6723
6788
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6724
6789
  } | undefined;
6725
6790
  terminationReconciliation?: {
@@ -6760,8 +6825,8 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6760
6825
  } | undefined;
6761
6826
  outcome?: {
6762
6827
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
6763
- exitCode?: number | null | undefined;
6764
6828
  signal?: string | null | undefined;
6829
+ exitCode?: number | null | undefined;
6765
6830
  } | undefined;
6766
6831
  deadlineAt?: string | undefined;
6767
6832
  authCapability?: {
@@ -6894,12 +6959,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6894
6959
  nativeCommand?: {
6895
6960
  commandDigest: string;
6896
6961
  finishedAt: string;
6962
+ signal: string | null;
6897
6963
  executionId: string;
6898
6964
  manifestDigest: string;
6899
6965
  permitIssuedAt: string | null;
6900
6966
  commandStarted: boolean;
6901
6967
  exitCode: number | null;
6902
- signal: string | null;
6903
6968
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
6904
6969
  } | undefined;
6905
6970
  terminationReconciliation?: {
@@ -6909,6 +6974,19 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6909
6974
  }>;
6910
6975
  cursor: z.ZodString;
6911
6976
  sequence: z.ZodNumber;
6977
+ deviceCode: z.ZodOptional<z.ZodObject<{
6978
+ flow: z.ZodEnum<["chatgptDeviceCode", "chatgpt"]>;
6979
+ verificationUrl: z.ZodString;
6980
+ userCode: z.ZodString;
6981
+ }, "strict", z.ZodTypeAny, {
6982
+ flow: "chatgptDeviceCode" | "chatgpt";
6983
+ verificationUrl: string;
6984
+ userCode: string;
6985
+ }, {
6986
+ flow: "chatgptDeviceCode" | "chatgpt";
6987
+ verificationUrl: string;
6988
+ userCode: string;
6989
+ }>>;
6912
6990
  }, "strict", z.ZodTypeAny, {
6913
6991
  cursor: string;
6914
6992
  sequence: number;
@@ -6946,8 +7024,8 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
6946
7024
  } | undefined;
6947
7025
  outcome?: {
6948
7026
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
6949
- exitCode?: number | null | undefined;
6950
7027
  signal?: string | null | undefined;
7028
+ exitCode?: number | null | undefined;
6951
7029
  } | undefined;
6952
7030
  deadlineAt?: string | undefined;
6953
7031
  authCapability?: {
@@ -7080,12 +7158,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
7080
7158
  nativeCommand?: {
7081
7159
  commandDigest: string;
7082
7160
  finishedAt: string;
7161
+ signal: string | null;
7083
7162
  executionId: string;
7084
7163
  manifestDigest: string;
7085
7164
  permitIssuedAt: string | null;
7086
7165
  commandStarted: boolean;
7087
7166
  exitCode: number | null;
7088
- signal: string | null;
7089
7167
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
7090
7168
  } | undefined;
7091
7169
  terminationReconciliation?: {
@@ -7093,6 +7171,11 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
7093
7171
  observedAt: string;
7094
7172
  } | undefined;
7095
7173
  };
7174
+ deviceCode?: {
7175
+ flow: "chatgptDeviceCode" | "chatgpt";
7176
+ verificationUrl: string;
7177
+ userCode: string;
7178
+ } | undefined;
7096
7179
  }, {
7097
7180
  cursor: string;
7098
7181
  sequence: number;
@@ -7130,8 +7213,8 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
7130
7213
  } | undefined;
7131
7214
  outcome?: {
7132
7215
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
7133
- exitCode?: number | null | undefined;
7134
7216
  signal?: string | null | undefined;
7217
+ exitCode?: number | null | undefined;
7135
7218
  } | undefined;
7136
7219
  deadlineAt?: string | undefined;
7137
7220
  authCapability?: {
@@ -7264,12 +7347,12 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
7264
7347
  nativeCommand?: {
7265
7348
  commandDigest: string;
7266
7349
  finishedAt: string;
7350
+ signal: string | null;
7267
7351
  executionId: string;
7268
7352
  manifestDigest: string;
7269
7353
  permitIssuedAt: string | null;
7270
7354
  commandStarted: boolean;
7271
7355
  exitCode: number | null;
7272
- signal: string | null;
7273
7356
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
7274
7357
  } | undefined;
7275
7358
  terminationReconciliation?: {
@@ -7277,6 +7360,11 @@ export declare const ControlSetupJobSnapshot: z.ZodObject<{
7277
7360
  observedAt: string;
7278
7361
  } | undefined;
7279
7362
  };
7363
+ deviceCode?: {
7364
+ flow: "chatgptDeviceCode" | "chatgpt";
7365
+ verificationUrl: string;
7366
+ userCode: string;
7367
+ } | undefined;
7280
7368
  }>;
7281
7369
  export type ControlSetupJobSnapshot = z.infer<typeof ControlSetupJobSnapshot>;
7282
7370
  export declare const ControlSetupJobListResponse: z.ZodObject<{
@@ -7295,12 +7383,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
7295
7383
  signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7296
7384
  }, "strict", z.ZodTypeAny, {
7297
7385
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
7298
- exitCode?: number | null | undefined;
7299
7386
  signal?: string | null | undefined;
7387
+ exitCode?: number | null | undefined;
7300
7388
  }, {
7301
7389
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
7302
- exitCode?: number | null | undefined;
7303
7390
  signal?: string | null | undefined;
7391
+ exitCode?: number | null | undefined;
7304
7392
  }>>;
7305
7393
  command: z.ZodNullable<z.ZodString>;
7306
7394
  guideUrl: z.ZodNullable<z.ZodString>;
@@ -8395,42 +8483,42 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8395
8483
  }, "strict", z.ZodTypeAny, {
8396
8484
  commandDigest: string;
8397
8485
  finishedAt: string;
8486
+ signal: string | null;
8398
8487
  executionId: string;
8399
8488
  manifestDigest: string;
8400
8489
  permitIssuedAt: string | null;
8401
8490
  commandStarted: boolean;
8402
8491
  exitCode: number | null;
8403
- signal: string | null;
8404
8492
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8405
8493
  }, {
8406
8494
  commandDigest: string;
8407
8495
  finishedAt: string;
8496
+ signal: string | null;
8408
8497
  executionId: string;
8409
8498
  manifestDigest: string;
8410
8499
  permitIssuedAt: string | null;
8411
8500
  commandStarted: boolean;
8412
8501
  exitCode: number | null;
8413
- signal: string | null;
8414
8502
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8415
8503
  }>, {
8416
8504
  commandDigest: string;
8417
8505
  finishedAt: string;
8506
+ signal: string | null;
8418
8507
  executionId: string;
8419
8508
  manifestDigest: string;
8420
8509
  permitIssuedAt: string | null;
8421
8510
  commandStarted: boolean;
8422
8511
  exitCode: number | null;
8423
- signal: string | null;
8424
8512
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8425
8513
  }, {
8426
8514
  commandDigest: string;
8427
8515
  finishedAt: string;
8516
+ signal: string | null;
8428
8517
  executionId: string;
8429
8518
  manifestDigest: string;
8430
8519
  permitIssuedAt: string | null;
8431
8520
  commandStarted: boolean;
8432
8521
  exitCode: number | null;
8433
- signal: string | null;
8434
8522
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8435
8523
  }>>;
8436
8524
  terminationReconciliation: z.ZodOptional<z.ZodObject<{
@@ -8477,8 +8565,8 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8477
8565
  } | undefined;
8478
8566
  outcome?: {
8479
8567
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
8480
- exitCode?: number | null | undefined;
8481
8568
  signal?: string | null | undefined;
8569
+ exitCode?: number | null | undefined;
8482
8570
  } | undefined;
8483
8571
  deadlineAt?: string | undefined;
8484
8572
  authCapability?: {
@@ -8611,12 +8699,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8611
8699
  nativeCommand?: {
8612
8700
  commandDigest: string;
8613
8701
  finishedAt: string;
8702
+ signal: string | null;
8614
8703
  executionId: string;
8615
8704
  manifestDigest: string;
8616
8705
  permitIssuedAt: string | null;
8617
8706
  commandStarted: boolean;
8618
8707
  exitCode: number | null;
8619
- signal: string | null;
8620
8708
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8621
8709
  } | undefined;
8622
8710
  terminationReconciliation?: {
@@ -8657,8 +8745,8 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8657
8745
  } | undefined;
8658
8746
  outcome?: {
8659
8747
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
8660
- exitCode?: number | null | undefined;
8661
8748
  signal?: string | null | undefined;
8749
+ exitCode?: number | null | undefined;
8662
8750
  } | undefined;
8663
8751
  deadlineAt?: string | undefined;
8664
8752
  authCapability?: {
@@ -8791,12 +8879,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8791
8879
  nativeCommand?: {
8792
8880
  commandDigest: string;
8793
8881
  finishedAt: string;
8882
+ signal: string | null;
8794
8883
  executionId: string;
8795
8884
  manifestDigest: string;
8796
8885
  permitIssuedAt: string | null;
8797
8886
  commandStarted: boolean;
8798
8887
  exitCode: number | null;
8799
- signal: string | null;
8800
8888
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8801
8889
  } | undefined;
8802
8890
  terminationReconciliation?: {
@@ -8837,8 +8925,8 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8837
8925
  } | undefined;
8838
8926
  outcome?: {
8839
8927
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
8840
- exitCode?: number | null | undefined;
8841
8928
  signal?: string | null | undefined;
8929
+ exitCode?: number | null | undefined;
8842
8930
  } | undefined;
8843
8931
  deadlineAt?: string | undefined;
8844
8932
  authCapability?: {
@@ -8971,12 +9059,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
8971
9059
  nativeCommand?: {
8972
9060
  commandDigest: string;
8973
9061
  finishedAt: string;
9062
+ signal: string | null;
8974
9063
  executionId: string;
8975
9064
  manifestDigest: string;
8976
9065
  permitIssuedAt: string | null;
8977
9066
  commandStarted: boolean;
8978
9067
  exitCode: number | null;
8979
- signal: string | null;
8980
9068
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
8981
9069
  } | undefined;
8982
9070
  terminationReconciliation?: {
@@ -9017,8 +9105,8 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9017
9105
  } | undefined;
9018
9106
  outcome?: {
9019
9107
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
9020
- exitCode?: number | null | undefined;
9021
9108
  signal?: string | null | undefined;
9109
+ exitCode?: number | null | undefined;
9022
9110
  } | undefined;
9023
9111
  deadlineAt?: string | undefined;
9024
9112
  authCapability?: {
@@ -9151,12 +9239,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9151
9239
  nativeCommand?: {
9152
9240
  commandDigest: string;
9153
9241
  finishedAt: string;
9242
+ signal: string | null;
9154
9243
  executionId: string;
9155
9244
  manifestDigest: string;
9156
9245
  permitIssuedAt: string | null;
9157
9246
  commandStarted: boolean;
9158
9247
  exitCode: number | null;
9159
- signal: string | null;
9160
9248
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9161
9249
  } | undefined;
9162
9250
  terminationReconciliation?: {
@@ -9199,8 +9287,8 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9199
9287
  } | undefined;
9200
9288
  outcome?: {
9201
9289
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
9202
- exitCode?: number | null | undefined;
9203
9290
  signal?: string | null | undefined;
9291
+ exitCode?: number | null | undefined;
9204
9292
  } | undefined;
9205
9293
  deadlineAt?: string | undefined;
9206
9294
  authCapability?: {
@@ -9333,12 +9421,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9333
9421
  nativeCommand?: {
9334
9422
  commandDigest: string;
9335
9423
  finishedAt: string;
9424
+ signal: string | null;
9336
9425
  executionId: string;
9337
9426
  manifestDigest: string;
9338
9427
  permitIssuedAt: string | null;
9339
9428
  commandStarted: boolean;
9340
9429
  exitCode: number | null;
9341
- signal: string | null;
9342
9430
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9343
9431
  } | undefined;
9344
9432
  terminationReconciliation?: {
@@ -9381,8 +9469,8 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9381
9469
  } | undefined;
9382
9470
  outcome?: {
9383
9471
  reason: "completed" | "interrupted_unknown" | "interrupted" | "timed_out" | "not_supported" | "launch_failed" | "command_failed" | "auth_not_ready" | "capability_verification_failed" | "credential_route_mismatch" | "cancelled_by_user" | "cancelled_on_restart" | "termination_unconfirmed";
9384
- exitCode?: number | null | undefined;
9385
9472
  signal?: string | null | undefined;
9473
+ exitCode?: number | null | undefined;
9386
9474
  } | undefined;
9387
9475
  deadlineAt?: string | undefined;
9388
9476
  authCapability?: {
@@ -9515,12 +9603,12 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9515
9603
  nativeCommand?: {
9516
9604
  commandDigest: string;
9517
9605
  finishedAt: string;
9606
+ signal: string | null;
9518
9607
  executionId: string;
9519
9608
  manifestDigest: string;
9520
9609
  permitIssuedAt: string | null;
9521
9610
  commandStarted: boolean;
9522
9611
  exitCode: number | null;
9523
- signal: string | null;
9524
9612
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9525
9613
  } | undefined;
9526
9614
  terminationReconciliation?: {
@@ -9532,7 +9620,7 @@ export declare const ControlSetupJobListResponse: z.ZodObject<{
9532
9620
  export type ControlSetupJobListResponse = z.infer<typeof ControlSetupJobListResponse>;
9533
9621
  /** Internal, file-backed protocol between claudexord and the detached native-login runner. */
9534
9622
  export declare const SetupLoginProtocolVersion: z.ZodLiteral<2>;
9535
- export declare const SetupLoginManifest: z.ZodObject<{
9623
+ export declare const SetupLoginManifest: z.ZodEffects<z.ZodObject<{
9536
9624
  version: z.ZodLiteral<2>;
9537
9625
  jobId: z.ZodString;
9538
9626
  executionId: z.ZodString;
@@ -9545,6 +9633,19 @@ export declare const SetupLoginManifest: z.ZodObject<{
9545
9633
  * codex CODEX_HOME). OPTIONAL, not defaulted: absent on default-store jobs so
9546
9634
  * pre-existing manifests keep their sealed digest across a daemon upgrade. */
9547
9635
  profileConfigDir: z.ZodOptional<z.ZodString>;
9636
+ /** D-17: how the runner performs the login. Absent (or "terminal") = the
9637
+ * legacy Terminal-hosted vendor `codex login`. "device_code" = the primary
9638
+ * flow: the runner hosts `codex app-server --stdio` and drives typed
9639
+ * device-code auth (no Terminal). OPTIONAL/undefaulted so pre-existing
9640
+ * sealed manifests keep their digest across a daemon upgrade. */
9641
+ loginMode: z.ZodOptional<z.ZodEnum<["terminal", "device_code"]>>;
9642
+ /** Which app-server auth flow the device_code runner requests. Present only
9643
+ * with loginMode "device_code". */
9644
+ appServerFlow: z.ZodOptional<z.ZodEnum<["chatgptDeviceCode", "chatgpt"]>>;
9645
+ /** Sidecar the device_code runner writes its transient disclosure to; read
9646
+ * by the daemon for the snapshot overlay, never journaled. Present only with
9647
+ * loginMode "device_code" (optional so terminal manifests keep their digest). */
9648
+ deviceCodePath: z.ZodOptional<z.ZodString>;
9548
9649
  statePath: z.ZodString;
9549
9650
  resultPath: z.ZodString;
9550
9651
  permitPath: z.ZodString;
@@ -9597,6 +9698,9 @@ export declare const SetupLoginManifest: z.ZodObject<{
9597
9698
  permitPath: string;
9598
9699
  permitDeadlineAt: string;
9599
9700
  profileConfigDir?: string | undefined;
9701
+ loginMode?: "terminal" | "device_code" | undefined;
9702
+ appServerFlow?: "chatgptDeviceCode" | "chatgpt" | undefined;
9703
+ deviceCodePath?: string | undefined;
9600
9704
  }, {
9601
9705
  harness: "cursor" | "codex" | "claude";
9602
9706
  binary: string;
@@ -9621,8 +9725,98 @@ export declare const SetupLoginManifest: z.ZodObject<{
9621
9725
  permitPath: string;
9622
9726
  permitDeadlineAt: string;
9623
9727
  profileConfigDir?: string | undefined;
9728
+ loginMode?: "terminal" | "device_code" | undefined;
9729
+ appServerFlow?: "chatgptDeviceCode" | "chatgpt" | undefined;
9730
+ deviceCodePath?: string | undefined;
9731
+ }>, {
9732
+ harness: "cursor" | "codex" | "claude";
9733
+ binary: string;
9734
+ version: 2;
9735
+ args: string[];
9736
+ cwd: string;
9737
+ commandDigest: string;
9738
+ jobId: string;
9739
+ executionId: string;
9740
+ manifestDigest: string;
9741
+ executable: {
9742
+ sha256: string;
9743
+ mode: number;
9744
+ realpath: string;
9745
+ size: number;
9746
+ device: string;
9747
+ inode: string;
9748
+ };
9749
+ jobDir: string;
9750
+ statePath: string;
9751
+ resultPath: string;
9752
+ permitPath: string;
9753
+ permitDeadlineAt: string;
9754
+ profileConfigDir?: string | undefined;
9755
+ loginMode?: "terminal" | "device_code" | undefined;
9756
+ appServerFlow?: "chatgptDeviceCode" | "chatgpt" | undefined;
9757
+ deviceCodePath?: string | undefined;
9758
+ }, {
9759
+ harness: "cursor" | "codex" | "claude";
9760
+ binary: string;
9761
+ version: 2;
9762
+ args: string[];
9763
+ cwd: string;
9764
+ commandDigest: string;
9765
+ jobId: string;
9766
+ executionId: string;
9767
+ manifestDigest: string;
9768
+ executable: {
9769
+ sha256: string;
9770
+ mode: number;
9771
+ realpath: string;
9772
+ size: number;
9773
+ device: string;
9774
+ inode: string;
9775
+ };
9776
+ jobDir: string;
9777
+ statePath: string;
9778
+ resultPath: string;
9779
+ permitPath: string;
9780
+ permitDeadlineAt: string;
9781
+ profileConfigDir?: string | undefined;
9782
+ loginMode?: "terminal" | "device_code" | undefined;
9783
+ appServerFlow?: "chatgptDeviceCode" | "chatgpt" | undefined;
9784
+ deviceCodePath?: string | undefined;
9624
9785
  }>;
9625
9786
  export type SetupLoginManifest = z.infer<typeof SetupLoginManifest>;
9787
+ /**
9788
+ * TRANSIENT device-code sidecar the device_code runner writes after
9789
+ * `account/login/start` succeeds. Bound to the job + execution like the state
9790
+ * sidecar. The daemon reads it to overlay {@link SetupDeviceCodeDisclosure} on
9791
+ * snapshots/SSE; its `userCode` is NEVER journaled, logged, or copied into the
9792
+ * durable result receipt (INV-062 / D-17).
9793
+ */
9794
+ export declare const SetupLoginDeviceCode: z.ZodObject<{
9795
+ version: z.ZodLiteral<2>;
9796
+ jobId: z.ZodString;
9797
+ executionId: z.ZodString;
9798
+ flow: z.ZodEnum<["chatgptDeviceCode", "chatgpt"]>;
9799
+ verificationUrl: z.ZodString;
9800
+ userCode: z.ZodString;
9801
+ disclosedAt: z.ZodString;
9802
+ }, "strict", z.ZodTypeAny, {
9803
+ version: 2;
9804
+ jobId: string;
9805
+ executionId: string;
9806
+ flow: "chatgptDeviceCode" | "chatgpt";
9807
+ verificationUrl: string;
9808
+ userCode: string;
9809
+ disclosedAt: string;
9810
+ }, {
9811
+ version: 2;
9812
+ jobId: string;
9813
+ executionId: string;
9814
+ flow: "chatgptDeviceCode" | "chatgpt";
9815
+ verificationUrl: string;
9816
+ userCode: string;
9817
+ disclosedAt: string;
9818
+ }>;
9819
+ export type SetupLoginDeviceCode = z.infer<typeof SetupLoginDeviceCode>;
9626
9820
  export declare const SetupLoginRunnerState: z.ZodObject<{
9627
9821
  version: z.ZodLiteral<2>;
9628
9822
  jobId: z.ZodString;
@@ -9706,6 +9900,7 @@ export declare const SetupLoginRunnerState: z.ZodObject<{
9706
9900
  version: 2;
9707
9901
  commandDigest: string;
9708
9902
  jobId: string;
9903
+ stage: "running" | "awaiting_permit";
9709
9904
  executionId: string;
9710
9905
  manifestDigest: string;
9711
9906
  processGroup: {
@@ -9720,12 +9915,12 @@ export declare const SetupLoginRunnerState: z.ZodObject<{
9720
9915
  processGroupId: number;
9721
9916
  };
9722
9917
  };
9723
- stage: "running" | "awaiting_permit";
9724
9918
  }, {
9725
9919
  observedAt: string;
9726
9920
  version: 2;
9727
9921
  commandDigest: string;
9728
9922
  jobId: string;
9923
+ stage: "running" | "awaiting_permit";
9729
9924
  executionId: string;
9730
9925
  manifestDigest: string;
9731
9926
  processGroup: {
@@ -9740,7 +9935,6 @@ export declare const SetupLoginRunnerState: z.ZodObject<{
9740
9935
  processGroupId: number;
9741
9936
  };
9742
9937
  };
9743
- stage: "running" | "awaiting_permit";
9744
9938
  }>;
9745
9939
  export type SetupLoginRunnerState = z.infer<typeof SetupLoginRunnerState>;
9746
9940
  export declare const SetupLoginPermit: z.ZodObject<{
@@ -9789,12 +9983,12 @@ export declare const SetupLoginRunnerResult: z.ZodEffects<z.ZodObject<{
9789
9983
  commandDigest: string;
9790
9984
  jobId: string;
9791
9985
  finishedAt: string;
9986
+ signal: string | null;
9792
9987
  executionId: string;
9793
9988
  manifestDigest: string;
9794
9989
  permitIssuedAt: string | null;
9795
9990
  commandStarted: boolean;
9796
9991
  exitCode: number | null;
9797
- signal: string | null;
9798
9992
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9799
9993
  outputTail?: string | undefined;
9800
9994
  }, {
@@ -9802,12 +9996,12 @@ export declare const SetupLoginRunnerResult: z.ZodEffects<z.ZodObject<{
9802
9996
  commandDigest: string;
9803
9997
  jobId: string;
9804
9998
  finishedAt: string;
9999
+ signal: string | null;
9805
10000
  executionId: string;
9806
10001
  manifestDigest: string;
9807
10002
  permitIssuedAt: string | null;
9808
10003
  commandStarted: boolean;
9809
10004
  exitCode: number | null;
9810
- signal: string | null;
9811
10005
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9812
10006
  outputTail?: string | undefined;
9813
10007
  }>, {
@@ -9815,12 +10009,12 @@ export declare const SetupLoginRunnerResult: z.ZodEffects<z.ZodObject<{
9815
10009
  commandDigest: string;
9816
10010
  jobId: string;
9817
10011
  finishedAt: string;
10012
+ signal: string | null;
9818
10013
  executionId: string;
9819
10014
  manifestDigest: string;
9820
10015
  permitIssuedAt: string | null;
9821
10016
  commandStarted: boolean;
9822
10017
  exitCode: number | null;
9823
- signal: string | null;
9824
10018
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9825
10019
  outputTail?: string | undefined;
9826
10020
  }, {
@@ -9828,12 +10022,12 @@ export declare const SetupLoginRunnerResult: z.ZodEffects<z.ZodObject<{
9828
10022
  commandDigest: string;
9829
10023
  jobId: string;
9830
10024
  finishedAt: string;
10025
+ signal: string | null;
9831
10026
  executionId: string;
9832
10027
  manifestDigest: string;
9833
10028
  permitIssuedAt: string | null;
9834
10029
  commandStarted: boolean;
9835
10030
  exitCode: number | null;
9836
- signal: string | null;
9837
10031
  errorCode?: "permit_timeout" | "spawn_failed" | "device_auth_unsupported" | undefined;
9838
10032
  outputTail?: string | undefined;
9839
10033
  }>;