agent-shim 9.8.0 → 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<{
@@ -4888,8 +5023,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
4888
5023
  allowAmbientCredential: zod.ZodBoolean;
4889
5024
  credential: zod.ZodOptional<zod.ZodObject<{
4890
5025
  target: zod.ZodEnum<{
4891
- bearer: "bearer";
4892
5026
  apiKey: "apiKey";
5027
+ bearer: "bearer";
4893
5028
  oauthToken: "oauthToken";
4894
5029
  }>;
4895
5030
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -4945,8 +5080,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
4945
5080
  literal: zod.ZodString;
4946
5081
  }, zod_v4_core.$strict>]>>>;
4947
5082
  target: zod.ZodOptional<zod.ZodEnum<{
4948
- bearer: "bearer";
4949
5083
  apiKey: "apiKey";
5084
+ bearer: "bearer";
4950
5085
  oauthToken: "oauthToken";
4951
5086
  }>>;
4952
5087
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
@@ -4967,8 +5102,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
4967
5102
  allowAmbientCredential: zod.ZodBoolean;
4968
5103
  credential: zod.ZodOptional<zod.ZodObject<{
4969
5104
  target: zod.ZodEnum<{
4970
- bearer: "bearer";
4971
5105
  apiKey: "apiKey";
5106
+ bearer: "bearer";
4972
5107
  oauthToken: "oauthToken";
4973
5108
  }>;
4974
5109
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -5493,8 +5628,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5493
5628
  literal: zod.ZodString;
5494
5629
  }, zod_v4_core.$strict>]>>>>;
5495
5630
  target: zod.ZodOptional<zod.ZodEnum<{
5496
- bearer: "bearer";
5497
5631
  apiKey: "apiKey";
5632
+ bearer: "bearer";
5498
5633
  }>>;
5499
5634
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
5500
5635
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -5556,8 +5691,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5556
5691
  }, zod_v4_core.$strict>>;
5557
5692
  credential: zod.ZodObject<{
5558
5693
  target: zod.ZodEnum<{
5559
- bearer: "bearer";
5560
5694
  apiKey: "apiKey";
5695
+ bearer: "bearer";
5561
5696
  oauthToken: "oauthToken";
5562
5697
  }>;
5563
5698
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -5614,8 +5749,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5614
5749
  literal: zod.ZodString;
5615
5750
  }, zod_v4_core.$strict>]>>>;
5616
5751
  target: zod.ZodOptional<zod.ZodEnum<{
5617
- bearer: "bearer";
5618
5752
  apiKey: "apiKey";
5753
+ bearer: "bearer";
5619
5754
  }>>;
5620
5755
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
5621
5756
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -5677,8 +5812,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5677
5812
  }, zod_v4_core.$strict>>;
