claude-use 11.68.0 → 11.68.2
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 +56 -5
- package/dist/index.cjs +41 -4
- package/dist/index.mjs +41 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -37387,7 +37387,7 @@ var init_package = __esm({
|
|
|
37387
37387
|
"package.json"() {
|
|
37388
37388
|
package_default = {
|
|
37389
37389
|
name: "claude-use",
|
|
37390
|
-
version: "11.68.
|
|
37390
|
+
version: "11.68.2",
|
|
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>",
|
|
@@ -67638,6 +67638,41 @@ var init_claudeSession = __esm({
|
|
|
67638
67638
|
}
|
|
67639
67639
|
});
|
|
67640
67640
|
|
|
67641
|
+
// src/launcher/claudeSubcommand.ts
|
|
67642
|
+
function isClaudeSubcommand(passthrough) {
|
|
67643
|
+
const first = passthrough[0];
|
|
67644
|
+
return first !== void 0 && CLAUDE_SUBCOMMANDS.has(first);
|
|
67645
|
+
}
|
|
67646
|
+
var CLAUDE_SUBCOMMANDS;
|
|
67647
|
+
var init_claudeSubcommand = __esm({
|
|
67648
|
+
"src/launcher/claudeSubcommand.ts"() {
|
|
67649
|
+
"use strict";
|
|
67650
|
+
CLAUDE_SUBCOMMANDS = /* @__PURE__ */ new Set([
|
|
67651
|
+
"agents",
|
|
67652
|
+
"attach",
|
|
67653
|
+
"auth",
|
|
67654
|
+
"auto-mode",
|
|
67655
|
+
"doctor",
|
|
67656
|
+
"gateway",
|
|
67657
|
+
"import",
|
|
67658
|
+
"install",
|
|
67659
|
+
"kill",
|
|
67660
|
+
"logs",
|
|
67661
|
+
"mcp",
|
|
67662
|
+
"plugin",
|
|
67663
|
+
"plugins",
|
|
67664
|
+
"purge",
|
|
67665
|
+
"respawn",
|
|
67666
|
+
"rm",
|
|
67667
|
+
"setup-token",
|
|
67668
|
+
"stop",
|
|
67669
|
+
"ultrareview",
|
|
67670
|
+
"update",
|
|
67671
|
+
"upgrade"
|
|
67672
|
+
]);
|
|
67673
|
+
}
|
|
67674
|
+
});
|
|
67675
|
+
|
|
67641
67676
|
// src/launcher/diagnostics.ts
|
|
67642
67677
|
function diagnosticLines(diagnostics) {
|
|
67643
67678
|
const unclassified = [...new Set(diagnostics.filter((diagnostic) => diagnostic.code === "UNCLASSIFIED_ENTRY").map((diagnostic) => diagnostic.subject))];
|
|
@@ -69848,15 +69883,16 @@ function decideLaunch(params, readOnly) {
|
|
|
69848
69883
|
});
|
|
69849
69884
|
const pickerSettings = modelPickerSettingsFromRows(routedModelRows(models ?? {}, listedProviders), selectedProvider !== void 0);
|
|
69850
69885
|
const callerSettings = hasSettingsArgument(parsedArgv.rest);
|
|
69851
|
-
|
|
69886
|
+
const startsSession = !isClaudeSubcommand(parsedArgv.rest);
|
|
69887
|
+
if (startsSession && pickerSettings !== void 0 && callerSettings) {
|
|
69852
69888
|
notes.push("--settings was passed, so /model keeps Claude Code's own model names");
|
|
69853
69889
|
}
|
|
69854
69890
|
const launcherSettings = mergeSettings([params.supervised?.settings, callerSettings ? void 0 : pickerSettings]);
|
|
69855
|
-
const args = buildArgv({
|
|
69891
|
+
const args = startsSession ? buildArgv({
|
|
69856
69892
|
toolFlags: buildFlagArgs(flags),
|
|
69857
69893
|
extraFlags: splitExtraFlags(env.CLAUDE_EXTRA_FLAGS),
|
|
69858
69894
|
passthrough: withLauncherSettings(params.supervised === void 0 ? parsedArgv.rest : withSupervision(parsedArgv.rest, params.supervised), launcherSettings)
|
|
69859
|
-
});
|
|
69895
|
+
}) : [...parsedArgv.rest];
|
|
69860
69896
|
const configDir = configDirEscapeHatchApplies || identityDecision.name === void 0 ? env.CLAUDE_CONFIG_DIR : import_node_path43.default.join(paths.identitiesDir, identityDecision.name);
|
|
69861
69897
|
const decision = {
|
|
69862
69898
|
identitySource: identityDecision.source,
|
|
@@ -70074,6 +70110,7 @@ var init_launcher = __esm({
|
|
|
70074
70110
|
init_flags();
|
|
70075
70111
|
init_extraFlags();
|
|
70076
70112
|
init_claudeSession();
|
|
70113
|
+
init_claudeSubcommand();
|
|
70077
70114
|
init_diagnostics();
|
|
70078
70115
|
init_hold();
|
|
70079
70116
|
init_launchReport();
|
|
@@ -141184,6 +141221,13 @@ function runWithOutputInFile(runRoot, timeoutMs, file2, args, cwd) {
|
|
|
141184
141221
|
}
|
|
141185
141222
|
}
|
|
141186
141223
|
}
|
|
141224
|
+
function isRegularFile(file2) {
|
|
141225
|
+
try {
|
|
141226
|
+
return import_node_fs23.default.statSync(file2).isFile();
|
|
141227
|
+
} catch {
|
|
141228
|
+
return false;
|
|
141229
|
+
}
|
|
141230
|
+
}
|
|
141187
141231
|
function readText(file2) {
|
|
141188
141232
|
try {
|
|
141189
141233
|
return import_node_fs23.default.readFileSync(file2, "utf8");
|
|
@@ -141221,6 +141265,9 @@ function realStatuslinePorts(env, stateDirectory, runTimeoutMs = RUN_TIMEOUT_MS)
|
|
|
141221
141265
|
readText,
|
|
141222
141266
|
readRange: (file2, start, length) => {
|
|
141223
141267
|
try {
|
|
141268
|
+
if (!isRegularFile(file2)) {
|
|
141269
|
+
return void 0;
|
|
141270
|
+
}
|
|
141224
141271
|
const descriptor = import_node_fs23.default.openSync(file2, "r");
|
|
141225
141272
|
try {
|
|
141226
141273
|
const { size } = import_node_fs23.default.fstatSync(descriptor);
|
|
@@ -157158,6 +157205,7 @@ async function realRefresher(params) {
|
|
|
157158
157205
|
// src/supervise/launch.ts
|
|
157159
157206
|
var import_node_crypto29 = require("node:crypto");
|
|
157160
157207
|
init_claudeSession();
|
|
157208
|
+
init_claudeSubcommand();
|
|
157161
157209
|
init_pool();
|
|
157162
157210
|
init_realPorts();
|
|
157163
157211
|
init_resumeContext();
|
|
@@ -157739,6 +157787,9 @@ async function supervise(deps, first) {
|
|
|
157739
157787
|
}
|
|
157740
157788
|
|
|
157741
157789
|
// src/supervise/launch.ts
|
|
157790
|
+
function supervisesLaunch(pool, passthrough) {
|
|
157791
|
+
return pool?.resumeOnLimit === true && !isClaudeSubcommand(passthrough);
|
|
157792
|
+
}
|
|
157742
157793
|
async function runSupervised(params) {
|
|
157743
157794
|
const { paths, pool, farm, log } = params;
|
|
157744
157795
|
if (!process.stdin.isTTY || !process.stdout.isTTY) {
|
|
@@ -157965,7 +158016,7 @@ async function runClaude(argvOverride) {
|
|
|
157965
158016
|
update: realLaunchUpdatePort(paths)
|
|
157966
158017
|
};
|
|
157967
158018
|
const poolName = identityDecision.pool;
|
|
157968
|
-
if (poolName !== void 0 && farm.pools
|
|
158019
|
+
if (poolName !== void 0 && farm.pools !== void 0 && supervisesLaunch(farm.pools[poolName], nativeArgv.rest)) {
|
|
157969
158020
|
const code = await runSupervised({
|
|
157970
158021
|
paths,
|
|
157971
158022
|
pool: poolName,
|
package/dist/index.cjs
CHANGED
|
@@ -4762,7 +4762,7 @@ var init_package = __esm({
|
|
|
4762
4762
|
"package.json"() {
|
|
4763
4763
|
package_default = {
|
|
4764
4764
|
name: "claude-use",
|
|
4765
|
-
version: "11.68.
|
|
4765
|
+
version: "11.68.2",
|
|
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>",
|
|
@@ -11162,6 +11162,41 @@ var init_claudeSession = __esm({
|
|
|
11162
11162
|
}
|
|
11163
11163
|
});
|
|
11164
11164
|
|
|
11165
|
+
// src/launcher/claudeSubcommand.ts
|
|
11166
|
+
function isClaudeSubcommand(passthrough) {
|
|
11167
|
+
const first = passthrough[0];
|
|
11168
|
+
return first !== void 0 && CLAUDE_SUBCOMMANDS.has(first);
|
|
11169
|
+
}
|
|
11170
|
+
var CLAUDE_SUBCOMMANDS;
|
|
11171
|
+
var init_claudeSubcommand = __esm({
|
|
11172
|
+
"src/launcher/claudeSubcommand.ts"() {
|
|
11173
|
+
"use strict";
|
|
11174
|
+
CLAUDE_SUBCOMMANDS = /* @__PURE__ */ new Set([
|
|
11175
|
+
"agents",
|
|
11176
|
+
"attach",
|
|
11177
|
+
"auth",
|
|
11178
|
+
"auto-mode",
|
|
11179
|
+
"doctor",
|
|
11180
|
+
"gateway",
|
|
11181
|
+
"import",
|
|
11182
|
+
"install",
|
|
11183
|
+
"kill",
|
|
11184
|
+
"logs",
|
|
11185
|
+
"mcp",
|
|
11186
|
+
"plugin",
|
|
11187
|
+
"plugins",
|
|
11188
|
+
"purge",
|
|
11189
|
+
"respawn",
|
|
11190
|
+
"rm",
|
|
11191
|
+
"setup-token",
|
|
11192
|
+
"stop",
|
|
11193
|
+
"ultrareview",
|
|
11194
|
+
"update",
|
|
11195
|
+
"upgrade"
|
|
11196
|
+
]);
|
|
11197
|
+
}
|
|
11198
|
+
});
|
|
11199
|
+
|
|
11165
11200
|
// src/launcher/diagnostics.ts
|
|
11166
11201
|
function diagnosticLines(diagnostics) {
|
|
11167
11202
|
const unclassified = [...new Set(diagnostics.filter((diagnostic) => diagnostic.code === "UNCLASSIFIED_ENTRY").map((diagnostic) => diagnostic.subject))];
|
|
@@ -11734,15 +11769,16 @@ function decideLaunch(params, readOnly) {
|
|
|
11734
11769
|
});
|
|
11735
11770
|
const pickerSettings = modelPickerSettingsFromRows(routedModelRows(models ?? {}, listedProviders), selectedProvider !== void 0);
|
|
11736
11771
|
const callerSettings = hasSettingsArgument(parsedArgv.rest);
|
|
11737
|
-
|
|
11772
|
+
const startsSession = !isClaudeSubcommand(parsedArgv.rest);
|
|
11773
|
+
if (startsSession && pickerSettings !== void 0 && callerSettings) {
|
|
11738
11774
|
notes.push("--settings was passed, so /model keeps Claude Code's own model names");
|
|
11739
11775
|
}
|
|
11740
11776
|
const launcherSettings = mergeSettings([params.supervised?.settings, callerSettings ? void 0 : pickerSettings]);
|
|
11741
|
-
const args = buildArgv({
|
|
11777
|
+
const args = startsSession ? buildArgv({
|
|
11742
11778
|
toolFlags: buildFlagArgs(flags),
|
|
11743
11779
|
extraFlags: splitExtraFlags(env.CLAUDE_EXTRA_FLAGS),
|
|
11744
11780
|
passthrough: withLauncherSettings(params.supervised === void 0 ? parsedArgv.rest : withSupervision(parsedArgv.rest, params.supervised), launcherSettings)
|
|
11745
|
-
});
|
|
11781
|
+
}) : [...parsedArgv.rest];
|
|
11746
11782
|
const configDir = configDirEscapeHatchApplies || identityDecision.name === void 0 ? env.CLAUDE_CONFIG_DIR : import_node_path38.default.join(paths.identitiesDir, identityDecision.name);
|
|
11747
11783
|
const decision = {
|
|
11748
11784
|
identitySource: identityDecision.source,
|
|
@@ -11960,6 +11996,7 @@ var init_launcher = __esm({
|
|
|
11960
11996
|
init_flags();
|
|
11961
11997
|
init_extraFlags();
|
|
11962
11998
|
init_claudeSession();
|
|
11999
|
+
init_claudeSubcommand();
|
|
11963
12000
|
init_diagnostics();
|
|
11964
12001
|
init_hold();
|
|
11965
12002
|
init_launchReport();
|
package/dist/index.mjs
CHANGED
|
@@ -4738,7 +4738,7 @@ var init_package = __esm({
|
|
|
4738
4738
|
"package.json"() {
|
|
4739
4739
|
package_default = {
|
|
4740
4740
|
name: "claude-use",
|
|
4741
|
-
version: "11.68.
|
|
4741
|
+
version: "11.68.2",
|
|
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>",
|
|
@@ -11134,6 +11134,41 @@ var init_claudeSession = __esm({
|
|
|
11134
11134
|
}
|
|
11135
11135
|
});
|
|
11136
11136
|
|
|
11137
|
+
// src/launcher/claudeSubcommand.ts
|
|
11138
|
+
function isClaudeSubcommand(passthrough) {
|
|
11139
|
+
const first = passthrough[0];
|
|
11140
|
+
return first !== void 0 && CLAUDE_SUBCOMMANDS.has(first);
|
|
11141
|
+
}
|
|
11142
|
+
var CLAUDE_SUBCOMMANDS;
|
|
11143
|
+
var init_claudeSubcommand = __esm({
|
|
11144
|
+
"src/launcher/claudeSubcommand.ts"() {
|
|
11145
|
+
"use strict";
|
|
11146
|
+
CLAUDE_SUBCOMMANDS = /* @__PURE__ */ new Set([
|
|
11147
|
+
"agents",
|
|
11148
|
+
"attach",
|
|
11149
|
+
"auth",
|
|
11150
|
+
"auto-mode",
|
|
11151
|
+
"doctor",
|
|
11152
|
+
"gateway",
|
|
11153
|
+
"import",
|
|
11154
|
+
"install",
|
|
11155
|
+
"kill",
|
|
11156
|
+
"logs",
|
|
11157
|
+
"mcp",
|
|
11158
|
+
"plugin",
|
|
11159
|
+
"plugins",
|
|
11160
|
+
"purge",
|
|
11161
|
+
"respawn",
|
|
11162
|
+
"rm",
|
|
11163
|
+
"setup-token",
|
|
11164
|
+
"stop",
|
|
11165
|
+
"ultrareview",
|
|
11166
|
+
"update",
|
|
11167
|
+
"upgrade"
|
|
11168
|
+
]);
|
|
11169
|
+
}
|
|
11170
|
+
});
|
|
11171
|
+
|
|
11137
11172
|
// src/launcher/diagnostics.ts
|
|
11138
11173
|
function diagnosticLines(diagnostics) {
|
|
11139
11174
|
const unclassified = [...new Set(diagnostics.filter((diagnostic) => diagnostic.code === "UNCLASSIFIED_ENTRY").map((diagnostic) => diagnostic.subject))];
|
|
@@ -11709,15 +11744,16 @@ function decideLaunch(params, readOnly) {
|
|
|
11709
11744
|
});
|
|
11710
11745
|
const pickerSettings = modelPickerSettingsFromRows(routedModelRows(models ?? {}, listedProviders), selectedProvider !== void 0);
|
|
11711
11746
|
const callerSettings = hasSettingsArgument(parsedArgv.rest);
|
|
11712
|
-
|
|
11747
|
+
const startsSession = !isClaudeSubcommand(parsedArgv.rest);
|
|
11748
|
+
if (startsSession && pickerSettings !== void 0 && callerSettings) {
|
|
11713
11749
|
notes.push("--settings was passed, so /model keeps Claude Code's own model names");
|
|
11714
11750
|
}
|
|
11715
11751
|
const launcherSettings = mergeSettings([params.supervised?.settings, callerSettings ? void 0 : pickerSettings]);
|
|
11716
|
-
const args = buildArgv({
|
|
11752
|
+
const args = startsSession ? buildArgv({
|
|
11717
11753
|
toolFlags: buildFlagArgs(flags),
|
|
11718
11754
|
extraFlags: splitExtraFlags(env.CLAUDE_EXTRA_FLAGS),
|
|
11719
11755
|
passthrough: withLauncherSettings(params.supervised === void 0 ? parsedArgv.rest : withSupervision(parsedArgv.rest, params.supervised), launcherSettings)
|
|
11720
|
-
});
|
|
11756
|
+
}) : [...parsedArgv.rest];
|
|
11721
11757
|
const configDir = configDirEscapeHatchApplies || identityDecision.name === void 0 ? env.CLAUDE_CONFIG_DIR : path38.join(paths.identitiesDir, identityDecision.name);
|
|
11722
11758
|
const decision = {
|
|
11723
11759
|
identitySource: identityDecision.source,
|
|
@@ -11931,6 +11967,7 @@ var init_launcher = __esm({
|
|
|
11931
11967
|
init_flags();
|
|
11932
11968
|
init_extraFlags();
|
|
11933
11969
|
init_claudeSession();
|
|
11970
|
+
init_claudeSubcommand();
|
|
11934
11971
|
init_diagnostics();
|
|
11935
11972
|
init_hold();
|
|
11936
11973
|
init_launchReport();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.68.
|
|
3
|
+
"version": "11.68.2",
|
|
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>",
|