claude-use 11.57.1 → 11.58.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 +1102 -630
- package/dist/index.cjs +18 -4
- package/dist/index.mjs +18 -4
- package/dist/types/index.d.ts +331 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -190,7 +190,7 @@ function resolveStatusline(settings) {
|
|
|
190
190
|
}
|
|
191
191
|
return resolved;
|
|
192
192
|
}
|
|
193
|
-
var import_string_width2, import_zod, STATUSLINE_HEADER_SEGMENTS, STATUSLINE_ROWS, STATUSLINE_COLOUR_NAMES, DEFAULT_HEADER_SEGMENTS, DEFAULT_ROWS, STATUSLINE_PATH_LEVELS, STATUSLINE_USAGE_VALUES, STATUSLINE_TIME_FORMATS, STATUSLINE_HOUR_CYCLES, MAX_PERCENT, MAX_STATUSLINE_PALETTE_INDEX, MAX_STATUSLINE_LABEL_COLUMNS, MAX_BAR_CELLS, MAX_ACCOUNT_USER_CHARS, MAX_DISPLAY_TEXT_CHARS, LABEL_RE2, OPTIONAL_LABEL_RE, colourValue, barCharacter, labelText, overrideText, wholePercent, thresholdPercent, SHAPES, StatuslineSchema, ResolvedStatuslineSchema, STATUSLINE_DEFAULTS, STATUSLINE_ENV;
|
|
193
|
+
var import_string_width2, import_zod, STATUSLINE_HEADER_SEGMENTS, STATUSLINE_ROWS, STATUSLINE_SESSION_TIME_PARTS, PROMPT_CACHE_TTL_SECONDS, STATUSLINE_COLOUR_NAMES, DEFAULT_HEADER_SEGMENTS, DEFAULT_ROWS, STATUSLINE_PATH_LEVELS, STATUSLINE_USAGE_VALUES, STATUSLINE_TIME_FORMATS, STATUSLINE_HOUR_CYCLES, MAX_PERCENT, MAX_STATUSLINE_PALETTE_INDEX, MAX_STATUSLINE_LABEL_COLUMNS, MAX_BAR_CELLS, MAX_ACCOUNT_USER_CHARS, MAX_DISPLAY_TEXT_CHARS, LABEL_RE2, OPTIONAL_LABEL_RE, colourValue, barCharacter, labelText, overrideText, wholePercent, thresholdPercent, SHAPES, StatuslineSchema, ResolvedStatuslineSchema, STATUSLINE_DEFAULTS, STATUSLINE_ENV;
|
|
194
194
|
var init_statusline = __esm({
|
|
195
195
|
"src/config/statusline.ts"() {
|
|
196
196
|
"use strict";
|
|
@@ -198,8 +198,10 @@ var init_statusline = __esm({
|
|
|
198
198
|
import_zod = require("zod");
|
|
199
199
|
init_blank();
|
|
200
200
|
init_graphemes();
|
|
201
|
-
STATUSLINE_HEADER_SEGMENTS = ["model", "provider", "route", "account", "identity", "headroom", "project", "vcs", "effort", "advisor", "version", "outputStyle", "cost", "dailyCost"];
|
|
202
|
-
STATUSLINE_ROWS = ["context", "quota", "addedDirs", "gitFiles", "memory", "environment"];
|
|
201
|
+
STATUSLINE_HEADER_SEGMENTS = ["model", "provider", "route", "account", "identity", "headroom", "project", "vcs", "effort", "advisor", "version", "outputStyle", "cost", "dailyCost", "sessionName", "duration", "speed"];
|
|
202
|
+
STATUSLINE_ROWS = ["context", "quota", "addedDirs", "gitFiles", "memory", "environment", "sessionTime", "promptCache", "compactions"];
|
|
203
|
+
STATUSLINE_SESSION_TIME_PARTS = ["started", "lastReply"];
|
|
204
|
+
PROMPT_CACHE_TTL_SECONDS = { fiveMinutes: 300, oneHour: 3600 };
|
|
203
205
|
STATUSLINE_COLOUR_NAMES = [
|
|
204
206
|
"default",
|
|
205
207
|
"dim",
|
|
@@ -296,6 +298,12 @@ var init_statusline = __esm({
|
|
|
296
298
|
environment: {
|
|
297
299
|
threshold: import_zod.z.number().int().min(0).describe("The fewest configuration items in total (CLAUDE.md files, rules, MCP servers and hook events) that must exist for the environment row to draw its counts.")
|
|
298
300
|
},
|
|
301
|
+
sessionTime: {
|
|
302
|
+
parts: distinctList(import_zod.z.enum(STATUSLINE_SESSION_TIME_PARTS)).describe("The parts of the sessionTime row to draw, in drawing order: when the session started, and how long ago the last response was written; a part left out is hidden, and an empty list hides the row.")
|
|
303
|
+
},
|
|
304
|
+
promptCache: {
|
|
305
|
+
ttlSeconds: import_zod.z.number().int().min(1).describe("How long the prompt cache lives, in seconds, when the transcript has not yet shown which tier the session writes (five minutes or one hour); the tier the transcript shows takes over once it does.")
|
|
306
|
+
},
|
|
299
307
|
colours: {
|
|
300
308
|
context: colourValue.describe("The colour of the context bar and its figures below the warning threshold."),
|
|
301
309
|
usage: colourValue.describe("The colour of the quota bars and their figures below the warning threshold."),
|
|
@@ -342,6 +350,8 @@ var init_statusline = __esm({
|
|
|
342
350
|
clock: import_zod.z.strictObject(SHAPES.clock).partial().optional(),
|
|
343
351
|
cost: import_zod.z.strictObject(SHAPES.cost).partial().optional(),
|
|
344
352
|
environment: import_zod.z.strictObject(SHAPES.environment).partial().optional(),
|
|
353
|
+
sessionTime: import_zod.z.strictObject(SHAPES.sessionTime).partial().optional(),
|
|
354
|
+
promptCache: import_zod.z.strictObject(SHAPES.promptCache).partial().optional(),
|
|
345
355
|
colours: import_zod.z.strictObject(SHAPES.colours).partial().optional(),
|
|
346
356
|
project: import_zod.z.strictObject(SHAPES.project).partial().optional(),
|
|
347
357
|
git: import_zod.z.strictObject(SHAPES.git).partial().optional(),
|
|
@@ -361,6 +371,8 @@ var init_statusline = __esm({
|
|
|
361
371
|
clock: import_zod.z.strictObject(SHAPES.clock),
|
|
362
372
|
cost: import_zod.z.strictObject(SHAPES.cost),
|
|
363
373
|
environment: import_zod.z.strictObject(SHAPES.environment),
|
|
374
|
+
sessionTime: import_zod.z.strictObject(SHAPES.sessionTime),
|
|
375
|
+
promptCache: import_zod.z.strictObject(SHAPES.promptCache),
|
|
364
376
|
colours: import_zod.z.strictObject(SHAPES.colours),
|
|
365
377
|
project: import_zod.z.strictObject(SHAPES.project),
|
|
366
378
|
git: import_zod.z.strictObject(SHAPES.git),
|
|
@@ -380,6 +392,8 @@ var init_statusline = __esm({
|
|
|
380
392
|
clock: { hourCycle: "auto", seconds: false },
|
|
381
393
|
cost: { routed: false },
|
|
382
394
|
environment: { threshold: 0 },
|
|
395
|
+
sessionTime: { parts: [...STATUSLINE_SESSION_TIME_PARTS] },
|
|
396
|
+
promptCache: { ttlSeconds: PROMPT_CACHE_TTL_SECONDS.fiveMinutes },
|
|
383
397
|
colours: {
|
|
384
398
|
context: "green",
|
|
385
399
|
usage: "green",
|
|
@@ -4462,7 +4476,7 @@ var init_package = __esm({
|
|
|
4462
4476
|
"package.json"() {
|
|
4463
4477
|
package_default = {
|
|
4464
4478
|
name: "claude-use",
|
|
4465
|
-
version: "11.
|
|
4479
|
+
version: "11.58.0",
|
|
4466
4480
|
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.",
|
|
4467
4481
|
license: "MIT",
|
|
4468
4482
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
package/dist/index.mjs
CHANGED
|
@@ -170,14 +170,16 @@ function resolveStatusline(settings) {
|
|
|
170
170
|
}
|
|
171
171
|
return resolved;
|
|
172
172
|
}
|
|
173
|
-
var STATUSLINE_HEADER_SEGMENTS, STATUSLINE_ROWS, STATUSLINE_COLOUR_NAMES, DEFAULT_HEADER_SEGMENTS, DEFAULT_ROWS, STATUSLINE_PATH_LEVELS, STATUSLINE_USAGE_VALUES, STATUSLINE_TIME_FORMATS, STATUSLINE_HOUR_CYCLES, MAX_PERCENT, MAX_STATUSLINE_PALETTE_INDEX, MAX_STATUSLINE_LABEL_COLUMNS, MAX_BAR_CELLS, MAX_ACCOUNT_USER_CHARS, MAX_DISPLAY_TEXT_CHARS, LABEL_RE2, OPTIONAL_LABEL_RE, colourValue, barCharacter, labelText, overrideText, wholePercent, thresholdPercent, SHAPES, StatuslineSchema, ResolvedStatuslineSchema, STATUSLINE_DEFAULTS, STATUSLINE_ENV;
|
|
173
|
+
var STATUSLINE_HEADER_SEGMENTS, STATUSLINE_ROWS, STATUSLINE_SESSION_TIME_PARTS, PROMPT_CACHE_TTL_SECONDS, STATUSLINE_COLOUR_NAMES, DEFAULT_HEADER_SEGMENTS, DEFAULT_ROWS, STATUSLINE_PATH_LEVELS, STATUSLINE_USAGE_VALUES, STATUSLINE_TIME_FORMATS, STATUSLINE_HOUR_CYCLES, MAX_PERCENT, MAX_STATUSLINE_PALETTE_INDEX, MAX_STATUSLINE_LABEL_COLUMNS, MAX_BAR_CELLS, MAX_ACCOUNT_USER_CHARS, MAX_DISPLAY_TEXT_CHARS, LABEL_RE2, OPTIONAL_LABEL_RE, colourValue, barCharacter, labelText, overrideText, wholePercent, thresholdPercent, SHAPES, StatuslineSchema, ResolvedStatuslineSchema, STATUSLINE_DEFAULTS, STATUSLINE_ENV;
|
|
174
174
|
var init_statusline = __esm({
|
|
175
175
|
"src/config/statusline.ts"() {
|
|
176
176
|
"use strict";
|
|
177
177
|
init_blank();
|
|
178
178
|
init_graphemes();
|
|
179
|
-
STATUSLINE_HEADER_SEGMENTS = ["model", "provider", "route", "account", "identity", "headroom", "project", "vcs", "effort", "advisor", "version", "outputStyle", "cost", "dailyCost"];
|
|
180
|
-
STATUSLINE_ROWS = ["context", "quota", "addedDirs", "gitFiles", "memory", "environment"];
|
|
179
|
+
STATUSLINE_HEADER_SEGMENTS = ["model", "provider", "route", "account", "identity", "headroom", "project", "vcs", "effort", "advisor", "version", "outputStyle", "cost", "dailyCost", "sessionName", "duration", "speed"];
|
|
180
|
+
STATUSLINE_ROWS = ["context", "quota", "addedDirs", "gitFiles", "memory", "environment", "sessionTime", "promptCache", "compactions"];
|
|
181
|
+
STATUSLINE_SESSION_TIME_PARTS = ["started", "lastReply"];
|
|
182
|
+
PROMPT_CACHE_TTL_SECONDS = { fiveMinutes: 300, oneHour: 3600 };
|
|
181
183
|
STATUSLINE_COLOUR_NAMES = [
|
|
182
184
|
"default",
|
|
183
185
|
"dim",
|
|
@@ -274,6 +276,12 @@ var init_statusline = __esm({
|
|
|
274
276
|
environment: {
|
|
275
277
|
threshold: z.number().int().min(0).describe("The fewest configuration items in total (CLAUDE.md files, rules, MCP servers and hook events) that must exist for the environment row to draw its counts.")
|
|
276
278
|
},
|
|
279
|
+
sessionTime: {
|
|
280
|
+
parts: distinctList(z.enum(STATUSLINE_SESSION_TIME_PARTS)).describe("The parts of the sessionTime row to draw, in drawing order: when the session started, and how long ago the last response was written; a part left out is hidden, and an empty list hides the row.")
|
|
281
|
+
},
|
|
282
|
+
promptCache: {
|
|
283
|
+
ttlSeconds: z.number().int().min(1).describe("How long the prompt cache lives, in seconds, when the transcript has not yet shown which tier the session writes (five minutes or one hour); the tier the transcript shows takes over once it does.")
|
|
284
|
+
},
|
|
277
285
|
colours: {
|
|
278
286
|
context: colourValue.describe("The colour of the context bar and its figures below the warning threshold."),
|
|
279
287
|
usage: colourValue.describe("The colour of the quota bars and their figures below the warning threshold."),
|
|
@@ -320,6 +328,8 @@ var init_statusline = __esm({
|
|
|
320
328
|
clock: z.strictObject(SHAPES.clock).partial().optional(),
|
|
321
329
|
cost: z.strictObject(SHAPES.cost).partial().optional(),
|
|
322
330
|
environment: z.strictObject(SHAPES.environment).partial().optional(),
|
|
331
|
+
sessionTime: z.strictObject(SHAPES.sessionTime).partial().optional(),
|
|
332
|
+
promptCache: z.strictObject(SHAPES.promptCache).partial().optional(),
|
|
323
333
|
colours: z.strictObject(SHAPES.colours).partial().optional(),
|
|
324
334
|
project: z.strictObject(SHAPES.project).partial().optional(),
|
|
325
335
|
git: z.strictObject(SHAPES.git).partial().optional(),
|
|
@@ -339,6 +349,8 @@ var init_statusline = __esm({
|
|
|
339
349
|
clock: z.strictObject(SHAPES.clock),
|
|
340
350
|
cost: z.strictObject(SHAPES.cost),
|
|
341
351
|
environment: z.strictObject(SHAPES.environment),
|
|
352
|
+
sessionTime: z.strictObject(SHAPES.sessionTime),
|
|
353
|
+
promptCache: z.strictObject(SHAPES.promptCache),
|
|
342
354
|
colours: z.strictObject(SHAPES.colours),
|
|
343
355
|
project: z.strictObject(SHAPES.project),
|
|
344
356
|
git: z.strictObject(SHAPES.git),
|
|
@@ -358,6 +370,8 @@ var init_statusline = __esm({
|
|
|
358
370
|
clock: { hourCycle: "auto", seconds: false },
|
|
359
371
|
cost: { routed: false },
|
|
360
372
|
environment: { threshold: 0 },
|
|
373
|
+
sessionTime: { parts: [...STATUSLINE_SESSION_TIME_PARTS] },
|
|
374
|
+
promptCache: { ttlSeconds: PROMPT_CACHE_TTL_SECONDS.fiveMinutes },
|
|
361
375
|
colours: {
|
|
362
376
|
context: "green",
|
|
363
377
|
usage: "green",
|
|
@@ -4438,7 +4452,7 @@ var init_package = __esm({
|
|
|
4438
4452
|
"package.json"() {
|
|
4439
4453
|
package_default = {
|
|
4440
4454
|
name: "claude-use",
|
|
4441
|
-
version: "11.
|
|
4455
|
+
version: "11.58.0",
|
|
4442
4456
|
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.",
|
|
4443
4457
|
license: "MIT",
|
|
4444
4458
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|