claude-use 12.0.1 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +734 -298
- package/dist/index.cjs +711 -372
- package/dist/index.mjs +695 -357
- package/dist/types/index.d.ts +123 -14
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -9097,6 +9098,7 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
9097
9098
|
kind: z.ZodLiteral<"pay-per-use">;
|
|
9098
9099
|
tier: z.ZodOptional<z.ZodString>;
|
|
9099
9100
|
}, z.core.$strict>]>;
|
|
9101
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9100
9102
|
reasons: z.ZodArray<z.ZodString>;
|
|
9101
9103
|
}, z.core.$strict>>;
|
|
9102
9104
|
missing: z.ZodArray<z.ZodString>;
|
|
@@ -9357,9 +9359,30 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
9357
9359
|
highestInstalled: z.ZodOptional<z.ZodString>;
|
|
9358
9360
|
installed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
9359
9361
|
}, z.core.$strict>>;
|
|
9362
|
+
providerReachability: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
9363
|
+
name: z.ZodString;
|
|
9364
|
+
baseUrl: z.ZodString;
|
|
9365
|
+
ok: z.ZodLiteral<true>;
|
|
9366
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9367
|
+
name: z.ZodString;
|
|
9368
|
+
baseUrl: z.ZodString;
|
|
9369
|
+
ok: z.ZodLiteral<false>;
|
|
9370
|
+
message: z.ZodString;
|
|
9371
|
+
}, z.core.$strict>]>>;
|
|
9360
9372
|
}, z.core.$strict>;
|
|
9361
9373
|
type CheckReportJson = z.output<typeof CheckReportJsonSchema>;
|
|
9362
9374
|
|
|
9375
|
+
/** The outcome of authenticating the listener a front-door state file names. */
|
|
9376
|
+
type ListenerVerdict = {
|
|
9377
|
+
readonly ok: true;
|
|
9378
|
+
} | {
|
|
9379
|
+
readonly ok: false;
|
|
9380
|
+
readonly reason: string;
|
|
9381
|
+
};
|
|
9382
|
+
|
|
9383
|
+
/** Opens one TCP connection to `baseUrl`'s host and port within `timeoutMs` and closes it at once, sending nothing. */
|
|
9384
|
+
type BaseUrlProbe = (baseUrl: string, timeoutMs: number) => ListenerVerdict;
|
|
9385
|
+
|
|
9363
9386
|
/** Where a pinned Claude Code version came from, strongest first: the launch's own flag, then the environment, then the cascade. */
|
|
9364
9387
|
declare const CLAUDE_VERSION_SOURCES: readonly ["flag", "environment", "cascade"];
|
|
9365
9388
|
type ClaudeVersionSource = (typeof CLAUDE_VERSION_SOURCES)[number];
|
|
@@ -9479,6 +9502,7 @@ declare const PoolPickReportSchema: z.ZodObject<{
|
|
|
9479
9502
|
kind: z.ZodLiteral<"pay-per-use">;
|
|
9480
9503
|
tier: z.ZodOptional<z.ZodString>;
|
|
9481
9504
|
}, z.core.$strict>]>;
|
|
9505
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9482
9506
|
reasons: z.ZodArray<z.ZodString>;
|
|
9483
9507
|
}, z.core.$strict>>;
|
|
9484
9508
|
missing: z.ZodArray<z.ZodString>;
|
|
@@ -9601,7 +9625,20 @@ interface RunCheckParams {
|
|
|
9601
9625
|
readonly installedClaudeVersions?: readonly string[];
|
|
9602
9626
|
/** 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. */
|
|
9603
9627
|
readonly credentialCache?: CredentialCacheEnv;
|
|
9628
|
+
/** Opens one connection to the selected http provider's base URL, bounded by its connect timeout. Omit to leave reachability out of the report. */
|
|
9629
|
+
readonly probeBaseUrl?: BaseUrlProbe;
|
|
9604
9630
|
}
|
|
9631
|
+
/** Whether the selected http provider's base URL accepted a connection, as `check` reports it. */
|
|
9632
|
+
type ProviderReachabilityReport = {
|
|
9633
|
+
readonly name: string;
|
|
9634
|
+
readonly baseUrl: string;
|
|
9635
|
+
readonly ok: true;
|
|
9636
|
+
} | {
|
|
9637
|
+
readonly name: string;
|
|
9638
|
+
readonly baseUrl: string;
|
|
9639
|
+
readonly ok: false;
|
|
9640
|
+
readonly message: string;
|
|
9641
|
+
};
|
|
9605
9642
|
/** Everything `agent-shim check` reports about one directory/identity, without touching the farm or spawning anything. */
|
|
9606
9643
|
interface CheckReport {
|
|
9607
9644
|
readonly identityName?: string;
|
|
@@ -9618,6 +9655,8 @@ interface CheckReport {
|
|
|
9618
9655
|
readonly credential: CredentialReport;
|
|
9619
9656
|
/** The Claude Code version a launch here would run, when the installed versions were given. */
|
|
9620
9657
|
readonly claudeVersion?: ClaudeVersionReport;
|
|
9658
|
+
/** Whether the selected provider's base URL accepts a connection, when an http provider is selected and a probe was given. */
|
|
9659
|
+
readonly providerReachability?: ProviderReachabilityReport;
|
|
9621
9660
|
}
|
|
9622
9661
|
/** 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. */
|
|
9623
9662
|
interface ClaudeVersionReport {
|
|
@@ -9640,7 +9679,7 @@ declare function formatCheckReport(report: CheckReport): string[];
|
|
|
9640
9679
|
*/
|
|
9641
9680
|
declare function checkReportToJson(report: CheckReport): CheckReportJson;
|
|
9642
9681
|
/**
|
|
9643
|
-
* 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,
|
|
9682
|
+
* 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.
|
|
9644
9683
|
*/
|
|
9645
9684
|
declare function checkReportHasWarnings(report: CheckReport): boolean;
|
|
9646
9685
|
/** What `collectCheckReport` needs from its caller. */
|
|
@@ -10169,14 +10208,6 @@ interface DoctorHeadroomAllowlist {
|
|
|
10169
10208
|
readonly fileProblem: AllowlistFileProblem | undefined;
|
|
10170
10209
|
}
|
|
10171
10210
|
|
|
10172
|
-
/** The outcome of authenticating the listener a front-door state file names. */
|
|
10173
|
-
type ListenerVerdict = {
|
|
10174
|
-
readonly ok: true;
|
|
10175
|
-
} | {
|
|
10176
|
-
readonly ok: false;
|
|
10177
|
-
readonly reason: string;
|
|
10178
|
-
};
|
|
10179
|
-
|
|
10180
10211
|
/** 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. */
|
|
10181
10212
|
interface FrontDoorListenerReading {
|
|
10182
10213
|
/** Which listener, and so which sessions it cuts off when it does not accept: `provider` carries provider sessions, `connect` carries every plain OAuth session. */
|
|
@@ -10320,6 +10351,8 @@ interface RunDoctorParams {
|
|
|
10320
10351
|
readonly providers: readonly DoctorProviderInput[];
|
|
10321
10352
|
/** The recorded former names of renamed providers. Omit to leave them out of the findings. */
|
|
10322
10353
|
readonly providerAliases?: ProviderAliases;
|
|
10354
|
+
/** Opens one connection to an http provider's base URL, bounded by the 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. */
|
|
10355
|
+
readonly probeBaseUrl?: BaseUrlProbe;
|
|
10323
10356
|
/** 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. */
|
|
10324
10357
|
readonly renameJournals?: RenameJournalListing;
|
|
10325
10358
|
/** 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. */
|
|
@@ -15189,6 +15222,8 @@ interface PrepareLaunchParams {
|
|
|
15189
15222
|
readonly frontdoor?: FrontDoorPort;
|
|
15190
15223
|
/** 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. */
|
|
15191
15224
|
readonly credentials?: CredentialPort;
|
|
15225
|
+
/** Opens one connection to an http provider's base URL, bounded by the provider's connect timeout. With it, a launch on an http provider whose base URL accepts no connection is refused with the line naming the URL, instead of starting a session no request of which can be answered; a caller that cannot open connections omits it and launches without asking. */
|
|
15226
|
+
readonly probeBaseUrl?: BaseUrlProbe;
|
|
15192
15227
|
/** 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. */
|
|
15193
15228
|
readonly allowMissingConfigProfile?: boolean;
|
|
15194
15229
|
/** 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. */
|
|
@@ -15214,6 +15249,8 @@ interface LaunchPoolDecision {
|
|
|
15214
15249
|
readonly name: string;
|
|
15215
15250
|
/** Every reason the ranking gave for the chosen member, in the ranking's order. */
|
|
15216
15251
|
readonly reasons: readonly string[];
|
|
15252
|
+
/** The provider the ranking read for the chosen member, when the launch spends one in place of the member's Claude account: the member's quota was judged on that provider's slice of its usage, not on the Claude account's. Absent when the pick was ranked on the Claude account. */
|
|
15253
|
+
readonly provider?: string;
|
|
15217
15254
|
/** The member a resumed conversation left, and why the ranking could not keep it. */
|
|
15218
15255
|
readonly movedOff?: {
|
|
15219
15256
|
readonly identity: string;
|
|
@@ -15353,6 +15390,7 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15353
15390
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
15354
15391
|
name: zod.ZodString;
|
|
15355
15392
|
reasons: zod.ZodReadonly<zod.ZodArray<zod.ZodString>>;
|
|
15393
|
+
provider: zod.ZodOptional<zod.ZodString>;
|
|
15356
15394
|
movedOff: zod.ZodOptional<zod.ZodObject<{
|
|
15357
15395
|
identity: zod.ZodString;
|
|
15358
15396
|
reason: zod.ZodString;
|
|
@@ -16588,6 +16626,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
16588
16626
|
kind: zod.ZodLiteral<"pay-per-use">;
|
|
16589
16627
|
tier: zod.ZodOptional<zod.ZodString>;
|
|
16590
16628
|
}, zod_v4_core.$strict>]>;
|
|
16629
|
+
provider: zod.ZodOptional<zod.ZodString>;
|
|
16591
16630
|
reasons: zod.ZodArray<zod.ZodString>;
|
|
16592
16631
|
}, zod_v4_core.$strict>>;
|
|
16593
16632
|
missing: zod.ZodArray<zod.ZodString>;
|
|
@@ -16848,6 +16887,16 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
16848
16887
|
highestInstalled: zod.ZodOptional<zod.ZodString>;
|
|
16849
16888
|
installed: zod.ZodReadonly<zod.ZodArray<zod.ZodString>>;
|
|
16850
16889
|
}, zod_v4_core.$strict>>;
|
|
16890
|
+
providerReachability: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
16891
|
+
name: zod.ZodString;
|
|
16892
|
+
baseUrl: zod.ZodString;
|
|
16893
|
+
ok: zod.ZodLiteral<true>;
|
|
16894
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
16895
|
+
name: zod.ZodString;
|
|
16896
|
+
baseUrl: zod.ZodString;
|
|
16897
|
+
ok: zod.ZodLiteral<false>;
|
|
16898
|
+
message: zod.ZodString;
|
|
16899
|
+
}, zod_v4_core.$strict>]>>;
|
|
16851
16900
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
16852
16901
|
};
|
|
16853
16902
|
doctor: {
|
|
@@ -16916,6 +16965,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
16916
16965
|
kind: zod.ZodLiteral<"pay-per-use">;
|
|
16917
16966
|
tier: zod.ZodOptional<zod.ZodString>;
|
|
16918
16967
|
}, zod_v4_core.$strict>]>;
|
|
16968
|
+
provider: zod.ZodOptional<zod.ZodString>;
|
|
16919
16969
|
reasons: zod.ZodArray<zod.ZodString>;
|
|
16920
16970
|
}, zod_v4_core.$strict>>;
|
|
16921
16971
|
missing: zod.ZodArray<zod.ZodString>;
|
|
@@ -17080,6 +17130,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17080
17130
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
17081
17131
|
name: zod.ZodString;
|
|
17082
17132
|
reasons: zod.ZodReadonly<zod.ZodArray<zod.ZodString>>;
|
|
17133
|
+
provider: zod.ZodOptional<zod.ZodString>;
|
|
17083
17134
|
movedOff: zod.ZodOptional<zod.ZodObject<{
|
|
17084
17135
|
identity: zod.ZodString;
|
|
17085
17136
|
reason: zod.ZodString;
|
|
@@ -21663,6 +21714,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21663
21714
|
kind: zod.ZodLiteral<"pay-per-use">;
|
|
21664
21715
|
tier: zod.ZodOptional<zod.ZodString>;
|
|
21665
21716
|
}, zod_v4_core.$strict>]>;
|
|
21717
|
+
provider: zod.ZodOptional<zod.ZodString>;
|
|
21666
21718
|
reasons: zod.ZodArray<zod.ZodString>;
|
|
21667
21719
|
}, zod_v4_core.$strict>>;
|
|
21668
21720
|
missing: zod.ZodArray<zod.ZodString>;
|
|
@@ -21923,6 +21975,16 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21923
21975
|
highestInstalled: zod.ZodOptional<zod.ZodString>;
|
|
21924
21976
|
installed: zod.ZodReadonly<zod.ZodArray<zod.ZodString>>;
|
|
21925
21977
|
}, zod_v4_core.$strict>>;
|
|
21978
|
+
providerReachability: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
21979
|
+
name: zod.ZodString;
|
|
21980
|
+
baseUrl: zod.ZodString;
|
|
21981
|
+
ok: zod.ZodLiteral<true>;
|
|
21982
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
21983
|
+
name: zod.ZodString;
|
|
21984
|
+
baseUrl: zod.ZodString;
|
|
21985
|
+
ok: zod.ZodLiteral<false>;
|
|
21986
|
+
message: zod.ZodString;
|
|
21987
|
+
}, zod_v4_core.$strict>]>>;
|
|
21926
21988
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
21927
21989
|
};
|
|
21928
21990
|
doctor: {
|
|
@@ -21991,6 +22053,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21991
22053
|
kind: zod.ZodLiteral<"pay-per-use">;
|
|
21992
22054
|
tier: zod.ZodOptional<zod.ZodString>;
|
|
21993
22055
|
}, zod_v4_core.$strict>]>;
|
|
22056
|
+
provider: zod.ZodOptional<zod.ZodString>;
|
|
21994
22057
|
reasons: zod.ZodArray<zod.ZodString>;
|
|
21995
22058
|
}, zod_v4_core.$strict>>;
|
|
21996
22059
|
missing: zod.ZodArray<zod.ZodString>;
|
|
@@ -26509,6 +26572,7 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26509
26572
|
pool: z.ZodOptional<z.ZodObject<{
|
|
26510
26573
|
name: z.ZodString;
|
|
26511
26574
|
reasons: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
26575
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
26512
26576
|
movedOff: z.ZodOptional<z.ZodObject<{
|
|
26513
26577
|
identity: z.ZodString;
|
|
26514
26578
|
reason: z.ZodString;
|
|
@@ -27722,6 +27786,10 @@ interface PoolMember {
|
|
|
27722
27786
|
readonly nested?: NestedContribution;
|
|
27723
27787
|
/** The member that represents this member's login in the ranking, when both hold the same login and so draw on one quota window. This member is then ineligible as a candidate of its own, since ranking it beside its representative would count one window twice and could fail over to a login that is limited too. */
|
|
27724
27788
|
readonly sameLoginAs?: string;
|
|
27789
|
+
/** The provider this member's launch routes through, when it does not spend the member's own Claude account: the member is then assessed against that provider's slice of its snapshot and the records the front door logged for it, and sized by the provider's own quota level. Absent for a launch on the Claude account, which is read from the `anthropic` slice exactly as ever. */
|
|
27790
|
+
readonly provider?: string;
|
|
27791
|
+
/** Why the provider this member's launch spends could not be resolved (a provider or configuration profile file that fails validation, is in a former format or is not JSON), when that is the case: the member is then ranked as unknown with this reason, and picking it refuses the launch with the file's own error. */
|
|
27792
|
+
readonly providerError?: string;
|
|
27725
27793
|
/** The member entry's policy condition, from the object form of a pool member: definite false skips the member as ineligible by policy, indeterminate demotes it to last within its class, naming the missing fact either way. */
|
|
27726
27794
|
readonly policy?: WhenCondition;
|
|
27727
27795
|
}
|
|
@@ -27765,6 +27833,8 @@ interface Candidate {
|
|
|
27765
27833
|
/** When the exhausted plan window of a `pay-per-use` candidate that is only on extra usage because its plan ran out resets, so a launch can hold for it rather than spend. Absent for a candidate that bills by use with no plan allowance. */
|
|
27766
27834
|
readonly planReturnsAtMs?: number;
|
|
27767
27835
|
readonly plan: PlanClass;
|
|
27836
|
+
/** The provider the member was assessed against, when the launch spends one in place of the member's Claude account; absent when it was assessed on the Claude account. */
|
|
27837
|
+
readonly provider?: string;
|
|
27768
27838
|
/** True when the member's policy condition could not be decided and it is ranked last within its class, naming the missing fact in its reasons. */
|
|
27769
27839
|
readonly policyDemoted?: boolean;
|
|
27770
27840
|
/** Human-readable facts behind the class and score, in the order they matter. */
|
|
@@ -27812,6 +27882,13 @@ declare function rankPool(input: RankPoolInput): PoolRanking;
|
|
|
27812
27882
|
declare class PoolGraphError extends CliError {
|
|
27813
27883
|
constructor(message: string);
|
|
27814
27884
|
}
|
|
27885
|
+
/** A member whose launch cannot be resolved to a provider because a configuration file it reads is unreadable: the provider it names, when something still named one, and why the file could not be read. The member is ranked on what is known and reported with the reason, and the launch that picks it refuses with the file's own error. */
|
|
27886
|
+
interface UnreadableProvider {
|
|
27887
|
+
readonly named?: string;
|
|
27888
|
+
readonly reason: string;
|
|
27889
|
+
}
|
|
27890
|
+
/** The provider a launch of a member routes through, by the member's name: undefined when the launch spends the member's own Claude account, and an `UnreadableProvider` when the files that decide it cannot be read. */
|
|
27891
|
+
type ProviderOf = (identity: string) => string | UnreadableProvider | undefined;
|
|
27815
27892
|
/**
|
|
27816
27893
|
* The concrete identities the pool named `poolName` can launch as, in member order with a nested `pool:<name>` entry replaced by the identities of that pool at the entry's position, each identity once. It reads no usage and no identity file, so it lists every identity the pool graph names, whether or not it exists or is eligible: ranking is `rankPoolGraph`'s job.
|
|
27817
27894
|
*
|
|
@@ -27819,8 +27896,33 @@ declare class PoolGraphError extends CliError {
|
|
|
27819
27896
|
*/
|
|
27820
27897
|
declare function poolIdentities(pools: Readonly<Record<string, Pool>>, poolName: string): readonly string[];
|
|
27821
27898
|
|
|
27899
|
+
/** An assembled cascade input plus the global config it was built from, which the caller also needs for its own defaults. */
|
|
27900
|
+
interface LoadedCascade {
|
|
27901
|
+
readonly input: CascadeInput;
|
|
27902
|
+
readonly globalConfig?: GlobalConfig;
|
|
27903
|
+
}
|
|
27904
|
+
|
|
27905
|
+
/** What the provider of each pool member's launch from a directory is decided from, on this machine. */
|
|
27906
|
+
interface RealMemberProviderParams {
|
|
27907
|
+
readonly paths: LayoutPaths;
|
|
27908
|
+
/** The directory the launch would run in: its cascade selects the provider and the configuration profile. */
|
|
27909
|
+
readonly cwd: string;
|
|
27910
|
+
/** The environment the launch inherits, which can name a configuration profile. */
|
|
27911
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
27912
|
+
/** The launch's `--provider` flag: a provider name, `false` for `--no-provider`, undefined when neither was given. */
|
|
27913
|
+
readonly cliProvider?: string | false;
|
|
27914
|
+
/** The configuration profile the launch's flag names. */
|
|
27915
|
+
readonly cliFlagConfigProfile?: string;
|
|
27916
|
+
/** The cascade of `cwd`, when the caller has already loaded it. */
|
|
27917
|
+
readonly loaded?: LoadedCascade;
|
|
27918
|
+
}
|
|
27919
|
+
/**
|
|
27920
|
+
* `memberProviderResolver` over this machine's real files: the cascade of `params.cwd` is read once for its directory selections and again, per configuration profile, as a launch reads it for the identity it runs as. Used by every read-only report of what a pool launch would pick, so each ranks the pool on the quota the launch itself would spend.
|
|
27921
|
+
*/
|
|
27922
|
+
declare function realMemberProviderResolver(params: Readonly<RealMemberProviderParams>): ProviderOf;
|
|
27923
|
+
|
|
27822
27924
|
/**
|
|
27823
|
-
* Ranks a pool exactly as a launch from `directory` would right now, without recording a pick. Shares `rankPoolGraph` with the launcher, so what this prints is what a launch does.
|
|
27925
|
+
* Ranks a pool exactly as a launch from `directory` would right now, without recording a pick. Shares `rankPoolGraph` with the launcher, so what this prints is what a launch does. `providerOf` names the provider a launch of each member routes through, so the report ranks each member on that provider's quota; without it every member is ranked on its Claude account.
|
|
27824
27926
|
*/
|
|
27825
27927
|
declare function collectPoolPick(params: Readonly<{
|
|
27826
27928
|
paths: LayoutPaths;
|
|
@@ -27830,6 +27932,7 @@ declare function collectPoolPick(params: Readonly<{
|
|
|
27830
27932
|
pools: Readonly<Record<string, Pool>>;
|
|
27831
27933
|
directory: string;
|
|
27832
27934
|
nowMs: number;
|
|
27935
|
+
providerOf?: ProviderOf;
|
|
27833
27936
|
}>): PoolPickReport;
|
|
27834
27937
|
|
|
27835
27938
|
/**
|
|
@@ -28104,6 +28207,8 @@ interface AddProviderInput {
|
|
|
28104
28207
|
readonly pickerModels?: readonly PickerModel[];
|
|
28105
28208
|
/** Opt an http provider into listing its own model catalogue in `/model`. */
|
|
28106
28209
|
readonly catalogue?: ProviderCatalogue;
|
|
28210
|
+
/** An http provider's bound on opening a connection to its base URL, in milliseconds; absent keeps the derived default. */
|
|
28211
|
+
readonly connectTimeoutMs?: number;
|
|
28107
28212
|
readonly codex?: CodexProviderConfig;
|
|
28108
28213
|
readonly antigravity?: AntigravityProviderConfig;
|
|
28109
28214
|
}
|
|
@@ -28133,6 +28238,8 @@ interface UpdateProviderInput {
|
|
|
28133
28238
|
readonly unsetPickerModels?: readonly string[];
|
|
28134
28239
|
/** The provider's whole new catalogue setting, or false to remove it; undefined leaves the existing one. Applies only to an http provider. */
|
|
28135
28240
|
readonly catalogue?: ProviderCatalogue | false;
|
|
28241
|
+
/** 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. */
|
|
28242
|
+
readonly connectTimeoutMs?: number | false;
|
|
28136
28243
|
/** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
28137
28244
|
readonly codex?: CodexProviderConfig;
|
|
28138
28245
|
/** Merged over an antigravity provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
@@ -28343,6 +28450,8 @@ interface RefreshPoolUsageParams {
|
|
|
28343
28450
|
readonly log?: (line: string) => void;
|
|
28344
28451
|
/** Refreshes by other means than Claude Code's usage report; the real one when absent. */
|
|
28345
28452
|
readonly refresher?: AnthropicUsageRefresher;
|
|
28453
|
+
/** The provider each member's launch spends: a member that names one is not refreshed, since a pick for it reads that provider's quota, which is refreshed by the requests that pass the front door. Every member is refreshed on its Claude account when absent. */
|
|
28454
|
+
readonly providerOf?: ProviderOf;
|
|
28346
28455
|
}
|
|
28347
28456
|
/**
|
|
28348
28457
|
* Refreshes, on demand, the recorded Anthropic usage of every member of the named pools (and of the pools they nest) whose record has gone stale, so a quota display or a launch the caller plans itself reads current figures. A member is stale once its record is older than one percent of the five-hour window; each is asked for its plan windows through Claude Code's usage report, which makes no model request. A failed fetch is logged and the member keeps its recorded state; this never throws for one.
|
|
@@ -28362,7 +28471,7 @@ interface RefreshLaunchPoolUsageOptions extends PrepareClaudeLaunchOptions {
|
|
|
28362
28471
|
*/
|
|
28363
28472
|
declare function poolSelectedByLaunch(options: Pick<PrepareClaudeLaunchOptions, "argv" | "env" | "cwd" | "paths">): string | undefined;
|
|
28364
28473
|
/**
|
|
28365
|
-
* Refreshes the stale usage of the pool a launch would select (`poolSelectedByLaunch`), so the pick that launch makes ranks on current figures. Run it before `prepareClaudeLaunch`, which stays synchronous and ranks on whatever is recorded; `runClaudeLaunch` does. Does nothing when the launch selects no pool. See `refreshPoolUsage` for what a refresh asks, and for the Agent SDK requirement.
|
|
28474
|
+
* Refreshes the stale usage of the pool a launch would select (`poolSelectedByLaunch`), so the pick that launch makes ranks on current figures. A member whose launch spends a provider is left out, since the pick ranks it on that provider's quota. Run it before `prepareClaudeLaunch`, which stays synchronous and ranks on whatever is recorded; `runClaudeLaunch` does. Does nothing when the launch selects no pool. See `refreshPoolUsage` for what a refresh asks, and for the Agent SDK requirement.
|
|
28366
28475
|
*/
|
|
28367
28476
|
declare function refreshLaunchPoolUsage(options: RefreshLaunchPoolUsageOptions): Promise<void>;
|
|
28368
28477
|
|
|
@@ -28385,7 +28494,7 @@ interface RefreshStalePoolMembersParams {
|
|
|
28385
28494
|
readonly refresher: AnthropicUsageRefresher;
|
|
28386
28495
|
}
|
|
28387
28496
|
/**
|
|
28388
|
-
* Refreshes the Anthropic usage of every member of the named pools (and of the pools they nest) whose recorded state is stale, so a pick ranks on current figures. A launch runs it before `prepareLaunch`, which stays synchronous because it is part of the library surface; the front door runs it on a timer. A member whose fetch fails keeps its recorded state, and nothing here refuses a launch. An identity named by several pools is fetched once.
|
|
28497
|
+
* Refreshes the Anthropic usage of every member of the named pools (and of the pools they nest) whose launch spends its Claude account and whose recorded state is stale, so a pick ranks on current figures. A launch runs it before `prepareLaunch`, which stays synchronous because it is part of the library surface; the front door runs it on a timer. A member whose fetch fails keeps its recorded state, and nothing here refuses a launch. An identity named by several pools is fetched once.
|
|
28389
28498
|
*/
|
|
28390
28499
|
declare function refreshStalePoolMembers(params: RefreshStalePoolMembersParams): Promise<void>;
|
|
28391
28500
|
|
|
@@ -28398,5 +28507,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
|
|
|
28398
28507
|
*/
|
|
28399
28508
|
declare function agentShimCliPath(distDir?: string | undefined): string;
|
|
28400
28509
|
|
|
28401
|
-
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, 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 };
|
|
28402
|
-
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, 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, 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 };
|
|
28510
|
+
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 };
|
|
28511
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.2.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>",
|