claude-use 11.6.2 → 11.8.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/README.md +1 -1
- package/dist/cli.cjs +492 -310
- package/dist/index.cjs +423 -336
- package/dist/index.mjs +420 -333
- package/dist/types/index.d.ts +34 -8
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5046,6 +5046,26 @@ interface DoctorHeadroomAllowlist {
|
|
|
5046
5046
|
readonly fileProblem: AllowlistFileProblem | undefined;
|
|
5047
5047
|
}
|
|
5048
5048
|
|
|
5049
|
+
/** The outcome of authenticating the listener a front-door state file names. */
|
|
5050
|
+
type ListenerVerdict = {
|
|
5051
|
+
readonly ok: true;
|
|
5052
|
+
} | {
|
|
5053
|
+
readonly ok: false;
|
|
5054
|
+
readonly reason: string;
|
|
5055
|
+
};
|
|
5056
|
+
|
|
5057
|
+
/** 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. */
|
|
5058
|
+
interface FrontDoorListenerReading {
|
|
5059
|
+
/** Which listener, and so which sessions it cuts off when it does not accept: `provider` carries provider sessions, `connect` carries every plain OAuth session. */
|
|
5060
|
+
readonly listener: "provider" | "connect";
|
|
5061
|
+
readonly port: number;
|
|
5062
|
+
readonly ok: boolean;
|
|
5063
|
+
/** The probe's own failure reason, absent when it passed. */
|
|
5064
|
+
readonly reason?: string;
|
|
5065
|
+
/** Milliseconds the probe took, as the local clock saw it: a label on a reading, never a threshold. */
|
|
5066
|
+
readonly elapsedMs: number;
|
|
5067
|
+
}
|
|
5068
|
+
|
|
5049
5069
|
/** What listing the front-door supervisors found: their pids, or why the process table could not be read. */
|
|
5050
5070
|
type FrontDoorSupervisorListing = {
|
|
5051
5071
|
readonly ok: true;
|
|
@@ -5178,6 +5198,8 @@ interface RunDoctorParams {
|
|
|
5178
5198
|
readonly supervisors: FrontDoorSupervisorListing;
|
|
5179
5199
|
/** The launches registered with the front door whose launcher is still running, each naming the door it was sent to: what tells a superseded door still serving its launches from one serving nothing. */
|
|
5180
5200
|
readonly liveSessions: readonly FrontDoorSessionSummary[];
|
|
5201
|
+
/** What probing the serving door's listeners found: empty when no door serves or the platform cannot say. Omit to skip the listener checks. */
|
|
5202
|
+
readonly listeners?: readonly FrontDoorListenerReading[];
|
|
5181
5203
|
};
|
|
5182
5204
|
}
|
|
5183
5205
|
/**
|
|
@@ -12508,14 +12530,6 @@ declare function readRcSelfHostRecord(fs: Pick<FarmFs, "readFileUtf8">, frontdoo
|
|
|
12508
12530
|
*/
|
|
12509
12531
|
declare function mintRcSelfHostCredential(deps: RcSelfHostMintDeps): RcSelfHostMintResult;
|
|
12510
12532
|
|
|
12511
|
-
/** The outcome of authenticating the listener a front-door state file names. */
|
|
12512
|
-
type ListenerVerdict = {
|
|
12513
|
-
readonly ok: true;
|
|
12514
|
-
} | {
|
|
12515
|
-
readonly ok: false;
|
|
12516
|
-
readonly reason: string;
|
|
12517
|
-
};
|
|
12518
|
-
|
|
12519
12533
|
/** Raised when the front door cannot be brought up in time or has recorded a fatal error: a routed launch has no other way to reach its provider, so it must fail rather than start a session that can never answer. */
|
|
12520
12534
|
declare class FrontDoorStartError extends CliError {
|
|
12521
12535
|
constructor(message: string);
|
|
@@ -12555,6 +12569,14 @@ declare function ensureFrontDoor(params: {
|
|
|
12555
12569
|
readonly token: string;
|
|
12556
12570
|
};
|
|
12557
12571
|
|
|
12572
|
+
/** What the supervisor holds: a beat from each tick of its main loop, and a stop when it begins to retire. */
|
|
12573
|
+
interface DoorWatchdog {
|
|
12574
|
+
/** Records that the main event loop ran. Called from the supervisor's tick, which only runs while the loop serves. */
|
|
12575
|
+
readonly beat: () => void;
|
|
12576
|
+
/** Ends the watchdog before the door begins an orderly retirement, so a slow close is never taken for a stall. Idempotent. */
|
|
12577
|
+
readonly stop: () => void;
|
|
12578
|
+
}
|
|
12579
|
+
|
|
12558
12580
|
/** A bound front-door listener in this process, and how to stop it. */
|
|
12559
12581
|
interface FrontDoorListenerHandle {
|
|
12560
12582
|
readonly port: number;
|
|
@@ -12600,6 +12622,10 @@ interface FrontDoorSupervisorPorts {
|
|
|
12600
12622
|
* Stops the Remote Control stream hub: persists every live attachment's sequence cursor synchronously, then frees the dials. Called exactly once on every exit the supervisor owns, after every listener it started is down (a live listener could still settle an observed Remote Control exchange, and the reconcile that follows would re-attach a stream the close had just ended) and before the final state write and the process's exit.
|
|
12601
12623
|
*/
|
|
12602
12624
|
readonly closeRcStreamHub: () => void;
|
|
12625
|
+
/**
|
|
12626
|
+
* Starts the watchdog that ends this process when its main event loop stops running: it lives on its own thread, so a loop that is blocked cannot stall it. The supervisor beats it every tick and stops it before it begins to retire, so it only ever judges a door that is meant to be serving. Optional because ending the process is only right when the process is the door: the CLI's `__frontdoor-supervisor` supplies it, and a library host that runs the door inside its own process does not get its application killed by default.
|
|
12627
|
+
*/
|
|
12628
|
+
readonly startWatchdog?: () => DoorWatchdog;
|
|
12603
12629
|
/**
|
|
12604
12630
|
* Reports one tick's session-registry facts to the door's event backbone: the sessions the tick's listing saw (taken before the prune, so a pruned launch's record is still there to name its start time) and the pids the tick's prune removed. The launch lifecycle publisher turns the diff between ticks into source-tagged events; the listing is also this loop's own idle input, so the two read one fact instead of two.
|
|
12605
12631
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.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>",
|