@nielspeter/eess-ts 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/builders/call-rule-builder.d.ts.map +1 -1
  2. package/dist/builders/call-rule-builder.js +2 -1
  3. package/dist/builders/call-rule-builder.js.map +1 -1
  4. package/dist/builders/class-rule-builder.d.ts.map +1 -1
  5. package/dist/builders/class-rule-builder.js +7 -25
  6. package/dist/builders/class-rule-builder.js.map +1 -1
  7. package/dist/builders/correspondence-builder.d.ts.map +1 -1
  8. package/dist/builders/correspondence-builder.js +6 -14
  9. package/dist/builders/correspondence-builder.js.map +1 -1
  10. package/dist/builders/cross-layer-builder.d.ts.map +1 -1
  11. package/dist/builders/cross-layer-builder.js +7 -6
  12. package/dist/builders/cross-layer-builder.js.map +1 -1
  13. package/dist/builders/function-rule-builder.d.ts.map +1 -1
  14. package/dist/builders/function-rule-builder.js +4 -13
  15. package/dist/builders/function-rule-builder.js.map +1 -1
  16. package/dist/builders/module-rule-builder.d.ts.map +1 -1
  17. package/dist/builders/module-rule-builder.js +4 -16
  18. package/dist/builders/module-rule-builder.js.map +1 -1
  19. package/dist/builders/slice-rule-builder.d.ts.map +1 -1
  20. package/dist/builders/slice-rule-builder.js +4 -3
  21. package/dist/builders/slice-rule-builder.js.map +1 -1
  22. package/dist/builders/type-rule-builder.d.ts.map +1 -1
  23. package/dist/builders/type-rule-builder.js +4 -13
  24. package/dist/builders/type-rule-builder.js.map +1 -1
  25. package/dist/cli/commands/baseline.d.ts +5 -1
  26. package/dist/cli/commands/baseline.d.ts.map +1 -1
  27. package/dist/cli/commands/baseline.js +47 -5
  28. package/dist/cli/commands/baseline.js.map +1 -1
  29. package/dist/cli/commands/check.d.ts.map +1 -1
  30. package/dist/cli/commands/check.js +155 -13
  31. package/dist/cli/commands/check.js.map +1 -1
  32. package/dist/cli/commands/doctor.d.ts.map +1 -1
  33. package/dist/cli/commands/doctor.js +97 -6
  34. package/dist/cli/commands/doctor.js.map +1 -1
  35. package/dist/cli/commands/explain.d.ts.map +1 -1
  36. package/dist/cli/commands/explain.js +21 -2
  37. package/dist/cli/commands/explain.js.map +1 -1
  38. package/dist/cli/commands/init.js +1 -1
  39. package/dist/cli/commands/init.js.map +1 -1
  40. package/dist/cli/import-rule-module.d.ts +23 -4
  41. package/dist/cli/import-rule-module.d.ts.map +1 -1
  42. package/dist/cli/import-rule-module.js +30 -18
  43. package/dist/cli/import-rule-module.js.map +1 -1
  44. package/dist/cli/index.d.ts.map +1 -1
  45. package/dist/cli/index.js +4 -11
  46. package/dist/cli/index.js.map +1 -1
  47. package/dist/cli/load-rules.d.ts.map +1 -1
  48. package/dist/cli/load-rules.js +5 -4
  49. package/dist/cli/load-rules.js.map +1 -1
  50. package/dist/cli/resolve-config.d.ts +0 -8
  51. package/dist/cli/resolve-config.d.ts.map +1 -1
  52. package/dist/cli/resolve-config.js +18 -48
  53. package/dist/cli/resolve-config.js.map +1 -1
  54. package/dist/cli/rule-file-findings.d.ts.map +1 -1
  55. package/dist/cli/rule-file-findings.js +60 -2
  56. package/dist/cli/rule-file-findings.js.map +1 -1
  57. package/dist/cli/watch.d.ts +13 -43
  58. package/dist/cli/watch.d.ts.map +1 -1
  59. package/dist/cli/watch.js +8 -148
  60. package/dist/cli/watch.js.map +1 -1
  61. package/dist/conditions/call.d.ts.map +1 -1
  62. package/dist/conditions/call.js +4 -3
  63. package/dist/conditions/call.js.map +1 -1
  64. package/dist/conditions/cross-layer.js +2 -2
  65. package/dist/conditions/cross-layer.js.map +1 -1
  66. package/dist/conditions/dependency.js +2 -2
  67. package/dist/conditions/dependency.js.map +1 -1
  68. package/dist/conditions/exports.d.ts.map +1 -1
  69. package/dist/conditions/exports.js +31 -37
  70. package/dist/conditions/exports.js.map +1 -1
  71. package/dist/conditions/function.js +1 -1
  72. package/dist/conditions/function.js.map +1 -1
  73. package/dist/conditions/jsx.js +1 -1
  74. package/dist/conditions/jsx.js.map +1 -1
  75. package/dist/conditions/members.d.ts.map +1 -1
  76. package/dist/conditions/members.js +3 -2
  77. package/dist/conditions/members.js.map +1 -1
  78. package/dist/conditions/reverse-dependency.d.ts.map +1 -1
  79. package/dist/conditions/reverse-dependency.js +47 -2
  80. package/dist/conditions/reverse-dependency.js.map +1 -1
  81. package/dist/conditions/slice.js +1 -1
  82. package/dist/conditions/slice.js.map +1 -1
  83. package/dist/conditions/structural.js +1 -1
  84. package/dist/conditions/structural.js.map +1 -1
  85. package/dist/core/check-all.d.ts.map +1 -1
  86. package/dist/core/check-all.js +61 -7
  87. package/dist/core/check-all.js.map +1 -1
  88. package/dist/core/combinators.d.ts.map +1 -1
  89. package/dist/core/combinators.js +20 -27
  90. package/dist/core/combinators.js.map +1 -1
  91. package/dist/core/descendant-cache.d.ts.map +1 -1
  92. package/dist/core/descendant-cache.js +5 -7
  93. package/dist/core/descendant-cache.js.map +1 -1
  94. package/dist/core/diagnose.js +15 -7
  95. package/dist/core/diagnose.js.map +1 -1
  96. package/dist/core/disk-set.js +1 -1
  97. package/dist/core/disk-set.js.map +1 -1
  98. package/dist/core/element-cache.js +1 -1
  99. package/dist/core/element-cache.js.map +1 -1
  100. package/dist/core/exclusion-comments.d.ts +15 -50
  101. package/dist/core/exclusion-comments.d.ts.map +1 -1
  102. package/dist/core/exclusion-comments.js +4 -307
  103. package/dist/core/exclusion-comments.js.map +1 -1
  104. package/dist/core/execute-rule.d.ts +8 -0
  105. package/dist/core/execute-rule.d.ts.map +1 -1
  106. package/dist/core/execute-rule.js +99 -13
  107. package/dist/core/execute-rule.js.map +1 -1
  108. package/dist/core/glob-evaluator.js +2 -2
  109. package/dist/core/glob-evaluator.js.map +1 -1
  110. package/dist/core/invalidate-on-modify.d.ts +20 -0
  111. package/dist/core/invalidate-on-modify.d.ts.map +1 -0
  112. package/dist/core/invalidate-on-modify.js +26 -0
  113. package/dist/core/invalidate-on-modify.js.map +1 -0
  114. package/dist/core/line-index.d.ts.map +1 -1
  115. package/dist/core/line-index.js +6 -8
  116. package/dist/core/line-index.js.map +1 -1
  117. package/dist/core/metric-violation.d.ts +1 -1
  118. package/dist/core/module-edges.d.ts.map +1 -1
  119. package/dist/core/module-edges.js +26 -25
  120. package/dist/core/module-edges.js.map +1 -1
  121. package/dist/core/orphan-exclusions.d.ts.map +1 -1
  122. package/dist/core/orphan-exclusions.js +15 -5
  123. package/dist/core/orphan-exclusions.js.map +1 -1
  124. package/dist/core/path-universe.d.ts +10 -42
  125. package/dist/core/path-universe.d.ts.map +1 -1
  126. package/dist/core/path-universe.js +0 -20
  127. package/dist/core/path-universe.js.map +1 -1
  128. package/dist/core/project.d.ts.map +1 -1
  129. package/dist/core/project.js +6 -5
  130. package/dist/core/project.js.map +1 -1
  131. package/dist/core/rule-builder.d.ts +22 -1
  132. package/dist/core/rule-builder.d.ts.map +1 -1
  133. package/dist/core/rule-builder.js +38 -20
  134. package/dist/core/rule-builder.js.map +1 -1
  135. package/dist/core/rule-declaration.d.ts.map +1 -1
  136. package/dist/core/rule-declaration.js +14 -52
  137. package/dist/core/rule-declaration.js.map +1 -1
  138. package/dist/core/terminal-builder.d.ts +17 -13
  139. package/dist/core/terminal-builder.d.ts.map +1 -1
  140. package/dist/core/terminal-builder.js +41 -21
  141. package/dist/core/terminal-builder.js.map +1 -1
  142. package/dist/core/terminal-execution.d.ts +22 -6
  143. package/dist/core/terminal-execution.d.ts.map +1 -1
  144. package/dist/core/terminal-execution.js +39 -7
  145. package/dist/core/terminal-execution.js.map +1 -1
  146. package/dist/core/ts-comment-mask.d.ts +2 -0
  147. package/dist/core/ts-comment-mask.d.ts.map +1 -0
  148. package/dist/core/ts-comment-mask.js +102 -0
  149. package/dist/core/ts-comment-mask.js.map +1 -0
  150. package/dist/core/vacuity-diagnosis.js +1 -1
  151. package/dist/core/vacuity-diagnosis.js.map +1 -1
  152. package/dist/graphql/graphql-rule-builder.d.ts +95 -0
  153. package/dist/graphql/graphql-rule-builder.d.ts.map +1 -0
  154. package/dist/graphql/graphql-rule-builder.js +127 -0
  155. package/dist/graphql/graphql-rule-builder.js.map +1 -0
  156. package/dist/graphql/index.d.ts +1 -0
  157. package/dist/graphql/index.d.ts.map +1 -1
  158. package/dist/graphql/index.js +1 -0
  159. package/dist/graphql/index.js.map +1 -1
  160. package/dist/graphql/resolver-rule-builder.d.ts +22 -76
  161. package/dist/graphql/resolver-rule-builder.d.ts.map +1 -1
  162. package/dist/graphql/resolver-rule-builder.js +8 -130
  163. package/dist/graphql/resolver-rule-builder.js.map +1 -1
  164. package/dist/graphql/schema-loader.d.ts.map +1 -1
  165. package/dist/graphql/schema-loader.js +4 -3
  166. package/dist/graphql/schema-loader.js.map +1 -1
  167. package/dist/graphql/schema-predicates.d.ts.map +1 -1
  168. package/dist/graphql/schema-predicates.js +17 -12
  169. package/dist/graphql/schema-predicates.js.map +1 -1
  170. package/dist/graphql/schema-rule-builder.d.ts +21 -67
  171. package/dist/graphql/schema-rule-builder.d.ts.map +1 -1
  172. package/dist/graphql/schema-rule-builder.js +6 -120
  173. package/dist/graphql/schema-rule-builder.js.map +1 -1
  174. package/dist/helpers/baseline-generator.d.ts +9 -0
  175. package/dist/helpers/baseline-generator.d.ts.map +1 -1
  176. package/dist/helpers/baseline-generator.js +9 -0
  177. package/dist/helpers/baseline-generator.js.map +1 -1
  178. package/dist/helpers/baseline.d.ts.map +1 -1
  179. package/dist/helpers/baseline.js +4 -4
  180. package/dist/helpers/baseline.js.map +1 -1
  181. package/dist/helpers/body-traversal.d.ts.map +1 -1
  182. package/dist/helpers/body-traversal.js +13 -0
  183. package/dist/helpers/body-traversal.js.map +1 -1
  184. package/dist/helpers/callback-extractor.js +6 -38
  185. package/dist/helpers/callback-extractor.js.map +1 -1
  186. package/dist/helpers/complexity.d.ts +1 -1
  187. package/dist/helpers/complexity.js +1 -1
  188. package/dist/helpers/diff-aware.d.ts +11 -39
  189. package/dist/helpers/diff-aware.d.ts.map +1 -1
  190. package/dist/helpers/diff-aware.js +11 -79
  191. package/dist/helpers/diff-aware.js.map +1 -1
  192. package/dist/helpers/matchers.d.ts.map +1 -1
  193. package/dist/helpers/matchers.js +51 -67
  194. package/dist/helpers/matchers.js.map +1 -1
  195. package/dist/index.d.ts +15 -18
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.js +37 -18
  198. package/dist/index.js.map +1 -1
  199. package/dist/models/arch-function.d.ts +26 -2
  200. package/dist/models/arch-function.d.ts.map +1 -1
  201. package/dist/models/arch-function.js +51 -17
  202. package/dist/models/arch-function.js.map +1 -1
  203. package/dist/models/arch-jsx-element.d.ts.map +1 -1
  204. package/dist/models/arch-jsx-element.js +16 -17
  205. package/dist/models/arch-jsx-element.js.map +1 -1
  206. package/dist/predicates/jsx.d.ts.map +1 -1
  207. package/dist/predicates/jsx.js +2 -1
  208. package/dist/predicates/jsx.js.map +1 -1
  209. package/dist/presets/agent-guardrails.d.ts +29 -3
  210. package/dist/presets/agent-guardrails.d.ts.map +1 -1
  211. package/dist/presets/agent-guardrails.js +185 -1
  212. package/dist/presets/agent-guardrails.js.map +1 -1
  213. package/dist/presets/boundaries.d.ts +2 -2
  214. package/dist/presets/boundaries.d.ts.map +1 -1
  215. package/dist/presets/data-layer.d.ts +2 -2
  216. package/dist/presets/data-layer.d.ts.map +1 -1
  217. package/dist/presets/index.d.ts +4 -1
  218. package/dist/presets/index.d.ts.map +1 -1
  219. package/dist/presets/index.js +11 -1
  220. package/dist/presets/index.js.map +1 -1
  221. package/dist/presets/layered.d.ts +2 -2
  222. package/dist/presets/layered.d.ts.map +1 -1
  223. package/dist/presets/recommended.d.ts +3 -3
  224. package/dist/presets/recommended.d.ts.map +1 -1
  225. package/dist/presets/shared.d.ts +8 -11
  226. package/dist/presets/shared.d.ts.map +1 -1
  227. package/dist/presets/shared.js +57 -28
  228. package/dist/presets/shared.js.map +1 -1
  229. package/dist/rules/metrics-function.d.ts.map +1 -1
  230. package/dist/rules/metrics-function.js +59 -62
  231. package/dist/rules/metrics-function.js.map +1 -1
  232. package/dist/rules/metrics.d.ts.map +1 -1
  233. package/dist/rules/metrics.js +62 -59
  234. package/dist/rules/metrics.js.map +1 -1
  235. package/dist/smells/clusters.d.ts +78 -0
  236. package/dist/smells/clusters.d.ts.map +1 -0
  237. package/dist/smells/clusters.js +124 -0
  238. package/dist/smells/clusters.js.map +1 -0
  239. package/dist/smells/duplicate-bodies.d.ts +38 -4
  240. package/dist/smells/duplicate-bodies.d.ts.map +1 -1
  241. package/dist/smells/duplicate-bodies.js +93 -44
  242. package/dist/smells/duplicate-bodies.js.map +1 -1
  243. package/dist/smells/duplicate-report.d.ts +90 -0
  244. package/dist/smells/duplicate-report.d.ts.map +1 -0
  245. package/dist/smells/duplicate-report.js +344 -0
  246. package/dist/smells/duplicate-report.js.map +1 -0
  247. package/dist/smells/fingerprint.d.ts +12 -0
  248. package/dist/smells/fingerprint.d.ts.map +1 -1
  249. package/dist/smells/fingerprint.js +8 -2
  250. package/dist/smells/fingerprint.js.map +1 -1
  251. package/dist/smells/inconsistent-siblings.js +1 -1
  252. package/dist/smells/inconsistent-siblings.js.map +1 -1
  253. package/dist/smells/similar-pairs.d.ts +9 -8
  254. package/dist/smells/similar-pairs.d.ts.map +1 -1
  255. package/dist/smells/similar-pairs.js +83 -1
  256. package/dist/smells/similar-pairs.js.map +1 -1
  257. package/dist/smells/smell-builder.d.ts.map +1 -1
  258. package/dist/smells/smell-builder.js +3 -2
  259. package/dist/smells/smell-builder.js.map +1 -1
  260. package/dist/smells/variation.d.ts +47 -0
  261. package/dist/smells/variation.d.ts.map +1 -0
  262. package/dist/smells/variation.js +90 -0
  263. package/dist/smells/variation.js.map +1 -0
  264. package/dist/tsconfig/tsconfig-builder.d.ts.map +1 -1
  265. package/dist/tsconfig/tsconfig-builder.js +3 -2
  266. package/dist/tsconfig/tsconfig-builder.js.map +1 -1
  267. package/package.json +3 -2
