claude-use 2.0.0 → 2.0.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 +17 -4
- 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: "2.0.
|
|
221860
|
+
version: "2.0.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>",
|
|
@@ -240502,6 +240502,16 @@ var IdentityAlreadyExistsError = class extends CliError {
|
|
|
240502
240502
|
}
|
|
240503
240503
|
identityName;
|
|
240504
240504
|
};
|
|
240505
|
+
var InvalidIdentityNameError = class extends CliError {
|
|
240506
|
+
constructor(attemptedName) {
|
|
240507
|
+
super(
|
|
240508
|
+
`"${attemptedName}" is not a valid identity name \u2014 identity names must start with a letter or number and may only contain letters, numbers, dots, hyphens, and underscores.`
|
|
240509
|
+
);
|
|
240510
|
+
this.attemptedName = attemptedName;
|
|
240511
|
+
this.name = "InvalidIdentityNameError";
|
|
240512
|
+
}
|
|
240513
|
+
attemptedName;
|
|
240514
|
+
};
|
|
240505
240515
|
function identityJsonPath(paths, name) {
|
|
240506
240516
|
return import_node_path16.default.join(paths.identitiesDir, name, "identity.json");
|
|
240507
240517
|
}
|
|
@@ -240515,9 +240525,12 @@ function addIdentity(paths, name) {
|
|
|
240515
240525
|
if (identityExists(paths, name)) {
|
|
240516
240526
|
throw new IdentityAlreadyExistsError(name);
|
|
240517
240527
|
}
|
|
240518
|
-
const
|
|
240519
|
-
|
|
240520
|
-
|
|
240528
|
+
const parsed = IdentitySchema.safeParse({ name, allowAmbientCredential: false });
|
|
240529
|
+
if (!parsed.success) {
|
|
240530
|
+
throw new InvalidIdentityNameError(name);
|
|
240531
|
+
}
|
|
240532
|
+
writeJsonAtomic(identityJsonPath(paths, name), parsed.data);
|
|
240533
|
+
return parsed.data;
|
|
240521
240534
|
}
|
|
240522
240535
|
function useIdentity(paths, name) {
|
|
240523
240536
|
if (!identityExists(paths, name)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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>",
|