claude-use 11.24.0 → 11.26.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/README.md +3 -0
- package/dist/cli.cjs +1233 -883
- package/dist/index.cjs +226 -120
- package/dist/index.mjs +222 -116
- package/dist/types/index.d.ts +88 -2
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -434,6 +434,36 @@ declare const CodexProviderConfigSchema: z.ZodObject<{
|
|
|
434
434
|
}>>;
|
|
435
435
|
}, z.core.$strict>;
|
|
436
436
|
type CodexProviderConfig = z.infer<typeof CodexProviderConfigSchema>;
|
|
437
|
+
/**
|
|
438
|
+
* A model a provider serves that `/model` should list beside the ones its tier settings name. `tier` is the Claude tier whose client-side handling (prompt profile, effort defaults) the row borrows, since Claude Code knows no handling for a model it has not heard of. `label` defaults to the model name and `description` to a generic line.
|
|
439
|
+
*/
|
|
440
|
+
declare const PickerModelSchema: z.ZodObject<{
|
|
441
|
+
model: z.ZodString;
|
|
442
|
+
tier: z.ZodEnum<{
|
|
443
|
+
fable: "fable";
|
|
444
|
+
opus: "opus";
|
|
445
|
+
sonnet: "sonnet";
|
|
446
|
+
haiku: "haiku";
|
|
447
|
+
}>;
|
|
448
|
+
label: z.ZodOptional<z.ZodString>;
|
|
449
|
+
description: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strict>;
|
|
451
|
+
type PickerModel = z.infer<typeof PickerModelSchema>;
|
|
452
|
+
/**
|
|
453
|
+
* Opt-in listing of the models an `http` provider's own catalogue endpoint reports in `/model`. The door refreshes the catalogue in the background and a launch lists what it last fetched. `tier` is the Claude tier whose handling every listed model borrows, since the catalogue says nothing about it. `include` and `exclude` are glob patterns over model ids (`exclude` wins), because a large catalogue would bury the picker. `url` replaces the endpoint, which otherwise is the provider's `/v1/models` under its base URL, then under its host.
|
|
454
|
+
*/
|
|
455
|
+
declare const ProviderCatalogueSchema: z.ZodObject<{
|
|
456
|
+
tier: z.ZodEnum<{
|
|
457
|
+
fable: "fable";
|
|
458
|
+
opus: "opus";
|
|
459
|
+
sonnet: "sonnet";
|
|
460
|
+
haiku: "haiku";
|
|
461
|
+
}>;
|
|
462
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
464
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
465
|
+
}, z.core.$strict>;
|
|
466
|
+
type ProviderCatalogue = z.infer<typeof ProviderCatalogueSchema>;
|
|
437
467
|
/** All kinds of provider; see `HttpProviderSchema` for the shared fields. */
|
|
438
468
|
declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
469
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -476,6 +506,28 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
476
506
|
}>>;
|
|
477
507
|
}, z.core.$strict>;
|
|
478
508
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
509
|
+
pickerModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
|
+
model: z.ZodString;
|
|
511
|
+
tier: z.ZodEnum<{
|
|
512
|
+
fable: "fable";
|
|
513
|
+
opus: "opus";
|
|
514
|
+
sonnet: "sonnet";
|
|
515
|
+
haiku: "haiku";
|
|
516
|
+
}>;
|
|
517
|
+
label: z.ZodOptional<z.ZodString>;
|
|
518
|
+
description: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, z.core.$strict>>>;
|
|
520
|
+
catalogue: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
tier: z.ZodEnum<{
|
|
522
|
+
fable: "fable";
|
|
523
|
+
opus: "opus";
|
|
524
|
+
sonnet: "sonnet";
|
|
525
|
+
haiku: "haiku";
|
|
526
|
+
}>;
|
|
527
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
528
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
529
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
530
|
+
}, z.core.$strict>>;
|
|
479
531
|
routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
532
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
481
533
|
newerThan: z.ZodOptional<z.ZodString>;
|
|
@@ -592,6 +644,17 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
592
644
|
}>>;
|
|
593
645
|
}, z.core.$strict>;
|
|
594
646
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
647
|
+
pickerModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
|
+
model: z.ZodString;
|
|
649
|
+
tier: z.ZodEnum<{
|
|
650
|
+
fable: "fable";
|
|
651
|
+
opus: "opus";
|
|
652
|
+
sonnet: "sonnet";
|
|
653
|
+
haiku: "haiku";
|
|
654
|
+
}>;
|
|
655
|
+
label: z.ZodOptional<z.ZodString>;
|
|
656
|
+
description: z.ZodOptional<z.ZodString>;
|
|
657
|
+
}, z.core.$strict>>>;
|
|
595
658
|
codex: z.ZodOptional<z.ZodObject<{
|
|
596
659
|
defaultModel: z.ZodOptional<z.ZodString>;
|
|
597
660
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -651,6 +714,17 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
651
714
|
}>>;
|
|
652
715
|
}, z.core.$strict>;
|
|
653
716
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
717
|
+
pickerModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
718
|
+
model: z.ZodString;
|
|
719
|
+
tier: z.ZodEnum<{
|
|
720
|
+
fable: "fable";
|
|
721
|
+
opus: "opus";
|
|
722
|
+
sonnet: "sonnet";
|
|
723
|
+
haiku: "haiku";
|
|
724
|
+
}>;
|
|
725
|
+
label: z.ZodOptional<z.ZodString>;
|
|
726
|
+
description: z.ZodOptional<z.ZodString>;
|
|
727
|
+
}, z.core.$strict>>>;
|
|
654
728
|
antigravity: z.ZodOptional<z.ZodObject<{
|
|
655
729
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
656
730
|
cloud: "cloud";
|
|
@@ -1865,6 +1939,8 @@ interface LayoutPaths {
|
|
|
1865
1939
|
readonly usageLogDir: string;
|
|
1866
1940
|
/** Directory of the latest-state snapshots, one `<identity>.json` per identity: the stable file other tools read. */
|
|
1867
1941
|
readonly usageSnapshotsDir: string;
|
|
1942
|
+
/** One file per provider holding the model catalogue the door last fetched from it. */
|
|
1943
|
+
readonly catalogueDir: string;
|
|
1868
1944
|
/** Path to the file recording what the person has allowed the MCP server's agents to do (`agent-shim mcp permissions`), mode 0600 and written only by that command: the running server re-reads it on every request, so a change needs no restart. */
|
|
1869
1945
|
readonly mcpPermissionsFile: string;
|
|
1870
1946
|
/** The last identity picked from a pool for each directory, so a conversation stays on the account whose prompt cache is warm. */
|
|
@@ -13400,8 +13476,8 @@ interface ProviderListEntry {
|
|
|
13400
13476
|
readonly name: string;
|
|
13401
13477
|
readonly provider: Provider;
|
|
13402
13478
|
}
|
|
13403
|
-
/** Lists every provider under `providersDir` that has a valid `<name>.json`. A file that fails validation is skipped here; `provider list` is the place a broken definition gets surfaced, not a launch. */
|
|
13404
|
-
declare function listProviders(paths: LayoutPaths): readonly ProviderListEntry[];
|
|
13479
|
+
/** Lists every provider under `providersDir` that has a valid `<name>.json`. A file that fails validation is skipped here and reported through `onInvalid` (standard error by default); `provider list` is the place a broken definition gets surfaced, not a launch. */
|
|
13480
|
+
declare function listProviders(paths: LayoutPaths, onInvalid?: (name: string, message: string) => void): readonly ProviderListEntry[];
|
|
13405
13481
|
/** The credential targets a provider may use. */
|
|
13406
13482
|
type ProviderCredentialTarget = (typeof PROVIDER_CREDENTIAL_TARGETS)[number];
|
|
13407
13483
|
/** The kinds of provider. */
|
|
@@ -13416,6 +13492,10 @@ interface AddProviderInput {
|
|
|
13416
13492
|
readonly sources: readonly CredentialSource[];
|
|
13417
13493
|
readonly target?: ProviderCredentialTarget;
|
|
13418
13494
|
readonly env?: Readonly<Record<string, string>>;
|
|
13495
|
+
/** Extra models `/model` lists beside the ones the tier settings name; applies to every provider kind. */
|
|
13496
|
+
readonly pickerModels?: readonly PickerModel[];
|
|
13497
|
+
/** Opt an http provider into listing its own model catalogue in `/model`. */
|
|
13498
|
+
readonly catalogue?: ProviderCatalogue;
|
|
13419
13499
|
readonly codex?: CodexProviderConfig;
|
|
13420
13500
|
readonly antigravity?: AntigravityProviderConfig;
|
|
13421
13501
|
}
|
|
@@ -13439,6 +13519,12 @@ interface UpdateProviderInput {
|
|
|
13439
13519
|
readonly cache?: CredentialCache | false;
|
|
13440
13520
|
readonly env?: Readonly<Record<string, string>>;
|
|
13441
13521
|
readonly unsetEnv?: readonly string[];
|
|
13522
|
+
/** Picker models to add; one for a model the provider already declares replaces that entry in place. */
|
|
13523
|
+
readonly pickerModels?: readonly PickerModel[];
|
|
13524
|
+
/** Models whose picker entries are removed. */
|
|
13525
|
+
readonly unsetPickerModels?: readonly string[];
|
|
13526
|
+
/** The provider's whole new catalogue setting, or false to remove it; undefined leaves the existing one. Applies only to an http provider. */
|
|
13527
|
+
readonly catalogue?: ProviderCatalogue | false;
|
|
13442
13528
|
/** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
13443
13529
|
readonly codex?: CodexProviderConfig;
|
|
13444
13530
|
/** Merged over an antigravity provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.26.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>",
|