claude-use 11.60.0 → 11.60.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 +816 -688
- package/dist/index.cjs +1642 -1488
- package/dist/index.mjs +1604 -1450
- package/dist/types/index.d.ts +17 -11
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -3302,7 +3302,6 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
3302
3302
|
}, z.core.$strict>, z.ZodNull]>>>;
|
|
3303
3303
|
}, z.core.$strict>>;
|
|
3304
3304
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3305
|
-
extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3306
3305
|
categories: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
3307
3306
|
all: z.ZodOptional<z.ZodBoolean>;
|
|
3308
3307
|
runtime: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3316,10 +3315,10 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
3316
3315
|
knowledge?: boolean | undefined;
|
|
3317
3316
|
settings?: boolean | undefined;
|
|
3318
3317
|
}>>>;
|
|
3318
|
+
extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3319
3319
|
launch: z.ZodOptional<z.ZodObject<{
|
|
3320
3320
|
skipPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
3321
3321
|
remoteControl: z.ZodOptional<z.ZodBoolean>;
|
|
3322
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
3323
3322
|
headroom: z.ZodOptional<z.ZodBoolean>;
|
|
3324
3323
|
trackUsage: z.ZodOptional<z.ZodBoolean>;
|
|
3325
3324
|
claudeVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -3728,6 +3727,7 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
3728
3727
|
showConflicts: z.ZodOptional<z.ZodBoolean>;
|
|
3729
3728
|
}, z.core.$strict>>;
|
|
3730
3729
|
}, z.core.$strict>>;
|
|
3730
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3731
3731
|
}, z.core.$strict>>;
|
|
3732
3732
|
configProfile: z.ZodOptional<z.ZodString>;
|
|
3733
3733
|
identity: z.ZodOptional<z.ZodString>;
|
|
@@ -23401,8 +23401,8 @@ interface ProfileListEntry {
|
|
|
23401
23401
|
readonly name: string;
|
|
23402
23402
|
readonly profile: ConfigProfile;
|
|
23403
23403
|
}
|
|
23404
|
-
/** Lists every configuration profile under `configProfilesDir` that has a valid `<name>.json`. */
|
|
23405
|
-
declare function listProfiles(paths: LayoutPaths): readonly ProfileListEntry[];
|
|
23404
|
+
/** Lists every configuration profile under `configProfilesDir` that has a valid `<name>.json`. A file whose name cannot be used (one called just `.json`, one with a backslash in its name on a system where that is an ordinary character, or one longer than a name may now be) is skipped and reported through `onUnusable` (standard error by default). */
|
|
23405
|
+
declare function listProfiles(paths: LayoutPaths, onUnusable?: (name: string, message: string) => void): readonly ProfileListEntry[];
|
|
23406
23406
|
/** Reads the user-global `~/.agent-shim/config.json`, or undefined when it does not exist. */
|
|
23407
23407
|
declare function readGlobalConfig(paths: LayoutPaths): GlobalConfig | undefined;
|
|
23408
23408
|
/** Sets the user-global default configuration profile in `~/.agent-shim/config.json`, creating the file if it doesn't exist yet. Whether the profile exists is the caller's concern: `profile use` checks it first. */
|
|
@@ -23431,6 +23431,19 @@ declare function setProfileMetadata(paths: LayoutPaths, name: string, patch: Rea
|
|
|
23431
23431
|
/** Deletes a configuration profile's file. Throws `ProfileNotFoundError` when it does not exist. Nothing that references it by name is rewritten; `agent-shim doctor` reports any identity default, directory rule or `extends` left pointing at it. */
|
|
23432
23432
|
declare function removeProfile(paths: LayoutPaths, name: string): void;
|
|
23433
23433
|
|
|
23434
|
+
/** Raised when a name about to be joined into a path would leave its directory, or (for a name being created) does not have the shape new names are given. Names the file or source that referred to it when the caller knows it. */
|
|
23435
|
+
declare class UnsafeNameError extends CliError {
|
|
23436
|
+
readonly attemptedName: string;
|
|
23437
|
+
readonly kind: string;
|
|
23438
|
+
readonly rule: string;
|
|
23439
|
+
readonly source?: string | undefined;
|
|
23440
|
+
constructor(attemptedName: string, kind: string, rule?: string, source?: string | undefined);
|
|
23441
|
+
}
|
|
23442
|
+
/** Raised for a provider name that is not usable, with the rule that applied: `FILE_NAME_RULE` for a name being created, the containment rule for one being looked up. */
|
|
23443
|
+
declare class InvalidProviderNameError extends UnsafeNameError {
|
|
23444
|
+
constructor(attemptedName: string, rule?: string, source?: string);
|
|
23445
|
+
}
|
|
23446
|
+
|
|
23434
23447
|
/** Raised by any operation that requires a provider to already exist, when it does not. */
|
|
23435
23448
|
declare class ProviderNotFoundError extends CliError {
|
|
23436
23449
|
readonly name: string;
|
|
@@ -23441,13 +23454,6 @@ declare class ProviderAlreadyExistsError extends CliError {
|
|
|
23441
23454
|
readonly providerName: string;
|
|
23442
23455
|
constructor(providerName: string);
|
|
23443
23456
|
}
|
|
23444
|
-
/**
|
|
23445
|
-
* Raised by `addProvider` when `name` fails the provider naming rule: the same rule `IdentitySchema` applies to identity names (start with a letter or number, then letters, numbers, dots, hyphens, underscores, and at signs). Keeping the two rules identical means a name that works for one works for the other, and neither vocabulary can ever produce a path segment that escapes `providers/` or `identities/`.
|
|
23446
|
-
*/
|
|
23447
|
-
declare class InvalidProviderNameError extends CliError {
|
|
23448
|
-
readonly attemptedName: string;
|
|
23449
|
-
constructor(attemptedName: string);
|
|
23450
|
-
}
|
|
23451
23457
|
/** True when a provider file exists for `name`, regardless of whether it validates. */
|
|
23452
23458
|
declare function providerExists(paths: LayoutPaths, name: string): boolean;
|
|
23453
23459
|
/** What converting one old-format provider file involves: the old fields it uses, and the whole file rewritten in the current format. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.60.
|
|
3
|
+
"version": "11.60.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>",
|