@claudexor/schema 3.1.2 → 3.3.7-rc.0

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 (291) hide show
  1. package/dist/agent-capabilities.d.ts +157 -129
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +3 -1
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +472 -273
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +25 -1
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/attachment.d.ts +17 -17
  10. package/dist/attachment.d.ts.map +1 -1
  11. package/dist/attachment.js +1 -1
  12. package/dist/attachment.js.map +1 -1
  13. package/dist/auth.d.ts +475 -475
  14. package/dist/auth.d.ts.map +1 -1
  15. package/dist/auth.js +1 -1
  16. package/dist/auth.js.map +1 -1
  17. package/dist/budget.d.ts +59 -59
  18. package/dist/budget.d.ts.map +1 -1
  19. package/dist/budget.js +1 -1
  20. package/dist/budget.js.map +1 -1
  21. package/dist/config.d.ts +320 -316
  22. package/dist/config.d.ts.map +1 -1
  23. package/dist/config.js +26 -19
  24. package/dist/config.js.map +1 -1
  25. package/dist/context.d.ts +38 -38
  26. package/dist/context.d.ts.map +1 -1
  27. package/dist/context.js +1 -1
  28. package/dist/context.js.map +1 -1
  29. package/dist/control-auth-route.d.ts +46 -0
  30. package/dist/control-auth-route.d.ts.map +1 -0
  31. package/dist/control-auth-route.js +24 -0
  32. package/dist/control-auth-route.js.map +1 -0
  33. package/dist/control-gc.d.ts +15 -15
  34. package/dist/control-gc.d.ts.map +1 -1
  35. package/dist/control-gc.js +1 -1
  36. package/dist/control-gc.js.map +1 -1
  37. package/dist/control-harness-list.d.ts +896 -0
  38. package/dist/control-harness-list.d.ts.map +1 -0
  39. package/dist/control-harness-list.js +13 -0
  40. package/dist/control-harness-list.js.map +1 -0
  41. package/dist/control-operation-responses.d.ts +644 -629
  42. package/dist/control-operation-responses.d.ts.map +1 -1
  43. package/dist/control-operation-responses.js +5 -1
  44. package/dist/control-operation-responses.js.map +1 -1
  45. package/dist/control-run-detail.d.ts +2229 -1569
  46. package/dist/control-run-detail.d.ts.map +1 -1
  47. package/dist/control-run-detail.js +46 -2
  48. package/dist/control-run-detail.js.map +1 -1
  49. package/dist/control-run-failure.d.ts +57 -0
  50. package/dist/control-run-failure.d.ts.map +1 -0
  51. package/dist/control-run-failure.js +89 -0
  52. package/dist/control-run-failure.js.map +1 -0
  53. package/dist/control-run-retry.d.ts +16 -16
  54. package/dist/control-run-retry.d.ts.map +1 -1
  55. package/dist/control-run-retry.js +1 -1
  56. package/dist/control-run-retry.js.map +1 -1
  57. package/dist/control-run-scope.d.ts +19 -2
  58. package/dist/control-run-scope.d.ts.map +1 -1
  59. package/dist/control-run-scope.js +22 -1
  60. package/dist/control-run-scope.js.map +1 -1
  61. package/dist/control-secret.d.ts +7 -7
  62. package/dist/control-secret.d.ts.map +1 -1
  63. package/dist/control-secret.js +1 -1
  64. package/dist/control-secret.js.map +1 -1
  65. package/dist/control-thread-apply.d.ts +65 -65
  66. package/dist/control-thread-apply.d.ts.map +1 -1
  67. package/dist/control-thread-apply.js +1 -1
  68. package/dist/control-thread-apply.js.map +1 -1
  69. package/dist/control-trust.d.ts +23 -23
  70. package/dist/control-trust.d.ts.map +1 -1
  71. package/dist/control-trust.js +1 -1
  72. package/dist/control-trust.js.map +1 -1
  73. package/dist/control.d.ts +1551 -2385
  74. package/dist/control.d.ts.map +1 -1
  75. package/dist/control.js +29 -107
  76. package/dist/control.js.map +1 -1
  77. package/dist/credential-profile-snapshot.d.ts +3206 -0
  78. package/dist/credential-profile-snapshot.d.ts.map +1 -0
  79. package/dist/credential-profile-snapshot.js +28 -0
  80. package/dist/credential-profile-snapshot.js.map +1 -0
  81. package/dist/credential-profile.d.ts +170 -107
  82. package/dist/credential-profile.d.ts.map +1 -1
  83. package/dist/credential-profile.js +24 -7
  84. package/dist/credential-profile.js.map +1 -1
  85. package/dist/decision.d.ts +121 -121
  86. package/dist/decision.d.ts.map +1 -1
  87. package/dist/decision.js +2 -1
  88. package/dist/decision.js.map +1 -1
  89. package/dist/deep-scan.d.ts +5 -5
  90. package/dist/deep-scan.d.ts.map +1 -1
  91. package/dist/deep-scan.js +1 -1
  92. package/dist/deep-scan.js.map +1 -1
  93. package/dist/delegation.d.ts +13 -13
  94. package/dist/delegation.d.ts.map +1 -1
  95. package/dist/delegation.js +1 -1
  96. package/dist/delegation.js.map +1 -1
  97. package/dist/delivery.d.ts +32 -32
  98. package/dist/delivery.d.ts.map +1 -1
  99. package/dist/delivery.js +1 -1
  100. package/dist/delivery.js.map +1 -1
  101. package/dist/effort.d.ts +1 -1
  102. package/dist/effort.d.ts.map +1 -1
  103. package/dist/effort.js +1 -1
  104. package/dist/effort.js.map +1 -1
  105. package/dist/events.d.ts +55 -35
  106. package/dist/events.d.ts.map +1 -1
  107. package/dist/events.js +20 -1
  108. package/dist/events.js.map +1 -1
  109. package/dist/gate.d.ts +7 -7
  110. package/dist/gate.d.ts.map +1 -1
  111. package/dist/gate.js +1 -1
  112. package/dist/gate.js.map +1 -1
  113. package/dist/git-capability.d.ts +23 -0
  114. package/dist/git-capability.d.ts.map +1 -0
  115. package/dist/git-capability.js +15 -0
  116. package/dist/git-capability.js.map +1 -0
  117. package/dist/harness-confinement.d.ts +64 -0
  118. package/dist/harness-confinement.d.ts.map +1 -0
  119. package/dist/harness-confinement.js +64 -0
  120. package/dist/harness-confinement.js.map +1 -0
  121. package/dist/harness.d.ts +428 -408
  122. package/dist/harness.d.ts.map +1 -1
  123. package/dist/harness.js +15 -26
  124. package/dist/harness.js.map +1 -1
  125. package/dist/index.d.ts +8 -0
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +8 -0
  128. package/dist/index.js.map +1 -1
  129. package/dist/interaction.d.ts +10 -0
  130. package/dist/interaction.d.ts.map +1 -0
  131. package/dist/interaction.js +2 -0
  132. package/dist/interaction.js.map +1 -0
  133. package/dist/operation.d.ts +113 -113
  134. package/dist/operation.d.ts.map +1 -1
  135. package/dist/operation.js +1 -1
  136. package/dist/operation.js.map +1 -1
  137. package/dist/output-schema-dialect.d.ts +1 -1
  138. package/dist/output-schema-dialect.d.ts.map +1 -1
  139. package/dist/output-schema-dialect.js +1 -1
  140. package/dist/output-schema-dialect.js.map +1 -1
  141. package/dist/output-schema.d.ts +2 -2
  142. package/dist/output-schema.js +2 -2
  143. package/dist/plan.d.ts +29 -29
  144. package/dist/plan.d.ts.map +1 -1
  145. package/dist/plan.js +2 -2
  146. package/dist/plan.js.map +1 -1
  147. package/dist/primitives.d.ts +1 -1
  148. package/dist/primitives.d.ts.map +1 -1
  149. package/dist/primitives.js +1 -1
  150. package/dist/primitives.js.map +1 -1
  151. package/dist/problem.d.ts +6 -6
  152. package/dist/problem.d.ts.map +1 -1
  153. package/dist/problem.js +1 -1
  154. package/dist/problem.js.map +1 -1
  155. package/dist/project.d.ts +87 -25
  156. package/dist/project.d.ts.map +1 -1
  157. package/dist/project.js +21 -1
  158. package/dist/project.js.map +1 -1
  159. package/dist/quota.d.ts +51 -51
  160. package/dist/quota.d.ts.map +1 -1
  161. package/dist/quota.js +6 -1
  162. package/dist/quota.js.map +1 -1
  163. package/dist/raw.d.ts +16 -16
  164. package/dist/raw.d.ts.map +1 -1
  165. package/dist/raw.js +1 -1
  166. package/dist/raw.js.map +1 -1
  167. package/dist/readiness.d.ts +242 -242
  168. package/dist/readiness.d.ts.map +1 -1
  169. package/dist/readiness.js +1 -1
  170. package/dist/readiness.js.map +1 -1
  171. package/dist/recovery.d.ts +106 -106
  172. package/dist/recovery.d.ts.map +1 -1
  173. package/dist/recovery.js +1 -1
  174. package/dist/recovery.js.map +1 -1
  175. package/dist/request-requirements.d.ts +9 -9
  176. package/dist/request-requirements.d.ts.map +1 -1
  177. package/dist/request-requirements.js +1 -1
  178. package/dist/request-requirements.js.map +1 -1
  179. package/dist/review.d.ts +29 -29
  180. package/dist/review.d.ts.map +1 -1
  181. package/dist/review.js +1 -1
  182. package/dist/review.js.map +1 -1
  183. package/dist/route.d.ts +11 -11
  184. package/dist/route.d.ts.map +1 -1
  185. package/dist/route.js +1 -1
  186. package/dist/route.js.map +1 -1
  187. package/dist/run-applicability.d.ts +764 -0
  188. package/dist/run-applicability.d.ts.map +1 -0
  189. package/dist/run-applicability.js +56 -0
  190. package/dist/run-applicability.js.map +1 -0
  191. package/dist/run-facts.d.ts +628 -0
  192. package/dist/run-facts.d.ts.map +1 -0
  193. package/dist/run-facts.js +429 -0
  194. package/dist/run-facts.js.map +1 -0
  195. package/dist/run-strategy.d.ts +40 -0
  196. package/dist/run-strategy.d.ts.map +1 -1
  197. package/dist/run-strategy.js +68 -1
  198. package/dist/run-strategy.js.map +1 -1
  199. package/dist/setup-device-code-envelope.d.ts +67 -0
  200. package/dist/setup-device-code-envelope.d.ts.map +1 -0
  201. package/dist/setup-device-code-envelope.js +25 -0
  202. package/dist/setup-device-code-envelope.js.map +1 -0
  203. package/dist/setup-login-protocol.d.ts +6 -0
  204. package/dist/setup-login-protocol.d.ts.map +1 -0
  205. package/dist/setup-login-protocol.js +12 -0
  206. package/dist/setup-login-protocol.js.map +1 -0
  207. package/dist/setup-transport.d.ts +12 -0
  208. package/dist/setup-transport.d.ts.map +1 -0
  209. package/dist/setup-transport.js +22 -0
  210. package/dist/setup-transport.js.map +1 -0
  211. package/dist/setup.d.ts +12572 -3749
  212. package/dist/setup.d.ts.map +1 -1
  213. package/dist/setup.js +34 -38
  214. package/dist/setup.js.map +1 -1
  215. package/dist/status-projection.d.ts +7 -5
  216. package/dist/status-projection.d.ts.map +1 -1
  217. package/dist/status-projection.js +11 -6
  218. package/dist/status-projection.js.map +1 -1
  219. package/dist/surface-run-controls.d.ts.map +1 -1
  220. package/dist/surface-run-controls.js +10 -1
  221. package/dist/surface-run-controls.js.map +1 -1
  222. package/dist/task.d.ts +303 -303
  223. package/dist/task.d.ts.map +1 -1
  224. package/dist/task.js +1 -1
  225. package/dist/task.js.map +1 -1
  226. package/dist/telemetry.d.ts +1157 -633
  227. package/dist/telemetry.d.ts.map +1 -1
  228. package/dist/telemetry.js +7 -4
  229. package/dist/telemetry.js.map +1 -1
  230. package/dist/thread.d.ts +133 -84
  231. package/dist/thread.d.ts.map +1 -1
  232. package/dist/thread.js +21 -2
  233. package/dist/thread.js.map +1 -1
  234. package/dist/tool-ref.d.ts +7 -7
  235. package/dist/tool-ref.d.ts.map +1 -1
  236. package/dist/tool-ref.js +1 -1
  237. package/dist/tool-ref.js.map +1 -1
  238. package/dist/work-report.d.ts +28 -28
  239. package/dist/work-report.d.ts.map +1 -1
  240. package/dist/work-report.js +3 -3
  241. package/dist/work-report.js.map +1 -1
  242. package/dist/workproduct.d.ts +6 -9
  243. package/dist/workproduct.d.ts.map +1 -1
  244. package/dist/workproduct.js +1 -2
  245. package/dist/workproduct.js.map +1 -1
  246. package/dist/workspace.d.ts +13 -13
  247. package/dist/workspace.d.ts.map +1 -1
  248. package/dist/workspace.js +1 -1
  249. package/dist/workspace.js.map +1 -1
  250. package/generated/AgentCapabilityCatalog.schema.json +41 -0
  251. package/generated/ControlCredentialProfileCreateResponse.schema.json +10 -1
  252. package/generated/ControlCredentialProfileUpdateResponse.schema.json +10 -1
  253. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1343 -0
  254. package/generated/ControlCredentialProfilesResponse.schema.json +20 -3
  255. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1322 -0
  256. package/generated/ControlDirectoryEntry.schema.json +36 -0
  257. package/generated/ControlDirectoryListing.schema.json +77 -0
  258. package/generated/ControlHarnessListResponse.schema.json +41 -1
  259. package/generated/ControlQuotaResponse.schema.json +2 -1
  260. package/generated/ControlRunAgainDraft.schema.json +12 -2
  261. package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
  262. package/generated/ControlRunDetail.schema.json +494 -69
  263. package/generated/ControlRunListResponse.schema.json +30 -4
  264. package/generated/ControlRunStartRequest.schema.json +12 -2
  265. package/generated/ControlRunSummary.schema.json +30 -4
  266. package/generated/ControlSettingsSnapshot.schema.json +12 -3
  267. package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
  268. package/generated/ControlSetupJob.schema.json +9 -0
  269. package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
  270. package/generated/ControlSetupJobEvent.schema.json +858 -758
  271. package/generated/ControlSetupJobListResponse.schema.json +9 -0
  272. package/generated/ControlSetupJobSnapshot.schema.json +811 -736
  273. package/generated/ControlThreadCreateRequest.schema.json +5 -0
  274. package/generated/ControlThreadDetail.schema.json +31 -1
  275. package/generated/ControlThreadTurnRequest.schema.json +5 -24
  276. package/generated/CredentialProfileStatus.schema.json +10 -1
  277. package/generated/DecisionRecord.schema.json +2 -1
  278. package/generated/GitCapability.schema.json +46 -0
  279. package/generated/GlobalConfig.schema.json +13 -4
  280. package/generated/HarnessEvent.schema.json +2 -1
  281. package/generated/HarnessManifest.schema.json +1 -1
  282. package/generated/HarnessStatusDto.schema.json +1 -1
  283. package/generated/McpRunHandleResult.schema.json +182 -1
  284. package/generated/McpRunToolResult.schema.json +182 -1
  285. package/generated/OutputReadyPayload.schema.json +44 -0
  286. package/generated/RunFacts.schema.json +569 -0
  287. package/generated/RunFailure.schema.json +19 -2
  288. package/generated/RunTelemetry.schema.json +492 -2
  289. package/generated/ThreadTurn.schema.json +29 -0
  290. package/generated/WorkProduct.schema.json +0 -4
  291. package/package.json +3 -3
