claude-use 11.3.0 → 11.4.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 +14 -8
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -27111,7 +27111,7 @@ var init_schema = __esm({
|
|
|
27111
27111
|
context.addIssue({ code: "custom", path: ["readMaturation"], message: "readMaturation needs rolloutChannel beta or dev" });
|
|
27112
27112
|
}
|
|
27113
27113
|
});
|
|
27114
|
-
HEADROOM_DEFAULT_SOURCE = "headroom-ai[proxy] @ git+https://github.com/ExaDev/headroom@
|
|
27114
|
+
HEADROOM_DEFAULT_SOURCE = "headroom-ai[proxy] @ git+https://github.com/ExaDev/headroom@2dfa958e47814533751cdd0c5362d8f352ec5b75";
|
|
27115
27115
|
HEADROOM_DEFAULT_IDLE_SHUTDOWN_MINUTES = 15;
|
|
27116
27116
|
FRONTDOOR_DEFAULT_IDLE_SHUTDOWN_MINUTES = 15;
|
|
27117
27117
|
FrontDoorGlobalConfigSchema = external_exports.strictObject({
|
|
@@ -33976,7 +33976,7 @@ var init_package = __esm({
|
|
|
33976
33976
|
"package.json"() {
|
|
33977
33977
|
package_default = {
|
|
33978
33978
|
name: "claude-use",
|
|
33979
|
-
version: "11.
|
|
33979
|
+
version: "11.4.1",
|
|
33980
33980
|
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.",
|
|
33981
33981
|
license: "MIT",
|
|
33982
33982
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -113682,23 +113682,24 @@ function createHeadroomDecision(setting) {
|
|
|
113682
113682
|
}
|
|
113683
113683
|
const state = sessions.get(sessionId);
|
|
113684
113684
|
const forced = choice?.force !== void 0 && choice.force !== state?.appliedForce;
|
|
113685
|
-
const atBoundary = forced || state === void 0 || nowMs - state.lastEndedAtMs > PROMPT_CACHE_TTL_MS || state.
|
|
113685
|
+
const atBoundary = forced || state === void 0 || nowMs - state.lastEndedAtMs > PROMPT_CACHE_TTL_MS || state.cacheSurplusTokens <= 0;
|
|
113686
113686
|
const viaHeadroom = atBoundary ? wanted && await available() : state.viaHeadroom;
|
|
113687
113687
|
sessions.set(sessionId, {
|
|
113688
113688
|
viaHeadroom,
|
|
113689
113689
|
lastEndedAtMs: state?.lastEndedAtMs ?? nowMs,
|
|
113690
|
-
|
|
113690
|
+
cacheSurplusTokens: state?.cacheSurplusTokens ?? 0,
|
|
113691
113691
|
appliedForce: choice?.force ?? state?.appliedForce
|
|
113692
113692
|
});
|
|
113693
113693
|
return viaHeadroom;
|
|
113694
113694
|
},
|
|
113695
|
-
observe: ({ sessionId, endedAtMs,
|
|
113696
|
-
if (sessionId === void 0 ||
|
|
113695
|
+
observe: ({ sessionId, endedAtMs, cache }) => {
|
|
113696
|
+
if (sessionId === void 0 || cache === void 0) {
|
|
113697
113697
|
return;
|
|
113698
113698
|
}
|
|
113699
|
+
const cacheSurplusTokens = cache.readTokens - cache.writtenTokens - cache.uncachedTokens;
|
|
113699
113700
|
const state = sessions.get(sessionId);
|
|
113700
113701
|
if (state !== void 0) {
|
|
113701
|
-
sessions.set(sessionId, { ...state, lastEndedAtMs: endedAtMs,
|
|
113702
|
+
sessions.set(sessionId, { ...state, lastEndedAtMs: endedAtMs, cacheSurplusTokens });
|
|
113702
113703
|
}
|
|
113703
113704
|
for (const [id2, held] of sessions) {
|
|
113704
113705
|
if (endedAtMs - held.lastEndedAtMs > PROMPT_CACHE_TTL_MS) {
|
|
@@ -130902,7 +130903,12 @@ function realFrontDoorSupervisorPorts(paths) {
|
|
|
130902
130903
|
const usageMiddleware = createUsageMiddleware({
|
|
130903
130904
|
// Each finished response also tells the per-session headroom decision when the session's cache was last touched and whether it read from it.
|
|
130904
130905
|
record: (record2) => {
|
|
130905
|
-
|
|
130906
|
+
const { usage } = record2;
|
|
130907
|
+
headroomDecision.observe({
|
|
130908
|
+
sessionId: record2.sessionId,
|
|
130909
|
+
endedAtMs: Date.parse(record2.at) + record2.durationMs,
|
|
130910
|
+
cache: usage === void 0 ? void 0 : { readTokens: usage.cacheReadInputTokens ?? 0, writtenTokens: usage.cacheCreationInputTokens ?? 0, uncachedTokens: usage.inputTokens ?? 0 }
|
|
130911
|
+
});
|
|
130906
130912
|
recordUsage(record2);
|
|
130907
130913
|
},
|
|
130908
130914
|
defer: (task) => {
|
package/dist/index.cjs
CHANGED
|
@@ -472,7 +472,7 @@ var init_schema = __esm({
|
|
|
472
472
|
context.addIssue({ code: "custom", path: ["readMaturation"], message: "readMaturation needs rolloutChannel beta or dev" });
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
HEADROOM_DEFAULT_SOURCE = "headroom-ai[proxy] @ git+https://github.com/ExaDev/headroom@
|
|
475
|
+
HEADROOM_DEFAULT_SOURCE = "headroom-ai[proxy] @ git+https://github.com/ExaDev/headroom@2dfa958e47814533751cdd0c5362d8f352ec5b75";
|
|
476
476
|
HEADROOM_DEFAULT_IDLE_SHUTDOWN_MINUTES = 15;
|
|
477
477
|
FrontDoorGlobalConfigSchema = import_zod.z.strictObject({
|
|
478
478
|
/** How long the front door may sit with no registered sessions before it closes and exits. Defaults to FRONTDOOR_DEFAULT_IDLE_SHUTDOWN_MINUTES. */
|
|
@@ -2758,7 +2758,7 @@ var init_package = __esm({
|
|
|
2758
2758
|
"package.json"() {
|
|
2759
2759
|
package_default = {
|
|
2760
2760
|
name: "claude-use",
|
|
2761
|
-
version: "11.
|
|
2761
|
+
version: "11.4.1",
|
|
2762
2762
|
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.",
|
|
2763
2763
|
license: "MIT",
|
|
2764
2764
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
package/dist/index.mjs
CHANGED
|
@@ -450,7 +450,7 @@ var init_schema = __esm({
|
|
|
450
450
|
context.addIssue({ code: "custom", path: ["readMaturation"], message: "readMaturation needs rolloutChannel beta or dev" });
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
|
-
HEADROOM_DEFAULT_SOURCE = "headroom-ai[proxy] @ git+https://github.com/ExaDev/headroom@
|
|
453
|
+
HEADROOM_DEFAULT_SOURCE = "headroom-ai[proxy] @ git+https://github.com/ExaDev/headroom@2dfa958e47814533751cdd0c5362d8f352ec5b75";
|
|
454
454
|
HEADROOM_DEFAULT_IDLE_SHUTDOWN_MINUTES = 15;
|
|
455
455
|
FrontDoorGlobalConfigSchema = z.strictObject({
|
|
456
456
|
/** How long the front door may sit with no registered sessions before it closes and exits. Defaults to FRONTDOOR_DEFAULT_IDLE_SHUTDOWN_MINUTES. */
|
|
@@ -2734,7 +2734,7 @@ var init_package = __esm({
|
|
|
2734
2734
|
"package.json"() {
|
|
2735
2735
|
package_default = {
|
|
2736
2736
|
name: "claude-use",
|
|
2737
|
-
version: "11.
|
|
2737
|
+
version: "11.4.1",
|
|
2738
2738
|
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.",
|
|
2739
2739
|
license: "MIT",
|
|
2740
2740
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.1",
|
|
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>",
|