@claudexor/schema 3.5.0 → 3.8.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 (106) hide show
  1. package/dist/accounts-migration.d.ts +112 -0
  2. package/dist/accounts-migration.d.ts.map +1 -0
  3. package/dist/accounts-migration.js +74 -0
  4. package/dist/accounts-migration.js.map +1 -0
  5. package/dist/agent-capabilities.d.ts +32 -0
  6. package/dist/agent-capabilities.d.ts.map +1 -1
  7. package/dist/agent-capabilities.js +4 -0
  8. package/dist/agent-capabilities.js.map +1 -1
  9. package/dist/config.d.ts +48 -30
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js +32 -11
  12. package/dist/config.js.map +1 -1
  13. package/dist/control-harness-list.d.ts +197 -1
  14. package/dist/control-harness-list.d.ts.map +1 -1
  15. package/dist/control-operation-responses.d.ts +7 -7
  16. package/dist/control-run-detail.d.ts +19 -19
  17. package/dist/control-run-failure.d.ts +4 -4
  18. package/dist/control-run-failure.d.ts.map +1 -1
  19. package/dist/control-run-failure.js +7 -1
  20. package/dist/control-run-failure.js.map +1 -1
  21. package/dist/control.d.ts +23 -23
  22. package/dist/control.d.ts.map +1 -1
  23. package/dist/control.js +8 -8
  24. package/dist/control.js.map +1 -1
  25. package/dist/credential-profile-snapshot.d.ts +644 -30
  26. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  27. package/dist/credential-profile.d.ts +365 -38
  28. package/dist/credential-profile.d.ts.map +1 -1
  29. package/dist/credential-profile.js +140 -28
  30. package/dist/credential-profile.js.map +1 -1
  31. package/dist/credential-store.d.ts +19 -6
  32. package/dist/credential-store.d.ts.map +1 -1
  33. package/dist/credential-store.js +21 -6
  34. package/dist/credential-store.js.map +1 -1
  35. package/dist/events.d.ts +44 -4
  36. package/dist/events.d.ts.map +1 -1
  37. package/dist/events.js +34 -0
  38. package/dist/events.js.map +1 -1
  39. package/dist/harness.d.ts +252 -59
  40. package/dist/harness.d.ts.map +1 -1
  41. package/dist/harness.js +2 -32
  42. package/dist/harness.js.map +1 -1
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1 -0
  46. package/dist/index.js.map +1 -1
  47. package/dist/mcp-run-result.d.ts +10 -10
  48. package/dist/platform-auth.d.ts +196 -0
  49. package/dist/platform-auth.d.ts.map +1 -0
  50. package/dist/platform-auth.js +142 -0
  51. package/dist/platform-auth.js.map +1 -0
  52. package/dist/quota.d.ts +42 -21
  53. package/dist/quota.d.ts.map +1 -1
  54. package/dist/quota.js +35 -0
  55. package/dist/quota.js.map +1 -1
  56. package/dist/rate-limit.d.ts +9 -0
  57. package/dist/rate-limit.d.ts.map +1 -1
  58. package/dist/rate-limit.js +21 -0
  59. package/dist/rate-limit.js.map +1 -1
  60. package/dist/readiness.d.ts +178 -1
  61. package/dist/readiness.d.ts.map +1 -1
  62. package/dist/readiness.js +12 -0
  63. package/dist/readiness.js.map +1 -1
  64. package/dist/setup-login.d.ts +5 -5
  65. package/dist/setup.d.ts +102 -95
  66. package/dist/setup.d.ts.map +1 -1
  67. package/dist/setup.js +29 -5
  68. package/dist/setup.js.map +1 -1
  69. package/generated/AccountsUnifiedMigrationFile.schema.json +61 -0
  70. package/generated/AgentCapabilityCatalog.schema.json +26 -0
  71. package/generated/ControlAccountPoolsResponse.schema.json +93 -0
  72. package/generated/ControlAccountsMigrationRollbackRequest.schema.json +18 -0
  73. package/generated/ControlAccountsMigrationRollbackResponse.schema.json +63 -0
  74. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  75. package/generated/ControlCredentialProfileCreateResponse.schema.json +4 -4
  76. package/generated/ControlCredentialProfileDeleteResponse.schema.json +28 -4
  77. package/generated/ControlCredentialProfileUpdateResponse.schema.json +4 -4
  78. package/generated/ControlCredentialProfilesQueryResponse.schema.json +212 -7
  79. package/generated/ControlCredentialProfilesResponse.schema.json +81 -5
  80. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +209 -7
  81. package/generated/ControlHarnessAccountPool.schema.json +79 -0
  82. package/generated/ControlHarnessListResponse.schema.json +124 -0
  83. package/generated/ControlHarnessSettingsPatch.schema.json +2 -1
  84. package/generated/ControlPoolNextUp.schema.json +63 -0
  85. package/generated/ControlQuotaResponse.schema.json +4 -2
  86. package/generated/ControlRunDetail.schema.json +2 -1
  87. package/generated/ControlRunListResponse.schema.json +2 -1
  88. package/generated/ControlRunSummary.schema.json +2 -1
  89. package/generated/ControlSettingsSnapshot.schema.json +3 -2
  90. package/generated/ControlSettingsUpdateRequest.schema.json +2 -1
  91. package/generated/ControlSetupJob.schema.json +5 -1
  92. package/generated/ControlSetupJobCreateRequest.schema.json +1 -1
  93. package/generated/ControlSetupJobEvent.schema.json +5 -1
  94. package/generated/ControlSetupJobListResponse.schema.json +5 -1
  95. package/generated/ControlSetupJobSnapshot.schema.json +5 -1
  96. package/generated/CredentialProfile.schema.json +3 -3
  97. package/generated/CredentialProfileStatus.schema.json +1 -1
  98. package/generated/GlobalConfig.schema.json +7 -6
  99. package/generated/HarnessEvent.schema.json +2 -1
  100. package/generated/HarnessManifest.schema.json +98 -0
  101. package/generated/HarnessStatusDto.schema.json +124 -0
  102. package/generated/McpRunHandleResult.schema.json +2 -1
  103. package/generated/McpRunToolResult.schema.json +2 -1
  104. package/generated/RunEvent.schema.json +4 -0
  105. package/generated/RunFailure.schema.json +2 -1
  106. package/package.json +2 -2