@@ -1,3 +1,4 @@
1
+ import { collectResult } from '@nielspeter/eess';
1
2
  import { assertionLessFinding, deadSelectorFindings, evidenceFloor, expiredDeclarationViolation, } from './vacuity-diagnosis.js';
2
3
  /**
3
4
  * Run the rule, but let the gates speak first.
@@ -7,6 +8,18 @@ import { assertionLessFinding, deadSelectorFindings, evidenceFloor, expiredDecla
7
8
  * tangled with the fluent surface that configures them; the order is the whole
8
9
  * content of this function and now reads as such.
9
10
  */
11
+ /**
12
+ * Returns the RECEIPT, not a bare array — plan 0235.
13
+ *
14
+ * The gate paths below fire BEFORE `run.collectViolations()` on purpose (see
15
+ * `TerminalBuilder.collectWithAssertionGuard`'s comment: `CrossProjectBuilder`
16
+ * throws a `RangeError` from its collection, so a gate placed after it would
17
+ * never run and the error would escape the CLI's `ArchRuleError`-only catch).
18
+ * Those paths therefore report `examined: 0` — honest, because nothing was
19
+ * collected — and the caller must NOT reach for the count itself. A first cut
20
+ * did exactly that from `violations()` and reintroduced bug 0025's escaping
21
+ * `RangeError`; the evidence has to come back through here.
22
+ */
10
23
  export function collectWithAssertionGuard(run) {
11
24
  if (run.assertsSomething()) {
12
25
  // Plan 0074 (R3b). AFTER the assertion gate, deliberately: a rule with a
@@ -43,17 +56,30 @@ export function collectWithAssertionGuard(run) {
43
56
  // fact the opinion.
44
57
  const dead = deadSelectorFindings(run.facts);
45
58
  if (dead.selector.length > 0)
46
- return dead.selector;
59
+ return collectResult(dead.selector, { examined: 0 });
47
60
  if (dead.discovery.length > 0 && !run.ownsDiscoveryDiagnosis())
48
- return dead.discovery;
61
+ return collectResult(dead.discovery, { examined: 0 });
49
62
  // Plan 0099: the floor. 0098 produced this evidence and discarded it here;
50
63
  // this is where discarding stops.
51
- const { violations, examined } = run.collectViolations();
64
+ const collected = run.collectViolations();
65
+ const { examined } = collected;
66
+ const violations = [...collected];
52
67
  // ADR-010's floor: four branches that all answer one question — is a pass
53
68
  // here CONSTRUCTED from evidence, or defaulted? See `evidenceFloor`.
69
+ // The declaration, computed ONCE and used on both exits below.
70
+ //
71
+ // `evidenceFloor` returns the (empty) violations rather than `undefined` for
72
+ // a cardinality-exempt rule — its exempt path IS the declaration case — so an
73
+ // exit that drops the flag here leaves a `.notExist()` rule undeclared, and
74
+ // the emitter then reports it as a vacuous pass. Measured: exactly that,
75
+ // before this was hoisted.
76
+ const declaredEmpty = run.expectsEmpty ||
77
+ (examined === 0 && (collected.declaredEmpty === true || run.assertsCardinality()))
78
+ ? true
79
+ : undefined;
54
80
  const floor = evidenceFloor(run.facts, violations, examined);
55
81
  if (floor !== undefined)
56
- return floor;
82
+ return collectResult(floor, { examined, sourceEmpty: collected.sourceEmpty, declaredEmpty });
57
83
  // The expiry half, and it is the ROOT's alone — `rule-builder.ts` used to
58
84
  // carry its own, so keeping both double-reported one fault.
59
85
  //
@@ -62,10 +88,16 @@ export function collectWithAssertionGuard(run) {
62
88
  // and on `CrossProjectBuilder` `declaresEmpty()` is an all-sides
63
89
  // conjunction whose per-side expiry that class reports itself.
64
90
  if (examined > 0 && run.expectsEmpty) {
65
- return [expiredDeclarationViolation(run.facts, examined), ...violations];
91
+ return collectResult([expiredDeclarationViolation(run.facts, examined), ...violations], {
92
+ examined,
93
+ });
66
94
  }
67
- return violations;
95
+ return collectResult(violations, {
96
+ examined,
97
+ sourceEmpty: collected.sourceEmpty,
98
+ declaredEmpty,
99
+ });
68
100
  }
69
- return assertionLessFinding(run.facts);
101
+ return collectResult(assertionLessFinding(run.facts), { examined: 0 });
70
102
  }
71
103
  //# sourceMappingURL=terminal-execution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"terminal-execution.js","sourceRoot":"","sources":["../../src/core/terminal-execution.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,2BAA2B,GAC5B,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CAAC,GAAY;IACpD,IAAI,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC;QAC3B,yEAAyE;QACzE,0EAA0E;QAC1E,0EAA0E;QAC1E,y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,CAAC;QACD,OAAO,aAAa,CAAC,UAAU,EAAE;YAC/B,QAAQ;YACR,WAAW,EAAE,SAAS,CAAC,WAAW;YAClC,aAAa;SACd,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,aAAa,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAA;AACxE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function maskTsLiterals(sourceText: string, filePath: string): string;
2
+ //# sourceMappingURL=ts-comment-mask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts-comment-mask.d.ts","sourceRoot":"","sources":["../../src/core/ts-comment-mask.ts"],"names":[],"mappings":"AAoEA,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAoC3E"}
@@ -0,0 +1,102 @@
1
+ import path from 'node:path';
2
+ import { Project, SyntaxKind } from 'ts-morph';
3
+ /**
4
+ * `eess-ts`'s comment masker, injected into the kernel's one exclusion-comment
5
+ * parser (ADR-012).
6
+ *
7
+ * The kernel has no AST and cannot get one — it declares zero dependencies so
8
+ * that `eess-md` does not inherit a TypeScript parser. Its default masker is a
9
+ * regex scan, which is correct but coarse. This is the accurate version for
10
+ * TypeScript, and it is all that ever justified `eess-ts` carrying a second copy
11
+ * of the parser. Now only the masker is this package's; the parsing is not.
12
+ *
13
+ * The kernel composes: this runs first, its default runs over the output. So
14
+ * this can only blank MORE than the default, never less.
15
+ */
16
+ /**
17
+ * Every string-like literal, blanked — [ts-archunit bug 0043](https://github.com/nielspeter/ts-archunit/blob/main/bugs/fixed/0043-an-exclusion-directive-inside-a-string-literal-suppresses.md).
18
+ *
19
+ * The scan below is line-based, and a line-based scan cannot tell a directive
20
+ * from the same characters inside a string. Measured before this existed: all
21
+ * three of `"…"`, `'…'` and `` `…` `` containing the directive text produced a
22
+ * **live exclusion** that silenced a real finding — silently, because a
23
+ * directive carrying a reason never triggers the undocumented-exclusion warning.
24
+ *
25
+ * **Newlines are preserved**, and that is the load-bearing part: the scan below
26
+ * is line-based and reports `line` on every exclusion, so a mask that dropped a
27
+ * newline would misreport every directive after it.
28
+ *
29
+ * Characters are replaced with spaces rather than removed, which keeps
30
+ * intra-line offsets stable too — but nothing downstream consumes a column, so
31
+ * that half is defence in depth rather than a guarded property. Measured:
32
+ * collapsing the blanks to `''`, and masking one character short, both leave the
33
+ * suite green. Recorded rather than dressed up — a sabotage row that survives
34
+ * for a real reason is a different thing from a missing guard.
35
+ *
36
+ * ## Why a parse, and not a scan
37
+ *
38
+ * The first attempt used `ts.createScanner`, which is the real lexer and fixed
39
+ * the three plain cases. It left two: `` `${x} // …` `` and JSX text. A bare
40
+ * scanner has no parser context, so it cannot know when to re-scan a template
41
+ * middle or JSX children, and both were classified as code — meaning the `//`
42
+ * inside them became a comment. Measured, not predicted.
43
+ *
44
+ * So: parse, and blank the literals. Everything remaining is code, where `//`
45
+ * genuinely does start a comment.
46
+ *
47
+ * A **ts-morph** project rather than the raw compiler API, per
48
+ * [ADR-002](../../../../adr/002-ts-morph-ast-engine.md), reusing one in-memory project
49
+ * across calls so the cost is a parse rather than a project construction. The
50
+ * whole scan is gated on a rule having already produced a violation in the file,
51
+ * so nothing is parsed for a clean run.
52
+ *
53
+ * A `TemplateExpression` is blanked **whole**, including its `${…}`
54
+ * substitutions. A comment is legal inside a substitution, so this can miss a
55
+ * real directive there — it errs toward *not* suppressing, which is the safe
56
+ * direction for a mechanism whose failure mode is a silent green.
57
+ */
58
+ const LITERAL_KINDS = [
59
+ SyntaxKind.StringLiteral,
60
+ SyntaxKind.NoSubstitutionTemplateLiteral,
61
+ SyntaxKind.TemplateExpression,
62
+ SyntaxKind.RegularExpressionLiteral,
63
+ SyntaxKind.JsxText,
64
+ ];
65
+ let scratch;
66
+ export function maskTsLiterals(sourceText, filePath) {
67
+ scratch ??= new Project({ useInMemoryFileSystem: true });
68
+ // `.tsx` so JSX parses; a `.ts` parse reads `<div>` as a type assertion and
69
+ // the JsxText case silently stops being covered.
70
+ const sourceFile = scratch.createSourceFile(`/scan/${path.basename(filePath)}.tsx`, sourceText, {
71
+ overwrite: true,
72
+ });
73
+ const out = sourceText.split('');
74
+ for (const kind of LITERAL_KINDS) {
75
+ for (const node of sourceFile.getDescendantsOfKind(kind)) {
76
+ for (let i = node.getStart(); i < node.getEnd(); i++) {
77
+ if (out[i] !== undefined && out[i] !== '\n')
78
+ out[i] = ' ';
79
+ }
80
+ }
81
+ }
82
+ const withoutLiteralText = out.join('');
83
+ // Block comments too, and this is not tidying — it is the difference between
84
+ // documenting the feature and invoking it.
85
+ //
86
+ // The grammar is `//`-only and always has been (a `/* … */` directive produced
87
+ // no exclusion before this fix and still produces none). But a JSDoc block
88
+ // that *mentions* the directive in prose puts the characters on a line, and
89
+ // the line scan below cannot tell prose from a directive.
90
+ //
91
+ // Found the hard way: this very file's docstring explains the bug, contains
92
+ // the directive text, and the moment comments started being read correctly it
93
+ // declared a live exclusion against `preset/boundaries/no-cross-boundary` —
94
+ // caught by this repo's own preset fan-out test. Any user writing a code
95
+ // comment about the feature would hit the same thing.
96
+ //
97
+ // Safe to do with a regex here, and only here: every string, template and
98
+ // regex literal has already been blanked, so a surviving `/*` is a real
99
+ // block-comment start.
100
+ return withoutLiteralText.replace(/\/\*[\s\S]*?\*\//g, (m) => m.replace(/[^\n]/g, ' '));
101
+ }
102
+ //# sourceMappingURL=ts-comment-mask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts-comment-mask.js","sourceRoot":"","sources":["../../src/core/ts-comment-mask.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE9C;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,aAAa,GAAG;IACpB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E,sDAAsD;IACtD,EAAE;IACF,0EAA0E;IAC1E,wEAAwE;IACxE,uBAAuB;IACvB,OAAO,kBAAkB,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAA;AACzF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { DECLARE_INSTEAD, isFaultPosition, UNSUPPRESSABLE } from '@nielspeter/eess';
1
+ import { DECLARE_INSTEAD, isFaultPosition, UNSUPPRESSABLE } from '@nielspeter/eess/internal';
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';
@@ -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,kBAAkB,CAAA;AACnF,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;AACvC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE7E;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,IAAY,EAAE,CAAS;IAC1C,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IACxB,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAA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AAO,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"}
@@ -0,0 +1,95 @@
1
+ import type { Condition, Predicate, RuleDescription } from '@nielspeter/eess';
2
+ import type { CollectResult } from '../core/terminal-builder.js';
3
+ import { TerminalBuilder } from '../core/terminal-builder.js';
4
+ /**
5
+ * What `SchemaRuleBuilder` and `ResolverRuleBuilder` both are.
6
+ *
7
+ * The two were one class written twice: identical `_predicates`/`_conditions`
8
+ * fields, identical `that`/`and`/`should`/`andShould`, `copy`,
9
+ * `assertsSomething`, `describeRule`, `selected`, `examinedUnits` and
10
+ * `collectViolations` — `no-copy-paste` reported the last pair as literally the
11
+ * same text. Extracting the shared body into a free function only shortened the
12
+ * copy; the honest reading of the finding is that the class is the duplicate.
13
+ *
14
+ * Neither extends `RuleBuilder`, because a GraphQL element is not a ts-morph
15
+ * node and the predicate/condition surfaces are the schema's own. What they do
16
+ * share is every piece of the ADR-010 evidence path, which is precisely where
17
+ * two copies have already cost this repo something: they once derived their
18
+ * `examined` count separately and disagreed, so a chain whose `.that()`
19
+ * selected nothing reported 14 units examined, handed its conditions 0, and
20
+ * passed green with `diagnose()` silent (plan 0096). One class is what makes
21
+ * "the preview derives from the same computation the gate uses" structural.
22
+ *
23
+ * Subclasses supply the four things that genuinely differ: where elements come
24
+ * from, the noun this family counts, the subject its description opens with,
25
+ * and the conditions its assertion-less remedy should name.
26
+ */
27
+ export declare abstract class GraphqlRuleBuilder<T> extends TerminalBuilder {
28
+ protected _predicates: Predicate<T>[];
29
+ protected _conditions: Condition<T>[];
30
+ /**
31
+ * Per-instance rather than per-module, which is what a generic class allows:
32
+ * a single module-level `selectionMemo<T>()` cannot be typed for two element
33
+ * types. Keying is still by builder identity, and `copy()` hands the clone
34
+ * the same map, so the caching behaviour is the one the two modules had.
35
+ */
36
+ private readonly selectionOf;
37
+ /** Every candidate, before any predicate runs. */
38
+ protected abstract getElements(): T[];
39
+ /** The conditions this builder's assertion-less remedy should name, e.g. `'haveFields(...)'`. */
40
+ protected abstract conditionExamples(): string;
41
+ /** The noun the rule description opens with — `schema that …`, `resolvers that …`. */
42
+ protected abstract descriptionSubject(): string;
43
+ /** Begin the predicate phase. Purely a readability marker. */
44
+ that(): this;
45
+ /** Add another predicate (AND). */
46
+ and(): this;
47
+ /** Begin the condition phase. */
48
+ should(): this;
49
+ /** Add another condition (AND). */
50
+ andShould(): this;
51
+ /**
52
+ * An independent copy, carrying both lists.
53
+ *
54
+ * These builders do not extend `RuleBuilder`, so they do not inherit that
55
+ * class's override — and neither `that()` nor `should()` forked here at all,
56
+ * which made the bug 0016 leak worse on this hierarchy than on the main one:
57
+ * a held `schema()` selection accumulated every predicate and condition of
58
+ * every rule derived from it. `docs/graphql.md` teaches exactly that shape.
59
+ */
60
+ protected copy(): this;
61
+ /**
62
+ * Whether this rule states an assertion at all — the assertion gate's question.
63
+ *
64
+ * True once a condition has been added.
65
+ *
66
+ * Overrides the `TerminalBuilder` default (`true`), whose JSDoc carries the
67
+ * contract and the reason this is public rather than protected.
68
+ */
69
+ assertsSomething(): boolean;
70
+ /**
71
+ * The remedy for this builder's assertion-less state, as one string.
72
+ *
73
+ * One channel, so `diagnose()`'s advice and the finding's own message cannot
74
+ * disagree. Overrides `TerminalBuilder`'s generic text with wording specific to
75
+ * what this builder is missing.
76
+ */
77
+ assertionAdvice(): string;
78
+ /** Named by id or description, not 'unnamed' (plan 0070 §4). */
79
+ describeRule(): RuleDescription;
80
+ /**
81
+ * The set the conditions receive — plan 0096, and the ONE method every reader
82
+ * calls: `collectViolations()`, `examinedUnits()` and `diagnose()`'s preview
83
+ * all come through here, so none of them can answer "what did this rule look
84
+ * at" differently from the others.
85
+ */
86
+ protected selected(): T[];
87
+ /**
88
+ * How many units this rule actually examined — ADR-010's evidence that a pass
89
+ * was constructed rather than defaulted. The selection, not what precedes it.
90
+ */
91
+ examinedUnits(): number;
92
+ protected collectViolations(): CollectResult;
93
+ protected buildRuleDescription(): string;
94
+ }
95
+ //# sourceMappingURL=graphql-rule-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-rule-builder.d.ts","sourceRoot":"","sources":["../../src/graphql/graphql-rule-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAQ7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,8BAAsB,kBAAkB,CAAC,CAAC,CAAE,SAAQ,eAAe;IACjE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAK;IAC1C,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAK;IAE1C;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAqB;IAEjD,kDAAkD;IAClD,SAAS,CAAC,QAAQ,CAAC,WAAW,IAAI,CAAC,EAAE;IAErC,iGAAiG;IACjG,SAAS,CAAC,QAAQ,CAAC,iBAAiB,IAAI,MAAM;IAE9C,sFAAsF;IACtF,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,MAAM;IAI/C,8DAA8D;IAC9D,IAAI,IAAI,IAAI;IAIZ,mCAAmC;IACnC,GAAG,IAAI,IAAI;IAIX,iCAAiC;IACjC,MAAM,IAAI,IAAI;IAId,mCAAmC;IACnC,SAAS,IAAI,IAAI;IAMjB;;;;;;;;OAQG;cACgB,IAAI,IAAI,IAAI;IAO/B;;;;;;;OAOG;IACM,gBAAgB,IAAI,OAAO;IAIpC;;;;;;OAMG;IACM,eAAe,IAAI,MAAM;IAOlC,gEAAgE;IACvD,YAAY,IAAI,eAAe;IAOxC;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,IAAI,CAAC,EAAE;IAIzB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB,SAAS,CAAC,iBAAiB,IAAI,aAAa;IAc5C,SAAS,CAAC,oBAAoB,IAAI,MAAM;CAGzC"}
@@ -0,0 +1,127 @@
1
+ import { conditionContextFrom, evaluateConditions, matchingElements, ruleDescriptionOf, selectionMemo, } from '@nielspeter/eess/internal';
2
+ import { TerminalBuilder } from '../core/terminal-builder.js';
3
+ /**
4
+ * What `SchemaRuleBuilder` and `ResolverRuleBuilder` both are.
5
+ *
6
+ * The two were one class written twice: identical `_predicates`/`_conditions`
7
+ * fields, identical `that`/`and`/`should`/`andShould`, `copy`,
8
+ * `assertsSomething`, `describeRule`, `selected`, `examinedUnits` and
9
+ * `collectViolations` — `no-copy-paste` reported the last pair as literally the
10
+ * same text. Extracting the shared body into a free function only shortened the
11
+ * copy; the honest reading of the finding is that the class is the duplicate.
12
+ *
13
+ * Neither extends `RuleBuilder`, because a GraphQL element is not a ts-morph
14
+ * node and the predicate/condition surfaces are the schema's own. What they do
15
+ * share is every piece of the ADR-010 evidence path, which is precisely where
16
+ * two copies have already cost this repo something: they once derived their
17
+ * `examined` count separately and disagreed, so a chain whose `.that()`
18
+ * selected nothing reported 14 units examined, handed its conditions 0, and
19
+ * passed green with `diagnose()` silent (plan 0096). One class is what makes
20
+ * "the preview derives from the same computation the gate uses" structural.
21
+ *
22
+ * Subclasses supply the four things that genuinely differ: where elements come
23
+ * from, the noun this family counts, the subject its description opens with,
24
+ * and the conditions its assertion-less remedy should name.
25
+ */
26
+ export class GraphqlRuleBuilder extends TerminalBuilder {
27
+ _predicates = [];
28
+ _conditions = [];
29
+ /**
30
+ * Per-instance rather than per-module, which is what a generic class allows:
31
+ * a single module-level `selectionMemo<T>()` cannot be typed for two element
32
+ * types. Keying is still by builder identity, and `copy()` hands the clone
33
+ * the same map, so the caching behaviour is the one the two modules had.
34
+ */
35
+ selectionOf = selectionMemo();
36
+ // --- Chain methods (readability markers; the phase is implicit) ---
37
+ /** Begin the predicate phase. Purely a readability marker. */
38
+ that() {
39
+ return this;
40
+ }
41
+ /** Add another predicate (AND). */
42
+ and() {
43
+ return this;
44
+ }
45
+ /** Begin the condition phase. */
46
+ should() {
47
+ return this;
48
+ }
49
+ /** Add another condition (AND). */
50
+ andShould() {
51
+ return this;
52
+ }
53
+ // --- Evaluation ---
54
+ /**
55
+ * An independent copy, carrying both lists.
56
+ *
57
+ * These builders do not extend `RuleBuilder`, so they do not inherit that
58
+ * class's override — and neither `that()` nor `should()` forked here at all,
59
+ * which made the bug 0016 leak worse on this hierarchy than on the main one:
60
+ * a held `schema()` selection accumulated every predicate and condition of
61
+ * every rule derived from it. `docs/graphql.md` teaches exactly that shape.
62
+ */
63
+ copy() {
64
+ const clone = super.copy();
65
+ clone._predicates = [...this._predicates];
66
+ clone._conditions = [...this._conditions];
67
+ return clone;
68
+ }
69
+ /**
70
+ * Whether this rule states an assertion at all — the assertion gate's question.
71
+ *
72
+ * True once a condition has been added.
73
+ *
74
+ * Overrides the `TerminalBuilder` default (`true`), whose JSDoc carries the
75
+ * contract and the reason this is public rather than protected.
76
+ */
77
+ assertsSomething() {
78
+ return this._conditions.length > 0;
79
+ }
80
+ /**
81
+ * The remedy for this builder's assertion-less state, as one string.
82
+ *
83
+ * One channel, so `diagnose()`'s advice and the finding's own message cannot
84
+ * disagree. Overrides `TerminalBuilder`'s generic text with wording specific to
85
+ * what this builder is missing.
86
+ */
87
+ assertionAdvice() {
88
+ return ('this rule has no condition, so it asserts nothing and can never fail. Add a ' +
89
+ `condition after .should(), e.g. ${this.conditionExamples()}.`);
90
+ }
91
+ /** Named by id or description, not 'unnamed' (plan 0070 §4). */
92
+ describeRule() {
93
+ return {
94
+ ...super.describeRule(),
95
+ rule: this._metadata?.id ?? this.buildRuleDescription(),
96
+ };
97
+ }
98
+ /**
99
+ * The set the conditions receive — plan 0096, and the ONE method every reader
100
+ * calls: `collectViolations()`, `examinedUnits()` and `diagnose()`'s preview
101
+ * all come through here, so none of them can answer "what did this rule look
102
+ * at" differently from the others.
103
+ */
104
+ selected() {
105
+ return this.selectionOf(this, () => matchingElements(this.getElements(), this._predicates));
106
+ }
107
+ /**
108
+ * How many units this rule actually examined — ADR-010's evidence that a pass
109
+ * was constructed rather than defaulted. The selection, not what precedes it.
110
+ */
111
+ examinedUnits() {
112
+ return this.selected().length;
113
+ }
114
+ collectViolations() {
115
+ // The kernel's. The zero-evidence early exit and the `examined` count travel
116
+ // with it, so they cannot be derived apart.
117
+ return evaluateConditions(this.selected(), this._conditions, conditionContextFrom({
118
+ metadata: this._metadata,
119
+ reason: this._reason,
120
+ rule: this.buildRuleDescription(),
121
+ }));
122
+ }
123
+ buildRuleDescription() {
124
+ return ruleDescriptionOf(this._predicates, this._conditions, this.descriptionSubject());
125
+ }
126
+ }
127
+ //# sourceMappingURL=graphql-rule-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-rule-builder.js","sourceRoot":"","sources":["../../src/graphql/graphql-rule-builder.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GACd,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,OAAgB,kBAAsB,SAAQ,eAAe;IACvD,WAAW,GAAmB,EAAE,CAAA;IAChC,WAAW,GAAmB,EAAE,CAAA;IAE1C;;;;;OAKG;IACc,WAAW,GAAG,aAAa,EAAK,CAAA;IAWjD,qEAAqE;IAErE,8DAA8D;IAC9D,IAAI;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,mCAAmC;IACnC,GAAG;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,iCAAiC;IACjC,MAAM;Q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;YACxB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,IAAI,EAAE,IAAI,CAAC,oBAAoB,EAAE;SAClC,CAAC,CACH,CAAA;IACH,CAAC;IAES,oBAAoB;QAC5B,OAAO,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAA;IACzF,CAAC;CACF"}
@@ -65,6 +65,7 @@ export declare function schemaFromSDL(sdl: string, sourcePath?: string): SchemaR
65
65
  * ```
66
66
  */
67
67
  export declare function resolvers(p: ArchProject, glob: string): ResolverRuleBuilder;
68
+ export { GraphqlRuleBuilder } from './graphql-rule-builder.js';
68
69
  export { SchemaRuleBuilder } from './schema-rule-builder.js';
69
70
  export { ResolverRuleBuilder } from './resolver-rule-builder.js';
70
71
  export { resolveFieldReturning } from './resolver-rule-builder.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAIhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAK3F;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAGjF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAM3E;AAID,OAAO,EAAE,iBAAiB,EAAE,MAAM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C9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAGlE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrF,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAG3D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAGrF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAC9F,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,oBAAoB,CAAA"}
@@ -80,6 +80,7 @@ export function resolvers(p, glob) {
80
80
  return new ResolverRuleBuilder(sourceFiles, glob, p);
81
81
  }
82
82
  // --- Re-exports ---
83
+ export { GraphqlRuleBuilder } from './graphql-rule-builder.js';
83
84
  export { SchemaRuleBuilder } from './schema-rule-builder.js';
84
85
  export { ResolverRuleBuilder } from './resolver-rule-builder.js';
85
86
  export { resolveFieldReturning } from './resolver-rule-builder.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAEhE,uBAAuB;AAEvB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,MAAM,CAAC,aAAmC,EAAE,IAAY;IACtE,MAAM,O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