claude-use 2.0.3 → 2.1.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 +8 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -221874,7 +221874,7 @@ var categories_default_default = {
|
|
|
221874
221874
|
// package.json
|
|
221875
221875
|
var package_default = {
|
|
221876
221876
|
name: "claude-use",
|
|
221877
|
-
version: "2.0
|
|
221877
|
+
version: "2.1.0",
|
|
221878
221878
|
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.",
|
|
221879
221879
|
license: "Apache-2.0",
|
|
221880
221880
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -241780,7 +241780,7 @@ var GlobalConfigSchema = external_exports.strictObject({
|
|
|
241780
241780
|
});
|
|
241781
241781
|
var IdentitySchema = external_exports.strictObject({
|
|
241782
241782
|
$schema: external_exports.string().optional(),
|
|
241783
|
-
name: external_exports.string().min(1).regex(/^[A-Za-z0-9][A-Za-z0-9._
|
|
241783
|
+
name: external_exports.string().min(1).regex(/^[A-Za-z0-9][A-Za-z0-9._@-]*$/),
|
|
241784
241784
|
defaultConfigProfile: external_exports.string().min(1).optional(),
|
|
241785
241785
|
allowAmbientCredential: external_exports.boolean().default(false)
|
|
241786
241786
|
});
|
|
@@ -245706,7 +245706,7 @@ var IdentityAlreadyExistsError = class extends CliError {
|
|
|
245706
245706
|
var InvalidIdentityNameError = class extends CliError {
|
|
245707
245707
|
constructor(attemptedName) {
|
|
245708
245708
|
super(
|
|
245709
|
-
`"${attemptedName}" is not a valid identity name \u2014 identity names must start with a letter or number and may
|
|
245709
|
+
`"${attemptedName}" is not a valid identity name \u2014 identity names must start with a letter or number and may then contain letters, numbers, dots, hyphens, underscores, and at signs.`
|
|
245710
245710
|
);
|
|
245711
245711
|
this.attemptedName = attemptedName;
|
|
245712
245712
|
this.name = "InvalidIdentityNameError";
|
|
@@ -245741,6 +245741,9 @@ function useIdentity(paths, name) {
|
|
|
245741
245741
|
`);
|
|
245742
245742
|
}
|
|
245743
245743
|
async function runIdentityWizard(prompts, paths, name) {
|
|
245744
|
+
if (!IdentitySchema.safeParse({ name, allowAmbientCredential: false }).success) {
|
|
245745
|
+
throw new InvalidIdentityNameError(name);
|
|
245746
|
+
}
|
|
245744
245747
|
const choice = await prompts.select({
|
|
245745
245748
|
message: `No identity named "${name}" exists yet. Create it now?`,
|
|
245746
245749
|
options: [
|
|
@@ -246274,13 +246277,13 @@ var CATEGORY_LABELS = {
|
|
|
246274
246277
|
knowledge: "knowledge",
|
|
246275
246278
|
settings: "settings"
|
|
246276
246279
|
};
|
|
246277
|
-
var PROFILE_NAME_RE = /^[A-Za-z0-9][A-Za-z0-9._
|
|
246280
|
+
var PROFILE_NAME_RE = /^[A-Za-z0-9][A-Za-z0-9._@-]*$/;
|
|
246278
246281
|
function validateProfileName(value, existingNames) {
|
|
246279
246282
|
if (value.length === 0) {
|
|
246280
246283
|
return "A name is required.";
|
|
246281
246284
|
}
|
|
246282
246285
|
if (!PROFILE_NAME_RE.test(value)) {
|
|
246283
|
-
return "Names must start with a letter or digit, and contain only letters, digits, dots, dashes, and
|
|
246286
|
+
return "Names must start with a letter or digit, and contain only letters, digits, dots, dashes, underscores, and at signs.";
|
|
246284
246287
|
}
|
|
246285
246288
|
if (existingNames?.includes(value)) {
|
|
246286
246289
|
return `A configuration profile named "${value}" already exists.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.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>",
|