@codyswann/lisa 5.14.2 → 6.0.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 (240) hide show
  1. package/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +5 -2
  2. package/all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs +14 -18
  3. package/all/copy-overwrite/scripts/lib/invoked-as-script.d.mts +5 -0
  4. package/all/copy-overwrite/scripts/lisa-commit-msg-gates.mjs +1 -1
  5. package/all/copy-overwrite/scripts/lisa-destructive-guard.mjs +4 -4
  6. package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +2 -2
  7. package/all/copy-overwrite/scripts/lisa-gates.mjs +61 -30
  8. package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +5 -3
  9. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +2 -2
  10. package/all/copy-overwrite/scripts/lisa-work-item.mjs +3 -2
  11. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +6 -6
  12. package/all/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
  13. package/cdk/copy-overwrite/eslint.cdk.ts +7 -161
  14. package/cdk/copy-overwrite/tsconfig.eslint.json +5 -1
  15. package/dist/cli/lisa-test-run.js +0 -1
  16. package/dist/cli/lisa-test-run.js.map +1 -1
  17. package/dist/configs/jest/base.d.ts +2 -2
  18. package/dist/configs/jest/index.d.ts +5 -6
  19. package/dist/configs/jest/index.d.ts.map +1 -1
  20. package/dist/configs/jest/index.js +5 -6
  21. package/dist/configs/jest/index.js.map +1 -1
  22. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  23. package/dist/core/lisa-owned-hash-ledger.js +30 -0
  24. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  25. package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts +5 -0
  26. package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts.map +1 -1
  27. package/dist/core/nightly-e2e-guard-behavior-certificate.js +8 -1
  28. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  29. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  30. package/dist/core/upstream-evidence-manifest.js +61 -55
  31. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  32. package/expo/copy-overwrite/eslint.expo.ts +17 -18
  33. package/expo/copy-overwrite/tsconfig.eslint.json +5 -1
  34. package/harper-fabric/copy-overwrite/tsconfig.eslint.json +5 -1
  35. package/nestjs/copy-overwrite/eslint.nestjs.ts +7 -161
  36. package/nestjs/copy-overwrite/tsconfig.eslint.json +5 -1
  37. package/nestjs/copy-overwrite/tsconfig.spec.json +2 -3
  38. package/package.json +6 -8
  39. package/phaser/copy-overwrite/tsconfig.eslint.json +5 -1
  40. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa/.codex-plugin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  43. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  44. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  45. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  46. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  47. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  48. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  49. package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  50. package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  51. package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  52. package/plugins/lisa/hooks/threshold-ratchet-families.mjs +0 -8
  53. package/plugins/lisa/scripts/design-bindings-probe.mjs +37 -8
  54. package/plugins/lisa/scripts/design-intake-gate.mjs +23 -5
  55. package/plugins/lisa/scripts/design-source-gate.mjs +5 -5
  56. package/plugins/lisa/scripts/lifecycle-label-trust.mjs +1 -1
  57. package/plugins/lisa/scripts/rollup-blocker-classification.mjs +41 -4
  58. package/plugins/lisa/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  59. package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  60. package/plugins/lisa/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  61. package/plugins/lisa/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  62. package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  63. package/plugins/lisa/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  64. package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  65. package/plugins/lisa/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  66. package/plugins/lisa/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  67. package/plugins/lisa/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  68. package/plugins/lisa-agy/plugin.json +1 -1
  69. package/plugins/lisa-agy/scripts/design-bindings-probe.mjs +37 -8
  70. package/plugins/lisa-agy/scripts/design-intake-gate.mjs +23 -5
  71. package/plugins/lisa-agy/scripts/design-source-gate.mjs +5 -5
  72. package/plugins/lisa-agy/scripts/lifecycle-label-trust.mjs +1 -1
  73. package/plugins/lisa-agy/scripts/rollup-blocker-classification.mjs +41 -4
  74. package/plugins/lisa-agy/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  75. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  76. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  77. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  78. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  79. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  80. package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  81. package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  82. package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  83. package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  84. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  86. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  87. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  91. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +0 -8
  93. package/plugins/lisa-copilot/scripts/design-bindings-probe.mjs +37 -8
  94. package/plugins/lisa-copilot/scripts/design-intake-gate.mjs +23 -5
  95. package/plugins/lisa-copilot/scripts/design-source-gate.mjs +5 -5
  96. package/plugins/lisa-copilot/scripts/lifecycle-label-trust.mjs +1 -1
  97. package/plugins/lisa-copilot/scripts/rollup-blocker-classification.mjs +41 -4
  98. package/plugins/lisa-copilot/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  99. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  100. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  101. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  102. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  103. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  104. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  105. package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  106. package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  107. package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  108. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +0 -8
  110. package/plugins/lisa-cursor/scripts/design-bindings-probe.mjs +37 -8
  111. package/plugins/lisa-cursor/scripts/design-intake-gate.mjs +23 -5
  112. package/plugins/lisa-cursor/scripts/design-source-gate.mjs +5 -5
  113. package/plugins/lisa-cursor/scripts/lifecycle-label-trust.mjs +1 -1
  114. package/plugins/lisa-cursor/scripts/rollup-blocker-classification.mjs +41 -4
  115. package/plugins/lisa-cursor/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  116. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  117. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  118. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  119. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  120. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  121. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  122. package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  123. package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  124. package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  125. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  127. package/plugins/lisa-devin/hooks/threshold-ratchet-families.mjs +0 -8
  128. package/plugins/lisa-devin/scripts/design-bindings-probe.mjs +37 -8
  129. package/plugins/lisa-devin/scripts/design-intake-gate.mjs +23 -5
  130. package/plugins/lisa-devin/scripts/design-source-gate.mjs +5 -5
  131. package/plugins/lisa-devin/scripts/lifecycle-label-trust.mjs +1 -1
  132. package/plugins/lisa-devin/scripts/rollup-blocker-classification.mjs +41 -4
  133. package/plugins/lisa-devin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  134. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  135. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  136. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  137. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  138. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  139. package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  140. package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  141. package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  142. package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  143. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  144. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  145. package/plugins/lisa-expo-agy/plugin.json +1 -1
  146. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  148. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  149. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  150. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  151. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  152. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  153. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  155. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  157. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  159. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  160. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  164. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  165. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  166. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  167. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  168. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  169. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  171. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  172. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  173. package/plugins/lisa-rails-agy/plugin.json +1 -1
  174. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  175. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  176. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  177. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  178. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  179. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  180. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  181. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  182. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  183. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  184. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  185. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  186. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  187. package/plugins/lisa-wiki/scripts/wiki-status.mjs +18 -0
  188. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  189. package/plugins/lisa-wiki-agy/scripts/wiki-status.mjs +18 -0
  190. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  191. package/plugins/lisa-wiki-copilot/scripts/wiki-status.mjs +18 -0
  192. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  193. package/plugins/lisa-wiki-cursor/scripts/wiki-status.mjs +18 -0
  194. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  195. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  196. package/plugins/lisa-wiki-devin/scripts/wiki-status.mjs +18 -0
  197. package/plugins/src/base/hooks/threshold-ratchet-families.mjs +0 -8
  198. package/plugins/src/base/scripts/design-bindings-probe.mjs +37 -8
  199. package/plugins/src/base/scripts/design-intake-gate.mjs +23 -5
  200. package/plugins/src/base/scripts/design-source-gate.mjs +5 -5
  201. package/plugins/src/base/scripts/lifecycle-label-trust.mjs +1 -1
  202. package/plugins/src/base/scripts/rollup-blocker-classification.mjs +41 -4
  203. package/plugins/src/base/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  204. package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  205. package/plugins/src/base/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  206. package/plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  207. package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  208. package/plugins/src/base/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  209. package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  210. package/plugins/src/base/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  211. package/plugins/src/base/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  212. package/plugins/src/base/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  213. package/plugins/src/wiki/scripts/wiki-status.mjs +18 -0
  214. package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
  215. package/scripts/check-learnings-budget.ts +4 -4
  216. package/scripts/check-typecheck-tests.mjs +119 -129
  217. package/scripts/check-whole-output-guards.mjs +12 -2
  218. package/scripts/generate-nightly-e2e-guard-certificate.mjs +6 -0
  219. package/scripts/lib/dependency-tree.mjs +7 -11
  220. package/scripts/lib/invoked-as-script.d.mts +5 -0
  221. package/scripts/lisa-ruleset-payload.mjs +1 -1
  222. package/scripts/measure-tmpdir-growth.mjs +21 -2
  223. package/scripts/reconcile-release-tags.mjs +3 -3
  224. package/scripts/two-channel-couplings.json +1 -1
  225. package/scripts/update-node-version.ts +1 -1
  226. package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +1 -1
  227. package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
  228. package/typescript/copy-overwrite/tsconfig.eslint.json +5 -1
  229. package/dist/configs/jest/cdk.d.ts +0 -33
  230. package/dist/configs/jest/cdk.d.ts.map +0 -1
  231. package/dist/configs/jest/cdk.js +0 -29
  232. package/dist/configs/jest/cdk.js.map +0 -1
  233. package/dist/configs/jest/nestjs.d.ts +0 -36
  234. package/dist/configs/jest/nestjs.d.ts.map +0 -1
  235. package/dist/configs/jest/nestjs.js +0 -49
  236. package/dist/configs/jest/nestjs.js.map +0 -1
  237. package/dist/configs/jest/typescript.d.ts +0 -29
  238. package/dist/configs/jest/typescript.d.ts.map +0 -1
  239. package/dist/configs/jest/typescript.js +0 -37
  240. package/dist/configs/jest/typescript.js.map +0 -1
