agent-shim 9.7.2 → 9.9.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.
@@ -366,8 +366,8 @@ declare const CredentialSchema: z.ZodObject<{
366
366
  literal: z.ZodString;
367
367
  }, z.core.$strict>]>>;
368
368
  target: z.ZodOptional<z.ZodEnum<{
369
- bearer: "bearer";
370
369
  apiKey: "apiKey";
370
+ bearer: "bearer";
371
371
  oauthToken: "oauthToken";
372
372
  }>>;
373
373
  cache: z.ZodOptional<z.ZodObject<{
@@ -441,8 +441,8 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
441
441
  }>>;
442
442
  }, z.core.$strict>>;
443
443
  target: z.ZodOptional<z.ZodEnum<{
444
- bearer: "bearer";
445
444
  apiKey: "apiKey";
445
+ bearer: "bearer";
446
446
  }>>;
447
447
  }, z.core.$strict>;
448
448
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -557,8 +557,8 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
557
557
  }>>;
558
558
  }, z.core.$strict>>;
559
559
  target: z.ZodOptional<z.ZodEnum<{
560
- bearer: "bearer";
561
560
  apiKey: "apiKey";
561
+ bearer: "bearer";
562
562
  }>>;
563
563
  }, z.core.$strict>;
564
564
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1596,8 +1596,8 @@ declare const IdentitySchema: z.ZodObject<{
1596
1596
  literal: z.ZodString;
1597
1597
  }, z.core.$strict>]>>;
1598
1598
  target: z.ZodOptional<z.ZodEnum<{
1599
- bearer: "bearer";
1600
1599
  apiKey: "apiKey";
1600
+ bearer: "bearer";
1601
1601
  oauthToken: "oauthToken";
1602
1602
  }>>;
