agent-shim 12.1.0 → 13.0.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.
- package/dist/cli.cjs +77922 -77255
- package/dist/index.cjs +13742 -13196
- package/dist/index.mjs +12327 -11782
- package/dist/types/index.d.ts +155 -49
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -297,10 +297,10 @@ declare const LaunchSchema: z.ZodObject<{
|
|
|
297
297
|
}>>;
|
|
298
298
|
layout: z.ZodOptional<z.ZodObject<{
|
|
299
299
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
300
|
+
account: "account";
|
|
300
301
|
identity: "identity";
|
|
301
302
|
model: "model";
|
|
302
303
|
route: "route";
|
|
303
|
-
account: "account";
|
|
304
304
|
provider: "provider";
|
|
305
305
|
version: "version";
|
|
306
306
|
headroom: "headroom";
|
|
@@ -1021,6 +1021,7 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1021
1021
|
kind: z.ZodOptional<z.ZodLiteral<"http">>;
|
|
1022
1022
|
displayName: z.ZodString;
|
|
1023
1023
|
baseUrl: z.ZodURL;
|
|
1024
|
+
connectTimeoutMs: z.ZodOptional<z.ZodInt>;
|
|
1024
1025
|
credential: z.ZodObject<{
|
|
1025
1026
|
sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1026
1027
|
env: z.ZodString;
|
|
@@ -1527,10 +1528,10 @@ declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
1527
1528
|
}>>;
|
|
1528
1529
|
layout: z.ZodOptional<z.ZodObject<{
|
|
1529
1530
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1531
|
+
account: "account";
|
|
1530
1532
|
identity: "identity";
|
|
1531
1533
|
model: "model";
|
|
1532
1534
|
route: "route";
|
|
1533
|
-
account: "account";
|
|
1534
1535
|
provider: "provider";
|
|
1535
1536
|
version: "version";
|
|
1536
1537
|
headroom: "headroom";
|
|
@@ -2377,10 +2378,10 @@ declare const DirectoryRuleSchema: z.ZodObject<{
|
|
|
2377
2378
|
}>>;
|
|
2378
2379
|
layout: z.ZodOptional<z.ZodObject<{
|
|
2379
2380
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2381
|
+
account: "account";
|
|
2380
2382
|
identity: "identity";
|
|
2381
2383
|
model: "model";
|
|
2382
2384
|
route: "route";
|
|
2383
|
-
account: "account";
|
|
2384
2385
|
provider: "provider";
|
|
2385
2386
|
version: "version";
|
|
2386
2387
|
headroom: "headroom";
|
|
@@ -3153,10 +3154,10 @@ declare const DirectoryRulesSchema: z.ZodObject<{
|
|
|
3153
3154
|
}>>;
|
|
3154
3155
|
layout: z.ZodOptional<z.ZodObject<{
|
|
3155
3156
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3157
|
+
account: "account";
|
|
3156
3158
|
identity: "identity";
|
|
3157
3159
|
model: "model";
|
|
3158
3160
|
route: "route";
|
|
3159
|
-
account: "account";
|
|
3160
3161
|
provider: "provider";
|
|
3161
3162
|
version: "version";
|
|
3162
3163
|
headroom: "headroom";
|
|
@@ -3929,10 +3930,10 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
3929
3930
|
}>>;
|
|
3930
3931
|
layout: z.ZodOptional<z.ZodObject<{
|
|
3931
3932
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3933
|
+
account: "account";
|
|
3932
3934
|
identity: "identity";
|
|
3933
3935
|
model: "model";
|
|
3934
3936
|
route: "route";
|
|
3935
|
-
account: "account";
|
|
3936
3937
|
provider: "provider";
|
|
3937
3938
|
version: "version";
|
|
3938
3939
|
headroom: "headroom";
|
|
@@ -4685,10 +4686,10 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
4685
4686
|
}>>;
|
|
4686
4687
|
layout: z.ZodOptional<z.ZodObject<{
|
|
4687
4688
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4689
|
+
account: "account";
|
|
4688
4690
|
identity: "identity";
|
|
4689
4691
|
model: "model";
|
|
4690
4692
|
route: "route";
|
|
4691
|
-
account: "account";
|
|
4692
4693
|
provider: "provider";
|
|
4693
4694
|
version: "version";
|
|
4694
4695
|
headroom: "headroom";
|
|
@@ -6166,7 +6167,7 @@ interface ReportRow {
|
|
|
6166
6167
|
/** Where the launcher reports what it decided and why — refusals, warnings about an identity that could not be loaded, and (per the "strictly-better than the legacy script" goal) which identity/profile ended up selected. */
|
|
6167
6168
|
interface LogPort {
|
|
6168
6169
|
readonly info: (message: string) => void;
|
|
6169
|
-
/** Prints the facts a launch reports about itself as one block, with the formatting the output takes. */
|
|
6170
|
+
/** Prints the facts a launch reports about itself as one block, with the formatting the output takes. The command line's port writes it, like every other line, to standard error, which leaves standard output to the child. */
|
|
6170
6171
|
readonly report: (rows: readonly ReportRow[]) => void;
|
|
6171
6172
|
readonly warn: (message: string) => void;
|
|
6172
6173
|
readonly error: (message: string) => void;
|
|
@@ -7859,9 +7860,6 @@ interface RcStreamHub {
|
|
|
7859
7860
|
declare function createRcStreamHub(deps: RcStreamHubDeps): RcStreamHub;
|
|
7860
7861
|
|
|
7861
7862
|
/** The real `ConnectEffects` over node's own net, tls, and http. `connectTcp` opens real connections to the CONNECTed host, so tests that want a blind tunnel redirect it. */
|
|
7862
|
-
/**
|
|
7863
|
-
* A DNS lookup for the door's own upstream dials that bypasses the hosts file, because a transparent-interception deployment points the intercept hosts' names at this machine in /etc/hosts: getaddrinfo (Node's default lookup) would send the door's own upstream connections straight back into the intercept port, a loop, while `dns.resolve4` asks the resolver directly and returns the real address. The SNI and Host stay the real name; only the dial address comes from DNS.
|
|
7864
|
-
*/
|
|
7865
7863
|
/**
|
|
7866
7864
|
* A range of local source ports the door's own upstream sockets bind, handed out in rotation because node binds one port per socket with no range option. The width is also the dial's retry bound: one attempt per port, so a fully-held range surfaces its last bind error instead of spinning. Injectable so the exhaustion tests hold a private range instead of racing every other worker for the door's real one.
|
|
7867
7865
|
*/
|
|
@@ -7870,7 +7868,8 @@ declare class SourcePortRange {
|
|
|
7870
7868
|
readonly end: number;
|
|
7871
7869
|
readonly count: number;
|
|
7872
7870
|
private next;
|
|
7873
|
-
|
|
7871
|
+
/** `first` is the port the rotation hands out first, `start` unless a caller gives its own: several rotations that serve one purpose at once (the probes of a batch) start apart, so they do not all bind the first port of the range and walk up it together. */
|
|
7872
|
+
constructor(start: number, end: number, first?: number);
|
|
7874
7873
|
/** The next port in rotation, wrapping from the end back to the start. */
|
|
7875
7874
|
take(): number;
|
|
7876
7875
|
}
|
|
@@ -9358,9 +9357,44 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
9358
9357
|
highestInstalled: z.ZodOptional<z.ZodString>;
|
|
9359
9358
|
installed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
9360
9359
|
}, z.core.$strict>>;
|
|
9360
|
+
providerReachability: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
9361
|
+
name: z.ZodString;
|
|
9362
|
+
baseUrl: z.ZodString;
|
|
9363
|
+
ok: z.ZodLiteral<true>;
|
|
9364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9365
|
+
name: z.ZodString;
|
|
9366
|
+
baseUrl: z.ZodString;
|
|
9367
|
+
ok: z.ZodLiteral<false>;
|
|
9368
|
+
message: z.ZodString;
|
|
9369
|
+
}, z.core.$strict>]>>;
|
|
9361
9370
|
}, z.core.$strict>;
|
|
9362
9371
|
type CheckReportJson = z.output<typeof CheckReportJsonSchema>;
|
|
9363
9372
|
|
|
9373
|
+
/** The outcome of authenticating the listener a front-door state file names. */
|
|
9374
|
+
type ListenerVerdict = {
|
|
9375
|
+
readonly ok: true;
|
|
9376
|
+
} | {
|
|
9377
|
+
readonly ok: false;
|
|
9378
|
+
readonly reason: string;
|
|
9379
|
+
};
|
|
9380
|
+
/** A probe that has been started: `verdict` blocks the calling thread until it answers and ends its worker; `cancel` ends the worker of a probe nobody will wait on (idempotent, and harmless after `verdict`). */
|
|
9381
|
+
interface StartedProbe {
|
|
9382
|
+
readonly verdict: () => ListenerVerdict;
|
|
9383
|
+
readonly cancel: () => void;
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
/** Opens one TCP connection to `baseUrl`'s host and port within `timeoutMs` and closes it at once, sending nothing. */
|
|
9387
|
+
type BaseUrlProbe = (baseUrl: string, timeoutMs: number) => ListenerVerdict;
|
|
9388
|
+
/** One base URL to probe, within its own bound. */
|
|
9389
|
+
interface BaseUrlTarget {
|
|
9390
|
+
readonly baseUrl: string;
|
|
9391
|
+
readonly timeoutMs: number;
|
|
9392
|
+
}
|
|
9393
|
+
/** `BaseUrlProbe` for several base URLs: up to `MAX_CONCURRENT_PROBES` distinct targets run together and any more follow in rounds of that many, so the worst case is the longest bound times the number of rounds; verdicts in the order the targets were given. */
|
|
9394
|
+
type BaseUrlBatchProbe = (targets: readonly BaseUrlTarget[]) => readonly ListenerVerdict[];
|
|
9395
|
+
/** Starts a probe of one base URL within `timeoutMs` without waiting for it: `verdict` blocks until it answers, `cancel` ends its worker. */
|
|
9396
|
+
type StartBaseUrlProbe = (baseUrl: string, timeoutMs: number) => StartedProbe;
|
|
9397
|
+
|
|
9364
9398
|
/** Where a pinned Claude Code version came from, strongest first: the launch's own flag, then the environment, then the cascade. */
|
|
9365
9399
|
declare const CLAUDE_VERSION_SOURCES: readonly ["flag", "environment", "cascade"];
|
|
9366
9400
|
type ClaudeVersionSource = (typeof CLAUDE_VERSION_SOURCES)[number];
|
|
@@ -9603,7 +9637,20 @@ interface RunCheckParams {
|
|
|
9603
9637
|
readonly installedClaudeVersions?: readonly string[];
|
|
9604
9638
|
/** Where cached credentials live. Omit to skip reporting a credential cache's age; with it, a block that caches reports whether it holds an entry, how old it is and whether it has expired, never the token. */
|
|
9605
9639
|
readonly credentialCache?: CredentialCacheEnv;
|
|
9640
|
+
/** Opens one connection to the selected http provider's base URL, bounded by its connect timeout. Omit to leave reachability out of the report. */
|
|
9641
|
+
readonly probeBaseUrl?: BaseUrlProbe;
|
|
9606
9642
|
}
|
|
9643
|
+
/** Whether the selected http provider's base URL accepted a connection, as `check` reports it. */
|
|
9644
|
+
type ProviderReachabilityReport = {
|
|
9645
|
+
readonly name: string;
|
|
9646
|
+
readonly baseUrl: string;
|
|
9647
|
+
readonly ok: true;
|
|
9648
|
+
} | {
|
|
9649
|
+
readonly name: string;
|
|
9650
|
+
readonly baseUrl: string;
|
|
9651
|
+
readonly ok: false;
|
|
9652
|
+
readonly message: string;
|
|
9653
|
+
};
|
|
9607
9654
|
/** Everything `agent-shim check` reports about one directory/identity, without touching the farm or spawning anything. */
|
|
9608
9655
|
interface CheckReport {
|
|
9609
9656
|
readonly identityName?: string;
|
|
@@ -9620,6 +9667,8 @@ interface CheckReport {
|
|
|
9620
9667
|
readonly credential: CredentialReport;
|
|
9621
9668
|
/** The Claude Code version a launch here would run, when the installed versions were given. */
|
|
9622
9669
|
readonly claudeVersion?: ClaudeVersionReport;
|
|
9670
|
+
/** Whether the selected provider's base URL accepts a connection, when an http provider is selected and a probe was given. */
|
|
9671
|
+
readonly providerReachability?: ProviderReachabilityReport;
|
|
9623
9672
|
}
|
|
9624
9673
|
/** Which Claude Code version a launch would run: the pin and where it comes from, with whether it is installed, or the highest installed version when nothing pins one. */
|
|
9625
9674
|
interface ClaudeVersionReport {
|
|
@@ -9642,7 +9691,7 @@ declare function formatCheckReport(report: CheckReport): string[];
|
|
|
9642
9691
|
*/
|
|
9643
9692
|
declare function checkReportToJson(report: CheckReport): CheckReportJson;
|
|
9644
9693
|
/**
|
|
9645
|
-
* Whether a report carries anything `check --strict` fails on: a resolver diagnostic of warning or error severity, an ambiguous `history/projects/` encoding, an ambient credential a launch would refuse,
|
|
9694
|
+
* Whether a report carries anything `check --strict` fails on: a resolver diagnostic of warning or error severity, an ambiguous `history/projects/` encoding, an ambient credential a launch would refuse, a selected provider a launch could not use, or one whose base URL accepts no connection. Informational diagnostics and the settings-exposure advisory (names and counts only, for a person to review) never fail it.
|
|
9646
9695
|
*/
|
|
9647
9696
|
declare function checkReportHasWarnings(report: CheckReport): boolean;
|
|
9648
9697
|
/** What `collectCheckReport` needs from its caller. */
|
|
@@ -10171,14 +10220,6 @@ interface DoctorHeadroomAllowlist {
|
|
|
10171
10220
|
readonly fileProblem: AllowlistFileProblem | undefined;
|
|
10172
10221
|
}
|
|
10173
10222
|
|
|
10174
|
-
/** The outcome of authenticating the listener a front-door state file names. */
|
|
10175
|
-
type ListenerVerdict = {
|
|
10176
|
-
readonly ok: true;
|
|
10177
|
-
} | {
|
|
10178
|
-
readonly ok: false;
|
|
10179
|
-
readonly reason: string;
|
|
10180
|
-
};
|
|
10181
|
-
|
|
10182
10223
|
/** One listener of the front door as `doctor` and `frontdoor status` read it: whether it accepted within the probe's bound, and how long the answer took on this machine now. */
|
|
10183
10224
|
interface FrontDoorListenerReading {
|
|
10184
10225
|
/** Which listener, and so which sessions it cuts off when it does not accept: `provider` carries provider sessions, `connect` carries every plain OAuth session. */
|
|
@@ -10322,6 +10363,8 @@ interface RunDoctorParams {
|
|
|
10322
10363
|
readonly providers: readonly DoctorProviderInput[];
|
|
10323
10364
|
/** The recorded former names of renamed providers. Omit to leave them out of the findings. */
|
|
10324
10365
|
readonly providerAliases?: ProviderAliases;
|
|
10366
|
+
/** Probes the base URLs of every valid http provider, up to `MAX_CONCURRENT_PROBES` distinct targets together and any more in rounds of that many, one connection each, each bounded by its provider's connect timeout. Omit to leave reachability out of the findings; with it, a valid http provider whose base URL accepts no connection fails, naming the URL. */
|
|
10367
|
+
readonly probeBaseUrls?: BaseUrlBatchProbe;
|
|
10325
10368
|
/** The journals of identity renames that were left unfinished, and the files in their directory that are not journals. Omit to leave renames out of the findings. */
|
|
10326
10369
|
readonly renameJournals?: RenameJournalListing;
|
|
10327
10370
|
/** The entries of the identities directory that cannot be reached (a symlink the filesystem would not follow, or a directory nobody can enter), which are not counted as identities. Omit to leave them out of the findings. */
|
|
@@ -10510,6 +10553,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10510
10553
|
kind: zod.ZodLiteral<"identity">;
|
|
10511
10554
|
name: zod.ZodString;
|
|
10512
10555
|
value: zod.ZodObject<{
|
|
10556
|
+
agent: zod.ZodOptional<zod.ZodEnum<{
|
|
10557
|
+
claude: "claude";
|
|
10558
|
+
codex: "codex";
|
|
10559
|
+
}>>;
|
|
10513
10560
|
name: zod.ZodString;
|
|
10514
10561
|
label: zod.ZodOptional<zod.ZodString>;
|
|
10515
10562
|
defaultConfigProfile: zod.ZodOptional<zod.ZodString>;
|
|
@@ -10619,6 +10666,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10619
10666
|
kind: zod.ZodLiteral<"identity">;
|
|
10620
10667
|
name: zod.ZodString;
|
|
10621
10668
|
value: zod.ZodObject<{
|
|
10669
|
+
agent: zod.ZodOptional<zod.ZodEnum<{
|
|
10670
|
+
claude: "claude";
|
|
10671
|
+
codex: "codex";
|
|
10672
|
+
}>>;
|
|
10622
10673
|
name: zod.ZodString;
|
|
10623
10674
|
label: zod.ZodOptional<zod.ZodString>;
|
|
10624
10675
|
defaultConfigProfile: zod.ZodOptional<zod.ZodString>;
|
|
@@ -10698,6 +10749,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10698
10749
|
kind: zod.ZodLiteral<"profile">;
|
|
10699
10750
|
name: zod.ZodString;
|
|
10700
10751
|
value: zod.ZodObject<{
|
|
10752
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
10701
10753
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
10702
10754
|
value: zod.ZodBoolean;
|
|
10703
10755
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -10773,7 +10825,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10773
10825
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
10774
10826
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
10775
10827
|
}, zod_v4_core.$strict>]>>>;
|
|
10776
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
10777
10828
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
10778
10829
|
pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
|
|
10779
10830
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -10862,10 +10913,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10862
10913
|
}>>;
|
|
10863
10914
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
10864
10915
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
10916
|
+
account: "account";
|
|
10865
10917
|
identity: "identity";
|
|
10866
10918
|
model: "model";
|
|
10867
10919
|
route: "route";
|
|
10868
|
-
account: "account";
|
|
10869
10920
|
provider: "provider";
|
|
10870
10921
|
version: "version";
|
|
10871
10922
|
headroom: "headroom";
|
|
@@ -11422,6 +11473,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11422
11473
|
kind: zod.ZodLiteral<"profile">;
|
|
11423
11474
|
name: zod.ZodString;
|
|
11424
11475
|
value: zod.ZodObject<{
|
|
11476
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
11425
11477
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
11426
11478
|
value: zod.ZodBoolean;
|
|
11427
11479
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11497,7 +11549,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11497
11549
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
11498
11550
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
11499
11551
|
}, zod_v4_core.$strict>]>>>;
|
|
11500
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
11501
11552
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
11502
11553
|
pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
|
|
11503
11554
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11586,10 +11637,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11586
11637
|
}>>;
|
|
11587
11638
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
11588
11639
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
11640
|
+
account: "account";
|
|
11589
11641
|
identity: "identity";
|
|
11590
11642
|
model: "model";
|
|
11591
11643
|
route: "route";
|
|
11592
|
-
account: "account";
|
|
11593
11644
|
provider: "provider";
|
|
11594
11645
|
version: "version";
|
|
11595
11646
|
headroom: "headroom";
|
|
@@ -12786,10 +12837,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
12786
12837
|
}>>;
|
|
12787
12838
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
12788
12839
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
12840
|
+
account: "account";
|
|
12789
12841
|
identity: "identity";
|
|
12790
12842
|
model: "model";
|
|
12791
12843
|
route: "route";
|
|
12792
|
-
account: "account";
|
|
12793
12844
|
provider: "provider";
|
|
12794
12845
|
version: "version";
|
|
12795
12846
|
headroom: "headroom";
|
|
@@ -13567,10 +13618,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13567
13618
|
}>>;
|
|
13568
13619
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
13569
13620
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
13621
|
+
account: "account";
|
|
13570
13622
|
identity: "identity";
|
|
13571
13623
|
model: "model";
|
|
13572
13624
|
route: "route";
|
|
13573
|
-
account: "account";
|
|
13574
13625
|
provider: "provider";
|
|
13575
13626
|
version: "version";
|
|
13576
13627
|
headroom: "headroom";
|
|
@@ -14540,10 +14591,10 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14540
14591
|
}>>;
|
|
14541
14592
|
layout: z.ZodOptional<z.ZodObject<{
|
|
14542
14593
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
14594
|
+
account: "account";
|
|
14543
14595
|
identity: "identity";
|
|
14544
14596
|
model: "model";
|
|
14545
14597
|
route: "route";
|
|
14546
|
-
account: "account";
|
|
14547
14598
|
provider: "provider";
|
|
14548
14599
|
version: "version";
|
|
14549
14600
|
headroom: "headroom";
|
|
@@ -15191,6 +15242,8 @@ interface PrepareLaunchParams {
|
|
|
15191
15242
|
readonly frontdoor?: FrontDoorPort;
|
|
15192
15243
|
/** Resolves credential blocks (a provider's, or the launching identity's own). Omitted by a caller that cannot read secret files or run commands; a launch that needs a credential is then refused rather than started without it. */
|
|
15193
15244
|
readonly credentials?: CredentialPort;
|
|
15245
|
+
/** Starts one connection to an http provider's base URL, bounded by the provider's connect timeout, and returns before it is answered. With it, a launch on an http provider whose base URL accepts no connection carries a warning naming the URL after its report, and goes ahead; a caller that cannot open connections omits it and reports nothing. */
|
|
15246
|
+
readonly startBaseUrlProbe?: StartBaseUrlProbe;
|
|
15194
15247
|
/** True when the user was asked on a terminal whether to create the selected configuration profile and chose to launch without it. Without that explicit choice, a selected profile with no file is refused rather than silently skipped. */
|
|
15195
15248
|
readonly allowMissingConfigProfile?: boolean;
|
|
15196
15249
|
/** The user-global `update.mode`, resolved from the same global config the launcher already loads. Absent means `off`, and `off` runs no launch-time update check at all. */
|
|
@@ -15401,10 +15454,10 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15401
15454
|
}>>;
|
|
15402
15455
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
15403
15456
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
15457
|
+
account: "account";
|
|
15404
15458
|
identity: "identity";
|
|
15405
15459
|
model: "model";
|
|
15406
15460
|
route: "route";
|
|
15407
|
-
account: "account";
|
|
15408
15461
|
provider: "provider";
|
|
15409
15462
|
version: "version";
|
|
15410
15463
|
headroom: "headroom";
|
|
@@ -16293,6 +16346,12 @@ declare function formatFrontDoorStatus(status: FrontDoorStatus, caCertPath: stri
|
|
|
16293
16346
|
*
|
|
16294
16347
|
* This router is reads only; the door's writes live in routers of their own so each is a decision of its own (`lifecycleApi.ts` for the restart and the update check, `codexApi.ts` for the Codex sign-in, `configApi.ts` for identity, configuration-profile, provider, pool and directory-rule management). `createDoorApiNodeHandler` mounts these routers and the door-wide `events.subscribe` router beside the Remote Control router on the one prefix the provider listener already serves, so a consumer dials one address with one token for the whole door.
|
|
16295
16348
|
*/
|
|
16349
|
+
/**
|
|
16350
|
+
* Thrown by a `checkReport` or `doctorReport` dependency that cannot collect its report where it runs. `check.run` and `doctor.run` answer it as `SERVICE_UNAVAILABLE` with its message, so a caller is told what to do instead of reading a fault of the door.
|
|
16351
|
+
*/
|
|
16352
|
+
declare class DoorReportUnavailableError extends Error {
|
|
16353
|
+
constructor(report: "check" | "doctor");
|
|
16354
|
+
}
|
|
16296
16355
|
/** Everything the control-plane procedures need, injected so they serve against fakes in tests exactly as the door's real wiring serves against this machine. */
|
|
16297
16356
|
interface ControlApiDeps {
|
|
16298
16357
|
/** This generation's control token: the same value the Remote Control router checks, since one mount serves both. */
|
|
@@ -16854,6 +16913,16 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
16854
16913
|
highestInstalled: zod.ZodOptional<zod.ZodString>;
|
|
16855
16914
|
installed: zod.ZodReadonly<zod.ZodArray<zod.ZodString>>;
|
|
16856
16915
|
}, zod_v4_core.$strict>>;
|
|
16916
|
+
providerReachability: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
16917
|
+
name: zod.ZodString;
|
|
16918
|
+
baseUrl: zod.ZodString;
|
|
16919
|
+
ok: zod.ZodLiteral<true>;
|
|
16920
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
16921
|
+
name: zod.ZodString;
|
|
16922
|
+
baseUrl: zod.ZodString;
|
|
16923
|
+
ok: zod.ZodLiteral<false>;
|
|
16924
|
+
message: zod.ZodString;
|
|
16925
|
+
}, zod_v4_core.$strict>]>>;
|
|
16857
16926
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
16858
16927
|
};
|
|
16859
16928
|
doctor: {
|
|
@@ -17131,10 +17200,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17131
17200
|
}>>;
|
|
17132
17201
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
17133
17202
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
17203
|
+
account: "account";
|
|
17134
17204
|
identity: "identity";
|
|
17135
17205
|
model: "model";
|
|
17136
17206
|
route: "route";
|
|
17137
|
-
account: "account";
|
|
17138
17207
|
provider: "provider";
|
|
17139
17208
|
version: "version";
|
|
17140
17209
|
headroom: "headroom";
|
|
@@ -17750,6 +17819,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17750
17819
|
kind: zod.ZodLiteral<"identity">;
|
|
17751
17820
|
name: zod.ZodString;
|
|
17752
17821
|
value: zod.ZodObject<{
|
|
17822
|
+
agent: zod.ZodOptional<zod.ZodEnum<{
|
|
17823
|
+
claude: "claude";
|
|
17824
|
+
codex: "codex";
|
|
17825
|
+
}>>;
|
|
17753
17826
|
name: zod.ZodString;
|
|
17754
17827
|
label: zod.ZodOptional<zod.ZodString>;
|
|
17755
17828
|
defaultConfigProfile: zod.ZodOptional<zod.ZodString>;
|
|
@@ -17859,6 +17932,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17859
17932
|
kind: zod.ZodLiteral<"identity">;
|
|
17860
17933
|
name: zod.ZodString;
|
|
17861
17934
|
value: zod.ZodObject<{
|
|
17935
|
+
agent: zod.ZodOptional<zod.ZodEnum<{
|
|
17936
|
+
claude: "claude";
|
|
17937
|
+
codex: "codex";
|
|
17938
|
+
}>>;
|
|
17862
17939
|
name: zod.ZodString;
|
|
17863
17940
|
label: zod.ZodOptional<zod.ZodString>;
|
|
17864
17941
|
defaultConfigProfile: zod.ZodOptional<zod.ZodString>;
|
|
@@ -17938,6 +18015,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17938
18015
|
kind: zod.ZodLiteral<"profile">;
|
|
17939
18016
|
name: zod.ZodString;
|
|
17940
18017
|
value: zod.ZodObject<{
|
|
18018
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
17941
18019
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
17942
18020
|
value: zod.ZodBoolean;
|
|
17943
18021
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -18013,7 +18091,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18013
18091
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
18014
18092
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
18015
18093
|
}, zod_v4_core.$strict>]>>>;
|
|
18016
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
18017
18094
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
18018
18095
|
pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
|
|
18019
18096
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -18102,10 +18179,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18102
18179
|
}>>;
|
|
18103
18180
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
18104
18181
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
18182
|
+
account: "account";
|
|
18105
18183
|
identity: "identity";
|
|
18106
18184
|
model: "model";
|
|
18107
18185
|
route: "route";
|
|
18108
|
-
account: "account";
|
|
18109
18186
|
provider: "provider";
|
|
18110
18187
|
version: "version";
|
|
18111
18188
|
headroom: "headroom";
|
|
@@ -18662,6 +18739,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18662
18739
|
kind: zod.ZodLiteral<"profile">;
|
|
18663
18740
|
name: zod.ZodString;
|
|
18664
18741
|
value: zod.ZodObject<{
|
|
18742
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
18665
18743
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
18666
18744
|
value: zod.ZodBoolean;
|
|
18667
18745
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -18737,7 +18815,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18737
18815
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
18738
18816
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
18739
18817
|
}, zod_v4_core.$strict>]>>>;
|
|
18740
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
18741
18818
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
18742
18819
|
pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
|
|
18743
18820
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -18826,10 +18903,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18826
18903
|
}>>;
|
|
18827
18904
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
18828
18905
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
18906
|
+
account: "account";
|
|
18829
18907
|
identity: "identity";
|
|
18830
18908
|
model: "model";
|
|
18831
18909
|
route: "route";
|
|
18832
|
-
account: "account";
|
|
18833
18910
|
provider: "provider";
|
|
18834
18911
|
version: "version";
|
|
18835
18912
|
headroom: "headroom";
|
|
@@ -20026,10 +20103,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20026
20103
|
}>>;
|
|
20027
20104
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
20028
20105
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
20106
|
+
account: "account";
|
|
20029
20107
|
identity: "identity";
|
|
20030
20108
|
model: "model";
|
|
20031
20109
|
route: "route";
|
|
20032
|
-
account: "account";
|
|
20033
20110
|
provider: "provider";
|
|
20034
20111
|
version: "version";
|
|
20035
20112
|
headroom: "headroom";
|
|
@@ -20807,10 +20884,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20807
20884
|
}>>;
|
|
20808
20885
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
20809
20886
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
20887
|
+
account: "account";
|
|
20810
20888
|
identity: "identity";
|
|
20811
20889
|
model: "model";
|
|
20812
20890
|
route: "route";
|
|
20813
|
-
account: "account";
|
|
20814
20891
|
provider: "provider";
|
|
20815
20892
|
version: "version";
|
|
20816
20893
|
headroom: "headroom";
|
|
@@ -21932,6 +22009,16 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21932
22009
|
highestInstalled: zod.ZodOptional<zod.ZodString>;
|
|
21933
22010
|
installed: zod.ZodReadonly<zod.ZodArray<zod.ZodString>>;
|
|
21934
22011
|
}, zod_v4_core.$strict>>;
|
|
22012
|
+
providerReachability: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
22013
|
+
name: zod.ZodString;
|
|
22014
|
+
baseUrl: zod.ZodString;
|
|
22015
|
+
ok: zod.ZodLiteral<true>;
|
|
22016
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
22017
|
+
name: zod.ZodString;
|
|
22018
|
+
baseUrl: zod.ZodString;
|
|
22019
|
+
ok: zod.ZodLiteral<false>;
|
|
22020
|
+
message: zod.ZodString;
|
|
22021
|
+
}, zod_v4_core.$strict>]>>;
|
|
21935
22022
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
21936
22023
|
};
|
|
21937
22024
|
doctor: {
|
|
@@ -22459,6 +22546,10 @@ declare const ConfigIdentityAddOutputSchema: z.ZodObject<{
|
|
|
22459
22546
|
kind: z.ZodLiteral<"identity">;
|
|
22460
22547
|
name: z.ZodString;
|
|
22461
22548
|
value: z.ZodObject<{
|
|
22549
|
+
agent: z.ZodOptional<z.ZodEnum<{
|
|
22550
|
+
claude: "claude";
|
|
22551
|
+
codex: "codex";
|
|
22552
|
+
}>>;
|
|
22462
22553
|
name: z.ZodString;
|
|
22463
22554
|
label: z.ZodOptional<z.ZodString>;
|
|
22464
22555
|
defaultConfigProfile: z.ZodOptional<z.ZodString>;
|
|
@@ -22570,6 +22661,10 @@ declare const ConfigIdentitySetOutputSchema: z.ZodObject<{
|
|
|
22570
22661
|
kind: z.ZodLiteral<"identity">;
|
|
22571
22662
|
name: z.ZodString;
|
|
22572
22663
|
value: z.ZodObject<{
|
|
22664
|
+
agent: z.ZodOptional<z.ZodEnum<{
|
|
22665
|
+
claude: "claude";
|
|
22666
|
+
codex: "codex";
|
|
22667
|
+
}>>;
|
|
22573
22668
|
name: z.ZodString;
|
|
22574
22669
|
label: z.ZodOptional<z.ZodString>;
|
|
22575
22670
|
defaultConfigProfile: z.ZodOptional<z.ZodString>;
|
|
@@ -22647,6 +22742,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
22647
22742
|
kind: z.ZodLiteral<"profile">;
|
|
22648
22743
|
name: z.ZodString;
|
|
22649
22744
|
value: z.ZodObject<{
|
|
22745
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22650
22746
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
22651
22747
|
value: z.ZodBoolean;
|
|
22652
22748
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -22722,7 +22818,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
22722
22818
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
22723
22819
|
}, z.core.$strip>], "kind">]>;
|
|
22724
22820
|
}, z.core.$strict>]>>>;
|
|
22725
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22726
22821
|
models: z.ZodOptional<z.ZodObject<{
|
|
22727
22822
|
pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
|
|
22728
22823
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -22811,10 +22906,10 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
22811
22906
|
}>>;
|
|
22812
22907
|
layout: z.ZodOptional<z.ZodObject<{
|
|
22813
22908
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
22909
|
+
account: "account";
|
|
22814
22910
|
identity: "identity";
|
|
22815
22911
|
model: "model";
|
|
22816
22912
|
route: "route";
|
|
22817
|
-
account: "account";
|
|
22818
22913
|
provider: "provider";
|
|
22819
22914
|
version: "version";
|
|
22820
22915
|
headroom: "headroom";
|
|
@@ -23373,6 +23468,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23373
23468
|
kind: z.ZodLiteral<"profile">;
|
|
23374
23469
|
name: z.ZodString;
|
|
23375
23470
|
value: z.ZodObject<{
|
|
23471
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23376
23472
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
23377
23473
|
value: z.ZodBoolean;
|
|
23378
23474
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -23448,7 +23544,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23448
23544
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
23449
23545
|
}, z.core.$strip>], "kind">]>;
|
|
23450
23546
|
}, z.core.$strict>]>>>;
|
|
23451
|
-
description: z.ZodOptional<z.ZodString>;
|
|
23452
23547
|
models: z.ZodOptional<z.ZodObject<{
|
|
23453
23548
|
pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
|
|
23454
23549
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -23537,10 +23632,10 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23537
23632
|
}>>;
|
|
23538
23633
|
layout: z.ZodOptional<z.ZodObject<{
|
|
23539
23634
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
23635
|
+
account: "account";
|
|
23540
23636
|
identity: "identity";
|
|
23541
23637
|
model: "model";
|
|
23542
23638
|
route: "route";
|
|
23543
|
-
account: "account";
|
|
23544
23639
|
provider: "provider";
|
|
23545
23640
|
version: "version";
|
|
23546
23641
|
headroom: "headroom";
|
|
@@ -24739,10 +24834,10 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
24739
24834
|
}>>;
|
|
24740
24835
|
layout: z.ZodOptional<z.ZodObject<{
|
|
24741
24836
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
24837
|
+
account: "account";
|
|
24742
24838
|
identity: "identity";
|
|
24743
24839
|
model: "model";
|
|
24744
24840
|
route: "route";
|
|
24745
|
-
account: "account";
|
|
24746
24841
|
provider: "provider";
|
|
24747
24842
|
version: "version";
|
|
24748
24843
|
headroom: "headroom";
|
|
@@ -25522,10 +25617,10 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
25522
25617
|
}>>;
|
|
25523
25618
|
layout: z.ZodOptional<z.ZodObject<{
|
|
25524
25619
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
25620
|
+
account: "account";
|
|
25525
25621
|
identity: "identity";
|
|
25526
25622
|
model: "model";
|
|
25527
25623
|
route: "route";
|
|
25528
|
-
account: "account";
|
|
25529
25624
|
provider: "provider";
|
|
25530
25625
|
version: "version";
|
|
25531
25626
|
headroom: "headroom";
|
|
@@ -26563,10 +26658,10 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26563
26658
|
}>>;
|
|
26564
26659
|
layout: z.ZodOptional<z.ZodObject<{
|
|
26565
26660
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
26661
|
+
account: "account";
|
|
26566
26662
|
identity: "identity";
|
|
26567
26663
|
model: "model";
|
|
26568
26664
|
route: "route";
|
|
26569
|
-
account: "account";
|
|
26570
26665
|
provider: "provider";
|
|
26571
26666
|
version: "version";
|
|
26572
26667
|
headroom: "headroom";
|
|
@@ -28154,6 +28249,8 @@ interface AddProviderInput {
|
|
|
28154
28249
|
readonly pickerModels?: readonly PickerModel[];
|
|
28155
28250
|
/** Opt an http provider into listing its own model catalogue in `/model`. */
|
|
28156
28251
|
readonly catalogue?: ProviderCatalogue;
|
|
28252
|
+
/** An http provider's bound on opening a connection to its base URL, in milliseconds; absent keeps the derived default. */
|
|
28253
|
+
readonly connectTimeoutMs?: number;
|
|
28157
28254
|
readonly codex?: CodexProviderConfig;
|
|
28158
28255
|
readonly antigravity?: AntigravityProviderConfig;
|
|
28159
28256
|
}
|
|
@@ -28183,6 +28280,8 @@ interface UpdateProviderInput {
|
|
|
28183
28280
|
readonly unsetPickerModels?: readonly string[];
|
|
28184
28281
|
/** The provider's whole new catalogue setting, or false to remove it; undefined leaves the existing one. Applies only to an http provider. */
|
|
28185
28282
|
readonly catalogue?: ProviderCatalogue | false;
|
|
28283
|
+
/** A new connect timeout in milliseconds, or false to go back to the derived default; undefined leaves the existing one. Applies only to an http provider. */
|
|
28284
|
+
readonly connectTimeoutMs?: number | false;
|
|
28186
28285
|
/** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
28187
28286
|
readonly codex?: CodexProviderConfig;
|
|
28188
28287
|
/** Merged over an antigravity provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
@@ -28340,12 +28439,16 @@ interface PrepareClaudeLaunchOptions {
|
|
|
28340
28439
|
/** The path of the agent-shim executable, used to start the front door and headroom daemons when the launch routes through them. Without it the daemons start through the command line bundle of this same package (`agentShimCliPath`), run with the Node running this process; pass it to use another build or a compiled binary. */
|
|
28341
28440
|
readonly agentShim?: string;
|
|
28342
28441
|
}
|
|
28442
|
+
/** What `prepareClaudeLaunch` returns: the launch's plan, and the warnings preparing it raised (a provider whose base URL accepts no connection, a quota the front door last saw, an unreadable login file), which the command line prints to standard error and a library host decides what to do with. */
|
|
28443
|
+
type ClaudeLaunchPlan = LaunchPlan & {
|
|
28444
|
+
readonly warnings: readonly string[];
|
|
28445
|
+
};
|
|
28343
28446
|
/**
|
|
28344
28447
|
* Resolves a launch for `options.cwd` on this machine and returns what to spawn, so another tool can start `claude` as an identity, through a provider, with the same sharing rules the command line applies, without shelling out. It performs the effects the child depends on: the identity's farm is resynced, and the front door and headroom are brought up and this process registered with them. Call `release` on the plan when the child has exited.
|
|
28345
28448
|
*
|
|
28346
|
-
* A refused launch throws `LaunchRefusedError` carrying the launcher's own message. Interactive offers (creating a missing identity or profile on a terminal) belong to the command line and are not made here.
|
|
28449
|
+
* A refused launch throws `LaunchRefusedError` carrying the launcher's own message. A launch that proceeds despite a problem it noticed (an unreachable provider among them) returns it in the plan's `warnings`. Interactive offers (creating a missing identity or profile on a terminal) belong to the command line and are not made here.
|
|
28347
28450
|
*/
|
|
28348
|
-
declare function prepareClaudeLaunch(options: PrepareClaudeLaunchOptions):
|
|
28451
|
+
declare function prepareClaudeLaunch(options: PrepareClaudeLaunchOptions): ClaudeLaunchPlan;
|
|
28349
28452
|
/** What `resolveClaudeLaunch` needs from its caller: the launch `prepareClaudeLaunch` takes, less the daemon executable, since a resolution starts no daemon. */
|
|
28350
28453
|
type ResolveClaudeLaunchOptions = Omit<PrepareClaudeLaunchOptions, "agentShim">;
|
|
28351
28454
|
/** A launch's resolution and the warnings resolving it raised (a quota the front door last saw, a pool member whose identity is gone). */
|
|
@@ -28418,12 +28521,15 @@ declare function poolSelectedByLaunch(options: Pick<PrepareClaudeLaunchOptions,
|
|
|
28418
28521
|
*/
|
|
28419
28522
|
declare function refreshLaunchPoolUsage(options: RefreshLaunchPoolUsageOptions): Promise<void>;
|
|
28420
28523
|
|
|
28421
|
-
/** What `runClaudeLaunch` needs: the launch to run,
|
|
28422
|
-
|
|
28524
|
+
/** What `runClaudeLaunch` needs: the launch to run, the stale-usage refresh's own options, and where warnings go. */
|
|
28525
|
+
interface RunClaudeLaunchOptions extends RefreshLaunchPoolUsageOptions {
|
|
28526
|
+
/** Receives each warning preparing the launch raised, before the child starts; when absent each is written to standard error, as the command line does. */
|
|
28527
|
+
readonly onWarning?: (message: string) => void;
|
|
28528
|
+
}
|
|
28423
28529
|
/**
|
|
28424
28530
|
* Runs one `claude` launch for `options.cwd` on this machine as `agent-shim run` does, and resolves to the child's exit code: a pool the launch selects first has its stale usage refreshed (`refreshLaunchPoolUsage`) so the pick ranks on current figures, then the launch is prepared (`prepareClaudeLaunch`), the child runs with the terminal's standard streams until it ends, and the launch's front door and headroom registrations are released whether it exited, was signalled (`128` plus the signal number) or could not be spawned. It does not exit this process, so the host decides what to do with the code.
|
|
28425
28531
|
*
|
|
28426
|
-
* Rejects with `LaunchRefusedError` before anything is spawned when the launch is refused, and with the spawn failure, after releasing, when the child could not be started. Interactive offers (creating a missing identity or profile) and the launch-time update notice belong to the command line and are not made here.
|
|
28532
|
+
* Rejects with `LaunchRefusedError` before anything is spawned when the launch is refused, and with the spawn failure, after releasing, when the child could not be started. Warnings the launch raised (an unreachable provider among them) go to `onWarning`, else standard error. Interactive offers (creating a missing identity or profile) and the launch-time update notice belong to the command line and are not made here.
|
|
28427
28533
|
*/
|
|
28428
28534
|
declare function runClaudeLaunch(options: RunClaudeLaunchOptions): Promise<number>;
|
|
28429
28535
|
|
|
@@ -28450,5 +28556,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
|
|
|
28450
28556
|
*/
|
|
28451
28557
|
declare function agentShimCliPath(distDir?: string | undefined): string;
|
|
28452
28558
|
|
|
28453
|
-
export { AMBIENT_CREDENTIAL_VARS, AgentKindSchema, AgentMetaSchema, AgentNodeSchema, AgentTreesListInputSchema, AgentTreesListOutputSchema, AgentTreesShowInputSchema, AgentTreesShowOutputSchema, 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, ConfigIdentityAddInputSchema, 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, DuplicateIdentityNameError, 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, LIVE_TASK_CAP, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, LiveTaskSchema, MergedAgentNodeSchema, MergedAgentTreeSchema, 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_GOAL_CLEAR_WORDS, RC_GOAL_CONDITION_MAX_CHARS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_RETIRE_REASONS, 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_SESSION_COMMAND_MAX_WAIT_MS, RC_SESSION_COMMAND_VERIFIED_VERSIONS, RC_SESSION_END_REASONS, RC_SESSION_EVENT_LOG_CAPACITY, 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, RcSessionEventCursorExpiredError, RcSessionEventSchema, RcSessionEventsPageInputSchema, RcSessionEventsReadInputSchema, RcSessionEventsReadOutputSchema, RcSessionEventsStreamInputSchema, RcSessionTransitionSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageChangeEventSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, WorkflowRunSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, applyAgentTaskEvent, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, changePool, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createLiveSessionRegistry, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcClaudeCodeVersions, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionCommands, createRcSessionEventLog, createRcSessionEventsApiRouter, createRcSessionRegistryReader, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, followRcSessionEvents, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, identityIdOf, identityNameOf, identityRecords, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, launchRequiredUpstreams, listDirectoryRules, listIdentities, listProfiles, listProviders, listSessions, listUsageSnapshots, locateSession, matchBranch, mergeLiveTasks, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcGoalOutput, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcLocalCommandAnswerOf, rcManualCompactBoundaryOf, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcStatusWithRegistry, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readCodexAccount, readCodexRateLimits, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readIdentityById, readIdentityRecords, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readSessionAgentTree, readUsageSnapshot, realCodexAppServerPort, realConnectCertStore, realConnectEffects, realMemberProviderResolver, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, realSessionFs, 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, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, withRegisteredSessionFacts, writeDirectoryRules };
|
|
28454
|
-
export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, 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, IdentityNameRead, IdentityRecord, IdentityRecordsPort, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveSessionRegistry, LiveSessionRegistryPorts, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolChange, PoolMember, PoolPickReport, PoolPolicy, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, ProviderOf, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcClaudeCodeVersions, RcCompactOptions, RcCompactReport, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcGoal, RcGoalClearReport, RcGoalReport, RcGoalSetReport, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingQuestion, RcPendingRequestSummary, RcPendingRetireReason, RcPermissionMode, RcPresenceAnswer, RcQuestionOption, RcQuestionSelection, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcRegisteredSession, RcRegistryIdentity, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionCommandDeps, RcSessionCommandOptions, RcSessionCommandResult, RcSessionCommandRoute, RcSessionCommands, RcSessionEndReason, RcSessionEvent, RcSessionEventLog, RcSessionEventLogDeps, RcSessionEventsApiDeps, RcSessionEventsApiRouter, RcSessionEventsRead, RcSessionEventsReadInput, RcSessionRegistryDeps, RcSessionRegistryFs, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcSessionTransition, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcSupervisedTarget, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RealMemberProviderParams, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResetRow, ResetSchedule, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SessionAgentTree, SessionCommandFs, SessionListFilters, SessionRef, SessionSummary, SessionView, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, TaskItem, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation, WorkflowRun };
|
|
28559
|
+
export { AMBIENT_CREDENTIAL_VARS, AgentKindSchema, AgentMetaSchema, AgentNodeSchema, AgentTreesListInputSchema, AgentTreesListOutputSchema, AgentTreesShowInputSchema, AgentTreesShowOutputSchema, 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, ConfigIdentityAddInputSchema, 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, DoorReportUnavailableError, DuplicateIdentityNameError, 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, LIVE_TASK_CAP, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, LiveTaskSchema, MergedAgentNodeSchema, MergedAgentTreeSchema, 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_GOAL_CLEAR_WORDS, RC_GOAL_CONDITION_MAX_CHARS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_RETIRE_REASONS, 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_SESSION_COMMAND_MAX_WAIT_MS, RC_SESSION_COMMAND_VERIFIED_VERSIONS, RC_SESSION_END_REASONS, RC_SESSION_EVENT_LOG_CAPACITY, 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, RcSessionEventCursorExpiredError, RcSessionEventSchema, RcSessionEventsPageInputSchema, RcSessionEventsReadInputSchema, RcSessionEventsReadOutputSchema, RcSessionEventsStreamInputSchema, RcSessionTransitionSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageChangeEventSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, WorkflowRunSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, applyAgentTaskEvent, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, changePool, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createLiveSessionRegistry, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcClaudeCodeVersions, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionCommands, createRcSessionEventLog, createRcSessionEventsApiRouter, createRcSessionRegistryReader, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, followRcSessionEvents, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, identityIdOf, identityNameOf, identityRecords, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, launchRequiredUpstreams, listDirectoryRules, listIdentities, listProfiles, listProviders, listSessions, listUsageSnapshots, locateSession, matchBranch, mergeLiveTasks, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcGoalOutput, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcLocalCommandAnswerOf, rcManualCompactBoundaryOf, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcStatusWithRegistry, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readCodexAccount, readCodexRateLimits, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readIdentityById, readIdentityRecords, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readSessionAgentTree, readUsageSnapshot, realCodexAppServerPort, realConnectCertStore, realConnectEffects, realMemberProviderResolver, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, realSessionFs, 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, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, withRegisteredSessionFacts, writeDirectoryRules };
|
|
28560
|
+
export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchPlan, 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, IdentityNameRead, IdentityRecord, IdentityRecordsPort, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveSessionRegistry, LiveSessionRegistryPorts, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolChange, PoolMember, PoolPickReport, PoolPolicy, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, ProviderOf, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcClaudeCodeVersions, RcCompactOptions, RcCompactReport, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcGoal, RcGoalClearReport, RcGoalReport, RcGoalSetReport, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingQuestion, RcPendingRequestSummary, RcPendingRetireReason, RcPermissionMode, RcPresenceAnswer, RcQuestionOption, RcQuestionSelection, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcRegisteredSession, RcRegistryIdentity, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionCommandDeps, RcSessionCommandOptions, RcSessionCommandResult, RcSessionCommandRoute, RcSessionCommands, RcSessionEndReason, RcSessionEvent, RcSessionEventLog, RcSessionEventLogDeps, RcSessionEventsApiDeps, RcSessionEventsApiRouter, RcSessionEventsRead, RcSessionEventsReadInput, RcSessionRegistryDeps, RcSessionRegistryFs, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcSessionTransition, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcSupervisedTarget, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RealMemberProviderParams, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResetRow, ResetSchedule, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SessionAgentTree, SessionCommandFs, SessionListFilters, SessionRef, SessionSummary, SessionView, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, TaskItem, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation, WorkflowRun };
|