ddd-ts-kit 0.1.0 → 0.2.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 (772) hide show
  1. package/README.md +124 -24
  2. package/dist/affected/changed-paths.d.ts +8 -0
  3. package/dist/affected/changed-paths.d.ts.map +1 -0
  4. package/dist/affected/changed-paths.js +21 -0
  5. package/dist/affected/changed-paths.js.map +1 -0
  6. package/dist/affected/downstreams-of.d.ts +4 -0
  7. package/dist/affected/downstreams-of.d.ts.map +1 -0
  8. package/dist/affected/downstreams-of.js +16 -0
  9. package/dist/affected/downstreams-of.js.map +1 -0
  10. package/dist/affected/everything.d.ts +5 -0
  11. package/dist/affected/everything.d.ts.map +1 -0
  12. package/dist/affected/everything.js +5 -0
  13. package/dist/affected/everything.js.map +1 -0
  14. package/dist/affected/format-selection.d.ts +10 -0
  15. package/dist/affected/format-selection.d.ts.map +1 -0
  16. package/dist/affected/format-selection.js +45 -0
  17. package/dist/affected/format-selection.js.map +1 -0
  18. package/dist/affected/path-reach.d.ts +12 -0
  19. package/dist/affected/path-reach.d.ts.map +1 -0
  20. package/dist/affected/path-reach.js +2 -0
  21. package/dist/affected/path-reach.js.map +1 -0
  22. package/dist/affected/reach-of.d.ts +10 -0
  23. package/dist/affected/reach-of.d.ts.map +1 -0
  24. package/dist/affected/reach-of.js +30 -0
  25. package/dist/affected/reach-of.js.map +1 -0
  26. package/dist/affected/select-affected.d.ts +11 -0
  27. package/dist/affected/select-affected.d.ts.map +1 -0
  28. package/dist/affected/select-affected.js +39 -0
  29. package/dist/affected/select-affected.js.map +1 -0
  30. package/dist/affected/selection.d.ts +14 -0
  31. package/dist/affected/selection.d.ts.map +1 -0
  32. package/dist/affected/selection.js +2 -0
  33. package/dist/affected/selection.js.map +1 -0
  34. package/dist/alias/compiler-resolution-of.d.ts +10 -0
  35. package/dist/alias/compiler-resolution-of.d.ts.map +1 -0
  36. package/dist/alias/compiler-resolution-of.js +13 -0
  37. package/dist/alias/compiler-resolution-of.js.map +1 -0
  38. package/dist/alias/compiler-resolution.d.ts +8 -0
  39. package/dist/alias/compiler-resolution.d.ts.map +1 -0
  40. package/dist/alias/compiler-resolution.js +2 -0
  41. package/dist/alias/compiler-resolution.js.map +1 -0
  42. package/dist/alias/index.d.ts +3 -1
  43. package/dist/alias/index.d.ts.map +1 -1
  44. package/dist/alias/index.js +3 -1
  45. package/dist/alias/index.js.map +1 -1
  46. package/dist/alias/module-name-mapper.d.ts +4 -3
  47. package/dist/alias/module-name-mapper.d.ts.map +1 -1
  48. package/dist/alias/module-name-mapper.js +6 -4
  49. package/dist/alias/module-name-mapper.js.map +1 -1
  50. package/dist/alias/specifier-of.d.ts +7 -0
  51. package/dist/alias/specifier-of.d.ts.map +1 -0
  52. package/dist/alias/specifier-of.js +17 -0
  53. package/dist/alias/specifier-of.js.map +1 -0
  54. package/dist/alias/specifier-suffix.d.ts +6 -0
  55. package/dist/alias/specifier-suffix.d.ts.map +1 -0
  56. package/dist/alias/specifier-suffix.js +8 -0
  57. package/dist/alias/specifier-suffix.js.map +1 -0
  58. package/dist/alias/to-alias.d.ts +3 -2
  59. package/dist/alias/to-alias.d.ts.map +1 -1
  60. package/dist/alias/to-alias.js +4 -3
  61. package/dist/alias/to-alias.js.map +1 -1
  62. package/dist/build/emitted-place.d.ts +2 -0
  63. package/dist/build/emitted-place.d.ts.map +1 -1
  64. package/dist/build/emitted-specifier.d.ts +3 -2
  65. package/dist/build/emitted-specifier.d.ts.map +1 -1
  66. package/dist/build/emitted-specifier.js +6 -12
  67. package/dist/build/emitted-specifier.js.map +1 -1
  68. package/dist/build/emitted-target.d.ts +9 -0
  69. package/dist/build/emitted-target.d.ts.map +1 -0
  70. package/dist/build/emitted-target.js +18 -0
  71. package/dist/build/emitted-target.js.map +1 -0
  72. package/dist/build/rewrite-aliases.d.ts +5 -3
  73. package/dist/build/rewrite-aliases.d.ts.map +1 -1
  74. package/dist/build/rewrite-aliases.js +12 -7
  75. package/dist/build/rewrite-aliases.js.map +1 -1
  76. package/dist/build/rewrite-specifiers.d.ts +3 -1
  77. package/dist/build/rewrite-specifiers.d.ts.map +1 -1
  78. package/dist/build/rewrite-specifiers.js +2 -2
  79. package/dist/build/rewrite-specifiers.js.map +1 -1
  80. package/dist/build/unresolved-problem.d.ts +4 -0
  81. package/dist/build/unresolved-problem.d.ts.map +1 -0
  82. package/dist/build/unresolved-problem.js +16 -0
  83. package/dist/build/unresolved-problem.js.map +1 -0
  84. package/dist/check/alias/compiler-resolution.d.ts +10 -0
  85. package/dist/check/alias/compiler-resolution.d.ts.map +1 -0
  86. package/dist/check/alias/compiler-resolution.js +47 -0
  87. package/dist/check/alias/compiler-resolution.js.map +1 -0
  88. package/dist/check/alias/test-runners.js +4 -4
  89. package/dist/check/alias/test-runners.js.map +1 -1
  90. package/dist/check/canonical/roles.d.ts.map +1 -1
  91. package/dist/check/canonical/roles.js +6 -0
  92. package/dist/check/canonical/roles.js.map +1 -1
  93. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  94. package/dist/check/catalogue/architecture-rules.js +4 -0
  95. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  96. package/dist/check/configuration/config-inspection.d.ts +2 -0
  97. package/dist/check/configuration/config-inspection.d.ts.map +1 -1
  98. package/dist/check/configuration/config-inspection.js +11 -1
  99. package/dist/check/configuration/config-inspection.js.map +1 -1
  100. package/dist/check/declarations/classes-of.js +1 -1
  101. package/dist/check/declarations/classes-of.js.map +1 -1
  102. package/dist/check/explain/context-docs.js +7 -7
  103. package/dist/check/explain/context-docs.js.map +1 -1
  104. package/dist/check/explain/imports-docs.d.ts.map +1 -1
  105. package/dist/check/explain/imports-docs.js +24 -9
  106. package/dist/check/explain/imports-docs.js.map +1 -1
  107. package/dist/check/explain/layer-docs.js +7 -7
  108. package/dist/check/explain/layer-docs.js.map +1 -1
  109. package/dist/check/explain/ports-docs.d.ts.map +1 -1
  110. package/dist/check/explain/ports-docs.js +15 -7
  111. package/dist/check/explain/ports-docs.js.map +1 -1
  112. package/dist/check/explain/scheduling-docs.js +1 -1
  113. package/dist/check/explain/wiring-docs.d.ts.map +1 -1
  114. package/dist/check/explain/wiring-docs.js +35 -10
  115. package/dist/check/explain/wiring-docs.js.map +1 -1
  116. package/dist/check/fixtures/alias-declared-fixtures.d.ts.map +1 -1
  117. package/dist/check/fixtures/alias-declared-fixtures.js +32 -1
  118. package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
  119. package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
  120. package/dist/check/fixtures/config-fixtures.js +6 -0
  121. package/dist/check/fixtures/config-fixtures.js.map +1 -1
  122. package/dist/check/fixtures/constructor-injection-fixtures.d.ts +3 -0
  123. package/dist/check/fixtures/constructor-injection-fixtures.d.ts.map +1 -0
  124. package/dist/check/fixtures/constructor-injection-fixtures.js +111 -0
  125. package/dist/check/fixtures/constructor-injection-fixtures.js.map +1 -0
  126. package/dist/check/fixtures/declared-project.d.ts.map +1 -1
  127. package/dist/check/fixtures/declared-project.js +4 -1
  128. package/dist/check/fixtures/declared-project.js.map +1 -1
  129. package/dist/check/fixtures/extension-fixtures.d.ts +3 -0
  130. package/dist/check/fixtures/extension-fixtures.d.ts.map +1 -0
  131. package/dist/check/fixtures/extension-fixtures.js +77 -0
  132. package/dist/check/fixtures/extension-fixtures.js.map +1 -0
  133. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  134. package/dist/check/fixtures/fixtures.js +4 -0
  135. package/dist/check/fixtures/fixtures.js.map +1 -1
  136. package/dist/check/fixtures/signature-project.d.ts +11 -0
  137. package/dist/check/fixtures/signature-project.d.ts.map +1 -0
  138. package/dist/check/fixtures/signature-project.js +21 -0
  139. package/dist/check/fixtures/signature-project.js.map +1 -0
  140. package/dist/check/fixtures/signature.d.ts +13 -0
  141. package/dist/check/fixtures/signature.d.ts.map +1 -0
  142. package/dist/check/fixtures/signature.js +24 -0
  143. package/dist/check/fixtures/signature.js.map +1 -0
  144. package/dist/check/project/beside-the-sources.d.ts +5 -0
  145. package/dist/check/project/beside-the-sources.d.ts.map +1 -0
  146. package/dist/check/project/beside-the-sources.js +21 -0
  147. package/dist/check/project/beside-the-sources.js.map +1 -0
  148. package/dist/check/project/resolve-import.d.ts.map +1 -1
  149. package/dist/check/project/resolve-import.js +4 -1
  150. package/dist/check/project/resolve-import.js.map +1 -1
  151. package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
  152. package/dist/check/rules/clean-one-export-per-file.js +14 -8
  153. package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
  154. package/dist/check/rules/config-valid.d.ts.map +1 -1
  155. package/dist/check/rules/config-valid.js +2 -1
  156. package/dist/check/rules/config-valid.js.map +1 -1
  157. package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
  158. package/dist/check/rules/declarations-barrel-current.js +34 -32
  159. package/dist/check/rules/declarations-barrel-current.js.map +1 -1
  160. package/dist/check/rules/declarations-constructor-injection.d.ts +3 -0
  161. package/dist/check/rules/declarations-constructor-injection.d.ts.map +1 -0
  162. package/dist/check/rules/declarations-constructor-injection.js +58 -0
  163. package/dist/check/rules/declarations-constructor-injection.js.map +1 -0
  164. package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
  165. package/dist/check/rules/imports-alias-declared.js +3 -1
  166. package/dist/check/rules/imports-alias-declared.js.map +1 -1
  167. package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
  168. package/dist/check/rules/imports-alias-only.js +16 -29
  169. package/dist/check/rules/imports-alias-only.js.map +1 -1
  170. package/dist/check/rules/imports-extension.d.ts +3 -0
  171. package/dist/check/rules/imports-extension.d.ts.map +1 -0
  172. package/dist/check/rules/imports-extension.js +65 -0
  173. package/dist/check/rules/imports-extension.js.map +1 -0
  174. package/dist/check/rules/ports-no-concrete-dependency.d.ts.map +1 -1
  175. package/dist/check/rules/ports-no-concrete-dependency.js +43 -15
  176. package/dist/check/rules/ports-no-concrete-dependency.js.map +1 -1
  177. package/dist/check/rules/tree-closed.js +6 -4
  178. package/dist/check/rules/tree-closed.js.map +1 -1
  179. package/dist/commands/affected.d.ts +8 -0
  180. package/dist/commands/affected.d.ts.map +1 -0
  181. package/dist/commands/affected.js +38 -0
  182. package/dist/commands/affected.js.map +1 -0
  183. package/dist/commands/build-aliases.d.ts.map +1 -1
  184. package/dist/commands/build-aliases.js +5 -3
  185. package/dist/commands/build-aliases.js.map +1 -1
  186. package/dist/commands/docs.d.ts.map +1 -1
  187. package/dist/commands/docs.js +19 -2
  188. package/dist/commands/docs.js.map +1 -1
  189. package/dist/commands/generate.d.ts.map +1 -1
  190. package/dist/commands/generate.js +5 -0
  191. package/dist/commands/generate.js.map +1 -1
  192. package/dist/commands/init.d.ts.map +1 -1
  193. package/dist/commands/init.js +7 -1
  194. package/dist/commands/init.js.map +1 -1
  195. package/dist/commit/is-derived.d.ts.map +1 -1
  196. package/dist/commit/is-derived.js +5 -2
  197. package/dist/commit/is-derived.js.map +1 -1
  198. package/dist/config/config.d.ts +2 -0
  199. package/dist/config/config.d.ts.map +1 -1
  200. package/dist/config/default-import-extension.d.ts +3 -0
  201. package/dist/config/default-import-extension.d.ts.map +1 -0
  202. package/dist/config/default-import-extension.js +3 -0
  203. package/dist/config/default-import-extension.js.map +1 -0
  204. package/dist/config/import-extensions.d.ts +3 -0
  205. package/dist/config/import-extensions.d.ts.map +1 -0
  206. package/dist/config/import-extensions.js +3 -0
  207. package/dist/config/import-extensions.js.map +1 -0
  208. package/dist/config/index.d.ts +4 -1
  209. package/dist/config/index.d.ts.map +1 -1
  210. package/dist/config/index.js +4 -1
  211. package/dist/config/index.js.map +1 -1
  212. package/dist/config/parse-config.d.ts.map +1 -1
  213. package/dist/config/parse-config.js +2 -0
  214. package/dist/config/parse-config.js.map +1 -1
  215. package/dist/config/parse-stack.d.ts.map +1 -1
  216. package/dist/config/parse-stack.js +3 -1
  217. package/dist/config/parse-stack.js.map +1 -1
  218. package/dist/config/restack-config-text.d.ts +11 -0
  219. package/dist/config/restack-config-text.d.ts.map +1 -0
  220. package/dist/config/restack-config-text.js +31 -0
  221. package/dist/config/restack-config-text.js.map +1 -0
  222. package/dist/config/serialize-config.d.ts.map +1 -1
  223. package/dist/config/serialize-config.js +3 -6
  224. package/dist/config/serialize-config.js.map +1 -1
  225. package/dist/config/stack.d.ts +15 -0
  226. package/dist/config/stack.d.ts.map +1 -1
  227. package/dist/config/stack.js +2 -0
  228. package/dist/config/stack.js.map +1 -1
  229. package/dist/config/unwritten-import-extension.d.ts +3 -0
  230. package/dist/config/unwritten-import-extension.d.ts.map +1 -0
  231. package/dist/config/unwritten-import-extension.js +3 -0
  232. package/dist/config/unwritten-import-extension.js.map +1 -0
  233. package/dist/config/written-stack.d.ts +8 -0
  234. package/dist/config/written-stack.d.ts.map +1 -0
  235. package/dist/config/written-stack.js +10 -0
  236. package/dist/config/written-stack.js.map +1 -0
  237. package/dist/declared/declared-role.d.ts.map +1 -1
  238. package/dist/declared/declared-role.js +1 -0
  239. package/dist/declared/declared-role.js.map +1 -1
  240. package/dist/declared/dependencies-file.d.ts +7 -0
  241. package/dist/declared/dependencies-file.d.ts.map +1 -0
  242. package/dist/declared/dependencies-file.js +9 -0
  243. package/dist/declared/dependencies-file.js.map +1 -0
  244. package/dist/declared/generated-drift.d.ts +7 -0
  245. package/dist/declared/generated-drift.d.ts.map +1 -0
  246. package/dist/declared/generated-drift.js +47 -0
  247. package/dist/declared/generated-drift.js.map +1 -0
  248. package/dist/declared/index.d.ts +8 -1
  249. package/dist/declared/index.d.ts.map +1 -1
  250. package/dist/declared/index.js +6 -1
  251. package/dist/declared/index.js.map +1 -1
  252. package/dist/declared/injection/class-injection.d.ts +19 -0
  253. package/dist/declared/injection/class-injection.d.ts.map +1 -0
  254. package/dist/declared/injection/class-injection.js +2 -0
  255. package/dist/declared/injection/class-injection.js.map +1 -0
  256. package/dist/declared/injection/constructor-of.d.ts +16 -0
  257. package/dist/declared/injection/constructor-of.d.ts.map +1 -0
  258. package/dist/declared/injection/constructor-of.js +33 -0
  259. package/dist/declared/injection/constructor-of.js.map +1 -0
  260. package/dist/declared/injection/context-injections.d.ts +8 -0
  261. package/dist/declared/injection/context-injections.d.ts.map +1 -0
  262. package/dist/declared/injection/context-injections.js +14 -0
  263. package/dist/declared/injection/context-injections.js.map +1 -0
  264. package/dist/declared/injection/declared-kind-of.d.ts +8 -0
  265. package/dist/declared/injection/declared-kind-of.d.ts.map +1 -0
  266. package/dist/declared/injection/declared-kind-of.js +12 -0
  267. package/dist/declared/injection/declared-kind-of.js.map +1 -0
  268. package/dist/declared/injection/exported-name-of.d.ts +4 -0
  269. package/dist/declared/injection/exported-name-of.d.ts.map +1 -0
  270. package/dist/declared/injection/exported-name-of.js +17 -0
  271. package/dist/declared/injection/exported-name-of.js.map +1 -0
  272. package/dist/declared/injection/language-types.d.ts +3 -0
  273. package/dist/declared/injection/language-types.d.ts.map +1 -0
  274. package/dist/declared/injection/language-types.js +32 -0
  275. package/dist/declared/injection/language-types.js.map +1 -0
  276. package/dist/declared/injection/local-names.d.ts +17 -0
  277. package/dist/declared/injection/local-names.d.ts.map +1 -0
  278. package/dist/declared/injection/local-names.js +41 -0
  279. package/dist/declared/injection/local-names.js.map +1 -0
  280. package/dist/declared/injection/parameter-shape.d.ts +11 -0
  281. package/dist/declared/injection/parameter-shape.d.ts.map +1 -0
  282. package/dist/declared/injection/parameter-shape.js +58 -0
  283. package/dist/declared/injection/parameter-shape.js.map +1 -0
  284. package/dist/declared/injection/raw-class-name.d.ts +7 -0
  285. package/dist/declared/injection/raw-class-name.d.ts.map +1 -0
  286. package/dist/declared/injection/raw-class-name.js +28 -0
  287. package/dist/declared/injection/raw-class-name.js.map +1 -0
  288. package/dist/declared/injection/read-constructor.d.ts +10 -0
  289. package/dist/declared/injection/read-constructor.d.ts.map +1 -0
  290. package/dist/declared/injection/read-constructor.js +2 -0
  291. package/dist/declared/injection/read-constructor.js.map +1 -0
  292. package/dist/declared/injection/read-injections.d.ts +6 -0
  293. package/dist/declared/injection/read-injections.d.ts.map +1 -0
  294. package/dist/declared/injection/read-injections.js +75 -0
  295. package/dist/declared/injection/read-injections.js.map +1 -0
  296. package/dist/declared/injection/render-injections.d.ts +11 -0
  297. package/dist/declared/injection/render-injections.d.ts.map +1 -0
  298. package/dist/declared/injection/render-injections.js +51 -0
  299. package/dist/declared/injection/render-injections.js.map +1 -0
  300. package/dist/declared/injection/rendered-injections.d.ts +8 -0
  301. package/dist/declared/injection/rendered-injections.d.ts.map +1 -0
  302. package/dist/declared/injection/rendered-injections.js +2 -0
  303. package/dist/declared/injection/rendered-injections.js.map +1 -0
  304. package/dist/declared/injection/resolve-token.d.ts +18 -0
  305. package/dist/declared/injection/resolve-token.d.ts.map +1 -0
  306. package/dist/declared/injection/resolve-token.js +46 -0
  307. package/dist/declared/injection/resolve-token.js.map +1 -0
  308. package/dist/declared/injection/resolved-token.d.ts +10 -0
  309. package/dist/declared/injection/resolved-token.d.ts.map +1 -0
  310. package/dist/declared/injection/resolved-token.js +2 -0
  311. package/dist/declared/injection/resolved-token.js.map +1 -0
  312. package/dist/declared/injection/sources.d.ts +4 -0
  313. package/dist/declared/injection/sources.d.ts.map +1 -0
  314. package/dist/declared/injection/sources.js +2 -0
  315. package/dist/declared/injection/sources.js.map +1 -0
  316. package/dist/declared/injection/token-reference.d.ts +14 -0
  317. package/dist/declared/injection/token-reference.d.ts.map +1 -0
  318. package/dist/declared/injection/token-reference.js +2 -0
  319. package/dist/declared/injection/token-reference.js.map +1 -0
  320. package/dist/declared/render-barrel.d.ts +8 -5
  321. package/dist/declared/render-barrel.d.ts.map +1 -1
  322. package/dist/declared/render-barrel.js +13 -6
  323. package/dist/declared/render-barrel.js.map +1 -1
  324. package/dist/declared/render-dependencies-file.d.ts +8 -0
  325. package/dist/declared/render-dependencies-file.d.ts.map +1 -0
  326. package/dist/declared/render-dependencies-file.js +12 -0
  327. package/dist/declared/render-dependencies-file.js.map +1 -0
  328. package/dist/depcruise/cruise-configuration.js +3 -1
  329. package/dist/depcruise/cruise-configuration.js.map +1 -1
  330. package/dist/depcruise/hygiene-rules.js +2 -1
  331. package/dist/depcruise/hygiene-rules.js.map +1 -1
  332. package/dist/describe/context-description.d.ts +10 -0
  333. package/dist/describe/context-description.d.ts.map +1 -1
  334. package/dist/describe/describe-context.d.ts.map +1 -1
  335. package/dist/describe/describe-context.js +2 -0
  336. package/dist/describe/describe-context.js.map +1 -1
  337. package/dist/describe/format-description.d.ts.map +1 -1
  338. package/dist/describe/format-description.js +4 -0
  339. package/dist/describe/format-description.js.map +1 -1
  340. package/dist/describe/read-projections.d.ts +5 -0
  341. package/dist/describe/read-projections.d.ts.map +1 -0
  342. package/dist/describe/read-projections.js +19 -0
  343. package/dist/describe/read-projections.js.map +1 -0
  344. package/dist/describe/reference-lines.js +9 -0
  345. package/dist/describe/reference-lines.js.map +1 -1
  346. package/dist/dev/refresh-declarations.d.ts +9 -0
  347. package/dist/dev/refresh-declarations.d.ts.map +1 -0
  348. package/dist/dev/refresh-declarations.js +28 -0
  349. package/dist/dev/refresh-declarations.js.map +1 -0
  350. package/dist/generate/access-vars.js +3 -3
  351. package/dist/generate/access-vars.js.map +1 -1
  352. package/dist/generate/apply-wiring.js +1 -1
  353. package/dist/generate/apply-wiring.js.map +1 -1
  354. package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
  355. package/dist/generate/kinds/adapter-kind.js +5 -2
  356. package/dist/generate/kinds/adapter-kind.js.map +1 -1
  357. package/dist/generate/kinds/context-plan.d.ts +10 -0
  358. package/dist/generate/kinds/context-plan.d.ts.map +1 -0
  359. package/dist/generate/kinds/context-plan.js +2 -0
  360. package/dist/generate/kinds/context-plan.js.map +1 -0
  361. package/dist/generate/kinds/declare-context-entries.d.ts +12 -0
  362. package/dist/generate/kinds/declare-context-entries.d.ts.map +1 -0
  363. package/dist/generate/kinds/declare-context-entries.js +33 -0
  364. package/dist/generate/kinds/declare-context-entries.js.map +1 -0
  365. package/dist/generate/kinds/extraction/service-selection.js +8 -11
  366. package/dist/generate/kinds/extraction/service-selection.js.map +1 -1
  367. package/dist/generate/kinds/generate-context.d.ts.map +1 -1
  368. package/dist/generate/kinds/generate-context.js +2 -0
  369. package/dist/generate/kinds/generate-context.js.map +1 -1
  370. package/dist/generate/kinds/import-assembler.d.ts +9 -0
  371. package/dist/generate/kinds/import-assembler.d.ts.map +1 -0
  372. package/dist/generate/kinds/import-assembler.js +29 -0
  373. package/dist/generate/kinds/import-assembler.js.map +1 -0
  374. package/dist/generate/kinds/job/job-vars.d.ts.map +1 -1
  375. package/dist/generate/kinds/job/job-vars.js +5 -3
  376. package/dist/generate/kinds/job/job-vars.js.map +1 -1
  377. package/dist/generate/kinds/plan-vars.d.ts +5 -0
  378. package/dist/generate/kinds/plan-vars.d.ts.map +1 -0
  379. package/dist/generate/kinds/plan-vars.js +24 -0
  380. package/dist/generate/kinds/plan-vars.js.map +1 -0
  381. package/dist/generate/kinds/projection-kind.d.ts +3 -0
  382. package/dist/generate/kinds/projection-kind.d.ts.map +1 -0
  383. package/dist/generate/kinds/projection-kind.js +72 -0
  384. package/dist/generate/kinds/projection-kind.js.map +1 -0
  385. package/dist/generate/kinds/publish-in-index.js +2 -2
  386. package/dist/generate/kinds/publish-in-index.js.map +1 -1
  387. package/dist/generate/kinds/route/route-vars.d.ts.map +1 -1
  388. package/dist/generate/kinds/route/route-vars.js +7 -6
  389. package/dist/generate/kinds/route/route-vars.js.map +1 -1
  390. package/dist/generate/kinds/wire-context.d.ts +10 -0
  391. package/dist/generate/kinds/wire-context.d.ts.map +1 -0
  392. package/dist/generate/kinds/wire-context.js +36 -0
  393. package/dist/generate/kinds/wire-context.js.map +1 -0
  394. package/dist/generate/kinds/write-context-files.d.ts +1 -8
  395. package/dist/generate/kinds/write-context-files.d.ts.map +1 -1
  396. package/dist/generate/kinds/write-context-files.js +3 -32
  397. package/dist/generate/kinds/write-context-files.js.map +1 -1
  398. package/dist/generate/kinds/write-own-policy.d.ts +9 -0
  399. package/dist/generate/kinds/write-own-policy.d.ts.map +1 -0
  400. package/dist/generate/kinds/write-own-policy.js +13 -0
  401. package/dist/generate/kinds/write-own-policy.js.map +1 -0
  402. package/dist/generate/kinds.d.ts.map +1 -1
  403. package/dist/generate/kinds.js +2 -0
  404. package/dist/generate/kinds.js.map +1 -1
  405. package/dist/generate/refresh-barrels.d.ts +4 -3
  406. package/dist/generate/refresh-barrels.d.ts.map +1 -1
  407. package/dist/generate/refresh-barrels.js +41 -16
  408. package/dist/generate/refresh-barrels.js.map +1 -1
  409. package/dist/generate/shared-writes.d.ts.map +1 -1
  410. package/dist/generate/shared-writes.js +6 -0
  411. package/dist/generate/shared-writes.js.map +1 -1
  412. package/dist/generate/spec-vars.js +4 -4
  413. package/dist/generate/spec-vars.js.map +1 -1
  414. package/dist/generate/stop-ignoring-validation.d.ts +9 -0
  415. package/dist/generate/stop-ignoring-validation.d.ts.map +1 -0
  416. package/dist/generate/stop-ignoring-validation.js +36 -0
  417. package/dist/generate/stop-ignoring-validation.js.map +1 -0
  418. package/dist/generate/storage-vars.d.ts +2 -2
  419. package/dist/generate/storage-vars.d.ts.map +1 -1
  420. package/dist/generate/storage-vars.js +6 -10
  421. package/dist/generate/storage-vars.js.map +1 -1
  422. package/dist/generate/workspace-sources.d.ts +6 -0
  423. package/dist/generate/workspace-sources.d.ts.map +1 -0
  424. package/dist/generate/workspace-sources.js +13 -0
  425. package/dist/generate/workspace-sources.js.map +1 -0
  426. package/dist/init/files/architecture-files.d.ts +9 -0
  427. package/dist/init/files/architecture-files.d.ts.map +1 -0
  428. package/dist/init/files/architecture-files.js +10 -0
  429. package/dist/init/files/architecture-files.js.map +1 -0
  430. package/dist/init/files/init-files.d.ts.map +1 -1
  431. package/dist/init/files/init-files.js +2 -0
  432. package/dist/init/files/init-files.js.map +1 -1
  433. package/dist/init/files/persistence-files.d.ts.map +1 -1
  434. package/dist/init/files/persistence-files.js +5 -1
  435. package/dist/init/files/persistence-files.js.map +1 -1
  436. package/dist/init/files/pipeline-files.d.ts.map +1 -1
  437. package/dist/init/files/pipeline-files.js +5 -1
  438. package/dist/init/files/pipeline-files.js.map +1 -1
  439. package/dist/init/files/platform-files.d.ts.map +1 -1
  440. package/dist/init/files/platform-files.js +3 -1
  441. package/dist/init/files/platform-files.js.map +1 -1
  442. package/dist/init/files/project-files.d.ts.map +1 -1
  443. package/dist/init/files/project-files.js +3 -1
  444. package/dist/init/files/project-files.js.map +1 -1
  445. package/dist/init/knip-vars.d.ts +3 -3
  446. package/dist/init/knip-vars.d.ts.map +1 -1
  447. package/dist/init/knip-vars.js +27 -5
  448. package/dist/init/knip-vars.js.map +1 -1
  449. package/dist/init/manifest/documentation-scripts.d.ts.map +1 -1
  450. package/dist/init/manifest/documentation-scripts.js +2 -0
  451. package/dist/init/manifest/documentation-scripts.js.map +1 -1
  452. package/dist/init/manifest/scripts-for.d.ts +5 -1
  453. package/dist/init/manifest/scripts-for.d.ts.map +1 -1
  454. package/dist/init/manifest/scripts-for.js +16 -2
  455. package/dist/init/manifest/scripts-for.js.map +1 -1
  456. package/dist/init/manifest/versions.js +23 -23
  457. package/dist/init/manifest/write-manifest.d.ts.map +1 -1
  458. package/dist/init/manifest/write-manifest.js +18 -1
  459. package/dist/init/manifest/write-manifest.js.map +1 -1
  460. package/dist/init/run-init.d.ts.map +1 -1
  461. package/dist/init/run-init.js +56 -7
  462. package/dist/init/run-init.js.map +1 -1
  463. package/dist/init/stack/recorded-options.d.ts +11 -0
  464. package/dist/init/stack/recorded-options.d.ts.map +1 -0
  465. package/dist/init/stack/recorded-options.js +19 -0
  466. package/dist/init/stack/recorded-options.js.map +1 -0
  467. package/dist/init/stack/resolve-stack.d.ts +6 -1
  468. package/dist/init/stack/resolve-stack.d.ts.map +1 -1
  469. package/dist/init/stack/resolve-stack.js +48 -9
  470. package/dist/init/stack/resolve-stack.js.map +1 -1
  471. package/dist/init/stack/resolve-style.d.ts +3 -5
  472. package/dist/init/stack/resolve-style.d.ts.map +1 -1
  473. package/dist/init/stack/resolve-style.js +11 -3
  474. package/dist/init/stack/resolve-style.js.map +1 -1
  475. package/dist/init/stack/stack-options.d.ts +4 -0
  476. package/dist/init/stack/stack-options.d.ts.map +1 -1
  477. package/dist/init/template-vars.d.ts.map +1 -1
  478. package/dist/init/template-vars.js +2 -0
  479. package/dist/init/template-vars.js.map +1 -1
  480. package/dist/init/validation-dependencies.d.ts +10 -0
  481. package/dist/init/validation-dependencies.d.ts.map +1 -0
  482. package/dist/init/validation-dependencies.js +23 -0
  483. package/dist/init/validation-dependencies.js.map +1 -0
  484. package/dist/init/write-agent-settings.js +4 -3
  485. package/dist/init/write-agent-settings.js.map +1 -1
  486. package/dist/init/write-contracts.d.ts +10 -0
  487. package/dist/init/write-contracts.d.ts.map +1 -0
  488. package/dist/init/write-contracts.js +33 -0
  489. package/dist/init/write-contracts.js.map +1 -0
  490. package/dist/init/write-type-script-configs.d.ts +2 -1
  491. package/dist/init/write-type-script-configs.d.ts.map +1 -1
  492. package/dist/init/write-type-script-configs.js +4 -4
  493. package/dist/init/write-type-script-configs.js.map +1 -1
  494. package/dist/package-manager/default-package-manager.d.ts +8 -0
  495. package/dist/package-manager/default-package-manager.d.ts.map +1 -0
  496. package/dist/package-manager/default-package-manager.js +7 -0
  497. package/dist/package-manager/default-package-manager.js.map +1 -0
  498. package/dist/package-manager/dialect.d.ts +3 -0
  499. package/dist/package-manager/dialect.d.ts.map +1 -0
  500. package/dist/package-manager/dialect.js +2 -0
  501. package/dist/package-manager/dialect.js.map +1 -0
  502. package/dist/package-manager/dialects.d.ts +5 -0
  503. package/dist/package-manager/dialects.d.ts.map +1 -0
  504. package/dist/package-manager/dialects.js +21 -0
  505. package/dist/package-manager/dialects.js.map +1 -0
  506. package/dist/package-manager/in-dialect.d.ts +8 -0
  507. package/dist/package-manager/in-dialect.d.ts.map +1 -0
  508. package/dist/package-manager/in-dialect.js +10 -0
  509. package/dist/package-manager/in-dialect.js.map +1 -0
  510. package/dist/package-manager/lockfiles.d.ts +4 -0
  511. package/dist/package-manager/lockfiles.d.ts.map +1 -0
  512. package/dist/package-manager/lockfiles.js +6 -0
  513. package/dist/package-manager/lockfiles.js.map +1 -0
  514. package/dist/package-manager/package-manager-of.d.ts +4 -0
  515. package/dist/package-manager/package-manager-of.d.ts.map +1 -0
  516. package/dist/package-manager/package-manager-of.js +15 -0
  517. package/dist/package-manager/package-manager-of.js.map +1 -0
  518. package/dist/package-manager/package-manager-vars.d.ts +5 -0
  519. package/dist/package-manager/package-manager-vars.d.ts.map +1 -0
  520. package/dist/package-manager/package-manager-vars.js +13 -0
  521. package/dist/package-manager/package-manager-vars.js.map +1 -0
  522. package/dist/package-manager/pinned-package-managers.d.ts +7 -0
  523. package/dist/package-manager/pinned-package-managers.d.ts.map +1 -0
  524. package/dist/package-manager/pinned-package-managers.js +9 -0
  525. package/dist/package-manager/pinned-package-managers.js.map +1 -0
  526. package/dist/refresh-declarations.d.ts +3 -0
  527. package/dist/refresh-declarations.d.ts.map +1 -0
  528. package/dist/refresh-declarations.js +4 -0
  529. package/dist/refresh-declarations.js.map +1 -0
  530. package/dist/run.d.ts.map +1 -1
  531. package/dist/run.js +10 -2
  532. package/dist/run.js.map +1 -1
  533. package/dist/stack/alias-vars.d.ts +2 -1
  534. package/dist/stack/alias-vars.d.ts.map +1 -1
  535. package/dist/stack/alias-vars.js +6 -3
  536. package/dist/stack/alias-vars.js.map +1 -1
  537. package/dist/templating/render.d.ts.map +1 -1
  538. package/dist/templating/render.js +2 -1
  539. package/dist/templating/render.js.map +1 -1
  540. package/dist/templating/rendering.js +1 -1
  541. package/dist/templating/rendering.js.map +1 -1
  542. package/dist/version.d.ts +1 -1
  543. package/dist/version.js +1 -1
  544. package/dist/workspace/workspace.d.ts +5 -1
  545. package/dist/workspace/workspace.d.ts.map +1 -1
  546. package/dist/workspace/workspace.js +13 -3
  547. package/dist/workspace/workspace.js.map +1 -1
  548. package/package.json +4 -3
  549. package/templates/acl/translator.spec.ts.tpl +1 -1
  550. package/templates/adapter/adapter.declared.ts.tpl +3 -3
  551. package/templates/adapter/adapter.spec.ts.tpl +1 -1
  552. package/templates/adapter/adapter.ts.tpl +1 -1
  553. package/templates/adapter/wiring.tsyringe.tpl +3 -3
  554. package/templates/aggregate/aggregate.spec.ts.tpl +2 -2
  555. package/templates/architecture/extractable.declared.spec.ts.tpl +7 -7
  556. package/templates/architecture/extractable.manual.spec.ts.tpl +8 -4
  557. package/templates/architecture/extractable.tsyringe.spec.ts.tpl +7 -1
  558. package/templates/architecture/wiring.declared.tpl +1 -1
  559. package/templates/architecture/wiring.manual.tpl +1 -1
  560. package/templates/architecture/wiring.tsyringe.tpl +1 -1
  561. package/templates/builder/builder.ts.tpl +1 -1
  562. package/templates/command/handler.declared.ts.tpl +7 -7
  563. package/templates/command/handler.spec.buses.ts.tpl +4 -4
  564. package/templates/command/handler.spec.tsyringe.ts.tpl +5 -5
  565. package/templates/command/handler.ts.tpl +4 -4
  566. package/templates/command/wiring.manual.tpl +2 -2
  567. package/templates/command/wiring.tsyringe.tpl +3 -3
  568. package/templates/context/module.manual.ts.tpl +1 -1
  569. package/templates/context/permission-set.tpl +1 -1
  570. package/templates/context/permissions.spec.ts.tpl +1 -1
  571. package/templates/context/routes.spec.ts.tpl +1 -1
  572. package/templates/context/wiring.declared.tpl +2 -2
  573. package/templates/context/wiring.manual.tpl +1 -1
  574. package/templates/context/wiring.tsyringe.tpl +2 -2
  575. package/templates/docs/asyncapi.json.tpl +12 -0
  576. package/templates/docs/event-catalog.md +3 -0
  577. package/templates/docs/openapi.json.tpl +354 -0
  578. package/templates/domain-error/domain-error.spec.ts.tpl +1 -1
  579. package/templates/domain-event/domain-event.spec.ts.tpl +1 -1
  580. package/templates/domain-service/domain-service.spec.ts.tpl +1 -1
  581. package/templates/e2e/e2e.spec.ts.tpl +2 -2
  582. package/templates/entity/entity.spec.ts.tpl +1 -1
  583. package/templates/event-handler/event-handler.declared.ts.tpl +3 -3
  584. package/templates/event-handler/event-handler.spec.ts.tpl +2 -2
  585. package/templates/event-handler/event-handler.ts.tpl +1 -1
  586. package/templates/event-handler/wiring.manual.tpl +2 -2
  587. package/templates/event-handler/wiring.tsyringe.tpl +2 -2
  588. package/templates/gateway/adapter.declared.ts.tpl +3 -3
  589. package/templates/gateway/adapter.ts.tpl +2 -2
  590. package/templates/gateway/contract.spec.ts.tpl +3 -3
  591. package/templates/gateway/fake.ts.tpl +1 -1
  592. package/templates/gateway/platform-test.declared.tpl +1 -1
  593. package/templates/gateway/platform.declared.tpl +1 -1
  594. package/templates/gateway/wiring.tsyringe.tpl +3 -3
  595. package/templates/init/CLAUDE.md.tpl +5 -2
  596. package/templates/init/README.md.tpl +16 -10
  597. package/templates/init/docker/Dockerfile.tpl +9 -2
  598. package/templates/init/e2e/create-credentials.jwt.ts.tpl +1 -1
  599. package/templates/init/e2e/create-credentials.keycloak.ts.tpl +1 -1
  600. package/templates/init/e2e/create-credentials.none.ts.tpl +2 -2
  601. package/templates/init/e2e/start-application.database.ts.tpl +16 -16
  602. package/templates/init/e2e/start-application.memory.ts.tpl +16 -16
  603. package/templates/init/e2e/test-environment.ts.tpl +1 -1
  604. package/templates/init/jest.config.js.tpl +3 -1
  605. package/templates/init/main.ts.tpl +11 -11
  606. package/templates/init/platform/audit/audit.module.manual.ts.tpl +5 -5
  607. package/templates/init/platform/audit/audit.module.tsyringe.ts.tpl +4 -4
  608. package/templates/init/platform/audit/create-audit.ts.tpl +5 -5
  609. package/templates/init/platform/audit/search-audit-entries.handler.ts.tpl +1 -1
  610. package/templates/init/platform/audit/search-audit-entries.route.ts.tpl +1 -1
  611. package/templates/init/platform/auth/authorization.tsyringe.ts.tpl +2 -2
  612. package/templates/init/platform/auth/create-authenticator.jwt.ts.tpl +1 -1
  613. package/templates/init/platform/auth/create-authenticator.keycloak.ts.tpl +1 -1
  614. package/templates/init/platform/auth/create-authenticator.none.ts.tpl +2 -2
  615. package/templates/init/platform/auth/create-authorizer.abac.ts.tpl +1 -1
  616. package/templates/init/platform/auth/create-authorizer.custom.ts.tpl +2 -2
  617. package/templates/init/platform/auth/create-authorizer.rbac.ts.tpl +1 -1
  618. package/templates/init/platform/auth/create-authorizer.rebac.ts.tpl +3 -3
  619. package/templates/init/platform/auth/create-tuple-store.contract.spec.ts.tpl +1 -1
  620. package/templates/init/platform/auth/custom-authorizer.contract.spec.ts.tpl +1 -1
  621. package/templates/init/platform/auth/http-boundary.ts.tpl +1 -1
  622. package/templates/init/platform/auth/permission-mapping.ts.tpl +1 -1
  623. package/templates/init/platform/auth/permissions.ts.tpl +1 -1
  624. package/templates/init/platform/auth/principal-of.none.ts.tpl +1 -1
  625. package/templates/init/platform/auth/relate-system-actors.ts.tpl +1 -1
  626. package/templates/init/platform/auth/relation-tuples.ts.tpl +2 -2
  627. package/templates/init/platform/auth/security-schemes.none.ts.tpl +1 -1
  628. package/templates/init/platform/buses/create-command-bus.ts.tpl +2 -2
  629. package/templates/init/platform/buses/create-query-bus.ts.tpl +1 -1
  630. package/templates/init/platform/compose-application.manual.ts.tpl +6 -6
  631. package/templates/init/platform/compose-application.tsyringe.ts.tpl +10 -16
  632. package/templates/init/platform/config/app-config.ts.tpl +2 -2
  633. package/templates/init/platform/config/load-config.ts.tpl +3 -3
  634. package/templates/init/platform/create-platform.manual.ts.tpl +16 -16
  635. package/templates/init/platform/database/create-client.prisma.ts.tpl +1 -1
  636. package/templates/init/platform/database/create-data-source.typeorm.ts.tpl +1 -1
  637. package/templates/init/platform/database/data-source.typeorm.ts.tpl +1 -1
  638. package/templates/init/platform/database/database.drizzle.ts.tpl +1 -1
  639. package/templates/init/platform/database/database.prisma.ts.tpl +2 -2
  640. package/templates/init/platform/database/inert-persistence.memory.ts.tpl +2 -2
  641. package/templates/init/platform/database/inert-persistence.pooled.ts.tpl +2 -2
  642. package/templates/init/platform/database/inert-persistence.prisma.ts.tpl +3 -3
  643. package/templates/init/platform/database/inert-persistence.typeorm.ts.tpl +3 -3
  644. package/templates/init/platform/database/journal.drizzle.json +5 -0
  645. package/templates/init/platform/database/open-persistence.contract.spec.ts.tpl +1 -1
  646. package/templates/init/platform/database/open-persistence.memory.ts.tpl +1 -1
  647. package/templates/init/platform/database/open-persistence.pooled.ts.tpl +3 -3
  648. package/templates/init/platform/database/open-persistence.prisma.ts.tpl +3 -3
  649. package/templates/init/platform/database/open-persistence.typeorm.ts.tpl +3 -3
  650. package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +4 -4
  651. package/templates/init/platform/database/open-test-database.knex.ts.tpl +5 -5
  652. package/templates/init/platform/database/open-test-database.prisma.ts.tpl +4 -4
  653. package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +3 -3
  654. package/templates/init/platform/database/persistence-over.drizzle.ts.tpl +2 -2
  655. package/templates/init/platform/database/persistence-over.knex.ts.tpl +2 -2
  656. package/templates/init/platform/database/persistence-over.prisma.ts.tpl +2 -2
  657. package/templates/init/platform/database/persistence-over.typeorm.ts.tpl +2 -2
  658. package/templates/init/platform/database/persistence.orm.ts.tpl +1 -1
  659. package/templates/init/platform/errors.ts.tpl +1 -1
  660. package/templates/init/platform/events/create-event-provider.custom.ts.tpl +2 -2
  661. package/templates/init/platform/events/create-event-provider.kafka.ts.tpl +3 -3
  662. package/templates/init/platform/events/create-event-provider.nats.ts.tpl +2 -2
  663. package/templates/init/platform/events/create-event-provider.rabbitmq.ts.tpl +2 -2
  664. package/templates/init/platform/events/create-event-provider.redis.ts.tpl +2 -2
  665. package/templates/init/platform/events/custom-event-bus.contract.spec.ts.tpl +1 -1
  666. package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
  667. package/templates/init/platform/events/start-outbox-relay.ts.tpl +1 -1
  668. package/templates/init/platform/http/create-app-module.ts.tpl +1 -1
  669. package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -4
  670. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +4 -4
  671. package/templates/init/platform/http/start-http-server.nest.ts.tpl +5 -5
  672. package/templates/init/platform/http/with-documentation.ts.tpl +2 -2
  673. package/templates/init/platform/lay-foundations.tsyringe.ts.tpl +5 -5
  674. package/templates/init/platform/platform-test.module.tsyringe.ts.tpl +1 -1
  675. package/templates/init/platform/platform.manual.ts.tpl +3 -3
  676. package/templates/init/platform/platform.module.tsyringe.ts.tpl +8 -8
  677. package/templates/init/platform/resilience/adapter-aspects.ts.tpl +2 -2
  678. package/templates/init/platform/resilience/default-resilience.ts.tpl +1 -1
  679. package/templates/init/platform/resilience/own-policy.ts.tpl +1 -1
  680. package/templates/init/platform/tracing.ts.tpl +2 -2
  681. package/templates/init/pnpm-workspace.yaml +8 -0
  682. package/templates/init/rules/application.md.tpl +8 -2
  683. package/templates/init/rules/infrastructure.md.tpl +3 -3
  684. package/templates/init/scripts/events.ts.tpl +1 -1
  685. package/templates/init/scripts/openapi.ts.tpl +6 -6
  686. package/templates/integration-event/audited.tpl +1 -1
  687. package/templates/integration-event/integration-event.class-validator.ts.tpl +1 -1
  688. package/templates/integration-event/integration-event.custom.ts.tpl +1 -1
  689. package/templates/integration-event/publisher.declared.ts.tpl +4 -4
  690. package/templates/integration-event/publisher.spec.ts.tpl +2 -2
  691. package/templates/integration-event/publisher.ts.tpl +2 -2
  692. package/templates/integration-event/wiring.manual.tpl +2 -2
  693. package/templates/integration-event/wiring.tsyringe.tpl +2 -2
  694. package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -3
  695. package/templates/integration-handler/integration-handler.spec.ts.tpl +2 -2
  696. package/templates/integration-handler/integration-handler.ts.tpl +1 -1
  697. package/templates/integration-handler/wiring.manual.tpl +3 -3
  698. package/templates/integration-handler/wiring.tsyringe.tpl +2 -2
  699. package/templates/job/job.declared.ts.tpl +3 -3
  700. package/templates/job/job.spec.buses.ts.tpl +2 -2
  701. package/templates/job/job.spec.tsyringe.ts.tpl +2 -2
  702. package/templates/job/job.ts.tpl +1 -1
  703. package/templates/job/wiring.manual.tpl +1 -1
  704. package/templates/job/wiring.tsyringe.tpl +1 -1
  705. package/templates/pipeline/biome.json.tpl +2 -1
  706. package/templates/pipeline/github/actions/setup/action.yml.tpl +37 -0
  707. package/templates/pipeline/github/scripts/start-postgres.sh +47 -0
  708. package/templates/pipeline/github/workflows/ci.yml +68 -110
  709. package/templates/pipeline/github/workflows/pr-title.yml +1 -5
  710. package/templates/pipeline/gitlab/{gitlab-ci.yml → gitlab-ci.yml.tpl} +59 -31
  711. package/templates/pipeline/knip.json.tpl +9 -10
  712. package/templates/pipeline/package-scripts.json +1 -1
  713. package/templates/pipeline/vitest.config.ts.tpl +7 -3
  714. package/templates/policy/policy.declared.ts.tpl +1 -1
  715. package/templates/policy/policy.spec.declared.ts.tpl +1 -1
  716. package/templates/policy/policy.spec.ts.tpl +1 -1
  717. package/templates/policy/policy.ts.tpl +1 -1
  718. package/templates/policy/registration.tpl +1 -1
  719. package/templates/port/fake.ts.tpl +1 -1
  720. package/templates/projection/projection.spec.ts.tpl +17 -0
  721. package/templates/projection/projection.ts.tpl +11 -0
  722. package/templates/query/handler.declared.ts.tpl +4 -4
  723. package/templates/query/handler.spec.buses.ts.tpl +5 -5
  724. package/templates/query/handler.spec.tsyringe.ts.tpl +6 -6
  725. package/templates/query/handler.ts.tpl +3 -3
  726. package/templates/query/query.ts.tpl +1 -1
  727. package/templates/query/reader.fake.ts.tpl +2 -2
  728. package/templates/query/reader.in-memory.ts.tpl +4 -4
  729. package/templates/query/reader.port.ts.tpl +2 -2
  730. package/templates/query/search.handler.declared.ts.tpl +6 -6
  731. package/templates/query/search.handler.spec.buses.ts.tpl +5 -5
  732. package/templates/query/search.handler.spec.tsyringe.ts.tpl +6 -6
  733. package/templates/query/search.handler.ts.tpl +4 -4
  734. package/templates/query/search.query.ts.tpl +1 -1
  735. package/templates/query/search.reader.fake.ts.tpl +2 -2
  736. package/templates/query/search.reader.in-memory.ts.tpl +3 -3
  737. package/templates/query/search.reader.port.ts.tpl +1 -1
  738. package/templates/query/search.reader.spec.ts.tpl +2 -2
  739. package/templates/query/search.wiring.manual.tpl +3 -3
  740. package/templates/query/search.wiring.tsyringe.tpl +4 -4
  741. package/templates/query/wiring.manual.tpl +3 -3
  742. package/templates/query/wiring.tsyringe.tpl +4 -4
  743. package/templates/repository/contract.spec.ts.tpl +5 -5
  744. package/templates/repository/drizzle/mapper.ts.tpl +2 -2
  745. package/templates/repository/drizzle/repository.ts.tpl +9 -17
  746. package/templates/repository/drizzle/schema-export.tpl +1 -1
  747. package/templates/repository/fake.ts.tpl +2 -2
  748. package/templates/repository/knex/mapper.ts.tpl +2 -2
  749. package/templates/repository/knex/repository.ts.tpl +10 -30
  750. package/templates/repository/knex/schema-export.tpl +1 -1
  751. package/templates/repository/knex/tables.ts.tpl +1 -1
  752. package/templates/repository/none/repository.ts.tpl +3 -3
  753. package/templates/repository/prisma/mapper.ts.tpl +2 -2
  754. package/templates/repository/prisma/repository.ts.tpl +6 -9
  755. package/templates/repository/repository.ts.tpl +1 -1
  756. package/templates/repository/typeorm/mapper.ts.tpl +2 -2
  757. package/templates/repository/typeorm/repository.ts.tpl +9 -12
  758. package/templates/repository/typeorm/schema-export.tpl +1 -1
  759. package/templates/repository/typeorm/table.tpl +1 -1
  760. package/templates/repository/wiring.manual.tpl +1 -1
  761. package/templates/repository/wiring.tsyringe.tpl +2 -2
  762. package/templates/route/route.search.ts.tpl +1 -1
  763. package/templates/route/route.spec.ts.tpl +1 -1
  764. package/templates/route/routes.on-tsyringe.tpl +1 -1
  765. package/templates/route/wiring.manual.tpl +1 -1
  766. package/templates/service/main.ts.tpl +11 -11
  767. package/templates/value-object/value-object.spec.ts.tpl +1 -1
  768. package/templates/worker/main.ts.tpl +9 -9
  769. package/dist/alias/platform-alias.d.ts +0 -4
  770. package/dist/alias/platform-alias.d.ts.map +0 -1
  771. package/dist/alias/platform-alias.js +0 -7
  772. package/dist/alias/platform-alias.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler-resolution.d.ts","sourceRoot":"","sources":["../../../src/check/alias/compiler-resolution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQhD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,EAAE,CAOpE"}
