claude-use 11.83.8 → 11.84.1
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 +6364 -5822
- package/dist/index.cjs +1952 -1600
- package/dist/index.mjs +1900 -1550
- package/dist/types/index.d.ts +28 -9
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -6030,6 +6030,8 @@ type FrontDoorSessionSummary = Pick<FrontDoorSession, "pid" | "startedAt" | "sup
|
|
|
6030
6030
|
* 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`.
|
|
6031
6031
|
*/
|
|
6032
6032
|
interface FsPort {
|
|
6033
|
+
/** Identifies the current file revision without reading its contents, when supported by the host. */
|
|
6034
|
+
readonly fileRevision?: (filePath: string) => string | undefined;
|
|
6033
6035
|
/** Reads a file's contents as UTF-8 text, or returns undefined when it does not exist. Used for plain-text files like the persisted active-identity file. */
|
|
6034
6036
|
readonly readFileUtf8: (filePath: string) => string | undefined;
|
|
6035
6037
|
/** Reads and parses a config file (JSON/YAML/JS via cosmiconfig in the real implementation), returning undefined when it does not exist. Mirrors `src/config/load.ts`'s own injected reader shape so `loadIdentity` can compose directly with `loadConfigFile`. */
|
|
@@ -6120,6 +6122,7 @@ interface RunPort {
|
|
|
6120
6122
|
interface ProcPort {
|
|
6121
6123
|
readonly env: Readonly<Record<string, string | undefined>>;
|
|
6122
6124
|
readonly argv: readonly string[];
|
|
6125
|
+
readonly isProcessAlive: (pid: number) => boolean;
|
|
6123
6126
|
readonly exit: (code: number) => never;
|
|
6124
6127
|
}
|
|
6125
6128
|
/** One fact the launcher reports about the launch it is about to start. */
|
|
@@ -6165,12 +6168,16 @@ interface HeadroomPort {
|
|
|
6165
6168
|
* 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.
|
|
6166
6169
|
*/
|
|
6167
6170
|
interface FrontDoorPort {
|
|
6171
|
+
/** Wait for the initial catalogue work associated with the serving supervisor. */
|
|
6172
|
+
readonly waitForCatalogues?: (supervisorPid: number) => string | undefined;
|
|
6168
6173
|
/** `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. */
|
|
6169
6174
|
readonly ensure: (inheritedExtraCaCerts: string | undefined, session?: FrontDoorSessionDetails) => FrontDoorUp;
|
|
6170
6175
|
readonly release: () => void;
|
|
6171
6176
|
}
|
|
6172
6177
|
/** The running front door one launch routed through, as `FrontDoorPort.ensure` reports it. */
|
|
6173
6178
|
interface FrontDoorUp {
|
|
6179
|
+
/** The authenticated supervisor serving this launch. */
|
|
6180
|
+
readonly supervisorPid: number;
|
|
6174
6181
|
/** The loopback port the provider listener serves HTTPS on: the base URL every provider session points at. */
|
|
6175
6182
|
readonly port: number;
|
|
6176
6183
|
/** The loopback port the CONNECT surface listens on: what an OAuth launch points HTTPS_PROXY at. */
|
|
@@ -13498,25 +13505,29 @@ interface LifecycleApiDeps {
|
|
|
13498
13505
|
readonly restartDoor: () => void;
|
|
13499
13506
|
/** The update check as `agent-shim update --check` makes it: nothing is downloaded or changed. */
|
|
13500
13507
|
readonly checkForUpdate: () => Promise<UpdateReport>;
|
|
13508
|
+
readonly refreshCatalogues: () => void;
|
|
13501
13509
|
}
|
|
13502
13510
|
/** Builds the lifecycle routers: `frontdoor.restart` and `update.check`, every one behind the control-token middleware. */
|
|
13503
13511
|
declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
|
|
13504
13512
|
frontdoor: {
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13513
|
+
refreshCatalogues: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema, z.ZodObject<{
|
|
13514
|
+
requested: z.ZodLiteral<true>;
|
|
13515
|
+
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
13516
|
+
restart: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema, z.ZodObject<{
|
|
13517
|
+
action: z.ZodLiteral<"restarting">;
|
|
13518
|
+
previousPid: z.ZodInt;
|
|
13519
|
+
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
13509
13520
|
};
|
|
13510
13521
|
update: {
|
|
13511
|
-
check: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema,
|
|
13512
|
-
current:
|
|
13513
|
-
latest:
|
|
13514
|
-
action:
|
|
13522
|
+
check: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema, z.ZodObject<{
|
|
13523
|
+
current: z.ZodString;
|
|
13524
|
+
latest: z.ZodString;
|
|
13525
|
+
action: z.ZodEnum<{
|
|
13515
13526
|
current: "current";
|
|
13516
13527
|
available: "available";
|
|
13517
13528
|
updated: "updated";
|
|
13518
13529
|
}>;
|
|
13519
|
-
},
|
|
13530
|
+
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
13520
13531
|
};
|
|
13521
13532
|
};
|
|
13522
13533
|
/** The lifecycle routers, as the merged mount's and the client's own types are derived from them. */
|
|
@@ -15903,6 +15914,9 @@ interface DoorApiDeps extends RcApiDeps, ControlApiDeps, ConfigApiDeps, DoorEven
|
|
|
15903
15914
|
/** Builds the door's whole typed API: the Remote Control router, the control-plane routers, the configuration router and the events router beside them, one object for the one handler the provider listener mounts. */
|
|
15904
15915
|
declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
15905
15916
|
frontdoor: {
|
|
15917
|
+
refreshCatalogues: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema, zod.ZodObject<{
|
|
15918
|
+
requested: zod.ZodLiteral<true>;
|
|
15919
|
+
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
15906
15920
|
restart: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema, zod.ZodObject<{
|
|
15907
15921
|
action: zod.ZodLiteral<"restarting">;
|
|
15908
15922
|
previousPid: zod.ZodInt;
|
|
@@ -26238,6 +26252,7 @@ declare function ensureFrontDoor(params: {
|
|
|
26238
26252
|
readonly port: number;
|
|
26239
26253
|
readonly connectPort: number;
|
|
26240
26254
|
readonly token: string;
|
|
26255
|
+
readonly supervisorPid: number;
|
|
26241
26256
|
};
|
|
26242
26257
|
|
|
26243
26258
|
/**
|
|
@@ -26311,6 +26326,10 @@ interface FrontDoorSupervisorPorts {
|
|
|
26311
26326
|
*/
|
|
26312
26327
|
readonly registry: LiveSessionRegistry;
|
|
26313
26328
|
readonly ownPid: number;
|
|
26329
|
+
/** The absolute Codex CLI home used by this supervisor. */
|
|
26330
|
+
readonly codexHome: string;
|
|
26331
|
+
readonly catalogueGeneration: string;
|
|
26332
|
+
readonly onServing: () => void;
|
|
26314
26333
|
readonly now: () => number;
|
|
26315
26334
|
/** An event-loop-yielding wait, for the same reason headroom's is: nothing else would ever run between ticks. */
|
|
26316
26335
|
readonly sleep: (ms: number) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.84.1",
|
|
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>",
|