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