@nielspeter/eess-ts 0.8.0 → 0.10.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.
Files changed (35) hide show
  1. package/dist/conditions/dependency.d.ts.map +1 -1
  2. package/dist/conditions/dependency.js +5 -6
  3. package/dist/conditions/dependency.js.map +1 -1
  4. package/dist/core/diagnose.d.ts.map +1 -1
  5. package/dist/core/diagnose.js +9 -1
  6. package/dist/core/diagnose.js.map +1 -1
  7. package/dist/core/disk-set.d.ts +42 -0
  8. package/dist/core/disk-set.d.ts.map +1 -1
  9. package/dist/core/disk-set.js +72 -3
  10. package/dist/core/disk-set.js.map +1 -1
  11. package/dist/core/glob-evaluator.d.ts.map +1 -1
  12. package/dist/core/glob-evaluator.js +5 -1
  13. package/dist/core/glob-evaluator.js.map +1 -1
  14. package/dist/core/import-candidates.d.ts +43 -0
  15. package/dist/core/import-candidates.d.ts.map +1 -1
  16. package/dist/core/import-candidates.js +46 -0
  17. package/dist/core/import-candidates.js.map +1 -1
  18. package/dist/core/path-universe.d.ts.map +1 -1
  19. package/dist/core/path-universe.js +10 -0
  20. package/dist/core/path-universe.js.map +1 -1
  21. package/dist/core/project-relative.d.ts +57 -42
  22. package/dist/core/project-relative.d.ts.map +1 -1
  23. package/dist/core/project-relative.js +180 -4
  24. package/dist/core/project-relative.js.map +1 -1
  25. package/dist/core/vacuity-diagnosis.d.ts.map +1 -1
  26. package/dist/core/vacuity-diagnosis.js +77 -8
  27. package/dist/core/vacuity-diagnosis.js.map +1 -1
  28. package/dist/predicates/identity.d.ts +4 -2
  29. package/dist/predicates/identity.d.ts.map +1 -1
  30. package/dist/predicates/identity.js +4 -2
  31. package/dist/predicates/identity.js.map +1 -1
  32. package/dist/predicates/module.d.ts.map +1 -1
  33. package/dist/predicates/module.js +3 -4
  34. package/dist/predicates/module.js.map +1 -1
  35. package/package.json +2 -2
@@ -1,45 +1,3 @@
1
- /**
2
- * Make a project-relative glob work, instead of failing loudly — plan 0067 C.
3
- *
4
- * Globs are matched against **absolute** file paths, so `'src/domain/**'`
5
- * matches nothing. That is the single commonest real mistake with this library:
6
- * it is the shape 0.18.1 was released for, and as of **0.34.0** it is a hard
7
- * build failure telling the author to prefix `'**\/'`.
8
- *
9
- * Prefixing works but says something different. `'**\/src/domain/**'` matches a
10
- * `src/domain` **anywhere** — including `vendor/thing/src/domain`, and
11
- * including a second `src/` nested inside a monorepo package. What the author
12
- * meant was the one at the project root. 0067 called normalization "the root
13
- * cause" fix for that reason, and 0069 sequenced it directly after R3b.
14
- *
15
- * So an unanchored glob is matched against the path **relative to the
16
- * tsconfig's directory**, in addition to the absolute path. Both spellings keep
17
- * working and they mean different things:
18
- *
19
- * | glob | matches |
20
- * | --------------------- | ------------------------------------------- |
21
- * | `'src/domain/**'` | that folder **at the project root** |
22
- * | `'**\/src/domain/**'` | a `src/domain` **anywhere** in the project |
23
- * | `'/abs/src/domain/**'`| exactly that absolute path |
24
- *
25
- * ## Why the root comes from the element, not from the builder
26
- *
27
- * A predicate is constructed two ways that must not diverge:
28
- * `.that().resideInFolder(g)`, where the builder knows the project, and
29
- * `.that().satisfy(resideInFolder(g))`, where nothing does.
30
- * `tests/core/glob-declaration.test.ts` exists to assert the two spellings
31
- * agree, and threading the root through only the first would break that.
32
- *
33
- * Every `Located` element can reach its own `SourceFile`, and ts-morph carries
34
- * the tsconfig it was loaded from on the project's compiler options. So the
35
- * root is derived where the match happens, from the element itself, and both
36
- * spellings get it for free.
37
- *
38
- * `configFilePath` is `undefined` for a project built in memory or without a
39
- * tsconfig. That is a genuine "no root known" and normalization is skipped —
40
- * the glob keeps its absolute-only meaning rather than being matched against
41
- * something invented.
42
- */
43
1
  import picomatch from 'picomatch';