package/dist/harness.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod/v3";
2
+ export * from "./platform-auth.js";
2
3
  export { EffortHint } from "./effort.js";
3
4
  /** Quality of a usage/quota signal a harness can emit. */
4
5
  export declare const SignalQuality: z.ZodEnum<["exact", "native", "observed", "manual", "unknown"]>;
@@ -206,58 +207,6 @@ export type KnownModelEntry = HarnessCapabilities["known_models"][number];
206
207
  * `route: null` (undecidable pre-spawn) returns only the route-UNRESTRICTED
207
208
  * ids — fail-closed, a route-scoped model never leaks past an unknown route. */
208
209
  export declare function knownModelIdsForRoute(entries: readonly KnownModelEntry[], route: "local_session" | "api_key" | null): string[];
209
- export declare const CredentialTransportKind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
210
- export type CredentialTransportKind = z.infer<typeof CredentialTransportKind>;
211
- export declare const CredentialRelocation: z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>;
212
- export type CredentialRelocation = z.infer<typeof CredentialRelocation>;
213
- export declare const CredentialTransport: z.ZodObject<{
214
- source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
215
- kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
216
- relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
217
- }, "strip", z.ZodTypeAny, {
218
- source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
219
- kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
220
- relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
221
- }, {
222
- source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
223
- kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
224
- relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
225
- }>;
226
- export type CredentialTransport = z.infer<typeof CredentialTransport>;
227
- export declare const AuthCapabilities: z.ZodDefault<z.ZodObject<{
228
- supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
229
- preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
230
- credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
231
- source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
232
- kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
233
- relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
234
- }, "strip", z.ZodTypeAny, {
235
- source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
236
- kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
237
- relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
238
- }, {
239
- source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
240
- kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
241
- relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
242
- }>, "many">>;
243
- }, "strip", z.ZodTypeAny, {
244
- supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
245
- preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
246
- credential_transports: {
247
- source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
248
- kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
249
- relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
250
- }[];
251
- }, {
252
- supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
253
- preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
254
- credential_transports?: {
255
- source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
256
- kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
257
- relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
258
- }[] | undefined;
259
- }>>;
260
- export type AuthCapabilities = z.infer<typeof AuthCapabilities>;
261
210
  export declare const ReadonlyMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>;
