claude-use 14.3.1 → 14.4.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.
@@ -297,10 +297,10 @@ declare const LaunchSchema: z.ZodObject<{
297
297
  }>>;
298
298
  layout: z.ZodOptional<z.ZodObject<{
299
299
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
300
+ account: "account";
300
301
  identity: "identity";
301
302
  model: "model";
302
303
  route: "route";
303
- account: "account";
304
304
  provider: "provider";
305
305
  version: "version";
306
306
  headroom: "headroom";
@@ -1535,10 +1535,10 @@ declare const ConfigProfileSchema: z.ZodObject<{
1535
1535
  }>>;
1536
1536
  layout: z.ZodOptional<z.ZodObject<{
1537
1537
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1538
+ account: "account";
1538
1539
  identity: "identity";
1539
1540
  model: "model";
1540
1541
  route: "route";
1541
- account: "account";
1542
1542
  provider: "provider";
1543
1543
  version: "version";
1544
1544
  headroom: "headroom";
@@ -2385,10 +2385,10 @@ declare const DirectoryRuleSchema: z.ZodObject<{
2385
2385
  }>>;
2386
2386
  layout: z.ZodOptional<z.ZodObject<{
2387
2387
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2388
+ account: "account";
2388
2389
  identity: "identity";
2389
2390
  model: "model";
2390
2391
  route: "route";
2391
- account: "account";
2392
2392
  provider: "provider";
2393
2393
  version: "version";
2394
2394
  headroom: "headroom";
@@ -3161,10 +3161,10 @@ declare const DirectoryRulesSchema: z.ZodObject<{
3161
3161
  }>>;
3162
3162
  layout: z.ZodOptional<z.ZodObject<{
3163
3163
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3164
+ account: "account";
3164
3165
  identity: "identity";
3165
3166
  model: "model";
3166
3167
  route: "route";
3167
- account: "account";
3168
3168
  provider: "provider";
3169
3169
  version: "version";
3170
3170
  headroom: "headroom";
@@ -3937,10 +3937,10 @@ declare const PortableConfigSchema: z.ZodObject<{
3937
3937
  }>>;
3938
3938
  layout: z.ZodOptional<z.ZodObject<{
3939
3939
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3940
+ account: "account";
3940
3941
  identity: "identity";
3941
3942
  model: "model";
3942
3943
  route: "route";
3943
- account: "account";
3944
3944
  provider: "provider";
3945
3945
  version: "version";
3946
3946
  headroom: "headroom";
@@ -4693,10 +4693,10 @@ declare const GlobalConfigSchema: z.ZodObject<{
4693
4693
  }>>;
4694
4694
  layout: z.ZodOptional<z.ZodObject<{
4695
4695
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4696
+ account: "account";
4696
4697
  identity: "identity";
4697
4698
  model: "model";
4698
4699
  route: "route";
4699
- account: "account";
4700
4700
  provider: "provider";
4701
4701
  version: "version";
4702
4702
  headroom: "headroom";
@@ -5684,6 +5684,8 @@ interface EntryFact {
5684
5684
  readonly isDirectory: boolean;
5685
5685
  /** True when the entry is itself a symlink (including the relative, tree-escaping symlinks that already exist inside a real `~/.claude`). */
5686
5686
  readonly isSymlink: boolean;
5687
+ /** True when the entry is a symlink that reaches nothing once followed to its end, so what it would be is unknown; false for every other entry. */
5688
+ readonly isDanglingSymlink: boolean;
5687
5689
  /** The entry's own mtime. */
5688
5690
  readonly mtimeMs: number;
5689
5691
  /** The most recent mtime anywhere in this entry's subtree — its own mtime for a plain file. A directory-scoped `newerThan` must read this, never the directory's own inode mtime, which does not change when a file three levels down is rewritten. */
@@ -5754,7 +5756,7 @@ interface EliminatedRule {
5754
5756
  readonly failed: readonly string[];
5755
5757
  }
5756
5758
  /** Every diagnostic the resolver can raise. Codes are stable strings so `agent-shim check` and tests can assert on them. */
5757
- declare const DIAGNOSTIC_CODES: readonly ["EXTENDS_CYCLE", "MISSING_PROFILE", "SECRET_ENTRY_KEY", "SECRET_PATH_NEUTRALISED", "CATEGORY_PREFIX_MISMATCH", "MALFORMED_ENTRY_KEY", "EXACT_ENTRY_OVERRIDDEN_BY_LATER_GLOB", "AMBIGUOUS_PROJECT_ENCODING", "UNROOTED_PROJECT_PATH", "UNCLASSIFIED_ENTRY", "EMPTY_WHEN", "FARM_MANIFEST_MISSING", "RECONCILE_CONFLICT", "RECONCILE_SECRET_BLOCKED", "FARM_SWAP_RECOVERED", "FARM_PREVIOUS_RETAINED"];
5759
+ declare const DIAGNOSTIC_CODES: readonly ["EXTENDS_CYCLE", "MISSING_PROFILE", "SECRET_ENTRY_KEY", "SECRET_PATH_NEUTRALISED", "CATEGORY_PREFIX_MISMATCH", "MALFORMED_ENTRY_KEY", "EXACT_ENTRY_OVERRIDDEN_BY_LATER_GLOB", "AMBIGUOUS_PROJECT_ENCODING", "UNROOTED_PROJECT_PATH", "UNCLASSIFIED_ENTRY", "EMPTY_WHEN", "FARM_MANIFEST_MISSING", "RECONCILE_CONFLICT", "RECONCILE_SECRET_BLOCKED", "FARM_SWAP_RECOVERED", "FARM_PREVIOUS_RETAINED", "SHARED_ENTRY_DANGLING"];
5758
5760
  type DiagnosticCode = (typeof DIAGNOSTIC_CODES)[number];
5759
5761
  /** Severity of a diagnostic. An `error` means a configuration layer asked for something the tool refused to do. */
5760
5762
  declare const DIAGNOSTIC_SEVERITIES: readonly ["error", "warning", "info"];
@@ -5823,6 +5825,8 @@ interface FarmPlan {
5823
5825
  readonly rel: string;
5824
5826
  readonly target: string;
5825
5827
  }[];
5828
+ /** Shared entries left out of the farm because their `~/.claude` path is a symlink that reaches nothing, in plan order. */
5829
+ readonly dangling: readonly string[];
5826
5830
  }
5827
5831
 
5828
5832
  /**
@@ -6089,6 +6093,8 @@ interface PrivateWriteOptions {
6089
6093
  interface FarmFs {
6090
6094
  /** Stats one path without following symlinks, or returns undefined when nothing is there. */
6091
6095
  readonly lstat: (path: string) => FarmStat | undefined;
6096
+ /** Whether `path` reaches something once every symlink along it is followed to its end: false when nothing is there, or when a symlink on the way points at nothing. Used to tell a symlink that leads somewhere from one that dangles, which `lstat` alone cannot. */
6097
+ readonly resolves: (path: string) => boolean;
6092
6098
  /** Lists one directory's immediate child names, or an empty list when it does not exist. */
6093
6099
  readonly readdir: (path: string) => readonly string[];
6094
6100
  /** Creates a directory and any missing parents, succeeding silently when it already exists. */
@@ -6229,6 +6235,13 @@ interface FrontDoorUp {
6229
6235
  declare const FARM_MANIFEST_FILENAME = ".agent-shim-farm.json";
6230
6236
  /** Reads and validates the manifest at a farm root, or undefined when it is missing, unparseable, or does not validate. */
6231
6237
  declare function readFarmManifest(fs: FarmFs, farmRoot: string): FarmManifest | undefined;
6238
+ /** A link in an identity's farm that leads nowhere. */
6239
+ interface DanglingFarmLink {
6240
+ /** The link's path relative to the farm root. */
6241
+ readonly rel: string;
6242
+ /** Where the farm's manifest records the link pointing; undefined for a link the manifest does not record. */
6243
+ readonly target?: string;
6244
+ }
6232
6245
  /** Everything `buildEntryFacts` needs. Everything except the tree itself is injected, so the fact manifest is reproducible from a fake filesystem, a fake clock, and a fake branch. */
6233
6246
  interface BuildEntryFactsParams {
6234
6247
  readonly fs: FarmFs;
@@ -6365,6 +6378,8 @@ interface ResyncFarmResult {
6365
6378
  readonly noOp: boolean;
6366
6379
  /** The manifest the farm now carries — the newly written one, or the existing one on a no-op. */
6367
6380
  readonly manifest: FarmManifest;
6381
+ /** The manifest the farm carried before this resync, read under the lock; undefined when the farm had none this release can read. Comparing its links with `manifest`'s says which links this resync removed. */
6382
+ readonly previousManifest?: FarmManifest;
6368
6383
  /** The fully resolved state, including the flattened cascade's launch flags, which the launcher goes on to use. */
6369
6384
  readonly resolved: ResolvedState;
6370
6385
  readonly adopted: readonly string[];
@@ -9389,6 +9404,7 @@ declare const CheckReportJsonSchema: z.ZodObject<{
9389
9404
  RECONCILE_SECRET_BLOCKED: "RECONCILE_SECRET_BLOCKED";
9390
9405
  FARM_SWAP_RECOVERED: "FARM_SWAP_RECOVERED";
9391
9406
  FARM_PREVIOUS_RETAINED: "FARM_PREVIOUS_RETAINED";
9407
+ SHARED_ENTRY_DANGLING: "SHARED_ENTRY_DANGLING";
9392
9408
  }>;
9393
9409
  severity: z.ZodEnum<{
9394
9410
  error: "error";
@@ -9877,6 +9893,7 @@ declare const DoctorFindingSchema: z.ZodObject<{
9877
9893
  "path-resolution": "path-resolution";
9878
9894
  "legacy-name": "legacy-name";
9879
9895
  "sign-in": "sign-in";
9896
+ "farm-links": "farm-links";
9880
9897
  "directory-rules": "directory-rules";
9881
9898
  "categories-local": "categories-local";
9882
9899
  "active-identity": "active-identity";
@@ -9909,6 +9926,7 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
9909
9926
  "path-resolution": "path-resolution";
9910
9927
  "legacy-name": "legacy-name";
9911
9928
  "sign-in": "sign-in";
9929
+ "farm-links": "farm-links";
9912
9930
  "directory-rules": "directory-rules";
9913
9931
  "categories-local": "categories-local";
9914
9932
  "active-identity": "active-identity";
@@ -10281,6 +10299,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10281
10299
  kind: zod.ZodLiteral<"profile">;
10282
10300
  name: zod.ZodString;
10283
10301
  value: zod.ZodObject<{
10302
+ description: zod.ZodOptional<zod.ZodString>;
10284
10303
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
10285
10304
  value: zod.ZodBoolean;
10286
10305
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -10356,7 +10375,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10356
10375
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
10357
10376
  }, zod_v4_core.$strip>], "kind">]>;
10358
10377
  }, zod_v4_core.$strict>]>>>;
10359
- description: zod.ZodOptional<zod.ZodString>;
10360
10378
  models: zod.ZodOptional<zod.ZodObject<{
10361
10379
  pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
10362
10380
  virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
@@ -10445,10 +10463,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10445
10463
  }>>;
10446
10464
  layout: zod.ZodOptional<zod.ZodObject<{
10447
10465
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
10466
+ account: "account";
10448
10467
  identity: "identity";
10449
10468
  model: "model";
10450
10469
  route: "route";
10451
- account: "account";
10452
10470
  provider: "provider";
10453
10471
  version: "version";
10454
10472
  headroom: "headroom";
@@ -11005,6 +11023,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
11005
11023
  kind: zod.ZodLiteral<"profile">;
11006
11024
  name: zod.ZodString;
11007
11025
  value: zod.ZodObject<{
11026
+ description: zod.ZodOptional<zod.ZodString>;
11008
11027
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
11009
11028
  value: zod.ZodBoolean;
11010
11029
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -11080,7 +11099,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
11080
11099
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
11081
11100
  }, zod_v4_core.$strip>], "kind">]>;
11082
11101
  }, zod_v4_core.$strict>]>>>;
11083
- description: zod.ZodOptional<zod.ZodString>;
11084
11102
  models: zod.ZodOptional<zod.ZodObject<{
11085
11103
  pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
11086
11104
  virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
@@ -11169,10 +11187,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
11169
11187
  }>>;
11170
11188
  layout: zod.ZodOptional<zod.ZodObject<{
11171
11189
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
11190
+ account: "account";
11172
11191
  identity: "identity";
11173
11192
  model: "model";
11174
11193
  route: "route";
11175
- account: "account";
11176
11194
  provider: "provider";
11177
11195
  version: "version";
11178
11196
  headroom: "headroom";
@@ -12369,10 +12387,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
12369
12387
  }>>;
12370
12388
  layout: zod.ZodOptional<zod.ZodObject<{
12371
12389
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
12390
+ account: "account";
12372
12391
  identity: "identity";
12373
12392
  model: "model";
12374
12393
  route: "route";
12375
- account: "account";
12376
12394
  provider: "provider";
12377
12395
  version: "version";
12378
12396
  headroom: "headroom";
@@ -13150,10 +13168,10 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
13150
13168
  }>>;
13151
13169
  layout: zod.ZodOptional<zod.ZodObject<{
13152
13170
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
13171
+ account: "account";
13153
13172
  identity: "identity";
13154
13173
  model: "model";
13155
13174
  route: "route";
13156
- account: "account";
13157
13175
  provider: "provider";
13158
13176
  version: "version";
13159
13177
  headroom: "headroom";
@@ -14167,10 +14185,10 @@ declare const StatuslineSchema: z.ZodObject<{
14167
14185
  }>>;
14168
14186
  layout: z.ZodOptional<z.ZodObject<{
14169
14187
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
14188
+ account: "account";
14170
14189
  identity: "identity";
14171
14190
  model: "model";
14172
14191
  route: "route";
14173
- account: "account";
14174
14192
  provider: "provider";
14175
14193
  version: "version";
14176
14194
  headroom: "headroom";
@@ -15064,10 +15082,10 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
15064
15082
  }>>;
15065
15083
  layout: zod.ZodOptional<zod.ZodObject<{
15066
15084
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
15085
+ account: "account";
15067
15086
  identity: "identity";
15068
15087
  model: "model";
15069
15088
  route: "route";
15070
- account: "account";
15071
15089
  provider: "provider";
15072
15090
  version: "version";
15073
15091
  headroom: "headroom";
@@ -16351,6 +16369,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
16351
16369
  RECONCILE_SECRET_BLOCKED: "RECONCILE_SECRET_BLOCKED";
16352
16370
  FARM_SWAP_RECOVERED: "FARM_SWAP_RECOVERED";
16353
16371
  FARM_PREVIOUS_RETAINED: "FARM_PREVIOUS_RETAINED";
16372
+ SHARED_ENTRY_DANGLING: "SHARED_ENTRY_DANGLING";
16354
16373
  }>;
16355
16374
  severity: z.ZodEnum<{
16356
16375
  error: "error";
@@ -16552,6 +16571,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
16552
16571
  "path-resolution": "path-resolution";
16553
16572
  "legacy-name": "legacy-name";
16554
16573
  "sign-in": "sign-in";
16574
+ "farm-links": "farm-links";
16555
16575
  "directory-rules": "directory-rules";
16556
16576
  "categories-local": "categories-local";
16557
16577
  "active-identity": "active-identity";
@@ -16809,10 +16829,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
16809
16829
  }>>;
16810
16830
  layout: z.ZodOptional<z.ZodObject<{
16811
16831
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
16832
+ account: "account";
16812
16833
  identity: "identity";
16813
16834
  model: "model";
16814
16835
  route: "route";
16815
- account: "account";
16816
16836
  provider: "provider";
16817
16837
  version: "version";
16818
16838
  headroom: "headroom";
@@ -17624,6 +17644,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17624
17644
  kind: z.ZodLiteral<"profile">;
17625
17645
  name: z.ZodString;
17626
17646
  value: z.ZodObject<{
17647
+ description: z.ZodOptional<z.ZodString>;
17627
17648
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
17628
17649
  value: z.ZodBoolean;
17629
17650
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -17699,7 +17720,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17699
17720
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
17700
17721
  }, z.core.$strip>], "kind">]>;
17701
17722
  }, z.core.$strict>]>>>;
17702
- description: z.ZodOptional<z.ZodString>;
17703
17723
  models: z.ZodOptional<z.ZodObject<{
17704
17724
  pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
17705
17725
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
@@ -17788,10 +17808,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17788
17808
  }>>;
17789
17809
  layout: z.ZodOptional<z.ZodObject<{
17790
17810
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17811
+ account: "account";
17791
17812
  identity: "identity";
17792
17813
  model: "model";
17793
17814
  route: "route";
17794
- account: "account";
17795
17815
  provider: "provider";
17796
17816
  version: "version";
17797
17817
  headroom: "headroom";
@@ -18348,6 +18368,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
18348
18368
  kind: z.ZodLiteral<"profile">;
18349
18369
  name: z.ZodString;
18350
18370
  value: z.ZodObject<{
18371
+ description: z.ZodOptional<z.ZodString>;
18351
18372
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
18352
18373
  value: z.ZodBoolean;
18353
18374
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -18423,7 +18444,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
18423
18444
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
18424
18445
  }, z.core.$strip>], "kind">]>;
18425
18446
  }, z.core.$strict>]>>>;
