claude-use 11.25.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.
@@ -449,6 +449,21 @@ declare const PickerModelSchema: z.ZodObject<{
449
449
  description: z.ZodOptional<z.ZodString>;
450
450
  }, z.core.$strict>;
451
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>;
452
467
  /** All kinds of provider; see `HttpProviderSchema` for the shared fields. */
453
468
  declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
454
469
  $schema: z.ZodOptional<z.ZodString>;
@@ -502,6 +517,17 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
502
517
  label: z.ZodOptional<z.ZodString>;
503
518
  description: z.ZodOptional<z.ZodString>;
504
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>>;
505
531
  routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
506
532
  when: z.ZodUnion<readonly [z.ZodObject<{
507
533
  newerThan: z.ZodOptional<z.ZodString>;
@@ -1913,6 +1939,8 @@ interface LayoutPaths {
1913
1939
  readonly usageLogDir: string;
1914
1940
  /** Directory of the latest-state snapshots, one `<identity>.json` per identity: the stable file other tools read. */
1915
1941
  readonly usageSnapshotsDir: string;
1942
+ /** One file per provider holding the model catalogue the door last fetched from it. */
1943
+ readonly catalogueDir: string;
1916
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. */
1917
1945
  readonly mcpPermissionsFile: string;
1918
1946
  /** The last identity picked from a pool for each directory, so a conversation stays on the account whose prompt cache is warm. */
@@ -4371,10 +4399,10 @@ declare const CheckReportJsonSchema: z.ZodObject<{
4371
4399
  configProfile: z.ZodObject<{
4372
4400
  name: z.ZodNullable<z.ZodString>;
4373
4401
  source: z.ZodEnum<{
4402
+ "directory-rule": "directory-rule";
4374
4403
  env: "env";
4375
4404
  none: "none";
4376
4405
  "cli-flag": "cli-flag";
4377
- "directory-rule": "directory-rule";
4378
4406
  "identity-default": "identity-default";
4379
4407
  "global-default": "global-default";
4380
4408
  }>;
@@ -4382,9 +4410,9 @@ declare const CheckReportJsonSchema: z.ZodObject<{
4382
4410
  layers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
4383
4411
  id: z.ZodInt;
4384
4412
  kind: z.ZodEnum<{
4385
- "directory-rule": "directory-rule";
4386
4413
  "global-config": "global-config";
4387
4414
  "config-profile": "config-profile";
4415
+ "directory-rule": "directory-rule";
4388
4416
  portable: "portable";
4389
4417
  "portable-local": "portable-local";
4390
4418
  "cli-override": "cli-override";
@@ -7426,10 +7454,10 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
7426
7454
  configDir: zod.ZodOptional<zod.ZodString>;
7427
7455
  configProfile: zod.ZodOptional<zod.ZodString>;
7428
7456
  configProfileSource: zod.ZodEnum<{
7457
+ "directory-rule": "directory-rule";
7429
7458
  env: "env";
7430
7459
  none: "none";
7431
7460
  "cli-flag": "cli-flag";
7432
- "directory-rule": "directory-rule";
7433
7461
  "identity-default": "identity-default";
7434
7462
  "global-default": "global-default";
7435
7463
  }>;
@@ -8063,10 +8091,10 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
8063
8091
  configProfile: zod.ZodObject<{
8064
8092
  name: zod.ZodNullable<zod.ZodString>;
8065
8093
  source: zod.ZodEnum<{
8094
+ "directory-rule": "directory-rule";
8066
8095
  env: "env";
8067
8096
  none: "none";
8068
8097
  "cli-flag": "cli-flag";
8069
- "directory-rule": "directory-rule";
8070
8098
  "identity-default": "identity-default";
8071
8099
  "global-default": "global-default";
8072
8100
  }>;
@@ -8074,9 +8102,9 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
8074
8102
  layers: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
8075
8103
  id: zod.ZodInt;
8076
8104
  kind: zod.ZodEnum<{
8077
- "directory-rule": "directory-rule";
8078
8105
  "global-config": "global-config";
8079
8106
  "config-profile": "config-profile";
8107
+ "directory-rule": "directory-rule";
8080
8108
  portable: "portable";
8081
8109
  "portable-local": "portable-local";
8082
8110
  "cli-override": "cli-override";
@@ -8314,12 +8342,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
8314
8342
  ok: zod.ZodBoolean;
8315
8343
  findings: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
8316
8344
  section: zod.ZodEnum<{
8345
+ "global-config": "global-config";
8346
+ "config-profile": "config-profile";
8317
8347
  identity: "identity";
8318
8348
  provider: "provider";
8319
8349
  frontdoor: "frontdoor";
8320
8350
  pool: "pool";
8321
- "global-config": "global-config";
8322
- "config-profile": "config-profile";
8323
8351
  keychain: "keychain";
8324
8352
  "ambient-credential": "ambient-credential";
8325
8353
  "binary-discovery": "binary-discovery";
@@ -8542,10 +8570,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8542
8570
  configDir: zod.ZodOptional<zod.ZodString>;
8543
8571
  configProfile: zod.ZodOptional<zod.ZodString>;
8544
8572
  configProfileSource: zod.ZodEnum<{
8573
+ "directory-rule": "directory-rule";
8545
8574
  env: "env";
8546
8575
  none: "none";
8547
8576
  "cli-flag": "cli-flag";
8548
- "directory-rule": "directory-rule";
8549
8577
  "identity-default": "identity-default";
8550
8578
  "global-default": "global-default";
8551
8579
  }>;
@@ -10176,10 +10204,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
10176
10204
  configProfile: zod.ZodObject<{
10177
10205
  name: zod.ZodNullable<zod.ZodString>;
10178
10206
  source: zod.ZodEnum<{
10207
+ "directory-rule": "directory-rule";
10179
10208
  env: "env";
10180
10209
  none: "none";
10181
10210
  "cli-flag": "cli-flag";
10182
- "directory-rule": "directory-rule";
10183
10211
  "identity-default": "identity-default";
10184
10212
  "global-default": "global-default";
10185
10213
  }>;
@@ -10187,9 +10215,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
10187
10215
  layers: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
10188
10216
  id: zod.ZodInt;
10189
10217
  kind: zod.ZodEnum<{
10190
- "directory-rule": "directory-rule";
10191
10218
  "global-config": "global-config";
10192
10219
  "config-profile": "config-profile";
10220
+ "directory-rule": "directory-rule";
10193
10221
  portable: "portable";
10194
10222
  "portable-local": "portable-local";
10195
10223
  "cli-override": "cli-override";
@@ -10427,12 +10455,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
10427
10455
  ok: zod.ZodBoolean;
10428
10456
  findings: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
10429
10457
  section: zod.ZodEnum<{
10458
+ "global-config": "global-config";
10459
+ "config-profile": "config-profile";
10430
10460
  identity: "identity";
10431
10461
  provider: "provider";
10432
10462
  frontdoor: "frontdoor";
10433
10463
  pool: "pool";
10434
- "global-config": "global-config";
10435
- "config-profile": "config-profile";
10436
10464
  keychain: "keychain";
10437
10465
  "ambient-credential": "ambient-credential";
10438
10466
  "binary-discovery": "binary-discovery";
@@ -12292,12 +12320,12 @@ declare const CheckRunInputSchema: z.ZodObject<{
12292
12320
  /** One line of the doctor report: the section it belongs to, its severity, its message, and the identity/profile/rule it is about when there is one. */
12293
12321
  declare const DoctorFindingSchema: z.ZodObject<{
12294
12322
  section: z.ZodEnum<{
12323
+ "global-config": "global-config";
12324
+ "config-profile": "config-profile";
12295
12325
  identity: "identity";
12296
12326
  provider: "provider";
12297
12327
  frontdoor: "frontdoor";
12298
12328
  pool: "pool";
12299
- "global-config": "global-config";
12300
- "config-profile": "config-profile";
12301
12329
  keychain: "keychain";
12302
12330
  "ambient-credential": "ambient-credential";
12303
12331
  "binary-discovery": "binary-discovery";
@@ -12323,12 +12351,12 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
12323
12351
  ok: z.ZodBoolean;
12324
12352
  findings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
12325
12353
  section: z.ZodEnum<{
12354
+ "global-config": "global-config";
12355
+ "config-profile": "config-profile";
12326
12356
  identity: "identity";
12327
12357
  provider: "provider";
12328
12358
  frontdoor: "frontdoor";
12329
12359
  pool: "pool";
12330
- "global-config": "global-config";
12331
- "config-profile": "config-profile";
12332
12360
  keychain: "keychain";
12333
12361
  "ambient-credential": "ambient-credential";
12334
12362
  "binary-discovery": "binary-discovery";
@@ -12431,10 +12459,10 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
12431
12459
  configDir: z.ZodOptional<z.ZodString>;
12432
12460
  configProfile: z.ZodOptional<z.ZodString>;
12433
12461
  configProfileSource: z.ZodEnum<{
12462
+ "directory-rule": "directory-rule";
12434
12463
  env: "env";
12435
12464
  none: "none";
12436
12465
  "cli-flag": "cli-flag";
12437
- "directory-rule": "directory-rule";
12438
12466
  "identity-default": "identity-default";
12439
12467
  "global-default": "global-default";
12440
12468
  }>;
@@ -13448,8 +13476,8 @@ interface ProviderListEntry {
13448
13476
  readonly name: string;
13449
13477
  readonly provider: Provider;
13450
13478
  }
13451
- /** 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. */
13452
- 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[];
13453
13481
  /** The credential targets a provider may use. */
13454
13482
  type ProviderCredentialTarget = (typeof PROVIDER_CREDENTIAL_TARGETS)[number];
13455
13483
  /** The kinds of provider. */
@@ -13466,6 +13494,8 @@ interface AddProviderInput {
13466
13494
  readonly env?: Readonly<Record<string, string>>;
13467
13495
  /** Extra models `/model` lists beside the ones the tier settings name; applies to every provider kind. */
13468
13496
  readonly pickerModels?: readonly PickerModel[];
13497
+ /** Opt an http provider into listing its own model catalogue in `/model`. */
13498
+ readonly catalogue?: ProviderCatalogue;
13469
13499
  readonly codex?: CodexProviderConfig;
13470
13500
  readonly antigravity?: AntigravityProviderConfig;
13471
13501
  }
@@ -13493,6 +13523,8 @@ interface UpdateProviderInput {
13493
13523
  readonly pickerModels?: readonly PickerModel[];
13494
13524
  /** Models whose picker entries are removed. */
13495
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;
13496
13528
  /** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
13497
13529
  readonly codex?: CodexProviderConfig;
13498
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.25.0",
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>",