agent-shim 14.14.0 → 14.15.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 +3791 -3491
- package/dist/index.cjs +56 -4
- package/dist/index.mjs +56 -4
- package/dist/types/index.d.ts +52 -47
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -407,8 +407,8 @@ declare const LaunchSchema: z.ZodObject<{
|
|
|
407
407
|
effort: z.ZodOptional<z.ZodObject<{
|
|
408
408
|
format: z.ZodOptional<z.ZodEnum<{
|
|
409
409
|
symbol: "symbol";
|
|
410
|
-
full: "full";
|
|
411
410
|
text: "text";
|
|
411
|
+
full: "full";
|
|
412
412
|
}>>;
|
|
413
413
|
}, z.core.$strict>>;
|
|
414
414
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -799,9 +799,9 @@ declare const LaunchSchema: z.ZodObject<{
|
|
|
799
799
|
}, z.core.$strict>>;
|
|
800
800
|
project: z.ZodOptional<z.ZodObject<{
|
|
801
801
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
802
|
-
full: "full";
|
|
803
802
|
1: "1";
|
|
804
803
|
2: "2";
|
|
804
|
+
full: "full";
|
|
805
805
|
3: "3";
|
|
806
806
|
}>>;
|
|
807
807
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1648,8 +1648,8 @@ declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
1648
1648
|
effort: z.ZodOptional<z.ZodObject<{
|
|
1649
1649
|
format: z.ZodOptional<z.ZodEnum<{
|
|
1650
1650
|
symbol: "symbol";
|
|
1651
|
-
full: "full";
|
|
1652
1651
|
text: "text";
|
|
1652
|
+
full: "full";
|
|
1653
1653
|
}>>;
|
|
1654
1654
|
}, z.core.$strict>>;
|
|
1655
1655
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -2040,9 +2040,9 @@ declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
2040
2040
|
}, z.core.$strict>>;
|
|
2041
2041
|
project: z.ZodOptional<z.ZodObject<{
|
|
2042
2042
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
2043
|
-
full: "full";
|
|
2044
2043
|
1: "1";
|
|
2045
2044
|
2: "2";
|
|
2045
|
+
full: "full";
|
|
2046
2046
|
3: "3";
|
|
2047
2047
|
}>>;
|
|
2048
2048
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2498,8 +2498,8 @@ declare const DirectoryRuleSchema: z.ZodObject<{
|
|
|
2498
2498
|
effort: z.ZodOptional<z.ZodObject<{
|
|
2499
2499
|
format: z.ZodOptional<z.ZodEnum<{
|
|
2500
2500
|
symbol: "symbol";
|
|
2501
|
-
full: "full";
|
|
2502
2501
|
text: "text";
|
|
2502
|
+
full: "full";
|
|
2503
2503
|
}>>;
|
|
2504
2504
|
}, z.core.$strict>>;
|
|
2505
2505
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -2890,9 +2890,9 @@ declare const DirectoryRuleSchema: z.ZodObject<{
|
|
|
2890
2890
|
}, z.core.$strict>>;
|
|
2891
2891
|
project: z.ZodOptional<z.ZodObject<{
|
|
2892
2892
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
2893
|
-
full: "full";
|
|
2894
2893
|
1: "1";
|
|
2895
2894
|
2: "2";
|
|
2895
|
+
full: "full";
|
|
2896
2896
|
3: "3";
|
|
2897
2897
|
}>>;
|
|
2898
2898
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3274,8 +3274,8 @@ declare const DirectoryRulesSchema: z.ZodObject<{
|
|
|
3274
3274
|
effort: z.ZodOptional<z.ZodObject<{
|
|
3275
3275
|
format: z.ZodOptional<z.ZodEnum<{
|
|
3276
3276
|
symbol: "symbol";
|
|
3277
|
-
full: "full";
|
|
3278
3277
|
text: "text";
|
|
3278
|
+
full: "full";
|
|
3279
3279
|
}>>;
|
|
3280
3280
|
}, z.core.$strict>>;
|
|
3281
3281
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -3666,9 +3666,9 @@ declare const DirectoryRulesSchema: z.ZodObject<{
|
|
|
3666
3666
|
}, z.core.$strict>>;
|
|
3667
3667
|
project: z.ZodOptional<z.ZodObject<{
|
|
3668
3668
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
3669
|
-
full: "full";
|
|
3670
3669
|
1: "1";
|
|
3671
3670
|
2: "2";
|
|
3671
|
+
full: "full";
|
|
3672
3672
|
3: "3";
|
|
3673
3673
|
}>>;
|
|
3674
3674
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4050,8 +4050,8 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
4050
4050
|
effort: z.ZodOptional<z.ZodObject<{
|
|
4051
4051
|
format: z.ZodOptional<z.ZodEnum<{
|
|
4052
4052
|
symbol: "symbol";
|
|
4053
|
-
full: "full";
|
|
4054
4053
|
text: "text";
|
|
4054
|
+
full: "full";
|
|
4055
4055
|
}>>;
|
|
4056
4056
|
}, z.core.$strict>>;
|
|
4057
4057
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -4442,9 +4442,9 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
4442
4442
|
}, z.core.$strict>>;
|
|
4443
4443
|
project: z.ZodOptional<z.ZodObject<{
|
|
4444
4444
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
4445
|
-
full: "full";
|
|
4446
4445
|
1: "1";
|
|
4447
4446
|
2: "2";
|
|
4447
|
+
full: "full";
|
|
4448
4448
|
3: "3";
|
|
4449
4449
|
}>>;
|
|
4450
4450
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4806,8 +4806,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
4806
4806
|
effort: z.ZodOptional<z.ZodObject<{
|
|
4807
4807
|
format: z.ZodOptional<z.ZodEnum<{
|
|
4808
4808
|
symbol: "symbol";
|
|
4809
|
-
full: "full";
|
|
4810
4809
|
text: "text";
|
|
4810
|
+
full: "full";
|
|
4811
4811
|
}>>;
|
|
4812
4812
|
}, z.core.$strict>>;
|
|
4813
4813
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -5198,9 +5198,9 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
5198
5198
|
}, z.core.$strict>>;
|
|
5199
5199
|
project: z.ZodOptional<z.ZodObject<{
|
|
5200
5200
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
5201
|
-
full: "full";
|
|
5202
5201
|
1: "1";
|
|
5203
5202
|
2: "2";
|
|
5203
|
+
full: "full";
|
|
5204
5204
|
3: "3";
|
|
5205
5205
|
}>>;
|
|
5206
5206
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6514,9 +6514,6 @@ interface Predecessor {
|
|
|
6514
6514
|
*/
|
|
6515
6515
|
/** The API host: Claude Code's own upstream, the one host whose `/v1/` paths the routed pipeline serves. */
|
|
6516
6516
|
declare const CONNECT_INTERCEPT_HOST = "api.anthropic.com";
|
|
6517
|
-
/**
|
|
6518
|
-
* Every CONNECT host whose TLS this surface terminates, each with its own leaf and its own HTTP parser: the API host above, and `platform.claude.com`, the claude.ai control plane where Remote Control's long-lived channel and its handshake live. Terminating the second one is what makes a Remote Control login rejection observable at all: its bytes cross this surface either way, and blind-tunnelling them hides exactly the exchange that failed. Only the API host's `/v1/` paths ever reach the routed pipeline; everything else on either session is piped to that session's own real upstream, so the pipeline's identification and authorisation are never asked to serve another host's traffic.
|
|
6519
|
-
*/
|
|
6520
6517
|
declare const CONNECT_INTERCEPT_HOSTS: readonly string[];
|
|
6521
6518
|
/** Paths under this prefix are what the routed pipeline serves; everything else on the terminated session goes to the real upstream. */
|
|
6522
6519
|
declare const ROUTED_PATH_PREFIX = "/v1/";
|
|
@@ -6673,6 +6670,13 @@ interface ConnectServerConfig {
|
|
|
6673
6670
|
readonly leafFor: (host: string) => LeafCert;
|
|
6674
6671
|
/** Where non-routed paths on one host's terminated session are piped: that host's own real upstream over TLS. */
|
|
6675
6672
|
readonly upstreamFor: (host: string) => ConnectForwardTarget;
|
|
6673
|
+
/**
|
|
6674
|
+
* Rewrites a non-routed request's `authorization` header and, since the lender's own connector carries a different id than the one this swap decodes it from, its URL, before it is piped to `host`'s real upstream: the one host (`CONNECT_CONNECTOR_PROXY_HOST`) and reason this surface edits a request at all, a connector call whose id names a lender the session's identity currently holds a `connectors` grant from. Undefined, or no call at all, leaves the request exactly as the client sent it; `tunnelToken` is the CONNECT capability this session presented (absent on the transparent surface, which resolves no identity).
|
|
6675
|
+
*/
|
|
6676
|
+
readonly rewriteForwardedAuthorization?: (host: string, request: IncomingMessage, tunnelToken: string | undefined) => {
|
|
6677
|
+
readonly authorization: string;
|
|
6678
|
+
readonly url: string;
|
|
6679
|
+
} | undefined;
|
|
6676
6680
|
/** Whether a capability presented as a CONNECT request's proxy credential belongs to a live launch: the same constant-time check against the same registry the routed pipeline's admission makes, read fresh on every call because launches come and go. */
|
|
6677
6681
|
readonly isLiveCapability: (token: string) => boolean;
|
|
6678
6682
|
/**
|
|
@@ -10744,8 +10748,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10744
10748
|
effort: zod.ZodOptional<zod.ZodObject<{
|
|
10745
10749
|
format: zod.ZodOptional<zod.ZodEnum<{
|
|
10746
10750
|
symbol: "symbol";
|
|
10747
|
-
full: "full";
|
|
10748
10751
|
text: "text";
|
|
10752
|
+
full: "full";
|
|
10749
10753
|
}>>;
|
|
10750
10754
|
}, zod_v4_core.$strict>>;
|
|
10751
10755
|
advisor: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -11136,9 +11140,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11136
11140
|
}, zod_v4_core.$strict>>;
|
|
11137
11141
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
11138
11142
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
11139
|
-
full: "full";
|
|
11140
11143
|
1: "1";
|
|
11141
11144
|
2: "2";
|
|
11145
|
+
full: "full";
|
|
11142
11146
|
3: "3";
|
|
11143
11147
|
}>>;
|
|
11144
11148
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -11468,8 +11472,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11468
11472
|
effort: zod.ZodOptional<zod.ZodObject<{
|
|
11469
11473
|
format: zod.ZodOptional<zod.ZodEnum<{
|
|
11470
11474
|
symbol: "symbol";
|
|
11471
|
-
full: "full";
|
|
11472
11475
|
text: "text";
|
|
11476
|
+
full: "full";
|
|
11473
11477
|
}>>;
|
|
11474
11478
|
}, zod_v4_core.$strict>>;
|
|
11475
11479
|
advisor: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -11860,9 +11864,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11860
11864
|
}, zod_v4_core.$strict>>;
|
|
11861
11865
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
11862
11866
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
11863
|
-
full: "full";
|
|
11864
11867
|
1: "1";
|
|
11865
11868
|
2: "2";
|
|
11869
|
+
full: "full";
|
|
11866
11870
|
3: "3";
|
|
11867
11871
|
}>>;
|
|
11868
11872
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -12668,8 +12672,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
12668
12672
|
effort: zod.ZodOptional<zod.ZodObject<{
|
|
12669
12673
|
format: zod.ZodOptional<zod.ZodEnum<{
|
|
12670
12674
|
symbol: "symbol";
|
|
12671
|
-
full: "full";
|
|
12672
12675
|
text: "text";
|
|
12676
|
+
full: "full";
|
|
12673
12677
|
}>>;
|
|
12674
12678
|
}, zod_v4_core.$strict>>;
|
|
12675
12679
|
advisor: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -13060,9 +13064,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13060
13064
|
}, zod_v4_core.$strict>>;
|
|
13061
13065
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
13062
13066
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
13063
|
-
full: "full";
|
|
13064
13067
|
1: "1";
|
|
13065
13068
|
2: "2";
|
|
13069
|
+
full: "full";
|
|
13066
13070
|
3: "3";
|
|
13067
13071
|
}>>;
|
|
13068
13072
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -13449,8 +13453,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13449
13453
|
effort: zod.ZodOptional<zod.ZodObject<{
|
|
13450
13454
|
format: zod.ZodOptional<zod.ZodEnum<{
|
|
13451
13455
|
symbol: "symbol";
|
|
13452
|
-
full: "full";
|
|
13453
13456
|
text: "text";
|
|
13457
|
+
full: "full";
|
|
13454
13458
|
}>>;
|
|
13455
13459
|
}, zod_v4_core.$strict>>;
|
|
13456
13460
|
advisor: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -13841,9 +13845,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13841
13845
|
}, zod_v4_core.$strict>>;
|
|
13842
13846
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
13843
13847
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
13844
|
-
full: "full";
|
|
13845
13848
|
1: "1";
|
|
13846
13849
|
2: "2";
|
|
13850
|
+
full: "full";
|
|
13847
13851
|
3: "3";
|
|
13848
13852
|
}>>;
|
|
13849
13853
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -14510,8 +14514,8 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14510
14514
|
effort: z.ZodOptional<z.ZodObject<{
|
|
14511
14515
|
format: z.ZodOptional<z.ZodEnum<{
|
|
14512
14516
|
symbol: "symbol";
|
|
14513
|
-
full: "full";
|
|
14514
14517
|
text: "text";
|
|
14518
|
+
full: "full";
|
|
14515
14519
|
}>>;
|
|
14516
14520
|
}, z.core.$strict>>;
|
|
14517
14521
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -14902,9 +14906,9 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14902
14906
|
}, z.core.$strict>>;
|
|
14903
14907
|
project: z.ZodOptional<z.ZodObject<{
|
|
14904
14908
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
14905
|
-
full: "full";
|
|
14906
14909
|
1: "1";
|
|
14907
14910
|
2: "2";
|
|
14911
|
+
full: "full";
|
|
14908
14912
|
3: "3";
|
|
14909
14913
|
}>>;
|
|
14910
14914
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -15435,8 +15439,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15435
15439
|
effort: zod.ZodOptional<zod.ZodObject<{
|
|
15436
15440
|
format: zod.ZodOptional<zod.ZodEnum<{
|
|
15437
15441
|
symbol: "symbol";
|
|
15438
|
-
full: "full";
|
|
15439
15442
|
text: "text";
|
|
15443
|
+
full: "full";
|
|
15440
15444
|
}>>;
|
|
15441
15445
|
}, zod_v4_core.$strict>>;
|
|
15442
15446
|
advisor: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -15827,9 +15831,9 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15827
15831
|
}, zod_v4_core.$strict>>;
|
|
15828
15832
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
15829
15833
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
15830
|
-
full: "full";
|
|
15831
15834
|
1: "1";
|
|
15832
15835
|
2: "2";
|
|
15836
|
+
full: "full";
|
|
15833
15837
|
3: "3";
|
|
15834
15838
|
}>>;
|
|
15835
15839
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -17205,8 +17209,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17205
17209
|
effort: z.ZodOptional<z.ZodObject<{
|
|
17206
17210
|
format: z.ZodOptional<z.ZodEnum<{
|
|
17207
17211
|
symbol: "symbol";
|
|
17208
|
-
full: "full";
|
|
17209
17212
|
text: "text";
|
|
17213
|
+
full: "full";
|
|
17210
17214
|
}>>;
|
|
17211
17215
|
}, z.core.$strict>>;
|
|
17212
17216
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -17597,9 +17601,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17597
17601
|
}, z.core.$strict>>;
|
|
17598
17602
|
project: z.ZodOptional<z.ZodObject<{
|
|
17599
17603
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
17600
|
-
full: "full";
|
|
17601
17604
|
1: "1";
|
|
17602
17605
|
2: "2";
|
|
17606
|
+
full: "full";
|
|
17603
17607
|
3: "3";
|
|
17604
17608
|
}>>;
|
|
17605
17609
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -18202,8 +18206,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18202
18206
|
effort: z.ZodOptional<z.ZodObject<{
|
|
18203
18207
|
format: z.ZodOptional<z.ZodEnum<{
|
|
18204
18208
|
symbol: "symbol";
|
|
18205
|
-
full: "full";
|
|
18206
18209
|
text: "text";
|
|
18210
|
+
full: "full";
|
|
18207
18211
|
}>>;
|
|
18208
18212
|
}, z.core.$strict>>;
|
|
18209
18213
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -18594,9 +18598,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18594
18598
|
}, z.core.$strict>>;
|
|
18595
18599
|
project: z.ZodOptional<z.ZodObject<{
|
|
18596
18600
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
18597
|
-
full: "full";
|
|
18598
18601
|
1: "1";
|
|
18599
18602
|
2: "2";
|
|
18603
|
+
full: "full";
|
|
18600
18604
|
3: "3";
|
|
18601
18605
|
}>>;
|
|
18602
18606
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -18926,8 +18930,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18926
18930
|
effort: z.ZodOptional<z.ZodObject<{
|
|
18927
18931
|
format: z.ZodOptional<z.ZodEnum<{
|
|
18928
18932
|
symbol: "symbol";
|
|
18929
|
-
full: "full";
|
|
18930
18933
|
text: "text";
|
|
18934
|
+
full: "full";
|
|
18931
18935
|
}>>;
|
|
18932
18936
|
}, z.core.$strict>>;
|
|
18933
18937
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -19318,9 +19322,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
19318
19322
|
}, z.core.$strict>>;
|
|
19319
19323
|
project: z.ZodOptional<z.ZodObject<{
|
|
19320
19324
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
19321
|
-
full: "full";
|
|
19322
19325
|
1: "1";
|
|
19323
19326
|
2: "2";
|
|
19327
|
+
full: "full";
|
|
19324
19328
|
3: "3";
|
|
19325
19329
|
}>>;
|
|
19326
19330
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20126,8 +20130,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20126
20130
|
effort: z.ZodOptional<z.ZodObject<{
|
|
20127
20131
|
format: z.ZodOptional<z.ZodEnum<{
|
|
20128
20132
|
symbol: "symbol";
|
|
20129
|
-
full: "full";
|
|
20130
20133
|
text: "text";
|
|
20134
|
+
full: "full";
|
|
20131
20135
|
}>>;
|
|
20132
20136
|
}, z.core.$strict>>;
|
|
20133
20137
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -20518,9 +20522,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20518
20522
|
}, z.core.$strict>>;
|
|
20519
20523
|
project: z.ZodOptional<z.ZodObject<{
|
|
20520
20524
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
20521
|
-
full: "full";
|
|
20522
20525
|
1: "1";
|
|
20523
20526
|
2: "2";
|
|
20527
|
+
full: "full";
|
|
20524
20528
|
3: "3";
|
|
20525
20529
|
}>>;
|
|
20526
20530
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20907,8 +20911,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20907
20911
|
effort: z.ZodOptional<z.ZodObject<{
|
|
20908
20912
|
format: z.ZodOptional<z.ZodEnum<{
|
|
20909
20913
|
symbol: "symbol";
|
|
20910
|
-
full: "full";
|
|
20911
20914
|
text: "text";
|
|
20915
|
+
full: "full";
|
|
20912
20916
|
}>>;
|
|
20913
20917
|
}, z.core.$strict>>;
|
|
20914
20918
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -21299,9 +21303,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21299
21303
|
}, z.core.$strict>>;
|
|
21300
21304
|
project: z.ZodOptional<z.ZodObject<{
|
|
21301
21305
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
21302
|
-
full: "full";
|
|
21303
21306
|
1: "1";
|
|
21304
21307
|
2: "2";
|
|
21308
|
+
full: "full";
|
|
21305
21309
|
3: "3";
|
|
21306
21310
|
}>>;
|
|
21307
21311
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -23051,8 +23055,8 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
23051
23055
|
effort: z.ZodOptional<z.ZodObject<{
|
|
23052
23056
|
format: z.ZodOptional<z.ZodEnum<{
|
|
23053
23057
|
symbol: "symbol";
|
|
23054
|
-
full: "full";
|
|
23055
23058
|
text: "text";
|
|
23059
|
+
full: "full";
|
|
23056
23060
|
}>>;
|
|
23057
23061
|
}, z.core.$strict>>;
|
|
23058
23062
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -23443,9 +23447,9 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
23443
23447
|
}, z.core.$strict>>;
|
|
23444
23448
|
project: z.ZodOptional<z.ZodObject<{
|
|
23445
23449
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23446
|
-
full: "full";
|
|
23447
23450
|
1: "1";
|
|
23448
23451
|
2: "2";
|
|
23452
|
+
full: "full";
|
|
23449
23453
|
3: "3";
|
|
23450
23454
|
}>>;
|
|
23451
23455
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -23777,8 +23781,8 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23777
23781
|
effort: z.ZodOptional<z.ZodObject<{
|
|
23778
23782
|
format: z.ZodOptional<z.ZodEnum<{
|
|
23779
23783
|
symbol: "symbol";
|
|
23780
|
-
full: "full";
|
|
23781
23784
|
text: "text";
|
|
23785
|
+
full: "full";
|
|
23782
23786
|
}>>;
|
|
23783
23787
|
}, z.core.$strict>>;
|
|
23784
23788
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -24169,9 +24173,9 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
24169
24173
|
}, z.core.$strict>>;
|
|
24170
24174
|
project: z.ZodOptional<z.ZodObject<{
|
|
24171
24175
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
24172
|
-
full: "full";
|
|
24173
24176
|
1: "1";
|
|
24174
24177
|
2: "2";
|
|
24178
|
+
full: "full";
|
|
24175
24179
|
3: "3";
|
|
24176
24180
|
}>>;
|
|
24177
24181
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -24979,8 +24983,8 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
24979
24983
|
effort: z.ZodOptional<z.ZodObject<{
|
|
24980
24984
|
format: z.ZodOptional<z.ZodEnum<{
|
|
24981
24985
|
symbol: "symbol";
|
|
24982
|
-
full: "full";
|
|
24983
24986
|
text: "text";
|
|
24987
|
+
full: "full";
|
|
24984
24988
|
}>>;
|
|
24985
24989
|
}, z.core.$strict>>;
|
|
24986
24990
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -25371,9 +25375,9 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
25371
25375
|
}, z.core.$strict>>;
|
|
25372
25376
|
project: z.ZodOptional<z.ZodObject<{
|
|
25373
25377
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
25374
|
-
full: "full";
|
|
25375
25378
|
1: "1";
|
|
25376
25379
|
2: "2";
|
|
25380
|
+
full: "full";
|
|
25377
25381
|
3: "3";
|
|
25378
25382
|
}>>;
|
|
25379
25383
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -25762,8 +25766,8 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
25762
25766
|
effort: z.ZodOptional<z.ZodObject<{
|
|
25763
25767
|
format: z.ZodOptional<z.ZodEnum<{
|
|
25764
25768
|
symbol: "symbol";
|
|
25765
|
-
full: "full";
|
|
25766
25769
|
text: "text";
|
|
25770
|
+
full: "full";
|
|
25767
25771
|
}>>;
|
|
25768
25772
|
}, z.core.$strict>>;
|
|
25769
25773
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -26154,9 +26158,9 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
26154
26158
|
}, z.core.$strict>>;
|
|
26155
26159
|
project: z.ZodOptional<z.ZodObject<{
|
|
26156
26160
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
26157
|
-
full: "full";
|
|
26158
26161
|
1: "1";
|
|
26159
26162
|
2: "2";
|
|
26163
|
+
full: "full";
|
|
26160
26164
|
3: "3";
|
|
26161
26165
|
}>>;
|
|
26162
26166
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26449,8 +26453,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26449
26453
|
effort: z.ZodOptional<z.ZodObject<{
|
|
26450
26454
|
format: z.ZodOptional<z.ZodEnum<{
|
|
26451
26455
|
symbol: "symbol";
|
|
26452
|
-
full: "full";
|
|
26453
26456
|
text: "text";
|
|
26457
|
+
full: "full";
|
|
26454
26458
|
}>>;
|
|
26455
26459
|
}, z.core.$strict>>;
|
|
26456
26460
|
advisor: z.ZodOptional<z.ZodObject<{
|
|
@@ -26841,9 +26845,9 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26841
26845
|
}, z.core.$strict>>;
|
|
26842
26846
|
project: z.ZodOptional<z.ZodObject<{
|
|
26843
26847
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
26844
|
-
full: "full";
|
|
26845
26848
|
1: "1";
|
|
26846
26849
|
2: "2";
|
|
26850
|
+
full: "full";
|
|
26847
26851
|
3: "3";
|
|
26848
26852
|
}>>;
|
|
26849
26853
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -28142,6 +28146,7 @@ type IdentityListing = IdentityListEntry | UnreadableIdentityListEntry;
|
|
|
28142
28146
|
*
|
|
28143
28147
|
* One identity whose `identity.json` cannot be read is reported as its own `UnreadableIdentityListEntry` rather than aborting the whole listing. A single bad file blocking `identity list` outright is exactly the failure mode that hides every *other* identity from view at the moment the user most needs to see them — and the file need not even be corrupt to land here, since a name written by a newer agent-shim whose naming rule has since widened is rejected outright by an older binary's own copy of `IdentitySchema`.
|
|
28144
28148
|
*/
|
|
28149
|
+
/** Every identity's grants, with none of the rest of its `identity.json`: a listing's `grants` field alongside the name and id a grant is read or checked by, skipping any identity whose own file could not be read. What the door's connector-proxy bearer swap (`connectorProxyAuth.ts`) reads fresh on every borrowed request, since a grant can change mid-session. */
|
|
28145
28150
|
declare function listIdentities(paths: LayoutPaths): readonly IdentityListing[];
|
|
28146
28151
|
/**
|
|
28147
28152
|
* Sets `identity`'s `defaultConfigProfile` field, or clears it when `profileName` is undefined. Throws `IdentityNotFoundError` when the identity does not exist. Whether the profile exists is the caller's concern: `identity set --default-profile` checks it first.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.15.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>",
|