claude-use 2.7.0 → 2.8.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/README.md +3 -0
- package/dist/cli.cjs +14 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,6 +84,9 @@ claude-use provider remove <name>
|
|
|
84
84
|
|
|
85
85
|
claude-use headroom status
|
|
86
86
|
|
|
87
|
+
claude @<identity> --headroom # one launch routed through headroom
|
|
88
|
+
claude --no-headroom # one launch routed direct, overriding every layer
|
|
89
|
+
|
|
87
90
|
claude-use rules add <path> [--profile <name>] [--identity <name>]
|
|
88
91
|
claude-use rules list
|
|
89
92
|
claude-use rules remove <path>
|
package/dist/cli.cjs
CHANGED
|
@@ -239649,7 +239649,7 @@ var program = new Command();
|
|
|
239649
239649
|
// package.json
|
|
239650
239650
|
var package_default = {
|
|
239651
239651
|
name: "claude-use",
|
|
239652
|
-
version: "2.
|
|
239652
|
+
version: "2.8.0",
|
|
239653
239653
|
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.",
|
|
239654
239654
|
license: "Apache-2.0",
|
|
239655
239655
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -266394,6 +266394,7 @@ function parseLauncherArgv(argv) {
|
|
|
266394
266394
|
const remaining = hasIdentity ? argv.slice(1) : argv;
|
|
266395
266395
|
let configProfile;
|
|
266396
266396
|
let provider;
|
|
266397
|
+
let headroom;
|
|
266397
266398
|
const categoryFlags = [];
|
|
266398
266399
|
const shareFlags = [];
|
|
266399
266400
|
const hideFlags = [];
|
|
@@ -266403,6 +266404,10 @@ function parseLauncherArgv(argv) {
|
|
|
266403
266404
|
if (token === void 0) {
|
|
266404
266405
|
continue;
|
|
266405
266406
|
}
|
|
266407
|
+
if (token === "--headroom" || token === "--no-headroom") {
|
|
266408
|
+
headroom = token === "--headroom";
|
|
266409
|
+
continue;
|
|
266410
|
+
}
|
|
266406
266411
|
const matched = matchValuedFlag(token);
|
|
266407
266412
|
if (matched === void 0) {
|
|
266408
266413
|
rest.push(token);
|
|
@@ -266436,6 +266441,7 @@ function parseLauncherArgv(argv) {
|
|
|
266436
266441
|
...hasIdentity ? { identity: first.slice(1) } : {},
|
|
266437
266442
|
...configProfile === void 0 ? {} : { configProfile },
|
|
266438
266443
|
...provider === void 0 ? {} : { provider },
|
|
266444
|
+
...headroom === void 0 ? {} : { headroom },
|
|
266439
266445
|
categoryFlags,
|
|
266440
266446
|
shareFlags,
|
|
266441
266447
|
hideFlags,
|
|
@@ -266557,7 +266563,8 @@ function resolveLaunchFlags(params) {
|
|
|
266557
266563
|
return {
|
|
266558
266564
|
skipPermissions: params.cascade?.skipPermissions === true || isEnvFlagSet(params.env.CLAUDE_USE_SKIP_PERMISSIONS),
|
|
266559
266565
|
remoteControl: params.cascade?.remoteControl === true || isEnvFlagSet(params.env.CLAUDE_USE_REMOTE_CONTROL),
|
|
266560
|
-
|
|
266566
|
+
// Precedence: an explicit --headroom/--no-headroom flag decides outright, then the CLAUDE_USE_HEADROOM escape hatch, then the cascade. The flag outranks the environment variable because it is the more deliberate of the two one-off forms (typed on this very command line, not inherited from a shell profile).
|
|
266567
|
+
headroom: params.headroomFlag ?? (isEnvFlagSet(params.env.CLAUDE_USE_HEADROOM) || params.cascade?.headroom === true)
|
|
266561
266568
|
};
|
|
266562
266569
|
}
|
|
266563
266570
|
function buildFlagArgs(flags) {
|
|
@@ -266784,7 +266791,11 @@ function runLauncher(params) {
|
|
|
266784
266791
|
cascadeLaunch = flattenLayers(assembleCascade(params.farm.loadCascade(configProfileDecision.name, cliOverride)).layers, { home: params.farm.home }).launch;
|
|
266785
266792
|
}
|
|
266786
266793
|
const discovered = params.resolveClaudeBinary();
|
|
266787
|
-
const resolvedFlags = resolveLaunchFlags({
|
|
266794
|
+
const resolvedFlags = resolveLaunchFlags({
|
|
266795
|
+
env,
|
|
266796
|
+
...cascadeLaunch === void 0 ? {} : { cascade: cascadeLaunch },
|
|
266797
|
+
...parsedArgv.headroom === void 0 ? {} : { headroomFlag: parsedArgv.headroom }
|
|
266798
|
+
});
|
|
266788
266799
|
let headroom;
|
|
266789
266800
|
const headroomPort = params.headroom;
|
|
266790
266801
|
if (resolvedFlags.headroom && headroomPort !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
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": "Apache-2.0",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|