@@ -0,0 +1,3206 @@
1
+ import { z } from "zod/v3";
2
+ /** Opt-in atomic Accounts snapshot (`GET /credential-profiles?snapshot=true`).
3
+ * The legacy response stays byte/shape compatible for older strict clients. */
4
+ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
5
+ profiles: z.ZodArray<z.ZodObject<{
6
+ profile: z.ZodEffects<z.ZodObject<{
7
+ profile_id: z.ZodString;
8
+ harness_id: z.ZodString;
9
+ display_name: z.ZodString;
10
+ credential_kind: z.ZodEnum<["config_dir_login", "oauth_token", "api_key"]>;
11
+ isolation_locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12
+ secret_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13
+ enabled: z.ZodDefault<z.ZodBoolean>;
14
+ created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ profile_id: string;
17
+ harness_id: string;
18
+ display_name: string;
19
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
20
+ isolation_locator: string | null;
21
+ secret_ref: string | null;
22
+ enabled: boolean;
23
+ created_at: string | null;
24
+ }, {
25
+ profile_id: string;
26
+ harness_id: string;
27
+ display_name: string;
28
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
29
+ isolation_locator?: string | null | undefined;
30
+ secret_ref?: string | null | undefined;
31
+ enabled?: boolean | undefined;
32
+ created_at?: string | null | undefined;
33
+ }>, {
34
+ profile_id: string;
35
+ harness_id: string;
36
+ display_name: string;
37
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
38
+ isolation_locator: string | null;
39
+ secret_ref: string | null;
40
+ enabled: boolean;
41
+ created_at: string | null;
42
+ }, {
43
+ profile_id: string;
44
+ harness_id: string;
45
+ display_name: string;
46
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
47
+ isolation_locator?: string | null | undefined;
48
+ secret_ref?: string | null | undefined;
49
+ enabled?: boolean | undefined;
50
+ created_at?: string | null | undefined;
51
+ }>;
52
+ status: z.ZodObject<{
53
+ profile_id: z.ZodString;
54
+ harness_id: z.ZodString;
55
+ availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
56
+ verification: z.ZodEnum<["passed", "failed", "not_run"]>;
57
+ verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
58
+ detail: z.ZodOptional<z.ZodString>;
59
+ last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ profile_id: string;
62
+ harness_id: string;
63
+ availability: "available" | "unavailable" | "unknown";
64
+ verification: "failed" | "not_run" | "passed";
65
+ verification_source: "local_store" | "vendor";
66
+ detail?: string | undefined;
67
+ last_verified_at: string | null;
68
+ }, {
69
+ profile_id: string;
70
+ harness_id: string;
71
+ availability: "available" | "unavailable" | "unknown";
72
+ verification: "failed" | "not_run" | "passed";
73
+ verification_source?: "local_store" | "vendor" | undefined;
74
+ detail?: string | undefined;
75
+ last_verified_at?: string | null | undefined;
76
+ }>;
77
+ identity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
78
+ email: z.ZodOptional<z.ZodString>;
79
+ plan: z.ZodOptional<z.ZodString>;
80
+ }, "strict", z.ZodTypeAny, {
81
+ email?: string | undefined;
82
+ plan?: string | undefined;
83
+ }, {
84
+ email?: string | undefined;
85
+ plan?: string | undefined;
86
+ }>>>;
87
+ }, "strict", z.ZodTypeAny, {
88
+ profile: {
89
+ profile_id: string;
90
+ harness_id: string;
91
+ display_name: string;
92
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
93
+ isolation_locator: string | null;
94
+ secret_ref: string | null;
95
+ enabled: boolean;
96
+ created_at: string | null;
97
+ };
98
+ status: {
99
+ profile_id: string;
100
+ harness_id: string;
101
+ availability: "available" | "unavailable" | "unknown";
102
+ verification: "failed" | "not_run" | "passed";
103
+ verification_source: "local_store" | "vendor";
104
+ detail?: string | undefined;
105
+ last_verified_at: string | null;
106
+ };
107
+ identity: {
108
+ email?: string | undefined;
109
+ plan?: string | undefined;
110
+ } | null;
111
+ }, {
112
+ profile: {
113
+ profile_id: string;
114
+ harness_id: string;
115
+ display_name: string;
116
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
117
+ isolation_locator?: string | null | undefined;
118
+ secret_ref?: string | null | undefined;
119
+ enabled?: boolean | undefined;
120
+ created_at?: string | null | undefined;
121
+ };
122
+ status: {
123
+ profile_id: string;
124
+ harness_id: string;
125
+ availability: "available" | "unavailable" | "unknown";
126
+ verification: "failed" | "not_run" | "passed";
127
+ verification_source?: "local_store" | "vendor" | undefined;
128
+ detail?: string | undefined;
129
+ last_verified_at?: string | null | undefined;
130
+ };
131
+ identity?: {
132
+ email?: string | undefined;
133
+ plan?: string | undefined;
134
+ } | null | undefined;
135
+ }>, "many">;
136
+ harnessAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
137
+ harness_id: z.ZodString;
138
+ native_credentials_enabled: z.ZodBoolean;
139
+ native_login_detected: z.ZodBoolean;
140
+ identity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
141
+ email: z.ZodOptional<z.ZodString>;
142
+ plan: z.ZodOptional<z.ZodString>;
143
+ }, "strict", z.ZodTypeAny, {
144
+ email?: string | undefined;
145
+ plan?: string | undefined;
146
+ }, {
147
+ email?: string | undefined;
148
+ plan?: string | undefined;
149
+ }>>>;
150
+ next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
151
+ kind: z.ZodLiteral<"profile">;
152
+ profileId: z.ZodString;
153
+ }, "strict", z.ZodTypeAny, {
154
+ kind: "profile";
155
+ profileId: string;
156
+ }, {
157
+ kind: "profile";
158
+ profileId: string;
159
+ }>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"native">;
161
+ route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
162
+ }, "strict", z.ZodTypeAny, {
163
+ kind: "native";
164
+ route?: "api_key" | "local_session" | undefined;
165
+ }, {
166
+ kind: "native";
167
+ route?: "api_key" | "local_session" | undefined;
168
+ }>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"none">;
170
+ reason: z.ZodString;
171
+ }, "strict", z.ZodTypeAny, {
172
+ kind: "none";
173
+ reason: string;
174
+ }, {
175
+ kind: "none";
176
+ reason: string;
177
+ }>]>;
178
+ }, "strict", z.ZodTypeAny, {
179
+ harness_id: string;
180
+ native_credentials_enabled: boolean;
181
+ native_login_detected: boolean;
182
+ identity: {
183
+ email?: string | undefined;
184
+ plan?: string | undefined;
185
+ } | null;
186
+ next_up: {
187
+ kind: "profile";
188
+ profileId: string;
189
+ } | {
190
+ kind: "native";
191
+ route?: "api_key" | "local_session" | undefined;
192
+ } | {
193
+ kind: "none";
194
+ reason: string;
195
+ };
196
+ }, {
197
+ harness_id: string;
198
+ native_credentials_enabled: boolean;
199
+ native_login_detected: boolean;
200
+ identity?: {
201
+ email?: string | undefined;
202
+ plan?: string | undefined;
203
+ } | null | undefined;
204
+ next_up: {
205
+ kind: "profile";
206
+ profileId: string;
207
+ } | {
208
+ kind: "native";
209
+ route?: "api_key" | "local_session" | undefined;
210
+ } | {
211
+ kind: "none";
212
+ reason: string;
213
+ };
214
+ }>, "many">>;
215
+ } & {
216
+ harnesses: z.ZodArray<z.ZodObject<{
217
+ id: z.ZodString;
218
+ status: z.ZodEnum<["ok", "degraded", "unavailable"]>;
219
+ manifest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
220
+ id: z.ZodString;
221
+ display_name: z.ZodString;
222
+ kind: z.ZodEnum<["local_cli", "remote_api", "fake"]>;
223
+ version: z.ZodOptional<z.ZodString>;
224
+ adapter_version: z.ZodOptional<z.ZodString>;
225
+ provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
226
+ capability_profile: z.ZodDefault<z.ZodObject<{
227
+ auth: z.ZodDefault<z.ZodObject<{
228
+ supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
229
+ preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
230
+ credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
231
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
232
+ kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
233
+ relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
236
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
237
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
238
+ }, {
239
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
240
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
241
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
242
+ }>, "many">>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
245
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
246
+ credential_transports: {
247
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
248
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
249
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
250
+ }[];
251
+ }, {
252
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
253
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
254
+ credential_transports?: {
255
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
256
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
257
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
258
+ }[] | undefined;
259
+ }>>;
260
+ access_control: z.ZodDefault<z.ZodObject<{
261
+ readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
264
+ }, {
265
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
266
+ }>>;
267
+ isolation: z.ZodDefault<z.ZodObject<{
268
+ supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
271
+ }, {
272
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
273
+ }>>;
274
+ attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
275
+ kind: z.ZodEnum<["image", "file"]>;
276
+ mime_types: z.ZodArray<z.ZodString, "many">;
277
+ max_bytes: z.ZodNumber;
278
+ max_count: z.ZodNumber;
279
+ transport: z.ZodEnum<["file_path", "base64_stream", "base64_inline", "text_inline"]>;
280
+ }, "strict", z.ZodTypeAny, {
281
+ kind: "file" | "image";
282
+ mime_types: string[];
283
+ max_bytes: number;
284
+ max_count: number;
285
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
286
+ }, {
287
+ kind: "file" | "image";
288
+ mime_types: string[];
289
+ max_bytes: number;
290
+ max_count: number;
291
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
292
+ }>, "many">>;
293
+ mcp_injection: z.ZodDefault<z.ZodBoolean>;
294
+ mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ auth: {
297
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
298
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
299
+ credential_transports: {
300
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
301
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
302
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
303
+ }[];
304
+ };
305
+ access_control: {
306
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
307
+ };
308
+ isolation: {
309
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
310
+ };
311
+ attachment_inputs: {
312
+ kind: "file" | "image";
313
+ mime_types: string[];
314
+ max_bytes: number;
315
+ max_count: number;
316
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
317
+ }[];
318
+ mcp_injection: boolean;
319
+ mcp_injection_requires_full_access: boolean;
320
+ }, {
321
+ auth?: {
322
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
323
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
324
+ credential_transports?: {
325
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
326
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
327
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
328
+ }[] | undefined;
329
+ } | undefined;
330
+ access_control?: {
331
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
332
+ } | undefined;
333
+ isolation?: {
334
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
335
+ } | undefined;
336
+ attachment_inputs?: {
337
+ kind: "file" | "image";
338
+ mime_types: string[];
339
+ max_bytes: number;
340
+ max_count: number;
341
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
342
+ }[] | undefined;
343
+ mcp_injection?: boolean | undefined;
344
+ mcp_injection_requires_full_access?: boolean | undefined;
345
+ }>>;
346
+ capabilities: z.ZodObject<{
347
+ plan: z.ZodDefault<z.ZodBoolean>;
348
+ implement: z.ZodDefault<z.ZodBoolean>;
349
+ implementation_transport: z.ZodDefault<z.ZodEnum<["workspace", "git_patch_envelope"]>>;
350
+ create_from_scratch: z.ZodDefault<z.ZodBoolean>;
351
+ review: z.ZodDefault<z.ZodBoolean>;
352
+ verify: z.ZodDefault<z.ZodBoolean>;
353
+ synthesize: z.ZodDefault<z.ZodBoolean>;
354
+ read_files: z.ZodDefault<z.ZodBoolean>;
355
+ browser_tool: z.ZodDefault<z.ZodBoolean>;
356
+ web_policy: z.ZodDefault<z.ZodEnum<["native", "tools", "uncontrolled", "none"]>>;
357
+ max_turns: z.ZodDefault<z.ZodBoolean>;
358
+ tool_lists: z.ZodDefault<z.ZodBoolean>;
359
+ interactive: z.ZodDefault<z.ZodBoolean>;
360
+ json_schema_output: z.ZodDefault<z.ZodBoolean>;
361
+ work_report_transport: z.ZodDefault<z.ZodEnum<["constrained", "validated", "unsupported"]>>;
362
+ structured_output_channel: z.ZodDefault<z.ZodEnum<["side_tool", "final_message"]>>;
363
+ effort_levels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
364
+ model_effort_levels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
365
+ levels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
366
+ default: z.ZodDefault<z.ZodNullable<z.ZodString>>;
367
+ }, "strict", z.ZodTypeAny, {
368
+ levels: string[];
369
+ default: string | null;
370
+ }, {
371
+ levels?: string[] | undefined;
372
+ default?: string | null | undefined;
373
+ }>>>;
374
+ effort_levels_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
375
+ known_models: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
376
+ id: z.ZodString;
377
+ routes: z.ZodArray<z.ZodEnum<["local_session", "api_key"]>, "many">;
378
+ }, "strict", z.ZodTypeAny, {
379
+ id: string;
380
+ routes: ("api_key" | "local_session")[];
381
+ }, {
382
+ id: string;
383
+ routes: ("api_key" | "local_session")[];
384
+ }>]>, "many">>;
385
+ known_models_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ plan: boolean;
388
+ implement: boolean;
389
+ implementation_transport: "git_patch_envelope" | "workspace";
390
+ create_from_scratch: boolean;
391
+ review: boolean;
392
+ verify: boolean;
393
+ synthesize: boolean;
394
+ read_files: boolean;
395
+ browser_tool: boolean;
396
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
397
+ max_turns: boolean;
398
+ tool_lists: boolean;
399
+ interactive: boolean;
400
+ json_schema_output: boolean;
401
+ work_report_transport: "constrained" | "unsupported" | "validated";
402
+ structured_output_channel: "final_message" | "side_tool";
403
+ effort_levels: string[];
404
+ model_effort_levels: Record<string, {
405
+ levels: string[];
406
+ default: string | null;
407
+ }>;
408
+ effort_levels_verified_against: string | null;
409
+ known_models: (string | {
410
+ id: string;
411
+ routes: ("api_key" | "local_session")[];
412
+ })[];
413
+ known_models_verified_against: string | null;
414
+ }, {
415
+ plan?: boolean | undefined;
416
+ implement?: boolean | undefined;
417
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
418
+ create_from_scratch?: boolean | undefined;
419
+ review?: boolean | undefined;
420
+ verify?: boolean | undefined;
421
+ synthesize?: boolean | undefined;
422
+ read_files?: boolean | undefined;
423
+ browser_tool?: boolean | undefined;
424
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
425
+ max_turns?: boolean | undefined;
426
+ tool_lists?: boolean | undefined;
427
+ interactive?: boolean | undefined;
428
+ json_schema_output?: boolean | undefined;
429
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
430
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
431
+ effort_levels?: string[] | undefined;
432
+ model_effort_levels?: Record<string, {
433
+ levels?: string[] | undefined;
434
+ default?: string | null | undefined;
435
+ }> | undefined;
436
+ effort_levels_verified_against?: string | null | undefined;
437
+ known_models?: (string | {
438
+ id: string;
439
+ routes: ("api_key" | "local_session")[];
440
+ })[] | undefined;
441
+ known_models_verified_against?: string | null | undefined;
442
+ }>;
443
+ auth_modes: z.ZodDefault<z.ZodArray<z.ZodEnum<["local_session", "api_key", "none"]>, "many">>;
444
+ access_profiles_supported: z.ZodDefault<z.ZodArray<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>, "many">>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ id: string;
447
+ display_name: string;
448
+ kind: "fake" | "local_cli" | "remote_api";
449
+ version?: string | undefined;
450
+ adapter_version?: string | undefined;
451
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
452
+ capability_profile: {
453
+ auth: {
454
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
455
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
456
+ credential_transports: {
457
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
458
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
459
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
460
+ }[];
461
+ };
462
+ access_control: {
463
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
464
+ };
465
+ isolation: {
466
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
467
+ };
468
+ attachment_inputs: {
469
+ kind: "file" | "image";
470
+ mime_types: string[];
471
+ max_bytes: number;
472
+ max_count: number;
473
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
474
+ }[];
475
+ mcp_injection: boolean;
476
+ mcp_injection_requires_full_access: boolean;
477
+ };
478
+ capabilities: {
479
+ plan: boolean;
480
+ implement: boolean;
481
+ implementation_transport: "git_patch_envelope" | "workspace";
482
+ create_from_scratch: boolean;
483
+ review: boolean;
484
+ verify: boolean;
485
+ synthesize: boolean;
486
+ read_files: boolean;
487
+ browser_tool: boolean;
488
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
489
+ max_turns: boolean;
490
+ tool_lists: boolean;
491
+ interactive: boolean;
492
+ json_schema_output: boolean;
493
+ work_report_transport: "constrained" | "unsupported" | "validated";
494
+ structured_output_channel: "final_message" | "side_tool";
495
+ effort_levels: string[];
496
+ model_effort_levels: Record<string, {
497
+ levels: string[];
498
+ default: string | null;
499
+ }>;
500
+ effort_levels_verified_against: string | null;
501
+ known_models: (string | {
502
+ id: string;
503
+ routes: ("api_key" | "local_session")[];
504
+ })[];
505
+ known_models_verified_against: string | null;
506
+ };
507
+ auth_modes: ("api_key" | "local_session" | "none")[];
508
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
509
+ }, {
510
+ id: string;
511
+ display_name: string;
512
+ kind: "fake" | "local_cli" | "remote_api";
513
+ version?: string | undefined;
514
+ adapter_version?: string | undefined;
515
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
516
+ capability_profile?: {
517
+ auth?: {
518
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
519
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
520
+ credential_transports?: {
521
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
522
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
523
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
524
+ }[] | undefined;
525
+ } | undefined;
526
+ access_control?: {
527
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
528
+ } | undefined;
529
+ isolation?: {
530
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
531
+ } | undefined;
532
+ attachment_inputs?: {
533
+ kind: "file" | "image";
534
+ mime_types: string[];
535
+ max_bytes: number;
536
+ max_count: number;
537
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
538
+ }[] | undefined;
539
+ mcp_injection?: boolean | undefined;
540
+ mcp_injection_requires_full_access?: boolean | undefined;
541
+ } | undefined;
542
+ capabilities: {
543
+ plan?: boolean | undefined;
544
+ implement?: boolean | undefined;
545
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
546
+ create_from_scratch?: boolean | undefined;
547
+ review?: boolean | undefined;
548
+ verify?: boolean | undefined;
549
+ synthesize?: boolean | undefined;
550
+ read_files?: boolean | undefined;
551
+ browser_tool?: boolean | undefined;
552
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
553
+ max_turns?: boolean | undefined;
554
+ tool_lists?: boolean | undefined;
555
+ interactive?: boolean | undefined;
556
+ json_schema_output?: boolean | undefined;
557
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
558
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
559
+ effort_levels?: string[] | undefined;
560
+ model_effort_levels?: Record<string, {
561
+ levels?: string[] | undefined;
562
+ default?: string | null | undefined;
563
+ }> | undefined;
564
+ effort_levels_verified_against?: string | null | undefined;
565
+ known_models?: (string | {
566
+ id: string;
567
+ routes: ("api_key" | "local_session")[];
568
+ })[] | undefined;
569
+ known_models_verified_against?: string | null | undefined;
570
+ };
571
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
572
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
573
+ }>>>;
574
+ enabledIntents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
575
+ routableIntents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
576
+ disabledIntents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
577
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
578
+ id: z.ZodString;
579
+ status: z.ZodEnum<["pass", "fail", "skip"]>;
580
+ detail: z.ZodOptional<z.ZodString>;
581
+ duration_ms: z.ZodOptional<z.ZodNumber>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ id: string;
584
+ status: "fail" | "pass" | "skip";
585
+ detail?: string | undefined;
586
+ duration_ms?: number | undefined;
587
+ }, {
588
+ id: string;
589
+ status: "fail" | "pass" | "skip";
590
+ detail?: string | undefined;
591
+ duration_ms?: number | undefined;
592
+ }>, "many">>;
593
+ reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
594
+ authSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
595
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
596
+ availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
597
+ verification: z.ZodEnum<["passed", "failed", "not_run"]>;
598
+ detail: z.ZodOptional<z.ZodString>;
599
+ }, "strict", z.ZodTypeAny, {
600
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
601
+ availability: "available" | "unavailable" | "unknown";
602
+ verification: "failed" | "not_run" | "passed";
603
+ detail?: string | undefined;
604
+ }, {
605
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
606
+ availability: "available" | "unavailable" | "unknown";
607
+ verification: "failed" | "not_run" | "passed";
608
+ detail?: string | undefined;
609
+ }>, "many">>;
610
+ readiness: z.ZodDefault<z.ZodArray<z.ZodObject<{
611
+ id: z.ZodString;
612
+ kind: z.ZodEnum<["binary", "auth", "smoke", "model", "probe"]>;
613
+ title: z.ZodString;
614
+ status: z.ZodEnum<["pass", "fail", "skip"]>;
615
+ detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ id: string;
618
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
619
+ title: string;
620
+ status: "fail" | "pass" | "skip";
621
+ detail: string | null;
622
+ }, {
623
+ id: string;
624
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
625
+ title: string;
626
+ status: "fail" | "pass" | "skip";
627
+ detail?: string | null | undefined;
628
+ }>, "many">>;
629
+ configuredModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
630
+ configuredModelCheck: z.ZodDefault<z.ZodNullable<z.ZodObject<{
631
+ status: z.ZodEnum<["ok", "rejected"]>;
632
+ message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ status: "ok" | "rejected";
635
+ message: string | null;
636
+ }, {
637
+ status: "ok" | "rejected";
638
+ message?: string | null | undefined;
639
+ }>>>;
640
+ delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
641
+ available: z.ZodBoolean;
642
+ reason: z.ZodEnum<["ready", "runtime_unavailable", "manifest_unsupported"]>;
643
+ remediation: z.ZodDefault<z.ZodNullable<z.ZodString>>;
644
+ requiresFullAccess: z.ZodDefault<z.ZodBoolean>;
645
+ }, "strict", z.ZodTypeAny, {
646
+ available: boolean;
647
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
648
+ remediation: string | null;
649
+ requiresFullAccess: boolean;
650
+ }, {
651
+ available: boolean;
652
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
653
+ remediation?: string | null | undefined;
654
+ requiresFullAccess?: boolean | undefined;
655
+ }>, {
656
+ available: boolean;
657
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
658
+ remediation: string | null;
659
+ requiresFullAccess: boolean;
660
+ }, {
661
+ available: boolean;
662
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
663
+ remediation?: string | null | undefined;
664
+ requiresFullAccess?: boolean | undefined;
665
+ }>>>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ id: string;
668
+ status: "degraded" | "ok" | "unavailable";
669
+ manifest?: {
670
+ id: string;
671
+ display_name: string;
672
+ kind: "fake" | "local_cli" | "remote_api";
673
+ version?: string | undefined;
674
+ adapter_version?: string | undefined;
675
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
676
+ capability_profile: {
677
+ auth: {
678
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
679
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
680
+ credential_transports: {
681
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
682
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
683
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
684
+ }[];
685
+ };
686
+ access_control: {
687
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
688
+ };
689
+ isolation: {
690
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
691
+ };
692
+ attachment_inputs: {
693
+ kind: "file" | "image";
694
+ mime_types: string[];
695
+ max_bytes: number;
696
+ max_count: number;
697
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
698
+ }[];
699
+ mcp_injection: boolean;
700
+ mcp_injection_requires_full_access: boolean;
701
+ };
702
+ capabilities: {
703
+ plan: boolean;
704
+ implement: boolean;
705
+ implementation_transport: "git_patch_envelope" | "workspace";
706
+ create_from_scratch: boolean;
707
+ review: boolean;
708
+ verify: boolean;
709
+ synthesize: boolean;
710
+ read_files: boolean;
711
+ browser_tool: boolean;
712
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
713
+ max_turns: boolean;
714
+ tool_lists: boolean;
715
+ interactive: boolean;
716
+ json_schema_output: boolean;
717
+ work_report_transport: "constrained" | "unsupported" | "validated";
718
+ structured_output_channel: "final_message" | "side_tool";
719
+ effort_levels: string[];
720
+ model_effort_levels: Record<string, {
721
+ levels: string[];
722
+ default: string | null;
723
+ }>;
724
+ effort_levels_verified_against: string | null;
725
+ known_models: (string | {
726
+ id: string;
727
+ routes: ("api_key" | "local_session")[];
728
+ })[];
729
+ known_models_verified_against: string | null;
730
+ };
731
+ auth_modes: ("api_key" | "local_session" | "none")[];
732
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
733
+ } | null | undefined;
734
+ enabledIntents: string[];
735
+ routableIntents: string[];
736
+ disabledIntents: string[];
737
+ checks: {
738
+ id: string;
739
+ status: "fail" | "pass" | "skip";
740
+ detail?: string | undefined;
741
+ duration_ms?: number | undefined;
742
+ }[];
743
+ reasons: string[];
744
+ authSources: {
745
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
746
+ availability: "available" | "unavailable" | "unknown";
747
+ verification: "failed" | "not_run" | "passed";
748
+ detail?: string | undefined;
749
+ }[];
750
+ readiness: {
751
+ id: string;
752
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
753
+ title: string;
754
+ status: "fail" | "pass" | "skip";
755
+ detail: string | null;
756
+ }[];
757
+ configuredModel: string | null;
758
+ configuredModelCheck: {
759
+ status: "ok" | "rejected";
760
+ message: string | null;
761
+ } | null;
762
+ delegation: {
763
+ available: boolean;
764
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
765
+ remediation: string | null;
766
+ requiresFullAccess: boolean;
767
+ } | null;
768
+ }, {
769
+ id: string;
770
+ status: "degraded" | "ok" | "unavailable";
771
+ manifest?: {
772
+ id: string;
773
+ display_name: string;
774
+ kind: "fake" | "local_cli" | "remote_api";
775
+ version?: string | undefined;
776
+ adapter_version?: string | undefined;
777
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
778
+ capability_profile?: {
779
+ auth?: {
780
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
781
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
782
+ credential_transports?: {
783
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
784
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
785
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
786
+ }[] | undefined;
787
+ } | undefined;
788
+ access_control?: {
789
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
790
+ } | undefined;
791
+ isolation?: {
792
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
793
+ } | undefined;
794
+ attachment_inputs?: {
795
+ kind: "file" | "image";
796
+ mime_types: string[];
797
+ max_bytes: number;
798
+ max_count: number;
799
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
800
+ }[] | undefined;
801
+ mcp_injection?: boolean | undefined;
802
+ mcp_injection_requires_full_access?: boolean | undefined;
803
+ } | undefined;
804
+ capabilities: {
805
+ plan?: boolean | undefined;
806
+ implement?: boolean | undefined;
807
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
808
+ create_from_scratch?: boolean | undefined;
809
+ review?: boolean | undefined;
810
+ verify?: boolean | undefined;
811
+ synthesize?: boolean | undefined;
812
+ read_files?: boolean | undefined;
813
+ browser_tool?: boolean | undefined;
814
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
815
+ max_turns?: boolean | undefined;
816
+ tool_lists?: boolean | undefined;
817
+ interactive?: boolean | undefined;
818
+ json_schema_output?: boolean | undefined;
819
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
820
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
821
+ effort_levels?: string[] | undefined;
822
+ model_effort_levels?: Record<string, {
823
+ levels?: string[] | undefined;
824
+ default?: string | null | undefined;
825
+ }> | undefined;
826
+ effort_levels_verified_against?: string | null | undefined;
827
+ known_models?: (string | {
828
+ id: string;
829
+ routes: ("api_key" | "local_session")[];
830
+ })[] | undefined;
831
+ known_models_verified_against?: string | null | undefined;
832
+ };
833
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
834
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
835
+ } | null | undefined;
836
+ enabledIntents?: string[] | undefined;
837
+ routableIntents?: string[] | undefined;
838
+ disabledIntents?: string[] | undefined;
839
+ checks?: {
840
+ id: string;
841
+ status: "fail" | "pass" | "skip";
842
+ detail?: string | undefined;
843
+ duration_ms?: number | undefined;
844
+ }[] | undefined;
845
+ reasons?: string[] | undefined;
846
+ authSources?: {
847
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
848
+ availability: "available" | "unavailable" | "unknown";
849
+ verification: "failed" | "not_run" | "passed";
850
+ detail?: string | undefined;
851
+ }[] | undefined;
852
+ readiness?: {
853
+ id: string;
854
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
855
+ title: string;
856
+ status: "fail" | "pass" | "skip";
857
+ detail?: string | null | undefined;
858
+ }[] | undefined;
859
+ configuredModel?: string | null | undefined;
860
+ configuredModelCheck?: {
861
+ status: "ok" | "rejected";
862
+ message?: string | null | undefined;
863
+ } | null | undefined;
864
+ delegation?: {
865
+ available: boolean;
866
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
867
+ remediation?: string | null | undefined;
868
+ requiresFullAccess?: boolean | undefined;
869
+ } | null | undefined;
870
+ }>, "many">;
871
+ git: z.ZodObject<{
872
+ status: z.ZodEnum<["available", "missing", "developer_tools_stub", "failed"]>;
873
+ version: z.ZodNullable<z.ZodString>;
874
+ detail: z.ZodNullable<z.ZodString>;
875
+ remediation: z.ZodNullable<z.ZodString>;
876
+ }, "strict", z.ZodTypeAny, {
877
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
878
+ version: string | null;
879
+ detail: string | null;
880
+ remediation: string | null;
881
+ }, {
882
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
883
+ version: string | null;
884
+ detail: string | null;
885
+ remediation: string | null;
886
+ }>;
887
+ quota: z.ZodObject<{
888
+ snapshots: z.ZodArray<z.ZodObject<{
889
+ subject: z.ZodObject<{
890
+ harness: z.ZodString;
891
+ credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
892
+ plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
893
+ subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
894
+ }, "strict", z.ZodTypeAny, {
895
+ harness: string;
896
+ credential_route: "local" | "managed_api_key" | "vendor_native";
897
+ plan_label: string | null;
898
+ subject_id: string | null;
899
+ }, {
900
+ harness: string;
901
+ credential_route: "local" | "managed_api_key" | "vendor_native";
902
+ plan_label?: string | null | undefined;
903
+ subject_id?: string | null | undefined;
904
+ }>;
905
+ constraints: z.ZodArray<z.ZodObject<{
906
+ id: z.ZodString;
907
+ label: z.ZodString;
908
+ used_ratio: z.ZodNullable<z.ZodNumber>;
909
+ window_seconds: z.ZodNullable<z.ZodNumber>;
910
+ resets_at: z.ZodNullable<z.ZodString>;
911
+ cooldown_until: z.ZodDefault<z.ZodNullable<z.ZodString>>;
912
+ }, "strict", z.ZodTypeAny, {
913
+ id: string;
914
+ label: string;
915
+ used_ratio: number | null;
916
+ window_seconds: number | null;
917
+ resets_at: string | null;
918
+ cooldown_until: string | null;
919
+ }, {
920
+ id: string;
921
+ label: string;
922
+ used_ratio: number | null;
923
+ window_seconds: number | null;
924
+ resets_at: string | null;
925
+ cooldown_until?: string | null | undefined;
926
+ }>, "many">;
927
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage"]>;
928
+ observed_at: z.ZodString;
929
+ freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
930
+ }, "strict", z.ZodTypeAny, {
931
+ subject: {
932
+ harness: string;
933
+ credential_route: "local" | "managed_api_key" | "vendor_native";
934
+ plan_label: string | null;
935
+ subject_id: string | null;
936
+ };
937
+ constraints: {
938
+ id: string;
939
+ label: string;
940
+ used_ratio: number | null;
941
+ window_seconds: number | null;
942
+ resets_at: string | null;
943
+ cooldown_until: string | null;
944
+ }[];
945
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
946
+ observed_at: string;
947
+ freshness: "fresh" | "stale" | "unknown";
948
+ }, {
949
+ subject: {
950
+ harness: string;
951
+ credential_route: "local" | "managed_api_key" | "vendor_native";
952
+ plan_label?: string | null | undefined;
953
+ subject_id?: string | null | undefined;
954
+ };
955
+ constraints: {
956
+ id: string;
957
+ label: string;
958
+ used_ratio: number | null;
959
+ window_seconds: number | null;
960
+ resets_at: string | null;
961
+ cooldown_until?: string | null | undefined;
962
+ }[];
963
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
964
+ observed_at: string;
965
+ freshness: "fresh" | "stale" | "unknown";
966
+ }>, "many">;
967
+ absences: z.ZodDefault<z.ZodArray<z.ZodObject<{
968
+ subject: z.ZodObject<{
969
+ harness: z.ZodString;
970
+ credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
971
+ plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
972
+ subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
973
+ }, "strict", z.ZodTypeAny, {
974
+ harness: string;
975
+ credential_route: "local" | "managed_api_key" | "vendor_native";
976
+ plan_label: string | null;
977
+ subject_id: string | null;
978
+ }, {
979
+ harness: string;
980
+ credential_route: "local" | "managed_api_key" | "vendor_native";
981
+ plan_label?: string | null | undefined;
982
+ subject_id?: string | null | undefined;
983
+ }>;
984
+ reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
985
+ detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
986
+ observed_at: z.ZodString;
987
+ }, "strict", z.ZodTypeAny, {
988
+ subject: {
989
+ harness: string;
990
+ credential_route: "local" | "managed_api_key" | "vendor_native";
991
+ plan_label: string | null;
992
+ subject_id: string | null;
993
+ };
994
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
995
+ detail: string | null;
996
+ observed_at: string;
997
+ }, {
998
+ subject: {
999
+ harness: string;
1000
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1001
+ plan_label?: string | null | undefined;
1002
+ subject_id?: string | null | undefined;
1003
+ };
1004
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1005
+ detail?: string | null | undefined;
1006
+ observed_at: string;
1007
+ }>, "many">>;
1008
+ refreshed_at: z.ZodNullable<z.ZodString>;
1009
+ }, "strict", z.ZodTypeAny, {
1010
+ snapshots: {
1011
+ subject: {
1012
+ harness: string;
1013
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1014
+ plan_label: string | null;
1015
+ subject_id: string | null;
1016
+ };
1017
+ constraints: {
1018
+ id: string;
1019
+ label: string;
1020
+ used_ratio: number | null;
1021
+ window_seconds: number | null;
1022
+ resets_at: string | null;
1023
+ cooldown_until: string | null;
1024
+ }[];
1025
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1026
+ observed_at: string;
1027
+ freshness: "fresh" | "stale" | "unknown";
1028
+ }[];
1029
+ absences: {
1030
+ subject: {
1031
+ harness: string;
1032
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1033
+ plan_label: string | null;
1034
+ subject_id: string | null;
1035
+ };
1036
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1037
+ detail: string | null;
1038
+ observed_at: string;
1039
+ }[];
1040
+ refreshed_at: string | null;
1041
+ }, {
1042
+ snapshots: {
1043
+ subject: {
1044
+ harness: string;
1045
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1046
+ plan_label?: string | null | undefined;
1047
+ subject_id?: string | null | undefined;
1048
+ };
1049
+ constraints: {
1050
+ id: string;
1051
+ label: string;
1052
+ used_ratio: number | null;
1053
+ window_seconds: number | null;
1054
+ resets_at: string | null;
1055
+ cooldown_until?: string | null | undefined;
1056
+ }[];
1057
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1058
+ observed_at: string;
1059
+ freshness: "fresh" | "stale" | "unknown";
1060
+ }[];
1061
+ absences?: {
1062
+ subject: {
1063
+ harness: string;
1064
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1065
+ plan_label?: string | null | undefined;
1066
+ subject_id?: string | null | undefined;
1067
+ };
1068
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1069
+ detail?: string | null | undefined;
1070
+ observed_at: string;
1071
+ }[] | undefined;
1072
+ refreshed_at: string | null;
1073
+ }>;
1074
+ quotaEventCursor: z.ZodString;
1075
+ }, "strict", z.ZodTypeAny, {
1076
+ profiles: {
1077
+ profile: {
1078
+ profile_id: string;
1079
+ harness_id: string;
1080
+ display_name: string;
1081
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1082
+ isolation_locator: string | null;
1083
+ secret_ref: string | null;
1084
+ enabled: boolean;
1085
+ created_at: string | null;
1086
+ };
1087
+ status: {
1088
+ profile_id: string;
1089
+ harness_id: string;
1090
+ availability: "available" | "unavailable" | "unknown";
1091
+ verification: "failed" | "not_run" | "passed";
1092
+ verification_source: "local_store" | "vendor";
1093
+ detail?: string | undefined;
1094
+ last_verified_at: string | null;
1095
+ };
1096
+ identity: {
1097
+ email?: string | undefined;
1098
+ plan?: string | undefined;
1099
+ } | null;
1100
+ }[];
1101
+ harnessAccounts: {
1102
+ harness_id: string;
1103
+ native_credentials_enabled: boolean;
1104
+ native_login_detected: boolean;
1105
+ identity: {
1106
+ email?: string | undefined;
1107
+ plan?: string | undefined;
1108
+ } | null;
1109
+ next_up: {
1110
+ kind: "profile";
1111
+ profileId: string;
1112
+ } | {
1113
+ kind: "native";
1114
+ route?: "api_key" | "local_session" | undefined;
1115
+ } | {
1116
+ kind: "none";
1117
+ reason: string;
1118
+ };
1119
+ }[];
1120
+ harnesses: {
1121
+ id: string;
1122
+ status: "degraded" | "ok" | "unavailable";
1123
+ manifest?: {
1124
+ id: string;
1125
+ display_name: string;
1126
+ kind: "fake" | "local_cli" | "remote_api";
1127
+ version?: string | undefined;
1128
+ adapter_version?: string | undefined;
1129
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
1130
+ capability_profile: {
1131
+ auth: {
1132
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
1133
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
1134
+ credential_transports: {
1135
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1136
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1137
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
1138
+ }[];
1139
+ };
1140
+ access_control: {
1141
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
1142
+ };
1143
+ isolation: {
1144
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
1145
+ };
1146
+ attachment_inputs: {
1147
+ kind: "file" | "image";
1148
+ mime_types: string[];
1149
+ max_bytes: number;
1150
+ max_count: number;
1151
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
1152
+ }[];
1153
+ mcp_injection: boolean;
1154
+ mcp_injection_requires_full_access: boolean;
1155
+ };
1156
+ capabilities: {
1157
+ plan: boolean;
1158
+ implement: boolean;
1159
+ implementation_transport: "git_patch_envelope" | "workspace";
1160
+ create_from_scratch: boolean;
1161
+ review: boolean;
1162
+ verify: boolean;
1163
+ synthesize: boolean;
1164
+ read_files: boolean;
1165
+ browser_tool: boolean;
1166
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
1167
+ max_turns: boolean;
1168
+ tool_lists: boolean;
1169
+ interactive: boolean;
1170
+ json_schema_output: boolean;
1171
+ work_report_transport: "constrained" | "unsupported" | "validated";
1172
+ structured_output_channel: "final_message" | "side_tool";
1173
+ effort_levels: string[];
1174
+ model_effort_levels: Record<string, {
1175
+ levels: string[];
1176
+ default: string | null;
1177
+ }>;
1178
+ effort_levels_verified_against: string | null;
1179
+ known_models: (string | {
1180
+ id: string;
1181
+ routes: ("api_key" | "local_session")[];
1182
+ })[];
1183
+ known_models_verified_against: string | null;
1184
+ };
1185
+ auth_modes: ("api_key" | "local_session" | "none")[];
1186
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
1187
+ } | null | undefined;
1188
+ enabledIntents: string[];
1189
+ routableIntents: string[];
1190
+ disabledIntents: string[];
1191
+ checks: {
1192
+ id: string;
1193
+ status: "fail" | "pass" | "skip";
1194
+ detail?: string | undefined;
1195
+ duration_ms?: number | undefined;
1196
+ }[];
1197
+ reasons: string[];
1198
+ authSources: {
1199
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1200
+ availability: "available" | "unavailable" | "unknown";
1201
+ verification: "failed" | "not_run" | "passed";
1202
+ detail?: string | undefined;
1203
+ }[];
1204
+ readiness: {
1205
+ id: string;
1206
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
1207
+ title: string;
1208
+ status: "fail" | "pass" | "skip";
1209
+ detail: string | null;
1210
+ }[];
1211
+ configuredModel: string | null;
1212
+ configuredModelCheck: {
1213
+ status: "ok" | "rejected";
1214
+ message: string | null;
1215
+ } | null;
1216
+ delegation: {
1217
+ available: boolean;
1218
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
1219
+ remediation: string | null;
1220
+ requiresFullAccess: boolean;
1221
+ } | null;
1222
+ }[];
1223
+ git: {
1224
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
1225
+ version: string | null;
1226
+ detail: string | null;
1227
+ remediation: string | null;
1228
+ };
1229
+ quota: {
1230
+ snapshots: {
1231
+ subject: {
1232
+ harness: string;
1233
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1234
+ plan_label: string | null;
1235
+ subject_id: string | null;
1236
+ };
1237
+ constraints: {
1238
+ id: string;
1239
+ label: string;
1240
+ used_ratio: number | null;
1241
+ window_seconds: number | null;
1242
+ resets_at: string | null;
1243
+ cooldown_until: string | null;
1244
+ }[];
1245
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1246
+ observed_at: string;
1247
+ freshness: "fresh" | "stale" | "unknown";
1248
+ }[];
1249
+ absences: {
1250
+ subject: {
1251
+ harness: string;
1252
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1253
+ plan_label: string | null;
1254
+ subject_id: string | null;
1255
+ };
1256
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1257
+ detail: string | null;
1258
+ observed_at: string;
1259
+ }[];
1260
+ refreshed_at: string | null;
1261
+ };
1262
+ quotaEventCursor: string;
1263
+ }, {
1264
+ profiles: {
1265
+ profile: {
1266
+ profile_id: string;
1267
+ harness_id: string;
1268
+ display_name: string;
1269
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1270
+ isolation_locator?: string | null | undefined;
1271
+ secret_ref?: string | null | undefined;
1272
+ enabled?: boolean | undefined;
1273
+ created_at?: string | null | undefined;
1274
+ };
1275
+ status: {
1276
+ profile_id: string;
1277
+ harness_id: string;
1278
+ availability: "available" | "unavailable" | "unknown";
1279
+ verification: "failed" | "not_run" | "passed";
1280
+ verification_source?: "local_store" | "vendor" | undefined;
1281
+ detail?: string | undefined;
1282
+ last_verified_at?: string | null | undefined;
1283
+ };
1284
+ identity?: {
1285
+ email?: string | undefined;
1286
+ plan?: string | undefined;
1287
+ } | null | undefined;
1288
+ }[];
1289
+ harnessAccounts?: {
1290
+ harness_id: string;
1291
+ native_credentials_enabled: boolean;
1292
+ native_login_detected: boolean;
1293
+ identity?: {
1294
+ email?: string | undefined;
1295
+ plan?: string | undefined;
1296
+ } | null | undefined;
1297
+ next_up: {
1298
+ kind: "profile";
1299
+ profileId: string;
1300
+ } | {
1301
+ kind: "native";
1302
+ route?: "api_key" | "local_session" | undefined;
1303
+ } | {
1304
+ kind: "none";
1305
+ reason: string;
1306
+ };
1307
+ }[] | undefined;
1308
+ harnesses: {
1309
+ id: string;
1310
+ status: "degraded" | "ok" | "unavailable";
1311
+ manifest?: {
1312
+ id: string;
1313
+ display_name: string;
1314
+ kind: "fake" | "local_cli" | "remote_api";
1315
+ version?: string | undefined;
1316
+ adapter_version?: string | undefined;
1317
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
1318
+ capability_profile?: {
1319
+ auth?: {
1320
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
1321
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
1322
+ credential_transports?: {
1323
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1324
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1325
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
1326
+ }[] | undefined;
1327
+ } | undefined;
1328
+ access_control?: {
1329
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
1330
+ } | undefined;
1331
+ isolation?: {
1332
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
1333
+ } | undefined;
1334
+ attachment_inputs?: {
1335
+ kind: "file" | "image";
1336
+ mime_types: string[];
1337
+ max_bytes: number;
1338
+ max_count: number;
1339
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
1340
+ }[] | undefined;
1341
+ mcp_injection?: boolean | undefined;
1342
+ mcp_injection_requires_full_access?: boolean | undefined;
1343
+ } | undefined;
1344
+ capabilities: {
1345
+ plan?: boolean | undefined;
1346
+ implement?: boolean | undefined;
1347
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
1348
+ create_from_scratch?: boolean | undefined;
1349
+ review?: boolean | undefined;
1350
+ verify?: boolean | undefined;
1351
+ synthesize?: boolean | undefined;
1352
+ read_files?: boolean | undefined;
1353
+ browser_tool?: boolean | undefined;
1354
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
1355
+ max_turns?: boolean | undefined;
1356
+ tool_lists?: boolean | undefined;
1357
+ interactive?: boolean | undefined;
1358
+ json_schema_output?: boolean | undefined;
1359
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
1360
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
1361
+ effort_levels?: string[] | undefined;
1362
+ model_effort_levels?: Record<string, {
1363
+ levels?: string[] | undefined;
1364
+ default?: string | null | undefined;
1365
+ }> | undefined;
1366
+ effort_levels_verified_against?: string | null | undefined;
1367
+ known_models?: (string | {
1368
+ id: string;
1369
+ routes: ("api_key" | "local_session")[];
1370
+ })[] | undefined;
1371
+ known_models_verified_against?: string | null | undefined;
1372
+ };
1373
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
1374
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
1375
+ } | null | undefined;
1376
+ enabledIntents?: string[] | undefined;
1377
+ routableIntents?: string[] | undefined;
1378
+ disabledIntents?: string[] | undefined;
1379
+ checks?: {
1380
+ id: string;
1381
+ status: "fail" | "pass" | "skip";
1382
+ detail?: string | undefined;
1383
+ duration_ms?: number | undefined;
1384
+ }[] | undefined;
1385
+ reasons?: string[] | undefined;
1386
+ authSources?: {
1387
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1388
+ availability: "available" | "unavailable" | "unknown";
1389
+ verification: "failed" | "not_run" | "passed";
1390
+ detail?: string | undefined;
1391
+ }[] | undefined;
1392
+ readiness?: {
1393
+ id: string;
1394
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
1395
+ title: string;
1396
+ status: "fail" | "pass" | "skip";
1397
+ detail?: string | null | undefined;
1398
+ }[] | undefined;
1399
+ configuredModel?: string | null | undefined;
1400
+ configuredModelCheck?: {
1401
+ status: "ok" | "rejected";
1402
+ message?: string | null | undefined;
1403
+ } | null | undefined;
1404
+ delegation?: {
1405
+ available: boolean;
1406
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
1407
+ remediation?: string | null | undefined;
1408
+ requiresFullAccess?: boolean | undefined;
1409
+ } | null | undefined;
1410
+ }[];
1411
+ git: {
1412
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
1413
+ version: string | null;
1414
+ detail: string | null;
1415
+ remediation: string | null;
1416
+ };
1417
+ quota: {
1418
+ snapshots: {
1419
+ subject: {
1420
+ harness: string;
1421
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1422
+ plan_label?: string | null | undefined;
1423
+ subject_id?: string | null | undefined;
1424
+ };
1425
+ constraints: {
1426
+ id: string;
1427
+ label: string;
1428
+ used_ratio: number | null;
1429
+ window_seconds: number | null;
1430
+ resets_at: string | null;
1431
+ cooldown_until?: string | null | undefined;
1432
+ }[];
1433
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1434
+ observed_at: string;
1435
+ freshness: "fresh" | "stale" | "unknown";
1436
+ }[];
1437
+ absences?: {
1438
+ subject: {
1439
+ harness: string;
1440
+ credential_route: "local" | "managed_api_key" | "vendor_native";
1441
+ plan_label?: string | null | undefined;
1442
+ subject_id?: string | null | undefined;
1443
+ };
1444
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1445
+ detail?: string | null | undefined;
1446
+ observed_at: string;
1447
+ }[] | undefined;
1448
+ refreshed_at: string | null;
1449
+ };
1450
+ quotaEventCursor: string;
1451
+ }>;
1452
+ export type ControlCredentialProfilesSnapshotResponse = z.infer<typeof ControlCredentialProfilesSnapshotResponse>;
1453
+ /** Operation-catalog response contract for the query-shaped endpoint. The
1454
+ * actual route selects exactly one member from the validated `snapshot` query;
1455
+ * this union keeps discovery/docs honest without changing the legacy shape. */
1456
+ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodObject<{
1457
+ profiles: z.ZodArray<z.ZodObject<{
1458
+ profile: z.ZodEffects<z.ZodObject<{
1459
+ profile_id: z.ZodString;
1460
+ harness_id: z.ZodString;
1461
+ display_name: z.ZodString;
1462
+ credential_kind: z.ZodEnum<["config_dir_login", "oauth_token", "api_key"]>;
1463
+ isolation_locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1464
+ secret_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1465
+ enabled: z.ZodDefault<z.ZodBoolean>;
1466
+ created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1467
+ }, "strict", z.ZodTypeAny, {
1468
+ profile_id: string;
1469
+ harness_id: string;
1470
+ display_name: string;
1471
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1472
+ isolation_locator: string | null;
1473
+ secret_ref: string | null;
1474
+ enabled: boolean;
1475
+ created_at: string | null;
1476
+ }, {
1477
+ profile_id: string;
1478
+ harness_id: string;
1479
+ display_name: string;
1480
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1481
+ isolation_locator?: string | null | undefined;
1482
+ secret_ref?: string | null | undefined;
1483
+ enabled?: boolean | undefined;
1484
+ created_at?: string | null | undefined;
1485
+ }>, {
1486
+ profile_id: string;
1487
+ harness_id: string;
1488
+ display_name: string;
1489
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1490
+ isolation_locator: string | null;
1491
+ secret_ref: string | null;
1492
+ enabled: boolean;
1493
+ created_at: string | null;
1494
+ }, {
1495
+ profile_id: string;
1496
+ harness_id: string;
1497
+ display_name: string;
1498
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1499
+ isolation_locator?: string | null | undefined;
1500
+ secret_ref?: string | null | undefined;
1501
+ enabled?: boolean | undefined;
1502
+ created_at?: string | null | undefined;
1503
+ }>;
1504
+ status: z.ZodObject<{
1505
+ profile_id: z.ZodString;
1506
+ harness_id: z.ZodString;
1507
+ availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
1508
+ verification: z.ZodEnum<["passed", "failed", "not_run"]>;
1509
+ verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
1510
+ detail: z.ZodOptional<z.ZodString>;
1511
+ last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1512
+ }, "strict", z.ZodTypeAny, {
1513
+ profile_id: string;
1514
+ harness_id: string;
1515
+ availability: "available" | "unavailable" | "unknown";
1516
+ verification: "failed" | "not_run" | "passed";
1517
+ verification_source: "local_store" | "vendor";
1518
+ detail?: string | undefined;
1519
+ last_verified_at: string | null;
1520
+ }, {
1521
+ profile_id: string;
1522
+ harness_id: string;
1523
+ availability: "available" | "unavailable" | "unknown";
1524
+ verification: "failed" | "not_run" | "passed";
1525
+ verification_source?: "local_store" | "vendor" | undefined;
1526
+ detail?: string | undefined;
1527
+ last_verified_at?: string | null | undefined;
1528
+ }>;
1529
+ identity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1530
+ email: z.ZodOptional<z.ZodString>;
1531
+ plan: z.ZodOptional<z.ZodString>;
1532
+ }, "strict", z.ZodTypeAny, {
1533
+ email?: string | undefined;
1534
+ plan?: string | undefined;
1535
+ }, {
1536
+ email?: string | undefined;
1537
+ plan?: string | undefined;
1538
+ }>>>;
1539
+ }, "strict", z.ZodTypeAny, {
1540
+ profile: {
1541
+ profile_id: string;
1542
+ harness_id: string;
1543
+ display_name: string;
1544
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1545
+ isolation_locator: string | null;
1546
+ secret_ref: string | null;
1547
+ enabled: boolean;
1548
+ created_at: string | null;
1549
+ };
1550
+ status: {
1551
+ profile_id: string;
1552
+ harness_id: string;
1553
+ availability: "available" | "unavailable" | "unknown";
1554
+ verification: "failed" | "not_run" | "passed";
1555
+ verification_source: "local_store" | "vendor";
1556
+ detail?: string | undefined;
1557
+ last_verified_at: string | null;
1558
+ };
1559
+ identity: {
1560
+ email?: string | undefined;
1561
+ plan?: string | undefined;
1562
+ } | null;
1563
+ }, {
1564
+ profile: {
1565
+ profile_id: string;
1566
+ harness_id: string;
1567
+ display_name: string;
1568
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1569
+ isolation_locator?: string | null | undefined;
1570
+ secret_ref?: string | null | undefined;
1571
+ enabled?: boolean | undefined;
1572
+ created_at?: string | null | undefined;
1573
+ };
1574
+ status: {
1575
+ profile_id: string;
1576
+ harness_id: string;
1577
+ availability: "available" | "unavailable" | "unknown";
1578
+ verification: "failed" | "not_run" | "passed";
1579
+ verification_source?: "local_store" | "vendor" | undefined;
1580
+ detail?: string | undefined;
1581
+ last_verified_at?: string | null | undefined;
1582
+ };
1583
+ identity?: {
1584
+ email?: string | undefined;
1585
+ plan?: string | undefined;
1586
+ } | null | undefined;
1587
+ }>, "many">;
1588
+ harnessAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1589
+ harness_id: z.ZodString;
1590
+ native_credentials_enabled: z.ZodBoolean;
1591
+ native_login_detected: z.ZodBoolean;
1592
+ identity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1593
+ email: z.ZodOptional<z.ZodString>;
1594
+ plan: z.ZodOptional<z.ZodString>;
1595
+ }, "strict", z.ZodTypeAny, {
1596
+ email?: string | undefined;
1597
+ plan?: string | undefined;
1598
+ }, {
1599
+ email?: string | undefined;
1600
+ plan?: string | undefined;
1601
+ }>>>;
1602
+ next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1603
+ kind: z.ZodLiteral<"profile">;
1604
+ profileId: z.ZodString;
1605
+ }, "strict", z.ZodTypeAny, {
1606
+ kind: "profile";
1607
+ profileId: string;
1608
+ }, {
1609
+ kind: "profile";
1610
+ profileId: string;
1611
+ }>, z.ZodObject<{
1612
+ kind: z.ZodLiteral<"native">;
1613
+ route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
1614
+ }, "strict", z.ZodTypeAny, {
1615
+ kind: "native";
1616
+ route?: "api_key" | "local_session" | undefined;
1617
+ }, {
1618
+ kind: "native";
1619
+ route?: "api_key" | "local_session" | undefined;
1620
+ }>, z.ZodObject<{
1621
+ kind: z.ZodLiteral<"none">;
1622
+ reason: z.ZodString;
1623
+ }, "strict", z.ZodTypeAny, {
1624
+ kind: "none";
1625
+ reason: string;
1626
+ }, {
1627
+ kind: "none";
1628
+ reason: string;
1629
+ }>]>;
1630
+ }, "strict", z.ZodTypeAny, {
1631
+ harness_id: string;
1632
+ native_credentials_enabled: boolean;
1633
+ native_login_detected: boolean;
1634
+ identity: {
1635
+ email?: string | undefined;
1636
+ plan?: string | undefined;
1637
+ } | null;
1638
+ next_up: {
1639
+ kind: "profile";
1640
+ profileId: string;
1641
+ } | {
1642
+ kind: "native";
1643
+ route?: "api_key" | "local_session" | undefined;
1644
+ } | {
1645
+ kind: "none";
1646
+ reason: string;
1647
+ };
1648
+ }, {
1649
+ harness_id: string;
1650
+ native_credentials_enabled: boolean;
1651
+ native_login_detected: boolean;
1652
+ identity?: {
1653
+ email?: string | undefined;
1654
+ plan?: string | undefined;
1655
+ } | null | undefined;
1656
+ next_up: {
1657
+ kind: "profile";
1658
+ profileId: string;
1659
+ } | {
1660
+ kind: "native";
1661
+ route?: "api_key" | "local_session" | undefined;
1662
+ } | {
1663
+ kind: "none";
1664
+ reason: string;
1665
+ };
1666
+ }>, "many">>;
1667
+ }, "strict", z.ZodTypeAny, {
1668
+ profiles: {
1669
+ profile: {
1670
+ profile_id: string;
1671
+ harness_id: string;
1672
+ display_name: string;
1673
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1674
+ isolation_locator: string | null;
1675
+ secret_ref: string | null;
1676
+ enabled: boolean;
1677
+ created_at: string | null;
1678
+ };
1679
+ status: {
1680
+ profile_id: string;
1681
+ harness_id: string;
1682
+ availability: "available" | "unavailable" | "unknown";
1683
+ verification: "failed" | "not_run" | "passed";
1684
+ verification_source: "local_store" | "vendor";
1685
+ detail?: string | undefined;
1686
+ last_verified_at: string | null;
1687
+ };
1688
+ identity: {
1689
+ email?: string | undefined;
1690
+ plan?: string | undefined;
1691
+ } | null;
1692
+ }[];
1693
+ harnessAccounts: {
1694
+ harness_id: string;
1695
+ native_credentials_enabled: boolean;
1696
+ native_login_detected: boolean;
1697
+ identity: {
1698
+ email?: string | undefined;
1699
+ plan?: string | undefined;
1700
+ } | null;
1701
+ next_up: {
1702
+ kind: "profile";
1703
+ profileId: string;
1704
+ } | {
1705
+ kind: "native";
1706
+ route?: "api_key" | "local_session" | undefined;
1707
+ } | {
1708
+ kind: "none";
1709
+ reason: string;
1710
+ };
1711
+ }[];
1712
+ }, {
1713
+ profiles: {
1714
+ profile: {
1715
+ profile_id: string;
1716
+ harness_id: string;
1717
+ display_name: string;
1718
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1719
+ isolation_locator?: string | null | undefined;
1720
+ secret_ref?: string | null | undefined;
1721
+ enabled?: boolean | undefined;
1722
+ created_at?: string | null | undefined;
1723
+ };
1724
+ status: {
1725
+ profile_id: string;
1726
+ harness_id: string;
1727
+ availability: "available" | "unavailable" | "unknown";
1728
+ verification: "failed" | "not_run" | "passed";
1729
+ verification_source?: "local_store" | "vendor" | undefined;
1730
+ detail?: string | undefined;
1731
+ last_verified_at?: string | null | undefined;
1732
+ };
1733
+ identity?: {
1734
+ email?: string | undefined;
1735
+ plan?: string | undefined;
1736
+ } | null | undefined;
1737
+ }[];
1738
+ harnessAccounts?: {
1739
+ harness_id: string;
1740
+ native_credentials_enabled: boolean;
1741
+ native_login_detected: boolean;
1742
+ identity?: {
1743
+ email?: string | undefined;
1744
+ plan?: string | undefined;
1745
+ } | null | undefined;
1746
+ next_up: {
1747
+ kind: "profile";
1748
+ profileId: string;
1749
+ } | {
1750
+ kind: "native";
1751
+ route?: "api_key" | "local_session" | undefined;
1752
+ } | {
1753
+ kind: "none";
1754
+ reason: string;
1755
+ };
1756
+ }[] | undefined;
1757
+ }>, z.ZodObject<{
1758
+ profiles: z.ZodArray<z.ZodObject<{
1759
+ profile: z.ZodEffects<z.ZodObject<{
1760
+ profile_id: z.ZodString;
1761
+ harness_id: z.ZodString;
1762
+ display_name: z.ZodString;
1763
+ credential_kind: z.ZodEnum<["config_dir_login", "oauth_token", "api_key"]>;
1764
+ isolation_locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1765
+ secret_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1766
+ enabled: z.ZodDefault<z.ZodBoolean>;
1767
+ created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1768
+ }, "strict", z.ZodTypeAny, {
1769
+ profile_id: string;
1770
+ harness_id: string;
1771
+ display_name: string;
1772
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1773
+ isolation_locator: string | null;
1774
+ secret_ref: string | null;
1775
+ enabled: boolean;
1776
+ created_at: string | null;
1777
+ }, {
1778
+ profile_id: string;
1779
+ harness_id: string;
1780
+ display_name: string;
1781
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1782
+ isolation_locator?: string | null | undefined;
1783
+ secret_ref?: string | null | undefined;
1784
+ enabled?: boolean | undefined;
1785
+ created_at?: string | null | undefined;
1786
+ }>, {
1787
+ profile_id: string;
1788
+ harness_id: string;
1789
+ display_name: string;
1790
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1791
+ isolation_locator: string | null;
1792
+ secret_ref: string | null;
1793
+ enabled: boolean;
1794
+ created_at: string | null;
1795
+ }, {
1796
+ profile_id: string;
1797
+ harness_id: string;
1798
+ display_name: string;
1799
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1800
+ isolation_locator?: string | null | undefined;
1801
+ secret_ref?: string | null | undefined;
1802
+ enabled?: boolean | undefined;
1803
+ created_at?: string | null | undefined;
1804
+ }>;
1805
+ status: z.ZodObject<{
1806
+ profile_id: z.ZodString;
1807
+ harness_id: z.ZodString;
1808
+ availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
1809
+ verification: z.ZodEnum<["passed", "failed", "not_run"]>;
1810
+ verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
1811
+ detail: z.ZodOptional<z.ZodString>;
1812
+ last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1813
+ }, "strict", z.ZodTypeAny, {
1814
+ profile_id: string;
1815
+ harness_id: string;
1816
+ availability: "available" | "unavailable" | "unknown";
1817
+ verification: "failed" | "not_run" | "passed";
1818
+ verification_source: "local_store" | "vendor";
1819
+ detail?: string | undefined;
1820
+ last_verified_at: string | null;
1821
+ }, {
1822
+ profile_id: string;
1823
+ harness_id: string;
1824
+ availability: "available" | "unavailable" | "unknown";
1825
+ verification: "failed" | "not_run" | "passed";
1826
+ verification_source?: "local_store" | "vendor" | undefined;
1827
+ detail?: string | undefined;
1828
+ last_verified_at?: string | null | undefined;
1829
+ }>;
1830
+ identity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1831
+ email: z.ZodOptional<z.ZodString>;
1832
+ plan: z.ZodOptional<z.ZodString>;
1833
+ }, "strict", z.ZodTypeAny, {
1834
+ email?: string | undefined;
1835
+ plan?: string | undefined;
1836
+ }, {
1837
+ email?: string | undefined;
1838
+ plan?: string | undefined;
1839
+ }>>>;
1840
+ }, "strict", z.ZodTypeAny, {
1841
+ profile: {
1842
+ profile_id: string;
1843
+ harness_id: string;
1844
+ display_name: string;
1845
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1846
+ isolation_locator: string | null;
1847
+ secret_ref: string | null;
1848
+ enabled: boolean;
1849
+ created_at: string | null;
1850
+ };
1851
+ status: {
1852
+ profile_id: string;
1853
+ harness_id: string;
1854
+ availability: "available" | "unavailable" | "unknown";
1855
+ verification: "failed" | "not_run" | "passed";
1856
+ verification_source: "local_store" | "vendor";
1857
+ detail?: string | undefined;
1858
+ last_verified_at: string | null;
1859
+ };
1860
+ identity: {
1861
+ email?: string | undefined;
1862
+ plan?: string | undefined;
1863
+ } | null;
1864
+ }, {
1865
+ profile: {
1866
+ profile_id: string;
1867
+ harness_id: string;
1868
+ display_name: string;
1869
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
1870
+ isolation_locator?: string | null | undefined;
1871
+ secret_ref?: string | null | undefined;
1872
+ enabled?: boolean | undefined;
1873
+ created_at?: string | null | undefined;
1874
+ };
1875
+ status: {
1876
+ profile_id: string;
1877
+ harness_id: string;
1878
+ availability: "available" | "unavailable" | "unknown";
1879
+ verification: "failed" | "not_run" | "passed";
1880
+ verification_source?: "local_store" | "vendor" | undefined;
1881
+ detail?: string | undefined;
1882
+ last_verified_at?: string | null | undefined;
1883
+ };
1884
+ identity?: {
1885
+ email?: string | undefined;
1886
+ plan?: string | undefined;
1887
+ } | null | undefined;
1888
+ }>, "many">;
1889
+ harnessAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1890
+ harness_id: z.ZodString;
1891
+ native_credentials_enabled: z.ZodBoolean;
1892
+ native_login_detected: z.ZodBoolean;
1893
+ identity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1894
+ email: z.ZodOptional<z.ZodString>;
1895
+ plan: z.ZodOptional<z.ZodString>;
1896
+ }, "strict", z.ZodTypeAny, {
1897
+ email?: string | undefined;
1898
+ plan?: string | undefined;
1899
+ }, {
1900
+ email?: string | undefined;
1901
+ plan?: string | undefined;
1902
+ }>>>;
1903
+ next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1904
+ kind: z.ZodLiteral<"profile">;
1905
+ profileId: z.ZodString;
1906
+ }, "strict", z.ZodTypeAny, {
1907
+ kind: "profile";
1908
+ profileId: string;
1909
+ }, {
1910
+ kind: "profile";
1911
+ profileId: string;
1912
+ }>, z.ZodObject<{
1913
+ kind: z.ZodLiteral<"native">;
1914
+ route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
1915
+ }, "strict", z.ZodTypeAny, {
1916
+ kind: "native";
1917
+ route?: "api_key" | "local_session" | undefined;
1918
+ }, {
1919
+ kind: "native";
1920
+ route?: "api_key" | "local_session" | undefined;
1921
+ }>, z.ZodObject<{
1922
+ kind: z.ZodLiteral<"none">;
1923
+ reason: z.ZodString;
1924
+ }, "strict", z.ZodTypeAny, {
1925
+ kind: "none";
1926
+ reason: string;
1927
+ }, {
1928
+ kind: "none";
1929
+ reason: string;
1930
+ }>]>;
1931
+ }, "strict", z.ZodTypeAny, {
1932
+ harness_id: string;
1933
+ native_credentials_enabled: boolean;
1934
+ native_login_detected: boolean;
1935
+ identity: {
1936
+ email?: string | undefined;
1937
+ plan?: string | undefined;
1938
+ } | null;
1939
+ next_up: {
1940
+ kind: "profile";
1941
+ profileId: string;
1942
+ } | {
1943
+ kind: "native";
1944
+ route?: "api_key" | "local_session" | undefined;
1945
+ } | {
1946
+ kind: "none";
1947
+ reason: string;
1948
+ };
1949
+ }, {
1950
+ harness_id: string;
1951
+ native_credentials_enabled: boolean;
1952
+ native_login_detected: boolean;
1953
+ identity?: {
1954
+ email?: string | undefined;
1955
+ plan?: string | undefined;
1956
+ } | null | undefined;
1957
+ next_up: {
1958
+ kind: "profile";
1959
+ profileId: string;
1960
+ } | {
1961
+ kind: "native";
1962
+ route?: "api_key" | "local_session" | undefined;
1963
+ } | {
1964
+ kind: "none";
1965
+ reason: string;
1966
+ };
1967
+ }>, "many">>;
1968
+ } & {
1969
+ harnesses: z.ZodArray<z.ZodObject<{
1970
+ id: z.ZodString;
1971
+ status: z.ZodEnum<["ok", "degraded", "unavailable"]>;
1972
+ manifest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1973
+ id: z.ZodString;
1974
+ display_name: z.ZodString;
1975
+ kind: z.ZodEnum<["local_cli", "remote_api", "fake"]>;
1976
+ version: z.ZodOptional<z.ZodString>;
1977
+ adapter_version: z.ZodOptional<z.ZodString>;
1978
+ provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
1979
+ capability_profile: z.ZodDefault<z.ZodObject<{
1980
+ auth: z.ZodDefault<z.ZodObject<{
1981
+ supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
1982
+ preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
1983
+ credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
1984
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
1985
+ kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
1986
+ relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1989
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1990
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
1991
+ }, {
1992
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1993
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1994
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
1995
+ }>, "many">>;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
1998
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
1999
+ credential_transports: {
2000
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2001
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2002
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2003
+ }[];
2004
+ }, {
2005
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2006
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2007
+ credential_transports?: {
2008
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2009
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2010
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2011
+ }[] | undefined;
2012
+ }>>;
2013
+ access_control: z.ZodDefault<z.ZodObject<{
2014
+ readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
2017
+ }, {
2018
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
2019
+ }>>;
2020
+ isolation: z.ZodDefault<z.ZodObject<{
2021
+ supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
2024
+ }, {
2025
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
2026
+ }>>;
2027
+ attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2028
+ kind: z.ZodEnum<["image", "file"]>;
2029
+ mime_types: z.ZodArray<z.ZodString, "many">;
2030
+ max_bytes: z.ZodNumber;
2031
+ max_count: z.ZodNumber;
2032
+ transport: z.ZodEnum<["file_path", "base64_stream", "base64_inline", "text_inline"]>;
2033
+ }, "strict", z.ZodTypeAny, {
2034
+ kind: "file" | "image";
2035
+ mime_types: string[];
2036
+ max_bytes: number;
2037
+ max_count: number;
2038
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2039
+ }, {
2040
+ kind: "file" | "image";
2041
+ mime_types: string[];
2042
+ max_bytes: number;
2043
+ max_count: number;
2044
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2045
+ }>, "many">>;
2046
+ mcp_injection: z.ZodDefault<z.ZodBoolean>;
2047
+ mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
2048
+ }, "strip", z.ZodTypeAny, {
2049
+ auth: {
2050
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2051
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
2052
+ credential_transports: {
2053
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2054
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2055
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2056
+ }[];
2057
+ };
2058
+ access_control: {
2059
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
2060
+ };
2061
+ isolation: {
2062
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
2063
+ };
2064
+ attachment_inputs: {
2065
+ kind: "file" | "image";
2066
+ mime_types: string[];
2067
+ max_bytes: number;
2068
+ max_count: number;
2069
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2070
+ }[];
2071
+ mcp_injection: boolean;
2072
+ mcp_injection_requires_full_access: boolean;
2073
+ }, {
2074
+ auth?: {
2075
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2076
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2077
+ credential_transports?: {
2078
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2079
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2080
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2081
+ }[] | undefined;
2082
+ } | undefined;
2083
+ access_control?: {
2084
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
2085
+ } | undefined;
2086
+ isolation?: {
2087
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
2088
+ } | undefined;
2089
+ attachment_inputs?: {
2090
+ kind: "file" | "image";
2091
+ mime_types: string[];
2092
+ max_bytes: number;
2093
+ max_count: number;
2094
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2095
+ }[] | undefined;
2096
+ mcp_injection?: boolean | undefined;
2097
+ mcp_injection_requires_full_access?: boolean | undefined;
2098
+ }>>;
2099
+ capabilities: z.ZodObject<{
2100
+ plan: z.ZodDefault<z.ZodBoolean>;
2101
+ implement: z.ZodDefault<z.ZodBoolean>;
2102
+ implementation_transport: z.ZodDefault<z.ZodEnum<["workspace", "git_patch_envelope"]>>;
2103
+ create_from_scratch: z.ZodDefault<z.ZodBoolean>;
2104
+ review: z.ZodDefault<z.ZodBoolean>;
2105
+ verify: z.ZodDefault<z.ZodBoolean>;
2106
+ synthesize: z.ZodDefault<z.ZodBoolean>;
2107
+ read_files: z.ZodDefault<z.ZodBoolean>;
2108
+ browser_tool: z.ZodDefault<z.ZodBoolean>;
2109
+ web_policy: z.ZodDefault<z.ZodEnum<["native", "tools", "uncontrolled", "none"]>>;
2110
+ max_turns: z.ZodDefault<z.ZodBoolean>;
2111
+ tool_lists: z.ZodDefault<z.ZodBoolean>;
2112
+ interactive: z.ZodDefault<z.ZodBoolean>;
2113
+ json_schema_output: z.ZodDefault<z.ZodBoolean>;
2114
+ work_report_transport: z.ZodDefault<z.ZodEnum<["constrained", "validated", "unsupported"]>>;
2115
+ structured_output_channel: z.ZodDefault<z.ZodEnum<["side_tool", "final_message"]>>;
2116
+ effort_levels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2117
+ model_effort_levels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
2118
+ levels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2119
+ default: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2120
+ }, "strict", z.ZodTypeAny, {
2121
+ levels: string[];
2122
+ default: string | null;
2123
+ }, {
2124
+ levels?: string[] | undefined;
2125
+ default?: string | null | undefined;
2126
+ }>>>;
2127
+ effort_levels_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2128
+ known_models: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2129
+ id: z.ZodString;
2130
+ routes: z.ZodArray<z.ZodEnum<["local_session", "api_key"]>, "many">;
2131
+ }, "strict", z.ZodTypeAny, {
2132
+ id: string;
2133
+ routes: ("api_key" | "local_session")[];
2134
+ }, {
2135
+ id: string;
2136
+ routes: ("api_key" | "local_session")[];
2137
+ }>]>, "many">>;
2138
+ known_models_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ plan: boolean;
2141
+ implement: boolean;
2142
+ implementation_transport: "git_patch_envelope" | "workspace";
2143
+ create_from_scratch: boolean;
2144
+ review: boolean;
2145
+ verify: boolean;
2146
+ synthesize: boolean;
2147
+ read_files: boolean;
2148
+ browser_tool: boolean;
2149
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
2150
+ max_turns: boolean;
2151
+ tool_lists: boolean;
2152
+ interactive: boolean;
2153
+ json_schema_output: boolean;
2154
+ work_report_transport: "constrained" | "unsupported" | "validated";
2155
+ structured_output_channel: "final_message" | "side_tool";
2156
+ effort_levels: string[];
2157
+ model_effort_levels: Record<string, {
2158
+ levels: string[];
2159
+ default: string | null;
2160
+ }>;
2161
+ effort_levels_verified_against: string | null;
2162
+ known_models: (string | {
2163
+ id: string;
2164
+ routes: ("api_key" | "local_session")[];
2165
+ })[];
2166
+ known_models_verified_against: string | null;
2167
+ }, {
2168
+ plan?: boolean | undefined;
2169
+ implement?: boolean | undefined;
2170
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
2171
+ create_from_scratch?: boolean | undefined;
2172
+ review?: boolean | undefined;
2173
+ verify?: boolean | undefined;
2174
+ synthesize?: boolean | undefined;
2175
+ read_files?: boolean | undefined;
2176
+ browser_tool?: boolean | undefined;
2177
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
2178
+ max_turns?: boolean | undefined;
2179
+ tool_lists?: boolean | undefined;
2180
+ interactive?: boolean | undefined;
2181
+ json_schema_output?: boolean | undefined;
2182
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
2183
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
2184
+ effort_levels?: string[] | undefined;
2185
+ model_effort_levels?: Record<string, {
2186
+ levels?: string[] | undefined;
2187
+ default?: string | null | undefined;
2188
+ }> | undefined;
2189
+ effort_levels_verified_against?: string | null | undefined;
2190
+ known_models?: (string | {
2191
+ id: string;
2192
+ routes: ("api_key" | "local_session")[];
2193
+ })[] | undefined;
2194
+ known_models_verified_against?: string | null | undefined;
2195
+ }>;
2196
+ auth_modes: z.ZodDefault<z.ZodArray<z.ZodEnum<["local_session", "api_key", "none"]>, "many">>;
2197
+ access_profiles_supported: z.ZodDefault<z.ZodArray<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>, "many">>;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ id: string;
2200
+ display_name: string;
2201
+ kind: "fake" | "local_cli" | "remote_api";
2202
+ version?: string | undefined;
2203
+ adapter_version?: string | undefined;
2204
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
2205
+ capability_profile: {
2206
+ auth: {
2207
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2208
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
2209
+ credential_transports: {
2210
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2211
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2212
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2213
+ }[];
2214
+ };
2215
+ access_control: {
2216
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
2217
+ };
2218
+ isolation: {
2219
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
2220
+ };
2221
+ attachment_inputs: {
2222
+ kind: "file" | "image";
2223
+ mime_types: string[];
2224
+ max_bytes: number;
2225
+ max_count: number;
2226
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2227
+ }[];
2228
+ mcp_injection: boolean;
2229
+ mcp_injection_requires_full_access: boolean;
2230
+ };
2231
+ capabilities: {
2232
+ plan: boolean;
2233
+ implement: boolean;
2234
+ implementation_transport: "git_patch_envelope" | "workspace";
2235
+ create_from_scratch: boolean;
2236
+ review: boolean;
2237
+ verify: boolean;
2238
+ synthesize: boolean;
2239
+ read_files: boolean;
2240
+ browser_tool: boolean;
2241
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
2242
+ max_turns: boolean;
2243
+ tool_lists: boolean;
2244
+ interactive: boolean;
2245
+ json_schema_output: boolean;
2246
+ work_report_transport: "constrained" | "unsupported" | "validated";
2247
+ structured_output_channel: "final_message" | "side_tool";
2248
+ effort_levels: string[];
2249
+ model_effort_levels: Record<string, {
2250
+ levels: string[];
2251
+ default: string | null;
2252
+ }>;
2253
+ effort_levels_verified_against: string | null;
2254
+ known_models: (string | {
2255
+ id: string;
2256
+ routes: ("api_key" | "local_session")[];
2257
+ })[];
2258
+ known_models_verified_against: string | null;
2259
+ };
2260
+ auth_modes: ("api_key" | "local_session" | "none")[];
2261
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
2262
+ }, {
2263
+ id: string;
2264
+ display_name: string;
2265
+ kind: "fake" | "local_cli" | "remote_api";
2266
+ version?: string | undefined;
2267
+ adapter_version?: string | undefined;
2268
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
2269
+ capability_profile?: {
2270
+ auth?: {
2271
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2272
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2273
+ credential_transports?: {
2274
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2275
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2276
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2277
+ }[] | undefined;
2278
+ } | undefined;
2279
+ access_control?: {
2280
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
2281
+ } | undefined;
2282
+ isolation?: {
2283
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
2284
+ } | undefined;
2285
+ attachment_inputs?: {
2286
+ kind: "file" | "image";
2287
+ mime_types: string[];
2288
+ max_bytes: number;
2289
+ max_count: number;
2290
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2291
+ }[] | undefined;
2292
+ mcp_injection?: boolean | undefined;
2293
+ mcp_injection_requires_full_access?: boolean | undefined;
2294
+ } | undefined;
2295
+ capabilities: {
2296
+ plan?: boolean | undefined;
2297
+ implement?: boolean | undefined;
2298
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
2299
+ create_from_scratch?: boolean | undefined;
2300
+ review?: boolean | undefined;
2301
+ verify?: boolean | undefined;
2302
+ synthesize?: boolean | undefined;
2303
+ read_files?: boolean | undefined;
2304
+ browser_tool?: boolean | undefined;
2305
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
2306
+ max_turns?: boolean | undefined;
2307
+ tool_lists?: boolean | undefined;
2308
+ interactive?: boolean | undefined;
2309
+ json_schema_output?: boolean | undefined;
2310
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
2311
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
2312
+ effort_levels?: string[] | undefined;
2313
+ model_effort_levels?: Record<string, {
2314
+ levels?: string[] | undefined;
2315
+ default?: string | null | undefined;
2316
+ }> | undefined;
2317
+ effort_levels_verified_against?: string | null | undefined;
2318
+ known_models?: (string | {
2319
+ id: string;
2320
+ routes: ("api_key" | "local_session")[];
2321
+ })[] | undefined;
2322
+ known_models_verified_against?: string | null | undefined;
2323
+ };
2324
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
2325
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
2326
+ }>>>;
2327
+ enabledIntents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2328
+ routableIntents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2329
+ disabledIntents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2330
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2331
+ id: z.ZodString;
2332
+ status: z.ZodEnum<["pass", "fail", "skip"]>;
2333
+ detail: z.ZodOptional<z.ZodString>;
2334
+ duration_ms: z.ZodOptional<z.ZodNumber>;
2335
+ }, "strip", z.ZodTypeAny, {
2336
+ id: string;
2337
+ status: "fail" | "pass" | "skip";
2338
+ detail?: string | undefined;
2339
+ duration_ms?: number | undefined;
2340
+ }, {
2341
+ id: string;
2342
+ status: "fail" | "pass" | "skip";
2343
+ detail?: string | undefined;
2344
+ duration_ms?: number | undefined;
2345
+ }>, "many">>;
2346
+ reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2347
+ authSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
2348
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
2349
+ availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
2350
+ verification: z.ZodEnum<["passed", "failed", "not_run"]>;
2351
+ detail: z.ZodOptional<z.ZodString>;
2352
+ }, "strict", z.ZodTypeAny, {
2353
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2354
+ availability: "available" | "unavailable" | "unknown";
2355
+ verification: "failed" | "not_run" | "passed";
2356
+ detail?: string | undefined;
2357
+ }, {
2358
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2359
+ availability: "available" | "unavailable" | "unknown";
2360
+ verification: "failed" | "not_run" | "passed";
2361
+ detail?: string | undefined;
2362
+ }>, "many">>;
2363
+ readiness: z.ZodDefault<z.ZodArray<z.ZodObject<{
2364
+ id: z.ZodString;
2365
+ kind: z.ZodEnum<["binary", "auth", "smoke", "model", "probe"]>;
2366
+ title: z.ZodString;
2367
+ status: z.ZodEnum<["pass", "fail", "skip"]>;
2368
+ detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2369
+ }, "strip", z.ZodTypeAny, {
2370
+ id: string;
2371
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
2372
+ title: string;
2373
+ status: "fail" | "pass" | "skip";
2374
+ detail: string | null;
2375
+ }, {
2376
+ id: string;
2377
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
2378
+ title: string;
2379
+ status: "fail" | "pass" | "skip";
2380
+ detail?: string | null | undefined;
2381
+ }>, "many">>;
2382
+ configuredModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2383
+ configuredModelCheck: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2384
+ status: z.ZodEnum<["ok", "rejected"]>;
2385
+ message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2386
+ }, "strip", z.ZodTypeAny, {
2387
+ status: "ok" | "rejected";
2388
+ message: string | null;
2389
+ }, {
2390
+ status: "ok" | "rejected";
2391
+ message?: string | null | undefined;
2392
+ }>>>;
2393
+ delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
2394
+ available: z.ZodBoolean;
2395
+ reason: z.ZodEnum<["ready", "runtime_unavailable", "manifest_unsupported"]>;
2396
+ remediation: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2397
+ requiresFullAccess: z.ZodDefault<z.ZodBoolean>;
2398
+ }, "strict", z.ZodTypeAny, {
2399
+ available: boolean;
2400
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2401
+ remediation: string | null;
2402
+ requiresFullAccess: boolean;
2403
+ }, {
2404
+ available: boolean;
2405
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2406
+ remediation?: string | null | undefined;
2407
+ requiresFullAccess?: boolean | undefined;
2408
+ }>, {
2409
+ available: boolean;
2410
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2411
+ remediation: string | null;
2412
+ requiresFullAccess: boolean;
2413
+ }, {
2414
+ available: boolean;
2415
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2416
+ remediation?: string | null | undefined;
2417
+ requiresFullAccess?: boolean | undefined;
2418
+ }>>>;
2419
+ }, "strip", z.ZodTypeAny, {
2420
+ id: string;
2421
+ status: "degraded" | "ok" | "unavailable";
2422
+ manifest?: {
2423
+ id: string;
2424
+ display_name: string;
2425
+ kind: "fake" | "local_cli" | "remote_api";
2426
+ version?: string | undefined;
2427
+ adapter_version?: string | undefined;
2428
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
2429
+ capability_profile: {
2430
+ auth: {
2431
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2432
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
2433
+ credential_transports: {
2434
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2435
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2436
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2437
+ }[];
2438
+ };
2439
+ access_control: {
2440
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
2441
+ };
2442
+ isolation: {
2443
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
2444
+ };
2445
+ attachment_inputs: {
2446
+ kind: "file" | "image";
2447
+ mime_types: string[];
2448
+ max_bytes: number;
2449
+ max_count: number;
2450
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2451
+ }[];
2452
+ mcp_injection: boolean;
2453
+ mcp_injection_requires_full_access: boolean;
2454
+ };
2455
+ capabilities: {
2456
+ plan: boolean;
2457
+ implement: boolean;
2458
+ implementation_transport: "git_patch_envelope" | "workspace";
2459
+ create_from_scratch: boolean;
2460
+ review: boolean;
2461
+ verify: boolean;
2462
+ synthesize: boolean;
2463
+ read_files: boolean;
2464
+ browser_tool: boolean;
2465
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
2466
+ max_turns: boolean;
2467
+ tool_lists: boolean;
2468
+ interactive: boolean;
2469
+ json_schema_output: boolean;
2470
+ work_report_transport: "constrained" | "unsupported" | "validated";
2471
+ structured_output_channel: "final_message" | "side_tool";
2472
+ effort_levels: string[];
2473
+ model_effort_levels: Record<string, {
2474
+ levels: string[];
2475
+ default: string | null;
2476
+ }>;
2477
+ effort_levels_verified_against: string | null;
2478
+ known_models: (string | {
2479
+ id: string;
2480
+ routes: ("api_key" | "local_session")[];
2481
+ })[];
2482
+ known_models_verified_against: string | null;
2483
+ };
2484
+ auth_modes: ("api_key" | "local_session" | "none")[];
2485
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
2486
+ } | null | undefined;
2487
+ enabledIntents: string[];
2488
+ routableIntents: string[];
2489
+ disabledIntents: string[];
2490
+ checks: {
2491
+ id: string;
2492
+ status: "fail" | "pass" | "skip";
2493
+ detail?: string | undefined;
2494
+ duration_ms?: number | undefined;
2495
+ }[];
2496
+ reasons: string[];
2497
+ authSources: {
2498
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2499
+ availability: "available" | "unavailable" | "unknown";
2500
+ verification: "failed" | "not_run" | "passed";
2501
+ detail?: string | undefined;
2502
+ }[];
2503
+ readiness: {
2504
+ id: string;
2505
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
2506
+ title: string;
2507
+ status: "fail" | "pass" | "skip";
2508
+ detail: string | null;
2509
+ }[];
2510
+ configuredModel: string | null;
2511
+ configuredModelCheck: {
2512
+ status: "ok" | "rejected";
2513
+ message: string | null;
2514
+ } | null;
2515
+ delegation: {
2516
+ available: boolean;
2517
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2518
+ remediation: string | null;
2519
+ requiresFullAccess: boolean;
2520
+ } | null;
2521
+ }, {
2522
+ id: string;
2523
+ status: "degraded" | "ok" | "unavailable";
2524
+ manifest?: {
2525
+ id: string;
2526
+ display_name: string;
2527
+ kind: "fake" | "local_cli" | "remote_api";
2528
+ version?: string | undefined;
2529
+ adapter_version?: string | undefined;
2530
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
2531
+ capability_profile?: {
2532
+ auth?: {
2533
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2534
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2535
+ credential_transports?: {
2536
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2537
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2538
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2539
+ }[] | undefined;
2540
+ } | undefined;
2541
+ access_control?: {
2542
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
2543
+ } | undefined;
2544
+ isolation?: {
2545
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
2546
+ } | undefined;
2547
+ attachment_inputs?: {
2548
+ kind: "file" | "image";
2549
+ mime_types: string[];
2550
+ max_bytes: number;
2551
+ max_count: number;
2552
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2553
+ }[] | undefined;
2554
+ mcp_injection?: boolean | undefined;
2555
+ mcp_injection_requires_full_access?: boolean | undefined;
2556
+ } | undefined;
2557
+ capabilities: {
2558
+ plan?: boolean | undefined;
2559
+ implement?: boolean | undefined;
2560
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
2561
+ create_from_scratch?: boolean | undefined;
2562
+ review?: boolean | undefined;
2563
+ verify?: boolean | undefined;
2564
+ synthesize?: boolean | undefined;
2565
+ read_files?: boolean | undefined;
2566
+ browser_tool?: boolean | undefined;
2567
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
2568
+ max_turns?: boolean | undefined;
2569
+ tool_lists?: boolean | undefined;
2570
+ interactive?: boolean | undefined;
2571
+ json_schema_output?: boolean | undefined;
2572
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
2573
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
2574
+ effort_levels?: string[] | undefined;
2575
+ model_effort_levels?: Record<string, {
2576
+ levels?: string[] | undefined;
2577
+ default?: string | null | undefined;
2578
+ }> | undefined;
2579
+ effort_levels_verified_against?: string | null | undefined;
2580
+ known_models?: (string | {
2581
+ id: string;
2582
+ routes: ("api_key" | "local_session")[];
2583
+ })[] | undefined;
2584
+ known_models_verified_against?: string | null | undefined;
2585
+ };
2586
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
2587
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
2588
+ } | null | undefined;
2589
+ enabledIntents?: string[] | undefined;
2590
+ routableIntents?: string[] | undefined;
2591
+ disabledIntents?: string[] | undefined;
2592
+ checks?: {
2593
+ id: string;
2594
+ status: "fail" | "pass" | "skip";
2595
+ detail?: string | undefined;
2596
+ duration_ms?: number | undefined;
2597
+ }[] | undefined;
2598
+ reasons?: string[] | undefined;
2599
+ authSources?: {
2600
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2601
+ availability: "available" | "unavailable" | "unknown";
2602
+ verification: "failed" | "not_run" | "passed";
2603
+ detail?: string | undefined;
2604
+ }[] | undefined;
2605
+ readiness?: {
2606
+ id: string;
2607
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
2608
+ title: string;
2609
+ status: "fail" | "pass" | "skip";
2610
+ detail?: string | null | undefined;
2611
+ }[] | undefined;
2612
+ configuredModel?: string | null | undefined;
2613
+ configuredModelCheck?: {
2614
+ status: "ok" | "rejected";
2615
+ message?: string | null | undefined;
2616
+ } | null | undefined;
2617
+ delegation?: {
2618
+ available: boolean;
2619
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2620
+ remediation?: string | null | undefined;
2621
+ requiresFullAccess?: boolean | undefined;
2622
+ } | null | undefined;
2623
+ }>, "many">;
2624
+ git: z.ZodObject<{
2625
+ status: z.ZodEnum<["available", "missing", "developer_tools_stub", "failed"]>;
2626
+ version: z.ZodNullable<z.ZodString>;
2627
+ detail: z.ZodNullable<z.ZodString>;
2628
+ remediation: z.ZodNullable<z.ZodString>;
2629
+ }, "strict", z.ZodTypeAny, {
2630
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
2631
+ version: string | null;
2632
+ detail: string | null;
2633
+ remediation: string | null;
2634
+ }, {
2635
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
2636
+ version: string | null;
2637
+ detail: string | null;
2638
+ remediation: string | null;
2639
+ }>;
2640
+ quota: z.ZodObject<{
2641
+ snapshots: z.ZodArray<z.ZodObject<{
2642
+ subject: z.ZodObject<{
2643
+ harness: z.ZodString;
2644
+ credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
2645
+ plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2646
+ subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2647
+ }, "strict", z.ZodTypeAny, {
2648
+ harness: string;
2649
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2650
+ plan_label: string | null;
2651
+ subject_id: string | null;
2652
+ }, {
2653
+ harness: string;
2654
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2655
+ plan_label?: string | null | undefined;
2656
+ subject_id?: string | null | undefined;
2657
+ }>;
2658
+ constraints: z.ZodArray<z.ZodObject<{
2659
+ id: z.ZodString;
2660
+ label: z.ZodString;
2661
+ used_ratio: z.ZodNullable<z.ZodNumber>;
2662
+ window_seconds: z.ZodNullable<z.ZodNumber>;
2663
+ resets_at: z.ZodNullable<z.ZodString>;
2664
+ cooldown_until: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2665
+ }, "strict", z.ZodTypeAny, {
2666
+ id: string;
2667
+ label: string;
2668
+ used_ratio: number | null;
2669
+ window_seconds: number | null;
2670
+ resets_at: string | null;
2671
+ cooldown_until: string | null;
2672
+ }, {
2673
+ id: string;
2674
+ label: string;
2675
+ used_ratio: number | null;
2676
+ window_seconds: number | null;
2677
+ resets_at: string | null;
2678
+ cooldown_until?: string | null | undefined;
2679
+ }>, "many">;
2680
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage"]>;
2681
+ observed_at: z.ZodString;
2682
+ freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
2683
+ }, "strict", z.ZodTypeAny, {
2684
+ subject: {
2685
+ harness: string;
2686
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2687
+ plan_label: string | null;
2688
+ subject_id: string | null;
2689
+ };
2690
+ constraints: {
2691
+ id: string;
2692
+ label: string;
2693
+ used_ratio: number | null;
2694
+ window_seconds: number | null;
2695
+ resets_at: string | null;
2696
+ cooldown_until: string | null;
2697
+ }[];
2698
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2699
+ observed_at: string;
2700
+ freshness: "fresh" | "stale" | "unknown";
2701
+ }, {
2702
+ subject: {
2703
+ harness: string;
2704
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2705
+ plan_label?: string | null | undefined;
2706
+ subject_id?: string | null | undefined;
2707
+ };
2708
+ constraints: {
2709
+ id: string;
2710
+ label: string;
2711
+ used_ratio: number | null;
2712
+ window_seconds: number | null;
2713
+ resets_at: string | null;
2714
+ cooldown_until?: string | null | undefined;
2715
+ }[];
2716
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2717
+ observed_at: string;
2718
+ freshness: "fresh" | "stale" | "unknown";
2719
+ }>, "many">;
2720
+ absences: z.ZodDefault<z.ZodArray<z.ZodObject<{
2721
+ subject: z.ZodObject<{
2722
+ harness: z.ZodString;
2723
+ credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
2724
+ plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2725
+ subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2726
+ }, "strict", z.ZodTypeAny, {
2727
+ harness: string;
2728
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2729
+ plan_label: string | null;
2730
+ subject_id: string | null;
2731
+ }, {
2732
+ harness: string;
2733
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2734
+ plan_label?: string | null | undefined;
2735
+ subject_id?: string | null | undefined;
2736
+ }>;
2737
+ reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
2738
+ detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2739
+ observed_at: z.ZodString;
2740
+ }, "strict", z.ZodTypeAny, {
2741
+ subject: {
2742
+ harness: string;
2743
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2744
+ plan_label: string | null;
2745
+ subject_id: string | null;
2746
+ };
2747
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2748
+ detail: string | null;
2749
+ observed_at: string;
2750
+ }, {
2751
+ subject: {
2752
+ harness: string;
2753
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2754
+ plan_label?: string | null | undefined;
2755
+ subject_id?: string | null | undefined;
2756
+ };
2757
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2758
+ detail?: string | null | undefined;
2759
+ observed_at: string;
2760
+ }>, "many">>;
2761
+ refreshed_at: z.ZodNullable<z.ZodString>;
2762
+ }, "strict", z.ZodTypeAny, {
2763
+ snapshots: {
2764
+ subject: {
2765
+ harness: string;
2766
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2767
+ plan_label: string | null;
2768
+ subject_id: string | null;
2769
+ };
2770
+ constraints: {
2771
+ id: string;
2772
+ label: string;
2773
+ used_ratio: number | null;
2774
+ window_seconds: number | null;
2775
+ resets_at: string | null;
2776
+ cooldown_until: string | null;
2777
+ }[];
2778
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2779
+ observed_at: string;
2780
+ freshness: "fresh" | "stale" | "unknown";
2781
+ }[];
2782
+ absences: {
2783
+ subject: {
2784
+ harness: string;
2785
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2786
+ plan_label: string | null;
2787
+ subject_id: string | null;
2788
+ };
2789
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2790
+ detail: string | null;
2791
+ observed_at: string;
2792
+ }[];
2793
+ refreshed_at: string | null;
2794
+ }, {
2795
+ snapshots: {
2796
+ subject: {
2797
+ harness: string;
2798
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2799
+ plan_label?: string | null | undefined;
2800
+ subject_id?: string | null | undefined;
2801
+ };
2802
+ constraints: {
2803
+ id: string;
2804
+ label: string;
2805
+ used_ratio: number | null;
2806
+ window_seconds: number | null;
2807
+ resets_at: string | null;
2808
+ cooldown_until?: string | null | undefined;
2809
+ }[];
2810
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2811
+ observed_at: string;
2812
+ freshness: "fresh" | "stale" | "unknown";
2813
+ }[];
2814
+ absences?: {
2815
+ subject: {
2816
+ harness: string;
2817
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2818
+ plan_label?: string | null | undefined;
2819
+ subject_id?: string | null | undefined;
2820
+ };
2821
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2822
+ detail?: string | null | undefined;
2823
+ observed_at: string;
2824
+ }[] | undefined;
2825
+ refreshed_at: string | null;
2826
+ }>;
2827
+ quotaEventCursor: z.ZodString;
2828
+ }, "strict", z.ZodTypeAny, {
2829
+ profiles: {
2830
+ profile: {
2831
+ profile_id: string;
2832
+ harness_id: string;
2833
+ display_name: string;
2834
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
2835
+ isolation_locator: string | null;
2836
+ secret_ref: string | null;
2837
+ enabled: boolean;
2838
+ created_at: string | null;
2839
+ };
2840
+ status: {
2841
+ profile_id: string;
2842
+ harness_id: string;
2843
+ availability: "available" | "unavailable" | "unknown";
2844
+ verification: "failed" | "not_run" | "passed";
2845
+ verification_source: "local_store" | "vendor";
2846
+ detail?: string | undefined;
2847
+ last_verified_at: string | null;
2848
+ };
2849
+ identity: {
2850
+ email?: string | undefined;
2851
+ plan?: string | undefined;
2852
+ } | null;
2853
+ }[];
2854
+ harnessAccounts: {
2855
+ harness_id: string;
2856
+ native_credentials_enabled: boolean;
2857
+ native_login_detected: boolean;
2858
+ identity: {
2859
+ email?: string | undefined;
2860
+ plan?: string | undefined;
2861
+ } | null;
2862
+ next_up: {
2863
+ kind: "profile";
2864
+ profileId: string;
2865
+ } | {
2866
+ kind: "native";
2867
+ route?: "api_key" | "local_session" | undefined;
2868
+ } | {
2869
+ kind: "none";
2870
+ reason: string;
2871
+ };
2872
+ }[];
2873
+ harnesses: {
2874
+ id: string;
2875
+ status: "degraded" | "ok" | "unavailable";
2876
+ manifest?: {
2877
+ id: string;
2878
+ display_name: string;
2879
+ kind: "fake" | "local_cli" | "remote_api";
2880
+ version?: string | undefined;
2881
+ adapter_version?: string | undefined;
2882
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
2883
+ capability_profile: {
2884
+ auth: {
2885
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2886
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
2887
+ credential_transports: {
2888
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2889
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2890
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2891
+ }[];
2892
+ };
2893
+ access_control: {
2894
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
2895
+ };
2896
+ isolation: {
2897
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
2898
+ };
2899
+ attachment_inputs: {
2900
+ kind: "file" | "image";
2901
+ mime_types: string[];
2902
+ max_bytes: number;
2903
+ max_count: number;
2904
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
2905
+ }[];
2906
+ mcp_injection: boolean;
2907
+ mcp_injection_requires_full_access: boolean;
2908
+ };
2909
+ capabilities: {
2910
+ plan: boolean;
2911
+ implement: boolean;
2912
+ implementation_transport: "git_patch_envelope" | "workspace";
2913
+ create_from_scratch: boolean;
2914
+ review: boolean;
2915
+ verify: boolean;
2916
+ synthesize: boolean;
2917
+ read_files: boolean;
2918
+ browser_tool: boolean;
2919
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
2920
+ max_turns: boolean;
2921
+ tool_lists: boolean;
2922
+ interactive: boolean;
2923
+ json_schema_output: boolean;
2924
+ work_report_transport: "constrained" | "unsupported" | "validated";
2925
+ structured_output_channel: "final_message" | "side_tool";
2926
+ effort_levels: string[];
2927
+ model_effort_levels: Record<string, {
2928
+ levels: string[];
2929
+ default: string | null;
2930
+ }>;
2931
+ effort_levels_verified_against: string | null;
2932
+ known_models: (string | {
2933
+ id: string;
2934
+ routes: ("api_key" | "local_session")[];
2935
+ })[];
2936
+ known_models_verified_against: string | null;
2937
+ };
2938
+ auth_modes: ("api_key" | "local_session" | "none")[];
2939
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
2940
+ } | null | undefined;
2941
+ enabledIntents: string[];
2942
+ routableIntents: string[];
2943
+ disabledIntents: string[];
2944
+ checks: {
2945
+ id: string;
2946
+ status: "fail" | "pass" | "skip";
2947
+ detail?: string | undefined;
2948
+ duration_ms?: number | undefined;
2949
+ }[];
2950
+ reasons: string[];
2951
+ authSources: {
2952
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2953
+ availability: "available" | "unavailable" | "unknown";
2954
+ verification: "failed" | "not_run" | "passed";
2955
+ detail?: string | undefined;
2956
+ }[];
2957
+ readiness: {
2958
+ id: string;
2959
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
2960
+ title: string;
2961
+ status: "fail" | "pass" | "skip";
2962
+ detail: string | null;
2963
+ }[];
2964
+ configuredModel: string | null;
2965
+ configuredModelCheck: {
2966
+ status: "ok" | "rejected";
2967
+ message: string | null;
2968
+ } | null;
2969
+ delegation: {
2970
+ available: boolean;
2971
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
2972
+ remediation: string | null;
2973
+ requiresFullAccess: boolean;
2974
+ } | null;
2975
+ }[];
2976
+ git: {
2977
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
2978
+ version: string | null;
2979
+ detail: string | null;
2980
+ remediation: string | null;
2981
+ };
2982
+ quota: {
2983
+ snapshots: {
2984
+ subject: {
2985
+ harness: string;
2986
+ credential_route: "local" | "managed_api_key" | "vendor_native";
2987
+ plan_label: string | null;
2988
+ subject_id: string | null;
2989
+ };
2990
+ constraints: {
2991
+ id: string;
2992
+ label: string;
2993
+ used_ratio: number | null;
2994
+ window_seconds: number | null;
2995
+ resets_at: string | null;
2996
+ cooldown_until: string | null;
2997
+ }[];
2998
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2999
+ observed_at: string;
3000
+ freshness: "fresh" | "stale" | "unknown";
3001
+ }[];
3002
+ absences: {
3003
+ subject: {
3004
+ harness: string;
3005
+ credential_route: "local" | "managed_api_key" | "vendor_native";
3006
+ plan_label: string | null;
3007
+ subject_id: string | null;
3008
+ };
3009
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3010
+ detail: string | null;
3011
+ observed_at: string;
3012
+ }[];
3013
+ refreshed_at: string | null;
3014
+ };
3015
+ quotaEventCursor: string;
3016
+ }, {
3017
+ profiles: {
3018
+ profile: {
3019
+ profile_id: string;
3020
+ harness_id: string;
3021
+ display_name: string;
3022
+ credential_kind: "api_key" | "config_dir_login" | "oauth_token";
3023
+ isolation_locator?: string | null | undefined;
3024
+ secret_ref?: string | null | undefined;
3025
+ enabled?: boolean | undefined;
3026
+ created_at?: string | null | undefined;
3027
+ };
3028
+ status: {
3029
+ profile_id: string;
3030
+ harness_id: string;
3031
+ availability: "available" | "unavailable" | "unknown";
3032
+ verification: "failed" | "not_run" | "passed";
3033
+ verification_source?: "local_store" | "vendor" | undefined;
3034
+ detail?: string | undefined;
3035
+ last_verified_at?: string | null | undefined;
3036
+ };
3037
+ identity?: {
3038
+ email?: string | undefined;
3039
+ plan?: string | undefined;
3040
+ } | null | undefined;
3041
+ }[];
3042
+ harnessAccounts?: {
3043
+ harness_id: string;
3044
+ native_credentials_enabled: boolean;
3045
+ native_login_detected: boolean;
3046
+ identity?: {
3047
+ email?: string | undefined;
3048
+ plan?: string | undefined;
3049
+ } | null | undefined;
3050
+ next_up: {
3051
+ kind: "profile";
3052
+ profileId: string;
3053
+ } | {
3054
+ kind: "native";
3055
+ route?: "api_key" | "local_session" | undefined;
3056
+ } | {
3057
+ kind: "none";
3058
+ reason: string;
3059
+ };
3060
+ }[] | undefined;
3061
+ harnesses: {
3062
+ id: string;
3063
+ status: "degraded" | "ok" | "unavailable";
3064
+ manifest?: {
3065
+ id: string;
3066
+ display_name: string;
3067
+ kind: "fake" | "local_cli" | "remote_api";
3068
+ version?: string | undefined;
3069
+ adapter_version?: string | undefined;
3070
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
3071
+ capability_profile?: {
3072
+ auth?: {
3073
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
3074
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
3075
+ credential_transports?: {
3076
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3077
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
3078
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
3079
+ }[] | undefined;
3080
+ } | undefined;
3081
+ access_control?: {
3082
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
3083
+ } | undefined;
3084
+ isolation?: {
3085
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
3086
+ } | undefined;
3087
+ attachment_inputs?: {
3088
+ kind: "file" | "image";
3089
+ mime_types: string[];
3090
+ max_bytes: number;
3091
+ max_count: number;
3092
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
3093
+ }[] | undefined;
3094
+ mcp_injection?: boolean | undefined;
3095
+ mcp_injection_requires_full_access?: boolean | undefined;
3096
+ } | undefined;
3097
+ capabilities: {
3098
+ plan?: boolean | undefined;
3099
+ implement?: boolean | undefined;
3100
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
3101
+ create_from_scratch?: boolean | undefined;
3102
+ review?: boolean | undefined;
3103
+ verify?: boolean | undefined;
3104
+ synthesize?: boolean | undefined;
3105
+ read_files?: boolean | undefined;
3106
+ browser_tool?: boolean | undefined;
3107
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
3108
+ max_turns?: boolean | undefined;
3109
+ tool_lists?: boolean | undefined;
3110
+ interactive?: boolean | undefined;
3111
+ json_schema_output?: boolean | undefined;
3112
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
3113
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
3114
+ effort_levels?: string[] | undefined;
3115
+ model_effort_levels?: Record<string, {
3116
+ levels?: string[] | undefined;
3117
+ default?: string | null | undefined;
3118
+ }> | undefined;
3119
+ effort_levels_verified_against?: string | null | undefined;
3120
+ known_models?: (string | {
3121
+ id: string;
3122
+ routes: ("api_key" | "local_session")[];
3123
+ })[] | undefined;
3124
+ known_models_verified_against?: string | null | undefined;
3125
+ };
3126
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
3127
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
3128
+ } | null | undefined;
3129
+ enabledIntents?: string[] | undefined;
3130
+ routableIntents?: string[] | undefined;
3131
+ disabledIntents?: string[] | undefined;
3132
+ checks?: {
3133
+ id: string;
3134
+ status: "fail" | "pass" | "skip";
3135
+ detail?: string | undefined;
3136
+ duration_ms?: number | undefined;
3137
+ }[] | undefined;
3138
+ reasons?: string[] | undefined;
3139
+ authSources?: {
3140
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3141
+ availability: "available" | "unavailable" | "unknown";
3142
+ verification: "failed" | "not_run" | "passed";
3143
+ detail?: string | undefined;
3144
+ }[] | undefined;
3145
+ readiness?: {
3146
+ id: string;
3147
+ kind: "auth" | "binary" | "model" | "probe" | "smoke";
3148
+ title: string;
3149
+ status: "fail" | "pass" | "skip";
3150
+ detail?: string | null | undefined;
3151
+ }[] | undefined;
3152
+ configuredModel?: string | null | undefined;
3153
+ configuredModelCheck?: {
3154
+ status: "ok" | "rejected";
3155
+ message?: string | null | undefined;
3156
+ } | null | undefined;
3157
+ delegation?: {
3158
+ available: boolean;
3159
+ reason: "manifest_unsupported" | "ready" | "runtime_unavailable";
3160
+ remediation?: string | null | undefined;
3161
+ requiresFullAccess?: boolean | undefined;
3162
+ } | null | undefined;
3163
+ }[];
3164
+ git: {
3165
+ status: "available" | "developer_tools_stub" | "failed" | "missing";
3166
+ version: string | null;
3167
+ detail: string | null;
3168
+ remediation: string | null;
3169
+ };
3170
+ quota: {
3171
+ snapshots: {
3172
+ subject: {
3173
+ harness: string;
3174
+ credential_route: "local" | "managed_api_key" | "vendor_native";
3175
+ plan_label?: string | null | undefined;
3176
+ subject_id?: string | null | undefined;
3177
+ };
3178
+ constraints: {
3179
+ id: string;
3180
+ label: string;
3181
+ used_ratio: number | null;
3182
+ window_seconds: number | null;
3183
+ resets_at: string | null;
3184
+ cooldown_until?: string | null | undefined;
3185
+ }[];
3186
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
3187
+ observed_at: string;
3188
+ freshness: "fresh" | "stale" | "unknown";
3189
+ }[];
3190
+ absences?: {
3191
+ subject: {
3192
+ harness: string;
3193
+ credential_route: "local" | "managed_api_key" | "vendor_native";
3194
+ plan_label?: string | null | undefined;
3195
+ subject_id?: string | null | undefined;
3196
+ };
3197
+ reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3198
+ detail?: string | null | undefined;
3199
+ observed_at: string;
3200
+ }[] | undefined;
3201
+ refreshed_at: string | null;
3202
+ };
3203
+ quotaEventCursor: string;
3204
+ }>]>;
3205
+ export type ControlCredentialProfilesQueryResponse = z.infer<typeof ControlCredentialProfilesQueryResponse>;
3206
+ //# sourceMappingURL=credential-profile-snapshot.d.ts.map