@ariestools/toolchain 8.7.7 → 8.7.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"analyzePackage.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/analyzePackage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAG/D,OAAO,KAAK,EAOV,0BAA0B,EAC3B,MAAM,aAAa,CAAA;AAOpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAC1B,MAAM,EAAE,2BAA2B,CAAA;IACnC,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACtC,SAAS,EAAE,SAAS,CAAA;IACpB,oEAAoE;IACpE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC7B;AAiXD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAC/D,EAAE,oBAAoB,GAAG,0BAA0B,CAuDnD"}
1
+ {"version":3,"file":"analyzePackage.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/analyzePackage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAG/D,OAAO,KAAK,EAOV,0BAA0B,EAC3B,MAAM,aAAa,CAAA;AAOpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAC1B,MAAM,EAAE,2BAA2B,CAAA;IACnC,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACtC,SAAS,EAAE,SAAS,CAAA;IACpB,oEAAoE;IACpE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC7B;AAuYD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAC/D,EAAE,oBAAoB,GAAG,0BAA0B,CAuDnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"entryPoints.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/entryPoints.ts"],"names":[],"mappings":"AAyEA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAsBjE"}
1
+ {"version":3,"file":"entryPoints.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/entryPoints.ts"],"names":[],"mappings":"AAmFA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAsBjE"}
@@ -20,13 +20,6 @@ export interface PeerSource {
20
20
  export interface PeerForwardingPolicy {
21
21
  importedModules: ReadonlySet<string>;
22
22
  mode: 'always' | 'when-exposed' | 'when-used';
23
- /**
24
- * Peers vouched for by workspace-internal surfaces this package ships
25
- * (see `getInternalSurfaceVouchedPeers`): a re-export barrel never names
26
- * these in its own files, yet they flow through its public surface, so
27
- * they forward even though `importedModules` cannot see them.
28
- */
29
- vouchedPeers?: ReadonlySet<string>;
30
23
  }
31
24
  /** True when the policy (if any) obliges this package to forward `peer`. */
32
25
  export declare function isPeerForwarded(policy: PeerForwardingPolicy | undefined, peer: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getUnsatisfiedPeerDependencies.d.ts","sourceRoot":"","sources":["../../../../src/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,IAAI,EAAE,QAAQ,GAAG,cAAc,GAAG,WAAW,CAAA;IAC7C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACnC;AAED,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/F;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,OAAO,CAAA;IACzB;8EAC0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;4EACwE;IACxE,iBAAiB,CAAC,EAAE,UAAU,EAAE,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,SAAS,GAAG,kB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B,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,UAAU,CAAC,EAAE,oBAAoB,GAChC,eAAe,EAAE,CAkCnB;AA0BD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,CAIlG"}
1
+ {"version":3,"file":"getUnsatisfiedPeerDependencies.d.ts","sourceRoot":"","sources":["../../../../src/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,IAAI,EAAE,QAAQ,GAAG,cAAc,GAAG,WAAW,CAAA;CAC9C;AAED,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAG/F;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,OAAO,CAAA;IACzB;8EAC0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;4EACwE;IACxE,iBAAiB,CAAC,EAAE,UAAU,EAAE,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,SAAS,GAAG,kBAAkB,GAAG,eAAe,CAAA;IACxD,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M,EAAE,OAAO,CAAC,EACxC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,UAAU,CAAC,EAAE,oBAAoB,GAChC,eAAe,EAAE,CAkCnB;AA0BD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,CAIlG"}
@@ -39,6 +39,7 @@ export declare function addDep(pkg: PackageJson, dep: string, version: string, s
39
39
  export declare function setPeerOptional(pkg: PackageJson, dep: string, optional: boolean | undefined): void;
40
40
  export type PeerBoundType = 'major' | 'minor';
41
41
  export declare function isOpaqueVersionSpec(version: string | undefined): boolean;
42
+ export declare function formatPeerCaretVersion(version: string): string | undefined;
42
43
  /**
43
44
  * Format an installed version as a broad peerDependency range. The upper
44
45
  * bound is the next major (`'major'`, default) or next minor (`'minor'`):
@@ -60,7 +61,7 @@ export declare function resolveExpectedDependencyVersion(location: string, dep:
60
61
  */
61
62
  export declare function resolveDepVersion(location: string, dep: string): string;
62
63
  /**
63
- * Resolve the version for a missing peerDependency. Returns full-patch caret
64
+ * Resolve the version for a missing peerDependency. Returns major-minor caret
64
65
  * form anchored at the devDependency lower bound when known, or the installed
65
66
  * version otherwise.
66
67
  */
@@ -74,7 +75,7 @@ export declare function resolvePeerDepVersion(location: string, dep: string, dev
74
75
  export declare function resolveExpectedPeerVersion(location: string, dep: string, devRange?: string, boundType?: PeerBoundType): string;
75
76
  /**
76
77
  * Compute the non-broad peerDependency range for a dep. The result is a
77
- * caret range anchored at a full three-part lower bound. Prefer the sibling
78
+ * caret range anchored at a major-minor lower bound. Prefer the sibling
78
79
  * devDependency floor; fall back to the current peer range and then the
79
80
  * installed version.
80
81
  */
@@ -1 +1 @@
1
- {"version":3,"file":"packageJsonEditor.d.ts","sourceRoot":"","sources":["../../../src/actions/deplint/packageJsonEditor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB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AE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,OAAO,GAAG,WAAW,EAC3B,SAAS,CAAC,EAAE,aAAa,GACxB,MAAM,CAIR;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED,wBAAgB,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAG/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolvePeerBumpFixes.d.ts","sourceRoot":"","sources":["../../../src/actions/deplint/resolvePeerBumpFixes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,YAAY,CAAA;AAgLnB,iBAAiB;AACjB,wBAAgB,kBAAkB,IAAI,IAAI,CAGzC;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAU1F"}
1
+ {"version":3,"file":"resolvePeerBumpFixes.d.ts","sourceRoot":"","sources":["../../../src/actions/deplint/resolvePeerBumpFixes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,YAAY,CAAA;AAkLnB,iBAAiB;AACjB,wBAAgB,kBAAkB,IAAI,IAAI,CAGzC;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAU1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/actions/deplint/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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- `'always'`: every unmet chain peer is conclusively a `peerDependency`
51
51
  * here (`aei.signal.required-peer`, ∞).
52
52
  * - `'when-used'`: the conclusive rule fires only for chain peers this
53
- * package itself imports or exposes through its public API; peers it
54
- * never touches surface as the informational `aei.signal.inherited-peer`
55
- * instead — installers resolve the contract against the consuming
56
- * context.
53
+ * package itself imports or directly exposes through its own public API;
54
+ * peers it inherits only through a re-exported package surface as the
55
+ * informational `aei.signal.inherited-peer` instead — that package owns
56
+ * the peer range and installers resolve its contract.
57
57
  * - `'when-exposed'`: the conclusive rule fires only for chain peers whose
58
- * types appear in this package's public API or that it value-imports;
58
+ * types this package directly exposes in its own public API or that it value-imports;
59
59
  * untouched peers surface as the informational
60
60
  * `aei.signal.absorbable-peer` — declaring them in this package's own
61
61
  * `dependencies` (the provider pattern) discharges the contract without
@@ -79,7 +79,7 @@ export interface ApiExposureConfig {
79
79
  packages?: Record<string, ApiExposureDependencyOverride>;
80
80
  /**
81
81
  * Peer-chain forwarding policy, honored by `xy api-exposure` and by
82
- * `xy deplint` in `classifier: 'aei'` mode. @default 'always'
82
+ * `xy deplint` in `classifier: 'aei'` mode. @default 'when-exposed'
83
83
  */
84
84
  peerForwarding?: ApiExposurePeerForwarding;
85
85
  /** Rule weight / enable-state overrides keyed by rule id. */
@@ -227,8 +227,8 @@ export interface DeplintPeerRangeStyleRuleOptions extends DeplintRuleCommonOptio
227
227
  bound?: 'infer' | 'major' | 'minor';
228
228
  /**
229
229
  * Peer range style to enforce.
230
- * - `shorthand` rejects non-canonical ranges and fixes them to full-patch
231
- * caret ranges like `^1.2.3`.
230
+ * - `shorthand` rejects non-canonical ranges and fixes them to major-minor
231
+ * caret ranges like `^1.2`.
232
232
  * - `broad` enforces the legacy comparator form.
233
233
  * @default "shorthand"
234
234
  */
package/dist/bin/xy.mjs CHANGED
@@ -4976,7 +4976,7 @@ var PnpmPackageManager = class {
4976
4976
  return ["pnpm", ["xy", ...args]];
4977
4977
  }
4978
4978
  versionApply() {
4979
- return ["pnpm", ["install", "--lockfile-only"]];
4979
+ return this.install();
4980
4980
  }
4981
4981
  versionBump(type) {
4982
4982
  return [["pnpm", [
@@ -23099,7 +23099,7 @@ function isTerminalPackage$1(location) {
23099
23099
  //#region src/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.ts
23100
23100
  /** True when the policy (if any) obliges this package to forward `peer`. */
23101
23101
  function isPeerForwarded(policy, peer) {
23102
- return policy === void 0 || policy.mode === "always" || policy.importedModules.has(peer) || (policy.vouchedPeers?.has(peer) ?? false);
23102
+ return policy === void 0 || policy.mode === "always" || policy.importedModules.has(peer);
23103
23103
  }
23104
23104
  function readDepPackageJson(location, dep) {
23105
23105
  const depPkgPath = findDepPackageJson(location, dep);
@@ -23722,7 +23722,7 @@ function matchingOverrides(packages, dependency) {
23722
23722
  });
23723
23723
  return exact === void 0 ? globs : [...globs, exact];
23724
23724
  }
23725
- function resolvePeerForwarding(peerForwarding = "always") {
23725
+ function resolvePeerForwarding(peerForwarding = "when-exposed") {
23726
23726
  if (peerForwarding !== "always" && peerForwarding !== "when-used" && peerForwarding !== "when-exposed") throw new TypeError("commands.apiExposure.peerForwarding must be \"always\", \"when-used\", or \"when-exposed\"");
23727
23727
  return peerForwarding;
23728
23728
  }
@@ -24386,8 +24386,9 @@ function stripExtension(entry) {
24386
24386
  /**
24387
24387
  * Maps a manifest entry (usually pointing into `dist/`) back to the source
24388
24388
  * file it was compiled from, following the XY layout convention:
24389
- * `dist/<platform>/index.mjs` → `src/index.ts`, `dist/bin/xy.mjs` →
24390
- * `src/bin/xy.ts`, `dist/index.d.ts` → `src/index.ts`.
24389
+ * `dist/<platform>/index.mjs` → `src/<platform>/index.ts` when present,
24390
+ * otherwise `src/index.ts`; `dist/bin/xy.mjs` → `src/bin/xy.ts`;
24391
+ * `dist/index.d.ts` → `src/index.ts`.
24391
24392
  */
24392
24393
  function mapEntryToSource(workspaceDir, entry) {
24393
24394
  const normalized = entry.replace(/^\.\//, "");
@@ -24396,7 +24397,12 @@ function mapEntryToSource(workspaceDir, entry) {
24396
24397
  if (segments[0] === "src") return resolveSourceFile(PATH.join(workspaceDir, ...segments));
24397
24398
  if (segments[0] === "dist" || segments[0] === "build") {
24398
24399
  let rest = segments.slice(1);
24399
- if (rest.length > 0 && PLATFORM_DIRS.has(rest[0])) rest = rest.slice(1);
24400
+ if (rest.length > 0 && PLATFORM_DIRS.has(rest[0])) {
24401
+ const platform = rest[0];
24402
+ rest = rest.slice(1);
24403
+ const platformSource = resolveSourceFile(PATH.join(workspaceDir, "src", platform, ...rest));
24404
+ if (platformSource !== void 0) return platformSource;
24405
+ }
24400
24406
  return resolveSourceFile(PATH.join(workspaceDir, "src", ...rest));
24401
24407
  }
24402
24408
  return resolveSourceFile(PATH.join(workspaceDir, ...segments));
@@ -24956,13 +24962,29 @@ function requiredPeerEvidence(sources) {
24956
24962
  const chains = [...new Set(sources.map((source) => source.chain?.join(" > ") ?? source.requiredBy))];
24957
24963
  return `required as a peer by ${chains.slice(0, 3).join(", ")}${chains.length > 3 ? ` (+${chains.length - 3} more)` : ""}`;
24958
24964
  }
24965
+ /** True when the finding was emitted from a file owned by this package. */
24966
+ function isWorkspaceOwnedFinding(workspaceDir, file) {
24967
+ if (file.startsWith("(")) return false;
24968
+ const workspaceRoot = PATH.resolve(workspaceDir);
24969
+ let current = PATH.dirname(PATH.resolve(workspaceRoot, file));
24970
+ while (true) {
24971
+ if (fs.existsSync(PATH.join(current, "package.json"))) return current === workspaceRoot;
24972
+ const parent = PATH.dirname(current);
24973
+ if (parent === current) return false;
24974
+ current = parent;
24975
+ }
24976
+ }
24959
24977
  /**
24960
- * Exposure evidence for the `'when-exposed'` forwarding policy: any enabled
24961
- * exposure-rule finding means the dependency's types are part of this
24962
- * package's public contract, so consumers interact with the dependency.
24978
+ * Direct exposure evidence for the evidence-based forwarding policies.
24979
+ *
24980
+ * The type walker deliberately follows re-exported dependency declarations.
24981
+ * Those findings are useful for describing the public API, but they do not
24982
+ * transfer ownership of a nested peer contract: the re-exported package owns
24983
+ * its peer range. Only exposure emitted from this package's own files means
24984
+ * this package directly names/constructs the peer's public identity.
24963
24985
  */
24964
- function hasEnabledExposure(raw, dependency, config) {
24965
- return raw.some((finding) => finding.ruleId.startsWith("aei.exposure.") && config.ruleFor(finding.ruleId, dependency)?.enabled === true);
24986
+ function hasEnabledOwnedExposure(raw, dependency, config, workspaceDir) {
24987
+ return raw.some((finding) => finding.ruleId.startsWith("aei.exposure.") && config.ruleFor(finding.ruleId, dependency)?.enabled === true && isWorkspaceOwnedFinding(workspaceDir, finding.file));
24966
24988
  }
24967
24989
  /**
24968
24990
  * The distinct chain roots when every chain imposing the peer contract is
@@ -24980,12 +25002,11 @@ function typeOnlyChainRoots(peerSources, importedPackages) {
24980
25002
  * forwarding policy (spec sections 6/8). Conclusive forwarding
24981
25003
  * (`aei.signal.required-peer`, ∞) applies under `'always'`, whenever usage
24982
25004
  * is unknown (no program), or when the policy's own-usage/exposure test
24983
- * passes. Exposure is conclusive in both evidence-based modes — a peer
24984
- * whose types reach this package's public API (e.g. through a re-exported
24985
- * workspace-internal surface) is part of its contract even when this
24986
- * package's own files never import it. Otherwise the contract downgrades
24987
- * to the informational rule that best explains why no forwarding is
24988
- * required here.
25005
+ * passes. Direct exposure is conclusive in both evidence-based modes. Types
25006
+ * merely inherited through a re-exported package remain that package's peer
25007
+ * contract; forwarding them again here would duplicate version ownership.
25008
+ * Otherwise the contract downgrades to the informational rule that best
25009
+ * explains why no forwarding is required here.
24989
25010
  */
24990
25011
  function peerChainFinding({ config, dependency, hasExposure, importedPackages, peerSources }) {
24991
25012
  const evidence = requiredPeerEvidence(peerSources);
@@ -25026,7 +25047,7 @@ function assessDependency({ config, dependency, importedPackages, isSelfOrIntern
25026
25047
  if (peerSources !== void 0 && !isSelfOrInternal(dependency) && !sections.dependencies.has(dependency)) dependencyRaw.push(peerChainFinding({
25027
25048
  config,
25028
25049
  dependency,
25029
- hasExposure: hasEnabledExposure(dependencyRaw, dependency, config),
25050
+ hasExposure: hasEnabledOwnedExposure(dependencyRaw, dependency, config, workspaceDir),
25030
25051
  importedPackages,
25031
25052
  peerSources
25032
25053
  }));
@@ -28905,6 +28926,10 @@ function formatFullVersion(version) {
28905
28926
  if (version == null || version.length === 0) return void 0;
28906
28927
  return import_semver.default.parse(version)?.version;
28907
28928
  }
28929
+ function formatPeerCaretVersion(version) {
28930
+ const parsed = import_semver.default.parse(version);
28931
+ return parsed ? `^${parsed.major}.${parsed.minor}` : void 0;
28932
+ }
28908
28933
  /**
28909
28934
  * Format an installed version as a broad peerDependency range. The upper
28910
28935
  * bound is the next major (`'major'`, default) or next minor (`'minor'`):
@@ -28978,15 +29003,14 @@ function resolveExpectedPeerVersion(location, dep, devRange, boundType) {
28978
29003
  }
28979
29004
  /**
28980
29005
  * Compute the non-broad peerDependency range for a dep. The result is a
28981
- * caret range anchored at a full three-part lower bound. Prefer the sibling
29006
+ * caret range anchored at a major-minor lower bound. Prefer the sibling
28982
29007
  * devDependency floor; fall back to the current peer range and then the
28983
29008
  * installed version.
28984
29009
  */
28985
29010
  function resolveExpectedPeerShorthandVersion(location, dep, devRange, peerRange) {
28986
29011
  const lower = resolvePeerLowerBound(location, dep, devRange, peerRange);
28987
29012
  if (lower == null || lower.length === 0) return "*";
28988
- const version = formatFullVersion(lower);
28989
- return version ? `^${version}` : "*";
29013
+ return formatPeerCaretVersion(lower) ?? "*";
28990
29014
  }
28991
29015
  /**
28992
29016
  * Single entry-point used by every rule that writes a peerDependency range.
@@ -30216,7 +30240,7 @@ const peerDependencyRangeStyleRule = {
30216
30240
  expected
30217
30241
  },
30218
30242
  dependency: dep,
30219
- message: form === "broad" ? `peerDependency ${dep} range ${current} should use broad form ${expected}` : `peerDependency ${dep} range ${current} should use full-patch caret form ${expected}`
30243
+ message: form === "broad" ? `peerDependency ${dep} range ${current} should use broad form ${expected}` : `peerDependency ${dep} range ${current} should use major-minor caret form ${expected}`
30220
30244
  });
30221
30245
  }
30222
30246
  },
@@ -30341,80 +30365,6 @@ async function loadDeplintRules(config) {
30341
30365
  return normalizeDeplintRules(plugins.flatMap((plugin) => plugin.rules), config, new Set(builtInDeplintPlugin.rules.map((rule) => rule.id)));
30342
30366
  }
30343
30367
  //#endregion
30344
- //#region src/actions/deplint/getInternalSurfaceVouchedPeers.ts
30345
- /** Bound on recursion through nested workspace-internal surfaces. */
30346
- const MAX_INTERNAL_SURFACE_DEPTH = 3;
30347
- const surfaceImportsCache = /* @__PURE__ */ new Map();
30348
- function resolveInternalSurface(baseDir, name) {
30349
- const manifestPath = findDepPackageJson(baseDir, name);
30350
- if (manifestPath === void 0) return void 0;
30351
- try {
30352
- const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
30353
- let dir = PATH.dirname(manifestPath);
30354
- try {
30355
- dir = fs.realpathSync(dir);
30356
- } catch {}
30357
- return {
30358
- dir,
30359
- peerDependencies: Object.keys(manifest.peerDependencies ?? {})
30360
- };
30361
- } catch {
30362
- return;
30363
- }
30364
- }
30365
- /**
30366
- * External package names referenced by a package's shipped surface: import
30367
- * specifiers in its dist runtime and emitted d.ts. Falls back to src when
30368
- * no dist exists (unbuilt workspace), mirroring deplint's own fallback.
30369
- */
30370
- function getSurfaceImports(dir) {
30371
- const cached = surfaceImportsCache.get(dir);
30372
- if (cached !== void 0) return cached;
30373
- let files = findFilesByGlob(dir, "dist/**/*.{js,mjs,cjs,ts,mts,cts}", ["**/node_modules/**"]);
30374
- if (files.length === 0) files = findFilesByGlob(dir, "src/**/*.{ts,tsx,mts,cts}", ["**/node_modules/**"]);
30375
- const imports = /* @__PURE__ */ new Set();
30376
- for (const file of files) {
30377
- const [valueImports, typeImports] = getImportsFromFile(file, {}, {});
30378
- for (const name of valueImports) imports.add(name);
30379
- for (const name of typeImports) imports.add(name);
30380
- }
30381
- surfaceImportsCache.set(dir, imports);
30382
- return imports;
30383
- }
30384
- /**
30385
- * Peers vouched for by workspace-internal packages whose surface this
30386
- * package ships. A pure re-export barrel never names the peers it
30387
- * re-exposes in its own imports or emitted d.ts, so scan-based forwarding
30388
- * evidence (`PeerForwardingPolicy.importedModules`) cannot see them. The
30389
- * re-exported internal package's own shipped surface is the next-best
30390
- * authority: any peer it declares AND references from its dist runtime or
30391
- * emitted d.ts flows through every package that ships its surface.
30392
- * Recurses through nested internal surfaces (a barrel re-exporting a
30393
- * facade re-exporting core), depth-limited.
30394
- */
30395
- function getInternalSurfaceVouchedPeers(location, shippedImports, workspaceNames) {
30396
- const vouched = /* @__PURE__ */ new Set();
30397
- const visited = /* @__PURE__ */ new Set();
30398
- const visitSurface = ({ baseDir, name }) => {
30399
- if (visited.has(name)) return [];
30400
- visited.add(name);
30401
- const surface = resolveInternalSurface(baseDir, name);
30402
- if (surface === void 0) return [];
30403
- const surfaceImports = getSurfaceImports(surface.dir);
30404
- for (const peer of surface.peerDependencies) if (surfaceImports.has(peer)) vouched.add(peer);
30405
- return [...surfaceImports].filter((imported) => workspaceNames.has(imported)).map((imported) => ({
30406
- baseDir: surface.dir,
30407
- name: imported
30408
- }));
30409
- };
30410
- let frontier = [...new Set(shippedImports)].filter((name) => workspaceNames.has(name)).map((name) => ({
30411
- baseDir: location,
30412
- name
30413
- }));
30414
- for (let depth = 0; depth < MAX_INTERNAL_SURFACE_DEPTH && frontier.length > 0; depth++) frontier = frontier.flatMap((ref) => visitSurface(ref));
30415
- return vouched;
30416
- }
30417
- //#endregion
30418
30368
  //#region src/actions/deplint/snapshot.ts
30419
30369
  function buildUnusedDependencyExclude(options, requiredTransitivePeers) {
30420
30370
  return /* @__PURE__ */ new Set([
@@ -30491,15 +30441,14 @@ function buildWorkspaceContext(workspace, options = {}) {
30491
30441
  const packageMetaStarted = performance.now();
30492
30442
  const packageJsonPath = `${workspace.location}/package.json`;
30493
30443
  const packageParams = getDependenciesFromPackageJson(packageJsonPath);
30494
- const forwardingMode = options.classifier === "aei" ? options.apiExposureConfig?.peerForwarding ?? "always" : "always";
30444
+ const forwardingMode = options.classifier === "aei" ? options.apiExposureConfig?.peerForwarding ?? "when-exposed" : "always";
30495
30445
  const peerForwarding = forwardingMode === "always" ? void 0 : {
30496
30446
  importedModules: forwardingMode === "when-exposed" ? /* @__PURE__ */ new Set([...sourceParams.externalDistImports, ...sourceParams.externalDistTypeImports]) : /* @__PURE__ */ new Set([
30497
30447
  ...sourceParams.externalAllImports,
30498
30448
  ...sourceParams.externalDistImports,
30499
30449
  ...sourceParams.externalDistTypeImports
30500
30450
  ]),
30501
- mode: forwardingMode,
30502
- vouchedPeers: options.workspaceNames === void 0 ? void 0 : getInternalSurfaceVouchedPeers(workspace.location, [...sourceParams.externalDistImports, ...sourceParams.externalDistTypeImports], options.workspaceNames)
30451
+ mode: forwardingMode
30503
30452
  };
30504
30453
  const requiredTransitivePeers = getRequiredNonOptionalTransitivePeers(workspace.location, packageParams);
30505
30454
  const runtimeRootedRequired = new Set([...getRuntimeRootedNonOptionalTransitivePeers(workspace.location, packageParams)].filter((peer) => isPeerForwarded(peerForwarding, peer)));
@@ -30983,7 +30932,7 @@ function pickUpgradeTarget(manifest, peer, installedPeerVersion, currentRange) {
30983
30932
  return absoluteBest;
30984
30933
  }
30985
30934
  function buildBumpedRange(resolvedVersion, section) {
30986
- return section === "peerDependencies" ? `^${resolvedVersion}` : `~${resolvedVersion}`;
30935
+ return section === "peerDependencies" ? formatPeerCaretVersion(resolvedVersion) ?? `^${resolvedVersion}` : `~${resolvedVersion}`;
30987
30936
  }
30988
30937
  function resolveOneFix(fix, manifest, resolutionCache, loggedKeys) {
30989
30938
  const cacheKey = keyOf(fix);