agent-shim 11.8.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/dist/cli.cjs +7 -6
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/index.d.ts +28 -28
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -34007,7 +34007,7 @@ var init_package = __esm({
|
|
|
34007
34007
|
"package.json"() {
|
|
34008
34008
|
package_default = {
|
|
34009
34009
|
name: "agent-shim",
|
|
34010
|
-
version: "11.8.
|
|
34010
|
+
version: "11.8.1",
|
|
34011
34011
|
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.",
|
|
34012
34012
|
license: "MIT",
|
|
34013
34013
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -34289,10 +34289,11 @@ function parseProviderPath(path59) {
|
|
|
34289
34289
|
}
|
|
34290
34290
|
return { provider: decodeURIComponent(tail.slice(0, slash)), rest: tail.slice(slash) };
|
|
34291
34291
|
}
|
|
34292
|
-
var INTERNAL_HEADER_NAMES, IDENTITY_HEADER, SESSION_HEADER, PROVIDER_HEADER, HEADROOM_FLAG_HEADER, PROJECT_ID_HEADER,
|
|
34292
|
+
var HEADROOM_SESSION_HEADER, INTERNAL_HEADER_NAMES, IDENTITY_HEADER, SESSION_HEADER, PROVIDER_HEADER, HEADROOM_FLAG_HEADER, PROJECT_ID_HEADER, CLIENT_SESSION_HEADER, HEADROOM_BASE_URL_HEADER, AUTH_HEADER, HOP_SECRET_HEADER, HOP_ID_HEADER, PROVIDER_PATH_PREFIX;
|
|
34293
34293
|
var init_route = __esm({
|
|
34294
34294
|
"src/frontdoor/route.ts"() {
|
|
34295
34295
|
"use strict";
|
|
34296
|
+
HEADROOM_SESSION_HEADER = "x-headroom-session-id";
|
|
34296
34297
|
INTERNAL_HEADER_NAMES = [
|
|
34297
34298
|
"x-agent-shim-identity",
|
|
34298
34299
|
"x-agent-shim-session",
|
|
@@ -34302,7 +34303,7 @@ var init_route = __esm({
|
|
|
34302
34303
|
"x-agent-shim-hop",
|
|
34303
34304
|
"x-agent-shim-hop-id",
|
|
34304
34305
|
"x-headroom-project-id",
|
|
34305
|
-
|
|
34306
|
+
HEADROOM_SESSION_HEADER,
|
|
34306
34307
|
"x-headroom-base-url"
|
|
34307
34308
|
];
|
|
34308
34309
|
IDENTITY_HEADER = "x-agent-shim-identity";
|
|
@@ -34310,7 +34311,7 @@ var init_route = __esm({
|
|
|
34310
34311
|
PROVIDER_HEADER = "x-agent-shim-provider";
|
|
34311
34312
|
HEADROOM_FLAG_HEADER = "x-agent-shim-headroom";
|
|
34312
34313
|
PROJECT_ID_HEADER = "x-headroom-project-id";
|
|
34313
|
-
|
|
34314
|
+
CLIENT_SESSION_HEADER = "x-claude-code-session-id";
|
|
34314
34315
|
HEADROOM_BASE_URL_HEADER = "x-headroom-base-url";
|
|
34315
34316
|
AUTH_HEADER = "x-agent-shim-auth";
|
|
34316
34317
|
HOP_SECRET_HEADER = "x-agent-shim-hop";
|
|
@@ -126856,8 +126857,8 @@ async function applyHeadroomHop(request7, response, upstream, deps, onThread) {
|
|
|
126856
126857
|
if (request7.session.projectId !== void 0) {
|
|
126857
126858
|
headers[PROJECT_ID_HEADER] = request7.session.projectId;
|
|
126858
126859
|
}
|
|
126859
|
-
if (request7.session.sessionId !== void 0) {
|
|
126860
|
-
headers[
|
|
126860
|
+
if (request7.session.sessionId !== void 0 && !Object.keys(headers).some((name) => name.toLowerCase() === CLIENT_SESSION_HEADER)) {
|
|
126861
|
+
headers[CLIENT_SESSION_HEADER] = request7.session.sessionId;
|
|
126861
126862
|
}
|
|
126862
126863
|
headers[HOP_SECRET_HEADER] = deps.hopSecret;
|
|
126863
126864
|
try {
|
package/dist/index.cjs
CHANGED
|
@@ -2787,7 +2787,7 @@ var init_package = __esm({
|
|
|
2787
2787
|
"package.json"() {
|
|
2788
2788
|
package_default = {
|
|
2789
2789
|
name: "agent-shim",
|
|
2790
|
-
version: "11.8.
|
|
2790
|
+
version: "11.8.1",
|
|
2791
2791
|
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.",
|
|
2792
2792
|
license: "MIT",
|
|
2793
2793
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
package/dist/index.mjs
CHANGED
|
@@ -2763,7 +2763,7 @@ var init_package = __esm({
|
|
|
2763
2763
|
"package.json"() {
|
|
2764
2764
|
package_default = {
|
|
2765
2765
|
name: "agent-shim",
|
|
2766
|
-
version: "11.8.
|
|
2766
|
+
version: "11.8.1",
|
|
2767
2767
|
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.",
|
|
2768
2768
|
license: "MIT",
|
|
2769
2769
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
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;
|
|
@@ -6964,9 +6964,9 @@ declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
|
|
|
6964
6964
|
current: zod.ZodString;
|
|
6965
6965
|
latest: zod.ZodString;
|
|
6966
6966
|
action: zod.ZodEnum<{
|
|
6967
|
+
updated: "updated";
|
|
6967
6968
|
current: "current";
|
|
6968
6969
|
available: "available";
|
|
6969
|
-
updated: "updated";
|
|
6970
6970
|
}>;
|
|
6971
6971
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
6972
6972
|
};
|
|
@@ -7213,12 +7213,12 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
7213
7213
|
decision: zod.ZodObject<{
|
|
7214
7214
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
7215
7215
|
identitySource: zod.ZodEnum<{
|
|
7216
|
+
env: "env";
|
|
7217
|
+
none: "none";
|
|
7216
7218
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7217
7219
|
argv: "argv";
|
|
7218
|
-
env: "env";
|
|
7219
7220
|
"directory-pin": "directory-pin";
|
|
7220
7221
|
"active-identity-file": "active-identity-file";
|
|
7221
|
-
none: "none";
|
|
7222
7222
|
}>;
|
|
7223
7223
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
7224
7224
|
name: zod.ZodString;
|
|
@@ -7813,12 +7813,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7813
7813
|
identity: zod.ZodObject<{
|
|
7814
7814
|
name: zod.ZodNullable<zod.ZodString>;
|
|
7815
7815
|
source: zod.ZodEnum<{
|
|
7816
|
+
env: "env";
|
|
7817
|
+
none: "none";
|
|
7816
7818
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7817
7819
|
argv: "argv";
|
|
7818
|
-
env: "env";
|
|
7819
7820
|
"directory-pin": "directory-pin";
|
|
7820
7821
|
"active-identity-file": "active-identity-file";
|
|
7821
|
-
none: "none";
|
|
7822
7822
|
}>;
|
|
7823
7823
|
}, zod_v4_core.$strict>;
|
|
7824
7824
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -7896,11 +7896,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7896
7896
|
"category-default": "category-default";
|
|
7897
7897
|
}>;
|
|
7898
7898
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
7899
|
-
secret: "secret";
|
|
7900
7899
|
runtime: "runtime";
|
|
7901
7900
|
history: "history";
|
|
7902
7901
|
knowledge: "knowledge";
|
|
7903
7902
|
settings: "settings";
|
|
7903
|
+
secret: "secret";
|
|
7904
7904
|
}>>;
|
|
7905
7905
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
7906
7906
|
key: zod.ZodString;
|
|
@@ -8119,10 +8119,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8119
8119
|
"global-config": "global-config";
|
|
8120
8120
|
"config-profile": "config-profile";
|
|
8121
8121
|
identity: "identity";
|
|
8122
|
+
keychain: "keychain";
|
|
8122
8123
|
provider: "provider";
|
|
8124
|
+
headroom: "headroom";
|
|
8123
8125
|
frontdoor: "frontdoor";
|
|
8124
8126
|
pool: "pool";
|
|
8125
|
-
keychain: "keychain";
|
|
8126
8127
|
"ambient-credential": "ambient-credential";
|
|
8127
8128
|
"binary-discovery": "binary-discovery";
|
|
8128
8129
|
"claude-shim": "claude-shim";
|
|
@@ -8132,7 +8133,6 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8132
8133
|
"directory-rules": "directory-rules";
|
|
8133
8134
|
"categories-local": "categories-local";
|
|
8134
8135
|
"active-identity": "active-identity";
|
|
8135
|
-
headroom: "headroom";
|
|
8136
8136
|
}>;
|
|
8137
8137
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
8138
8138
|
severity: zod.ZodEnum<{
|
|
@@ -8325,12 +8325,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
8325
8325
|
decision: zod.ZodObject<{
|
|
8326
8326
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
8327
8327
|
identitySource: zod.ZodEnum<{
|
|
8328
|
+
env: "env";
|
|
8329
|
+
none: "none";
|
|
8328
8330
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
8329
8331
|
argv: "argv";
|
|
8330
|
-
env: "env";
|
|
8331
8332
|
"directory-pin": "directory-pin";
|
|
8332
8333
|
"active-identity-file": "active-identity-file";
|
|
8333
|
-
none: "none";
|
|
8334
8334
|
}>;
|
|
8335
8335
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
8336
8336
|
name: zod.ZodString;
|
|
@@ -9706,9 +9706,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9706
9706
|
current: zod.ZodString;
|
|
9707
9707
|
latest: zod.ZodString;
|
|
9708
9708
|
action: zod.ZodEnum<{
|
|
9709
|
+
updated: "updated";
|
|
9709
9710
|
current: "current";
|
|
9710
9711
|
available: "available";
|
|
9711
|
-
updated: "updated";
|
|
9712
9712
|
}>;
|
|
9713
9713
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9714
9714
|
};
|
|
@@ -9907,12 +9907,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9907
9907
|
identity: zod.ZodObject<{
|
|
9908
9908
|
name: zod.ZodNullable<zod.ZodString>;
|
|
9909
9909
|
source: zod.ZodEnum<{
|
|
9910
|
+
env: "env";
|
|
9911
|
+
none: "none";
|
|
9910
9912
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
9911
9913
|
argv: "argv";
|
|
9912
|
-
env: "env";
|
|
9913
9914
|
"directory-pin": "directory-pin";
|
|
9914
9915
|
"active-identity-file": "active-identity-file";
|
|
9915
|
-
none: "none";
|
|
9916
9916
|
}>;
|
|
9917
9917
|
}, zod_v4_core.$strict>;
|
|
9918
9918
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -9990,11 +9990,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9990
9990
|
"category-default": "category-default";
|
|
9991
9991
|
}>;
|
|
9992
9992
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
9993
|
-
secret: "secret";
|
|
9994
9993
|
runtime: "runtime";
|
|
9995
9994
|
history: "history";
|
|
9996
9995
|
knowledge: "knowledge";
|
|
9997
9996
|
settings: "settings";
|
|
9997
|
+
secret: "secret";
|
|
9998
9998
|
}>>;
|
|
9999
9999
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
10000
10000
|
key: zod.ZodString;
|
|
@@ -10213,10 +10213,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10213
10213
|
"global-config": "global-config";
|
|
10214
10214
|
"config-profile": "config-profile";
|
|
10215
10215
|
identity: "identity";
|
|
10216
|
+
keychain: "keychain";
|
|
10216
10217
|
provider: "provider";
|
|
10218
|
+
headroom: "headroom";
|
|
10217
10219
|
frontdoor: "frontdoor";
|
|
10218
10220
|
pool: "pool";
|
|
10219
|
-
keychain: "keychain";
|
|
10220
10221
|
"ambient-credential": "ambient-credential";
|
|
10221
10222
|
"binary-discovery": "binary-discovery";
|
|
10222
10223
|
"claude-shim": "claude-shim";
|
|
@@ -10226,7 +10227,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10226
10227
|
"directory-rules": "directory-rules";
|
|
10227
10228
|
"categories-local": "categories-local";
|
|
10228
10229
|
"active-identity": "active-identity";
|
|
10229
|
-
headroom: "headroom";
|
|
10230
10230
|
}>;
|
|
10231
10231
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
10232
10232
|
severity: zod.ZodEnum<{
|
|
@@ -12059,10 +12059,11 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12059
12059
|
"global-config": "global-config";
|
|
12060
12060
|
"config-profile": "config-profile";
|
|
12061
12061
|
identity: "identity";
|
|
12062
|
+
keychain: "keychain";
|
|
12062
12063
|
provider: "provider";
|
|
12064
|
+
headroom: "headroom";
|
|
12063
12065
|
frontdoor: "frontdoor";
|
|
12064
12066
|
pool: "pool";
|
|
12065
|
-
keychain: "keychain";
|
|
12066
12067
|
"ambient-credential": "ambient-credential";
|
|
12067
12068
|
"binary-discovery": "binary-discovery";
|
|
12068
12069
|
"claude-shim": "claude-shim";
|
|
@@ -12072,7 +12073,6 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12072
12073
|
"directory-rules": "directory-rules";
|
|
12073
12074
|
"categories-local": "categories-local";
|
|
12074
12075
|
"active-identity": "active-identity";
|
|
12075
|
-
headroom: "headroom";
|
|
12076
12076
|
}>;
|
|
12077
12077
|
subject: z.ZodOptional<z.ZodString>;
|
|
12078
12078
|
severity: z.ZodEnum<{
|
|
@@ -12090,10 +12090,11 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12090
12090
|
"global-config": "global-config";
|
|
12091
12091
|
"config-profile": "config-profile";
|
|
12092
12092
|
identity: "identity";
|
|
12093
|
+
keychain: "keychain";
|
|
12093
12094
|
provider: "provider";
|
|
12095
|
+
headroom: "headroom";
|
|
12094
12096
|
frontdoor: "frontdoor";
|
|
12095
12097
|
pool: "pool";
|
|
12096
|
-
keychain: "keychain";
|
|
12097
12098
|
"ambient-credential": "ambient-credential";
|
|
12098
12099
|
"binary-discovery": "binary-discovery";
|
|
12099
12100
|
"claude-shim": "claude-shim";
|
|
@@ -12103,7 +12104,6 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12103
12104
|
"directory-rules": "directory-rules";
|
|
12104
12105
|
"categories-local": "categories-local";
|
|
12105
12106
|
"active-identity": "active-identity";
|
|
12106
|
-
headroom: "headroom";
|
|
12107
12107
|
}>;
|
|
12108
12108
|
subject: z.ZodOptional<z.ZodString>;
|
|
12109
12109
|
severity: z.ZodEnum<{
|
|
@@ -12124,9 +12124,9 @@ declare const UpdateCheckOutputSchema: z.ZodObject<{
|
|
|
12124
12124
|
current: z.ZodString;
|
|
12125
12125
|
latest: z.ZodString;
|
|
12126
12126
|
action: z.ZodEnum<{
|
|
12127
|
+
updated: "updated";
|
|
12127
12128
|
current: "current";
|
|
12128
12129
|
available: "available";
|
|
12129
|
-
updated: "updated";
|
|
12130
12130
|
}>;
|
|
12131
12131
|
}, z.core.$strict>;
|
|
12132
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. */
|
|
@@ -12176,12 +12176,12 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
12176
12176
|
decision: z.ZodObject<{
|
|
12177
12177
|
identity: z.ZodOptional<z.ZodString>;
|
|
12178
12178
|
identitySource: z.ZodEnum<{
|
|
12179
|
+
env: "env";
|
|
12180
|
+
none: "none";
|
|
12179
12181
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
12180
12182
|
argv: "argv";
|
|
12181
|
-
env: "env";
|
|
12182
12183
|
"directory-pin": "directory-pin";
|
|
12183
12184
|
"active-identity-file": "active-identity-file";
|
|
12184
|
-
none: "none";
|
|
12185
12185
|
}>;
|
|
12186
12186
|
pool: z.ZodOptional<z.ZodObject<{
|
|
12187
12187
|
name: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "11.8.
|
|
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>",
|