18426
- description: z.ZodOptional<z.ZodString>;
18427
18447
  models: z.ZodOptional<z.ZodObject<{
18428
18448
  pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
18429
18449
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
@@ -18512,10 +18532,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
18512
18532
  }>>;
18513
18533
  layout: z.ZodOptional<z.ZodObject<{
18514
18534
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
18535
+ account: "account";
18515
18536
  identity: "identity";
18516
18537
  model: "model";
18517
18538
  route: "route";
18518
- account: "account";
18519
18539
  provider: "provider";
18520
18540
  version: "version";
18521
18541
  headroom: "headroom";
@@ -19712,10 +19732,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
19712
19732
  }>>;
19713
19733
  layout: z.ZodOptional<z.ZodObject<{
19714
19734
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
19735
+ account: "account";
19715
19736
  identity: "identity";
19716
19737
  model: "model";
19717
19738
  route: "route";
19718
- account: "account";
19719
19739
  provider: "provider";
19720
19740
  version: "version";
19721
19741
  headroom: "headroom";
@@ -20493,10 +20513,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
20493
20513
  }>>;
20494
20514
  layout: z.ZodOptional<z.ZodObject<{
20495
20515
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
20516
+ account: "account";
20496
20517
  identity: "identity";
20497
20518
  model: "model";
20498
20519
  route: "route";
20499
- account: "account";
20500
20520
  provider: "provider";
20501
20521
  version: "version";
20502
20522
  headroom: "headroom";
@@ -21447,6 +21467,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
21447
21467
  RECONCILE_SECRET_BLOCKED: "RECONCILE_SECRET_BLOCKED";
21448
21468
  FARM_SWAP_RECOVERED: "FARM_SWAP_RECOVERED";
21449
21469
  FARM_PREVIOUS_RETAINED: "FARM_PREVIOUS_RETAINED";
21470
+ SHARED_ENTRY_DANGLING: "SHARED_ENTRY_DANGLING";
21450
21471
  }>;
