claude-use 11.41.0 → 11.42.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 +487 -372
- package/dist/index.cjs +296 -227
- package/dist/index.mjs +295 -226
- package/dist/types/index.d.ts +130 -76
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -370,8 +370,8 @@ declare const CredentialSchema: z.ZodObject<{
|
|
|
370
370
|
literal: z.ZodString;
|
|
371
371
|
}, z.core.$strict>]>>;
|
|
372
372
|
target: z.ZodOptional<z.ZodEnum<{
|
|
373
|
-
apiKey: "apiKey";
|
|
374
373
|
bearer: "bearer";
|
|
374
|
+
apiKey: "apiKey";
|
|
375
375
|
oauthToken: "oauthToken";
|
|
376
376
|
}>>;
|
|
377
377
|
cache: z.ZodOptional<z.ZodObject<{
|
|
@@ -505,8 +505,8 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
505
505
|
}>>;
|
|
506
506
|
}, z.core.$strict>>;
|
|
507
507
|
target: z.ZodOptional<z.ZodEnum<{
|
|
508
|
-
apiKey: "apiKey";
|
|
509
508
|
bearer: "bearer";
|
|
509
|
+
apiKey: "apiKey";
|
|
510
510
|
}>>;
|
|
511
511
|
}, z.core.$strict>;
|
|
512
512
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -643,8 +643,8 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
643
643
|
}>>;
|
|
644
644
|
}, z.core.$strict>>;
|
|
645
645
|
target: z.ZodOptional<z.ZodEnum<{
|
|
646
|
-
apiKey: "apiKey";
|
|
647
646
|
bearer: "bearer";
|
|
647
|
+
apiKey: "apiKey";
|
|
648
648
|
}>>;
|
|
649
649
|
}, z.core.$strict>;
|
|
650
650
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -713,8 +713,8 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
713
713
|
}>>;
|
|
714
714
|
}, z.core.$strict>>;
|
|
715
715
|
target: z.ZodOptional<z.ZodEnum<{
|
|
716
|
-
apiKey: "apiKey";
|
|
717
716
|
bearer: "bearer";
|
|
717
|
+
apiKey: "apiKey";
|
|
718
718
|
}>>;
|
|
719
719
|
}, z.core.$strict>;
|
|
720
720
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -2161,8 +2161,8 @@ declare const IdentitySchema: z.ZodObject<{
|
|
|
2161
2161
|
literal: z.ZodString;
|
|
2162
2162
|
}, z.core.$strict>]>>;
|
|
2163
2163
|
target: z.ZodOptional<z.ZodEnum<{
|
|
2164
|
-
apiKey: "apiKey";
|
|
2165
2164
|
bearer: "bearer";
|
|
2165
|
+
apiKey: "apiKey";
|
|
2166
2166
|
oauthToken: "oauthToken";
|
|
2167
2167
|
}>>;
|
|
2168
2168
|
cache: z.ZodOptional<z.ZodObject<{
|
|
@@ -2647,6 +2647,96 @@ declare class UsageError extends CliError {
|
|
|
2647
2647
|
/** Injected reader for a single config file, so tests never touch a real filesystem. Returns undefined when the file does not exist. */
|
|
2648
2648
|
type ConfigFileReader = (filepath: string) => unknown;
|
|
2649
2649
|
|
|
2650
|
+
/** The filesystem operations headroom coordination needs: the same shape as `FarmFs`, injected so every decision over state, sessions, and the start lock runs against an in-memory fake in tests. */
|
|
2651
|
+
type HeadroomFs = Pick<FarmFs, "mkdirp" | "mkdirPrivate" | "readFileUtf8" | "writeFileUtf8" | "writeFilePrivate" | "writeFileExclusive" | "readdir" | "removeRecursive">;
|
|
2652
|
+
|
|
2653
|
+
/**
|
|
2654
|
+
* The record held in one front-door session-registry file: the launcher's pid plus the per-launch capability token its child presents on every request, and the supervisor of the door the launch was sent to. `sessionId` is the id the launch's requests carry in their session header, and `models` the models block this launch resolved when its directory, profile or committed file added definitions of its own to the global block (absent otherwise, so the door follows the global block live). `supervisorPid` is absent on a record written before it existed and on a door's own transparent-surface record; such a launch cannot be attributed to a door, so a superseded door treats it as its own.
|
|
2655
|
+
*/
|
|
2656
|
+
declare const FrontDoorSessionSchema: z.ZodObject<{
|
|
2657
|
+
pid: z.ZodNumber;
|
|
2658
|
+
startedAt: z.ZodNumber;
|
|
2659
|
+
token: z.ZodString;
|
|
2660
|
+
supervisorPid: z.ZodOptional<z.ZodNumber>;
|
|
2661
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2662
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
2663
|
+
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2664
|
+
mode: z.ZodEnum<{
|
|
2665
|
+
ordered: "ordered";
|
|
2666
|
+
"most-allowance": "most-allowance";
|
|
2667
|
+
"soonest-reset": "soonest-reset";
|
|
2668
|
+
spread: "spread";
|
|
2669
|
+
adaptive: "adaptive";
|
|
2670
|
+
"lowest-latency": "lowest-latency";
|
|
2671
|
+
"highest-success": "highest-success";
|
|
2672
|
+
cheapest: "cheapest";
|
|
2673
|
+
}>;
|
|
2674
|
+
members: z.ZodArray<z.ZodString>;
|
|
2675
|
+
}, z.core.$strict>>>;
|
|
2676
|
+
tiers: z.ZodOptional<z.ZodObject<{
|
|
2677
|
+
fable: z.ZodOptional<z.ZodString>;
|
|
2678
|
+
opus: z.ZodOptional<z.ZodString>;
|
|
2679
|
+
sonnet: z.ZodOptional<z.ZodString>;
|
|
2680
|
+
haiku: z.ZodOptional<z.ZodString>;
|
|
2681
|
+
}, z.core.$strict>>;
|
|
2682
|
+
prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2683
|
+
input: z.ZodNumber;
|
|
2684
|
+
output: z.ZodNumber;
|
|
2685
|
+
}, z.core.$strict>>>;
|
|
2686
|
+
hide: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2687
|
+
show: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2688
|
+
same: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
2689
|
+
distinct: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
2690
|
+
families: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2691
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2692
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
2693
|
+
ordered: "ordered";
|
|
2694
|
+
"most-allowance": "most-allowance";
|
|
2695
|
+
"soonest-reset": "soonest-reset";
|
|
2696
|
+
spread: "spread";
|
|
2697
|
+
adaptive: "adaptive";
|
|
2698
|
+
"lowest-latency": "lowest-latency";
|
|
2699
|
+
"highest-success": "highest-success";
|
|
2700
|
+
cheapest: "cheapest";
|
|
2701
|
+
}>>;
|
|
2702
|
+
context: z.ZodOptional<z.ZodNumber>;
|
|
2703
|
+
vision: z.ZodOptional<z.ZodBoolean>;
|
|
2704
|
+
tools: z.ZodOptional<z.ZodBoolean>;
|
|
2705
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
2706
|
+
}, z.core.$strict>>>;
|
|
2707
|
+
}, z.core.$strict>>;
|
|
2708
|
+
}, z.core.$strict>;
|
|
2709
|
+
type FrontDoorSession = z.infer<typeof FrontDoorSessionSchema>;
|
|
2710
|
+
/**
|
|
2711
|
+
* The front-door supervisor's state.json under `<home>/frontdoor/`. Every field is optional because the file exists in stages, exactly like headroom's and the old codex daemon's: a fresh supervisor writes its own pid before the listener is up, and a shut-down front door leaves only the sticky `lastPort` and any `lastError` worth surfacing.
|
|
2712
|
+
*/
|
|
2713
|
+
declare const FrontDoorStateSchema: z.ZodObject<{
|
|
2714
|
+
protocol: z.ZodOptional<z.ZodNumber>;
|
|
2715
|
+
supervisorPid: z.ZodOptional<z.ZodNumber>;
|
|
2716
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
2717
|
+
lastPort: z.ZodOptional<z.ZodNumber>;
|
|
2718
|
+
connectPort: z.ZodOptional<z.ZodNumber>;
|
|
2719
|
+
lastConnectPort: z.ZodOptional<z.ZodNumber>;
|
|
2720
|
+
directPort: z.ZodOptional<z.ZodNumber>;
|
|
2721
|
+
lastDirectPort: z.ZodOptional<z.ZodNumber>;
|
|
2722
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
2723
|
+
}, z.core.$strict>;
|
|
2724
|
+
type FrontDoorState = z.infer<typeof FrontDoorStateSchema>;
|
|
2725
|
+
/**
|
|
2726
|
+
* Which recorded doors are still running as front-door supervisors, as reads of the process table answer it: `doors` holds the pids the table shows running (not zombies) with the front-door supervisor's command line; `unknown` holds the pids no read could answer for, each with why (ps failed to run, was killed, timed out or reported an error). Every other pid asked about is known not to be a door: gone, a zombie, or a process that reused a crashed door's pid.
|
|
2727
|
+
*/
|
|
2728
|
+
interface FrontDoorLiveness {
|
|
2729
|
+
readonly doors: ReadonlySet<number>;
|
|
2730
|
+
readonly unknown: ReadonlyMap<number, string>;
|
|
2731
|
+
}
|
|
2732
|
+
/** What a launch records about itself in its registry entry beyond the token: the id its requests carry and, when it resolved one that differs from the global block, its models block. */
|
|
2733
|
+
interface FrontDoorSessionDetails {
|
|
2734
|
+
readonly sessionId: string;
|
|
2735
|
+
readonly models?: ModelsConfig;
|
|
2736
|
+
}
|
|
2737
|
+
/** A registered launch as status and the idle decision see it: the pid and start time, never the token, so nothing that prints or serialises a session can leak the capability. */
|
|
2738
|
+
type FrontDoorSessionSummary = Pick<FrontDoorSession, "pid" | "startedAt" | "supervisorPid">;
|
|
2739
|
+
|
|
2650
2740
|
/**
|
|
2651
2741
|
* Filesystem operations the launcher needs, injected so no test in this project ever touches a real filesystem — consistent with the resolver core's own injected-facts approach in `src/resolve/types.ts`.
|
|
2652
2742
|
*/
|
|
@@ -2778,8 +2868,8 @@ interface HeadroomPort {
|
|
|
2778
2868
|
* Everything the launcher needs from the front-door daemon, injected like `HeadroomPort`: `ensure` brings the door up (spawning its detached supervisor when nothing authenticated is serving), registers this launch in its session registry and returns both listeners' loopback ports plus the CA bundle the child must trust; `release` removes that registration when the spawned `claude` exits.
|
|
2779
2869
|
*/
|
|
2780
2870
|
interface FrontDoorPort {
|
|
2781
|
-
/** `inheritedExtraCaCerts` is the parent environment's own `NODE_EXTRA_CA_CERTS`, which the returned trust bundle keeps (see `resolveTrustBundle`). */
|
|
2782
|
-
readonly ensure: (inheritedExtraCaCerts: string | undefined) => FrontDoorUp;
|
|
2871
|
+
/** `inheritedExtraCaCerts` is the parent environment's own `NODE_EXTRA_CA_CERTS`, which the returned trust bundle keeps (see `resolveTrustBundle`). `session` is what the launch tells the door about itself: its session id and the models block it resolved. */
|
|
2872
|
+
readonly ensure: (inheritedExtraCaCerts: string | undefined, session?: FrontDoorSessionDetails) => FrontDoorUp;
|
|
2783
2873
|
readonly release: () => void;
|
|
2784
2874
|
}
|
|
2785
2875
|
/** The running front door one launch routed through, as `FrontDoorPort.ensure` reports it. */
|
|
@@ -4256,9 +4346,6 @@ interface FrontDoorRcControl {
|
|
|
4256
4346
|
/** Builds the control client: every request presents the control token, and a non-2xx answer becomes the verbose message the door sent with it. */
|
|
4257
4347
|
declare function frontDoorRcControl(transport: RcControlTransport, token: string): FrontDoorRcControl;
|
|
4258
4348
|
|
|
4259
|
-
/** The filesystem operations headroom coordination needs: the same shape as `FarmFs`, injected so every decision over state, sessions, and the start lock runs against an in-memory fake in tests. */
|
|
4260
|
-
type HeadroomFs = Pick<FarmFs, "mkdirp" | "mkdirPrivate" | "readFileUtf8" | "writeFileUtf8" | "writeFilePrivate" | "writeFileExclusive" | "readdir" | "removeRecursive">;
|
|
4261
|
-
|
|
4262
4349
|
/** What an `lstat` (which never follows symlinks) reports about one path, narrowed to what authenticating the socket needs. */
|
|
4263
4350
|
interface SocketPathStat {
|
|
4264
4351
|
readonly kind: "dir" | "file" | "socket" | "symlink" | "other";
|
|
@@ -4885,8 +4972,8 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4885
4972
|
name: z.ZodString;
|
|
4886
4973
|
credential: z.ZodOptional<z.ZodObject<{
|
|
4887
4974
|
target: z.ZodEnum<{
|
|
4888
|
-
apiKey: "apiKey";
|
|
4889
4975
|
bearer: "bearer";
|
|
4976
|
+
apiKey: "apiKey";
|
|
4890
4977
|
oauthToken: "oauthToken";
|
|
4891
4978
|
}>;
|
|
4892
4979
|
sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -4947,8 +5034,8 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4947
5034
|
}, z.core.$strict>]>>;
|
|
4948
5035
|
identity: z.ZodOptional<z.ZodObject<{
|
|
4949
5036
|
target: z.ZodEnum<{
|
|
4950
|
-
apiKey: "apiKey";
|
|
4951
5037
|
bearer: "bearer";
|
|
5038
|
+
apiKey: "apiKey";
|
|
4952
5039
|
oauthToken: "oauthToken";
|
|
4953
5040
|
}>;
|
|
4954
5041
|
sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -5470,41 +5557,6 @@ interface FileAllowlistDrift {
|
|
|
5470
5557
|
readonly hashLags: boolean;
|
|
5471
5558
|
}
|
|
5472
5559
|
|
|
5473
|
-
/**
|
|
5474
|
-
* The record held in one front-door session-registry file: the launcher's pid plus the per-launch capability token its child presents on every request, and the supervisor of the door the launch was sent to. `supervisorPid` is absent on a record written before it existed and on a door's own transparent-surface record; such a launch cannot be attributed to a door, so a superseded door treats it as its own.
|
|
5475
|
-
*/
|
|
5476
|
-
declare const FrontDoorSessionSchema: z.ZodObject<{
|
|
5477
|
-
pid: z.ZodNumber;
|
|
5478
|
-
startedAt: z.ZodNumber;
|
|
5479
|
-
token: z.ZodString;
|
|
5480
|
-
supervisorPid: z.ZodOptional<z.ZodNumber>;
|
|
5481
|
-
}, z.core.$strict>;
|
|
5482
|
-
type FrontDoorSession = z.infer<typeof FrontDoorSessionSchema>;
|
|
5483
|
-
/**
|
|
5484
|
-
* The front-door supervisor's state.json under `<home>/frontdoor/`. Every field is optional because the file exists in stages, exactly like headroom's and the old codex daemon's: a fresh supervisor writes its own pid before the listener is up, and a shut-down front door leaves only the sticky `lastPort` and any `lastError` worth surfacing.
|
|
5485
|
-
*/
|
|
5486
|
-
declare const FrontDoorStateSchema: z.ZodObject<{
|
|
5487
|
-
protocol: z.ZodOptional<z.ZodNumber>;
|
|
5488
|
-
supervisorPid: z.ZodOptional<z.ZodNumber>;
|
|
5489
|
-
port: z.ZodOptional<z.ZodNumber>;
|
|
5490
|
-
lastPort: z.ZodOptional<z.ZodNumber>;
|
|
5491
|
-
connectPort: z.ZodOptional<z.ZodNumber>;
|
|
5492
|
-
lastConnectPort: z.ZodOptional<z.ZodNumber>;
|
|
5493
|
-
directPort: z.ZodOptional<z.ZodNumber>;
|
|
5494
|
-
lastDirectPort: z.ZodOptional<z.ZodNumber>;
|
|
5495
|
-
lastError: z.ZodOptional<z.ZodString>;
|
|
5496
|
-
}, z.core.$strict>;
|
|
5497
|
-
type FrontDoorState = z.infer<typeof FrontDoorStateSchema>;
|
|
5498
|
-
/**
|
|
5499
|
-
* Which recorded doors are still running as front-door supervisors, as reads of the process table answer it: `doors` holds the pids the table shows running (not zombies) with the front-door supervisor's command line; `unknown` holds the pids no read could answer for, each with why (ps failed to run, was killed, timed out or reported an error). Every other pid asked about is known not to be a door: gone, a zombie, or a process that reused a crashed door's pid.
|
|
5500
|
-
*/
|
|
5501
|
-
interface FrontDoorLiveness {
|
|
5502
|
-
readonly doors: ReadonlySet<number>;
|
|
5503
|
-
readonly unknown: ReadonlyMap<number, string>;
|
|
5504
|
-
}
|
|
5505
|
-
/** A registered launch as status and the idle decision see it: the pid and start time, never the token, so nothing that prints or serialises a session can leak the capability. */
|
|
5506
|
-
type FrontDoorSessionSummary = Pick<FrontDoorSession, "pid" | "startedAt" | "supervisorPid">;
|
|
5507
|
-
|
|
5508
5560
|
/** The token-saving settings of the `headroom` config block, without its install and lifecycle fields (`source`, `idleShutdownMinutes`). */
|
|
5509
5561
|
type HeadroomSettings = Pick<HeadroomGlobalConfig, "mode" | "targetRatio" | "ccr" | "rolloutChannel" | "interceptToolResults" | "readMaturation">;
|
|
5510
5562
|
|
|
@@ -6060,8 +6112,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6060
6112
|
allowAmbientCredential: zod.ZodBoolean;
|
|
6061
6113
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
6062
6114
|
target: zod.ZodEnum<{
|
|
6063
|
-
apiKey: "apiKey";
|
|
6064
6115
|
bearer: "bearer";
|
|
6116
|
+
apiKey: "apiKey";
|
|
6065
6117
|
oauthToken: "oauthToken";
|
|
6066
6118
|
}>;
|
|
6067
6119
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -6130,8 +6182,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6130
6182
|
literal: zod.ZodString;
|
|
6131
6183
|
}, zod_v4_core.$strict>]>>>;
|
|
6132
6184
|
target: zod.ZodOptional<zod.ZodEnum<{
|
|
6133
|
-
apiKey: "apiKey";
|
|
6134
6185
|
bearer: "bearer";
|
|
6186
|
+
apiKey: "apiKey";
|
|
6135
6187
|
oauthToken: "oauthToken";
|
|
6136
6188
|
}>>;
|
|
6137
6189
|
cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
|
|
@@ -6165,8 +6217,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6165
6217
|
allowAmbientCredential: zod.ZodBoolean;
|
|
6166
6218
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
6167
6219
|
target: zod.ZodEnum<{
|
|
6168
|
-
apiKey: "apiKey";
|
|
6169
6220
|
bearer: "bearer";
|
|
6221
|
+
apiKey: "apiKey";
|
|
6170
6222
|
oauthToken: "oauthToken";
|
|
6171
6223
|
}>;
|
|
6172
6224
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -6822,8 +6874,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6822
6874
|
literal: zod.ZodString;
|
|
6823
6875
|
}, zod_v4_core.$strict>]>>>>;
|
|
6824
6876
|
target: zod.ZodOptional<zod.ZodEnum<{
|
|
6825
|
-
apiKey: "apiKey";
|
|
6826
6877
|
bearer: "bearer";
|
|
6878
|
+
apiKey: "apiKey";
|
|
6827
6879
|
}>>;
|
|
6828
6880
|
cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
|
|
6829
6881
|
ttl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -6887,8 +6939,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6887
6939
|
}, zod_v4_core.$strict>>;
|
|
6888
6940
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
6889
6941
|
target: zod.ZodEnum<{
|
|
6890
|
-
apiKey: "apiKey";
|
|
6891
6942
|
bearer: "bearer";
|
|
6943
|
+
apiKey: "apiKey";
|
|
6892
6944
|
oauthToken: "oauthToken";
|
|
6893
6945
|
}>;
|
|
6894
6946
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -6945,8 +6997,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6945
6997
|
literal: zod.ZodString;
|
|
6946
6998
|
}, zod_v4_core.$strict>]>>>;
|
|
6947
6999
|
target: zod.ZodOptional<zod.ZodEnum<{
|
|
6948
|
-
apiKey: "apiKey";
|
|
6949
7000
|
bearer: "bearer";
|
|
7001
|
+
apiKey: "apiKey";
|
|
6950
7002
|
}>>;
|
|
6951
7003
|
cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
|
|
6952
7004
|
ttl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -7010,8 +7062,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
7010
7062
|
}, zod_v4_core.$strict>>;
|
|
7011
7063
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
7012
7064
|
target: zod.ZodEnum<{
|
|
7013
|
-
apiKey: "apiKey";
|
|
7014
7065
|
bearer: "bearer";
|
|
7066
|
+
apiKey: "apiKey";
|
|
7015
7067
|
oauthToken: "oauthToken";
|
|
7016
7068
|
}>;
|
|
7017
7069
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -8096,8 +8148,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
8096
8148
|
name: zod.ZodString;
|
|
8097
8149
|
summary: zod.ZodObject<{
|
|
8098
8150
|
target: zod.ZodEnum<{
|
|
8099
|
-
apiKey: "apiKey";
|
|
8100
8151
|
bearer: "bearer";
|
|
8152
|
+
apiKey: "apiKey";
|
|
8101
8153
|
oauthToken: "oauthToken";
|
|
8102
8154
|
}>;
|
|
8103
8155
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -8813,8 +8865,8 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8813
8865
|
name: zod.ZodString;
|
|
8814
8866
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
8815
8867
|
target: zod.ZodEnum<{
|
|
8816
|
-
apiKey: "apiKey";
|
|
8817
8868
|
bearer: "bearer";
|
|
8869
|
+
apiKey: "apiKey";
|
|
8818
8870
|
oauthToken: "oauthToken";
|
|
8819
8871
|
}>;
|
|
8820
8872
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -8875,8 +8927,8 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8875
8927
|
}, zod_v4_core.$strict>]>>;
|
|
8876
8928
|
identity: zod.ZodOptional<zod.ZodObject<{
|
|
8877
8929
|
target: zod.ZodEnum<{
|
|
8878
|
-
apiKey: "apiKey";
|
|
8879
8930
|
bearer: "bearer";
|
|
8931
|
+
apiKey: "apiKey";
|
|
8880
8932
|
oauthToken: "oauthToken";
|
|
8881
8933
|
}>;
|
|
8882
8934
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -9218,8 +9270,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9218
9270
|
name: zod.ZodString;
|
|
9219
9271
|
summary: zod.ZodObject<{
|
|
9220
9272
|
target: zod.ZodEnum<{
|
|
9221
|
-
apiKey: "apiKey";
|
|
9222
9273
|
bearer: "bearer";
|
|
9274
|
+
apiKey: "apiKey";
|
|
9223
9275
|
oauthToken: "oauthToken";
|
|
9224
9276
|
}>;
|
|
9225
9277
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -9293,8 +9345,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9293
9345
|
allowAmbientCredential: zod.ZodBoolean;
|
|
9294
9346
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
9295
9347
|
target: zod.ZodEnum<{
|
|
9296
|
-
apiKey: "apiKey";
|
|
9297
9348
|
bearer: "bearer";
|
|
9349
|
+
apiKey: "apiKey";
|
|
9298
9350
|
oauthToken: "oauthToken";
|
|
9299
9351
|
}>;
|
|
9300
9352
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -9363,8 +9415,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9363
9415
|
literal: zod.ZodString;
|
|
9364
9416
|
}, zod_v4_core.$strict>]>>>;
|
|
9365
9417
|
target: zod.ZodOptional<zod.ZodEnum<{
|
|
9366
|
-
apiKey: "apiKey";
|
|
9367
9418
|
bearer: "bearer";
|
|
9419
|
+
apiKey: "apiKey";
|
|
9368
9420
|
oauthToken: "oauthToken";
|
|
9369
9421
|
}>>;
|
|
9370
9422
|
cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
|
|
@@ -9398,8 +9450,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9398
9450
|
allowAmbientCredential: zod.ZodBoolean;
|
|
9399
9451
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
9400
9452
|
target: zod.ZodEnum<{
|
|
9401
|
-
apiKey: "apiKey";
|
|
9402
9453
|
bearer: "bearer";
|
|
9454
|
+
apiKey: "apiKey";
|
|
9403
9455
|
oauthToken: "oauthToken";
|
|
9404
9456
|
}>;
|
|
9405
9457
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -10055,8 +10107,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10055
10107
|
literal: zod.ZodString;
|
|
10056
10108
|
}, zod_v4_core.$strict>]>>>>;
|
|
10057
10109
|
target: zod.ZodOptional<zod.ZodEnum<{
|
|
10058
|
-
apiKey: "apiKey";
|
|
10059
10110
|
bearer: "bearer";
|
|
10111
|
+
apiKey: "apiKey";
|
|
10060
10112
|
}>>;
|
|
10061
10113
|
cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
|
|
10062
10114
|
ttl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -10120,8 +10172,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10120
10172
|
}, zod_v4_core.$strict>>;
|
|
10121
10173
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
10122
10174
|
target: zod.ZodEnum<{
|
|
10123
|
-
apiKey: "apiKey";
|
|
10124
10175
|
bearer: "bearer";
|
|
10176
|
+
apiKey: "apiKey";
|
|
10125
10177
|
oauthToken: "oauthToken";
|
|
10126
10178
|
}>;
|
|
10127
10179
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -10178,8 +10230,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10178
10230
|
literal: zod.ZodString;
|
|
10179
10231
|
}, zod_v4_core.$strict>]>>>;
|
|
10180
10232
|
target: zod.ZodOptional<zod.ZodEnum<{
|
|
10181
|
-
apiKey: "apiKey";
|
|
10182
10233
|
bearer: "bearer";
|
|
10234
|
+
apiKey: "apiKey";
|
|
10183
10235
|
}>>;
|
|
10184
10236
|
cache: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodObject<{
|
|
10185
10237
|
ttl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -10243,8 +10295,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10243
10295
|
}, zod_v4_core.$strict>>;
|
|
10244
10296
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
10245
10297
|
target: zod.ZodEnum<{
|
|
10246
|
-
apiKey: "apiKey";
|
|
10247
10298
|
bearer: "bearer";
|
|
10299
|
+
apiKey: "apiKey";
|
|
10248
10300
|
oauthToken: "oauthToken";
|
|
10249
10301
|
}>;
|
|
10250
10302
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -11139,8 +11191,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
11139
11191
|
name: zod.ZodString;
|
|
11140
11192
|
credential: zod.ZodOptional<zod.ZodObject<{
|
|
11141
11193
|
target: zod.ZodEnum<{
|
|
11142
|
-
apiKey: "apiKey";
|
|
11143
11194
|
bearer: "bearer";
|
|
11195
|
+
apiKey: "apiKey";
|
|
11144
11196
|
oauthToken: "oauthToken";
|
|
11145
11197
|
}>;
|
|
11146
11198
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11201,8 +11253,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
11201
11253
|
}, zod_v4_core.$strict>]>>;
|
|
11202
11254
|
identity: zod.ZodOptional<zod.ZodObject<{
|
|
11203
11255
|
target: zod.ZodEnum<{
|
|
11204
|
-
apiKey: "apiKey";
|
|
11205
11256
|
bearer: "bearer";
|
|
11257
|
+
apiKey: "apiKey";
|
|
11206
11258
|
oauthToken: "oauthToken";
|
|
11207
11259
|
}>;
|
|
11208
11260
|
sources: zod.ZodReadonly<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11583,8 +11635,8 @@ declare function frontDoorApiFromState(paths: LayoutPaths, fsPort?: HeadroomFs):
|
|
|
11583
11635
|
/** A credential block as every response reports it: the effective target, each source's kind and its identifying detail, in order, and the cache setting. Never a value: a `literal` source reports only its kind. */
|
|
11584
11636
|
declare const CredentialSummarySchema: z.ZodObject<{
|
|
11585
11637
|
target: z.ZodEnum<{
|
|
11586
|
-
apiKey: "apiKey";
|
|
11587
11638
|
bearer: "bearer";
|
|
11639
|
+
apiKey: "apiKey";
|
|
11588
11640
|
oauthToken: "oauthToken";
|
|
11589
11641
|
}>;
|
|
11590
11642
|
sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -11628,8 +11680,8 @@ declare const ConfigIdentityAddOutputSchema: z.ZodObject<{
|
|
|
11628
11680
|
allowAmbientCredential: z.ZodBoolean;
|
|
11629
11681
|
credential: z.ZodOptional<z.ZodObject<{
|
|
11630
11682
|
target: z.ZodEnum<{
|
|
11631
|
-
apiKey: "apiKey";
|
|
11632
11683
|
bearer: "bearer";
|
|
11684
|
+
apiKey: "apiKey";
|
|
11633
11685
|
oauthToken: "oauthToken";
|
|
11634
11686
|
}>;
|
|
11635
11687
|
sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -11699,8 +11751,8 @@ declare const ConfigIdentitySetInputSchema: z.ZodObject<{
|
|
|
11699
11751
|
literal: z.ZodString;
|
|
11700
11752
|
}, z.core.$strict>]>>>;
|
|
11701
11753
|
target: z.ZodOptional<z.ZodEnum<{
|
|
11702
|
-
apiKey: "apiKey";
|
|
11703
11754
|
bearer: "bearer";
|
|
11755
|
+
apiKey: "apiKey";
|
|
11704
11756
|
oauthToken: "oauthToken";
|
|
11705
11757
|
}>>;
|
|
11706
11758
|
cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
@@ -11735,8 +11787,8 @@ declare const ConfigIdentitySetOutputSchema: z.ZodObject<{
|
|
|
11735
11787
|
allowAmbientCredential: z.ZodBoolean;
|
|
11736
11788
|
credential: z.ZodOptional<z.ZodObject<{
|
|
11737
11789
|
target: z.ZodEnum<{
|
|
11738
|
-
apiKey: "apiKey";
|
|
11739
11790
|
bearer: "bearer";
|
|
11791
|
+
apiKey: "apiKey";
|
|
11740
11792
|
oauthToken: "oauthToken";
|
|
11741
11793
|
}>;
|
|
11742
11794
|
sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -12390,8 +12442,8 @@ declare const ConfigProviderAddInputSchema: z.ZodObject<{
|
|
|
12390
12442
|
literal: z.ZodString;
|
|
12391
12443
|
}, z.core.$strict>]>>>>;
|
|
12392
12444
|
target: z.ZodOptional<z.ZodEnum<{
|
|
12393
|
-
apiKey: "apiKey";
|
|
12394
12445
|
bearer: "bearer";
|
|
12446
|
+
apiKey: "apiKey";
|
|
12395
12447
|
}>>;
|
|
12396
12448
|
cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
12397
12449
|
ttl: z.ZodOptional<z.ZodString>;
|
|
@@ -12456,8 +12508,8 @@ declare const ConfigProviderAddOutputSchema: z.ZodObject<{
|
|
|
12456
12508
|
}, z.core.$strict>>;
|
|
12457
12509
|
credential: z.ZodOptional<z.ZodObject<{
|
|
12458
12510
|
target: z.ZodEnum<{
|
|
12459
|
-
apiKey: "apiKey";
|
|
12460
12511
|
bearer: "bearer";
|
|
12512
|
+
apiKey: "apiKey";
|
|
12461
12513
|
oauthToken: "oauthToken";
|
|
12462
12514
|
}>;
|
|
12463
12515
|
sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -12515,8 +12567,8 @@ declare const ConfigProviderSetInputSchema: z.ZodObject<{
|
|
|
12515
12567
|
literal: z.ZodString;
|
|
12516
12568
|
}, z.core.$strict>]>>>;
|
|
12517
12569
|
target: z.ZodOptional<z.ZodEnum<{
|
|
12518
|
-
apiKey: "apiKey";
|
|
12519
12570
|
bearer: "bearer";
|
|
12571
|
+
apiKey: "apiKey";
|
|
12520
12572
|
}>>;
|
|
12521
12573
|
cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
12522
12574
|
ttl: z.ZodOptional<z.ZodString>;
|
|
@@ -12581,8 +12633,8 @@ declare const ConfigProviderSetOutputSchema: z.ZodObject<{
|
|
|
12581
12633
|
}, z.core.$strict>>;
|
|
12582
12634
|
credential: z.ZodOptional<z.ZodObject<{
|
|
12583
12635
|
target: z.ZodEnum<{
|
|
12584
|
-
apiKey: "apiKey";
|
|
12585
12636
|
bearer: "bearer";
|
|
12637
|
+
apiKey: "apiKey";
|
|
12586
12638
|
oauthToken: "oauthToken";
|
|
12587
12639
|
}>;
|
|
12588
12640
|
sources: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -13529,8 +13581,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
13529
13581
|
name: z.ZodString;
|
|
13530
13582
|
summary: z.ZodObject<{
|
|
13531
13583
|
target: z.ZodEnum<{
|
|
13532
|
-
apiKey: "apiKey";
|
|
13533
13584
|
bearer: "bearer";
|
|
13585
|
+
apiKey: "apiKey";
|
|
13534
13586
|
oauthToken: "oauthToken";
|
|
13535
13587
|
}>;
|
|
13536
13588
|
sources: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -13865,6 +13917,8 @@ declare function ensureFrontDoor(params: {
|
|
|
13865
13917
|
readonly ports: EnsureFrontDoorPorts;
|
|
13866
13918
|
/** Replaces a serving door whatever its protocol, once: the restart a binary update asks for, so the new generation serves the sessions already running without waiting for the registry to empty. */
|
|
13867
13919
|
readonly replace?: boolean;
|
|
13920
|
+
/** What this launch tells the door about itself beyond its token: the id its requests carry in their session header, and the models block it resolved when it added definitions of its own to the global one. Recorded in the launch's registry entry, so it lives and is pruned with the launch. */
|
|
13921
|
+
readonly session?: FrontDoorSessionDetails;
|
|
13868
13922
|
}): {
|
|
13869
13923
|
readonly port: number;
|
|
13870
13924
|
readonly connectPort: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.42.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>",
|