1603
1603
  cache: z.ZodOptional<z.ZodObject<{
@@ -3712,6 +3712,141 @@ declare function frontDoorApiLink(port: number, ca: string, token: string): RPCL
3712
3712
  /** Builds the typed API's client for the door's provider listener: the same address, CA and per-generation control token the bespoke control client uses. */
3713
3713
  declare function frontDoorRcApiClient(port: number, ca: string, token: string): RcApiClient;
3714
3714
 
3715
+ /**
3716
+ * The Codex release whose app-server protocol these schemas were written against. The shapes are the stable surface of `codex app-server generate-json-schema` (the `account/read` and `account/rateLimits/read` methods and the `initialize` handshake), checked against that release's output. A different installed release is not refused for being different: the answer is validated against these schemas, and a mismatch is reported naming both versions.
3717
+ */
3718
+ declare const CODEX_APP_SERVER_GENERATED_AGAINST = "0.160.0";
3719
+ /** The answer to `account/read`: the login, or none, and whether Codex needs one before it can serve requests. */
3720
+ declare const CodexAccountReadSchema: z.ZodObject<{
3721
+ account: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3722
+ type: z.ZodLiteral<"apiKey">;
3723
+ }, z.core.$strip>, z.ZodObject<{
3724
+ type: z.ZodLiteral<"chatgpt">;
3725
+ email: z.ZodNullable<z.ZodString>;
3726
+ planType: z.ZodString;
3727
+ }, z.core.$strip>, z.ZodObject<{
3728
+ type: z.ZodLiteral<"amazonBedrock">;
3729
+ usesCodexManagedCredentials: z.ZodDefault<z.ZodBoolean>;
3730
+ }, z.core.$strip>], "type">>;
3731
+ requiresOpenaiAuth: z.ZodBoolean;
3732
+ }, z.core.$strip>;
3733
+ /** The answer to `account/rateLimits/read`: the windows (the single-bucket view and the view by metered limit id) and the banked reset credits. */
3734
+ declare const CodexRateLimitsReadSchema: z.ZodObject<{
3735
+ rateLimits: z.ZodObject<{
3736
+ limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3737
+ limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3738
+ planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3739
+ primary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3740
+ usedPercent: z.ZodNumber;
3741
+ resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3742
+ windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3743
+ }, z.core.$strip>>>;
3744
+ secondary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3745
+ usedPercent: z.ZodNumber;
3746
+ resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3747
+ windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3748
+ }, z.core.$strip>>>;
3749
+ rateLimitReachedType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3750
+ spendControlReached: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3751
+ }, z.core.$strip>;
3752
+ rateLimitsByLimitId: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
3753
+ limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3754
+ limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3755
+ planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3756
+ primary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3757
+ usedPercent: z.ZodNumber;
3758
+ resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3759
+ windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3760
+ }, z.core.$strip>>>;
3761
+ secondary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3762
+ usedPercent: z.ZodNumber;
3763
+ resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3764
+ windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3765
+ }, z.core.$strip>>>;
3766
+ rateLimitReachedType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3767
+ spendControlReached: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3768
+ }, z.core.$strip>>>>;
3769
+ rateLimitResetCredits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3770
+ availableCount: z.ZodNumber;
3771
+ credits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3772
+ id: z.ZodString;
3773
+ grantedAt: z.ZodNumber;
3774
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3775
+ resetType: z.ZodString;
3776
+ status: z.ZodString;
3777
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3778
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3779
+ }, z.core.$strip>>>>;
3780
+ }, z.core.$strip>>>;
3781
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ ordinaryUsageAllowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3783
+ }, z.core.$strip>;
3784
+ type CodexAccountRead = z.infer<typeof CodexAccountReadSchema>;
3785
+ type CodexRateLimitsRead = z.infer<typeof CodexRateLimitsReadSchema>;
3786
+
3787
+ /**
3788
+ * A reader for what Codex itself knows about a login: the account behind a Codex home and its rate limits, asked of `codex app-server` over stdio so no consumer opens `auth.json` or depends on a private file format. Each read starts a short-lived app-server under the given home, asks one question and ends it. It never starts a login and never sends a prompt.
3789
+ */
3790
+ /** Raised when the Codex binary cannot be started (not installed, not executable) or ends before it answers. */
3791
+ declare class CodexAppServerUnavailableError extends CliError {
3792
+ constructor(detail: string);
3793
+ }
3794
+ /** Raised when the app-server answers a request with a JSON-RPC error; `rpcCode` and the message are the server's own, so a signed-out home reads as the server's "authentication required". */
3795
+ declare class CodexAppServerRequestError extends CliError {
3796
+ readonly method: string;
3797
+ readonly rpcCode: number;
3798
+ constructor(method: string, rpcCode: number, detail: string);
3799
+ }
3800
+ /** Raised when an answer does not have the shape this reader was written against, naming the installed Codex version and the one the shapes were generated against. */
3801
+ declare class CodexAppServerProtocolError extends CliError {
3802
+ readonly method: string;
3803
+ readonly installedVersion: string | undefined;
3804
+ constructor(method: string, installedVersion: string | undefined, detail: string);
3805
+ }
3806
+ /** One open conversation with an app-server process. */
3807
+ interface CodexAppServerConnection {
3808
+ /** Writes one JSON-RPC message. */
3809
+ readonly send: (message: unknown) => void;
3810
+ /** The next message the server wrote, or undefined once it has ended. */
3811
+ readonly receive: () => Promise<unknown>;
3812
+ /** Ends the conversation: closes the server's input, waits for it to exit and stops it if it does not. Safe to call twice. */
3813
+ readonly close: () => Promise<void>;
3814
+ }
3815
+ /** Starts app-server processes. Injected so the reader runs against a scripted server in tests and against the real `codex` binary in use. */
3816
+ interface CodexAppServerPort {
3817
+ /** Starts `bin app-server` with `CODEX_HOME` set to `codexHome`. Rejects with `CodexAppServerUnavailableError` when it cannot start. */
3818
+ readonly open: (options: Readonly<{
3819
+ bin: string;
3820
+ codexHome: string;
3821
+ }>) => Promise<CodexAppServerConnection>;
3822
+ }
3823
+ /** What a read needs from its caller. */
3824
+ interface CodexAppServerReadOptions {
3825
+ /** The Codex home to read: the directory `codex` keeps its login in, `~/.codex` unless `CODEX_HOME` says otherwise. */
3826
+ readonly codexHome: string;
3827
+ /** The Codex executable; `codex` on `PATH` when absent. */
3828
+ readonly bin?: string;
3829
+ /** Stops the read: the server is ended and the read rejects with the signal's reason. */
3830
+ readonly signal?: AbortSignal;
3831
+ /** How long the read may take, `CODEX_APP_SERVER_TIMEOUT_MS` when absent. A read that exceeds it rejects with `CodexAppServerUnavailableError`. */
3832
+ readonly timeoutMs?: number;
3833
+ }
3834
+ /**
3835
+ * How long a read may take before it is abandoned. An app-server start plus one backend call for the usage windows is network bound; this bounds a hung server rather than describing a normal read.
3836
+ */
3837
+ declare const CODEX_APP_SERVER_TIMEOUT_MS = 30000;
3838
+ /**
3839
+ * Reads the account behind a Codex home through `account/read`: its type, and for a ChatGPT sign-in the email and plan. The token is never part of the answer. A home with no login answers `account: null`.
3840
+ */
3841
+ declare function readCodexAccount(port: CodexAppServerPort, options: Readonly<CodexAppServerReadOptions>): Promise<CodexAccountRead>;
3842
+ /**
3843
+ * Reads a Codex home's rate limits through `account/rateLimits/read`: the windows by their length and the banked reset credits. A home with no login is refused by the server, reported as `CodexAppServerRequestError`.
3844
+ */
3845
+ declare function readCodexRateLimits(port: CodexAppServerPort, options: Readonly<CodexAppServerReadOptions>): Promise<CodexRateLimitsRead>;
3846
+
3847
+ /** The real app-server port: `codex app-server` as a child process speaking one JSON message per line on standard input and output, with `CODEX_HOME` set for it alone. */
3848
+ declare const realCodexAppServerPort: CodexAppServerPort;
3849
+
3715
3850
  /**
3716
3851
  * The Zod schema of `agent-shim check --json`'s output: one definition of the report's wire shape, so the JSON conversion (`checkReportToJson`, whose return type is this schema's inferred type, which makes the compiler prove the two agree) and every programmatic consumer of the report (the front door's `check.run` procedure above all) validate through the same source. A plain Zod leaf mirroring the shapes the report's own modules define; the vocabularies it switches on (layer kinds, decision routes, diagnostic codes and severities, decision sources) are imported as const arrays from those modules rather than restated here, so a vocabulary added there is a compile error here until this schema names it.
3717
3852
  */