262
211
  export type ReadonlyMechanism = z.infer<typeof ReadonlyMechanism>;
263
212
  export declare const AccessControlCapabilities: z.ZodDefault<z.ZodObject<{
@@ -277,22 +226,51 @@ export type AccessControlCapabilities = z.infer<typeof AccessControlCapabilities
277
226
  * only WITH its consumer in the same change.
278
227
  */
279
228
  export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
280
- auth: z.ZodDefault<z.ZodObject<{
229
+ auth: z.ZodDefault<z.ZodEffects<z.ZodObject<{
281
230
  supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
282
231
  preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
283
232
  credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
284
233
  source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
285
234
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
286
235
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
236
+ platforms: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">>, ("darwin" | "linux" | "win32")[] | undefined, ("darwin" | "linux" | "win32")[] | undefined>;
287
237
  }, "strip", z.ZodTypeAny, {
288
238
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
289
239
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
290
240
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
241
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
291
242
  }, {
292
243
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
293
244
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
294
245
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
246
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
295
247
  }>, "many">>;
248
+ credential_profile_policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
249
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
250
+ platforms: z.ZodEffects<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">, ("darwin" | "linux" | "win32")[], ("darwin" | "linux" | "win32")[]>;
251
+ identity_scope: z.ZodEnum<["profile", "os_user"]>;
252
+ max_enabled_profiles: z.ZodNullable<z.ZodNumber>;
253
+ cleanup_owner: z.ZodEnum<["claudexor", "vendor"]>;
254
+ }, "strict", z.ZodTypeAny, {
255
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
256
+ platforms: ("darwin" | "linux" | "win32")[];
257
+ identity_scope: "os_user" | "profile";
258
+ max_enabled_profiles: number | null;
259
+ cleanup_owner: "claudexor" | "vendor";
260
+ }, {
261
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
262
+ platforms: ("darwin" | "linux" | "win32")[];
263
+ identity_scope: "os_user" | "profile";
264
+ max_enabled_profiles: number | null;
265
+ cleanup_owner: "claudexor" | "vendor";
266
+ }>, "many">>;
267
+ managed_login: z.ZodOptional<z.ZodNullable<z.ZodObject<{
268
+ stdin: z.ZodEnum<["none", "pipe", "terminal"]>;
269
+ }, "strict", z.ZodTypeAny, {
270
+ stdin: "none" | "pipe" | "terminal";
271
+ }, {
272
+ stdin: "none" | "pipe" | "terminal";
273
+ }>>>;
296
274
  }, "strip", z.ZodTypeAny, {
297
275
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
298
276
  preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
@@ -300,7 +278,56 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
300
278
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
301
279
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
302
280
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
281
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
282
+ }[];
283
+ credential_profile_policies?: {
284
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
285
+ platforms: ("darwin" | "linux" | "win32")[];
286
+ identity_scope: "os_user" | "profile";
287
+ max_enabled_profiles: number | null;
288
+ cleanup_owner: "claudexor" | "vendor";
289
+ }[] | undefined;
290
+ managed_login?: {
291
+ stdin: "none" | "pipe" | "terminal";
292
+ } | null | undefined;
293
+ }, {
294
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
295
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
296
+ credential_transports?: {
297
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
298
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
299
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
300
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
301
+ }[] | undefined;
302
+ credential_profile_policies?: {
303
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
304
+ platforms: ("darwin" | "linux" | "win32")[];
305
+ identity_scope: "os_user" | "profile";
306
+ max_enabled_profiles: number | null;
307
+ cleanup_owner: "claudexor" | "vendor";
308
+ }[] | undefined;
309
+ managed_login?: {
310
+ stdin: "none" | "pipe" | "terminal";
311
+ } | null | undefined;
312
+ }>, {
313
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
314
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
315
+ credential_transports: {
316
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
317
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
318
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
319
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
303
320
  }[];
321
+ credential_profile_policies?: {
322
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
323
+ platforms: ("darwin" | "linux" | "win32")[];
324
+ identity_scope: "os_user" | "profile";
325
+ max_enabled_profiles: number | null;
326
+ cleanup_owner: "claudexor" | "vendor";
327
+ }[] | undefined;
328
+ managed_login?: {
329
+ stdin: "none" | "pipe" | "terminal";
330
+ } | null | undefined;
304
331
  }, {
305
332
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
306
333
  preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
@@ -308,7 +335,18 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
308
335
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
309
336
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
310
337
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
338
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
339
+ }[] | undefined;
340
+ credential_profile_policies?: {
341
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
342
+ platforms: ("darwin" | "linux" | "win32")[];
343
+ identity_scope: "os_user" | "profile";
344
+ max_enabled_profiles: number | null;
345
+ cleanup_owner: "claudexor" | "vendor";
311
346
  }[] | undefined;
