claude-use 0.2.0 → 0.2.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 +29 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -221857,7 +221857,7 @@ var categories_default_default = {
|
|
|
221857
221857
|
// package.json
|
|
221858
221858
|
var package_default = {
|
|
221859
221859
|
name: "claude-use",
|
|
221860
|
-
version: "0.2.
|
|
221860
|
+
version: "0.2.1",
|
|
221861
221861
|
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.",
|
|
221862
221862
|
license: "Apache-2.0",
|
|
221863
221863
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -238724,6 +238724,30 @@ function findExecutableInDir(dir, name) {
|
|
|
238724
238724
|
throw error51;
|
|
238725
238725
|
}
|
|
238726
238726
|
}
|
|
238727
|
+
function resolveOwnExecutablePath(env) {
|
|
238728
|
+
if (env.argv1 === void 0) {
|
|
238729
|
+
return env.execPath;
|
|
238730
|
+
}
|
|
238731
|
+
if (env.argv1.includes("/") || env.argv1.includes("\\")) {
|
|
238732
|
+
return import_node_path12.default.resolve(env.cwd, env.argv1);
|
|
238733
|
+
}
|
|
238734
|
+
for (const dir of env.pathDirs) {
|
|
238735
|
+
const found = env.findExecutableInDir(dir, env.argv1);
|
|
238736
|
+
if (found !== void 0) {
|
|
238737
|
+
return found;
|
|
238738
|
+
}
|
|
238739
|
+
}
|
|
238740
|
+
return env.execPath;
|
|
238741
|
+
}
|
|
238742
|
+
function realOwnExecutablePath() {
|
|
238743
|
+
return resolveOwnExecutablePath({
|
|
238744
|
+
argv1: process.argv[1],
|
|
238745
|
+
execPath: process.execPath,
|
|
238746
|
+
cwd: process.cwd(),
|
|
238747
|
+
pathDirs: (process.env.PATH ?? "").split(import_node_path12.default.delimiter).filter((dir) => dir !== ""),
|
|
238748
|
+
findExecutableInDir
|
|
238749
|
+
});
|
|
238750
|
+
}
|
|
238727
238751
|
function realResolveClaudeBinary(ownInstallDirs) {
|
|
238728
238752
|
return () => discoverClaudeBinary({
|
|
238729
238753
|
listVersionsDir,
|
|
@@ -240992,7 +241016,7 @@ function registerShimCommand(program2, paths) {
|
|
|
240992
241016
|
"Manage the `claude` command shim \u2014 an optional, explicit way to also invoke this launcher as `claude` instead of `claude-use run`. Off by default; every installer ships only `claude-use`."
|
|
240993
241017
|
);
|
|
240994
241018
|
shim.command("enable").description("Create a `claude`-named copy of this same executable, alongside claude-use by default.").option("--dir <path>", "Enable into this directory instead of alongside the running claude-use executable.").option("--force", "Overwrite the target even if it doesn't look like claude-use's own doing.").action((options) => {
|
|
240995
|
-
const ownExecutablePath =
|
|
241019
|
+
const ownExecutablePath = realOwnExecutablePath();
|
|
240996
241020
|
const result = enableClaudeShim({
|
|
240997
241021
|
paths,
|
|
240998
241022
|
ownExecutablePath,
|
|
@@ -241016,7 +241040,7 @@ function registerShimCommand(program2, paths) {
|
|
|
241016
241040
|
}
|
|
241017
241041
|
});
|
|
241018
241042
|
shim.command("disable").description("Remove the `claude` command shim `shim enable` previously created. A no-op, not an error, if none is enabled.").option("--dir <path>", "Look in this directory instead of trusting the recorded location.").option("--force", "Remove the target even if it doesn't look like claude-use's own doing.").action((options) => {
|
|
241019
|
-
const ownExecutablePath =
|
|
241043
|
+
const ownExecutablePath = realOwnExecutablePath();
|
|
241020
241044
|
const result = disableClaudeShim({
|
|
241021
241045
|
paths,
|
|
241022
241046
|
ownExecutablePath,
|
|
@@ -241263,7 +241287,7 @@ function registerDoctorCommand(program2, paths) {
|
|
|
241263
241287
|
const profilePath = import_node_path18.default.join(paths.configProfilesDir, `${name}.json`);
|
|
241264
241288
|
return { name, path: profilePath, raw: realFsPort.readFileUtf8(profilePath) };
|
|
241265
241289
|
});
|
|
241266
|
-
const ownExecutablePath =
|
|
241290
|
+
const ownExecutablePath = realOwnExecutablePath();
|
|
241267
241291
|
let binaryDiscovery;
|
|
241268
241292
|
try {
|
|
241269
241293
|
const binary = realResolveClaudeBinary(resolveOwnInstallDirs(paths, ownExecutablePath))();
|
|
@@ -241688,7 +241712,7 @@ function runClaude(argvOverride) {
|
|
|
241688
241712
|
spawn: realSpawnPort,
|
|
241689
241713
|
proc: argvOverride === void 0 ? realProcPort : { ...realProcPort, argv: argvOverride },
|
|
241690
241714
|
log: realLogPort,
|
|
241691
|
-
resolveClaudeBinary: realResolveClaudeBinary(resolveOwnInstallDirs(paths,
|
|
241715
|
+
resolveClaudeBinary: realResolveClaudeBinary(resolveOwnInstallDirs(paths, realOwnExecutablePath())),
|
|
241692
241716
|
farm: farm.runtime,
|
|
241693
241717
|
...farm.directoryIdentity === void 0 ? {} : { directoryPinnedIdentity: farm.directoryIdentity },
|
|
241694
241718
|
...farm.directoryConfigProfile === void 0 ? {} : { directoryRuleConfigProfile: farm.directoryConfigProfile },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.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": "Apache-2.0",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|