@@ -3886,8 +4021,8 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3886
4021
  name: z.ZodString;
3887
4022
  credential: z.ZodObject<{
3888
4023
  target: z.ZodEnum<{
3889
- bearer: "bearer";
3890
4024
  apiKey: "apiKey";
4025
+ bearer: "bearer";
3891
4026
  oauthToken: "oauthToken";
3892
4027
  }>;
3893
4028
  sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -3948,8 +4083,8 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3948
4083
  }, z.core.$strict>]>>;
3949
4084
  identity: z.ZodOptional<z.ZodObject<{
3950
4085
  target: z.ZodEnum<{
3951
- bearer: "bearer";
3952
4086
  apiKey: "apiKey";
4087
+ bearer: "bearer";
3953
4088
  oauthToken: "oauthToken";
3954
4089
  }>;
3955
4090
  sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -4467,7 +4602,7 @@ type ClaudeBinaryResolver = (request?: Readonly<ClaudeBinaryRequest>) => Discove
4467
4602
 
4468
4603
  declare const DOCTOR_SEVERITIES: readonly ["pass", "warn", "fail"];
4469
4604
  type DoctorSeverity = (typeof DOCTOR_SEVERITIES)[number];
4470
- declare const DOCTOR_SECTIONS: readonly ["ambient-credential", "binary-discovery", "claude-shim", "path-resolution", "legacy-name", "config-profile", "identity", "pool", "provider", "keychain", "directory-rules", "global-config", "categories-local", "active-identity", "headroom"];
4605
+ declare const DOCTOR_SECTIONS: readonly ["ambient-credential", "binary-discovery", "claude-shim", "path-resolution", "legacy-name", "config-profile", "identity", "sign-in", "pool", "provider", "keychain", "directory-rules", "global-config", "categories-local", "active-identity", "headroom"];
4471
4606
  type DoctorSection = (typeof DOCTOR_SECTIONS)[number];
4472
4607
  /** One line of `agent-shim doctor`'s report. `subject` names the identity/profile/rule the finding is about, when the section has more than one of those. */
4473
4608
  interface DoctorFinding {
@@ -4488,6 +4623,8 @@ interface DoctorIdentityInput {
4488
4623
  readonly raw: string | undefined;
4489
4624
  /** The identity's own farm root (`identitiesDir/<name>`) — the account name the Keychain lookup uses. */
4490
4625
  readonly farmRoot: string;
4626
+ /** Whether the identity's `.credentials.json` exists, pre-resolved by the wiring layer since it is a file-existence check. */
4627
+ readonly credentialsFilePresent: boolean;
4491
4628
  }
4492
4629
  /** One configuration profile's raw `<name>.json`, unparsed. */
4493
4630
  interface DoctorConfigProfileInput {
@@ -4886,8 +5023,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
4886
5023
  allowAmbientCredential: zod.ZodBoolean;
4887
5024
  credential: zod.ZodOptional<zod.ZodObject<{
4888
5025
  target: zod.ZodEnum<{
4889
- bearer: "bearer";
4890
5026
  apiKey: "apiKey";
5027
+ bearer: "bearer";
4891
5028
  oauthToken: "oauthToken";
4892
5029
  }>;
4893
5030
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -4943,8 +5080,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
4943
5080
  literal: zod.ZodString;
4944
5081
  }, zod_v4_core.$strict>]>>>;
4945
5082
  target: zod.ZodOptional<zod.ZodEnum<{
4946
- bearer: "bearer";
4947
5083
  apiKey: "apiKey";
5084
+ bearer: "bearer";
4948
5085
  oauthToken: "oauthToken";
4949
5086
  }>>;
4950
5087
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
@@ -4965,8 +5102,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
4965
5102
  allowAmbientCredential: zod.ZodBoolean;
4966
5103
  credential: zod.ZodOptional<zod.ZodObject<{
4967
5104
  target: zod.ZodEnum<{
4968
- bearer: "bearer";
4969
5105
  apiKey: "apiKey";
5106
+ bearer: "bearer";
4970
5107
  oauthToken: "oauthToken";
4971
5108
  }>;
4972
5109
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -5491,8 +5628,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5491
5628
  literal: zod.ZodString;
5492
5629
  }, zod_v4_core.$strict>]>>>>;
5493
5630
  target: zod.ZodOptional<zod.ZodEnum<{
5494
- bearer: "bearer";
5495
5631
  apiKey: "apiKey";
5632
+ bearer: "bearer";
5496
5633
  }>>;
5497
5634
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
5498
5635
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -5554,8 +5691,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5554
5691
  }, zod_v4_core.$strict>>;
