claude-use 11.8.2 → 11.10.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 +1579 -169
- package/dist/index.cjs +146 -41
- package/dist/index.mjs +146 -41
- package/dist/types/index.d.ts +121 -5
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -380,7 +380,41 @@ declare const CredentialSchema: z.ZodObject<{
|
|
|
380
380
|
}, z.core.$strict>;
|
|
381
381
|
type Credential = z.infer<typeof CredentialSchema>;
|
|
382
382
|
/** The kinds of provider: `http` is an Anthropic Messages endpoint at a fixed `baseUrl` (the default when `kind` is absent), and `codex` is ChatGPT's Codex backend reached through agent-shim's own supervised translation daemon. */
|
|
383
|
-
declare const PROVIDER_KINDS: readonly ["http", "codex"];
|
|
383
|
+
declare const PROVIDER_KINDS: readonly ["http", "codex", "antigravity"];
|
|
384
|
+
/**
|
|
385
|
+
* How an Antigravity provider translates Claude Code's requests and connects to its backend.
|
|
386
|
+
*/
|
|
387
|
+
declare const AntigravityProviderConfigSchema: z.ZodObject<{
|
|
388
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
389
|
+
cloud: "cloud";
|
|
390
|
+
local: "local";
|
|
391
|
+
}>>;
|
|
392
|
+
defaultModel: z.ZodOptional<z.ZodString>;
|
|
393
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
fable: z.ZodOptional<z.ZodString>;
|
|
395
|
+
opus: z.ZodOptional<z.ZodString>;
|
|
396
|
+
sonnet: z.ZodOptional<z.ZodString>;
|
|
397
|
+
haiku: z.ZodOptional<z.ZodString>;
|
|
398
|
+
}, z.core.$strict>>;
|
|
399
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
400
|
+
none: "none";
|
|
401
|
+
max: "max";
|
|
402
|
+
low: "low";
|
|
403
|
+
medium: "medium";
|
|
404
|
+
high: "high";
|
|
405
|
+
xhigh: "xhigh";
|
|
406
|
+
}>>;
|
|
407
|
+
cloud: z.ZodOptional<z.ZodObject<{
|
|
408
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
409
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
410
|
+
location: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, z.core.$strict>>;
|
|
412
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
413
|
+
command: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
414
|
+
socketPath: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, z.core.$strict>>;
|
|
416
|
+
}, z.core.$strict>;
|
|
417
|
+
type AntigravityProviderConfig = z.infer<typeof AntigravityProviderConfigSchema>;
|
|
384
418
|
/**
|
|
385
419
|
* How a codex provider translates Claude Code's requests. Every field is optional and defaults to the shipped mapping (`CODEX_DEFAULT_MODEL`, `CODEX_DEFAULT_TIER_MODELS`, `CODEX_DEFAULT_EFFORT`), so an absent block means the stock behaviour. A requested model that already names a codex model (`gpt-...`) passes through untouched whatever this says.
|
|
386
420
|
*/
|
|
@@ -404,7 +438,7 @@ declare const CodexProviderConfigSchema: z.ZodObject<{
|
|
|
404
438
|
}>>;
|
|
405
439
|
}, z.core.$strict>;
|
|
406
440
|
type CodexProviderConfig = z.infer<typeof CodexProviderConfigSchema>;
|
|
407
|
-
/**
|
|
441
|
+
/** All kinds of provider; see `HttpProviderSchema` for the shared fields. */
|
|
408
442
|
declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
443
|
$schema: z.ZodOptional<z.ZodString>;
|
|
410
444
|
kind: z.ZodOptional<z.ZodLiteral<"http">>;
|
|
@@ -581,6 +615,76 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
581
615
|
"chatgpt-sign-in": "chatgpt-sign-in";
|
|
582
616
|
}>>;
|
|
583
617
|
}, z.core.$strict>>;
|
|
618
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
619
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
620
|
+
kind: z.ZodLiteral<"antigravity">;
|
|
621
|
+
displayName: z.ZodString;
|
|
622
|
+
credential: z.ZodObject<{
|
|
623
|
+
sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
624
|
+
env: z.ZodString;
|
|
625
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
626
|
+
file: z.ZodString;
|
|
627
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
628
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
629
|
+
timeoutMs: z.ZodOptional<z.ZodInt>;
|
|
630
|
+
command: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
631
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
632
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
633
|
+
timeoutMs: z.ZodOptional<z.ZodInt>;
|
|
634
|
+
op: z.ZodString;
|
|
635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
636
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
637
|
+
timeoutMs: z.ZodOptional<z.ZodInt>;
|
|
638
|
+
keychain: z.ZodObject<{
|
|
639
|
+
service: z.ZodString;
|
|
640
|
+
account: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, z.core.$strict>;
|
|
642
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
643
|
+
literal: z.ZodString;
|
|
644
|
+
}, z.core.$strict>]>>;
|
|
645
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
646
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
647
|
+
store: z.ZodOptional<z.ZodEnum<{
|
|
648
|
+
file: "file";
|
|
649
|
+
keychain: "keychain";
|
|
650
|
+
}>>;
|
|
651
|
+
}, z.core.$strict>>;
|
|
652
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
653
|
+
apiKey: "apiKey";
|
|
654
|
+
bearer: "bearer";
|
|
655
|
+
}>>;
|
|
656
|
+
}, z.core.$strict>;
|
|
657
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
658
|
+
antigravity: z.ZodOptional<z.ZodObject<{
|
|
659
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
cloud: "cloud";
|
|
661
|
+
local: "local";
|
|
662
|
+
}>>;
|
|
663
|
+
defaultModel: z.ZodOptional<z.ZodString>;
|
|
664
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
fable: z.ZodOptional<z.ZodString>;
|
|
666
|
+
opus: z.ZodOptional<z.ZodString>;
|
|
667
|
+
sonnet: z.ZodOptional<z.ZodString>;
|
|
668
|
+
haiku: z.ZodOptional<z.ZodString>;
|
|
669
|
+
}, z.core.$strict>>;
|
|
670
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
none: "none";
|
|
672
|
+
max: "max";
|
|
673
|
+
low: "low";
|
|
674
|
+
medium: "medium";
|
|
675
|
+
high: "high";
|
|
676
|
+
xhigh: "xhigh";
|
|
677
|
+
}>>;
|
|
678
|
+
cloud: z.ZodOptional<z.ZodObject<{
|
|
679
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
680
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
681
|
+
location: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strict>>;
|
|
683
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
684
|
+
command: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
685
|
+
socketPath: z.ZodOptional<z.ZodString>;
|
|
686
|
+
}, z.core.$strict>>;
|
|
687
|
+
}, z.core.$strict>>;
|
|
584
688
|
}, z.core.$strict>], "kind">;
|
|
585
689
|
type Provider = z.infer<typeof ProviderSchema>;
|
|
586
690
|
/**
|
|
@@ -6122,6 +6226,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6122
6226
|
kind: zod.ZodOptional<zod.ZodEnum<{
|
|
6123
6227
|
http: "http";
|
|
6124
6228
|
codex: "codex";
|
|
6229
|
+
antigravity: "antigravity";
|
|
6125
6230
|
}>>;
|
|
6126
6231
|
displayName: zod.ZodString;
|
|
6127
6232
|
baseUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -6184,6 +6289,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6184
6289
|
kind: zod.ZodEnum<{
|
|
6185
6290
|
http: "http";
|
|
6186
6291
|
codex: "codex";
|
|
6292
|
+
antigravity: "antigravity";
|
|
6187
6293
|
}>;
|
|
6188
6294
|
displayName: zod.ZodString;
|
|
6189
6295
|
baseUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -6305,6 +6411,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
6305
6411
|
kind: zod.ZodEnum<{
|
|
6306
6412
|
http: "http";
|
|
6307
6413
|
codex: "codex";
|
|
6414
|
+
antigravity: "antigravity";
|
|
6308
6415
|
}>;
|
|
6309
6416
|
displayName: zod.ZodString;
|
|
6310
6417
|
baseUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -9072,6 +9179,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9072
9179
|
kind: zod.ZodOptional<zod.ZodEnum<{
|
|
9073
9180
|
http: "http";
|
|
9074
9181
|
codex: "codex";
|
|
9182
|
+
antigravity: "antigravity";
|
|
9075
9183
|
}>>;
|
|
9076
9184
|
displayName: zod.ZodString;
|
|
9077
9185
|
baseUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -9134,6 +9242,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9134
9242
|
kind: zod.ZodEnum<{
|
|
9135
9243
|
http: "http";
|
|
9136
9244
|
codex: "codex";
|
|
9245
|
+
antigravity: "antigravity";
|
|
9137
9246
|
}>;
|
|
9138
9247
|
displayName: zod.ZodString;
|
|
9139
9248
|
baseUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -9255,6 +9364,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9255
9364
|
kind: zod.ZodEnum<{
|
|
9256
9365
|
http: "http";
|
|
9257
9366
|
codex: "codex";
|
|
9367
|
+
antigravity: "antigravity";
|
|
9258
9368
|
}>;
|
|
9259
9369
|
displayName: zod.ZodString;
|
|
9260
9370
|
baseUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -11180,6 +11290,7 @@ declare const ConfigProviderAddInputSchema: z.ZodObject<{
|
|
|
11180
11290
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
11181
11291
|
http: "http";
|
|
11182
11292
|
codex: "codex";
|
|
11293
|
+
antigravity: "antigravity";
|
|
11183
11294
|
}>>;
|
|
11184
11295
|
displayName: z.ZodString;
|
|
11185
11296
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -11243,6 +11354,7 @@ declare const ConfigProviderAddOutputSchema: z.ZodObject<{
|
|
|
11243
11354
|
kind: z.ZodEnum<{
|
|
11244
11355
|
http: "http";
|
|
11245
11356
|
codex: "codex";
|
|
11357
|
+
antigravity: "antigravity";
|
|
11246
11358
|
}>;
|
|
11247
11359
|
displayName: z.ZodString;
|
|
11248
11360
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -11366,6 +11478,7 @@ declare const ConfigProviderSetOutputSchema: z.ZodObject<{
|
|
|
11366
11478
|
kind: z.ZodEnum<{
|
|
11367
11479
|
http: "http";
|
|
11368
11480
|
codex: "codex";
|
|
11481
|
+
antigravity: "antigravity";
|
|
11369
11482
|
}>;
|
|
11370
11483
|
displayName: z.ZodString;
|
|
11371
11484
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -13216,9 +13329,9 @@ declare function listProviders(paths: LayoutPaths): readonly ProviderListEntry[]
|
|
|
13216
13329
|
type ProviderCredentialTarget = (typeof PROVIDER_CREDENTIAL_TARGETS)[number];
|
|
13217
13330
|
/** The kinds of provider. */
|
|
13218
13331
|
type ProviderKind = (typeof PROVIDER_KINDS)[number];
|
|
13219
|
-
/** Where a provider sends its sessions, for display: an `http` provider's base URL, or the front door for a codex provider (whose address exists only at launch). */
|
|
13332
|
+
/** Where a provider sends its sessions, for display: an `http` provider's base URL, or the front door for a codex/antigravity provider (whose address exists only at launch). */
|
|
13220
13333
|
declare function describeProviderEndpoint(provider: Provider): string;
|
|
13221
|
-
/** Everything `addProvider` writes into a fresh provider file. `baseUrl` is required for an `http` provider and refused for
|
|
13334
|
+
/** Everything `addProvider` writes into a fresh provider file. `baseUrl` is required for an `http` provider and refused for codex/antigravity ones; `codex` applies only to codex, `antigravity` applies only to antigravity. */
|
|
13222
13335
|
interface AddProviderInput {
|
|
13223
13336
|
readonly kind?: ProviderKind;
|
|
13224
13337
|
readonly displayName: string;
|
|
@@ -13227,8 +13340,9 @@ interface AddProviderInput {
|
|
|
13227
13340
|
readonly target?: ProviderCredentialTarget;
|
|
13228
13341
|
readonly env?: Readonly<Record<string, string>>;
|
|
13229
13342
|
readonly codex?: CodexProviderConfig;
|
|
13343
|
+
readonly antigravity?: AntigravityProviderConfig;
|
|
13230
13344
|
}
|
|
13231
|
-
/** Raised when a provider option does not fit the provider's kind
|
|
13345
|
+
/** Raised when a provider option does not fit the provider's kind. */
|
|
13232
13346
|
declare class ProviderKindMismatchError extends UsageError {
|
|
13233
13347
|
constructor(message: string);
|
|
13234
13348
|
}
|
|
@@ -13250,6 +13364,8 @@ interface UpdateProviderInput {
|
|
|
13250
13364
|
readonly unsetEnv?: readonly string[];
|
|
13251
13365
|
/** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
13252
13366
|
readonly codex?: CodexProviderConfig;
|
|
13367
|
+
/** Merged over an antigravity provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
|
|
13368
|
+
readonly antigravity?: AntigravityProviderConfig;
|
|
13253
13369
|
}
|
|
13254
13370
|
/**
|
|
13255
13371
|
* Updates an existing provider definition in place. Throws `ProviderNotFoundError` when it does not exist, and `ConfigValidationError` when the updated definition fails `ProviderSchema`, leaving the file untouched.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.10.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>",
|