347
+ managed_login?: {
348
+ stdin: "none" | "pipe" | "terminal";
349
+ } | null | undefined;
312
350
  }>>;
313
351
  access_control: z.ZodDefault<z.ZodObject<{
314
352
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
@@ -370,7 +408,18 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
370
408
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
371
409
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
372
410
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
411
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
373
412
  }[];
413
+ credential_profile_policies?: {
414
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
415
+ platforms: ("darwin" | "linux" | "win32")[];
416
+ identity_scope: "os_user" | "profile";
417
+ max_enabled_profiles: number | null;
418
+ cleanup_owner: "claudexor" | "vendor";
419
+ }[] | undefined;
420
+ managed_login?: {
421
+ stdin: "none" | "pipe" | "terminal";
422
+ } | null | undefined;
374
423
  };
375
424
  access_control: {
376
425
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -395,7 +444,18 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
395
444
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
396
445
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
397
446
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
447
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
398
448
  }[] | undefined;
449
+ credential_profile_policies?: {
450
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
451
+ platforms: ("darwin" | "linux" | "win32")[];
452
+ identity_scope: "os_user" | "profile";
453
+ max_enabled_profiles: number | null;
454
+ cleanup_owner: "claudexor" | "vendor";
455
+ }[] | undefined;
456
+ managed_login?: {
457
+ stdin: "none" | "pipe" | "terminal";
458
+ } | null | undefined;
399
459
  } | undefined;