5555
5692
  credential: zod.ZodObject<{
5556
5693
  target: zod.ZodEnum<{
5557
- bearer: "bearer";
5558
5694
  apiKey: "apiKey";
5695
+ bearer: "bearer";
5559
5696
  oauthToken: "oauthToken";
5560
5697
  }>;
5561
5698
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -5612,8 +5749,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5612
5749
  literal: zod.ZodString;
5613
5750
  }, zod_v4_core.$strict>]>>>;
5614
5751
  target: zod.ZodOptional<zod.ZodEnum<{
5615
- bearer: "bearer";
5616
5752
  apiKey: "apiKey";
5753
+ bearer: "bearer";
5617
5754
  }>>;
5618
5755
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
5619
5756
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -5675,8 +5812,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5675
5812
  }, zod_v4_core.$strict>>;
5676
5813
  credential: zod.ZodObject<{
5677
5814
  target: zod.ZodEnum<{
5678
- bearer: "bearer";
5679
5815
  apiKey: "apiKey";
5816
+ bearer: "bearer";
5680
5817
  oauthToken: "oauthToken";
5681
5818
  }>;
5682
5819
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -6602,8 +6739,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
6602
6739
  name: zod.ZodString;
6603
6740
  summary: zod.ZodObject<{
6604
6741
  target: zod.ZodEnum<{
6605
- bearer: "bearer";
6606
6742
  apiKey: "apiKey";
6743
+ bearer: "bearer";
6607
6744
  oauthToken: "oauthToken";
6608
6745
  }>;
6609
6746
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7093,8 +7230,8 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7093
7230
  name: zod.ZodString;
7094
7231
  credential: zod.ZodObject<{
7095
7232
  target: zod.ZodEnum<{
7096
- bearer: "bearer";
7097
7233
  apiKey: "apiKey";
7234
+ bearer: "bearer";
7098
7235
  oauthToken: "oauthToken";
7099
7236
  }>;
7100
7237
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7155,8 +7292,8 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7155
7292
  }, zod_v4_core.$strict>]>>;
7156
7293
  identity: zod.ZodOptional<zod.ZodObject<{
7157
7294
  target: zod.ZodEnum<{
7158
- bearer: "bearer";
7159
7295
  apiKey: "apiKey";
7296
+ bearer: "bearer";
7160
7297
  oauthToken: "oauthToken";
7161
7298
  }>;
7162
7299
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7243,6 +7380,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7243
7380
  "claude-shim": "claude-shim";
7244
7381
  "path-resolution": "path-resolution";
7245
7382
  "legacy-name": "legacy-name";
7383
+ "sign-in": "sign-in";
7246
7384
  "directory-rules": "directory-rules";
7247
7385
  "categories-local": "categories-local";
7248
7386
  "active-identity": "active-identity";
@@ -7419,8 +7557,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7419
7557
  name: zod.ZodString;
7420
7558
  summary: zod.ZodObject<{
7421
7559
  target: zod.ZodEnum<{
7422
- bearer: "bearer";
7423
7560
  apiKey: "apiKey";
7561
+ bearer: "bearer";
7424
7562
  oauthToken: "oauthToken";
7425
7563
  }>;
7426
7564
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7493,8 +7631,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7493
7631
  allowAmbientCredential: zod.ZodBoolean;
7494
7632
  credential: zod.ZodOptional<zod.ZodObject<{
7495
7633
  target: zod.ZodEnum<{
7496
- bearer: "bearer";
7497
7634
  apiKey: "apiKey";
7635
+ bearer: "bearer";
7498
7636
  oauthToken: "oauthToken";
7499
7637
  }>;
7500
7638
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -7550,8 +7688,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7550
7688
  literal: zod.ZodString;
7551
7689
  }, zod_v4_core.$strict>]>>>;
7552
7690
  target: zod.ZodOptional<zod.ZodEnum<{
7553
- bearer: "bearer";
7554
7691
  apiKey: "apiKey";
7692
+ bearer: "bearer";
7555
7693
  oauthToken: "oauthToken";
7556
7694
  }>>;
7557
7695
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
@@ -7572,8 +7710,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7572
7710
  allowAmbientCredential: zod.ZodBoolean;
7573
7711
  credential: zod.ZodOptional<zod.ZodObject<{
7574
7712
  target: zod.ZodEnum<{
7575
- bearer: "bearer";
7576
7713
  apiKey: "apiKey";
7714
+ bearer: "bearer";
7577
7715
  oauthToken: "oauthToken";
7578
7716
  }>;
7579
7717
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -8098,8 +8236,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8098
8236
  literal: zod.ZodString;
8099
8237
  }, zod_v4_core.$strict>]>>>>;
8100
8238
  target: zod.ZodOptional<zod.ZodEnum<{
8101
- bearer: "bearer";
8102
8239
  apiKey: "apiKey";
8240
+ bearer: "bearer";
8103
8241
  }>>;
8104
8242
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
8105
8243
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -8161,8 +8299,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8161
8299
  }, zod_v4_core.$strict>>;