21451
21472
  severity: z.ZodEnum<{
21452
21473
  error: "error";
@@ -21648,6 +21669,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
21648
21669
  "path-resolution": "path-resolution";
21649
21670
  "legacy-name": "legacy-name";
21650
21671
  "sign-in": "sign-in";
21672
+ "farm-links": "farm-links";
21651
21673
  "directory-rules": "directory-rules";
21652
21674
  "categories-local": "categories-local";
21653
21675
  "active-identity": "active-identity";
@@ -22351,6 +22373,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
22351
22373
  kind: z.ZodLiteral<"profile">;
22352
22374
  name: z.ZodString;
22353
22375
  value: z.ZodObject<{
22376
+ description: z.ZodOptional<z.ZodString>;
22354
22377
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
22355
22378
  value: z.ZodBoolean;
22356
22379
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -22426,7 +22449,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
22426
22449
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
22427
22450
  }, z.core.$strip>], "kind">]>;
22428
22451
  }, z.core.$strict>]>>>;
22429
- description: z.ZodOptional<z.ZodString>;
22430
22452
  models: z.ZodOptional<z.ZodObject<{
22431
22453
  pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
22432
22454
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
@@ -22515,10 +22537,10 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
22515
22537
  }>>;
22516
22538
  layout: z.ZodOptional<z.ZodObject<{
22517
22539
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22540
+ account: "account";
22518
22541
  identity: "identity";
22519
22542
  model: "model";
22520
22543
  route: "route";
22521
- account: "account";
22522
22544
  provider: "provider";
22523
22545
  version: "version";
22524
22546
  headroom: "headroom";
@@ -23077,6 +23099,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
23077
23099
  kind: z.ZodLiteral<"profile">;
23078
23100
  name: z.ZodString;
23079
23101
  value: z.ZodObject<{
23102
+ description: z.ZodOptional<z.ZodString>;
23080
23103
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
23081
23104
  value: z.ZodBoolean;
23082
23105
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -23152,7 +23175,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
23152
23175
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
23153
23176
  }, z.core.$strip>], "kind">]>;
