claude-use 11.89.0 → 11.89.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 +6 -3
- package/dist/index.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/dist/types/index.d.ts +888 -886
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -36838,6 +36838,9 @@ function assessIdentity(member, nowMs) {
|
|
|
36838
36838
|
const state = member.snapshot?.providers[ANTHROPIC_PROVIDER];
|
|
36839
36839
|
const unified = unifiedOf(state);
|
|
36840
36840
|
if (member.snapshot === void 0 || state === void 0 || unified === void 0) {
|
|
36841
|
+
if (plan.kind === "pay-per-use") {
|
|
36842
|
+
return { candidate: { ...base, class: "pay-per-use", usageUnrecorded: true, reasons: [...planReasons, "no usage recorded yet, so its spend is not tracked (turn on trackUsage for it)"] } };
|
|
36843
|
+
}
|
|
36841
36844
|
return { candidate: { ...base, class: "unknown", reasons: ["no usage recorded yet, so its quota is unknown (turn on trackUsage for it)", ...planReasons] } };
|
|
36842
36845
|
}
|
|
36843
36846
|
const observedAgo = state.rateLimit === void 0 ? "" : ` (last seen ${formatAge(nowMs - Date.parse(state.rateLimit.observedAt))} ago)`;
|
|
@@ -36969,7 +36972,7 @@ function rankPool(input2) {
|
|
|
36969
36972
|
return { ...candidate, feasible: false, runsDryAtMs: nowMs + Math.min(...dryAfterMs), reasons: [...drySpots, ...candidate.reasons] };
|
|
36970
36973
|
});
|
|
36971
36974
|
const ordered = input2.preference === "listed" ? [...candidates] : [...candidates].sort(
|
|
36972
|
-
(left, right) => CLASS_ORDER[left.class] - CLASS_ORDER[right.class] || Number(left.policyDemoted ?? false) - Number(right.policyDemoted ?? false) || Number(right.feasible) - Number(left.feasible) || (right.headroom ?? 1) - (left.headroom ?? 1) || (right.score ?? 0) - (left.score ?? 0) || left.identity.localeCompare(right.identity)
|
|
36975
|
+
(left, right) => CLASS_ORDER[left.class] - CLASS_ORDER[right.class] || Number(left.policyDemoted ?? false) - Number(right.policyDemoted ?? false) || Number(right.feasible) - Number(left.feasible) || Number(left.usageUnrecorded ?? false) - Number(right.usageUnrecorded ?? false) || (right.headroom ?? 1) - (left.headroom ?? 1) || (right.score ?? 0) - (left.score ?? 0) || left.identity.localeCompare(right.identity)
|
|
36973
36976
|
);
|
|
36974
36977
|
const sticky = input2.sticky;
|
|
36975
36978
|
const stickyIndex = sticky === void 0 ? -1 : ordered.findIndex((candidate) => candidate.identity === sticky.identity);
|
|
@@ -41986,7 +41989,7 @@ var init_package = __esm({
|
|
|
41986
41989
|
"package.json"() {
|
|
41987
41990
|
package_default = {
|
|
41988
41991
|
name: "claude-use",
|
|
41989
|
-
version: "11.89.
|
|
41992
|
+
version: "11.89.1",
|
|
41990
41993
|
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.",
|
|
41991
41994
|
license: "MIT",
|
|
41992
41995
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -137375,7 +137378,7 @@ init_zod();
|
|
|
137375
137378
|
init_plan();
|
|
137376
137379
|
var PoolPickCandidateViewSchema = external_exports.strictObject({
|
|
137377
137380
|
identity: external_exports.string(),
|
|
137378
|
-
/** In pick order: `scored` has usable quota data, `unknown` has none, `pay-per-use` bills by use, `ineligible` is refused right now. */
|
|
137381
|
+
/** In pick order: `scored` has usable quota data, `unknown` has none and no plan known to bill by use, `pay-per-use` bills by use whether or not usage is recorded, `ineligible` is refused right now. */
|
|
137379
137382
|
class: external_exports.enum(["scored", "unknown", "pay-per-use", "ineligible"]),
|
|
137380
137383
|
/** Plan-size-weighted remaining quota per hour until its reset; present for `scored` only. */
|
|
137381
137384
|
score: external_exports.number().optional(),
|
package/dist/index.cjs
CHANGED
|
@@ -9238,6 +9238,9 @@ function assessIdentity(member, nowMs) {
|
|
|
9238
9238
|
const state = member.snapshot?.providers[ANTHROPIC_PROVIDER];
|
|
9239
9239
|
const unified = unifiedOf(state);
|
|
9240
9240
|
if (member.snapshot === void 0 || state === void 0 || unified === void 0) {
|
|
9241
|
+
if (plan.kind === "pay-per-use") {
|
|
9242
|
+
return { candidate: { ...base, class: "pay-per-use", usageUnrecorded: true, reasons: [...planReasons, "no usage recorded yet, so its spend is not tracked (turn on trackUsage for it)"] } };
|
|
9243
|
+
}
|
|
9241
9244
|
return { candidate: { ...base, class: "unknown", reasons: ["no usage recorded yet, so its quota is unknown (turn on trackUsage for it)", ...planReasons] } };
|
|
9242
9245
|
}
|
|
9243
9246
|
const observedAgo = state.rateLimit === void 0 ? "" : ` (last seen ${formatAge(nowMs - Date.parse(state.rateLimit.observedAt))} ago)`;
|
|
@@ -9369,7 +9372,7 @@ function rankPool(input) {
|
|
|
9369
9372
|
return { ...candidate, feasible: false, runsDryAtMs: nowMs + Math.min(...dryAfterMs), reasons: [...drySpots, ...candidate.reasons] };
|
|
9370
9373
|
});
|
|
9371
9374
|
const ordered = input.preference === "listed" ? [...candidates] : [...candidates].sort(
|
|
9372
|
-
(left, right) => CLASS_ORDER[left.class] - CLASS_ORDER[right.class] || Number(left.policyDemoted ?? false) - Number(right.policyDemoted ?? false) || Number(right.feasible) - Number(left.feasible) || (right.headroom ?? 1) - (left.headroom ?? 1) || (right.score ?? 0) - (left.score ?? 0) || left.identity.localeCompare(right.identity)
|
|
9375
|
+
(left, right) => CLASS_ORDER[left.class] - CLASS_ORDER[right.class] || Number(left.policyDemoted ?? false) - Number(right.policyDemoted ?? false) || Number(right.feasible) - Number(left.feasible) || Number(left.usageUnrecorded ?? false) - Number(right.usageUnrecorded ?? false) || (right.headroom ?? 1) - (left.headroom ?? 1) || (right.score ?? 0) - (left.score ?? 0) || left.identity.localeCompare(right.identity)
|
|
9373
9376
|
);
|
|
9374
9377
|
const sticky = input.sticky;
|
|
9375
9378
|
const stickyIndex = sticky === void 0 ? -1 : ordered.findIndex((candidate) => candidate.identity === sticky.identity);
|
|
@@ -10516,7 +10519,7 @@ var init_package = __esm({
|
|
|
10516
10519
|
"package.json"() {
|
|
10517
10520
|
package_default = {
|
|
10518
10521
|
name: "claude-use",
|
|
10519
|
-
version: "11.89.
|
|
10522
|
+
version: "11.89.1",
|
|
10520
10523
|
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.",
|
|
10521
10524
|
license: "MIT",
|
|
10522
10525
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -19361,7 +19364,7 @@ var import_zod27 = require("zod");
|
|
|
19361
19364
|
init_plan2();
|
|
19362
19365
|
var PoolPickCandidateViewSchema = import_zod27.z.strictObject({
|
|
19363
19366
|
identity: import_zod27.z.string(),
|
|
19364
|
-
/** In pick order: `scored` has usable quota data, `unknown` has none, `pay-per-use` bills by use, `ineligible` is refused right now. */
|
|
19367
|
+
/** In pick order: `scored` has usable quota data, `unknown` has none and no plan known to bill by use, `pay-per-use` bills by use whether or not usage is recorded, `ineligible` is refused right now. */
|
|
19365
19368
|
class: import_zod27.z.enum(["scored", "unknown", "pay-per-use", "ineligible"]),
|
|
19366
19369
|
/** Plan-size-weighted remaining quota per hour until its reset; present for `scored` only. */
|
|
19367
19370
|
score: import_zod27.z.number().optional(),
|
package/dist/index.mjs
CHANGED
|
@@ -9211,6 +9211,9 @@ function assessIdentity(member, nowMs) {
|
|
|
9211
9211
|
const state = member.snapshot?.providers[ANTHROPIC_PROVIDER];
|
|
9212
9212
|
const unified = unifiedOf(state);
|
|
9213
9213
|
if (member.snapshot === void 0 || state === void 0 || unified === void 0) {
|
|
9214
|
+
if (plan.kind === "pay-per-use") {
|
|
9215
|
+
return { candidate: { ...base, class: "pay-per-use", usageUnrecorded: true, reasons: [...planReasons, "no usage recorded yet, so its spend is not tracked (turn on trackUsage for it)"] } };
|
|
9216
|
+
}
|
|
9214
9217
|
return { candidate: { ...base, class: "unknown", reasons: ["no usage recorded yet, so its quota is unknown (turn on trackUsage for it)", ...planReasons] } };
|
|
9215
9218
|
}
|
|
9216
9219
|
const observedAgo = state.rateLimit === void 0 ? "" : ` (last seen ${formatAge(nowMs - Date.parse(state.rateLimit.observedAt))} ago)`;
|
|
@@ -9342,7 +9345,7 @@ function rankPool(input) {
|
|
|
9342
9345
|
return { ...candidate, feasible: false, runsDryAtMs: nowMs + Math.min(...dryAfterMs), reasons: [...drySpots, ...candidate.reasons] };
|
|
9343
9346
|
});
|
|
9344
9347
|
const ordered = input.preference === "listed" ? [...candidates] : [...candidates].sort(
|
|
9345
|
-
(left, right) => CLASS_ORDER[left.class] - CLASS_ORDER[right.class] || Number(left.policyDemoted ?? false) - Number(right.policyDemoted ?? false) || Number(right.feasible) - Number(left.feasible) || (right.headroom ?? 1) - (left.headroom ?? 1) || (right.score ?? 0) - (left.score ?? 0) || left.identity.localeCompare(right.identity)
|
|
9348
|
+
(left, right) => CLASS_ORDER[left.class] - CLASS_ORDER[right.class] || Number(left.policyDemoted ?? false) - Number(right.policyDemoted ?? false) || Number(right.feasible) - Number(left.feasible) || Number(left.usageUnrecorded ?? false) - Number(right.usageUnrecorded ?? false) || (right.headroom ?? 1) - (left.headroom ?? 1) || (right.score ?? 0) - (left.score ?? 0) || left.identity.localeCompare(right.identity)
|
|
9346
9349
|
);
|
|
9347
9350
|
const sticky = input.sticky;
|
|
9348
9351
|
const stickyIndex = sticky === void 0 ? -1 : ordered.findIndex((candidate) => candidate.identity === sticky.identity);
|
|
@@ -10489,7 +10492,7 @@ var init_package = __esm({
|
|
|
10489
10492
|
"package.json"() {
|
|
10490
10493
|
package_default = {
|
|
10491
10494
|
name: "claude-use",
|
|
10492
|
-
version: "11.89.
|
|
10495
|
+
version: "11.89.1",
|
|
10493
10496
|
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.",
|
|
10494
10497
|
license: "MIT",
|
|
10495
10498
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -18919,7 +18922,7 @@ init_plan2();
|
|
|
18919
18922
|
import { z as z27 } from "zod";
|
|
18920
18923
|
var PoolPickCandidateViewSchema = z27.strictObject({
|
|
18921
18924
|
identity: z27.string(),
|
|
18922
|
-
/** In pick order: `scored` has usable quota data, `unknown` has none, `pay-per-use` bills by use, `ineligible` is refused right now. */
|
|
18925
|
+
/** In pick order: `scored` has usable quota data, `unknown` has none and no plan known to bill by use, `pay-per-use` bills by use whether or not usage is recorded, `ineligible` is refused right now. */
|
|
18923
18926
|
class: z27.enum(["scored", "unknown", "pay-per-use", "ineligible"]),
|
|
18924
18927
|
/** Plan-size-weighted remaining quota per hour until its reset; present for `scored` only. */
|
|
18925
18928
|
score: z27.number().optional(),
|