@@ -0,0 +1,47 @@
1
+ import { compilerResolutionOf, specifierSuffix } from '../../alias/index.js';
2
+ import { ALIAS_FILES } from './alias-files.js';
3
+ import { compilerOptionsOf } from './compiler-options-of.js';
4
+ const { build: BUILD, typeCheck: TYPE_CHECK } = ALIAS_FILES;
5
+ /** The resolutions of the compiler that read a specifier as Node does: the extension is required. */
6
+ const AS_NODE = ['node16', 'node18', 'node20', 'nodenext'];
7
+ /**
8
+ * "module" and "moduleResolution" of the two tsconfig files against "importExtension": without
9
+ * an extension the compiler resolves as a bundler does, with the `node` condition, and emits
10
+ * ECMAScript modules; with one it resolves as Node does. Under the other setting the compiler would refuse every import of the
11
+ * project, or accept a spelling the build does not rewrite.
12
+ */
13
+ export function compilerResolution(inspected) {
14
+ const checked = compilerOptionsOf(inspected.project, TYPE_CHECK);
15
+ const built = compilerOptionsOf(inspected.project, BUILD);
16
+ const own = built !== undefined && written(built) !== written(checked ?? {}) ? [[BUILD, built]] : [];
17
+ const read = [...(checked === undefined ? [] : [[TYPE_CHECK, checked]]), ...own];
18
+ return read.flatMap(([file, options]) => (follows(inspected, options) ? [] : [unlike(inspected, file)]));
19
+ }
20
+ function written(options) {
21
+ return JSON.stringify([options['module'], options['moduleResolution'], options['customConditions']]);
22
+ }
23
+ function follows({ project }, options) {
24
+ const module = lower(options['module']);
25
+ const resolution = lower(options['moduleResolution']);
26
+ if (specifierSuffix(project.config.importExtension) === '') {
27
+ const conditions = Array.isArray(options['customConditions']) ? options['customConditions'] : [];
28
+ return module === 'esnext' && resolution === 'bundler' && conditions.includes('node');
29
+ }
30
+ // A project written before the key existed may inherit both from a package: only a written value that contradicts it is reported.
31
+ return [module, resolution].every((value) => value === undefined || AS_NODE.includes(value));
32
+ }
33
+ function lower(value) {
34
+ return typeof value === 'string' ? value.toLowerCase() : undefined;
35
+ }
36
+ function unlike({ project, report }, file) {
37
+ const { importExtension } = project.config;
38
+ const expected = compilerResolutionOf(importExtension);
39
+ const reason = specifierSuffix(importExtension) === ''
40
+ ? 'an import names its file without an extension, which the compiler only resolves as a bundler does, and the build completes the ECMAScript modules it emits with the ".js" Node needs'
41
+ : 'an import ends with ".js", and the compiler has to resolve it as Node does to refuse any other spelling';
42
+ const conditions = expected.customConditions === undefined
43
+ ? ''
44
+ : `, with "customConditions": ${JSON.stringify(expected.customConditions)} so that the compiler takes in a package the entry Node takes`;
45
+ return report({ file, line: 1 }, `"module" and "moduleResolution" of ${file} are not what "importExtension" gives.`, `Write "module": "${expected.module}" and "moduleResolution": "${expected.moduleResolution}" under "compilerOptions" in ${TYPE_CHECK}, which ${BUILD} extends${conditions}: ${reason}.`);
46
+ }
47
+ //# sourceMappingURL=compiler-resolution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler-resolution.js","sourceRoot":"","sources":["../../../src/check/alias/compiler-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC;AAC5D,qGAAqG;AACrG,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AAI3D;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAoB;IACrD,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACjE,MAAM,KAAK,GAAG,iBAAi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U,KAAK,MAAM,GAAG,CACxL,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import fs from 'node:fs';
2
- import { moduleNameMapper } from '../../alias/index.js';
2
+ import { moduleNameMapper, specifierSuffix } from '../../alias/index.js';
3
3
  import { escapeRegExp } from '../text/escape-reg-exp.js';