23154
23177
  }, z.core.$strict>]>>>;
23155
- description: z.ZodOptional<z.ZodString>;
23156
23178
  models: z.ZodOptional<z.ZodObject<{
23157
23179
  pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
23158
23180
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
@@ -23241,10 +23263,10 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
23241
23263
  }>>;
23242
23264
  layout: z.ZodOptional<z.ZodObject<{
23243
23265
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23266
+ account: "account";
23244
23267
  identity: "identity";
23245
23268
  model: "model";
23246
23269
  route: "route";
23247
- account: "account";
23248
23270
  provider: "provider";
23249
23271
  version: "version";
23250
23272
  headroom: "headroom";
@@ -24443,10 +24465,10 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
24443
24465
  }>>;
24444
24466
  layout: z.ZodOptional<z.ZodObject<{
24445
24467
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
24468
+ account: "account";
24446
24469
  identity: "identity";
24447
24470
  model: "model";
24448
24471
  route: "route";
24449
- account: "account";
24450
24472
  provider: "provider";
24451
24473
  version: "version";
24452
24474
  headroom: "headroom";
@@ -25226,10 +25248,10 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
25226
25248
  }>>;
25227
25249
  layout: z.ZodOptional<z.ZodObject<{
25228
25250
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
25251
+ account: "account";
25229
25252
  identity: "identity";
25230
25253
  model: "model";
25231
25254
  route: "route";
25232
- account: "account";
25233
25255
  provider: "provider";
25234
25256
  version: "version";
25235
25257
  headroom: "headroom";
@@ -25913,10 +25935,10 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
25913
25935
  }>>;
