claude-use 11.70.1 → 11.71.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/dist/cli.cjs +14 -11
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/types/index.d.ts +870 -870
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -25715,7 +25715,7 @@ var init_statusline = __esm({
|
|
|
25715
25715
|
usage: {
|
|
25716
25716
|
value: external_exports.enum(STATUSLINE_USAGE_VALUES).describe("Whether a quota window's figure is the share of it used or the share left; the bar and the colour always follow the share used."),
|
|
25717
25717
|
bar: external_exports.boolean().describe("Whether each quota window is drawn as a bar, or as text alone."),
|
|
25718
|
-
compact: external_exports.boolean().describe("Whether the quota windows are drawn as one short line of text (`5h: 25
|
|
25718
|
+
compact: external_exports.boolean().describe("Whether the quota windows are drawn as one short line of text (`5h: 25% (1h 30m)`) in place of bars; it takes precedence over usage.bar."),
|
|
25719
25719
|
resetLabel: external_exports.boolean().describe("Whether a window's reset time is introduced with `resets in` (`resets` for a wall-clock time), as in `(resets in 1h 30m)`, rather than the bare `(1h 30m)`."),
|
|
25720
25720
|
modelScoped: external_exports.boolean().describe("Whether the per-model weekly windows the client reports (rate_limits.model_scoped) are drawn after the five-hour and weekly windows (one reported with a null, missing or non-numeric figure is drawn as two hyphens beside its reset); they describe the signed-in account, so a session that selected a provider never shows them, nor does a Bedrock session, whose subscription windows do not apply."),
|
|
25721
25721
|
timeFormat: external_exports.enum(STATUSLINE_TIME_FORMATS).describe("How a window's reset is shown: the time left (`1h 30m`), the wall-clock time (`at 14:30`), both, the share of the window already gone (`53% elapsed`), or that share and the wall-clock time. A window whose length is not known shows no share."),
|
|
@@ -37387,7 +37387,7 @@ var init_package = __esm({
|
|
|
37387
37387
|
"package.json"() {
|
|
37388
37388
|
package_default = {
|
|
37389
37389
|
name: "claude-use",
|
|
37390
|
-
version: "11.
|
|
37390
|
+
version: "11.71.0",
|
|
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>",
|
|
@@ -142739,6 +142739,13 @@ function contextFrameOf(input2) {
|
|
|
142739
142739
|
return drawn;
|
|
142740
142740
|
}
|
|
142741
142741
|
|
|
142742
|
+
// src/statusline/percent.ts
|
|
142743
|
+
var WRITTEN_PERCENT_DECIMALS = 1;
|
|
142744
|
+
function writtenPercent(percent2) {
|
|
142745
|
+
const rounded = Number(percent2.toFixed(WRITTEN_PERCENT_DECIMALS));
|
|
142746
|
+
return Number.isInteger(rounded) ? String(rounded) : rounded.toFixed(WRITTEN_PERCENT_DECIMALS);
|
|
142747
|
+
}
|
|
142748
|
+
|
|
142742
142749
|
// src/statusline/elements/context.ts
|
|
142743
142750
|
function barStyleOf({ settings: settings2, palette }, okRole) {
|
|
142744
142751
|
return { bands: settings2.bands, palette, okRole, gradient: settings2.bar.gradient, filled: settings2.bar.filled, empty: settings2.bar.empty };
|
|
@@ -142764,10 +142771,6 @@ function windowTokensOf({ settings: settings2, view }) {
|
|
|
142764
142771
|
return settings2.context.autoCompactWindow ?? view.contextWindowTokens;
|
|
142765
142772
|
}
|
|
142766
142773
|
var ROUNDING_HALF_POINT = 0.5;
|
|
142767
|
-
var WINDOW_PERCENT_DECIMALS = 1;
|
|
142768
|
-
function writtenWindowPercent(percent2) {
|
|
142769
|
-
return percent2.toFixed(WINDOW_PERCENT_DECIMALS);
|
|
142770
|
-
}
|
|
142771
142774
|
function bufferedPercent(tokens, windowTokens) {
|
|
142772
142775
|
const held = tokens / windowTokens;
|
|
142773
142776
|
const ramp = Math.max(0, Math.min(1, (held - AUTOCOMPACT_RESERVE_RAMP_START) / (AUTOCOMPACT_RESERVE_RAMP_END - AUTOCOMPACT_RESERVE_RAMP_START)));
|
|
@@ -142799,7 +142802,7 @@ function breakdownText(frame, t10) {
|
|
|
142799
142802
|
function drawnContextFrameOf(context) {
|
|
142800
142803
|
const { payload } = context;
|
|
142801
142804
|
const percent2 = usedPercentOf(context);
|
|
142802
|
-
const drawsPercent = percent2 !== void 0 && Number(
|
|
142805
|
+
const drawsPercent = percent2 !== void 0 && Number(writtenPercent(percent2)) > 0;
|
|
142803
142806
|
return contextFrameOf({ ports: context.ports, transcriptPath: payload.transcript_path, frame: payload.context_window, drawsPercent, nowMs: context.nowMs, compaction: () => context.transcript()?.session.lastCompaction });
|
|
142804
142807
|
}
|
|
142805
142808
|
function drawnContextOf(input2) {
|
|
@@ -142822,7 +142825,7 @@ function contextRow(input2) {
|
|
|
142822
142825
|
const windowTokens = windowTokensOf(context);
|
|
142823
142826
|
const tokens = view.contextTotalTokens;
|
|
142824
142827
|
const heldAgainstWindow = tokens === void 0 || windowTokens === void 0 ? void 0 : `${formatTokens(tokens)}/${formatTokens(windowTokens)}`;
|
|
142825
|
-
const percentText = withColor(color, `${
|
|
142828
|
+
const percentText = withColor(color, `${writtenPercent(percent2)}%`);
|
|
142826
142829
|
const beforeBar = [];
|
|
142827
142830
|
const afterBar = [];
|
|
142828
142831
|
switch (settings2.context.value) {
|
|
@@ -142843,7 +142846,7 @@ function contextRow(input2) {
|
|
|
142843
142846
|
break;
|
|
142844
142847
|
}
|
|
142845
142848
|
case "remaining":
|
|
142846
|
-
afterBar.push(withColor(color, `${
|
|
142849
|
+
afterBar.push(withColor(color, `${writtenPercent(Math.max(0, FULL_PERCENT3 - percent2))}%`));
|
|
142847
142850
|
break;
|
|
142848
142851
|
default:
|
|
142849
142852
|
return settings2.context.value;
|
|
@@ -143079,7 +143082,7 @@ function memoryRow(context) {
|
|
|
143079
143082
|
if (use2 !== void 0 && use2.totalBytes > 0) {
|
|
143080
143083
|
const style = barStyleOf(context, "usage");
|
|
143081
143084
|
const fraction = Math.max(0, Math.min(1, use2.usedBytes / use2.totalBytes));
|
|
143082
|
-
const percent2 = withColor(statusColor(fraction, true, style), `${(fraction * FULL_PERCENT3)
|
|
143085
|
+
const percent2 = withColor(statusColor(fraction, true, style), `${writtenPercent(fraction * FULL_PERCENT3)}%`);
|
|
143083
143086
|
cells.push(barCell(context.palette.paint("label", `${context.t("memory.label")} `), ` ${percent2} (${formatBytes(use2.usedBytes)} / ${formatBytes(use2.totalBytes)})`, fraction, style));
|
|
143084
143087
|
}
|
|
143085
143088
|
return { kind: "bars", cells };
|
|
@@ -143243,7 +143246,7 @@ function figuresOf(window, context, style) {
|
|
|
143243
143246
|
const clamped = Math.max(0, Math.min(1, window.fraction));
|
|
143244
143247
|
const used = window.fraction * FULL_PERCENT3;
|
|
143245
143248
|
const shown = settings2.usage.value === "remaining" ? Math.max(0, FULL_PERCENT3 - used) : used;
|
|
143246
|
-
return { value: withColor(statusColor(clamped, true, style), `${shown
|
|
143249
|
+
return { value: withColor(statusColor(clamped, true, style), `${writtenPercent(shown)}%`), reset, plainReset };
|
|
143247
143250
|
}
|
|
143248
143251
|
function parenthesised(reset) {
|
|
143249
143252
|
return reset === "" ? "" : `(${reset})`;
|
package/dist/index.cjs
CHANGED
|
@@ -492,7 +492,7 @@ var init_statusline = __esm({
|
|
|
492
492
|
usage: {
|
|
493
493
|
value: import_zod2.z.enum(STATUSLINE_USAGE_VALUES).describe("Whether a quota window's figure is the share of it used or the share left; the bar and the colour always follow the share used."),
|
|
494
494
|
bar: import_zod2.z.boolean().describe("Whether each quota window is drawn as a bar, or as text alone."),
|
|
495
|
-
compact: import_zod2.z.boolean().describe("Whether the quota windows are drawn as one short line of text (`5h: 25
|
|
495
|
+
compact: import_zod2.z.boolean().describe("Whether the quota windows are drawn as one short line of text (`5h: 25% (1h 30m)`) in place of bars; it takes precedence over usage.bar."),
|
|
496
496
|
resetLabel: import_zod2.z.boolean().describe("Whether a window's reset time is introduced with `resets in` (`resets` for a wall-clock time), as in `(resets in 1h 30m)`, rather than the bare `(1h 30m)`."),
|
|
497
497
|
modelScoped: import_zod2.z.boolean().describe("Whether the per-model weekly windows the client reports (rate_limits.model_scoped) are drawn after the five-hour and weekly windows (one reported with a null, missing or non-numeric figure is drawn as two hyphens beside its reset); they describe the signed-in account, so a session that selected a provider never shows them, nor does a Bedrock session, whose subscription windows do not apply."),
|
|
498
498
|
timeFormat: import_zod2.z.enum(STATUSLINE_TIME_FORMATS).describe("How a window's reset is shown: the time left (`1h 30m`), the wall-clock time (`at 14:30`), both, the share of the window already gone (`53% elapsed`), or that share and the wall-clock time. A window whose length is not known shows no share."),
|
|
@@ -4762,7 +4762,7 @@ var init_package = __esm({
|
|
|
4762
4762
|
"package.json"() {
|
|
4763
4763
|
package_default = {
|
|
4764
4764
|
name: "claude-use",
|
|
4765
|
-
version: "11.
|
|
4765
|
+
version: "11.71.0",
|
|
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>",
|
package/dist/index.mjs
CHANGED
|
@@ -470,7 +470,7 @@ var init_statusline = __esm({
|
|
|
470
470
|
usage: {
|
|
471
471
|
value: z2.enum(STATUSLINE_USAGE_VALUES).describe("Whether a quota window's figure is the share of it used or the share left; the bar and the colour always follow the share used."),
|
|
472
472
|
bar: z2.boolean().describe("Whether each quota window is drawn as a bar, or as text alone."),
|
|
473
|
-
compact: z2.boolean().describe("Whether the quota windows are drawn as one short line of text (`5h: 25
|
|
473
|
+
compact: z2.boolean().describe("Whether the quota windows are drawn as one short line of text (`5h: 25% (1h 30m)`) in place of bars; it takes precedence over usage.bar."),
|
|
474
474
|
resetLabel: z2.boolean().describe("Whether a window's reset time is introduced with `resets in` (`resets` for a wall-clock time), as in `(resets in 1h 30m)`, rather than the bare `(1h 30m)`."),
|
|
475
475
|
modelScoped: z2.boolean().describe("Whether the per-model weekly windows the client reports (rate_limits.model_scoped) are drawn after the five-hour and weekly windows (one reported with a null, missing or non-numeric figure is drawn as two hyphens beside its reset); they describe the signed-in account, so a session that selected a provider never shows them, nor does a Bedrock session, whose subscription windows do not apply."),
|
|
476
476
|
timeFormat: z2.enum(STATUSLINE_TIME_FORMATS).describe("How a window's reset is shown: the time left (`1h 30m`), the wall-clock time (`at 14:30`), both, the share of the window already gone (`53% elapsed`), or that share and the wall-clock time. A window whose length is not known shows no share."),
|
|
@@ -4738,7 +4738,7 @@ var init_package = __esm({
|
|
|
4738
4738
|
"package.json"() {
|
|
4739
4739
|
package_default = {
|
|
4740
4740
|
name: "claude-use",
|
|
4741
|
-
version: "11.
|
|
4741
|
+
version: "11.71.0",
|
|
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>",
|