4
4
  import { ALIAS_FILES } from './alias-files.js';
5
5
  import { readProjectFile } from './read-project-file.js';
@@ -30,12 +30,12 @@ function vitest({ report }, file, text) {
30
30
  report({ file, line: 1 }, `${file} does not resolve the import alias from ${TYPE_CHECK}.`, `Add \`resolve: { tsconfigPaths: true }\` to the config: vitest then reads the "paths" of ${TYPE_CHECK}; without it a spec that imports by an alias fails on its first import.`),
31
31
  ];
32
32
  }
33
- function jest({ report, roots }, file, text) {
34
- return Object.entries(moduleNameMapper(roots))
33
+ function jest({ report, roots, project }, file, text) {
34
+ return Object.entries(moduleNameMapper(roots, specifierSuffix(project.config.importExtension)))
35
35
  .filter(([pattern, target]) => !mapped(text, pattern, target))
36
36
  .map(([pattern, target]) => {
37
37
  const entry = `'${pattern.replaceAll('\\', '\\\\')}': '${target}'`;
38
- return report({ file, line: 1 }, `${file} does not map the import alias "${pattern}" as ${TYPE_CHECK} declares it.`, `Write ${entry} under "moduleNameMapper": jest does not read tsconfig, so the mapping is repeated there, and a spec would otherwise fail on its first alias import or load another file.`);
38
+ return report({ file, line: 1 }, `${file} does not map the import alias "${pattern}" as ${TYPE_CHECK} declares it.`, `Write ${entry} under "moduleNameMapper": jest does not read tsconfig, so the mapping is repeated there, with the ending "importExtension" gives an import, and a spec would otherwise fail on its first alias import or load another file.`);
39
39
  });
40
40
  }
41
41
  function mapped(text, pattern, target) {
@@ -1 +1 @@
1
- {"version":3,"file":"test-runners.js","sourceRoot":"","sources":["../../../src/check/alias/test-runners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD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,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7F,CAAC;AAED,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EA2ChC,CAAC"}
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAiDhC,CAAC"}
@@ -29,6 +29,12 @@ export const ROLES = [
29
29
  specFor: ['.event-handler.ts'],
30
30
  },
31
31
  { directory: 'application/scheduling', suffixes: ['.job.ts'], oneConcept: true, specFor: ['.job.ts'] },
32
+ {
33
+ directory: 'application/projections',
34
+ suffixes: ['.projection.ts'],
35
+ oneConcept: true,
36
+ specFor: ['.projection.ts'],
37
+ },
32
38
  { directory: 'application/integration/publishers', suffixes: ['.publisher.ts'] },
33
39
  {
34
40
  directory: 'application/integration/handlers',
@@ -1 +1 @@
1
- {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAoB;IACpC,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjD,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,e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
1
+ {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA+D7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA8D7C,CAAC"}
@@ -20,6 +20,7 @@ import { contextNoCycle } from '../rules/context-no-cycle.js';
20
20
  import { contextPublishedLanguageIsAContract } from '../rules/context-published-language-is-a-contract.js';
21
21
  import { contextPublishedLanguageOnly } from '../rules/context-published-language-only.js';
22
22
  import { declarationsBarrelCurrent } from '../rules/declarations-barrel-current.js';
23
+ import { declarationsConstructorInjection } from '../rules/declarations-constructor-injection.js';
23
24
  import { declarationsRoleDeclared } from '../rules/declarations-role-declared.js';
24
25
  import { domainEventsDispatchedOnSave } from '../rules/domain-events-dispatched-on-save.js';
25
26
  import { domainEventsTransactionalBeforeCommit } from '../rules/domain-events-transactional-before-commit.js';
@@ -30,6 +31,7 @@ import { eventsOutboxRequired } from '../rules/events-outbox-required.js';
30
31
  import { governanceRecordedDeviation } from '../rules/governance-recorded-deviation.js';
31
32
  import { importsAliasDeclared } from '../rules/imports-alias-declared.js';
32
33
  import { importsAliasOnly } from '../rules/imports-alias-only.js';
34
+ import { importsExtension } from '../rules/imports-extension.js';
33
35
  import { languageGlossaryTerm } from '../rules/language-glossary-term.js';
34
36
  import { languageNoTechnicalName } from '../rules/language-no-technical-name.js';
35
37
  import { layerApplicationInward } from '../rules/layer-application-inward.js';
@@ -109,6 +111,7 @@ export const ARCHITECTURE_RULES = [
109
111
  compositionOnlyInModule,
110
112
  declarationsRoleDeclared,
111
113
  declarationsBarrelCurrent,
114
+ declarationsConstructorInjection,
112
115
  portsAbstractClass,
113
116
  portsImplementsNeverExtends,
114
117
  portsNoTokenConstant,
@@ -117,6 +120,7 @@ export const ARCHITECTURE_RULES = [
117
120
  schedulingJobTriggersUseCase,
118
121
  schedulingJobName,
119
122
  importsAliasOnly,
123
+ importsExtension,
120
124
  importsAliasDeclared,
121
125
  ];
122
126
  //# sourceMappingURL=architecture-rules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mCAAmC,EAAE,MAAM,sD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mB;IACnB,aAAa;IACb,iBAAiB;IACjB,uBAAuB;IACvB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;CACrB,CAAC"}
1
+ {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAA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,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,gHAAgH;AAChH,MAAM,CAAC,MAAM,kBAAkB,GAAoB;IACjD,iBAAiB;IACjB,sBAAsB;IACtB,iCAAiC;IACjC,iCAAiC;IACjC,4BAA4B;IAC5B,2BAA2B;IAC3B,mCAAmC;IACnC,cAAc;IACd,UAAU;IACV,cAAc;IACd,YAAY;IACZ,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,gCAAgC;IAChC,WAAW;IACX,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,uBAAuB;IACvB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;CACrB,CAAC"}
@@ -11,6 +11,8 @@ export declare class ConfigInspection {
11
11
  undeclaredDirectories(): Violation[];
12
12
  ruleSettings(known: readonly string[]): Violation[];
13
13
  guardMode(): Violation[];
14
+ /** Another value is read as `js`: the config says something no tool does. */
15
+ importExtension(): Violation[];
14
16
  /** A limit above the ceiling is read as the ceiling: the config says something the checker does not do. */
15
17
  functionLinesLimit(): Violation[];
16
18
  /** A commit limit that is not a positive integer is read as its default: the config says something nothing does. */
@@ -1 +1 @@
1
- {"version":3,"file":"config-inspection.d.ts","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMvD,qGAAqG;AACrG,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFzB,YACmB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EAC7B;IAEJ,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,SAAS,EAAE,CAMjE;IAED,qBAAqB,IAAI,SAAS,EAAE,CAanC;IAED,YAAY,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAAE,CAoBlD;IAED,SAAS,IAAI,SAAS,EAAE,CAcvB;IAED,2GAA2G;IAC3G,kBAAkB,IAAI,SAAS,EAAE,CAiBhC;IAED,oHAAoH;IACpH,YAAY,IAAI,SAAS,EAAE,CAI1B;IAED,gHAAgH;IAChH,kBAAkB,IAAI,SAAS,EAAE,CAIhC;IAED,qGAAqG;IACrG,oBAAoB,IAAI,SAAS,EAAE,CA4BlC;IAED,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,QAAQ;IAgChB,OAAO,CAAC,QAAQ;IAiBhB,qFAAqF;IACrF,OAAO,CAAC,QAAQ;CAGjB"}
1
+ {"version":3,"file":"config-inspection.d.ts","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,aAAa,EAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMvD,qGAAqG;AACrG,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFzB,YACmB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EAC7B;IAEJ,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,SAAS,EAAE,CAMjE;IAED,qBAAqB,IAAI,SAAS,EAAE,CAanC;IAED,YAAY,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAAE,CAoBlD;IAED,SAAS,IAAI,SAAS,EAAE,CAcvB;IAED,6EAA6E;IAC7E,eAAe,IAAI,SAAS,EAAE,CAc7B;IAED,2GAA2G;IAC3G,kBAAkB,IAAI,SAAS,EAAE,CAiBhC;IAED,oHAAoH;IACpH,YAAY,IAAI,SAAS,EAAE,CAI1B;IAED,gHAAgH;IAChH,kBAAkB,IAAI,SAAS,EAAE,CAIhC;IAED,qGAAqG;IACrG,oBAAoB,IAAI,SAAS,EAAE,CA4BlC;IAED,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,QAAQ;IAgChB,OAAO,CAAC,QAAQ;IAiBhB,qFAAqF;IACrF,OAAO,CAAC,QAAQ;CAGjB"}
@@ -1,4 +1,4 @@
1
- import { CLASSIFICATIONS, commitLimitProblems, coverageProblems, CONFIG_FILE, FUNCTION_LINES_CEILING, GUARD_MODES, isOneOf, RELATIONSHIPS, SEVERITIES, } from '../../config/index.js';
1
+ import { CLASSIFICATIONS, commitLimitProblems, coverageProblems, CONFIG_FILE, FUNCTION_LINES_CEILING, GUARD_MODES, IMPORT_EXTENSIONS, isOneOf, RELATIONSHIPS, SEVERITIES, } from '../../config/index.js';
2
2
  import { isRecord } from '../support/is-record.js';
3
3
  import { lineOf } from '../support/line-of.js';
4
4
  import { lineOfSequence } from '../support/line-of-sequence.js';
@@ -49,6 +49,16 @@ export class ConfigInspection {
49
49
  this.inConfig('guard', `"guard" is "${guard}".`, `Use one of: ${GUARD_MODES.join(', ')} (how the editor hook reacts to a violation: refuse the write, only report it, or stay silent).`),
50
50
  ];
51
51
  }
52
+ /** Another value is read as `js`: the config says something no tool does. */
53
+ importExtension() {
54
+ const { importExtension } = this.project.config;
55
+ if (isOneOf(IMPORT_EXTENSIONS, importExtension)) {
56
+ return [];
57
+ }
58
+ return [
59
+ this.inConfig('importExtension', `"importExtension" is "${importExtension}".`, `Use one of: ${IMPORT_EXTENSIONS.join(', ')} (whether an import of a file of the project is written without an extension, or with the ".js" of the file the compiler emits; a config without the key is read as "js").`),
60
+ ];
61
+ }
52
62
  /** A limit above the ceiling is read as the ceiling: the config says something the checker does not do. */
53
63
  functionLinesLimit() {
54
64
  const limits = rawConfig(this.project)['limits'];
@@ -1 +1 @@
1
- {"version":3,"file":"config-inspection.js","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,sBAAsB,EACtB,WAAW,EACX,OAAO,EACP,aAAa,EACb,UAAU,GAGX,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,qGAAqG;AACrG,MAAM,OAAO,gBAAgB;IAER,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OAAO,CAAC,UAAU,EAAE,IAAI,MAAM,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;IAChH,CAAC;CACF;AAED,SAAS,SAAS,CAAC,KAAc;IAC/B,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5C,MAAM,GAAG,GAAG,CAAC,GAAW,EAAW,EAAE;QACnC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;IAC1D,CAAC,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACjB,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC;IACvD,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"config-inspection.js","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,UAAU,GAGX,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,qGAAqG;AACrG,MAAM,OAAO,gBAAgB;IAER,OAAO;IACP,MAAM;IAF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AI,CAAC;QAE9G,OAAO;YACL,IAAI,CAAC,QAAQ,CACX,IAAI,EACJ,gBAAgB,IAAI,qBAAqB,WAAW,IAAI,IAAI,kBAAkB,EAC9E,kBAAkB,MAAM,iCAAiC,CAC1D;SACF,CAAC;IACJ,CAAC;IAED,qFAAqF;IAC7E,QAAQ,CAAC,MAAc,EAAE,OAAe,EAAE,GAAW;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,MAAM,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;IAChH,CAAC;CACF;AAED,SAAS,SAAS,CAAC,KAAc;IAC/B,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5C,MAAM,GAAG,GAAG,CAAC,GAAW,EAAW,EAAE;QACnC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;IAC1D,CAAC,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACjB,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC;IACvD,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { DECLARATION_DECORATORS } from '../../declared/index.js';
1
+ import { DECLARATION_DECORATORS } from '../../declared/declared-role.js';
2
2
  import { braceDepthAt } from '../text/brace-depth-at.js';
3
3
  import { BRACKETS } from '../text/brackets.js';
4
4
  import { DECLARATIONS_ENTRY } from './declarations-entry.js';
@@ -1 +1 @@
1
- {"version":3,"file":"classes-of.js","sourceRoot":"","sources":["../../../src/check/declarations/classes-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,MAAM,KAAK,GAAG,uFAAuF,CAAC;AACtG,MAAM,cAAc,GAAG,kCAAkC,CAAC;AAC1D,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,MAAM,IAAI,GAAG,IAAI,OAAO,EAAkC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,IAAU;IAClC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE7B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAElC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAExB,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,WAAW,CAAC,IAAU;IAC7B,MAAM,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEtB,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SAC7B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACxD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,MAAM,MAAM,GAC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EAAE,CAAC;YACjE,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAED,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -2,9 +2,9 @@ export const CONTEXT_DOCS = {
2
2
  'context/published-language-only': {
3
3
  why: 'A bounded context owns its model and must be free to change it. The published language is the only part designed for others; importing anything else couples two models and turns every refactoring into a cross-team negotiation.',
4
4
  bad: `// contexts/shipping/application/...
5
- import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate.js';`,
5
+ import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';`,
6
6
  good: `// contexts/shipping/application/...
7
- import type { InvoiceIssuedV1 } from '@/contexts/billing/published-language/index.js';`,
7
+ import type { InvoiceIssuedV1 } from '@/contexts/billing/published-language/index';`,
8
8
  },
9
9
  'context/declared-relationship': {
10
10
  why: 'The context map is a strategic decision, not a side effect of an import. Declaring the upstream and the pattern keeps the map reviewable and lets the cycle check work.',
@@ -15,7 +15,7 @@ import type { InvoiceIssuedV1 } from '@/contexts/billing/published-language/inde
15
15
  'context/published-language-is-a-contract': {
16
16
  why: 'A contract that re-exports a domain class is no contract: consumers get the internal model and its behaviour through the back door. The published language holds serializable types that are versioned on purpose.',
17
17
  bad: `// published-language/index.ts
18
- export { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate.js';`,
18
+ export { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';`,
19
19
  good: `// published-language/invoice-issued.v1.integration-event.ts
20
20
  export interface InvoiceIssuedV1Payload { readonly invoiceId: string }`,
21
21
  },
@@ -29,16 +29,16 @@ export interface InvoiceIssuedV1Payload { readonly invoiceId: string }`,
29
29
  'context/extractable': {
30
30
  why: 'A bounded context is a deployable unit in waiting. Moving one to its own service must change a composition root and adapters, never domain or application code. A module that wires another context, a repository that reads its tables, a handler that loads its aggregates or a map shared through an export all hold only while both live in one process and one database. In the declared style the wiring is written on the classes: a role file that imports a port of another context (anything of its domain/repositories/*.repository.ts or application/ports/*.port.ts) ties the composition of the two, so ports come from the context itself, the kernel, @ddd-ts-kit/auth and the platform.',
31
31
  bad: `// contexts/shipping/infrastructure/persistence/drizzle-parcel.repository.ts
32
- import { invoices } from '@/contexts/billing/infrastructure/persistence/invoice.schema.js';
32
+ import { invoices } from '@/contexts/billing/infrastructure/persistence/invoice.schema';
33
33
  export const cache = new Map<string, Parcel>();
34
34
  // contexts/shipping/application/commands/ship-parcel/ship-parcel.handler.ts, declared style
35
- import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';`,
35
+ import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';`,
36
36
  good: `// contexts/shipping/application/ports/invoice-status.gateway.port.ts
37
37
  export abstract class InvoiceStatusGateway { abstract isPaid(invoiceId: string): Promise<boolean>; }
38
38
  // contexts/shipping/infrastructure/external/in-process-invoice-status.gateway.ts
39
- import type { InvoiceStatus } from '@/contexts/billing/published-language/index.js';
39
+ import type { InvoiceStatus } from '@/contexts/billing/published-language/index';
40
40
  // contexts/shipping/application/commands/ship-parcel/ship-parcel.handler.ts, declared style
41
- import { InvoiceStatusGateway } from '@/contexts/shipping/application/ports/invoice-status.gateway.port.js';`,
41
+ import { InvoiceStatusGateway } from '@/contexts/shipping/application/ports/invoice-status.gateway.port';`,
42
42
  },
43
43
  };
44
44
  //# sourceMappingURL=context-docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-docs.js","sourceRoot":"","sources":["../../../src/check/explain/context-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,iCAAiC,EAAE;QACjC,GAAG,EAAE,oOAAoO;QACzO,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;uFAC6E;KACpF;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,yKAAyK;QAC9K,GAAG,EAAE,4FAA4F;QACjG,IAAI,EAAE;kFACwE;KAC/E;IACD,0CAA0C,EAAE;QAC1C,GAAG,EAAE,oNAAoN;QACzN,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;uEAC6D;KACpE;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,sLAAsL;QAC3L,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;wDAC8C;KACrD;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,0qBAA0qB;QAC/qB,GAAG,EAAE;;;;kGAIyF;QAC9F,IAAI,EAAE;;;;;6GAKmG;KAC1G;CACF,CAAC"}
1
+ {"version":3,"file":"context-docs.js","sourceRoot":"","sources":["../../../src/check/explain/context-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,iCAAiC,EAAE;QACjC,GAAG,EAAE,oOAAoO;QACzO,GAAG,EAAE;kFACyE;QAC9E,IAAI,EAAE;oFAC0E;KACjF;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,yKAAyK;QAC9K,GAAG,EAAE,4FAA4F;QACjG,IAAI,EAAE;kFACwE;KAC/E;IACD,0CAA0C,EAAE;QAC1C,GAAG,EAAE,oNAAoN;QACzN,GAAG,EAAE;kFACyE;QAC9E,IAAI,EAAE;uEAC6D;KACpE;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,sLAAsL;QAC3L,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;wDAC8C;KACrD;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,0qBAA0qB;QAC/qB,GAAG,EAAE;;;;+FAIsF;QAC3F,IAAI,EAAE;;;;;0GAKgG;KACvG;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"imports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6B1D,CAAC"}
1
+ {"version":3,"file":"imports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4C1D,CAAC"}
@@ -1,26 +1,41 @@
1
1
  export const IMPORTS_DOCS = {
2
2
  'imports/alias-only': {
3
- why: 'An alias names a file from the root of the project: the import reads the same from every file, says which context and which layer it reaches without counting "../", and does not change when the importing file moves. One way of writing an import also means one thing to review and one thing for the boundary rules to read: the checker, ESLint and dependency-cruiser resolve an alias exactly as they resolve a relative path, so no boundary is crossed by choosing the other spelling. The rule holds under the source root, test/ and scripts/, the same directory included, for import, export ... from and import(). The alias is declared once, under "paths" in tsconfig.json, and the build rewrites it into a relative path in the compiled output, which runs with plain `node`. An alias path with a "." or ".." segment is refused too, since it could name a file outside its directory. The compiler reports an alias that names no file; a JavaScript file at the project root (a config, a migration) is not judged. ESLint fixes the import (`eslint --fix`).',
3
+ why: 'An alias names a file from the root of the project: the import reads the same from every file, says which context and which layer it reaches without counting "../", and does not change when the importing file moves. One way of writing an import also means one thing to review and one thing for the boundary rules to read: the checker, ESLint and dependency-cruiser resolve an alias exactly as they resolve a relative path, so no boundary is crossed by choosing the other spelling. The rule holds under the source root, test/ and scripts/, the same directory included, for import, export ... from and import(). The alias is declared once, under "paths" in tsconfig.json, and the build rewrites it into a relative path in the compiled output, which runs with plain `node`. An alias path with a "." or ".." segment is refused too, since it could name a file outside its directory. The compiler reports an alias that names no file; a JavaScript file at the project root (a config, a migration) is not judged. ESLint fixes the import (`eslint --fix`) and writes it with the ending "importExtension" asks for, which `imports/extension` holds.',
4
4
  bad: `// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
5
- import { Invoice } from '../../../domain/aggregates/invoice.aggregate.js';
6
- import { IssueInvoiceCommand } from './issue-invoice.command.js';`,
5
+ import { Invoice } from '../../../domain/aggregates/invoice.aggregate';
6
+ import { IssueInvoiceCommand } from './issue-invoice.command';`,
7
7
  good: `// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
8
- import { IssueInvoiceCommand } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command.js';
9
- import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate.js';
8
+ import { IssueInvoiceCommand } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
9
+ import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
10
10
  // test/e2e/issue-invoice.e2e.spec.ts
11
- import { startApplication } from '$test/e2e/support/start-application.js';`,
11
+ import { startApplication } from '$test/e2e/support/start-application';`,
12
+ },
13
+ 'imports/extension': {
14
+ why: 'An import of a file of the project has one spelling, and "importExtension" in ddd-ts-kit.config.json says which. Under "none", the default of a new project, it names the file without an extension: the compiler resolves as a bundler does ("moduleResolution": "Bundler"), which still reports a file that does not exist but would also accept ".js", so this rule is what refuses it. Under "js", which is also what a config without the key means, it ends with the ".js" of the file the compiler emits: the compiler resolves as Node does and refuses any other spelling itself (TS2835); this rule says it in the words of the project and ESLint fixes it. Node needs the extension at run time either way: `ddd-ts-kit build-aliases` rewrites each alias of the compiled output into a relative path ending in ".js". It names one file per specifier and guesses nothing, so under "none" an alias never names a directory: write ".../published-language/index", not ".../published-language"; this checker reports that case, which needs the disk. Only a specifier that starts with an alias of the project is judged: a package subpath that ends like a file name ("zod/v4/core.js") is left alone, and a relative import belongs to imports/alias-only. A dot in a file name is not an extension: "invoice.aggregate" is written without one. To move a project from one spelling to the other: change "importExtension", write the "module" and "moduleResolution" that imports/alias-declared then asks for, run `eslint --fix` and the formatter.',
15
+ bad: `// ddd-ts-kit.config.json
16
+ "importExtension": "none"
17
+ // src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
18
+ import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
19
+ import { InvoiceIssued } from '@/contexts/billing/published-language';`,
20
+ good: `// ddd-ts-kit.config.json
21
+ "importExtension": "none"
22
+ // src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
23
+ import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
24
+ import { InvoiceIssued } from '@/contexts/billing/published-language/index';`,
12
25
  },
13
26
  'imports/alias-declared': {
14
- why: 'An alias is declared in one place and resolved by many tools: the compiler, the dev runner, the test runner, ESLint, the checker, dependency-cruiser, knip, and the build that makes the output runnable. If two of them disagree, the type check passes on one file while production loads another, or a boundary rule stops seeing an import. So there is one source a person edits, "importAlias" in ddd-ts-kit.config.json, and one declaration derived from it that the tools read, "paths" in tsconfig.json. Node reads neither: the compiler emits an alias as it was written, so `ddd-ts-kit build-aliases` rewrites each one into a relative path after the compiler, and the output runs with plain `node`. The rule compares "paths" (tsconfig.json and tsconfig.build.json) with "importAlias", refuses a second entry under an alias, a "baseUrl" and a knip "paths"; checks that vitest and dependency-cruiser read tsconfig and that jest, which does not, repeats the same mapping; reports a script that compiles without the rewrite step and a tsx script under another tsconfig. An alias is "@/" or "$<name>/": neither can be the name of a package, so no installed dependency can ever take the place of a file of the project; "#<name>/" (a Node subpath import) and "@<name>/" (the name of a scope) are refused.',
27
+ why: 'An alias is declared in one place and resolved by many tools: the compiler, the dev runner, the test runner, ESLint, the checker, dependency-cruiser, knip, and the build that makes the output runnable. If two of them disagree, the type check passes on one file while production loads another, or a boundary rule stops seeing an import. So there is one source a person edits, "importAlias" in ddd-ts-kit.config.json, and one declaration derived from it that the tools read, "paths" in tsconfig.json. Node reads neither: the compiler emits an alias as it was written, so `ddd-ts-kit build-aliases` rewrites each one into a relative path after the compiler, and the output runs with plain `node`. The rule compares "paths" (tsconfig.json and tsconfig.build.json) with "importAlias", refuses a second entry under an alias, a "baseUrl" and a knip "paths"; checks that vitest and dependency-cruiser read tsconfig and that jest, which does not, repeats the same mapping; reports a script that compiles without the rewrite step and a tsx script under another tsconfig. The ending of an import has one source too, "importExtension", and three declarations follow it: "module" and "moduleResolution" of tsconfig.json ("ESNext" and "Bundler" without an extension, a Node resolution with one), the pattern of each jest mapping, and the build step, which writes the ".js" Node needs. An alias is "@/" or "$<name>/": neither can be the name of a package, so no installed dependency can ever take the place of a file of the project; "#<name>/" (a Node subpath import) and "@<name>/" (the name of a scope) are refused.',
15
28
  bad: `// ddd-ts-kit.config.json
16
- "importAlias": "@/"
29
+ "importAlias": "@/", "importExtension": "none"
17
30
  // tsconfig.json
31
+ "moduleResolution": "NodeNext",
18
32
  "paths": { "@/*": ["./dist/src/*"] }
19
33
  // package.json
20
34
  "build": "tsc -p tsconfig.build.json"`,
21
35
  good: `// ddd-ts-kit.config.json
22
- "importAlias": "@/"
36
+ "importAlias": "@/", "importExtension": "none"
23
37
  // tsconfig.json
38
+ "module": "ESNext", "moduleResolution": "Bundler", "customConditions": ["node"],
24
39
  "paths": { "@/*": ["./src/*"], "$test/*": ["./test/*"], "$scripts/*": ["./scripts/*"] }
25
40
  // package.json
26
41
  "build": "tsc -p tsconfig.build.json && ddd-ts-kit build-aliases"
@@ -1 +1 @@
1
- {"version":3,"file":"imports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,oBAAoB,EAAE;QACpB,GAAG,EAAE,whCAAwhC;QAC7hC,GAAG,EAAE;;kEAEyD;QAC9D,IAAI,EAAE;;;;2EAIiE;KACxE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,8wCAA8wC;QACnxC,GAAG,EAAE;;;;;sCAK6B;QAClC,IAAI,EAAE;;;;;;;iCAOuB;KAC9B;CACF,CAAC"}
1
+ {"version":3,"file":"imports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,oBAAoB,EAAE;QACpB,GAAG,EAAE,knCAAknC;QACvnC,GAAG,EAAE;;+DAEsD;QAC3D,IAAI,EAAE;;;;wEAI8D;KACrE;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,4+CAA4+C;QACj/C,GAAG,EAAE;;;;uEAI8D;QACnE,IAAI,EAAE;;;;6EAImE;KAC1E;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,okDAAokD;QACzkD,GAAG,EAAE;;;;;;sCAM6B;QAClC,IAAI,EAAE;;;;;;;;iCAQuB;KAC9B;CACF,CAAC"}
@@ -8,32 +8,32 @@ import { Logged } from '@ddd-ts-kit/aspects/decorators';
8
8
  import { Repository } from '@ddd-ts-kit/kernel/declarations';`,
9
9
  good: `// domain/aggregates/invoice.aggregate.ts
10
10
  import { AggregateRoot } from '@ddd-ts-kit/kernel';
11
- import { Money } from '@/contexts/billing/domain/value-objects/money.vo.js';`,
11
+ import { Money } from '@/contexts/billing/domain/value-objects/money.vo';`,
12
12
  },
13
13
  'layer/application-inward': {
14
14
  why: 'A use case orchestrates the domain and talks to the outside through ports. If it imports an adapter, a framework or a driver, the technical choice can no longer be replaced or faked, and the handler cannot be unit tested with plain fakes. Cross-cutting behaviour reaches a use case from outside: @ddd-ts-kit/aspects, audit, redis, scheduling, sentry and tracing are refused whatever `applicationAllowedPackages` says, their place is the composition root, a bus middleware or an adapter. The declarations of the kernel (@ddd-ts-kit/kernel/declarations) are part of the kernel and belong here: a handler, a job or a policy says what it is and names the ports it depends on, which are abstract classes, without knowing a container.',
15
15
  bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
16
- import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository.js';
16
+ import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository';
17
17
  import { RedisCache } from '@ddd-ts-kit/redis';
18
18
  import { retry } from '@ddd-ts-kit/aspects';`,
19
19
  good: `// application/commands/issue-invoice/issue-invoice.handler.ts
20
20
  import { Cache, Clock } from '@ddd-ts-kit/kernel';
21
21
  import { CommandHandler } from '@ddd-ts-kit/kernel/declarations';
22
- import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';`,
22
+ import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';`,
23
23
  },
24
24
  'layer/presentation-no-infrastructure': {
25
25
  why: 'A route translates a transport request into a command or a query and maps the answer back. Reaching an adapter directly skips the use case, so the business rule that guards the operation is skipped too.',
26
26
  bad: `// presentation/http/issue-invoice.route.ts
27
- import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository.js';`,
27
+ import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository';`,
28
28
  good: `// presentation/http/issue-invoice.route.ts
29
- import type { IssueInvoiceHandler } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.js';`,
29
+ import type { IssueInvoiceHandler } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';`,
30
30
  },
31
31
  'layer/infrastructure-no-presentation': {
32
32
  why: 'Adapters implement ports declared inward. An adapter that knows a DTO or a route depends on one transport, and both outer layers start changing together.',
33
33
  bad: `// infrastructure/persistence/pg-invoice.repository.ts
34
- import type { InvoiceDto } from '@/contexts/billing/presentation/http/invoice.dto.js';`,
34
+ import type { InvoiceDto } from '@/contexts/billing/presentation/http/invoice.dto';`,
35
35
  good: `// infrastructure/persistence/pg-invoice.repository.ts
36
- import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';`,
36
+ import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';`,
37
37
  },
38
38
  };
39
39
  //# sourceMappingURL=layer-docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,ksBAAksB;QACvsB,GAAG,EAAE;;;;8DAIqD;QAC1D,IAAI,EAAE;;6EAEmE;KAC1E;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0tBAA0tB;QAC/tB,GAAG,EAAE;;;6CAGoC;QACzC,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,4MAA4M;QACjN,GAAG,EAAE;8GACqG;QAC1G,IAAI,EAAE;2HACiH;KACxH;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2JAA2J;QAChK,GAAG,EAAE;uFAC8E;QACnF,IAAI,EAAE;kGACwF;KAC/F;CACF,CAAC"}
1
+ {"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,ksBAAksB;QACvsB,GAAG,EAAE;;;;8DAIqD;QAC1D,IAAI,EAAE;;0EAEgE;KACvE;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0tBAA0tB;QAC/tB,GAAG,EAAE;;;6CAGoC;QACzC,IAAI,EAAE;;;+FAGqF;KAC5F;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,4MAA4M;QACjN,GAAG,EAAE;2GACkG;QACvG,IAAI,EAAE;wHAC8G;KACrH;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2JAA2J;QAChK,GAAG,EAAE;oFAC2E;QAChF,IAAI,EAAE;+FACqF;KAC5F;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkExD,CAAC"}
1
+ {"version":3,"file":"ports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0ExD,CAAC"}
@@ -43,24 +43,32 @@ export abstract class InvoiceRepository extends Repository<Invoice> {}
43
43
  builder.bind(PaymentGateway).toClass(StripePaymentGateway, [PaymentSettings]);`,
44
44
  },
45
45
  'ports/no-concrete-dependency': {
46
- why: 'A dependency list says what a class needs, not who provides it. A list that names an adapter of infrastructure/ or a fake of test/fakes/ ties the use case to one implementation: the adapter can no longer be replaced at the composition root, and a test can no longer give its fake. The list names the port, the constructor parameter is typed by it, and the choice of the implementation stays in one place.',
46
+ why: 'What a class is given says what it needs, not who provides it. A constructor parameter typed by an adapter of infrastructure/ or by a fake of test/fakes/, or a dependency list that names one, ties the class to one implementation: the adapter can no longer be replaced at the composition root, and a test can no longer give its fake. The parameter is typed by the port, a list names the port, and the choice of the implementation stays in one place. In the declared style the constructor of a class that lists nothing is its statement of dependencies, so its parameter types are held like the entries of a list.',
47
47
  bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
48
- import { KnexInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/knex-invoice.repository.js';
48
+ import type { KnexInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/knex-invoice.repository';
49
49
 
50
- @CommandHandler(IssueInvoiceCommand, [KnexInvoiceRepository, Clock])`,
50
+ @CommandHandler(IssueInvoiceCommand)
51
+ export class IssueInvoiceHandler {
52
+ constructor(private readonly invoices: KnexInvoiceRepository) {}
53
+ }
54
+ // billing.module.ts, explicit style
55
+ builder.command(IssueInvoiceCommand).handledBy(IssueInvoiceHandler, [KnexInvoiceRepository, Clock]);`,
51
56
  good: `// application/commands/issue-invoice/issue-invoice.handler.ts
52
- import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';
57
+ import type { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';
53
58
 
54
- @CommandHandler(IssueInvoiceCommand, [InvoiceRepository, Clock])`,
59
+ @CommandHandler(IssueInvoiceCommand)
60
+ export class IssueInvoiceHandler {
61
+ constructor(private readonly invoices: InvoiceRepository) {}
62
+ }`,
55
63
  },
56
64
  'ports/value-import': {
57
65
  why: 'A port named in a dependency list or given to bind is used as a value: the class itself is looked up in the container. `import type` erases the import when the file is compiled, so the list would hold undefined at run time, or the file would not compile. The import of a token is a plain import; `import type` stays right for a class that only types a parameter.',
58
- bad: `import type { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';
66
+ bad: `import type { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';
59
67
  import { type Clock } from '@ddd-ts-kit/kernel';
60
68
 
61
69
  @CommandHandler(IssueInvoiceCommand, [InvoiceRepository, Clock])`,
62
70
  good: `import { Clock } from '@ddd-ts-kit/kernel';
63
- import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';
71
+ import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';
64
72
 
65
73
  @CommandHandler(IssueInvoiceCommand, [InvoiceRepository, Clock])`,
66
74
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,sBAAsB,EAAE;QACtB,GAAG,EAAE,kmBAAkmB;QACvmB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;uEAK6D;KACpE;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,shBAAshB;QAC3hB,GAAG,EAAE;;;;kHAIyG;QAC9G,IAAI,EAAE;;;;+DAIqD;KAC5D;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;;;;;sFAK6E;QAClF,IAAI,EAAE;;;;;+EAKqE;KAC5E;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,sZAAsZ;QAC3Z,GAAG,EAAE;;;qEAG4D;QACjE,IAAI,EAAE;;;iEAGuD;KAC9D;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,4WAA4W;QACjX,GAAG,EAAE;;;iEAGwD;QAC7D,IAAI,EAAE;;;iEAGuD;KAC9D;CACF,CAAC"}
1
+ {"version":3,"file":"ports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,sBAAsB,EAAE;QACtB,GAAG,EAAE,kmBAAkmB;QACvmB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;uEAK6D;KACpE;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,shBAAshB;QAC3hB,GAAG,EAAE;;;;kHAIyG;QAC9G,IAAI,EAAE;;;;+DAIqD;KAC5D;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;;;;;sFAK6E;QAClF,IAAI,EAAE;;;;;+EAKqE;KAC5E;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,omBAAomB;QACzmB,GAAG,EAAE;;;;;;;;qGAQ4F;QACjG,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,4WAA4W;QACjX,GAAG,EAAE;;;iEAGwD;QAC7D,IAAI,EAAE;;;iEAGuD;KAC9D;CACF,CAAC"}
@@ -2,7 +2,7 @@ export const SCHEDULING_DOCS = {
2
2
  'scheduling/job-triggers-use-case': {
3
3
  why: 'A job says when something happens, a use case says what. A job that loads an aggregate, calls a repository or an adapter is a use case nobody can send by another way: no permission, no unit of work, no audit entry, no test through the bus. Kept to one command sent through the CommandBus port, the job is a line of schedule, and the work is a handler like any other. It lives in application/scheduling/*.job.ts, implements ScheduledJob, and depends on buses and ports only.',
4
4
  bad: `// application/scheduling/send-reminders.job.ts
5
- import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate.js';
5
+ import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
6
6
 
7
7
  @Scheduled('billing.send-reminders', { every: '15m' }, [InvoiceRepository, Mailer])
8
8
  export class SendRemindersJob {
@@ -1 +1 @@
1
- {"version":3,"file":"wiring-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuDzD,CAAC"}
1
+ {"version":3,"file":"wiring-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgFzD,CAAC"}