5678
5813
  credential: zod.ZodObject<{
5679
5814
  target: zod.ZodEnum<{
5680
- bearer: "bearer";
5681
5815
  apiKey: "apiKey";
5816
+ bearer: "bearer";
5682
5817
  oauthToken: "oauthToken";
5683
5818
  }>;
5684
5819
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -6604,8 +6739,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
6604
6739
  name: zod.ZodString;
6605
6740
  summary: zod.ZodObject<{
6606
6741
  target: zod.ZodEnum<{
6607
- bearer: "bearer";
6608
6742
  apiKey: "apiKey";
6743
+ bearer: "bearer";
6609
6744
  oauthToken: "oauthToken";
6610
6745
  }>;
6611
6746
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7095,8 +7230,8 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7095
7230
  name: zod.ZodString;
7096
7231
  credential: zod.ZodObject<{
7097
7232
  target: zod.ZodEnum<{
7098
- bearer: "bearer";
7099
7233
  apiKey: "apiKey";
7234
+ bearer: "bearer";
7100
7235
  oauthToken: "oauthToken";
7101
7236
  }>;
7102
7237
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7157,8 +7292,8 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7157
7292
  }, zod_v4_core.$strict>]>>;
7158
7293
  identity: zod.ZodOptional<zod.ZodObject<{
7159
7294
  target: zod.ZodEnum<{
7160
- bearer: "bearer";
7161
7295
  apiKey: "apiKey";
7296
+ bearer: "bearer";
7162
7297
  oauthToken: "oauthToken";
7163
7298
  }>;
7164
7299
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7422,8 +7557,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7422
7557
  name: zod.ZodString;
7423
7558
  summary: zod.ZodObject<{
7424
7559
  target: zod.ZodEnum<{
7425
- bearer: "bearer";
7426
7560
  apiKey: "apiKey";
7561
+ bearer: "bearer";
7427
7562
  oauthToken: "oauthToken";
7428
7563
  }>;
7429
7564
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7496,8 +7631,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7496
7631
  allowAmbientCredential: zod.ZodBoolean;
7497
7632
  credential: zod.ZodOptional<zod.ZodObject<{
7498
7633
  target: zod.ZodEnum<{
7499
- bearer: "bearer";
7500
7634
  apiKey: "apiKey";
7635
+ bearer: "bearer";
7501
7636
  oauthToken: "oauthToken";
7502
7637
  }>;
7503
7638
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -7553,8 +7688,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7553
7688
  literal: zod.ZodString;
7554
7689
  }, zod_v4_core.$strict>]>>>;
7555
7690
  target: zod.ZodOptional<zod.ZodEnum<{
7556
- bearer: "bearer";
7557
7691
  apiKey: "apiKey";
7692
+ bearer: "bearer";
7558
7693
  oauthToken: "oauthToken";
7559
7694
  }>>;
7560
7695
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
@@ -7575,8 +7710,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7575
7710
  allowAmbientCredential: zod.ZodBoolean;
7576
7711
  credential: zod.ZodOptional<zod.ZodObject<{
7577
7712
  target: zod.ZodEnum<{
7578
- bearer: "bearer";
7579
7713
  apiKey: "apiKey";
7714
+ bearer: "bearer";
7580
7715
  oauthToken: "oauthToken";
7581
7716
  }>;
7582
7717
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -8101,8 +8236,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8101
8236
  literal: zod.ZodString;
8102
8237
  }, zod_v4_core.$strict>]>>>>;
8103
8238
  target: zod.ZodOptional<zod.ZodEnum<{
8104
- bearer: "bearer";
8105
8239
  apiKey: "apiKey";
8240
+ bearer: "bearer";
8106
8241
  }>>;
8107
8242
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
8108
8243
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -8164,8 +8299,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8164
8299
  }, zod_v4_core.$strict>>;
8165
8300
  credential: zod.ZodObject<{
8166
8301
  target: zod.ZodEnum<{
8167
- bearer: "bearer";
8168
8302
  apiKey: "apiKey";
8303
+ bearer: "bearer";
8169
8304
  oauthToken: "oauthToken";
8170
8305
  }>;
8171
8306
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -8222,8 +8357,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8222
8357
  literal: zod.ZodString;
8223
8358
  }, zod_v4_core.$strict>]>>>;
8224
8359
  target: zod.ZodOptional<zod.ZodEnum<{
8225
- bearer: "bearer";
8226
8360
  apiKey: "apiKey";
8361
+ bearer: "bearer";
8227
8362
  }>>;
8228
8363
  cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
8229
8364
  ttl: zod.ZodOptional<zod.ZodString>;
@@ -8285,8 +8420,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8285
8420
  }, zod_v4_core.$strict>>;
8286
8421
  credential: zod.ZodObject<{
8287
8422
  target: zod.ZodEnum<{
8288
- bearer: "bearer";
8289
8423
  apiKey: "apiKey";
8424
+ bearer: "bearer";
8290
8425
  oauthToken: "oauthToken";
8291
8426
  }>;
8292
8427
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -9065,8 +9200,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9065
9200
  name: zod.ZodString;
9066
9201
  credential: zod.ZodObject<{
9067
9202
  target: zod.ZodEnum<{
9068
- bearer: "bearer";
9069
9203
  apiKey: "apiKey";
9204
+ bearer: "bearer";
9070
9205
  oauthToken: "oauthToken";
9071
9206
  }>;
9072
9207
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -9127,8 +9262,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9127
9262
  }, zod_v4_core.$strict>]>>;
