agent-shim 11.8.1 → 11.9.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 +1302 -122
- package/dist/index.cjs +93 -11
- package/dist/index.mjs +93 -11
- package/dist/types/index.d.ts +149 -33
- 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
|
/**
|
|
@@ -1332,8 +1436,8 @@ declare const HeadroomGlobalConfigSchema: z.ZodObject<{
|
|
|
1332
1436
|
targetRatio: z.ZodOptional<z.ZodNumber>;
|
|
1333
1437
|
ccr: z.ZodOptional<z.ZodEnum<{
|
|
1334
1438
|
default: "default";
|
|
1335
|
-
lossless: "lossless";
|
|
1336
1439
|
none: "none";
|
|
1440
|
+
lossless: "lossless";
|
|
1337
1441
|
}>>;
|
|
1338
1442
|
rolloutChannel: z.ZodOptional<z.ZodEnum<{
|
|
1339
1443
|
beta: "beta";
|
|
@@ -1460,8 +1564,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
1460
1564
|
targetRatio: z.ZodOptional<z.ZodNumber>;
|
|
1461
1565
|
ccr: z.ZodOptional<z.ZodEnum<{
|
|
1462
1566
|
default: "default";
|
|
1463
|
-
lossless: "lossless";
|
|
1464
1567
|
none: "none";
|
|
1568
|
+
lossless: "lossless";
|
|
1465
1569
|
}>>;
|
|
1466
1570
|
rolloutChannel: z.ZodOptional<z.ZodEnum<{
|
|
1467
1571
|
beta: "beta";
|
|
@@ -4163,12 +4267,12 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4163
4267
|
identity: z.ZodObject<{
|
|
4164
4268
|
name: z.ZodNullable<z.ZodString>;
|
|
4165
4269
|
source: z.ZodEnum<{
|
|
4166
|
-
env: "env";
|
|
4167
|
-
none: "none";
|
|
4168
4270
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
4169
4271
|
argv: "argv";
|
|
4272
|
+
env: "env";
|
|
4170
4273
|
"directory-pin": "directory-pin";
|
|
4171
4274
|
"active-identity-file": "active-identity-file";
|
|
4275
|
+
none: "none";
|
|
4172
4276
|
}>;
|
|
4173
4277
|
}, z.core.$strict>;
|
|
4174
4278
|
pool: z.ZodOptional<z.ZodObject<{
|
|
@@ -4246,11 +4350,11 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4246
4350
|
"category-default": "category-default";
|
|
4247
4351
|
}>;
|
|
4248
4352
|
category: z.ZodNullable<z.ZodEnum<{
|
|
4353
|
+
secret: "secret";
|
|
4249
4354
|
runtime: "runtime";
|
|
4250
4355
|
history: "history";
|
|
4251
4356
|
knowledge: "knowledge";
|
|
4252
4357
|
settings: "settings";
|
|
4253
|
-
secret: "secret";
|
|
4254
4358
|
}>>;
|
|
4255
4359
|
rule: z.ZodOptional<z.ZodObject<{
|
|
4256
4360
|
key: z.ZodString;
|
|
@@ -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>;
|
|
@@ -6964,9 +7071,9 @@ declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
|
|
|
6964
7071
|
current: zod.ZodString;
|
|
6965
7072
|
latest: zod.ZodString;
|
|
6966
7073
|
action: zod.ZodEnum<{
|
|
6967
|
-
updated: "updated";
|
|
6968
7074
|
current: "current";
|
|
6969
7075
|
available: "available";
|
|
7076
|
+
updated: "updated";
|
|
6970
7077
|
}>;
|
|
6971
7078
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
6972
7079
|
};
|
|
@@ -7213,12 +7320,12 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
7213
7320
|
decision: zod.ZodObject<{
|
|
7214
7321
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
7215
7322
|
identitySource: zod.ZodEnum<{
|
|
7216
|
-
env: "env";
|
|
7217
|
-
none: "none";
|
|
7218
7323
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7219
7324
|
argv: "argv";
|
|
7325
|
+
env: "env";
|
|
7220
7326
|
"directory-pin": "directory-pin";
|
|
7221
7327
|
"active-identity-file": "active-identity-file";
|
|
7328
|
+
none: "none";
|
|
7222
7329
|
}>;
|
|
7223
7330
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
7224
7331
|
name: zod.ZodString;
|
|
@@ -7813,12 +7920,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7813
7920
|
identity: zod.ZodObject<{
|
|
7814
7921
|
name: zod.ZodNullable<zod.ZodString>;
|
|
7815
7922
|
source: zod.ZodEnum<{
|
|
7816
|
-
env: "env";
|
|
7817
|
-
none: "none";
|
|
7818
7923
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7819
7924
|
argv: "argv";
|
|
7925
|
+
env: "env";
|
|
7820
7926
|
"directory-pin": "directory-pin";
|
|
7821
7927
|
"active-identity-file": "active-identity-file";
|
|
7928
|
+
none: "none";
|
|
7822
7929
|
}>;
|
|
7823
7930
|
}, zod_v4_core.$strict>;
|
|
7824
7931
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -7896,11 +8003,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7896
8003
|
"category-default": "category-default";
|
|
7897
8004
|
}>;
|
|
7898
8005
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
8006
|
+
secret: "secret";
|
|
7899
8007
|
runtime: "runtime";
|
|
7900
8008
|
history: "history";
|
|
7901
8009
|
knowledge: "knowledge";
|
|
7902
8010
|
settings: "settings";
|
|
7903
|
-
secret: "secret";
|
|
7904
8011
|
}>>;
|
|
7905
8012
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
7906
8013
|
key: zod.ZodString;
|
|
@@ -8119,11 +8226,10 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8119
8226
|
"global-config": "global-config";
|
|
8120
8227
|
"config-profile": "config-profile";
|
|
8121
8228
|
identity: "identity";
|
|
8122
|
-
keychain: "keychain";
|
|
8123
8229
|
provider: "provider";
|
|
8124
|
-
headroom: "headroom";
|
|
8125
8230
|
frontdoor: "frontdoor";
|
|
8126
8231
|
pool: "pool";
|
|
8232
|
+
keychain: "keychain";
|
|
8127
8233
|
"ambient-credential": "ambient-credential";
|
|
8128
8234
|
"binary-discovery": "binary-discovery";
|
|
8129
8235
|
"claude-shim": "claude-shim";
|
|
@@ -8133,6 +8239,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8133
8239
|
"directory-rules": "directory-rules";
|
|
8134
8240
|
"categories-local": "categories-local";
|
|
8135
8241
|
"active-identity": "active-identity";
|
|
8242
|
+
headroom: "headroom";
|
|
8136
8243
|
}>;
|
|
8137
8244
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
8138
8245
|
severity: zod.ZodEnum<{
|
|
@@ -8325,12 +8432,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
8325
8432
|
decision: zod.ZodObject<{
|
|
8326
8433
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
8327
8434
|
identitySource: zod.ZodEnum<{
|
|
8328
|
-
env: "env";
|
|
8329
|
-
none: "none";
|
|
8330
8435
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
8331
8436
|
argv: "argv";
|
|
8437
|
+
env: "env";
|
|
8332
8438
|
"directory-pin": "directory-pin";
|
|
8333
8439
|
"active-identity-file": "active-identity-file";
|
|
8440
|
+
none: "none";
|
|
8334
8441
|
}>;
|
|
8335
8442
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
8336
8443
|
name: 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>;
|
|
@@ -9706,9 +9816,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9706
9816
|
current: zod.ZodString;
|
|
9707
9817
|
latest: zod.ZodString;
|
|
9708
9818
|
action: zod.ZodEnum<{
|
|
9709
|
-
updated: "updated";
|
|
9710
9819
|
current: "current";
|
|
9711
9820
|
available: "available";
|
|
9821
|
+
updated: "updated";
|
|
9712
9822
|
}>;
|
|
9713
9823
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9714
9824
|
};
|
|
@@ -9907,12 +10017,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9907
10017
|
identity: zod.ZodObject<{
|
|
9908
10018
|
name: zod.ZodNullable<zod.ZodString>;
|
|
9909
10019
|
source: zod.ZodEnum<{
|
|
9910
|
-
env: "env";
|
|
9911
|
-
none: "none";
|
|
9912
10020
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
9913
10021
|
argv: "argv";
|
|
10022
|
+
env: "env";
|
|
9914
10023
|
"directory-pin": "directory-pin";
|
|
9915
10024
|
"active-identity-file": "active-identity-file";
|
|
10025
|
+
none: "none";
|
|
9916
10026
|
}>;
|
|
9917
10027
|
}, zod_v4_core.$strict>;
|
|
9918
10028
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -9990,11 +10100,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9990
10100
|
"category-default": "category-default";
|
|
9991
10101
|
}>;
|
|
9992
10102
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
10103
|
+
secret: "secret";
|
|
9993
10104
|
runtime: "runtime";
|
|
9994
10105
|
history: "history";
|
|
9995
10106
|
knowledge: "knowledge";
|
|
9996
10107
|
settings: "settings";
|
|
9997
|
-
secret: "secret";
|
|
9998
10108
|
}>>;
|
|
9999
10109
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
10000
10110
|
key: zod.ZodString;
|
|
@@ -10213,11 +10323,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10213
10323
|
"global-config": "global-config";
|
|
10214
10324
|
"config-profile": "config-profile";
|
|
10215
10325
|
identity: "identity";
|
|
10216
|
-
keychain: "keychain";
|
|
10217
10326
|
provider: "provider";
|
|
10218
|
-
headroom: "headroom";
|
|
10219
10327
|
frontdoor: "frontdoor";
|
|
10220
10328
|
pool: "pool";
|
|
10329
|
+
keychain: "keychain";
|
|
10221
10330
|
"ambient-credential": "ambient-credential";
|
|
10222
10331
|
"binary-discovery": "binary-discovery";
|
|
10223
10332
|
"claude-shim": "claude-shim";
|
|
@@ -10227,6 +10336,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10227
10336
|
"directory-rules": "directory-rules";
|
|
10228
10337
|
"categories-local": "categories-local";
|
|
10229
10338
|
"active-identity": "active-identity";
|
|
10339
|
+
headroom: "headroom";
|
|
10230
10340
|
}>;
|
|
10231
10341
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
10232
10342
|
severity: zod.ZodEnum<{
|
|
@@ -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>;
|
|
@@ -12059,11 +12172,10 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12059
12172
|
"global-config": "global-config";
|
|
12060
12173
|
"config-profile": "config-profile";
|
|
12061
12174
|
identity: "identity";
|
|
12062
|
-
keychain: "keychain";
|
|
12063
12175
|
provider: "provider";
|
|
12064
|
-
headroom: "headroom";
|
|
12065
12176
|
frontdoor: "frontdoor";
|
|
12066
12177
|
pool: "pool";
|
|
12178
|
+
keychain: "keychain";
|
|
12067
12179
|
"ambient-credential": "ambient-credential";
|
|
12068
12180
|
"binary-discovery": "binary-discovery";
|
|
12069
12181
|
"claude-shim": "claude-shim";
|
|
@@ -12073,6 +12185,7 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12073
12185
|
"directory-rules": "directory-rules";
|
|
12074
12186
|
"categories-local": "categories-local";
|
|
12075
12187
|
"active-identity": "active-identity";
|
|
12188
|
+
headroom: "headroom";
|
|
12076
12189
|
}>;
|
|
12077
12190
|
subject: z.ZodOptional<z.ZodString>;
|
|
12078
12191
|
severity: z.ZodEnum<{
|
|
@@ -12090,11 +12203,10 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12090
12203
|
"global-config": "global-config";
|
|
12091
12204
|
"config-profile": "config-profile";
|
|
12092
12205
|
identity: "identity";
|
|
12093
|
-
keychain: "keychain";
|
|
12094
12206
|
provider: "provider";
|
|
12095
|
-
headroom: "headroom";
|
|
12096
12207
|
frontdoor: "frontdoor";
|
|
12097
12208
|
pool: "pool";
|
|
12209
|
+
keychain: "keychain";
|
|
12098
12210
|
"ambient-credential": "ambient-credential";
|
|
12099
12211
|
"binary-discovery": "binary-discovery";
|
|
12100
12212
|
"claude-shim": "claude-shim";
|
|
@@ -12104,6 +12216,7 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12104
12216
|
"directory-rules": "directory-rules";
|
|
12105
12217
|
"categories-local": "categories-local";
|
|
12106
12218
|
"active-identity": "active-identity";
|
|
12219
|
+
headroom: "headroom";
|
|
12107
12220
|
}>;
|
|
12108
12221
|
subject: z.ZodOptional<z.ZodString>;
|
|
12109
12222
|
severity: z.ZodEnum<{
|
|
@@ -12124,9 +12237,9 @@ declare const UpdateCheckOutputSchema: z.ZodObject<{
|
|
|
12124
12237
|
current: z.ZodString;
|
|
12125
12238
|
latest: z.ZodString;
|
|
12126
12239
|
action: z.ZodEnum<{
|
|
12127
|
-
updated: "updated";
|
|
12128
12240
|
current: "current";
|
|
12129
12241
|
available: "available";
|
|
12242
|
+
updated: "updated";
|
|
12130
12243
|
}>;
|
|
12131
12244
|
}, z.core.$strict>;
|
|
12132
12245
|
/** The Sign in with ChatGPT login's state as `codex status` reports it: no sign-in yet, signed in (with who, whether the plan scope was granted, and when the access token lapses), or a file that cannot be read. */
|
|
@@ -12176,12 +12289,12 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
12176
12289
|
decision: z.ZodObject<{
|
|
12177
12290
|
identity: z.ZodOptional<z.ZodString>;
|
|
12178
12291
|
identitySource: z.ZodEnum<{
|
|
12179
|
-
env: "env";
|
|
12180
|
-
none: "none";
|
|
12181
12292
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
12182
12293
|
argv: "argv";
|
|
12294
|
+
env: "env";
|
|
12183
12295
|
"directory-pin": "directory-pin";
|
|
12184
12296
|
"active-identity-file": "active-identity-file";
|
|
12297
|
+
none: "none";
|
|
12185
12298
|
}>;
|
|
12186
12299
|
pool: z.ZodOptional<z.ZodObject<{
|
|
12187
12300
|
name: 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": "agent-shim",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.9.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>",
|