agent-shim 11.7.0 → 11.8.1
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 -1
- package/dist/cli.cjs +406 -315
- package/dist/index.cjs +419 -336
- package/dist/index.mjs +416 -333
- package/dist/types/index.d.ts +50 -36
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1332,8 +1332,8 @@ declare const HeadroomGlobalConfigSchema: z.ZodObject<{
|
|
|
1332
1332
|
targetRatio: z.ZodOptional<z.ZodNumber>;
|
|
1333
1333
|
ccr: z.ZodOptional<z.ZodEnum<{
|
|
1334
1334
|
default: "default";
|
|
1335
|
-
none: "none";
|
|
1336
1335
|
lossless: "lossless";
|
|
1336
|
+
none: "none";
|
|
1337
1337
|
}>>;
|
|
1338
1338
|
rolloutChannel: z.ZodOptional<z.ZodEnum<{
|
|
1339
1339
|
beta: "beta";
|
|
@@ -1460,8 +1460,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
1460
1460
|
targetRatio: z.ZodOptional<z.ZodNumber>;
|
|
1461
1461
|
ccr: z.ZodOptional<z.ZodEnum<{
|
|
1462
1462
|
default: "default";
|
|
1463
|
-
none: "none";
|
|
1464
1463
|
lossless: "lossless";
|
|
1464
|
+
none: "none";
|
|
1465
1465
|
}>>;
|
|
1466
1466
|
rolloutChannel: z.ZodOptional<z.ZodEnum<{
|
|
1467
1467
|
beta: "beta";
|
|
@@ -4163,12 +4163,12 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4163
4163
|
identity: z.ZodObject<{
|
|
4164
4164
|
name: z.ZodNullable<z.ZodString>;
|
|
4165
4165
|
source: z.ZodEnum<{
|
|
4166
|
+
env: "env";
|
|
4167
|
+
none: "none";
|
|
4166
4168
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
4167
4169
|
argv: "argv";
|
|
4168
|
-
env: "env";
|
|
4169
4170
|
"directory-pin": "directory-pin";
|
|
4170
4171
|
"active-identity-file": "active-identity-file";
|
|
4171
|
-
none: "none";
|
|
4172
4172
|
}>;
|
|
4173
4173
|
}, z.core.$strict>;
|
|
4174
4174
|
pool: z.ZodOptional<z.ZodObject<{
|
|
@@ -4246,11 +4246,11 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4246
4246
|
"category-default": "category-default";
|
|
4247
4247
|
}>;
|
|
4248
4248
|
category: z.ZodNullable<z.ZodEnum<{
|
|
4249
|
-
secret: "secret";
|
|
4250
4249
|
runtime: "runtime";
|
|
4251
4250
|
history: "history";
|
|
4252
4251
|
knowledge: "knowledge";
|
|
4253
4252
|
settings: "settings";
|
|
4253
|
+
secret: "secret";
|
|
4254
4254
|
}>>;
|
|
4255
4255
|
rule: z.ZodOptional<z.ZodObject<{
|
|
4256
4256
|
key: z.ZodString;
|
|
@@ -5046,6 +5046,26 @@ interface DoctorHeadroomAllowlist {
|
|
|
5046
5046
|
readonly fileProblem: AllowlistFileProblem | undefined;
|
|
5047
5047
|
}
|
|
5048
5048
|
|
|
5049
|
+
/** The outcome of authenticating the listener a front-door state file names. */
|
|
5050
|
+
type ListenerVerdict = {
|
|
5051
|
+
readonly ok: true;
|
|
5052
|
+
} | {
|
|
5053
|
+
readonly ok: false;
|
|
5054
|
+
readonly reason: string;
|
|
5055
|
+
};
|
|
5056
|
+
|
|
5057
|
+
/** One listener of the front door as `doctor` and `frontdoor status` read it: whether it accepted within the probe's bound, and how long the answer took on this machine now. */
|
|
5058
|
+
interface FrontDoorListenerReading {
|
|
5059
|
+
/** Which listener, and so which sessions it cuts off when it does not accept: `provider` carries provider sessions, `connect` carries every plain OAuth session. */
|
|
5060
|
+
readonly listener: "provider" | "connect";
|
|
5061
|
+
readonly port: number;
|
|
5062
|
+
readonly ok: boolean;
|
|
5063
|
+
/** The probe's own failure reason, absent when it passed. */
|
|
5064
|
+
readonly reason?: string;
|
|
5065
|
+
/** Milliseconds the probe took, as the local clock saw it: a label on a reading, never a threshold. */
|
|
5066
|
+
readonly elapsedMs: number;
|
|
5067
|
+
}
|
|
5068
|
+
|
|
5049
5069
|
/** What listing the front-door supervisors found: their pids, or why the process table could not be read. */
|
|
5050
5070
|
type FrontDoorSupervisorListing = {
|
|
5051
5071
|
readonly ok: true;
|
|
@@ -5178,6 +5198,8 @@ interface RunDoctorParams {
|
|
|
5178
5198
|
readonly supervisors: FrontDoorSupervisorListing;
|
|
5179
5199
|
/** The launches registered with the front door whose launcher is still running, each naming the door it was sent to: what tells a superseded door still serving its launches from one serving nothing. */
|
|
5180
5200
|
readonly liveSessions: readonly FrontDoorSessionSummary[];
|
|
5201
|
+
/** What probing the serving door's listeners found: empty when no door serves or the platform cannot say. Omit to skip the listener checks. */
|
|
5202
|
+
readonly listeners?: readonly FrontDoorListenerReading[];
|
|
5181
5203
|
};
|
|
5182
5204
|
}
|
|
5183
5205
|
/**
|
|
@@ -6942,9 +6964,9 @@ declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
|
|
|
6942
6964
|
current: zod.ZodString;
|
|
6943
6965
|
latest: zod.ZodString;
|
|
6944
6966
|
action: zod.ZodEnum<{
|
|
6967
|
+
updated: "updated";
|
|
6945
6968
|
current: "current";
|
|
6946
6969
|
available: "available";
|
|
6947
|
-
updated: "updated";
|
|
6948
6970
|
}>;
|
|
6949
6971
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
6950
6972
|
};
|
|
@@ -7191,12 +7213,12 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
7191
7213
|
decision: zod.ZodObject<{
|
|
7192
7214
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
7193
7215
|
identitySource: zod.ZodEnum<{
|
|
7216
|
+
env: "env";
|
|
7217
|
+
none: "none";
|
|
7194
7218
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7195
7219
|
argv: "argv";
|
|
7196
|
-
env: "env";
|
|
7197
7220
|
"directory-pin": "directory-pin";
|
|
7198
7221
|
"active-identity-file": "active-identity-file";
|
|
7199
|
-
none: "none";
|
|
7200
7222
|
}>;
|
|
7201
7223
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
7202
7224
|
name: zod.ZodString;
|
|
@@ -7791,12 +7813,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7791
7813
|
identity: zod.ZodObject<{
|
|
7792
7814
|
name: zod.ZodNullable<zod.ZodString>;
|
|
7793
7815
|
source: zod.ZodEnum<{
|
|
7816
|
+
env: "env";
|
|
7817
|
+
none: "none";
|
|
7794
7818
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7795
7819
|
argv: "argv";
|
|
7796
|
-
env: "env";
|
|
7797
7820
|
"directory-pin": "directory-pin";
|
|
7798
7821
|
"active-identity-file": "active-identity-file";
|
|
7799
|
-
none: "none";
|
|
7800
7822
|
}>;
|
|
7801
7823
|
}, zod_v4_core.$strict>;
|
|
7802
7824
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -7874,11 +7896,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7874
7896
|
"category-default": "category-default";
|
|
7875
7897
|
}>;
|
|
7876
7898
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
7877
|
-
secret: "secret";
|
|
7878
7899
|
runtime: "runtime";
|
|
7879
7900
|
history: "history";
|
|
7880
7901
|
knowledge: "knowledge";
|
|
7881
7902
|
settings: "settings";
|
|
7903
|
+
secret: "secret";
|
|
7882
7904
|
}>>;
|
|
7883
7905
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
7884
7906
|
key: zod.ZodString;
|
|
@@ -8097,10 +8119,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8097
8119
|
"global-config": "global-config";
|
|
8098
8120
|
"config-profile": "config-profile";
|
|
8099
8121
|
identity: "identity";
|
|
8122
|
+
keychain: "keychain";
|
|
8100
8123
|
provider: "provider";
|
|
8124
|
+
headroom: "headroom";
|
|
8101
8125
|
frontdoor: "frontdoor";
|
|
8102
8126
|
pool: "pool";
|
|
8103
|
-
keychain: "keychain";
|
|
8104
8127
|
"ambient-credential": "ambient-credential";
|
|
8105
8128
|
"binary-discovery": "binary-discovery";
|
|
8106
8129
|
"claude-shim": "claude-shim";
|
|
@@ -8110,7 +8133,6 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8110
8133
|
"directory-rules": "directory-rules";
|
|
8111
8134
|
"categories-local": "categories-local";
|
|
8112
8135
|
"active-identity": "active-identity";
|
|
8113
|
-
headroom: "headroom";
|
|
8114
8136
|
}>;
|
|
8115
8137
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
8116
8138
|
severity: zod.ZodEnum<{
|
|
@@ -8303,12 +8325,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
8303
8325
|
decision: zod.ZodObject<{
|
|
8304
8326
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
8305
8327
|
identitySource: zod.ZodEnum<{
|
|
8328
|
+
env: "env";
|
|
8329
|
+
none: "none";
|
|
8306
8330
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
8307
8331
|
argv: "argv";
|
|
8308
|
-
env: "env";
|
|
8309
8332
|
"directory-pin": "directory-pin";
|
|
8310
8333
|
"active-identity-file": "active-identity-file";
|
|
8311
|
-
none: "none";
|
|
8312
8334
|
}>;
|
|
8313
8335
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
8314
8336
|
name: zod.ZodString;
|
|
@@ -9684,9 +9706,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9684
9706
|
current: zod.ZodString;
|
|
9685
9707
|
latest: zod.ZodString;
|
|
9686
9708
|
action: zod.ZodEnum<{
|
|
9709
|
+
updated: "updated";
|
|
9687
9710
|
current: "current";
|
|
9688
9711
|
available: "available";
|
|
9689
|
-
updated: "updated";
|
|
9690
9712
|
}>;
|
|
9691
9713
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9692
9714
|
};
|
|
@@ -9885,12 +9907,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9885
9907
|
identity: zod.ZodObject<{
|
|
9886
9908
|
name: zod.ZodNullable<zod.ZodString>;
|
|
9887
9909
|
source: zod.ZodEnum<{
|
|
9910
|
+
env: "env";
|
|
9911
|
+
none: "none";
|
|
9888
9912
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
9889
9913
|
argv: "argv";
|
|
9890
|
-
env: "env";
|
|
9891
9914
|
"directory-pin": "directory-pin";
|
|
9892
9915
|
"active-identity-file": "active-identity-file";
|
|
9893
|
-
none: "none";
|
|
9894
9916
|
}>;
|
|
9895
9917
|
}, zod_v4_core.$strict>;
|
|
9896
9918
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -9968,11 +9990,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9968
9990
|
"category-default": "category-default";
|
|
9969
9991
|
}>;
|
|
9970
9992
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
9971
|
-
secret: "secret";
|
|
9972
9993
|
runtime: "runtime";
|
|
9973
9994
|
history: "history";
|
|
9974
9995
|
knowledge: "knowledge";
|
|
9975
9996
|
settings: "settings";
|
|
9997
|
+
secret: "secret";
|
|
9976
9998
|
}>>;
|
|
9977
9999
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
9978
10000
|
key: zod.ZodString;
|
|
@@ -10191,10 +10213,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10191
10213
|
"global-config": "global-config";
|
|
10192
10214
|
"config-profile": "config-profile";
|
|
10193
10215
|
identity: "identity";
|
|
10216
|
+
keychain: "keychain";
|
|
10194
10217
|
provider: "provider";
|
|
10218
|
+
headroom: "headroom";
|
|
10195
10219
|
frontdoor: "frontdoor";
|
|
10196
10220
|
pool: "pool";
|
|
10197
|
-
keychain: "keychain";
|
|
10198
10221
|
"ambient-credential": "ambient-credential";
|
|
10199
10222
|
"binary-discovery": "binary-discovery";
|
|
10200
10223
|
"claude-shim": "claude-shim";
|
|
@@ -10204,7 +10227,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10204
10227
|
"directory-rules": "directory-rules";
|
|
10205
10228
|
"categories-local": "categories-local";
|
|
10206
10229
|
"active-identity": "active-identity";
|
|
10207
|
-
headroom: "headroom";
|
|
10208
10230
|
}>;
|
|
10209
10231
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
10210
10232
|
severity: zod.ZodEnum<{
|
|
@@ -12037,10 +12059,11 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12037
12059
|
"global-config": "global-config";
|
|
12038
12060
|
"config-profile": "config-profile";
|
|
12039
12061
|
identity: "identity";
|
|
12062
|
+
keychain: "keychain";
|
|
12040
12063
|
provider: "provider";
|
|
12064
|
+
headroom: "headroom";
|
|
12041
12065
|
frontdoor: "frontdoor";
|
|
12042
12066
|
pool: "pool";
|
|
12043
|
-
keychain: "keychain";
|
|
12044
12067
|
"ambient-credential": "ambient-credential";
|
|
12045
12068
|
"binary-discovery": "binary-discovery";
|
|
12046
12069
|
"claude-shim": "claude-shim";
|
|
@@ -12050,7 +12073,6 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12050
12073
|
"directory-rules": "directory-rules";
|
|
12051
12074
|
"categories-local": "categories-local";
|
|
12052
12075
|
"active-identity": "active-identity";
|
|
12053
|
-
headroom: "headroom";
|
|
12054
12076
|
}>;
|
|
12055
12077
|
subject: z.ZodOptional<z.ZodString>;
|
|
12056
12078
|
severity: z.ZodEnum<{
|
|
@@ -12068,10 +12090,11 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12068
12090
|
"global-config": "global-config";
|
|
12069
12091
|
"config-profile": "config-profile";
|
|
12070
12092
|
identity: "identity";
|
|
12093
|
+
keychain: "keychain";
|
|
12071
12094
|
provider: "provider";
|
|
12095
|
+
headroom: "headroom";
|
|
12072
12096
|
frontdoor: "frontdoor";
|
|
12073
12097
|
pool: "pool";
|
|
12074
|
-
keychain: "keychain";
|
|
12075
12098
|
"ambient-credential": "ambient-credential";
|
|
12076
12099
|
"binary-discovery": "binary-discovery";
|
|
12077
12100
|
"claude-shim": "claude-shim";
|
|
@@ -12081,7 +12104,6 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12081
12104
|
"directory-rules": "directory-rules";
|
|
12082
12105
|
"categories-local": "categories-local";
|
|
12083
12106
|
"active-identity": "active-identity";
|
|
12084
|
-
headroom: "headroom";
|
|
12085
12107
|
}>;
|
|
12086
12108
|
subject: z.ZodOptional<z.ZodString>;
|
|
12087
12109
|
severity: z.ZodEnum<{
|
|
@@ -12102,9 +12124,9 @@ declare const UpdateCheckOutputSchema: z.ZodObject<{
|
|
|
12102
12124
|
current: z.ZodString;
|
|
12103
12125
|
latest: z.ZodString;
|
|
12104
12126
|
action: z.ZodEnum<{
|
|
12127
|
+
updated: "updated";
|
|
12105
12128
|
current: "current";
|
|
12106
12129
|
available: "available";
|
|
12107
|
-
updated: "updated";
|
|
12108
12130
|
}>;
|
|
12109
12131
|
}, z.core.$strict>;
|
|
12110
12132
|
/** 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. */
|
|
@@ -12154,12 +12176,12 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
12154
12176
|
decision: z.ZodObject<{
|
|
12155
12177
|
identity: z.ZodOptional<z.ZodString>;
|
|
12156
12178
|
identitySource: z.ZodEnum<{
|
|
12179
|
+
env: "env";
|
|
12180
|
+
none: "none";
|
|
12157
12181
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
12158
12182
|
argv: "argv";
|
|
12159
|
-
env: "env";
|
|
12160
12183
|
"directory-pin": "directory-pin";
|
|
12161
12184
|
"active-identity-file": "active-identity-file";
|
|
12162
|
-
none: "none";
|
|
12163
12185
|
}>;
|
|
12164
12186
|
pool: z.ZodOptional<z.ZodObject<{
|
|
12165
12187
|
name: z.ZodString;
|
|
@@ -12508,14 +12530,6 @@ declare function readRcSelfHostRecord(fs: Pick<FarmFs, "readFileUtf8">, frontdoo
|
|
|
12508
12530
|
*/
|
|
12509
12531
|
declare function mintRcSelfHostCredential(deps: RcSelfHostMintDeps): RcSelfHostMintResult;
|
|
12510
12532
|
|
|
12511
|
-
/** The outcome of authenticating the listener a front-door state file names. */
|
|
12512
|
-
type ListenerVerdict = {
|
|
12513
|
-
readonly ok: true;
|
|
12514
|
-
} | {
|
|
12515
|
-
readonly ok: false;
|
|
12516
|
-
readonly reason: string;
|
|
12517
|
-
};
|
|
12518
|
-
|
|
12519
12533
|
/** Raised when the front door cannot be brought up in time or has recorded a fatal error: a routed launch has no other way to reach its provider, so it must fail rather than start a session that can never answer. */
|
|
12520
12534
|
declare class FrontDoorStartError extends CliError {
|
|
12521
12535
|
constructor(message: string);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.1",
|
|
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>",
|