claude-use 11.67.3 → 11.67.4
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 +15 -11
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -37387,7 +37387,7 @@ var init_package = __esm({
|
|
|
37387
37387
|
"package.json"() {
|
|
37388
37388
|
package_default = {
|
|
37389
37389
|
name: "claude-use",
|
|
37390
|
-
version: "11.67.
|
|
37390
|
+
version: "11.67.4",
|
|
37391
37391
|
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.",
|
|
37392
37392
|
license: "MIT",
|
|
37393
37393
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -66349,27 +66349,27 @@ var init_ensure2 = __esm({
|
|
|
66349
66349
|
});
|
|
66350
66350
|
|
|
66351
66351
|
// src/frontdoor/probe.ts
|
|
66352
|
-
function probeFrontDoorSync(port, caPem) {
|
|
66352
|
+
function probeFrontDoorSync(port, caPem, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
66353
66353
|
refuseToBlockInRole("a synchronous probe of the front door");
|
|
66354
|
-
return runProbeWorker(PROBE_SOURCE, { port, ca: caPem });
|
|
66354
|
+
return runProbeWorker(PROBE_SOURCE, { port, ca: caPem }, timeoutMs);
|
|
66355
66355
|
}
|
|
66356
|
-
function probeListenerAcceptSync(port) {
|
|
66356
|
+
function probeListenerAcceptSync(port, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
66357
66357
|
refuseToBlockInRole("a synchronous probe of a front door listener");
|
|
66358
|
-
return runProbeWorker(ACCEPT_PROBE_SOURCE, { port });
|
|
66358
|
+
return runProbeWorker(ACCEPT_PROBE_SOURCE, { port }, timeoutMs);
|
|
66359
66359
|
}
|
|
66360
|
-
function runProbeWorker(source, data) {
|
|
66360
|
+
function runProbeWorker(source, data, timeoutMs) {
|
|
66361
66361
|
const shared = new SharedArrayBuffer(HEADER_SLOTS * INT32_BYTES + REASON_BYTES);
|
|
66362
66362
|
const header = new Int32Array(shared, 0, HEADER_SLOTS);
|
|
66363
66363
|
const worker = new import_node_worker_threads.Worker(source, {
|
|
66364
66364
|
eval: true,
|
|
66365
|
-
workerData: { ...data, timeoutMs
|
|
66365
|
+
workerData: { ...data, timeoutMs, shared, ok: VERDICT_OK, failed: VERDICT_FAILED, headerSlots: HEADER_SLOTS }
|
|
66366
66366
|
});
|
|
66367
66367
|
worker.unref();
|
|
66368
66368
|
try {
|
|
66369
|
-
const waited = Atomics.wait(header, 0, VERDICT_PENDING,
|
|
66369
|
+
const waited = Atomics.wait(header, 0, VERDICT_PENDING, timeoutMs + PROBE_WAIT_MARGIN_MS);
|
|
66370
66370
|
const verdict = Atomics.load(header, 0);
|
|
66371
66371
|
if (waited === "timed-out" || verdict === VERDICT_PENDING) {
|
|
66372
|
-
return { ok: false, reason: `the probe did not finish within ${String(
|
|
66372
|
+
return { ok: false, reason: `the probe did not finish within ${String(timeoutMs + PROBE_WAIT_MARGIN_MS)}ms` };
|
|
66373
66373
|
}
|
|
66374
66374
|
if (verdict === VERDICT_OK) {
|
|
66375
66375
|
return { ok: true };
|
|
@@ -140328,6 +140328,10 @@ function windowsOf(states, nowMs) {
|
|
|
140328
140328
|
function isObject4(value2) {
|
|
140329
140329
|
return typeof value2 === "object" && value2 !== null && !Array.isArray(value2);
|
|
140330
140330
|
}
|
|
140331
|
+
function isoOf(ms2) {
|
|
140332
|
+
const instant = new Date(ms2);
|
|
140333
|
+
return Number.isNaN(instant.getTime()) ? void 0 : instant.toISOString();
|
|
140334
|
+
}
|
|
140331
140335
|
function payloadWindow(rateLimits, key) {
|
|
140332
140336
|
const window = rateLimits[key];
|
|
140333
140337
|
if (!isObject4(window) || typeof window.used_percentage !== "number" || !Number.isFinite(window.used_percentage)) {
|
|
@@ -140336,7 +140340,7 @@ function payloadWindow(rateLimits, key) {
|
|
|
140336
140340
|
const resetsAt = window.resets_at;
|
|
140337
140341
|
return {
|
|
140338
140342
|
used: Math.min(FULL_PERCENT2, Math.max(0, window.used_percentage)),
|
|
140339
|
-
resetAt: typeof resetsAt === "number" && Number.isFinite(resetsAt) ?
|
|
140343
|
+
resetAt: typeof resetsAt === "number" && Number.isFinite(resetsAt) ? isoOf(resetsAt * MS_PER_SECOND17) : void 0
|
|
140340
140344
|
};
|
|
140341
140345
|
}
|
|
140342
140346
|
function payloadWindowsOf(payload) {
|
|
@@ -140364,7 +140368,7 @@ function antigravityQuotaMapOf(payload) {
|
|
|
140364
140368
|
function bucketView(bucket, nowMs) {
|
|
140365
140369
|
return {
|
|
140366
140370
|
used: bucket?.remaining_fraction === void 0 || !Number.isFinite(bucket.remaining_fraction) ? void 0 : (1 - Math.min(1, Math.max(0, bucket.remaining_fraction))) * FULL_PERCENT2,
|
|
140367
|
-
resetAt: bucket?.reset_in_seconds === void 0 || !Number.isFinite(bucket.reset_in_seconds) ? void 0 :
|
|
140371
|
+
resetAt: bucket?.reset_in_seconds === void 0 || !Number.isFinite(bucket.reset_in_seconds) ? void 0 : isoOf(nowMs + bucket.reset_in_seconds * MS_PER_SECOND17)
|
|
140368
140372
|
};
|
|
140369
140373
|
}
|
|
140370
140374
|
function antigravityWindowsOf(payload, nowMs) {
|
package/dist/index.cjs
CHANGED
|
@@ -4762,7 +4762,7 @@ var init_package = __esm({
|
|
|
4762
4762
|
"package.json"() {
|
|
4763
4763
|
package_default = {
|
|
4764
4764
|
name: "claude-use",
|
|
4765
|
-
version: "11.67.
|
|
4765
|
+
version: "11.67.4",
|
|
4766
4766
|
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.",
|
|
4767
4767
|
license: "MIT",
|
|
4768
4768
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -10110,27 +10110,27 @@ var init_targets = __esm({
|
|
|
10110
10110
|
});
|
|
10111
10111
|
|
|
10112
10112
|
// src/frontdoor/probe.ts
|
|
10113
|
-
function probeFrontDoorSync(port, caPem) {
|
|
10113
|
+
function probeFrontDoorSync(port, caPem, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
10114
10114
|
refuseToBlockInRole("a synchronous probe of the front door");
|
|
10115
|
-
return runProbeWorker(PROBE_SOURCE, { port, ca: caPem });
|
|
10115
|
+
return runProbeWorker(PROBE_SOURCE, { port, ca: caPem }, timeoutMs);
|
|
10116
10116
|
}
|
|
10117
|
-
function probeListenerAcceptSync(port) {
|
|
10117
|
+
function probeListenerAcceptSync(port, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
10118
10118
|
refuseToBlockInRole("a synchronous probe of a front door listener");
|
|
10119
|
-
return runProbeWorker(ACCEPT_PROBE_SOURCE, { port });
|
|
10119
|
+
return runProbeWorker(ACCEPT_PROBE_SOURCE, { port }, timeoutMs);
|
|
10120
10120
|
}
|
|
10121
|
-
function runProbeWorker(source, data) {
|
|
10121
|
+
function runProbeWorker(source, data, timeoutMs) {
|
|
10122
10122
|
const shared = new SharedArrayBuffer(HEADER_SLOTS * INT32_BYTES + REASON_BYTES);
|
|
10123
10123
|
const header = new Int32Array(shared, 0, HEADER_SLOTS);
|
|
10124
10124
|
const worker = new import_node_worker_threads.Worker(source, {
|
|
10125
10125
|
eval: true,
|
|
10126
|
-
workerData: { ...data, timeoutMs
|
|
10126
|
+
workerData: { ...data, timeoutMs, shared, ok: VERDICT_OK, failed: VERDICT_FAILED, headerSlots: HEADER_SLOTS }
|
|
10127
10127
|
});
|
|
10128
10128
|
worker.unref();
|
|
10129
10129
|
try {
|
|
10130
|
-
const waited = Atomics.wait(header, 0, VERDICT_PENDING,
|
|
10130
|
+
const waited = Atomics.wait(header, 0, VERDICT_PENDING, timeoutMs + PROBE_WAIT_MARGIN_MS);
|
|
10131
10131
|
const verdict = Atomics.load(header, 0);
|
|
10132
10132
|
if (waited === "timed-out" || verdict === VERDICT_PENDING) {
|
|
10133
|
-
return { ok: false, reason: `the probe did not finish within ${String(
|
|
10133
|
+
return { ok: false, reason: `the probe did not finish within ${String(timeoutMs + PROBE_WAIT_MARGIN_MS)}ms` };
|
|
10134
10134
|
}
|
|
10135
10135
|
if (verdict === VERDICT_OK) {
|
|
10136
10136
|
return { ok: true };
|
package/dist/index.mjs
CHANGED
|
@@ -4738,7 +4738,7 @@ var init_package = __esm({
|
|
|
4738
4738
|
"package.json"() {
|
|
4739
4739
|
package_default = {
|
|
4740
4740
|
name: "claude-use",
|
|
4741
|
-
version: "11.67.
|
|
4741
|
+
version: "11.67.4",
|
|
4742
4742
|
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.",
|
|
4743
4743
|
license: "MIT",
|
|
4744
4744
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -10084,27 +10084,27 @@ var init_targets = __esm({
|
|
|
10084
10084
|
|
|
10085
10085
|
// src/frontdoor/probe.ts
|
|
10086
10086
|
import { Worker } from "node:worker_threads";
|
|
10087
|
-
function probeFrontDoorSync(port, caPem) {
|
|
10087
|
+
function probeFrontDoorSync(port, caPem, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
10088
10088
|
refuseToBlockInRole("a synchronous probe of the front door");
|
|
10089
|
-
return runProbeWorker(PROBE_SOURCE, { port, ca: caPem });
|
|
10089
|
+
return runProbeWorker(PROBE_SOURCE, { port, ca: caPem }, timeoutMs);
|
|
10090
10090
|
}
|
|
10091
|
-
function probeListenerAcceptSync(port) {
|
|
10091
|
+
function probeListenerAcceptSync(port, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
10092
10092
|
refuseToBlockInRole("a synchronous probe of a front door listener");
|
|
10093
|
-
return runProbeWorker(ACCEPT_PROBE_SOURCE, { port });
|
|
10093
|
+
return runProbeWorker(ACCEPT_PROBE_SOURCE, { port }, timeoutMs);
|
|
10094
10094
|
}
|
|
10095
|
-
function runProbeWorker(source, data) {
|
|
10095
|
+
function runProbeWorker(source, data, timeoutMs) {
|
|
10096
10096
|
const shared = new SharedArrayBuffer(HEADER_SLOTS * INT32_BYTES + REASON_BYTES);
|
|
10097
10097
|
const header = new Int32Array(shared, 0, HEADER_SLOTS);
|
|
10098
10098
|
const worker = new Worker(source, {
|
|
10099
10099
|
eval: true,
|
|
10100
|
-
workerData: { ...data, timeoutMs
|
|
10100
|
+
workerData: { ...data, timeoutMs, shared, ok: VERDICT_OK, failed: VERDICT_FAILED, headerSlots: HEADER_SLOTS }
|
|
10101
10101
|
});
|
|
10102
10102
|
worker.unref();
|
|
10103
10103
|
try {
|
|
10104
|
-
const waited = Atomics.wait(header, 0, VERDICT_PENDING,
|
|
10104
|
+
const waited = Atomics.wait(header, 0, VERDICT_PENDING, timeoutMs + PROBE_WAIT_MARGIN_MS);
|
|
10105
10105
|
const verdict = Atomics.load(header, 0);
|
|
10106
10106
|
if (waited === "timed-out" || verdict === VERDICT_PENDING) {
|
|
10107
|
-
return { ok: false, reason: `the probe did not finish within ${String(
|
|
10107
|
+
return { ok: false, reason: `the probe did not finish within ${String(timeoutMs + PROBE_WAIT_MARGIN_MS)}ms` };
|
|
10108
10108
|
}
|
|
10109
10109
|
if (verdict === VERDICT_OK) {
|
|
10110
10110
|
return { ok: true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.67.
|
|
3
|
+
"version": "11.67.4",
|
|
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>",
|