8162
8300
  credential: zod.ZodObject<{
8163
8301
  target: zod.ZodEnum<{
8164
- bearer: "bearer";
8165
8302
  apiKey: "apiKey";
8303
+ bearer: "bearer";
8166
8304
  oauthToken: "oauthToken";
8167
8305
  }>;
8168
8306
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -8219,8 +8357,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8219
8357
  literal: zod.ZodString;
8220
8358
  }, zod_v4_core.$strict>]>>>;
8221
8359
  target: zod.ZodOptional<zod.ZodEnum<{
8222
- bearer: "bearer";
8223
8360
  apiKey: "apiKey";
8361
+ bearer: "bearer";
8224
8362
  }>>;
8225
8363
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
8226
8364
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -8282,8 +8420,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8282
8420
  }, zod_v4_core.$strict>>;
8283
8421
  credential: zod.ZodObject<{
8284
8422
  target: zod.ZodEnum<{
8285
- bearer: "bearer";
8286
8423
  apiKey: "apiKey";
8424
+ bearer: "bearer";
8287
8425
  oauthToken: "oauthToken";
8288
8426
  }>;
8289
8427
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -9062,8 +9200,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9062
9200
  name: zod.ZodString;
9063
9201
  credential: zod.ZodObject<{
9064
9202
  target: zod.ZodEnum<{
9065
- bearer: "bearer";
9066
9203
  apiKey: "apiKey";
9204
+ bearer: "bearer";
9067
9205
  oauthToken: "oauthToken";
9068
9206
  }>;
9069
9207
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -9124,8 +9262,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9124
9262
  }, zod_v4_core.$strict>]>>;
