claude-use 11.37.0 → 11.38.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 +9 -8
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +5 -5
- package/dist/types/index.d.ts +6 -6
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -34635,7 +34635,7 @@ var init_package = __esm({
|
|
|
34635
34635
|
"package.json"() {
|
|
34636
34636
|
package_default = {
|
|
34637
34637
|
name: "claude-use",
|
|
34638
|
-
version: "11.
|
|
34638
|
+
version: "11.38.0",
|
|
34639
34639
|
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.",
|
|
34640
34640
|
license: "MIT",
|
|
34641
34641
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -65489,10 +65489,10 @@ function routedModelRows(models, providers) {
|
|
|
65489
65489
|
return [...virtual, ...concrete.filter((row) => visible(row.model))];
|
|
65490
65490
|
}
|
|
65491
65491
|
function modelPickerSettings(provider, catalogue = []) {
|
|
65492
|
-
return modelPickerSettingsFromRows(providerModelRows(provider, catalogue));
|
|
65492
|
+
return modelPickerSettingsFromRows(providerModelRows(provider, catalogue), true);
|
|
65493
65493
|
}
|
|
65494
|
-
function modelPickerSettingsFromRows(options) {
|
|
65495
|
-
return options.length === 0 ? void 0 : JSON.stringify({ modelPicker: { options, replaceBuiltInOptions
|
|
65494
|
+
function modelPickerSettingsFromRows(options, replaceBuiltInOptions) {
|
|
65495
|
+
return options.length === 0 ? void 0 : JSON.stringify({ modelPicker: { options, replaceBuiltInOptions } });
|
|
65496
65496
|
}
|
|
65497
65497
|
var CONTEXT_MARKER_1M2, TIER_BEHAVES_AS, TIER_ENV_VARIABLES;
|
|
65498
65498
|
var init_modelPicker = __esm({
|
|
@@ -66048,7 +66048,7 @@ function decideLaunch(params, readOnly) {
|
|
|
66048
66048
|
const flags = loginlessProvider === void 0 ? requestedFlags : { ...requestedFlags, remoteControl: false };
|
|
66049
66049
|
const catalogue = selectedProvider === void 0 ? void 0 : parseCatalogueCache(params.fs.readFileUtf8(catalogueCachePath(paths, selectedProvider.name)));
|
|
66050
66050
|
const routesByName = flags.routeByName || selectedProvider !== void 0 && isRouterProvider(selectedProvider.definition);
|
|
66051
|
-
const pickerSettings = routesByName ? modelPickerSettingsFromRows(routedModelRows(readModels(paths) ?? {}, listProviders(paths).map((entry) => [entry.name, entry.provider]))) : selectedProvider === void 0 ? void 0 : modelPickerSettings(selectedProvider.definition, catalogue?.models);
|
|
66051
|
+
const pickerSettings = routesByName ? modelPickerSettingsFromRows(routedModelRows(readModels(paths) ?? {}, listProviders(paths).map((entry) => [entry.name, entry.provider])), selectedProvider !== void 0) : selectedProvider === void 0 ? void 0 : modelPickerSettings(selectedProvider.definition, catalogue?.models);
|
|
66052
66052
|
const callerSettings = hasSettingsArgument(parsedArgv.rest);
|
|
66053
66053
|
if (pickerSettings !== void 0 && callerSettings) {
|
|
66054
66054
|
notes.push("--settings was passed, so /model keeps Claude Code's own model names");
|
|
@@ -131427,19 +131427,20 @@ function createProviderRouteResolver(deps) {
|
|
|
131427
131427
|
routes = void 0;
|
|
131428
131428
|
isRouter = false;
|
|
131429
131429
|
}
|
|
131430
|
-
const routesByName = isRouter || current.session.routeByName &&
|
|
131430
|
+
const routesByName = (isRouter || current.session.routeByName) && !isRcSelfHostPath(path65);
|
|
131431
131431
|
if (routesByName) {
|
|
131432
131432
|
const scan2 = await scanRequestHead(current, false);
|
|
131433
131433
|
if (scan2.replayed !== void 0) {
|
|
131434
131434
|
replay = scan2.replayed;
|
|
131435
131435
|
}
|
|
131436
|
-
const target = scan2.model === void 0
|
|
131436
|
+
const target = scan2.model === void 0 ? void 0 : resolveModelTarget(scan2.model, deps.models?.(), isRouter || current.session.routeByName && providerName !== void 0);
|
|
131437
131437
|
if (target === providerName) {
|
|
131438
131438
|
const resolution = resolve2(current);
|
|
131439
131439
|
return resolution.ok && replay !== void 0 ? { ok: true, route: servingRewritten(resolution.route, { ...replay, url: current.url }), request: { ...replay, url: current.url } } : resolution.ok ? serveScoped(resolution) : resolution;
|
|
131440
131440
|
}
|
|
131441
131441
|
if (target !== void 0) {
|
|
131442
|
-
const
|
|
131442
|
+
const scopedPrefix = providerName === void 0 ? void 0 : `${PROVIDER_PATH_PREFIX}${encodeURIComponent(providerName)}`;
|
|
131443
|
+
const rest2 = scopedPrefix !== void 0 && path65.startsWith(scopedPrefix) ? path65.slice(scopedPrefix.length) : path65;
|
|
131443
131444
|
const query2 = current.url.includes("?") ? current.url.slice(current.url.indexOf("?")) : "";
|
|
131444
131445
|
const carried = scan2.replayed ?? current;
|
|
131445
131446
|
current = { ...current, url: `${PROVIDER_PATH_PREFIX}${encodeURIComponent(target)}${rest2}${query2}`, body: carried.body, headers: carried.headers };
|
package/dist/index.cjs
CHANGED
|
@@ -3106,7 +3106,7 @@ var init_package = __esm({
|
|
|
3106
3106
|
"package.json"() {
|
|
3107
3107
|
package_default = {
|
|
3108
3108
|
name: "claude-use",
|
|
3109
|
-
version: "11.
|
|
3109
|
+
version: "11.38.0",
|
|
3110
3110
|
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.",
|
|
3111
3111
|
license: "MIT",
|
|
3112
3112
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -8955,10 +8955,10 @@ function routedModelRows(models, providers) {
|
|
|
8955
8955
|
return [...virtual, ...concrete.filter((row) => visible(row.model))];
|
|
8956
8956
|
}
|
|
8957
8957
|
function modelPickerSettings(provider, catalogue = []) {
|
|
8958
|
-
return modelPickerSettingsFromRows(providerModelRows(provider, catalogue));
|
|
8958
|
+
return modelPickerSettingsFromRows(providerModelRows(provider, catalogue), true);
|
|
8959
8959
|
}
|
|
8960
|
-
function modelPickerSettingsFromRows(options) {
|
|
8961
|
-
return options.length === 0 ? void 0 : JSON.stringify({ modelPicker: { options, replaceBuiltInOptions
|
|
8960
|
+
function modelPickerSettingsFromRows(options, replaceBuiltInOptions) {
|
|
8961
|
+
return options.length === 0 ? void 0 : JSON.stringify({ modelPicker: { options, replaceBuiltInOptions } });
|
|
8962
8962
|
}
|
|
8963
8963
|
var CONTEXT_MARKER_1M, TIER_BEHAVES_AS, TIER_ENV_VARIABLES;
|
|
8964
8964
|
var init_modelPicker = __esm({
|
|
@@ -9406,7 +9406,7 @@ function decideLaunch(params, readOnly) {
|
|
|
9406
9406
|
const flags = loginlessProvider === void 0 ? requestedFlags : { ...requestedFlags, remoteControl: false };
|
|
9407
9407
|
const catalogue = selectedProvider === void 0 ? void 0 : parseCatalogueCache(params.fs.readFileUtf8(catalogueCachePath(paths, selectedProvider.name)));
|
|
9408
9408
|
const routesByName = flags.routeByName || selectedProvider !== void 0 && isRouterProvider(selectedProvider.definition);
|
|
9409
|
-
const pickerSettings = routesByName ? modelPickerSettingsFromRows(routedModelRows(readModels(paths) ?? {}, listProviders(paths).map((entry) => [entry.name, entry.provider]))) : selectedProvider === void 0 ? void 0 : modelPickerSettings(selectedProvider.definition, catalogue?.models);
|
|
9409
|
+
const pickerSettings = routesByName ? modelPickerSettingsFromRows(routedModelRows(readModels(paths) ?? {}, listProviders(paths).map((entry) => [entry.name, entry.provider])), selectedProvider !== void 0) : selectedProvider === void 0 ? void 0 : modelPickerSettings(selectedProvider.definition, catalogue?.models);
|
|
9410
9410
|
const callerSettings = hasSettingsArgument(parsedArgv.rest);
|
|
9411
9411
|
if (pickerSettings !== void 0 && callerSettings) {
|
|
9412
9412
|
notes.push("--settings was passed, so /model keeps Claude Code's own model names");
|
package/dist/index.mjs
CHANGED
|
@@ -3082,7 +3082,7 @@ var init_package = __esm({
|
|
|
3082
3082
|
"package.json"() {
|
|
3083
3083
|
package_default = {
|
|
3084
3084
|
name: "claude-use",
|
|
3085
|
-
version: "11.
|
|
3085
|
+
version: "11.38.0",
|
|
3086
3086
|
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.",
|
|
3087
3087
|
license: "MIT",
|
|
3088
3088
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -8927,10 +8927,10 @@ function routedModelRows(models, providers) {
|
|
|
8927
8927
|
return [...virtual, ...concrete.filter((row) => visible(row.model))];
|
|
8928
8928
|
}
|
|
8929
8929
|
function modelPickerSettings(provider, catalogue = []) {
|
|
8930
|
-
return modelPickerSettingsFromRows(providerModelRows(provider, catalogue));
|
|
8930
|
+
return modelPickerSettingsFromRows(providerModelRows(provider, catalogue), true);
|
|
8931
8931
|
}
|
|
8932
|
-
function modelPickerSettingsFromRows(options) {
|
|
8933
|
-
return options.length === 0 ? void 0 : JSON.stringify({ modelPicker: { options, replaceBuiltInOptions
|
|
8932
|
+
function modelPickerSettingsFromRows(options, replaceBuiltInOptions) {
|
|
8933
|
+
return options.length === 0 ? void 0 : JSON.stringify({ modelPicker: { options, replaceBuiltInOptions } });
|
|
8934
8934
|
}
|
|
8935
8935
|
var CONTEXT_MARKER_1M, TIER_BEHAVES_AS, TIER_ENV_VARIABLES;
|
|
8936
8936
|
var init_modelPicker = __esm({
|
|
@@ -9380,7 +9380,7 @@ function decideLaunch(params, readOnly) {
|
|
|
9380
9380
|
const flags = loginlessProvider === void 0 ? requestedFlags : { ...requestedFlags, remoteControl: false };
|
|
9381
9381
|
const catalogue = selectedProvider === void 0 ? void 0 : parseCatalogueCache(params.fs.readFileUtf8(catalogueCachePath(paths, selectedProvider.name)));
|
|
9382
9382
|
const routesByName = flags.routeByName || selectedProvider !== void 0 && isRouterProvider(selectedProvider.definition);
|
|
9383
|
-
const pickerSettings = routesByName ? modelPickerSettingsFromRows(routedModelRows(readModels(paths) ?? {}, listProviders(paths).map((entry) => [entry.name, entry.provider]))) : selectedProvider === void 0 ? void 0 : modelPickerSettings(selectedProvider.definition, catalogue?.models);
|
|
9383
|
+
const pickerSettings = routesByName ? modelPickerSettingsFromRows(routedModelRows(readModels(paths) ?? {}, listProviders(paths).map((entry) => [entry.name, entry.provider])), selectedProvider !== void 0) : selectedProvider === void 0 ? void 0 : modelPickerSettings(selectedProvider.definition, catalogue?.models);
|
|
9384
9384
|
const callerSettings = hasSettingsArgument(parsedArgv.rest);
|
|
9385
9385
|
if (pickerSettings !== void 0 && callerSettings) {
|
|
9386
9386
|
notes.push("--settings was passed, so /model keeps Claude Code's own model names");
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6100,7 +6100,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6100
6100
|
kind: zod.ZodLiteral<"profile">;
|
|
6101
6101
|
name: zod.ZodString;
|
|
6102
6102
|
value: zod.ZodObject<{
|
|
6103
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
6104
6103
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
6105
6104
|
value: zod.ZodBoolean;
|
|
6106
6105
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -6176,6 +6175,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6176
6175
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
6177
6176
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
6178
6177
|
}, zod_v4_core.$strict>]>>>;
|
|
6178
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
6179
6179
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
6180
6180
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
6181
6181
|
mode: zod.ZodEnum<{
|
|
@@ -6254,7 +6254,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6254
6254
|
kind: zod.ZodLiteral<"profile">;
|
|
6255
6255
|
name: zod.ZodString;
|
|
6256
6256
|
value: zod.ZodObject<{
|
|
6257
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
6258
6257
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
6259
6258
|
value: zod.ZodBoolean;
|
|
6260
6259
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -6330,6 +6329,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6330
6329
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
6331
6330
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
6332
6331
|
}, zod_v4_core.$strict>]>>>;
|
|
6332
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
6333
6333
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
6334
6334
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
6335
6335
|
mode: zod.ZodEnum<{
|
|
@@ -9255,7 +9255,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9255
9255
|
kind: zod.ZodLiteral<"profile">;
|
|
9256
9256
|
name: zod.ZodString;
|
|
9257
9257
|
value: zod.ZodObject<{
|
|
9258
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
9259
9258
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
9260
9259
|
value: zod.ZodBoolean;
|
|
9261
9260
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -9331,6 +9330,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9331
9330
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
9332
9331
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
9333
9332
|
}, zod_v4_core.$strict>]>>>;
|
|
9333
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
9334
9334
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
9335
9335
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
9336
9336
|
mode: zod.ZodEnum<{
|
|
@@ -9409,7 +9409,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9409
9409
|
kind: zod.ZodLiteral<"profile">;
|
|
9410
9410
|
name: zod.ZodString;
|
|
9411
9411
|
value: zod.ZodObject<{
|
|
9412
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
9413
9412
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
9414
9413
|
value: zod.ZodBoolean;
|
|
9415
9414
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -9485,6 +9484,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9485
9484
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
9486
9485
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
9487
9486
|
}, zod_v4_core.$strict>]>>>;
|
|
9487
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
9488
9488
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
9489
9489
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
9490
9490
|
mode: zod.ZodEnum<{
|
|
@@ -11514,7 +11514,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
11514
11514
|
kind: z.ZodLiteral<"profile">;
|
|
11515
11515
|
name: z.ZodString;
|
|
11516
11516
|
value: z.ZodObject<{
|
|
11517
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11518
11517
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
11519
11518
|
value: z.ZodBoolean;
|
|
11520
11519
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -11590,6 +11589,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
11590
11589
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
11591
11590
|
}, z.core.$strip>], "kind">]>;
|
|
11592
11591
|
}, z.core.$strict>]>>>;
|
|
11592
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11593
11593
|
models: z.ZodOptional<z.ZodObject<{
|
|
11594
11594
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
11595
11595
|
mode: z.ZodEnum<{
|
|
@@ -11670,7 +11670,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
11670
11670
|
kind: z.ZodLiteral<"profile">;
|
|
11671
11671
|
name: z.ZodString;
|
|
11672
11672
|
value: z.ZodObject<{
|
|
11673
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11674
11673
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
11675
11674
|
value: z.ZodBoolean;
|
|
11676
11675
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -11746,6 +11745,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
11746
11745
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
11747
11746
|
}, z.core.$strip>], "kind">]>;
|
|
11748
11747
|
}, z.core.$strict>]>>>;
|
|
11748
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11749
11749
|
models: z.ZodOptional<z.ZodObject<{
|
|
11750
11750
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
11751
11751
|
mode: z.ZodEnum<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.38.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": "MIT",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|