@@ -11,17 +11,13 @@
11
11
  * module — so the gate's `if (tsc.error)` guard does not fire. node's
12
12
  * "Cannot find module" goes to stderr and does not match the gate's
13
13
  * `file(line,col): error TSxxxx:` pattern, so the parsed-diagnostics map comes
14
- * back EMPTY. Every quarantined file then satisfies "has no errors", and the
15
- * gate reports:
16
- *
17
- * ```
18
- * ❌ 370 quarantined file(s) now type-check and must leave the list:
19
- * Remove them from typecheck-quarantine.json.
20
- * ```
21
- *
22
- * Following that deletes 370 live quarantine entries on the word of a checker
23
- * that compiled nothing. The comparison was not wrong — it was correct about an
24
- * input it was never entitled to accept.
14
+ * back EMPTY. The gate then held a file-level quarantine of known-failing files
15
+ * (since deleted, CodySwannGT/lisa#4923), and every one of them satisfied "has
16
+ * no errors": the gate reported all 370 as fixed and instructed their removal
17
+ * — a destructive edit ordered on the word of a checker that compiled nothing.
18
+ * The comparison was not wrong; it was correct about an input it was never
19
+ * entitled to accept. Without the quarantine the same emptiness would read as
20
+ * a clean run, which is the same defect pointed the other way.
25
21
  *
26
22
  * ## Why "cannot measure" is a THIRD outcome, not a failure message
27
23
  *
@@ -0,0 +1,5 @@
1
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
2
+ // Do not edit directly — durable changes belong upstream in Lisa.
3
+
4
+ /** Whether the calling module was run as the CLI entry point, comparing real paths. */
5
+ export function invokedAsScript(moduleUrl: string, argv1?: string): boolean;
@@ -307,7 +307,7 @@ function pullRequestRule(policy) {
307
307
  * @param {object} [options.gates] The gates block.
308
308
  * @param {object} [options.policy] The policy block.
309
309
  * @param {string} [options.moment] Moment to derive awaited checks for.
310
- * @returns {object} A create/update payload for the `base` ruleset.
310
+ * @returns {{name: string, target: string, enforcement: unknown, conditions: {ref_name: {exclude: unknown[], include: unknown[]}}, bypass_actors: unknown[], rules: Array<{type: string, parameters?: Record<string, unknown>}>}} A create/update payload for the `base` ruleset.
311
311
  */
312
312
  export function buildRulesetPayload({
313
313
  gates = {},
@@ -73,7 +73,11 @@ export function collectBoundedEntryNames(iterable, limit = MAX_TMPDIR_ENTRIES) {
73
73
  return names.sort(codePointCompare);
74
74
  }
75
75
 
76
- /** Build sorted prefix counts while enforcing a unique-prefix cap. */
76
+ /**
77
+ * Build sorted prefix counts while enforcing a unique-prefix cap.
78
+ * @param {readonly string[]} names Entry names.
79
+ * @returns {Array<{prefix: string, count: number}>} Counts, most common first.
80
+ */
77
81
  function prefixCounts(names) {
78
82
  const counts = new Map();
79
83
  for (const name of names) {
@@ -533,11 +537,26 @@ function assertComparable(before, after) {
533
537
  }
534
538
  }
535
539
 
540
+ /**
541
+ * What changed in the temp directory between two snapshots.
542
+ * @typedef {object} GrowthReport
543
+ * @property {number} total Entries in the current snapshot.
544
+ * @property {number|null} delta Change in entry count, or null with no previous snapshot.
545
+ * @property {number} created Entries that appeared.
546
+ * @property {number} removed Entries that disappeared.
547
+ * @property {number} unreclaimed Net entries created and not removed.
548
+ * @property {number|null} elapsedMs Time between snapshots, or null.
549
+ * @property {number|null} rateEntriesPerDay Net growth rate, or null.
550
+ * @property {Array<{prefix: string, count: number}>} topPrefixes The ten most common canonical prefixes.
551
+ * @property {{total: number, owned: number, live: number, unowned: number, created: number, removed: number, unreclaimed: number, newlyUnowned: number}} namespace Lisa scratch-namespace counts.
552
+ * @property {string[]} violations Plain-language growth violations.
553
+ */
554
+
536
555
  /**
537
556
  * Compare two complete snapshots without hiding equal creation/removal.
538
557
  * @param {object|undefined} before Previous snapshot
539
558
  * @param {object} after Current snapshot
540
- * @returns {object} Deterministic growth report
559
+ * @returns {GrowthReport} Deterministic growth report
541
560
  */
542
561
  export function buildGrowthReport(before, after) {
543
562
  if (before === undefined) {
@@ -160,8 +160,8 @@ export function classifyProbe({ verdict = null } = {}) {
160
160
  * registry outage exactly.
161
161
  * @param {object} options Inputs.
162
162
  * @param {readonly string[]} options.tags Every ref name in the repository.
163
- * @param {(version: string) => {status?: number|null, error?: string|null}} options.probe Registry probe.
164
- * @returns {{rows: object[], ignored: string[]}} Rows per release tag, and refs that were not release tags.
163
+ * @param {(version: string) => {verdict?: string|null}} options.probe Registry probe; its `verdict` is classified by `classifyProbe`.
164
+ * @returns {{rows: Array<{tag: string, version: string, verdict: string}>, ignored: string[]}} Rows per release tag, and refs that were not release tags.
165
165
  */
166
166
  export function reconcile({ tags, probe }) {
167
167
  const rows = [];
@@ -234,7 +234,7 @@ export async function probeVersion(
234
234
  * a proven failed release. Someone reading the report in a hurry must not be
235
235
  * able to take the number for an incident count, so the distinction is printed
236
236
  * rather than left in a doc comment nobody opens.
237
- * @param {{rows: object[], ignored: string[]}} result As returned by `reconcile`.
237
+ * @param {{rows: ReadonlyArray<{tag: string, version: string, verdict: string}>, ignored: readonly string[]}} result As returned by `reconcile`.
238
238
  * @returns {string} The report.
239
239
  */
240
240
  export function formatReport({ rows, ignored }) {
@@ -145,7 +145,7 @@
145
145
  "workflows": 26,
146
146
  "steps": 873,
147
147
  "couplings": 45,
148
- "inventory": 244
148
+ "inventory": 245
149
149
  },
150
150
  "counts": {
151
151
  "package-backed": 11,
@@ -136,7 +136,7 @@ function readNvmrcVersion(): string {
136
136
  * Extracts the major version from a semver string
137
137
  */
138
138
  function getMajorVersion(version: string): string {
139
- return version.split(".")[0];
139
+ return version.split(".").at(0) ?? version;
140
140
  }
141
141
 
142
142
  /**
@@ -1666,7 +1666,7 @@ export function parseWaiverTrailer(prBody) {
1666
1666
  * PR body — a security limit a caller can relax is not a limit.
1667
1667
  *
1668
1668
  * @param {object} request - `{ labelEvent, prAuthor, prNumber, label, prBody, actorPermission, maxHours, extraReasonPattern, now }`
1669
- * @returns {{valid: boolean, reason: string, actor: string|null, appliedAt: string|null, expiresAt: string|null, ticket: string|null, detail: string|null}} The decision
1669
+ * @returns {{valid: boolean, reason: string, actor: string|null, appliedAt: string|null, expiresAt: string|null, ticket: string|null, detail: string|null, label: string|null, prAuthor: string|null, prNumber: number|null, actorPermission: string|null}} The decision
1670
1670
  */
1671
1671
  export function evaluateBypass(request) {
1672
1672
  const {
@@ -92,14 +92,6 @@ export const FAMILIES = [
92
92
  match: /(^|\/)\.lisa\.config\.json$/,
93
93
  kind: "allow-list",
94
94
  },
95
- {
96
- // The #3811 quarantine. `allow-list` is exactly right here: the list may
97
- // shrink freely, and ADDING a file — re-authorising type debt that the
98
- // gate would otherwise refuse — is the change that needs a human to see it.
99
- id: "typecheck-quarantine",
100
- match: /(^|\/)typecheck-quarantine\.json$/,
101
- kind: "allow-list",
102
- },
103
95
  {
104
96
  id: "lighthouse",
105
97
  match: /(^|\/)(?:lighthouserc-config|lighthouserc|\.lighthouserc)\.json$/,
@@ -1,12 +1,16 @@
1
1
  {
2
+ "//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
2
3
  "extends": "./tsconfig.json",
3
4
  "compilerOptions": {
4
5
  "rootDir": ".",
5
6
  "noEmit": true,
6
7
  "allowImportingTsExtensions": true,
7
8
  "module": "preserve",
8
- "moduleResolution": "bundler"
9
+ "moduleResolution": "bundler",
10
+ "allowJs": true,
11
+ "checkJs": false
9
12
  },
13
+ "files": ["node_modules/vitest/globals.d.ts"],
10
14
  "include": ["**/*.ts"],
11
15
  "exclude": ["node_modules", "dist", "build", "worktrees"]
12
16
  }
@@ -1,33 +0,0 @@
1
- /**
2
- * Jest Configuration - CDK Stack
3
- *
4
- * Provides AWS CDK-specific Jest configuration targeting
5
- * the test/ directory with test/spec and integration-test/integration-spec patterns.
6
- *
7
- * Inheritance chain:
8
- * cdk.ts (this file)
9
- * └── base.ts
10
- * @see https://jestjs.io/docs/configuration
11
- * @module configs/jest/cdk
12
- */
13
- import type { Config } from "jest";
14
- import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds } from "./base.js";
15
- export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
16
- /**
17
- * Options for configuring the CDK Jest config factory.
18
- */
19
- interface CdkJestOptions {
20
- /** Coverage thresholds (merged defaults + project overrides) */
21
- readonly thresholds?: Config["coverageThreshold"];
22
- }
23
- /**
24
- * Creates a Jest configuration for AWS CDK projects.
25
- * @param options - Configuration options for threshold overrides
26
- * @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
27
- * @returns Jest config object with ts-jest transform, node environment, and CDK-specific paths
28
- * @remarks CDK projects typically use CommonJS modules and keep tests in a
29
- * separate test/ directory. Coverage is collected only from lib/ and util/
30
- * directories since bin/ contains entry-point code with minimal logic.
31
- */
32
- export declare const getCdkJestConfig: ({ thresholds, }?: CdkJestOptions) => Config;
33
- //# sourceMappingURL=cdk.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cdk.d.ts","sourceRoot":"","sources":["../../../src/configs/jest/cdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,UAAU,cAAc;IACtB,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAI,kBAE9B,cAAmB,KAAG,MAevB,CAAC"}
@@ -1,29 +0,0 @@
1
- import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, } from "./base.js";
2
- // Re-export base utilities for entry-point configs
3
- export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
4
- /**
5
- * Creates a Jest configuration for AWS CDK projects.
6
- * @param options - Configuration options for threshold overrides
7
- * @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
8
- * @returns Jest config object with ts-jest transform, node environment, and CDK-specific paths
9
- * @remarks CDK projects typically use CommonJS modules and keep tests in a
10
- * separate test/ directory. Coverage is collected only from lib/ and util/
11
- * directories since bin/ contains entry-point code with minimal logic.
12
- */
13
- export const getCdkJestConfig = ({ thresholds = defaultThresholds, } = {}) => ({
14
- testEnvironment: "node",
15
- roots: ["<rootDir>/test"],
16
- testRegex: "(.*\\.(test|spec|integration-test|integration-spec)\\.ts)$",
17
- transform: {
18
- "^.+\\.ts$": "ts-jest",
19
- },
20
- moduleFileExtensions: ["js", "json", "ts"],
21
- collectCoverageFrom: [
22
- "lib/**/*.ts",
23
- "util/**/*.ts",
24
- ...defaultCoverageExclusions,
25
- ],
26
- ...(thresholds !== undefined ? { coverageThreshold: thresholds } : {}),
27
- testTimeout: 10000,
28
- });
29
- //# sourceMappingURL=cdk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cdk.js","sourceRoot":"","sources":["../../../src/configs/jest/cdk.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,mDAAmD;AACnD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAUF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,UAAU,GAAG,iBAAiB,MACZ,EAAE,EAAU,EAAE,CAAC,CAAC;IAClC,eAAe,EAAE,MAAM;IACvB,KAAK,EAAE,CAAC,gBAAgB,CAAC;IACzB,SAAS,EAAE,4DAA4D;IACvE,SAAS,EAAE;QACT,WAAW,EAAE,SAAS;KACvB;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;IAC1C,mBAAmB,EAAE;QACnB,aAAa;QACb,cAAc;QACd,GAAG,yBAAyB;KAC7B;IACD,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Jest Configuration - NestJS Stack
3
- *
4
- * Provides NestJS-specific Jest configuration with extensive coverage
5
- * exclusions for generated files, DTOs, entities, and modules.
6
- *
7
- * Inheritance chain:
8
- * nestjs.ts (this file)
9
- * └── base.ts
10
- * @see https://jestjs.io/docs/configuration
11
- * @module configs/jest/nestjs
12
- */
13
- import type { Config } from "jest";
14
- import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds } from "./base.js";
15
- export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
16
- /**
17
- * Options for configuring the NestJS Jest config factory.
18
- */
19
- interface NestjsJestOptions {
20
- /** Coverage thresholds (merged defaults + project overrides) */
21
- readonly thresholds?: Config["coverageThreshold"];
22
- }
23
- /**
24
- * Creates a Jest configuration for NestJS projects.
25
- * @param options - Configuration options for threshold overrides
26
- * @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
27
- * @returns Jest config object with ts-jest transform, node environment, and NestJS-specific exclusions
28
- * @remarks NestJS projects use CommonJS modules and spec.ts test file convention.
29
- * Uses tsconfig.spec.json for ts-jest diagnostics because the main tsconfig.json
30
- * excludes spec files from compilation — without this, path aliases used only in
31
- * test files (e.g. @test-utils) fail to resolve during type checking.
32
- * Coverage excludes entities, DTOs, modules, and other boilerplate files
33
- * that are better validated through integration tests.
34
- */
35
- export declare const getNestjsJestConfig: ({ thresholds, }?: NestjsJestOptions) => Config;
36
- //# sourceMappingURL=nestjs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nestjs.d.ts","sourceRoot":"","sources":["../../../src/configs/jest/nestjs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,UAAU,iBAAiB;IACzB,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAwBD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,kBAEjC,iBAAsB,KAAG,MAW1B,CAAC"}
@@ -1,49 +0,0 @@
1
- import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, } from "./base.js";
2
- // Re-export base utilities for entry-point configs
3
- export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
4
- /**
5
- * NestJS-specific patterns excluded from coverage collection.
6
- * These are generated or boilerplate files that don't benefit from coverage tracking.
7
- */
8
- const nestjsCoverageExclusions = [
9
- ...defaultCoverageExclusions,
10
- "!**/*.entity.ts",
11
- "!**/*.dto.ts",
12
- "!**/*.input.ts",
13
- "!**/*.args.ts",
14
- "!**/*.model.ts",
15
- "!**/*.module.ts",
16
- "!**/*.factory.ts",
17
- "!**/*.enum.ts",
18
- "!**/*.interface.ts",
19
- "!**/*.constants.ts",
20
- "!**/database/migrations/**",
21
- "!**/database/seeds/**",
22
- "!**/graphql/**",
23
- "!**/main.ts",
24
- ];
25
- /**
26
- * Creates a Jest configuration for NestJS projects.
27
- * @param options - Configuration options for threshold overrides
28
- * @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
29
- * @returns Jest config object with ts-jest transform, node environment, and NestJS-specific exclusions
30
- * @remarks NestJS projects use CommonJS modules and spec.ts test file convention.
31
- * Uses tsconfig.spec.json for ts-jest diagnostics because the main tsconfig.json
32
- * excludes spec files from compilation — without this, path aliases used only in
33
- * test files (e.g. @test-utils) fail to resolve during type checking.
34
- * Coverage excludes entities, DTOs, modules, and other boilerplate files
35
- * that are better validated through integration tests.
36
- */
37
- export const getNestjsJestConfig = ({ thresholds = defaultThresholds, } = {}) => ({
38
- testEnvironment: "node",
39
- rootDir: "src",
40
- testRegex: ".*\\.spec\\.ts$",
41
- transform: {
42
- "^.+\\.ts$": ["ts-jest", { tsconfig: "tsconfig.spec.json" }],
43
- },
44
- moduleFileExtensions: ["js", "json", "ts"],
45
- collectCoverageFrom: ["**/*.ts", ...nestjsCoverageExclusions],
46
- ...(thresholds !== undefined ? { coverageThreshold: thresholds } : {}),
47
- testTimeout: 10000,
48
- });
49
- //# sourceMappingURL=nestjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nestjs.js","sourceRoot":"","sources":["../../../src/configs/jest/nestjs.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,mDAAmD;AACnD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAUF;;;GAGG;AACH,MAAM,wBAAwB,GAAsB;IAClD,GAAG,yBAAyB;IAC5B,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,oBAAoB;IACpB,oBAAoB;IACpB,4BAA4B;IAC5B,uBAAuB;IACvB,gBAAgB;IAChB,aAAa;CACd,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,GAAG,iBAAiB,MACT,EAAE,EAAU,EAAE,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM;IACvB,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAE;QACT,WAAW,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAC;KAC7D;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;IAC1C,mBAAmB,EAAE,CAAC,SAAS,EAAE,GAAG,wBAAwB,CAAC;IAC7D,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}
@@ -1,29 +0,0 @@
1
- /**
2
- * Jest Configuration - TypeScript Stack
3
- *
4
- * Provides TypeScript/Node-specific Jest configuration.
5
- * Imports shared utilities from the base module.
6
- * Stack-specific configs (expo, nestjs, cdk) should import and extend this.
7
- * @see https://jestjs.io/docs/configuration
8
- * @module configs/jest/typescript
9
- */
10
- import type { Config } from "jest";
11
- import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns } from "./base.js";
12
- export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns, };
13
- /**
14
- * Options for configuring the TypeScript Jest config factory.
15
- */
16
- interface TypescriptJestOptions {
17
- /** Coverage thresholds (merged defaults + project overrides) */
18
- readonly thresholds?: Config["coverageThreshold"];
19
- }
20
- /**
21
- * Creates a Jest configuration for TypeScript/Node projects using ts-jest.
22
- * @param options - Configuration options for threshold overrides
23
- * @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
24
- * @returns Jest config object with ts-jest transform, ESM support, and coverage settings
25
- * @remarks Uses ts-jest ESM preset for projects with "type": "module" in package.json.
26
- * Projects needing CommonJS should override the preset in jest.config.local.ts.
27
- */
28
- export declare const getTypescriptJestConfig: ({ thresholds, }?: TypescriptJestOptions) => Config;
29
- //# sourceMappingURL=typescript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/configs/jest/typescript.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,GAC/B,CAAC;AAEF;;GAEG;AACH,UAAU,qBAAqB;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,kBAErC,qBAA0B,KAAG,MAwB9B,CAAC"}
@@ -1,37 +0,0 @@
1
- import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns, } from "./base.js";
2
- // Re-export base utilities for stack-specific configs to use
3
- export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns, };
4
- /**
5
- * Creates a Jest configuration for TypeScript/Node projects using ts-jest.
6
- * @param options - Configuration options for threshold overrides
7
- * @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
8
- * @returns Jest config object with ts-jest transform, ESM support, and coverage settings
9
- * @remarks Uses ts-jest ESM preset for projects with "type": "module" in package.json.
10
- * Projects needing CommonJS should override the preset in jest.config.local.ts.
11
- */
12
- export const getTypescriptJestConfig = ({ thresholds = defaultThresholds, } = {}) => ({
13
- preset: "ts-jest/presets/default-esm",
14
- testEnvironment: "node",
15
- testMatch: ["<rootDir>/tests/**/*.test.ts", "<rootDir>/src/**/*.test.ts"],
16
- testPathIgnorePatterns: [
17
- "/node_modules/",
18
- "/dist/",
19
- ...worktreeTestPathIgnorePatterns(),
20
- ],
21
- moduleNameMapper: {
22
- "^(\\.{1,2}/.*)\\.js$": "$1",
23
- },
24
- transform: {
25
- "^.+\\.tsx?$": [
26
- "ts-jest",
27
- {
28
- useESM: true,
29
- },
30
- ],
31
- },
32
- extensionsToTreatAsEsm: [".ts"],
33
- collectCoverageFrom: ["src/**/*.ts", ...defaultCoverageExclusions],
34
- ...(thresholds !== undefined ? { coverageThreshold: thresholds } : {}),
35
- testTimeout: 10000,
36
- });
37
- //# sourceMappingURL=typescript.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../src/configs/jest/typescript.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,GAC/B,MAAM,WAAW,CAAC;AAEnB,6DAA6D;AAC7D,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,GAC/B,CAAC;AAUF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,UAAU,GAAG,iBAAiB,MACL,EAAE,EAAU,EAAE,CAAC,CAAC;IACzC,MAAM,EAAE,6BAA6B;IACrC,eAAe,EAAE,MAAM;IACvB,SAAS,EAAE,CAAC,8BAA8B,EAAE,4BAA4B,CAAC;IACzE,sBAAsB,EAAE;QACtB,gBAAgB;QAChB,QAAQ;QACR,GAAG,8BAA8B,EAAE;KACpC;IACD,gBAAgB,EAAE;QAChB,sBAAsB,EAAE,IAAI;KAC7B;IACD,SAAS,EAAE;QACT,aAAa,EAAE;YACb,SAAS;YACT;gBACE,MAAM,EAAE,IAAI;aACb;SACF;KACF;IACD,sBAAsB,EAAE,CAAC,KAAK,CAAC;IAC/B,mBAAmB,EAAE,CAAC,aAAa,EAAE,GAAG,yBAAyB,CAAC;IAClE,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}