44
2
  import type { Project as TsMorphProject, SourceFile } from 'ts-morph';
45
3
  /**
@@ -96,6 +54,62 @@ export declare function rootOf(sourceFile: SourceFile, fallbackTsConfigPath?: st
96
54
  * `path-universe.ts` documents avoiding for the same reason.
97
55
  */
98
56
  export declare function relativeToRoot(sourceFile: SourceFile, absolutePath: string, fallbackTsConfigPath?: string): string | undefined;
57
+ /**
58
+ * The identity root for a project, from the path of its tsconfig.
59
+ *
60
+ * For the materializer in `path-universe.ts`, which holds the `ArchProject` and
61
+ * no `SourceFile`. It must agree with `matchesPath`'s view or the diagnosis and
62
+ * the runtime disagree about one glob — so both derive it here.
63
+ */
64
+ export declare function repoRootOf(tsConfigPath: string): string | undefined;
65
+ /**
66
+ * `absolutePath` named from the identity root — the `.git`/workspace root above
67
+ * the tsconfig — or `undefined` when there is no such root or the path sits
68
+ * outside it.
69
+ *
70
+ * This is the view a monorepo's own addressing needs: `'**\/apps/api/src/**'`
71
+ * names segments BETWEEN the repository root and the tsconfig directory, so the
72
+ * tsconfig-relative view has stripped off the very thing it names.
73
+ */
74
+ export declare function relativeToRepoRoot(sourceFile: SourceFile, absolutePath: string, fallbackTsConfigPath?: string): string | undefined;
75
+ /**
76
+ * Is this glob matched against the path named from the identity root, as well as
77
+ * the two views above?
78
+ *
79
+ * ## Globstar-led only, and that is the whole ruling — bug 0348
80
+ *
81
+ * `'**\/x'` says **anywhere**. The only reason it fails to match a file under a
82
+ * checkout like `~/.worktrees/repo` is picomatch's default `dot: false` applied
83
+ * to a prefix the author does not own — where the repository happens to sit on
84
+ * this machine. Naming the path from the repository root removes exactly that
85
+ * prefix and nothing else, so the glob gets to mean what it says. It is the same
86
+ * authorship argument [bug 0349](../../../../work/bugs/fixed/0349-a-path-shaped-dependency-ban-passes-silently-under-pnpm-and-yarn.md)
87
+ * makes for a package manager's layout: a verdict must not be decided by where
88
+ * things sit on disk.
89
+ *
90
+ * A **project-relative** glob (`'src/**'`) is deliberately excluded, and this is
91
+ * the exclusion that keeps the fix from being a widening. That spelling MEANS
92
+ * "relative to the project root", and `core/project-relative.ts`'s first job is
93
+ * that the project root is the tsconfig's directory. Offering it an identity-root
94
+ * view would make one spelling name two different directories in a monorepo —
95
+ * `packages/api/src/` and the repository's own `src/` — which is a second meaning
96
+ * for one glob with no bug behind it. Pinned by `a-glob-above-the-tsconfig-root.test.ts`
97
+ * · `it('CONTROL: a glob relative to the package root keeps meaning the package root')`.
98
+ *
99
+ * Project-relative globs need nothing here anyway: their second view is already
100
+ * free of the checkout path, which is why bug 0339 fixed them and left this.
101
+ *
102
+ * ## Why this adds no matches except the broken ones
103
+ *
104
+ * The identity-relative path is a SUFFIX of the absolute path. For a glob led by
105
+ * `'**\/'`, if it matches the suffix it also matches the whole — unless some
106
+ * segment of the stripped prefix begins with `.`, which is precisely the defect.
107
+ * So under a checkout with no dot-segment the third view selects nothing the
108
+ * first did not. Measured rather than argued: `it('adds no match under a
109
+ * checkout with no dot-segment')` compares every file in a fixture with the view
110
+ * on and off.
111
+ */
112
+ export declare function readsRepoRelativePath(glob: string): boolean;
99
113
  /**
100
114
  * Is this glob matched against the path named from the project root, as well as
101
115
  * the absolute path?
@@ -163,6 +177,7 @@ export interface PathGlobMatcher {
163
177
  readonly glob: string;
164
178
  readonly isMatch: picomatch.Matcher;
165
179
  readonly readsRootRelative: boolean;
180
+ readonly readsRepoRelative: boolean;
166
181
  }
167
182
  /** Compile one path glob. */