9128
9263
  identity: zod.ZodOptional<zod.ZodObject<{
9129
9264
  target: zod.ZodEnum<{
9130
- bearer: "bearer";
9131
9265
  apiKey: "apiKey";
9266
+ bearer: "bearer";
9132
9267
  oauthToken: "oauthToken";
9133
9268
  }>;
9134
9269
  sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
@@ -9507,8 +9642,8 @@ declare function frontDoorApiFromState(paths: LayoutPaths, fsPort?: HeadroomFs):
9507
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. */
9508
9643
  declare const CredentialSummarySchema: z.ZodObject<{
9509
9644
  target: z.ZodEnum<{
9510
- bearer: "bearer";
9511
9645
  apiKey: "apiKey";
9646
+ bearer: "bearer";
9512
9647
  oauthToken: "oauthToken";
9513
9648
  }>;
9514
9649
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -9552,8 +9687,8 @@ declare const ConfigIdentityAddOutputSchema: z.ZodObject<{
9552
9687
  allowAmbientCredential: z.ZodBoolean;
9553
9688
  credential: z.ZodOptional<z.ZodObject<{
9554
9689
  target: z.ZodEnum<{
9555
- bearer: "bearer";
9556
9690
  apiKey: "apiKey";
9691
+ bearer: "bearer";
9557
9692
  oauthToken: "oauthToken";
9558
9693
  }>;
9559
9694
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -9610,8 +9745,8 @@ declare const ConfigIdentitySetInputSchema: z.ZodObject<{
9610
9745
  literal: z.ZodString;
9611
9746
  }, z.core.$strict>]>>>;
9612
9747
  target: z.ZodOptional<z.ZodEnum<{
9613
- bearer: "bearer";
9614
9748
  apiKey: "apiKey";
9749
+ bearer: "bearer";
9615
9750
  oauthToken: "oauthToken";
9616
9751
  }>>;
9617
9752
  cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
@@ -9633,8 +9768,8 @@ declare const ConfigIdentitySetOutputSchema: z.ZodObject<{
9633
9768
  allowAmbientCredential: z.ZodBoolean;
9634
9769
  credential: z.ZodOptional<z.ZodObject<{
9635
9770
  target: z.ZodEnum<{
9636
- bearer: "bearer";
9637
9771
  apiKey: "apiKey";
9772
+ bearer: "bearer";
9638
9773
  oauthToken: "oauthToken";
9639
9774
  }>;
9640
9775
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -10157,8 +10292,8 @@ declare const ConfigProviderAddInputSchema: z.ZodObject<{
10157
10292
  literal: z.ZodString;
10158
10293
  }, z.core.$strict>]>>>>;
10159
10294
  target: z.ZodOptional<z.ZodEnum<{
10160
- bearer: "bearer";
10161
10295
  apiKey: "apiKey";
10296
+ bearer: "bearer";
10162
10297
  }>>;
10163
10298
  cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
10164
10299
  ttl: z.ZodOptional<z.ZodString>;
@@ -10221,8 +10356,8 @@ declare const ConfigProviderAddOutputSchema: z.ZodObject<{
10221
10356
  }, z.core.$strict>>;
10222
10357
  credential: z.ZodObject<{
10223
10358
  target: z.ZodEnum<{
10224
- bearer: "bearer";
10225
10359
  apiKey: "apiKey";
10360
+ bearer: "bearer";
10226
10361
  oauthToken: "oauthToken";
10227
10362
  }>;
10228
10363
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -10280,8 +10415,8 @@ declare const ConfigProviderSetInputSchema: z.ZodObject<{
10280
10415
  literal: z.ZodString;
10281
10416
  }, z.core.$strict>]>>>;
10282
10417
  target: z.ZodOptional<z.ZodEnum<{
10283
- bearer: "bearer";
10284
10418
  apiKey: "apiKey";
10419
+ bearer: "bearer";
10285
10420
  }>>;
10286
10421
  cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
10287
10422
  ttl: z.ZodOptional<z.ZodString>;
@@ -10344,8 +10479,8 @@ declare const ConfigProviderSetOutputSchema: z.ZodObject<{
10344
10479
  }, z.core.$strict>>;
10345
10480
  credential: z.ZodObject<{
10346
10481
  target: z.ZodEnum<{
10347
- bearer: "bearer";
10348
10482
  apiKey: "apiKey";
10483
+ bearer: "bearer";
10349
10484
  oauthToken: "oauthToken";
10350
10485
  }>;
10351
10486
  sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -11180,8 +11315,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
11180
11315
  name: z.ZodString;
11181
11316
  summary: z.ZodObject<{
11182
11317
  target: z.ZodEnum<{
11183
- bearer: "bearer";
11184
11318
  apiKey: "apiKey";
11319
+ bearer: "bearer";
11185
11320
  oauthToken: "oauthToken";
11186
11321
  }>;
11187
11322
  sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -12402,5 +12537,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
12402
12537
  */
12403
12538
  declare function agentShimCliPath(distDir?: string | undefined): string;
12404
12539
 
12405
- 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 };
12406
- 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.8.0",
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>",