400
460
  access_control?: {
401
461
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -447,22 +507,51 @@ export declare const HarnessManifest: z.ZodObject<{
447
507
  adapter_version: z.ZodOptional<z.ZodString>;
448
508
  provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
449
509
  capability_profile: z.ZodDefault<z.ZodObject<{
450
- auth: z.ZodDefault<z.ZodObject<{
510
+ auth: z.ZodDefault<z.ZodEffects<z.ZodObject<{
451
511
  supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
452
512
  preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
453
513
  credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
454
514
  source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
455
515
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
456
516
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
517
+ platforms: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">>, ("darwin" | "linux" | "win32")[] | undefined, ("darwin" | "linux" | "win32")[] | undefined>;
457
518
  }, "strip", z.ZodTypeAny, {
458
519
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
459
520
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
460
521
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
522
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
461
523
  }, {
462
524
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
463
525
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
464
526
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
527
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
465
528
  }>, "many">>;
529
+ credential_profile_policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
530
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
531
+ platforms: z.ZodEffects<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">, ("darwin" | "linux" | "win32")[], ("darwin" | "linux" | "win32")[]>;
532
+ identity_scope: z.ZodEnum<["profile", "os_user"]>;
533
+ max_enabled_profiles: z.ZodNullable<z.ZodNumber>;
534
+ cleanup_owner: z.ZodEnum<["claudexor", "vendor"]>;
535
+ }, "strict", z.ZodTypeAny, {
536
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
537
+ platforms: ("darwin" | "linux" | "win32")[];
538
+ identity_scope: "os_user" | "profile";
539
+ max_enabled_profiles: number | null;
540
+ cleanup_owner: "claudexor" | "vendor";
541
+ }, {
542
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
543
+ platforms: ("darwin" | "linux" | "win32")[];
544
+ identity_scope: "os_user" | "profile";
545
+ max_enabled_profiles: number | null;
546
+ cleanup_owner: "claudexor" | "vendor";
547
+ }>, "many">>;
548
+ managed_login: z.ZodOptional<z.ZodNullable<z.ZodObject<{
549
+ stdin: z.ZodEnum<["none", "pipe", "terminal"]>;
550
+ }, "strict", z.ZodTypeAny, {
551
+ stdin: "none" | "pipe" | "terminal";
552
+ }, {
553
+ stdin: "none" | "pipe" | "terminal";
554
+ }>>>;
466
555
  }, "strip", z.ZodTypeAny, {
467
556
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
468
557
  preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
@@ -470,7 +559,18 @@ export declare const HarnessManifest: z.ZodObject<{
470
559
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
471
560
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
472
561
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
562
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
473
563
  }[];
564
+ credential_profile_policies?: {
565
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
566
+ platforms: ("darwin" | "linux" | "win32")[];
567
+ identity_scope: "os_user" | "profile";
568
+ max_enabled_profiles: number | null;
569
+ cleanup_owner: "claudexor" | "vendor";
570
+ }[] | undefined;
571
+ managed_login?: {
572
+ stdin: "none" | "pipe" | "terminal";
573
+ } | null | undefined;
474
574
  }, {
475
575
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
476
576
  preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
@@ -478,7 +578,56 @@ export declare const HarnessManifest: z.ZodObject<{
478
578
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
479
579
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
480
580
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
581
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
582
+ }[] | undefined;
583
+ credential_profile_policies?: {
584
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
585
+ platforms: ("darwin" | "linux" | "win32")[];
586
+ identity_scope: "os_user" | "profile";
587
+ max_enabled_profiles: number | null;
588
+ cleanup_owner: "claudexor" | "vendor";
481
589
  }[] | undefined;
590
+ managed_login?: {
591
+ stdin: "none" | "pipe" | "terminal";
592
+ } | null | undefined;
593
+ }>, {
594
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
595
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
596
+ credential_transports: {
597
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
598
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
599
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
600
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
601
+ }[];
602
+ credential_profile_policies?: {
603
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
604
+ platforms: ("darwin" | "linux" | "win32")[];
605
+ identity_scope: "os_user" | "profile";
606
+ max_enabled_profiles: number | null;
607
+ cleanup_owner: "claudexor" | "vendor";
608
+ }[] | undefined;
609
+ managed_login?: {
610
+ stdin: "none" | "pipe" | "terminal";
611
+ } | null | undefined;
612
+ }, {
613
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
614
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
615
+ credential_transports?: {
616
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
617
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
618
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
619
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
620
+ }[] | undefined;
621
+ credential_profile_policies?: {
622
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
623
+ platforms: ("darwin" | "linux" | "win32")[];
624
+ identity_scope: "os_user" | "profile";
625
+ max_enabled_profiles: number | null;
626
+ cleanup_owner: "claudexor" | "vendor";
627
+ }[] | undefined;
628
+ managed_login?: {
629
+ stdin: "none" | "pipe" | "terminal";
630
+ } | null | undefined;
482
631
  }>>;
483
632
  access_control: z.ZodDefault<z.ZodObject<{
484
633
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
@@ -540,7 +689,18 @@ export declare const HarnessManifest: z.ZodObject<{
540
689
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
541
690
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
542
691
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
692
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
543
693
  }[];
694
+ credential_profile_policies?: {
695
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
696
+ platforms: ("darwin" | "linux" | "win32")[];
697
+ identity_scope: "os_user" | "profile";
698
+ max_enabled_profiles: number | null;
699
+ cleanup_owner: "claudexor" | "vendor";
700
+ }[] | undefined;
701
+ managed_login?: {
702
+ stdin: "none" | "pipe" | "terminal";
703
+ } | null | undefined;
544
704
  };
545
705
  access_control: {
546
706
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -565,7 +725,18 @@ export declare const HarnessManifest: z.ZodObject<{
565
725
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
566
726
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
567
727
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
728
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
568
729
  }[] | undefined;
730
+ credential_profile_policies?: {
731
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
732
+ platforms: ("darwin" | "linux" | "win32")[];
733
+ identity_scope: "os_user" | "profile";
734
+ max_enabled_profiles: number | null;
735
+ cleanup_owner: "claudexor" | "vendor";
736
+ }[] | undefined;
737
+ managed_login?: {
738
+ stdin: "none" | "pipe" | "terminal";
739
+ } | null | undefined;
569
740
  } | undefined;
570
741
  access_control?: {
571
742
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -774,7 +945,18 @@ export declare const HarnessManifest: z.ZodObject<{
774
945
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
775
946
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
776
947
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
948
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
777
949
  }[];
950
+ credential_profile_policies?: {
951
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
952
+ platforms: ("darwin" | "linux" | "win32")[];
953
+ identity_scope: "os_user" | "profile";
954
+ max_enabled_profiles: number | null;
955
+ cleanup_owner: "claudexor" | "vendor";
956
+ }[] | undefined;
957
+ managed_login?: {
958
+ stdin: "none" | "pipe" | "terminal";
959
+ } | null | undefined;
778
960
  };
779
961
  access_control: {
780
962
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -838,7 +1020,18 @@ export declare const HarnessManifest: z.ZodObject<{
838
1020
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
839
1021
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
840
1022
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
1023
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
1024
+ }[] | undefined;
1025
+ credential_profile_policies?: {
1026
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1027
+ platforms: ("darwin" | "linux" | "win32")[];
1028
+ identity_scope: "os_user" | "profile";
1029
+ max_enabled_profiles: number | null;
1030
+ cleanup_owner: "claudexor" | "vendor";
841
1031
  }[] | undefined;
1032
+ managed_login?: {
1033
+ stdin: "none" | "pipe" | "terminal";
1034
+ } | null | undefined;
842
1035
  } | undefined;
843
1036
  access_control?: {
844
1037
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -1869,7 +2062,7 @@ export declare const HarnessEvent: z.ZodObject<{
1869
2062
  credential_profile_id: z.ZodOptional<z.ZodString>;
1870
2063
  /** Vendor-owned quota windows. All reported windows remain independent. */
1871
2064
  quota: z.ZodOptional<z.ZodObject<{
1872
- source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
2065
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
1873
2066
  plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1874
2067
  subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1875
2068
  constraints: z.ZodArray<z.ZodObject<{
@@ -1901,7 +2094,7 @@ export declare const HarnessEvent: z.ZodObject<{
1901
2094
  cooldown_until?: string | null | undefined;
1902
2095
  }>, "many">;
1903
2096
  }, "strict", z.ZodTypeAny, {
1904
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2097
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1905
2098
  plan_label: string | null;
1906
2099
  subject_id: string | null;
1907
2100
  constraints: {
@@ -1915,7 +2108,7 @@ export declare const HarnessEvent: z.ZodObject<{
1915
2108
  cooldown_until: string | null;
1916
2109
  }[];
1917
2110
  }, {
1918
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2111
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1919
2112
  plan_label?: string | null | undefined;
1920
2113
  subject_id?: string | null | undefined;
1921
2114
  constraints: {
@@ -2114,7 +2307,7 @@ export declare const HarnessEvent: z.ZodObject<{
2114
2307
  credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
2115
2308
  credential_profile_id?: string | undefined;
2116
2309
  quota?: {
2117
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2310
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
2118
2311
  plan_label: string | null;
2119
2312
  subject_id: string | null;
2120
2313
  constraints: {
@@ -2217,7 +2410,7 @@ export declare const HarnessEvent: z.ZodObject<{
2217
2410
  credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
2218
2411
  credential_profile_id?: string | undefined;
2219
2412
  quota?: {
2220
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2413
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
2221
2414
  plan_label?: string | null | undefined;
2222
2415
  subject_id?: string | null | undefined;
2223
2416
  constraints: {
@@ -1 +1 @@
1
- {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../src/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAwB3B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,0DAA0D;AAC1D,eAAO,MAAM,aAAa,iEAIvB,CAAC;AACJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAK1D,eAAO,MAAM,WAAW,gDAE2E,CAAC;AACpG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,wDAI1B,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB;;;;;;IAkB5B,8EAA8E;;;;IAU9E;;;;OAIG;;;I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAa3E;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBH;;;;;OAKG;;;;;;;;;;;;;;;;;IAIH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;IAsCH;;;;OAIG;;;;;;;;;;;IAmBH;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0D+E,CAAC;AACvF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
package/dist/harness.js CHANGED
@@ -9,6 +9,8 @@ import { ImplementationTransport, RawContextPacket, RawGitPatchEnvelope, RawPatc
9
9
  import { QuotaConstraint, QuotaSource } from "./quota.js";
10
10
  import { RateLimitSignal } from "./rate-limit.js";
11
11
  import { EffortHint, ModelEffortCapability } from "./effort.js";
12
+ import { AuthCapabilities } from "./platform-auth.js";
13
+ export * from "./platform-auth.js";
12
14
  // Re-exported so sibling contract modules keep one import path for the type.
13
15
  export { EffortHint } from "./effort.js";
14
16
  /** Quality of a usage/quota signal a harness can emit. */
@@ -217,38 +219,6 @@ export function knownModelIdsForRoute(entries, route) {
217
219
  .filter((entry) => typeof entry === "string" ? true : route !== null && entry.routes.includes(route))
218
220
  .map((entry) => (typeof entry === "string" ? entry : entry.id));
219
221
  }
220
- export const CredentialTransportKind = z
221
- .enum(["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"])
222
- .describe("Mechanism that carries a credential to the harness process (config file, env var, OAuth token env, OS keychain, HTTP header, or none).");
223
- export const CredentialRelocation = z
224
- .enum(["HOME", "CONFIG_DIR", "ENV", "none"])
225
- .describe("Which relocation lever moves the credential into a scoped environment (HOME, a config dir override, env injection, or none).");
226
- export const CredentialTransport = z
227
- .object({
228
- source: AuthSourceKind,
229
- kind: CredentialTransportKind,
230
- relocatable_by: z
231
- .array(CredentialRelocation)
232
- .default([])
233
- .describe("Relocation levers that can move this transport into a scoped environment."),
234
- })
235
- .describe("How a credential from one auth source physically reaches the harness process.");
236
- export const AuthCapabilities = z
237
- .object({
238
- supported_sources: z
239
- .array(AuthSourceKind)
240
- .default([])
241
- .describe("Auth sources this harness supports."),
242
- preferred_source: AuthSourceKind.nullable()
243
- .default(null)
244
- .describe("Auth source the adapter prefers; null when it has no preference."),
245
- credential_transports: z
246
- .array(CredentialTransport)
247
- .default([])
248
- .describe("Declared credential transports per auth source."),
249
- })
250
- .default({})
251
- .describe("Declared auth routing facts for a harness.");
252
222
  export const ReadonlyMechanism = z
253
223
  .enum(["fs_sandbox", "permission_deny", "tool_allowlist", "none"])
254
224
  .describe("How read-only access is enforced for a harness: a filesystem sandbox, permission denial, a tool allowlist, or none (read-only intent is advisory).");