25914
25936
  layout: z.ZodOptional<z.ZodObject<{
25915
25937
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
25938
+ account: "account";
25916
25939
  identity: "identity";
25917
25940
  model: "model";
25918
25941
  route: "route";
25919
- account: "account";
25920
25942
  provider: "provider";
25921
25943
  version: "version";
25922
25944
  headroom: "headroom";
@@ -28189,6 +28211,15 @@ interface DisplacedIdentityRecord extends IdentityRecord {
28189
28211
  readonly directoryPresent: boolean;
28190
28212
  }
28191
28213
 
28214
+ /** One identity's farm as the farm-links section reads it: the links in it that lead nowhere (`danglingFarmLinks`). */
28215
+ interface DoctorFarmLinksInput {
28216
+ /** The identity's name, which the finding is filed under and the remedy names. */
28217
+ readonly name: string;
28218
+ /** Its id, the directory under `identities/` the farm is. */
28219
+ readonly id: string;
28220
+ readonly dangling: readonly DanglingFarmLink[];
28221
+ }
28222
+
28192
28223
  /**
28193
28224
  * How the allowlist the headroom daemon serves lags the allowlist computed now. The daemon re-reads its allowlist file on every request that follows a change to it, and its supervisor rewrites the file and records the hash in the same tick, so a lag that lasts beyond one tick means the supervisor is not running or cannot write the file. A daemon started by an earlier release reads no file, and is reported as such instead.
28194
28225
  */
@@ -28273,7 +28304,7 @@ type ProviderAliases = z.infer<typeof ProviderAliasesSchema>;
28273
28304
 
28274
28305
  declare const DOCTOR_SEVERITIES: readonly ["pass", "warn", "fail"];
28275
28306
  type DoctorSeverity = (typeof DOCTOR_SEVERITIES)[number];
28276
- declare const DOCTOR_SECTIONS: readonly ["ambient-credential", "binary-discovery", "claude-shim", "path-resolution", "legacy-name", "config-profile", "identity", "sign-in", "pool", "provider", "keychain", "directory-rules", "global-config", "categories-local", "active-identity", "headroom", "frontdoor", "models"];
28307
+ declare const DOCTOR_SECTIONS: readonly ["ambient-credential", "binary-discovery", "claude-shim", "path-resolution", "legacy-name", "config-profile", "identity", "sign-in", "farm-links", "pool", "provider", "keychain", "directory-rules", "global-config", "categories-local", "active-identity", "headroom", "frontdoor", "models"];
28277
28308
  type DoctorSection = (typeof DOCTOR_SECTIONS)[number];
28278
28309
  /** One line of `agent-shim doctor`'s report. `subject` names the identity/profile/rule the finding is about, when the section has more than one of those. */
28279
28310
  interface DoctorFinding {
@@ -28350,6 +28381,8 @@ interface RunDoctorParams {
28350
28381
  readonly raw: string | undefined;
28351
28382
  };
28352
28383
  readonly identities: readonly DoctorIdentityInput[];
28384
+ /** The links in each identity's farm that lead nowhere (`danglingFarmLinks`). Omit to leave the farm-links section out; with it, each such link warns, naming the identity, the entry and what brings the farm up to date. */
28385
+ readonly farmLinks?: readonly DoctorFarmLinksInput[];
28353
28386
  /** Each identity's last recorded usage snapshot, by identity name. Omit to skip checking that pools and jobs read only windows their identities receive; an identity missing from it has no readable snapshot, so what it receives is unknown and nothing is reported for it. */
28354
28387
  readonly usageSnapshots?: Readonly<Record<string, UsageSnapshot>>;
28355
28388
  readonly configProfiles: readonly DoctorConfigProfileInput[];
@@ -28423,8 +28456,6 @@ interface RunDoctorParams {
28423
28456
  * Every check aggregates rather than throws: a malformed file becomes one `fail` finding for that file, not an aborted report. This is the one place in the codebase that deliberately breaks the "throw a validation error and let it propagate" convention every other command relies on — `doctor`'s whole purpose is to survive a broken file and keep auditing everything else.
28424
28457
  */
28425
28458
  declare function runDoctor(params: RunDoctorParams): DoctorReport;
28426
- /** Renders a full `DoctorReport` as plain text lines, one section header at a time, in the order `agent-shim doctor` prints them. */
28427
- declare function formatDoctorReport(report: DoctorReport): string[];
28428
28459
  /** What `collectDoctorReport` needs from its caller. */
28429
28460
  interface CollectDoctorReportParams {
28430
28461
  readonly paths: LayoutPaths;
@@ -28435,6 +28466,9 @@ interface CollectDoctorReportParams {
28435
28466
  */
28436
28467
  declare function collectDoctorReport(params: CollectDoctorReportParams): DoctorReport;
28437
28468
 
28469
+ /** Renders a full `DoctorReport` as plain text lines, one section header at a time, in the order `agent-shim doctor` prints them. */
28470
+ declare function formatDoctorReport(report: DoctorReport): string[];
28471
+
28438
28472
  /** Inputs to `spawnClaude`. */
28439
28473
  interface SpawnClaudeParams {
28440
28474
  /** Full path to the real `claude` binary to run, as discovered by `src/versionDiscovery.ts`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "14.3.1",
3
+ "version": "14.4.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>",