agent-shim 11.23.0 → 11.25.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 +1 -0
- package/dist/cli.cjs +18045 -17836
- package/dist/index.cjs +379 -63
- package/dist/index.mjs +379 -63
- package/dist/types/index.d.ts +54 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -434,6 +434,21 @@ 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>;
|
|
437
452
|
/** All kinds of provider; see `HttpProviderSchema` for the shared fields. */
|
|
438
453
|
declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
454
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -476,6 +491,17 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
476
491
|
}>>;
|
|
477
492
|
}, z.core.$strict>;
|
|
478
493
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
494
|
+
pickerModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
495
|
+
model: z.ZodString;
|
|
496
|
+
tier: z.ZodEnum<{
|
|
497
|
+
fable: "fable";
|
|
498
|
+
opus: "opus";
|
|
499
|
+
sonnet: "sonnet";
|
|
500
|
+
haiku: "haiku";
|
|
501
|
+
}>;
|
|
502
|
+
label: z.ZodOptional<z.ZodString>;
|
|
503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, z.core.$strict>>>;
|
|
479
505
|
routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
506
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
481
507
|
newerThan: z.ZodOptional<z.ZodString>;
|
|
@@ -592,6 +618,17 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
592
618
|
}>>;
|
|
593
619
|
}, z.core.$strict>;
|
|
594
620
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
621
|
+
pickerModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
622
|
+
model: z.ZodString;
|
|
623
|
+
tier: z.ZodEnum<{
|
|
624
|
+
fable: "fable";
|
|
625
|
+
opus: "opus";
|
|
626
|
+
sonnet: "sonnet";
|
|
627
|
+
haiku: "haiku";
|
|
628
|
+
}>;
|
|
629
|
+
label: z.ZodOptional<z.ZodString>;
|
|
630
|
+
description: z.ZodOptional<z.ZodString>;
|
|
631
|
+
}, z.core.$strict>>>;
|
|
595
632
|
codex: z.ZodOptional<z.ZodObject<{
|
|
596
633
|
defaultModel: z.ZodOptional<z.ZodString>;
|
|
597
634
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -651,6 +688,17 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
651
688
|
}>>;
|
|
652
689
|
}, z.core.$strict>;
|
|
653
690
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
691
|
+
pickerModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
692
|
+
model: z.ZodString;
|
|
693
|
+
tier: z.ZodEnum<{
|
|
694
|
+
fable: "fable";
|
|
695
|
+
opus: "opus";
|
|
696
|
+
sonnet: "sonnet";
|
|
697
|
+
haiku: "haiku";
|
|
698
|
+
}>;
|
|
699
|
+
label: z.ZodOptional<z.ZodString>;
|
|
700
|
+
description: z.ZodOptional<z.ZodString>;
|
|
701
|
+
}, z.core.$strict>>>;
|
|
654
702
|
antigravity: z.ZodOptional<z.ZodObject<{
|
|
655
703
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
656
704
|
cloud: "cloud";
|
|
@@ -13416,6 +13464,8 @@ interface AddProviderInput {
|
|
|
13416
13464
|
readonly sources: readonly CredentialSource[];
|
|
13417
13465
|
readonly target?: ProviderCredentialTarget;
|
|
13418
13466
|
readonly env?: Readonly<Record<string, string>>;
|
|
13467
|
+
/** Extra models `/model` lists beside the ones the tier settings name; applies to every provider kind. */
|
|
13468
|
+
readonly pickerModels?: readonly PickerModel[];
|
|
13419
13469
|
readonly codex?: CodexProviderConfig;
|
|
13420
13470
|
readonly antigravity?: AntigravityProviderConfig;
|
|
13421
13471
|
}
|
|
@@ -13439,6 +13489,10 @@ interface UpdateProviderInput {
|
|
|
13439
13489
|
readonly cache?: CredentialCache | false;
|
|
13440
13490
|
readonly env?: Readonly<Record<string, string>>;
|
|
13441
13491
|
readonly unsetEnv?: readonly string[];
|
|
13492
|
+
/** Picker models to add; one for a model the provider already declares replaces that entry in place. */
|
|
13493
|
+
readonly pickerModels?: readonly PickerModel[];
|
|
13494
|
+
/** Models whose picker entries are removed. */
|
|
13495
|
+
readonly unsetPickerModels?: readonly string[];
|
|
13442
13496
|
/** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
13443
13497
|
readonly codex?: CodexProviderConfig;
|
|
13444
13498
|
/** 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": "agent-shim",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.25.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>",
|