9125
9263
  identity: zod.ZodOptional<zod.ZodObject<{
9126
9264
  target: zod.ZodEnum<{
9127
- bearer: "bearer";
9128
9265
  apiKey: "apiKey";
9266
+ bearer: "bearer";
9129
9267
  oauthToken: "oauthToken";
9130
9268
  }>;
9131
9269
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -9212,6 +9350,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9212
9350
  "claude-shim": "claude-shim";
9213
9351
  "path-resolution": "path-resolution";
9214
9352
  "legacy-name": "legacy-name";
9353
+ "sign-in": "sign-in";
9215
9354
  "directory-rules": "directory-rules";
9216
9355
  "categories-local": "categories-local";
9217
9356
  "active-identity": "active-identity";
@@ -9503,8 +9642,8 @@ declare function frontDoorApiFromState(paths: LayoutPaths, fsPort?: HeadroomFs):
9503
9642
  /** A credential block as every response reports it: the effective target, each source's kind and its identifying detail, in order, and the cache setting. Never a value: a `literal` source reports only its kind. */
9504
9643
  declare const CredentialSummarySchema: z.ZodObject<{
9505
9644
  target: z.ZodEnum<{
9506
- bearer: "bearer";
9507
9645
  apiKey: "apiKey";
9646
+ bearer: "bearer";
9508
9647
  oauthToken: "oauthToken";
9509
9648
  }>;
9510
9649
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -9548,8 +9687,8 @@ declare const ConfigIdentityAddOutputSchema: z.ZodObject<{
9548
9687
  allowAmbientCredential: z.ZodBoolean;
9549
9688
  credential: z.ZodOptional<z.ZodObject<{
9550
9689
  target: z.ZodEnum<{
9551
- bearer: "bearer";
9552
9690
  apiKey: "apiKey";
9691
+ bearer: "bearer";
9553
9692
  oauthToken: "oauthToken";
9554
9693
  }>;
9555
9694
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -9606,8 +9745,8 @@ declare const ConfigIdentitySetInputSchema: z.ZodObject<{
9606
9745
  literal: z.ZodString;
9607
9746
  }, z.core.$strict>]>>>;
9608
9747
  target: z.ZodOptional<z.ZodEnum<{
9609
- bearer: "bearer";
9610
9748
  apiKey: "apiKey";
9749
+ bearer: "bearer";
9611
9750
  oauthToken: "oauthToken";
9612
9751
  }>>;
9613
9752
  cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
@@ -9629,8 +9768,8 @@ declare const ConfigIdentitySetOutputSchema: z.ZodObject<{
9629
9768
  allowAmbientCredential: z.ZodBoolean;
9630
9769
  credential: z.ZodOptional<z.ZodObject<{
9631
9770
  target: z.ZodEnum<{
9632
- bearer: "bearer";
9633
9771
  apiKey: "apiKey";
9772
+ bearer: "bearer";
9634
9773
  oauthToken: "oauthToken";
9635
9774
  }>;
9636
9775
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -10153,8 +10292,8 @@ declare const ConfigProviderAddInputSchema: z.ZodObject<{
10153
10292
  literal: z.ZodString;
10154
10293
  }, z.core.$strict>]>>>>;
10155
10294
  target: z.ZodOptional<z.ZodEnum<{
10156
- bearer: "bearer";
10157
10295
  apiKey: "apiKey";
10296
+ bearer: "bearer";
10158
10297
  }>>;
10159
10298
  cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
10160
10299
  ttl: z.ZodOptional<z.ZodString>;
@@ -10217,8 +10356,8 @@ declare const ConfigProviderAddOutputSchema: z.ZodObject<{
10217
10356
  }, z.core.$strict>>;
10218
10357
  credential: z.ZodObject<{
10219
10358
  target: z.ZodEnum<{
10220
- bearer: "bearer";
10221
10359
  apiKey: "apiKey";
10360
+ bearer: "bearer";
10222
10361
  oauthToken: "oauthToken";
10223
10362
  }>;
10224
10363
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -10276,8 +10415,8 @@ declare const ConfigProviderSetInputSchema: z.ZodObject<{
10276
10415
  literal: z.ZodString;
10277
10416
  }, z.core.$strict>]>>>;
10278
10417
  target: z.ZodOptional<z.ZodEnum<{
10279
- bearer: "bearer";
10280
10418
  apiKey: "apiKey";
10419
+ bearer: "bearer";
10281
10420
  }>>;
10282
10421
  cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
10283
10422
  ttl: z.ZodOptional<z.ZodString>;
@@ -10340,8 +10479,8 @@ declare const ConfigProviderSetOutputSchema: z.ZodObject<{
10340
10479
  }, z.core.$strict>>;
10341
10480
  credential: z.ZodObject<{
10342
10481
  target: z.ZodEnum<{
10343
- bearer: "bearer";
10344
10482
  apiKey: "apiKey";
10483
+ bearer: "bearer";
10345
10484
  oauthToken: "oauthToken";
10346
10485
  }>;
10347
10486
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -11017,6 +11156,7 @@ declare const DoctorFindingSchema: z.ZodObject<{
11017
11156
  "claude-shim": "claude-shim";
11018
11157
  "path-resolution": "path-resolution";
11019
11158
  "legacy-name": "legacy-name";
11159
+ "sign-in": "sign-in";
11020
11160
  "directory-rules": "directory-rules";
11021
11161
  "categories-local": "categories-local";
11022
11162
  "active-identity": "active-identity";
@@ -11046,6 +11186,7 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
11046
11186
  "claude-shim": "claude-shim";
11047
11187
  "path-resolution": "path-resolution";
11048
11188
  "legacy-name": "legacy-name";
11189
+ "sign-in": "sign-in";
11049
11190
  "directory-rules": "directory-rules";
11050
11191
  "categories-local": "categories-local";
11051
11192
  "active-identity": "active-identity";
@@ -11174,8 +11315,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
11174
11315
  name: z.ZodString;
11175
11316
  summary: z.ZodObject<{
11176
11317
  target: z.ZodEnum<{
11177
- bearer: "bearer";
11178
11318
  apiKey: "apiKey";
11319
+ bearer: "bearer";
11179
11320
  oauthToken: "oauthToken";
11180
11321
  }>;
11181
11322
  sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -12396,5 +12537,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
12396
12537
  */
12397
12538
  declare function agentShimCliPath(distDir?: string | undefined): string;
12398
12539
 
12399
- export { AMBIENT_CREDENTIAL_VARS, CHECK_CREDENTIAL_APPLIES, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, CodexLogoutOutputSchema, CodexSignInSchema, CodexStatusOutputSchema, ConfigIdentityAddOutputSchema, ConfigIdentityRemoveInputSchema, ConfigIdentityRemoveOutputSchema, ConfigIdentitySetInputSchema, ConfigIdentitySetOutputSchema, ConfigIdentityUseOutputSchema, ConfigNameInputSchema, ConfigPoolAddInputSchema, ConfigPoolAddOutputSchema, ConfigPoolRemoveInputSchema, ConfigPoolRemoveOutputSchema, ConfigPoolSetInputSchema, ConfigPoolSetOutputSchema, ConfigPoolUseOutputSchema, ConfigProfileAddInputSchema, ConfigProfileAddOutputSchema, ConfigProfileRemoveInputSchema, ConfigProfileRemoveOutputSchema, ConfigProfileSchema, ConfigProfileSetInputSchema, ConfigProfileSetOutputSchema, ConfigProfileUseOutputSchema, ConfigProviderAddInputSchema, ConfigProviderAddOutputSchema, ConfigProviderRemoveInputSchema, ConfigProviderRemoveOutputSchema, ConfigProviderSetInputSchema, ConfigProviderSetOutputSchema, ConfigRuleAddInputSchema, ConfigRuleAddOutputSchema, ConfigRuleRemoveInputSchema, ConfigRuleRemoveOutputSchema, ConfigRuleSetInputSchema, ConfigRuleSetOutputSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, CredentialSummarySchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DOOR_HEALTH_EVENT_SOURCE, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, DoorHealthEventSchema, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorControlMaterialError, FrontDoorNotServingError, FrontDoorRestartOutputSchema, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, RC_CONTEXT_USAGE_DETAILS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PERMISSION_MODES, RC_READ_FILE_ENCODINGS, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, listDirectoryRules, listIdentities, listProfiles, listProviders, listUsageSnapshots, matchBranch, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readUsageSnapshot, realConnectCertStore, realConnectEffects, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, reconnectRcSessionMcpServer, recoverFarm, recoveryDiagnostics, refreshLaunchPoolUsage, refreshPoolUsage, refreshStalePoolMembers, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveClaudeLaunch, resolveDecisions, resolveLaunch, resolveLaunchSelection, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runClaudeLaunch, runDoctor, runFrontDoorSupervisor, runLaunchPlan, runLauncher, runSupervisor, sendRcKeepAlive, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setPool, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, writeDirectoryRules };
12400
- export type { AddDirectoryRuleOptions, AddProviderInput, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchResolution, CodexApiClient, CodexApiDeps, CodexApiRouter, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigApiDeps, ConfigApiRouter, ConfigProfile, ConnectCertStore, ConnectEffects, ConnectLimits, ConnectLocalSurface, ConnectServerConfig, ConnectServerHandle, ConnectTarget, ControlApiClient, ControlApiDeps, ControlApiRouter, Credential, CredentialSource, Decision, Diagnostic, DirectoryRule, DirectoryRules, DoctorReport, DoorApiClient, DoorApiContext, DoorApiDeps, DoorApiRouter, DoorEvent, DoorEventHub, DoorEventPublisher, DoorEventStream, DoorEventsApiDeps, DoorHealthEvent, DoorHealthPublisher, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorControlMaterial, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolMember, PoolPickReport, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation };
12540
+ export { AMBIENT_CREDENTIAL_VARS, CHECK_CREDENTIAL_APPLIES, CODEX_APP_SERVER_GENERATED_AGAINST, CODEX_APP_SERVER_TIMEOUT_MS, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, CodexAccountReadSchema, CodexAppServerProtocolError, CodexAppServerRequestError, CodexAppServerUnavailableError, CodexLogoutOutputSchema, CodexRateLimitsReadSchema, CodexSignInSchema, CodexStatusOutputSchema, ConfigIdentityAddOutputSchema, ConfigIdentityRemoveInputSchema, ConfigIdentityRemoveOutputSchema, ConfigIdentitySetInputSchema, ConfigIdentitySetOutputSchema, ConfigIdentityUseOutputSchema, ConfigNameInputSchema, ConfigPoolAddInputSchema, ConfigPoolAddOutputSchema, ConfigPoolRemoveInputSchema, ConfigPoolRemoveOutputSchema, ConfigPoolSetInputSchema, ConfigPoolSetOutputSchema, ConfigPoolUseOutputSchema, ConfigProfileAddInputSchema, ConfigProfileAddOutputSchema, ConfigProfileRemoveInputSchema, ConfigProfileRemoveOutputSchema, ConfigProfileSchema, ConfigProfileSetInputSchema, ConfigProfileSetOutputSchema, ConfigProfileUseOutputSchema, ConfigProviderAddInputSchema, ConfigProviderAddOutputSchema, ConfigProviderRemoveInputSchema, ConfigProviderRemoveOutputSchema, ConfigProviderSetInputSchema, ConfigProviderSetOutputSchema, ConfigRuleAddInputSchema, ConfigRuleAddOutputSchema, ConfigRuleRemoveInputSchema, ConfigRuleRemoveOutputSchema, ConfigRuleSetInputSchema, ConfigRuleSetOutputSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, CredentialSummarySchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DOOR_HEALTH_EVENT_SOURCE, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, DoorHealthEventSchema, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorControlMaterialError, FrontDoorNotServingError, FrontDoorRestartOutputSchema, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, RC_CONTEXT_USAGE_DETAILS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PERMISSION_MODES, RC_READ_FILE_ENCODINGS, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, listDirectoryRules, listIdentities, listProfiles, listProviders, listUsageSnapshots, matchBranch, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readCodexAccount, readCodexRateLimits, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readUsageSnapshot, realCodexAppServerPort, realConnectCertStore, realConnectEffects, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, reconnectRcSessionMcpServer, recoverFarm, recoveryDiagnostics, refreshLaunchPoolUsage, refreshPoolUsage, refreshStalePoolMembers, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveClaudeLaunch, resolveDecisions, resolveLaunch, resolveLaunchSelection, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runClaudeLaunch, runDoctor, runFrontDoorSupervisor, runLaunchPlan, runLauncher, runSupervisor, sendRcKeepAlive, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setPool, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, writeDirectoryRules };
12541
+ export type { AddDirectoryRuleOptions, AddProviderInput, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchResolution, CodexAccountRead, CodexApiClient, CodexApiDeps, CodexApiRouter, CodexAppServerConnection, CodexAppServerPort, CodexAppServerReadOptions, CodexRateLimitsRead, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigApiDeps, ConfigApiRouter, ConfigProfile, ConnectCertStore, ConnectEffects, ConnectLimits, ConnectLocalSurface, ConnectServerConfig, ConnectServerHandle, ConnectTarget, ControlApiClient, ControlApiDeps, ControlApiRouter, Credential, CredentialSource, Decision, Diagnostic, DirectoryRule, DirectoryRules, DoctorReport, DoorApiClient, DoorApiContext, DoorApiDeps, DoorApiRouter, DoorEvent, DoorEventHub, DoorEventPublisher, DoorEventStream, DoorEventsApiDeps, DoorHealthEvent, DoorHealthPublisher, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorControlMaterial, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolMember, PoolPickReport, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "9.7.2",
3
+ "version": "9.9.0",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",