claude-use 11.6.0 → 11.6.2
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 +24 -7
- package/dist/index.cjs +14 -2
- package/dist/index.mjs +14 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -34007,7 +34007,7 @@ var init_package = __esm({
|
|
|
34007
34007
|
"package.json"() {
|
|
34008
34008
|
package_default = {
|
|
34009
34009
|
name: "claude-use",
|
|
34010
|
-
version: "11.6.
|
|
34010
|
+
version: "11.6.2",
|
|
34011
34011
|
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.",
|
|
34012
34012
|
license: "MIT",
|
|
34013
34013
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -62048,6 +62048,20 @@ request.on("error", (error) => finish(failed, (error.code ? error.code + ": " :
|
|
|
62048
62048
|
}
|
|
62049
62049
|
});
|
|
62050
62050
|
|
|
62051
|
+
// src/frontdoor/selfIdentity.ts
|
|
62052
|
+
function declareThisProcessTheFrontDoor() {
|
|
62053
|
+
declaredPid = process.pid;
|
|
62054
|
+
}
|
|
62055
|
+
function isFrontDoorSupervisorPid(pid, identify) {
|
|
62056
|
+
return declaredPid !== void 0 && pid === declaredPid && pid === process.pid || identify(pid);
|
|
62057
|
+
}
|
|
62058
|
+
var declaredPid;
|
|
62059
|
+
var init_selfIdentity = __esm({
|
|
62060
|
+
"src/frontdoor/selfIdentity.ts"() {
|
|
62061
|
+
"use strict";
|
|
62062
|
+
}
|
|
62063
|
+
});
|
|
62064
|
+
|
|
62051
62065
|
// src/frontdoor/trust.ts
|
|
62052
62066
|
function resolveTrustBundle(params) {
|
|
62053
62067
|
const { caCertFile, bundlesDir, variable, inherited, fs: fs23 } = params;
|
|
@@ -62094,7 +62108,7 @@ function realEnsurePorts(paths, spawnDaemon) {
|
|
|
62094
62108
|
now: () => Date.now(),
|
|
62095
62109
|
sleep: realSleepSync,
|
|
62096
62110
|
spawnSupervisor: (layout) => spawnDaemon(layout, "__frontdoor-supervisor", layout.frontdoorLogPath),
|
|
62097
|
-
isFrontDoorSupervisor: realIsFrontDoorSupervisor,
|
|
62111
|
+
isFrontDoorSupervisor: (pid) => isFrontDoorSupervisorPid(pid, realIsFrontDoorSupervisor),
|
|
62098
62112
|
stopSupervisor: (pid) => {
|
|
62099
62113
|
process.kill(pid, "SIGTERM");
|
|
62100
62114
|
},
|
|
@@ -62135,6 +62149,7 @@ var init_realFrontDoorPort = __esm({
|
|
|
62135
62149
|
init_ensure2();
|
|
62136
62150
|
init_state();
|
|
62137
62151
|
init_probe();
|
|
62152
|
+
init_selfIdentity();
|
|
62138
62153
|
init_trust();
|
|
62139
62154
|
realTrustBundleFs = {
|
|
62140
62155
|
readFileUtf8: (file2) => import_node_fs13.default.readFileSync(file2, "utf8"),
|
|
@@ -113412,14 +113427,14 @@ function refusalReason(identity, snapshot, nowMs) {
|
|
|
113412
113427
|
return candidate?.class === "ineligible" ? `it is refused right now (${candidate.reasons[0] ?? "no reason recorded"})` : void 0;
|
|
113413
113428
|
}
|
|
113414
113429
|
function reasonNotToOpen(identity, snapshot, nowMs) {
|
|
113415
|
-
|
|
113416
|
-
|
|
113430
|
+
const unified = snapshot?.providers[ANTHROPIC_PROVIDER]?.rateLimit?.unified;
|
|
113431
|
+
if (snapshot === void 0 || unified === void 0) {
|
|
113432
|
+
return "its quota has not been read, so whether a window is open is unknown";
|
|
113417
113433
|
}
|
|
113418
|
-
|
|
113419
|
-
if (unified !== void 0 && unified.fiveHour === void 0 && unified.sevenDay === void 0) {
|
|
113434
|
+
if (unified.fiveHour === void 0 && unified.sevenDay === void 0) {
|
|
113420
113435
|
return "it reports no plan windows, so there is no five-hour window to anchor";
|
|
113421
113436
|
}
|
|
113422
|
-
const five = unified
|
|
113437
|
+
const five = unified.fiveHour === void 0 ? void 0 : effectiveWindow(unified.fiveHour, nowMs);
|
|
113423
113438
|
if (five?.resetsAtMs !== void 0) {
|
|
113424
113439
|
return `a five-hour window is already open, resetting in ${formatAge(five.resetsAtMs - nowMs)}`;
|
|
113425
113440
|
}
|
|
@@ -131034,6 +131049,7 @@ function formatFrontDoorStatus(status, caCertPath) {
|
|
|
131034
131049
|
|
|
131035
131050
|
// src/frontdoor/commands.ts
|
|
131036
131051
|
init_state();
|
|
131052
|
+
init_selfIdentity();
|
|
131037
131053
|
init_account();
|
|
131038
131054
|
init_middleware();
|
|
131039
131055
|
init_quotaRefresh();
|
|
@@ -131515,6 +131531,7 @@ function registerFrontDoorCommand(program2, deps) {
|
|
|
131515
131531
|
process.on("SIGINT", () => {
|
|
131516
131532
|
deps.exit(0);
|
|
131517
131533
|
});
|
|
131534
|
+
declareThisProcessTheFrontDoor();
|
|
131518
131535
|
deps.exit(await runFrontDoorSupervisor(idleShutdownMinutes, realFrontDoorSupervisorPorts(paths)));
|
|
131519
131536
|
});
|
|
131520
131537
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -2787,7 +2787,7 @@ var init_package = __esm({
|
|
|
2787
2787
|
"package.json"() {
|
|
2788
2788
|
package_default = {
|
|
2789
2789
|
name: "claude-use",
|
|
2790
|
-
version: "11.6.
|
|
2790
|
+
version: "11.6.2",
|
|
2791
2791
|
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.",
|
|
2792
2792
|
license: "MIT",
|
|
2793
2793
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -8140,6 +8140,17 @@ request.on("error", (error) => finish(failed, (error.code ? error.code + ": " :
|
|
|
8140
8140
|
}
|
|
8141
8141
|
});
|
|
8142
8142
|
|
|
8143
|
+
// src/frontdoor/selfIdentity.ts
|
|
8144
|
+
function isFrontDoorSupervisorPid(pid, identify) {
|
|
8145
|
+
return declaredPid !== void 0 && pid === declaredPid && pid === process.pid || identify(pid);
|
|
8146
|
+
}
|
|
8147
|
+
var declaredPid;
|
|
8148
|
+
var init_selfIdentity = __esm({
|
|
8149
|
+
"src/frontdoor/selfIdentity.ts"() {
|
|
8150
|
+
"use strict";
|
|
8151
|
+
}
|
|
8152
|
+
});
|
|
8153
|
+
|
|
8143
8154
|
// src/frontdoor/trust.ts
|
|
8144
8155
|
function resolveTrustBundle(params) {
|
|
8145
8156
|
const { caCertFile, bundlesDir, variable, inherited, fs: fs12 } = params;
|
|
@@ -8186,7 +8197,7 @@ function realEnsurePorts(paths, spawnDaemon) {
|
|
|
8186
8197
|
now: () => Date.now(),
|
|
8187
8198
|
sleep: realSleepSync,
|
|
8188
8199
|
spawnSupervisor: (layout) => spawnDaemon(layout, "__frontdoor-supervisor", layout.frontdoorLogPath),
|
|
8189
|
-
isFrontDoorSupervisor: realIsFrontDoorSupervisor,
|
|
8200
|
+
isFrontDoorSupervisor: (pid) => isFrontDoorSupervisorPid(pid, realIsFrontDoorSupervisor),
|
|
8190
8201
|
stopSupervisor: (pid) => {
|
|
8191
8202
|
process.kill(pid, "SIGTERM");
|
|
8192
8203
|
},
|
|
@@ -8224,6 +8235,7 @@ var init_realFrontDoorPort = __esm({
|
|
|
8224
8235
|
init_ensure2();
|
|
8225
8236
|
init_state();
|
|
8226
8237
|
init_probe();
|
|
8238
|
+
init_selfIdentity();
|
|
8227
8239
|
init_trust();
|
|
8228
8240
|
realTrustBundleFs = {
|
|
8229
8241
|
readFileUtf8: (file) => import_node_fs11.default.readFileSync(file, "utf8"),
|
package/dist/index.mjs
CHANGED
|
@@ -2763,7 +2763,7 @@ var init_package = __esm({
|
|
|
2763
2763
|
"package.json"() {
|
|
2764
2764
|
package_default = {
|
|
2765
2765
|
name: "claude-use",
|
|
2766
|
-
version: "11.6.
|
|
2766
|
+
version: "11.6.2",
|
|
2767
2767
|
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.",
|
|
2768
2768
|
license: "MIT",
|
|
2769
2769
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -8111,6 +8111,17 @@ request.on("error", (error) => finish(failed, (error.code ? error.code + ": " :
|
|
|
8111
8111
|
}
|
|
8112
8112
|
});
|
|
8113
8113
|
|
|
8114
|
+
// src/frontdoor/selfIdentity.ts
|
|
8115
|
+
function isFrontDoorSupervisorPid(pid, identify) {
|
|
8116
|
+
return declaredPid !== void 0 && pid === declaredPid && pid === process.pid || identify(pid);
|
|
8117
|
+
}
|
|
8118
|
+
var declaredPid;
|
|
8119
|
+
var init_selfIdentity = __esm({
|
|
8120
|
+
"src/frontdoor/selfIdentity.ts"() {
|
|
8121
|
+
"use strict";
|
|
8122
|
+
}
|
|
8123
|
+
});
|
|
8124
|
+
|
|
8114
8125
|
// src/frontdoor/trust.ts
|
|
8115
8126
|
import { createHash as createHash6 } from "node:crypto";
|
|
8116
8127
|
import path40 from "node:path";
|
|
@@ -8158,7 +8169,7 @@ function realEnsurePorts(paths, spawnDaemon) {
|
|
|
8158
8169
|
now: () => Date.now(),
|
|
8159
8170
|
sleep: realSleepSync,
|
|
8160
8171
|
spawnSupervisor: (layout) => spawnDaemon(layout, "__frontdoor-supervisor", layout.frontdoorLogPath),
|
|
8161
|
-
isFrontDoorSupervisor: realIsFrontDoorSupervisor,
|
|
8172
|
+
isFrontDoorSupervisor: (pid) => isFrontDoorSupervisorPid(pid, realIsFrontDoorSupervisor),
|
|
8162
8173
|
stopSupervisor: (pid) => {
|
|
8163
8174
|
process.kill(pid, "SIGTERM");
|
|
8164
8175
|
},
|
|
@@ -8195,6 +8206,7 @@ var init_realFrontDoorPort = __esm({
|
|
|
8195
8206
|
init_ensure2();
|
|
8196
8207
|
init_state();
|
|
8197
8208
|
init_probe();
|
|
8209
|
+
init_selfIdentity();
|
|
8198
8210
|
init_trust();
|
|
8199
8211
|
realTrustBundleFs = {
|
|
8200
8212
|
readFileUtf8: (file) => fs11.readFileSync(file, "utf8"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.6.
|
|
3
|
+
"version": "11.6.2",
|
|
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>",
|