168
183
  export declare function pathGlobMatcher(glob: string): PathGlobMatcher;
@@ -1 +1 @@
1
- {"version":3,"file":"project-relative.d.ts","sourceRoot":"","sources":["../../src/core/project-relative.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,EAAE,OAAO,IAAI,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErE;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD;AA4BD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAgCvD;AA+BD;;;;;;;;;;GAUG;AACH,wBAAgB,o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AoCG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAY3D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG3D;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAA;IACnC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAA;IACnC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAA;CACpC;AAED,6BAA6B;AAC7B,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAO7D;AAED,4CAA4C;AAC5C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,eAAe,EAAE,CAE5E;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,MAAM,EACpB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,OAAO,CAeT;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,eAAe,EAAE,EACpC,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,MAAM,EACpB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,OAAO,CAIT"}
@@ -22,6 +22,16 @@
22
22
  * | `'**\/src/domain/**'` | a `src/domain` **anywhere** in the project |
23
23
  * | `'/abs/src/domain/**'`| exactly that absolute path |
24
24
  *
25
+ * ## Three views since bug 0348, not two
26
+ *
27
+ * A `'**\/'`-led glob gets a THIRD naming: the path from the **repository root**
28
+ * (`discoverIdentityRoot`'s `.git`/workspace root). Without it, `'**\/apps/api/src/**'`
29
+ * — how a monorepo addresses its own packages — can be named by neither of the two
30
+ * above: the absolute path carries the checkout's own location, and the
31
+ * tsconfig-relative path has `apps/api/` stripped off the front. A project-relative
32
+ * glob does NOT get it, deliberately; `readsRepoRelativePath` below owns that rule
33
+ * and states why.
34
+ *
25
35
  * ## Why the root comes from the element, not from the builder
26
36
  *
27
37
  * A predicate is constructed two ways that must not diverge:
@@ -40,7 +50,9 @@
40
50
  * the glob keeps its absolute-only meaning rather than being matched against
41
51
  * something invented.
42
52
  */
53
+ import path from 'node:path';
43
54
  import picomatch from 'picomatch';
55
+ import { discoverIdentityRoot, registerCacheReset } from '@nielspeter/eess/internal';
44
56
  /**
45
57
  * Whether a glob can already match an absolute path, so the `**\/` hint would
46
58
  * be a no-op (or worse). Covers POSIX-absolute and Windows drive-absolute
@@ -249,6 +261,154 @@ export function relativeToRoot(sourceFile, absolutePath, fallbackTsConfigPath) {
249
261
  const prefix = prefixOf(root);
250
262
  return absolutePath.startsWith(prefix) ? absolutePath.slice(prefix.length) : undefined;
251
263
  }
264
+ /**
265
+ * The identity root above a tsconfig directory, memoized.
266
+ *
267
+ * `discoverIdentityRoot` walks the filesystem with `existsSync`, and this sits
268
+ * on the per-element match path, so it is cached by the directory asked about.
269
+ * The cache is keyed by an absolute directory and holds at most one entry per
270
+ * loaded project, so it is bounded by the rule file rather than by the corpus.
271
+ *
272
+ * The guard is on the INPUT, exactly as `disk-set.ts` does it and for the same
273
+ * reason: `discoverIdentityRoot` calls `path.resolve`, so a relative input —
274
+ * this suite's `'in-memory'` double, an `ArchProject` a user constructed by hand
275
+ * — would walk up from the current working directory and answer with THIS
276
+ * repository's root. That is a plausible-looking wrong answer rather than a
277
+ * missing one, which is the shape ADR-009 rule 2 forbids.
278
+ */
279
+ const repoRootCache = new Map();
280
+ // Every other module-level cache in this dialect registers (`element-cache.ts`,
281
+ // `module-edges.ts`, `line-index.ts`, `descendant-cache.ts`), and
282
+ // `clearRegisteredCaches()` promises a consumer holding an `ArchProject` they built
283
+ // that a mutation is survivable. This cache is keyed by a STRING, so unlike
284
+ // `disk-set.ts`'s `WeakMap<ArchProject, …>` it outlives every project: in a watch
285
+ // run or an editor session a `git init`, a worktree move or a new
286
+ // `pnpm-workspace.yaml` would otherwise leave the matcher on the old root while
287
+ // `disk-set` walked the new one — the two-derivations disagreement again.
288
+ registerCacheReset(() => {
289
+ repoRootCache.clear();
290
+ });
291
+ function repoRootOfDir(dir) {
292
+ if (dir === undefined)
293
+ return undefined;
294
+ if (repoRootCache.has(dir))
295
+ return repoRootCache.get(dir);
296
+ const discovered = path.isAbsolute(dir)
297
+ ? discoverIdentityRoot(dir).replaceAll('\\', '/')
298
+ : undefined;
299
+ repoRootCache.set(dir, discovered);
300
+ return discovered;
301
+ }
302
+ /**
303
+ * The identity root for a project, from the path of its tsconfig.
304
+ *
305
+ * For the materializer in `path-universe.ts`, which holds the `ArchProject` and
306
+ * no `SourceFile`. It must agree with `matchesPath`'s view or the diagnosis and
307
+ * the runtime disagree about one glob — so both derive it here.
308
+ */
309
+ export function repoRootOf(tsConfigPath) {
310
+ return repoRootOfDir(rootFromTsConfigPath(tsConfigPath));
311
+ }
312
+ /**
313
+ * `absolutePath` named from the identity root — the `.git`/workspace root above
314
+ * the tsconfig — or `undefined` when there is no such root or the path sits
315
+ * outside it.
316
+ *
317
+ * This is the view a monorepo's own addressing needs: `'**\/apps/api/src/**'`
318
+ * names segments BETWEEN the repository root and the tsconfig directory, so the
319
+ * tsconfig-relative view has stripped off the very thing it names.
320
+ */
321
+ // eess-exclude eess/no-unused-exports: consumed by the test suite; the build tsconfig this gate reads excludes tests, so `src` is the only usage it can see
322
+ export function relativeToRepoRoot(sourceFile, absolutePath, fallbackTsConfigPath) {
323
+ const repoRoot = repoRootOfDir(projectTsConfigRoot(sourceFile, fallbackTsConfigPath));
324
+ if (repoRoot === undefined)
325
+ return undefined;
326
+ const prefix = prefixOf(repoRoot);
327
+ return absolutePath.startsWith(prefix) ? absolutePath.slice(prefix.length) : undefined;
328
+ }
329
+ /**
330
+ * The directory of the tsconfig the PROJECT was built from — not `rootOf`, which
331
+ * answers with the registered package root containing this file.
332
+ *
333
+ * The difference is the whole of review finding 0348/customer-1, and it is not a
334
+ * shortcut. `rootOf` fails CLOSED for a file outside every registered root — a
335
+ * shared root-level `.d.ts`, or anything ts-morph pulls in across a package
336
+ * boundary — because naming such a file from the wrong PACKAGE is a specific,
337
+ * plausible-looking wrong answer. That reasoning does not transfer to the
338
+ * identity root: it is the repository's, not the package's, so every file inside
339
+ * the repository can be named from it whichever package owns it. Deriving it via
340
+ * `rootOf` inherited the fail-closed exit and left the cross-package case exactly
341
+ * as broken as this bug reports. Measured through the real `project()` API before
342
+ * this function existed:
343
+ *
344
+ * | glob | under a dot-directory | beside one |
345
+ * | --------------------- | --------------------- | ------------------- |
346
+ * | `'**\/apps/api/src/**'` | `thing.ts` | `thing.ts` |
347
+ * | `'**\/apps/identity/**'` | **nothing** | `jwt.service.ts` |
348
+ *
349
+ * It is also what makes `path-universe.ts`'s claim true rather than aspirational:
350
+ * the materializer derives the identity root from `project.tsConfigPath`, and
351
+ * `workspace()` sets both that and the ts-morph project's own `configFilePath` to
352
+ * the primary config, so the two now read the same input and cannot disagree
353
+ * about one glob.
354
+ */
355
+ function projectTsConfigRoot(sourceFile, fallbackTsConfigPath) {
356
+ if (fallbackTsConfigPath !== undefined)
357
+ return rootFromTsConfigPath(fallbackTsConfigPath);
358
+ const configFilePath = sourceFile.getProject().getCompilerOptions().configFilePath;
359
+ return typeof configFilePath === 'string' ? rootFromTsConfigPath(configFilePath) : undefined;
360
+ }
361
+ /**
362
+ * Is this glob matched against the path named from the identity root, as well as
363
+ * the two views above?
364
+ *
365
+ * ## Globstar-led only, and that is the whole ruling — bug 0348
366
+ *
367
+ * `'**\/x'` says **anywhere**. The only reason it fails to match a file under a
368
+ * checkout like `~/.worktrees/repo` is picomatch's default `dot: false` applied
369
+ * to a prefix the author does not own — where the repository happens to sit on
370
+ * this machine. Naming the path from the repository root removes exactly that
371
+ * prefix and nothing else, so the glob gets to mean what it says. It is the same
372
+ * authorship argument [bug 0349](../../../../work/bugs/fixed/0349-a-path-shaped-dependency-ban-passes-silently-under-pnpm-and-yarn.md)
373
+ * makes for a package manager's layout: a verdict must not be decided by where
374
+ * things sit on disk.
375
+ *
376
+ * A **project-relative** glob (`'src/**'`) is deliberately excluded, and this is
377
+ * the exclusion that keeps the fix from being a widening. That spelling MEANS
378
+ * "relative to the project root", and `core/project-relative.ts`'s first job is
379
+ * that the project root is the tsconfig's directory. Offering it an identity-root
380
+ * view would make one spelling name two different directories in a monorepo —
381
+ * `packages/api/src/` and the repository's own `src/` — which is a second meaning
382
+ * for one glob with no bug behind it. Pinned by `a-glob-above-the-tsconfig-root.test.ts`
383
+ * · `it('CONTROL: a glob relative to the package root keeps meaning the package root')`.
384
+ *
385
+ * Project-relative globs need nothing here anyway: their second view is already
386
+ * free of the checkout path, which is why bug 0339 fixed them and left this.
387
+ *
388
+ * ## Why this adds no matches except the broken ones
389
+ *
390
+ * The identity-relative path is a SUFFIX of the absolute path. For a glob led by
391
+ * `'**\/'`, if it matches the suffix it also matches the whole — unless some
392
+ * segment of the stripped prefix begins with `.`, which is precisely the defect.
393
+ * So under a checkout with no dot-segment the third view selects nothing the
394
+ * first did not. Measured rather than argued: `it('adds no match under a
395
+ * checkout with no dot-segment')` compares every file in a fixture with the view
396
+ * on and off.
397
+ */
398
+ export function readsRepoRelativePath(glob) {
399
+ // Defence in depth, and NOT independently observable — stated the way
400
+ // `registerProjectRoots` states the same thing, so the next reader does not go
401
+ // hunting for a test. `isGlobstarLed` already excludes a leading `./` or `../`
402
+ // (neither is `'**\/'`-led), and a mid-glob `/./` or `/../` is a literal segment
403
+ // picomatch matches against nothing in any view. Measured in review over
404
+ // `'**\/./apps/api/src/**'`, `'**\/../identity/src/**'` and `'**\/apps/./api/src/**'`:
405
+ // dropping this line changes `readsRepoRelative` from false to true and changes
406
+ // no verdict. It is kept because the two gates in this file must agree about what
407
+ // a relative segment is, not because it is reachable today.
408
+ if (hasRelativeSegment(glob))
409
+ return false;
410
+ return isGlobstarLed(glob);
411
+ }
252
412
  /**
253
413
  * Is this glob matched against the path named from the project root, as well as
254
414
  * the absolute path?
@@ -309,7 +469,12 @@ export function readsRootRelativePath(glob) {
309
469
  }
310
470
  /** Compile one path glob. */
311
471
  export function pathGlobMatcher(glob) {
312
- return { glob, isMatch: picomatch(glob), readsRootRelative: readsRootRelativePath(glob) };
472
+ return {
473
+ glob,
474
+ isMatch: picomatch(glob),
475
+ readsRootRelative: readsRootRelativePath(glob),
476
+ readsRepoRelative: readsRepoRelativePath(glob),
477
+ };
313
478
  }
314
479
  /** Compile several path globs, in order. */
315
480
  export function pathGlobMatchers(globs) {
@@ -342,10 +507,21 @@ export function pathGlobMatchers(globs) {
342
507
  export function matchesPath(matcher, sourceFile, absolutePath, fallbackTsConfigPath) {
343
508
  if (matcher.isMatch(absolutePath))
344
509
  return true;
345
- if (!matcher.readsRootRelative)
510
+ if (matcher.readsRootRelative) {
511
+ const fromRoot = relativeToRoot(sourceFile, absolutePath, fallbackTsConfigPath);
512
+ if (fromRoot !== undefined && matcher.isMatch(fromRoot))
513
+ return true;
514
+ }
515
+ // The third view, and the last one — bug 0348. The ORDER here is not a semantic:
516
+ // this is a boolean disjunction, so trying the repo root first would give the same
517
+ // answer, and review confirmed a row that reorders the branches reds nothing. What
518
+ // narrows the third view is `readsRepoRelativePath` alone — only a glob that says
519
+ // "anywhere" reaches this line, because a glob naming a location relative to the
520
+ // project must be decided by the project.
521
+ if (!matcher.readsRepoRelative)
346
522
  return false;
347
- const fromRoot = relativeToRoot(sourceFile, absolutePath, fallbackTsConfigPath);
348
- return fromRoot !== undefined && matcher.isMatch(fromRoot);
523
+ const fromIdentityRoot = relativeToRepoRoot(sourceFile, absolutePath, fallbackTsConfigPath);
524
+ return fromIdentityRoot !== undefined && matcher.isMatch(fromIdentityRoot);
349
525
  }
350
526
  /**
351
527
  * Does ANY of these globs match this path?
@@ -1 +1 @@
1
- {"version":3,"file":"project-relative.js","sourceRoot":"","sources":["../../src/core/project-relative.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,SAAS,MAAM,WAAW,CAAA;AAGjC;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACjF,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;AAC/B,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,kBAAkB,CAAC,IAAY;IACtC,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACrC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,6EAA6E;IAC7E,yEAAyE;IACzE,0EAA0E;IAC1E,2EAA2E;IAC3E,wEAAwE;IACxE,6EAA6E;IAC7E,wDAAwD;IACxD,EAAE;IACF,6EAA6E;IAC7E,6EAA6E;IAC7E,+CAA+C;IAC/C,4EAA4E;IAC5E,oEAAoE;IACpE,wEAAwE;IACxE,wEAAwE;IACxE,IAAI,kBAAkB,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1C,8EAA8E;IAC9E,4EAA4E;IAC5E,8EAA8E;IAC9E,2EAA2E;IAC3E,kCAAkC;IAClC,6EAA6E;IAC7E,sEAAsE;IACtE,IAAI,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAA;IAClC,yEAAyE;IACzE,6EAA6E;IAC7E,2EAA2E;IAC3E,yEAAyE;IACzE,yEAAyE;IACzE,kCAAkC;IAClC,OAAO,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;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,UAAU,EAAE,aAAa,EAAE,EAC3B,QAAQ,EAAE,MAAM,GACf,aAAa,EAAE,GAAG,SAAS,CAsC7B;AAmCD;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,CA2C7F;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,GAAG;IACtD,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,SAAS,EAAE,aAAa,EAAE,CAAA;CAC3B,CAsCA;AAyCD,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAgC7D;AAED,kEAAkE;AAClE,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,WAAW,GAAG,SAAS,GAC/B,aAAa,CA4Bf"}
@@ -2,7 +2,7 @@ import { DECLARE_INSTEAD, isFaultPosition, UNSUPPRESSABLE } from '@nielspeter/ee
2
2
  import { diagnoseGlob, FAULT_ADVICE, ON_DISK_ADVICE } from './glob-diagnosis.js';
3
3
  import { globSitesOf, isDeadGlobTree, isDeadSite } from './glob-evaluator.js';
4
4
  import { pathUniverse } from './path-universe.js';
5
- import { diskSet } from './disk-set.js';
5
+ import { absenceClaimIsContradicted, diskSet } from './disk-set.js';
6
6
  import { emptyProjectAdvice, loadedNothing } from './empty-project-advice.js';
7
7
  /**
8
8
  * The unit noun, singular when there is one of it — plan 0099.
@@ -138,12 +138,32 @@ function deadSelectorViolation(facts, site, universe, project) {
138
138
  // noun alone ships a grammatical sentence that is still false.
139
139
  const isDiscovery = site.position === 'discovery';
140
140
  const what = isDiscovery ? 'discovery glob' : 'selector';
141
- const consequence = isDiscovery
142
- ? 'so it discovers nothing to check and cannot fail'
143
- : 'so it has no subjects and cannot fail';
141
+ // Cardinality varies BOTH clauses too, for the same reason `discovery` does —
142
+ // and here getting it wrong was worse than a grammatical slip. A rule asserting
143
+ // `.notExist()` is SATISFIED by having no subjects, so "it has no subjects and
144
+ // cannot fail" describes the rule PASSING, and the sentence then offered "or
145
+ // remove the rule" as a co-equal remedy. On a finding that is `bypassFilters`
146
+ // — unsuppressable by `.warn()`, `.excluding()`, a comment, a baseline or
147
+ // diff-aware mode — deletion is the only achievable exit, and the primary
148
+ // consumer is an agent that does not read warnings and takes the achievable
149
+ // branch. So the fix for a silently-passing ratchet shipped an instruction to
150
+ // delete the ratchet, contradicting its own changeset. Three independent
151
+ // review lenses found this before release; no test caught it, because no test
152
+ // asserted the message.
153
+ const isCardinality = facts.assertsCardinality();
154
+ const consequence = isCardinality
155
+ ? 'so the absence it asserts was never actually checked'
156
+ : isDiscovery
157
+ ? 'so it discovers nothing to check and cannot fail'
158
+ : 'so it has no subjects and cannot fail';
159
+ // Never "remove the rule" for a ratchet: it is the thing that noticed.
160
+ const remedy = isCardinality
161
+ ? 'Widen the tsconfig include to cover this path, or correct the selector — ' +
162
+ 'do not delete this rule, it is what detected the gap.'
163
+ : 'Correct the glob, or remove the rule.';
144
164
  const advice = `This rule's ${what} ${site.origin} can never match anything in this project, ` +
145
165
  `${consequence} — ${cause}. ` +
146
- `Correct the glob, or remove the rule. ${UNSUPPRESSABLE}`;
166
+ `${remedy} ${UNSUPPRESSABLE}`;
147
167
  return {
148
168
  rule: name,
149
169
  ruleId: described.id,
@@ -153,7 +173,12 @@ function deadSelectorViolation(facts, site, universe, project) {
153
173
  message: advice,
154
174
  // Its own remedy, never the author's (bug 0021): their `suggestion` is
155
175
  // for a violation of the rule, and this says the rule cannot produce one.
156
- suggestion: advice,
176
+ //
177
+ // For a cardinality rule the remedy ALONE, not the whole advice: `format.ts`
178
+ // drops the `Fix:` line when `message` and `suggestion` are equal, so the
179
+ // population most likely to be deleted rather than debugged was shipping with
180
+ // no `Fix:` line at all and its remedy buried mid-sentence.
181
+ suggestion: isCardinality ? remedy : advice,
157
182
  bypassFilters: true,
158
183
  };
159
184
  }
@@ -213,8 +238,17 @@ export function evidenceFloor(facts, violations, examined) {
213
238
  // `.notExist()` and friends examine zero BECAUSE that is what they
214
239
  // assert. Exempt since 0.34.0, and `diagnose()` exempts it too — the two
215
240
  // must agree or `doctor` and `check` disagree about a working rule.
216
- if (facts.assertsCardinality())
217
- return violations;
241
+ //
242
+ // The exemption is right and it was total, which left this one rule shape with
243
+ // nothing beneath it — exempt here AND in `deadSelectorFindings`, so a
244
+ // `.notExist()` whose selector silently stopped matching reported nothing and
245
+ // exited 0 ([bug 0355](../../../../work/bugs/fixed/0355-a-cardinality-rule-cannot-tell-none-exist-from-my-selector-broke.md)).
246
+ // It is the worst shape to lose: a ratchet is designed never to fire, so a green
247
+ // is unremarkable and nobody looks.
248
+ if (facts.assertsCardinality()) {
249
+ const onDisk = cardinalitySelectorMissedDisk(facts, project);
250
+ return onDisk.length > 0 ? onDisk : violations;
251
+ }
218
252
  // The author said empty is the point. `declaresEmpty()` — not
219
253
  // `_expectEmpty` — because `CrossProjectBuilder` declares per side and
220
254
  // overrides this; asking a fully-declared crossProject to declare would
@@ -360,6 +394,41 @@ export function deadSelectorFindings(facts) {
360
394
  return { selector: [emptyProjectViolation(facts, project)], discovery: [] };
361
395
  return deadSitesIn(facts, trees, project);
362
396
  }
397
+ /**
398
+ * A cardinality rule's selectors that examined zero while the path they name **holds
399
+ * TypeScript on disk**.
400
+ *
401
+ * The discriminator is the filesystem, and it has to be — a holding ratchet and a broken
402
+ * selector are identical from the glob and the path universe. `.notExist()` over
403
+ * `'**\/legacy/**'` matches nothing after you delete `legacy/` BECAUSE the rule is working,
404
+ * so keying on glob satisfiability would fire on every ratchet doing its job. Measured, on a
405
+ * fixture where `apps/legacy/` exists on disk outside the tsconfig's `include`:
406
+ *
407
+ * | case | subjects | `classify` |
408
+ * | ------------------------------------------------ | -------- | ---------- |
409
+ * | files on disk, examined 0 — the selector missed | 0 | `holds-typescript` |
410
+ * | genuinely absent — the ratchet holding | 0 | `absent` |
411
+ *
412
+ * So only `holds-typescript` reports: the code being asserted about is right there and the
413
+ * rule did not see it. `absent` is the ratchet working. `no-typescript` means no modules are
414
+ * there, which is what the rule asserts. `not-determined` means the walk could not answer, and
415
+ * blaming the author for that is the confidently-wrong remedy `disk-set.ts` exists not to give.
416
+ *
417
+ * Reached only from `evidenceFloor`, which runs when `violations` is empty AND `examined` is
418
+ * zero — so the disk walk never sits on the common path, and a live selector never gets here.
419
+ */
420
+ function cardinalitySelectorMissedDisk(facts, project) {
421
+ if (project === undefined)
422
+ return [];
423
+ const trees = facts.globs();
424
+ if (trees.length === 0)
425
+ return [];
426
+ // `deadSitesIn` rather than a second derivation: the finding a cardinality rule gets must be
427
+ // the same one every other rule gets for the same fault, or two shapes of rule explain one
428
+ // defect differently. `absenceClaimIsContradicted` for the same reason one level up — it is
429
+ // the policy `diagnose()` must apply identically, and it is owned in `disk-set.ts`.
430
+ return deadSitesIn(facts, trees, project).selector.filter((v) => v.element !== undefined && absenceClaimIsContradicted(project, v.element));
431
+ }
363
432
  /** The value behind `TerminalBuilder.zeroSubjectsAdvice()`. */
364
433
  export function zeroSubjectsAdviceOf(facts) {
365
434
  const project = facts.getProject();
@@ -1 +1 @@
1
- {"version":3,"file":"vacuity-diagnosis.js","sourceRoot":"","sources":["../../src/core/vacuity-diagnosis.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC5F,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACv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,OAAgC;IAEhC,qEAAqE;IACrE,4EAA4E;IAC5E,uDAAuD;IACvD,EAAE;IACF,6EAA6E;IAC7E,2EAA2E;IAC3E,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,gDAAgD;IAChD,IAAI,OAAO,KAAK,SAAS,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IAC9C,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE,CAAA;IACtC,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,IAAI,SAAS,CAAC,IAAI,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,CAAA;IACnE,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,kBAAkB,EAAE,IAAI,cAAc,IAAI,eAAe,EAAE,CAAA;IACnF,OAAO;QACL,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,SAAS,CAAC,EAAE;QACpB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,MAAM;QACf,iDAAiD;QACjD,UAAU,EAAE,MAAM;QAClB,aAAa,EAAE,IAAI;KACpB,CAAA;AACH,CAAC"}
@@ -28,8 +28,10 @@ export declare function haveNameStartingWith<T extends Named>(prefix: string): P
28
28
  export declare function haveNameEndingWith<T extends Named>(suffix: string): Predicate<T>;
29
29
  /**
30
30
  * Matches elements that reside in a file matching the given glob.
31
- * The glob is matched against the absolute file path and, since bug 0339, the
32
- * path named from the project root — see `core/project-relative.ts`.
31
+ * The glob is matched against the absolute file path, the path named from the
32
+ * project root (bug 0339) and — for a `'**\/'`-led glob only — the path named from
33
+ * the repository root (bug 0348). See `core/project-relative.ts`, which owns which
34
+ * spelling gets which.
33
35
  *
34
36
  * @example
35
37
  * resideInFile('** /routes.ts') // matches /abs/path/src/routes.ts
@@ -1 +1 @@
1
- {"version":3,"file":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S,CAAC,UAAU,CAAC,CAWpE;AAID;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAKhE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAKnE"}
@@ -43,8 +43,10 @@ export function haveNameEndingWith(suffix) {
43
43
  // --- File & Folder predicates ---
44
44
  /**
45
45
  * Matches elements that reside in a file matching the given glob.
46
- * The glob is matched against the absolute file path and, since bug 0339, the
47
- * path named from the project root — see `core/project-relative.ts`.
46
+ * The glob is matched against the absolute file path, the path named from the
47
+ * project root (bug 0339) and — for a `'**\/'`-led glob only — the path named from
48
+ * the repository root (bug 0348). See `core/project-relative.ts`, which owns which
49
+ * spelling gets which.
48
50
  *
49
51
  * @example
50
52
  * resideInFile('** /routes.ts') // matches /abs/path/src/routes.ts
@@ -1 +1 @@
1
- {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/predicates/identity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAiB7F,0BAA0B;AAE1B;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAkB,OAAwB;IACxE,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IACzE,OAAO;QACL,WAAW,EAAE,sBAAsB,MAAM,CAAC,KAAK,CAAC,EAAE;QAClD,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE;YAChB,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAA;YAC9B,OAAO,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA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