ddd-ts-kit 0.86.0 → 0.88.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 (463) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.fr.md +38 -39
  3. package/README.md +38 -37
  4. package/dist/check/canonical/earlier-context-file.d.ts +15 -0
  5. package/dist/check/canonical/earlier-context-file.d.ts.map +1 -0
  6. package/dist/check/canonical/earlier-context-file.js +33 -0
  7. package/dist/check/canonical/earlier-context-file.js.map +1 -0
  8. package/dist/check/canonical/stray-entry.d.ts.map +1 -1
  9. package/dist/check/canonical/stray-entry.js +11 -9
  10. package/dist/check/canonical/stray-entry.js.map +1 -1
  11. package/dist/check/configuration/module-problems.js +2 -2
  12. package/dist/check/configuration/module-problems.js.map +1 -1
  13. package/dist/check/errors/code-list.d.ts +1 -1
  14. package/dist/check/errors/code-list.d.ts.map +1 -1
  15. package/dist/check/errors/is-codes-file.d.ts +1 -1
  16. package/dist/check/errors/is-codes-file.d.ts.map +1 -1
  17. package/dist/check/errors/is-codes-file.js +1 -1
  18. package/dist/check/errors/is-codes-file.js.map +1 -1
  19. package/dist/check/explain/errors-docs.js +5 -5
  20. package/dist/check/explain/errors-docs.js.map +1 -1
  21. package/dist/check/explain/language-docs.js +1 -1
  22. package/dist/check/explain/language-docs.js.map +1 -1
  23. package/dist/check/explain/layout-docs.js +1 -1
  24. package/dist/check/explain/layout-docs.js.map +1 -1
  25. package/dist/check/explain/module-docs.d.ts.map +1 -1
  26. package/dist/check/explain/module-docs.js +16 -12
  27. package/dist/check/explain/module-docs.js.map +1 -1
  28. package/dist/check/explain/tree-docs.js +2 -2
  29. package/dist/check/explain/tree-docs.js.map +1 -1
  30. package/dist/check/explain/wiring-docs.d.ts.map +1 -1
  31. package/dist/check/explain/wiring-docs.js +8 -7
  32. package/dist/check/explain/wiring-docs.js.map +1 -1
  33. package/dist/check/fixtures/authz-granted-fixtures.js +2 -2
  34. package/dist/check/fixtures/authz-granted-fixtures.js.map +1 -1
  35. package/dist/check/fixtures/authz-policy-fixtures.d.ts.map +1 -1
  36. package/dist/check/fixtures/authz-policy-fixtures.js +3 -3
  37. package/dist/check/fixtures/authz-policy-fixtures.js.map +1 -1
  38. package/dist/check/fixtures/authz-scope-narrows-fixtures.js +4 -4
  39. package/dist/check/fixtures/authz-scope-narrows-fixtures.js.map +1 -1
  40. package/dist/check/fixtures/constructor-injection-fixtures.js +6 -6
  41. package/dist/check/fixtures/constructor-injection-fixtures.js.map +1 -1
  42. package/dist/check/fixtures/context-file-fixtures.d.ts +4 -0
  43. package/dist/check/fixtures/context-file-fixtures.d.ts.map +1 -0
  44. package/dist/check/fixtures/context-file-fixtures.js +36 -0
  45. package/dist/check/fixtures/context-file-fixtures.js.map +1 -0
  46. package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
  47. package/dist/check/fixtures/declarations-fixtures.js +15 -36
  48. package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
  49. package/dist/check/fixtures/declared-declarations.d.ts +4 -2
  50. package/dist/check/fixtures/declared-declarations.d.ts.map +1 -1
  51. package/dist/check/fixtures/declared-declarations.js +9 -3
  52. package/dist/check/fixtures/declared-declarations.js.map +1 -1
  53. package/dist/check/fixtures/earlier-declarations-fixtures.d.ts +4 -0
  54. package/dist/check/fixtures/earlier-declarations-fixtures.d.ts.map +1 -0
  55. package/dist/check/fixtures/earlier-declarations-fixtures.js +48 -0
  56. package/dist/check/fixtures/earlier-declarations-fixtures.js.map +1 -0
  57. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  58. package/dist/check/fixtures/fixtures.js +4 -0
  59. package/dist/check/fixtures/fixtures.js.map +1 -1
  60. package/dist/check/fixtures/module-fixtures.d.ts.map +1 -1
  61. package/dist/check/fixtures/module-fixtures.js +50 -17
  62. package/dist/check/fixtures/module-fixtures.js.map +1 -1
  63. package/dist/check/fixtures/named-refusal-fixtures.js +5 -5
  64. package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -1
  65. package/dist/check/fixtures/paths.d.ts +1 -1
  66. package/dist/check/fixtures/paths.js +1 -1
  67. package/dist/check/fixtures/paths.js.map +1 -1
  68. package/dist/check/fixtures/vocabulary-fixtures.js +2 -2
  69. package/dist/check/fixtures/vocabulary-fixtures.js.map +1 -1
  70. package/dist/check/project/locate.d.ts.map +1 -1
  71. package/dist/check/project/locate.js +18 -9
  72. package/dist/check/project/locate.js.map +1 -1
  73. package/dist/check/rules/declarations-barrel-current.js +16 -11
  74. package/dist/check/rules/declarations-barrel-current.js.map +1 -1
  75. package/dist/check/rules/errors-code-listed.js +6 -8
  76. package/dist/check/rules/errors-code-listed.js.map +1 -1
  77. package/dist/check/rules/errors-code-unique.js +2 -2
  78. package/dist/check/rules/errors-code-unique.js.map +1 -1
  79. package/dist/check/rules/errors-known-code.js +2 -2
  80. package/dist/check/rules/errors-known-code.js.map +1 -1
  81. package/dist/check/rules/language-glossary-term.js +1 -1
  82. package/dist/check/rules/language-glossary-term.js.map +1 -1
  83. package/dist/check/rules/module-complete.d.ts.map +1 -1
  84. package/dist/check/rules/module-complete.js +67 -13
  85. package/dist/check/rules/module-complete.js.map +1 -1
  86. package/dist/check/rules/naming-suffix.d.ts.map +1 -1
  87. package/dist/check/rules/naming-suffix.js +12 -9
  88. package/dist/check/rules/naming-suffix.js.map +1 -1
  89. package/dist/check/rules/tree-closed.d.ts.map +1 -1
  90. package/dist/check/rules/tree-closed.js +8 -1
  91. package/dist/check/rules/tree-closed.js.map +1 -1
  92. package/dist/check/support/is-generated-context-file.d.ts +1 -1
  93. package/dist/check/support/is-generated-context-file.js +1 -1
  94. package/dist/check/support/path-in-context.d.ts +5 -1
  95. package/dist/check/support/path-in-context.d.ts.map +1 -1
  96. package/dist/check/support/path-in-context.js +12 -3
  97. package/dist/check/support/path-in-context.js.map +1 -1
  98. package/dist/commands/context-layout.d.ts +4 -0
  99. package/dist/commands/context-layout.d.ts.map +1 -0
  100. package/dist/commands/context-layout.js +48 -0
  101. package/dist/commands/context-layout.js.map +1 -0
  102. package/dist/commands/docs.d.ts.map +1 -1
  103. package/dist/commands/docs.js +14 -9
  104. package/dist/commands/docs.js.map +1 -1
  105. package/dist/commands/generate.js +2 -2
  106. package/dist/commands/generate.js.map +1 -1
  107. package/dist/commands/move-to-module.d.ts.map +1 -1
  108. package/dist/commands/move-to-module.js +2 -0
  109. package/dist/commands/move-to-module.js.map +1 -1
  110. package/dist/config/stack.d.ts +1 -1
  111. package/dist/context-files/context-file-at.d.ts +7 -0
  112. package/dist/context-files/context-file-at.d.ts.map +1 -0
  113. package/dist/context-files/context-file-at.js +9 -0
  114. package/dist/context-files/context-file-at.js.map +1 -0
  115. package/dist/context-files/context-file-placement.d.ts +8 -0
  116. package/dist/context-files/context-file-placement.d.ts.map +1 -0
  117. package/dist/context-files/context-file-placement.js +23 -0
  118. package/dist/context-files/context-file-placement.js.map +1 -0
  119. package/dist/context-files/context-file.d.ts +16 -0
  120. package/dist/context-files/context-file.d.ts.map +1 -0
  121. package/dist/context-files/context-file.js +12 -0
  122. package/dist/context-files/context-file.js.map +1 -0
  123. package/dist/context-files/earlier-place-of.d.ts +7 -0
  124. package/dist/context-files/earlier-place-of.d.ts.map +1 -0
  125. package/dist/context-files/earlier-place-of.js +10 -0
  126. package/dist/context-files/earlier-place-of.js.map +1 -0
  127. package/dist/context-files/index.d.ts +5 -0
  128. package/dist/context-files/index.d.ts.map +1 -0
  129. package/dist/context-files/index.js +5 -0
  130. package/dist/context-files/index.js.map +1 -0
  131. package/dist/context-layout/context-layout.d.ts +19 -0
  132. package/dist/context-layout/context-layout.d.ts.map +1 -0
  133. package/dist/context-layout/context-layout.js +55 -0
  134. package/dist/context-layout/context-layout.js.map +1 -0
  135. package/dist/context-layout/index.d.ts +2 -0
  136. package/dist/context-layout/index.d.ts.map +1 -0
  137. package/dist/context-layout/index.js +2 -0
  138. package/dist/context-layout/index.js.map +1 -0
  139. package/dist/context-layout/module-moves.d.ts +21 -0
  140. package/dist/context-layout/module-moves.d.ts.map +1 -0
  141. package/dist/context-layout/module-moves.js +146 -0
  142. package/dist/context-layout/module-moves.js.map +1 -0
  143. package/dist/controllers/migrate-context.js +20 -15
  144. package/dist/controllers/migrate-context.js.map +1 -1
  145. package/dist/controllers/plan-context.d.ts +5 -1
  146. package/dist/controllers/plan-context.d.ts.map +1 -1
  147. package/dist/controllers/plan-context.js +19 -5
  148. package/dist/controllers/plan-context.js.map +1 -1
  149. package/dist/declared/barrel-file.d.ts +1 -1
  150. package/dist/declared/barrel-file.js +1 -1
  151. package/dist/declared/context-declarations.d.ts +4 -2
  152. package/dist/declared/context-declarations.d.ts.map +1 -1
  153. package/dist/declared/context-declarations.js +4 -2
  154. package/dist/declared/context-declarations.js.map +1 -1
  155. package/dist/declared/declarations-folder-of.d.ts +12 -7
  156. package/dist/declared/declarations-folder-of.d.ts.map +1 -1
  157. package/dist/declared/declarations-folder-of.js +15 -11
  158. package/dist/declared/declarations-folder-of.js.map +1 -1
  159. package/dist/declared/earlier-layout-notice.d.ts +10 -0
  160. package/dist/declared/earlier-layout-notice.d.ts.map +1 -0
  161. package/dist/declared/earlier-layout-notice.js +12 -0
  162. package/dist/declared/earlier-layout-notice.js.map +1 -0
  163. package/dist/declared/earlier-layout-of.d.ts +10 -0
  164. package/dist/declared/earlier-layout-of.d.ts.map +1 -0
  165. package/dist/declared/earlier-layout-of.js +16 -0
  166. package/dist/declared/earlier-layout-of.js.map +1 -0
  167. package/dist/declared/earlier-shape-of.d.ts +13 -0
  168. package/dist/declared/earlier-shape-of.d.ts.map +1 -0
  169. package/dist/declared/earlier-shape-of.js +35 -0
  170. package/dist/declared/earlier-shape-of.js.map +1 -0
  171. package/dist/declared/folder-declarations-file.d.ts +6 -4
  172. package/dist/declared/folder-declarations-file.d.ts.map +1 -1
  173. package/dist/declared/folder-declarations-file.js +7 -5
  174. package/dist/declared/folder-declarations-file.js.map +1 -1
  175. package/dist/declared/index.d.ts +3 -2
  176. package/dist/declared/index.d.ts.map +1 -1
  177. package/dist/declared/index.js +3 -2
  178. package/dist/declared/index.js.map +1 -1
  179. package/dist/declared/is-declarations-file.d.ts +3 -2
  180. package/dist/declared/is-declarations-file.d.ts.map +1 -1
  181. package/dist/declared/is-declarations-file.js +9 -9
  182. package/dist/declared/is-declarations-file.js.map +1 -1
  183. package/dist/declared/keeps-role-folder-files.d.ts +12 -0
  184. package/dist/declared/keeps-role-folder-files.d.ts.map +1 -0
  185. package/dist/declared/keeps-role-folder-files.js +25 -0
  186. package/dist/declared/keeps-role-folder-files.js.map +1 -0
  187. package/dist/declared/keeps-single-file.d.ts +1 -1
  188. package/dist/declared/keeps-single-file.js +1 -1
  189. package/dist/declared/render-declarations.d.ts +7 -3
  190. package/dist/declared/render-declarations.d.ts.map +1 -1
  191. package/dist/declared/render-declarations.js +5 -3
  192. package/dist/declared/render-declarations.js.map +1 -1
  193. package/dist/declared/render-folder-declarations.d.ts +2 -2
  194. package/dist/declared/same-files.d.ts +3 -0
  195. package/dist/declared/same-files.d.ts.map +1 -0
  196. package/dist/declared/same-files.js +5 -0
  197. package/dist/declared/same-files.js.map +1 -0
  198. package/dist/depcruise/layer-rules.js +21 -7
  199. package/dist/depcruise/layer-rules.js.map +1 -1
  200. package/dist/describe/read-adapters.d.ts.map +1 -1
  201. package/dist/describe/read-adapters.js +6 -4
  202. package/dist/describe/read-adapters.js.map +1 -1
  203. package/dist/describe/read-controllers.d.ts.map +1 -1
  204. package/dist/describe/read-controllers.js +5 -3
  205. package/dist/describe/read-controllers.js.map +1 -1
  206. package/dist/describe/read-errors.d.ts +1 -1
  207. package/dist/describe/read-errors.d.ts.map +1 -1
  208. package/dist/describe/read-errors.js +5 -3
  209. package/dist/describe/read-errors.js.map +1 -1
  210. package/dist/describe/read-routes.d.ts.map +1 -1
  211. package/dist/describe/read-routes.js +5 -5
  212. package/dist/describe/read-routes.js.map +1 -1
  213. package/dist/dev/refresh-declarations.d.ts.map +1 -1
  214. package/dist/dev/refresh-declarations.js +1 -1
  215. package/dist/dev/refresh-declarations.js.map +1 -1
  216. package/dist/docs/context-facts.d.ts +1 -1
  217. package/dist/docs/context-facts.d.ts.map +1 -1
  218. package/dist/docs/read-context.d.ts.map +1 -1
  219. package/dist/docs/read-context.js +2 -1
  220. package/dist/docs/read-context.js.map +1 -1
  221. package/dist/docs/refresh-context-doc.js +1 -1
  222. package/dist/docs/refresh-context-doc.js.map +1 -1
  223. package/dist/docs/state-machine-lines.d.ts +1 -1
  224. package/dist/docs/state-machine-lines.d.ts.map +1 -1
  225. package/dist/docs/state-machine-lines.js +6 -2
  226. package/dist/docs/state-machine-lines.js.map +1 -1
  227. package/dist/docs/write-docs.d.ts +3 -3
  228. package/dist/docs/write-docs.d.ts.map +1 -1
  229. package/dist/docs/write-docs.js +3 -3
  230. package/dist/docs/write-docs.js.map +1 -1
  231. package/dist/file-moves/file-move.d.ts +6 -0
  232. package/dist/file-moves/file-move.d.ts.map +1 -0
  233. package/dist/file-moves/file-move.js +2 -0
  234. package/dist/file-moves/file-move.js.map +1 -0
  235. package/dist/file-moves/index.d.ts +3 -0
  236. package/dist/file-moves/index.d.ts.map +1 -0
  237. package/dist/file-moves/index.js +2 -0
  238. package/dist/file-moves/index.js.map +1 -0
  239. package/dist/file-moves/move-files.d.ts +15 -0
  240. package/dist/file-moves/move-files.d.ts.map +1 -0
  241. package/dist/file-moves/move-files.js +37 -0
  242. package/dist/file-moves/move-files.js.map +1 -0
  243. package/dist/generate/errors/codes-list.d.ts +1 -1
  244. package/dist/generate/errors/codes-list.d.ts.map +1 -1
  245. package/dist/generate/errors/write-named-refusal.d.ts +1 -1
  246. package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
  247. package/dist/generate/errors/write-named-refusal.js +3 -2
  248. package/dist/generate/errors/write-named-refusal.js.map +1 -1
  249. package/dist/generate/kind.d.ts +1 -1
  250. package/dist/generate/kind.d.ts.map +1 -1
  251. package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
  252. package/dist/generate/kinds/adapter-kind.js +22 -2
  253. package/dist/generate/kinds/adapter-kind.js.map +1 -1
  254. package/dist/generate/kinds/error-kind.js +1 -1
  255. package/dist/generate/kinds/error-kind.js.map +1 -1
  256. package/dist/generate/kinds/module-kind.js +1 -1
  257. package/dist/generate/kinds/module-kind.js.map +1 -1
  258. package/dist/generate/kinds/port-kind.d.ts.map +1 -1
  259. package/dist/generate/kinds/port-kind.js +3 -1
  260. package/dist/generate/kinds/port-kind.js.map +1 -1
  261. package/dist/generate/kinds/presentation/controller-of.d.ts +1 -1
  262. package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
  263. package/dist/generate/kinds/presentation/controller-of.js +7 -5
  264. package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
  265. package/dist/generate/permissions-file.d.ts +4 -1
  266. package/dist/generate/permissions-file.d.ts.map +1 -1
  267. package/dist/generate/permissions-file.js +6 -2
  268. package/dist/generate/permissions-file.js.map +1 -1
  269. package/dist/generate/place-context-files.d.ts +9 -0
  270. package/dist/generate/place-context-files.d.ts.map +1 -0
  271. package/dist/generate/place-context-files.js +14 -0
  272. package/dist/generate/place-context-files.js.map +1 -0
  273. package/dist/generate/place-generated-files.d.ts +18 -0
  274. package/dist/generate/place-generated-files.d.ts.map +1 -0
  275. package/dist/generate/{place-in-modules.js → place-generated-files.js} +42 -17
  276. package/dist/generate/place-generated-files.js.map +1 -0
  277. package/dist/generate/refresh-barrels.d.ts +17 -11
  278. package/dist/generate/refresh-barrels.d.ts.map +1 -1
  279. package/dist/generate/refresh-barrels.js +32 -26
  280. package/dist/generate/refresh-barrels.js.map +1 -1
  281. package/dist/generate/refresh-docs.d.ts +2 -2
  282. package/dist/generate/refresh-docs.d.ts.map +1 -1
  283. package/dist/generate/refresh-docs.js +6 -3
  284. package/dist/generate/refresh-docs.js.map +1 -1
  285. package/dist/generate/refuse-earlier-layout.d.ts +9 -0
  286. package/dist/generate/refuse-earlier-layout.d.ts.map +1 -0
  287. package/dist/generate/refuse-earlier-layout.js +15 -0
  288. package/dist/generate/refuse-earlier-layout.js.map +1 -0
  289. package/dist/help/notes.d.ts +1 -1
  290. package/dist/help/notes.d.ts.map +1 -1
  291. package/dist/help/notes.js +24 -9
  292. package/dist/help/notes.js.map +1 -1
  293. package/dist/help/usage.d.ts +1 -1
  294. package/dist/help/usage.d.ts.map +1 -1
  295. package/dist/help/usage.js +1 -0
  296. package/dist/help/usage.js.map +1 -1
  297. package/dist/init/manifest/versions.js +24 -24
  298. package/dist/init/run-init.d.ts.map +1 -1
  299. package/dist/init/run-init.js +6 -0
  300. package/dist/init/run-init.js.map +1 -1
  301. package/dist/knip/ignore-code-types-where-they-are.d.ts +11 -0
  302. package/dist/knip/ignore-code-types-where-they-are.d.ts.map +1 -0
  303. package/dist/knip/ignore-code-types-where-they-are.js +56 -0
  304. package/dist/knip/ignore-code-types-where-they-are.js.map +1 -0
  305. package/dist/knip/index.d.ts +2 -0
  306. package/dist/knip/index.d.ts.map +1 -0
  307. package/dist/knip/index.js +2 -0
  308. package/dist/knip/index.js.map +1 -0
  309. package/dist/model-modules/index.d.ts +1 -1
  310. package/dist/model-modules/index.d.ts.map +1 -1
  311. package/dist/model-modules/index.js +1 -1
  312. package/dist/model-modules/index.js.map +1 -1
  313. package/dist/model-modules/into-module.d.ts +5 -1
  314. package/dist/model-modules/into-module.d.ts.map +1 -1
  315. package/dist/model-modules/into-module.js +12 -5
  316. package/dist/model-modules/into-module.js.map +1 -1
  317. package/dist/model-modules/is-context-level.d.ts +5 -3
  318. package/dist/model-modules/is-context-level.d.ts.map +1 -1
  319. package/dist/model-modules/is-context-level.js +17 -4
  320. package/dist/model-modules/is-context-level.js.map +1 -1
  321. package/dist/model-modules/module-layers.d.ts +7 -1
  322. package/dist/model-modules/module-layers.d.ts.map +1 -1
  323. package/dist/model-modules/module-layers.js +8 -2
  324. package/dist/model-modules/module-layers.js.map +1 -1
  325. package/dist/model-modules/module-name-flaw.d.ts +2 -2
  326. package/dist/model-modules/module-name-flaw.js +4 -4
  327. package/dist/model-modules/module-name-flaw.js.map +1 -1
  328. package/dist/model-modules/module-placement.d.ts +5 -1
  329. package/dist/model-modules/module-placement.d.ts.map +1 -1
  330. package/dist/model-modules/module-placement.js +47 -18
  331. package/dist/model-modules/module-placement.js.map +1 -1
  332. package/dist/model-modules/module-split.d.ts +9 -5
  333. package/dist/model-modules/module-split.d.ts.map +1 -1
  334. package/dist/model-modules/module-split.js +30 -13
  335. package/dist/model-modules/module-split.js.map +1 -1
  336. package/dist/model-modules/role-directories-of.d.ts.map +1 -1
  337. package/dist/model-modules/role-directories-of.js +6 -1
  338. package/dist/model-modules/role-directories-of.js.map +1 -1
  339. package/dist/model-modules/role-folders-of.d.ts +1 -1
  340. package/dist/model-modules/role-folders-of.d.ts.map +1 -1
  341. package/dist/model-modules/role-folders-of.js +15 -5
  342. package/dist/model-modules/role-folders-of.js.map +1 -1
  343. package/dist/model-modules/role-folders.d.ts +2 -2
  344. package/dist/model-modules/role-folders.js +2 -2
  345. package/dist/move-to-module/module-move.d.ts +2 -4
  346. package/dist/move-to-module/module-move.d.ts.map +1 -1
  347. package/dist/move-to-module/move-to-module.d.ts +2 -6
  348. package/dist/move-to-module/move-to-module.d.ts.map +1 -1
  349. package/dist/move-to-module/move-to-module.js +2 -31
  350. package/dist/move-to-module/move-to-module.js.map +1 -1
  351. package/dist/move-to-module/moves-into-module.d.ts +1 -1
  352. package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
  353. package/dist/move-to-module/moves-into-module.js +25 -6
  354. package/dist/move-to-module/moves-into-module.js.map +1 -1
  355. package/dist/refusals/code-types-pattern.d.ts +4 -0
  356. package/dist/refusals/code-types-pattern.d.ts.map +1 -0
  357. package/dist/refusals/code-types-pattern.js +6 -0
  358. package/dist/refusals/code-types-pattern.js.map +1 -0
  359. package/dist/refusals/ignore-code-types.d.ts +1 -1
  360. package/dist/refusals/ignore-code-types.d.ts.map +1 -1
  361. package/dist/refusals/ignore-code-types.js +3 -2
  362. package/dist/refusals/ignore-code-types.js.map +1 -1
  363. package/dist/refusals/path-from-contexts.d.ts +1 -1
  364. package/dist/refusals/path-from-contexts.js +2 -2
  365. package/dist/refusals/path-from-contexts.js.map +1 -1
  366. package/dist/refusals/with-codes.d.ts +1 -1
  367. package/dist/refusals/with-codes.d.ts.map +1 -1
  368. package/dist/refusals/with-codes.js +1 -1
  369. package/dist/refusals/with-codes.js.map +1 -1
  370. package/dist/refusals/write-refusal-classes.d.ts.map +1 -1
  371. package/dist/refusals/write-refusal-classes.js +4 -2
  372. package/dist/refusals/write-refusal-classes.js.map +1 -1
  373. package/dist/run.d.ts.map +1 -1
  374. package/dist/run.js +2 -0
  375. package/dist/run.js.map +1 -1
  376. package/dist/version.d.ts +1 -1
  377. package/dist/version.js +1 -1
  378. package/package.json +2 -2
  379. package/templates/command/handler.spec.buses.ts.tpl +1 -1
  380. package/templates/command/handler.spec.tsyringe.ts.tpl +1 -1
  381. package/templates/context/permission-set.tpl +1 -1
  382. package/templates/context/permissions.spec.ts.tpl +1 -1
  383. package/templates/error/refusal.ts.tpl +1 -1
  384. package/templates/file-upload/handler.spec.ts.tpl +1 -1
  385. package/templates/init/AGENTS.md.tpl +1 -1
  386. package/templates/init/README.md.tpl +2 -2
  387. package/templates/init/rules/application.md.tpl +3 -2
  388. package/templates/init/rules/domain.md.tpl +3 -2
  389. package/templates/init/rules/infrastructure.md.tpl +1 -0
  390. package/templates/init/rules/presentation.md.tpl +2 -1
  391. package/templates/pipeline/knip.json.tpl +1 -1
  392. package/templates/pipeline/package-scripts.json +1 -1
  393. package/templates/policy/policy.declared.ts.tpl +1 -1
  394. package/templates/policy/policy.ts.tpl +1 -1
  395. package/templates/presets/identity/context/application/authorization/change-member-roles.policy.ts.tpl +1 -1
  396. package/templates/presets/identity/context/application/authorization/grant-delegations.policy.ts.tpl +1 -1
  397. package/templates/presets/identity/context/application/authorization/invite-members.policy.ts.tpl +1 -1
  398. package/templates/presets/identity/context/application/authorization/read-members.policy.ts.tpl +1 -1
  399. package/templates/presets/identity/context/application/authorization/remove-members.policy.ts.tpl +1 -1
  400. package/templates/presets/identity/context/application/authorization/revoke-delegations.policy.ts.tpl +1 -1
  401. package/templates/presets/identity/context/application/authorization/revoke-invitations.policy.ts.tpl +1 -1
  402. package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.command.ts.tpl +1 -1
  403. package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.command.ts.tpl +1 -1
  404. package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.handler.ts.tpl +1 -1
  405. package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.command.ts.tpl +1 -1
  406. package/templates/presets/identity/context/application/commands/decline-invitation/decline-invitation.command.ts.tpl +1 -1
  407. package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.command.ts.tpl +1 -1
  408. package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.handler.ts.tpl +1 -1
  409. package/templates/presets/identity/context/application/commands/invite-member/invite-member.command.ts.tpl +1 -1
  410. package/templates/presets/identity/context/application/commands/invite-member/invite-member.handler.ts.tpl +1 -1
  411. package/templates/presets/identity/context/application/commands/open-organisation/open-organisation.command.ts.tpl +1 -1
  412. package/templates/presets/identity/context/application/commands/provision-account/provision-account.command.ts.tpl +1 -1
  413. package/templates/presets/identity/context/application/commands/remove-member/remove-member.command.ts.tpl +1 -1
  414. package/templates/presets/identity/context/application/commands/remove-member/remove-member.handler.ts.tpl +1 -1
  415. package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.command.ts.tpl +1 -1
  416. package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.handler.ts.tpl +1 -1
  417. package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.command.ts.tpl +1 -1
  418. package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.handler.ts.tpl +1 -1
  419. package/templates/presets/identity/context/application/queries/search-members/search-members.handler.ts.tpl +1 -1
  420. package/templates/presets/identity/context/application/queries/search-members/search-members.query.ts.tpl +1 -1
  421. package/templates/presets/identity/context/domain/errors/above-own-role.error.named.ts.tpl +1 -1
  422. package/templates/presets/identity/context/domain/errors/account-already-deactivated.error.named.ts.tpl +1 -1
  423. package/templates/presets/identity/context/domain/errors/already-member.error.named.ts.tpl +1 -1
  424. package/templates/presets/identity/context/domain/errors/deactivated-account.error.named.ts.tpl +1 -1
  425. package/templates/presets/identity/context/domain/errors/delegation-not-active.error.named.ts.tpl +1 -1
  426. package/templates/presets/identity/context/domain/errors/delegation-period-inverted.error.named.ts.tpl +1 -1
  427. package/templates/presets/identity/context/domain/errors/delegation-to-oneself.error.named.ts.tpl +1 -1
  428. package/templates/presets/identity/context/domain/errors/delegation-too-long.error.named.ts.tpl +1 -1
  429. package/templates/presets/identity/context/domain/errors/delegation-with-no-right.error.named.ts.tpl +1 -1
  430. package/templates/presets/identity/context/domain/errors/email-not-verified.error.named.ts.tpl +1 -1
  431. package/templates/presets/identity/context/domain/errors/invalid-display-name.error.named.ts.tpl +1 -1
  432. package/templates/presets/identity/context/domain/errors/invalid-email-address.error.named.ts.tpl +1 -1
  433. package/templates/presets/identity/context/domain/errors/invalid-organisation-name.error.named.ts.tpl +1 -1
  434. package/templates/presets/identity/context/domain/errors/invalid-organisation-slug.error.named.ts.tpl +1 -1
  435. package/templates/presets/identity/context/domain/errors/invitation-expired.error.named.ts.tpl +1 -1
  436. package/templates/presets/identity/context/domain/errors/invitation-not-addressed-to-account.error.named.ts.tpl +1 -1
  437. package/templates/presets/identity/context/domain/errors/invitation-not-pending.error.named.ts.tpl +1 -1
  438. package/templates/presets/identity/context/domain/errors/last-owner.error.named.ts.tpl +1 -1
  439. package/templates/presets/identity/context/domain/errors/not-an-owner.error.named.ts.tpl +1 -1
  440. package/templates/presets/identity/context/domain/errors/organisation-slug-taken.error.named.ts.tpl +1 -1
  441. package/templates/presets/identity/context/domain/errors/own-role.error.named.ts.tpl +1 -1
  442. package/templates/presets/identity/context/domain/errors/right-not-in-role.error.named.ts.tpl +1 -1
  443. package/templates/presets/identity/context/domain/errors/unknown-account.error.named.ts.tpl +1 -1
  444. package/templates/presets/identity/context/domain/errors/unknown-delegation.error.named.ts.tpl +1 -1
  445. package/templates/presets/identity/context/domain/errors/unknown-invitation.error.named.ts.tpl +1 -1
  446. package/templates/presets/identity/context/domain/errors/unknown-member.error.named.ts.tpl +1 -1
  447. package/templates/presets/identity/context/domain/errors/unknown-organisation.error.named.ts.tpl +1 -1
  448. package/templates/presets/identity/context/test/worlds/__context__.world.ts.tpl +1 -1
  449. package/templates/query/handler.spec.buses.ts.tpl +1 -1
  450. package/templates/query/handler.spec.tsyringe.ts.tpl +1 -1
  451. package/templates/query/search.handler.declared.ts.tpl +1 -1
  452. package/templates/query/search.handler.spec.buses.ts.tpl +1 -1
  453. package/templates/query/search.handler.spec.tsyringe.ts.tpl +1 -1
  454. package/templates/query/search.handler.ts.tpl +1 -1
  455. package/dist/declared/single-file-notice.d.ts +0 -8
  456. package/dist/declared/single-file-notice.d.ts.map +0 -1
  457. package/dist/declared/single-file-notice.js +0 -9
  458. package/dist/declared/single-file-notice.js.map +0 -1
  459. package/dist/generate/place-in-modules.d.ts +0 -16
  460. package/dist/generate/place-in-modules.d.ts.map +0 -1
  461. package/dist/generate/place-in-modules.js.map +0 -1
  462. /package/templates/presets/identity/context/{domain/errors/codes.named.ts.tpl → __context__.codes.named.ts.tpl} +0 -0
  463. /package/templates/presets/identity/context/{application/authorization/__context__.permissions.ts.tpl → __context__.permissions.ts.tpl} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-layout.js","sourceRoot":"","sources":["../../src/commands/context-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,aAAa,EAAsB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,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":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/commands/docs.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,eAAO,MAAM,WAAW,EAAE,OA2BzB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { readConfig } from '../config/index.js';
4
- import { barrelFile, generatedDrift, singleFileNotice } from '../declared/index.js';
4
+ import { barrelFile, earlierLayoutNotice, generatedDrift } from '../declared/index.js';
5
5
  import { readContexts } from '../docs/read-contexts.js';
6
6
  import { writeDocs } from '../docs/write-docs.js';
7
7
  import { STORED_EVENTS_LOCK } from '../check/event-sourcing/stored-events-lock-file.js';
@@ -21,8 +21,8 @@ export const docsCommand = (argv, io) => {
21
21
  const ws = new Workspace(args.projectRoot, false);
22
22
  const { config } = readConfig(args.projectRoot);
23
23
  const check = args.flag('check');
24
- // A check writes nothing: a context still declared in the single file of 0.84 is only warned about.
25
- const singleFile = writeDocs(ws, config, check ? 'keep' : 'move');
24
+ // A check writes nothing: a context still declared as an earlier version wrote it is only warned about.
25
+ const kept = writeDocs(ws, config, check ? 'keep' : 'move');
26
26
  if (args.flag('stored-events')) {
27
27
  recordStoredEvents(ws, config);
28
28
  }
@@ -31,10 +31,10 @@ export const docsCommand = (argv, io) => {
31
31
  printReport(io, args, ws.commit(args.flag('dry-run')));
32
32
  return 0;
33
33
  }
34
- return reportCheck(io, args, { ws, config, singleFile });
34
+ return reportCheck(io, args, { ws, config, kept });
35
35
  };
36
36
  /** `docs --check`: the generated files that would change, and the stored-event versions not recorded yet or recorded by 0.82.0 or earlier; 0 when there is none. */
37
- function reportCheck(io, args, { ws, config, singleFile }) {
37
+ function reportCheck(io, args, { ws, config, kept }) {
38
38
  const report = ws.commit(true);
39
39
  const stale = [...report.created, ...report.updated, ...report.deleted];
40
40
  const drift = Object.fromEntries(stale.flatMap((file) => driftOf(ws.root, ws, file)));
@@ -42,7 +42,7 @@ function reportCheck(io, args, { ws, config, singleFile }) {
42
42
  const unrecorded = recording ? [] : unrecordedStoredEvents(ws, config, contextsOnDisk(ws, config));
43
43
  const formerlyRecorded = recording ? [] : formerlyRecordedStoredEvents(ws, config, contextsOnDisk(ws, config));
44
44
  const ok = stale.length === 0 && unrecorded.length === 0 && formerlyRecorded.length === 0;
45
- const warnings = singleFile.map((context) => singleFileWarning(config, context));
45
+ const warnings = kept.map((context) => earlierLayoutWarning(config, context));
46
46
  if (args.json) {
47
47
  io.out(JSON.stringify({ ok, stale, drift, unrecorded, formerlyRecorded, warnings }, null, 2));
48
48
  }
@@ -54,8 +54,8 @@ function reportCheck(io, args, { ws, config, singleFile }) {
54
54
  }
55
55
  return ok ? 0 : 1;
56
56
  }
57
- function singleFileWarning(config, context) {
58
- return { file: `${config.contextsDir}/${context}/${barrelFile(context)}`, ...singleFileNotice(context) };
57
+ function earlierLayoutWarning(config, { context, layout }) {
58
+ return { file: `${config.contextsDir}/${context}/${barrelFile(context)}`, ...earlierLayoutNotice(context, layout) };
59
59
  }
60
60
  function warningLines(warnings) {
61
61
  return warnings.flatMap(({ file, message, fix }) => ['', `warning ${file}: ${message}`, ` ${fix}`]);
@@ -94,7 +94,12 @@ function driftOf(root, ws, file) {
94
94
  }
95
95
  const expected = ws.read(file);
96
96
  if (expected === undefined) {
97
- return [[file, 'it is no longer generated: its folder holds no declared class']];
97
+ return [
98
+ [
99
+ file,
100
+ 'it is no longer generated: its folder holds no declared class, or the declarations of its layer replace it',
101
+ ],
102
+ ];
98
103
  }
99
104
  const written = fs.existsSync(path.join(root, file)) ? fs.readFileSync(path.join(root, file), 'utf8') : '';
100
105
  return [[file, written === '' ? 'it is missing' : generatedDrift(written, expected)]];
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/commands/docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CA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ChE,CAAC;AAED,MAAM,sBAAsB,GAAG,sCAAsC,CAAC;AAEtE,iIAAiI;AACjI,SAAS,OAAO,CAAC,IAAY,EAAE,EAAa,EAAE,IAAY;IACxD,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,QAAQ,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAE/B,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO;YACL;gBACE,IAAI;gBACJ,4GAA4G;aAC7G;SACF,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3G,OAAO,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACxF,CAAC"}
@@ -2,7 +2,7 @@ import { readConfig } from '../config/index.js';
2
2
  import { CliError } from '../cli-error.js';
3
3
  import { findKind } from '../generate/find-kind.js';
4
4
  import { KINDS } from '../generate/kinds.js';
5
- import { placeInModules } from '../generate/place-in-modules.js';
5
+ import { placeGeneratedFiles } from '../generate/place-generated-files.js';
6
6
  import { refreshDocs } from '../generate/refresh-docs.js';
7
7
  import { refuseSharedWrites } from '../generate/refuse-shared-writes.js';
8
8
  import { stopIgnoringValidation } from '../generate/stop-ignoring-validation.js';
@@ -22,7 +22,7 @@ export const generateCommand = (argv, io) => {
22
22
  keepFlatPlatform(ws, config);
23
23
  const flags = flagsOf(args);
24
24
  const context = kind.positionals[0] === 'context' ? toName(rest[0] ?? '').kebab : undefined;
25
- const stopPlacing = placeInModules(ws, config, {
25
+ const stopPlacing = placeGeneratedFiles(ws, config, {
26
26
  context,
27
27
  module: flags.module,
28
28
  command: ['generate', ...argv].join(' '),
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAY,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACjF,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAA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CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"move-to-module.d.ts","sourceRoot":"","sources":["../../src/commands/move-to-module.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,sHAAsH;AACtH,eAAO,MAAM,mBAAmB,EAAE,OAwCjC,CAAC"}
1
+ {"version":3,"file":"move-to-module.d.ts","sourceRoot":"","sources":["../../src/commands/move-to-module.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,sHAAsH;AACtH,eAAO,MAAM,mBAAmB,EAAE,OAyCjC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { CliError } from '../cli-error.js';
2
2
  import { readConfig } from '../config/index.js';
3
+ import { refuseEarlierLayout } from '../generate/refuse-earlier-layout.js';
3
4
  import { refreshDocs } from '../generate/refresh-docs.js';
4
5
  import { declaredModule } from '../model-modules/index.js';
5
6
  import { moveToModule } from '../move-to-module/index.js';
@@ -15,6 +16,7 @@ export const moveToModuleCommand = (argv, io) => {
15
16
  const context = toName(contextName).kebab;
16
17
  const module = toName(moduleName).kebab;
17
18
  assertDeclared(config, context, module);
19
+ refuseEarlierLayout(ws, config, context);
18
20
  if (paths.length === 0) {
19
21
  throw new CliError('move-to-module needs the paths to move.', `Usage: ddd-ts-kit move-to-module ${context} ${module} <path>..., each relative to the context: domain/aggregates/<name>.aggregate.ts, application/commands/<use-case>.`);
20
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"move-to-module.js","sourceRoot":"","sources":["../../src/commands/move-to-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAe,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,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xG,CAAC"}
@@ -90,7 +90,7 @@ export interface Stack {
90
90
  /**
91
91
  * How a domain error is written: `named`, one class per refusal, named after it and extending
92
92
  * `DomainRefusal`, built by static factories named after what it is about
93
- * (`SlotTaken.forCalendar(..)`), its code read from the closed list `domain/errors/codes.ts` of
93
+ * (`SlotTaken.forCalendar(..)`), its code read from the closed list `<context>.codes.ts` of
94
94
  * its context; `factories`, one error class per concept of the model, each refusal built by a
95
95
  * static factory named in the words of the business (`AppointmentError.slotTaken(..)`); both
96
96
  * are held by the `errors/*` rules. `classes`, one class per error, built with `new`. A config
@@ -0,0 +1,7 @@
1
+ import type { ContextFile } from './context-file.js';
2
+ /**
3
+ * Where a file of a context is, relative to it: at the root, unless only the place an earlier
4
+ * version wrote it holds it. `exists` is given a path relative to the context.
5
+ */
6
+ export declare function contextFileAt(file: ContextFile, context: string, exists: (relative: string) => boolean): string;
7
+ //# sourceMappingURL=context-file-at.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file-at.d.ts","sourceRoot":"","sources":["../../src/context-files/context-file-at.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,CAI/G"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Where a file of a context is, relative to it: at the root, unless only the place an earlier
3
+ * version wrote it holds it. `exists` is given a path relative to the context.
4
+ */
5
+ export function contextFileAt(file, context, exists) {
6
+ const root = file.root(context);
7
+ return !exists(root) && exists(file.earlier(context)) ? file.earlier(context) : root;
8
+ }
9
+ //# sourceMappingURL=context-file-at.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file-at.js","sourceRoot":"","sources":["../../src/context-files/context-file-at.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,IAAiB,EAAE,OAAe,EAAE,MAAqC;IACrG,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEhC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Where the workspace reads and writes a file of a context named at its root or where 0.86 and 0.87 wrote
3
+ * it, both from the project root: at the root, unless only the earlier place holds it, so that a
4
+ * project that has not moved yet goes on being written where it is. Any other file is as given.
5
+ * `existsAsIs` says whether a file is at this very path, on disk or planned.
6
+ */
7
+ export declare function contextFilePlacement(contextsDir: string, existsAsIs: (file: string) => boolean): (file: string) => string;
8
+ //# sourceMappingURL=context-file-placement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file-placement.d.ts","sourceRoot":"","sources":["../../src/context-files/context-file-placement.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACpC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAqB1B"}
@@ -0,0 +1,23 @@
1
+ import { CONTEXT_FILES } from './context-file.js';
2
+ /**
3
+ * Where the workspace reads and writes a file of a context named at its root or where 0.86 and 0.87 wrote
4
+ * it, both from the project root: at the root, unless only the earlier place holds it, so that a
5
+ * project that has not moved yet goes on being written where it is. Any other file is as given.
6
+ * `existsAsIs` says whether a file is at this very path, on disk or planned.
7
+ */
8
+ export function contextFilePlacement(contextsDir, existsAsIs) {
9
+ return (file) => {
10
+ const [context = '', ...rest] = file.startsWith(`${contextsDir}/`)
11
+ ? file.slice(contextsDir.length + 1).split('/')
12
+ : [];
13
+ const relative = rest.join('/');
14
+ const named = CONTEXT_FILES.find((candidate) => [candidate.root(context), candidate.earlier(context)].includes(relative));
15
+ if (named === undefined) {
16
+ return file;
17
+ }
18
+ const root = `${contextsDir}/${context}/${named.root(context)}`;
19
+ const earlier = `${contextsDir}/${context}/${named.earlier(context)}`;
20
+ return !existsAsIs(root) && existsAsIs(earlier) ? earlier : root;
21
+ };
22
+ }
23
+ //# sourceMappingURL=context-file-placement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file-placement.js","sourceRoot":"","sources":["../../src/context-files/context-file-placement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,WAAmB,EACnB,UAAqC;IAErC,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,MAAM,CAAC,OAAO,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,WAAW,GAAG,CAAC;YAChE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC;YAC/C,CAAC,CAAC,EAAE,CAAC;QAEP,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEhC,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAC7C,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CACzE,CAAC;QAEF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,GAAG,GAAG,WAAW,IAAI,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAChE,MAAM,OAAO,GAAG,GAAG,WAAW,IAAI,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAEtE,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IACnE,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A file a context holds once, whatever its modules: at the root of the context, named after it,
3
+ * and, until a later minor version, still read where 0.86 and 0.87 wrote it, in a role folder.
4
+ */
5
+ export interface ContextFile {
6
+ /** The file at the root of the context, relative to it: `billing.codes.ts`. */
7
+ readonly root: (context: string) => string;
8
+ /** Where 0.86 and 0.87 wrote it, relative to the context: `domain/errors/codes.ts`. */
9
+ readonly earlier: (context: string) => string;
10
+ }
11
+ /** The closed list of the codes of the refusals of a context. */
12
+ export declare const CODES_FILE: ContextFile;
13
+ /** The permission set of a context. */
14
+ export declare const PERMISSIONS_FILE: ContextFile;
15
+ export declare const CONTEXT_FILES: readonly ContextFile[];
16
+ //# sourceMappingURL=context-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file.d.ts","sourceRoot":"","sources":["../../src/context-files/context-file.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED,iEAAiE;AACjE,eAAO,MAAM,UAAU,EAAE,WAGxB,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,gBAAgB,EAAE,WAG9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAAmC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /** The closed list of the codes of the refusals of a context. */
2
+ export const CODES_FILE = {
3
+ root: (context) => `${context}.codes.ts`,
4
+ earlier: () => 'domain/errors/codes.ts',
5
+ };
6
+ /** The permission set of a context. */
7
+ export const PERMISSIONS_FILE = {
8
+ root: (context) => `${context}.permissions.ts`,
9
+ earlier: (context) => `application/authorization/${context}.permissions.ts`,
10
+ };
11
+ export const CONTEXT_FILES = [CODES_FILE, PERMISSIONS_FILE];
12
+ //# sourceMappingURL=context-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file.js","sourceRoot":"","sources":["../../src/context-files/context-file.ts"],"names":[],"mappings":"AAWA,iEAAiE;AACjE,MAAM,CAAC,MAAM,UAAU,GAAgB;IACrC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,WAAW;IACxC,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB;CACxC,CAAC;AAEF,uCAAuC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAgB;IAC3C,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,iBAAiB;IAC9C,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,6BAA6B,OAAO,iBAAiB;CAC5E,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The path a file of a context at its root is read as, relative to the context, so that every rule
3
+ * keeps the meaning it had in the role folder: `billing.codes.ts` is `domain/errors/codes.ts`.
4
+ * Undefined for any other file.
5
+ */
6
+ export declare function earlierPlaceOf(context: string, relative: string): string | undefined;
7
+ //# sourceMappingURL=earlier-place-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"earlier-place-of.d.ts","sourceRoot":"","sources":["../../src/context-files/earlier-place-of.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEpF"}
@@ -0,0 +1,10 @@
1
+ import { CONTEXT_FILES } from './context-file.js';
2
+ /**
3
+ * The path a file of a context at its root is read as, relative to the context, so that every rule
4
+ * keeps the meaning it had in the role folder: `billing.codes.ts` is `domain/errors/codes.ts`.
5
+ * Undefined for any other file.
6
+ */
7
+ export function earlierPlaceOf(context, relative) {
8
+ return CONTEXT_FILES.find((file) => file.root(context) === relative)?.earlier(context);
9
+ }
10
+ //# sourceMappingURL=earlier-place-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"earlier-place-of.js","sourceRoot":"","sources":["../../src/context-files/earlier-place-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,QAAgB;IAC9D,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AACzF,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { CODES_FILE, CONTEXT_FILES, PERMISSIONS_FILE } from './context-file.js';
2
+ export { contextFileAt } from './context-file-at.js';
3
+ export { contextFilePlacement } from './context-file-placement.js';
4
+ export { earlierPlaceOf } from './earlier-place-of.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context-files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { CODES_FILE, CONTEXT_FILES, PERMISSIONS_FILE } from './context-file.js';
2
+ export { contextFileAt } from './context-file-at.js';
3
+ export { contextFilePlacement } from './context-file-placement.js';
4
+ export { earlierPlaceOf } from './earlier-place-of.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context-files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Config } from '../config/index.js';
2
+ import { type FileMove } from '../file-moves/index.js';
3
+ import type { Workspace } from '../workspace/index.js';
4
+ /** What bringing the contexts to the layout of this version changed, and what is left to a person. */
5
+ export interface ContextLayout {
6
+ readonly moved: readonly FileMove[];
7
+ readonly rewritten: readonly string[];
8
+ readonly manual: readonly string[];
9
+ }
10
+ /**
11
+ * Brings the contexts named, or every context of the config, to the layout of this version: the
12
+ * code list and the permission set that 0.86 and 0.87 wrote in a role folder move to the root of their
13
+ * context, each module of the model moves to its folder with its adapters, routes and specs
14
+ * (`moduleMoves`), every import of them follows, and what derives from the tree is written again: the
15
+ * import graph rules, the generated declarations, and the code types knip is told of, named where
16
+ * they are. A context that holds both places is left to a person, who keeps the one at the root.
17
+ */
18
+ export declare function contextLayout(ws: Workspace, config: Config, asked: readonly string[]): ContextLayout;
19
+ //# sourceMappingURL=context-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-layout.d.ts","sourceRoot":"","sources":["../../src/context-layout/context-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C,sGAAsG;AACtG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa,CAyBpG"}
@@ -0,0 +1,55 @@
1
+ import { CONTEXT_FILES } from '../context-files/index.js';
2
+ import { moveFiles } from '../file-moves/index.js';
3
+ import { refreshDocs } from '../generate/refresh-docs.js';
4
+ import { ignoreCodeTypesWhereTheyAre } from '../knip/index.js';
5
+ import { moduleMoves } from './module-moves.js';
6
+ const KNIP_BY_HAND = 'knip.json is not plain JSON: tell knip that the code types are a contract where they are now, under "ignoreIssues": `"src/contexts/*/*.codes.ts": ["types"]`.';
7
+ /**
8
+ * Brings the contexts named, or every context of the config, to the layout of this version: the
9
+ * code list and the permission set that 0.86 and 0.87 wrote in a role folder move to the root of their
10
+ * context, each module of the model moves to its folder with its adapters, routes and specs
11
+ * (`moduleMoves`), every import of them follows, and what derives from the tree is written again: the
12
+ * import graph rules, the generated declarations, and the code types knip is told of, named where
13
+ * they are. A context that holds both places is left to a person, who keeps the one at the root.
14
+ */
15
+ export function contextLayout(ws, config, asked) {
16
+ const contexts = (asked.length > 0 ? asked : Object.keys(config.contexts)).filter((context) => ws.exists(`${config.contextsDir}/${context}`));
17
+ const toTheRoot = contextFileMoves(ws, config, contexts);
18
+ const inModules = contexts.map((context) => moduleMoves(ws, config, context));
19
+ const moved = [...toTheRoot.moves, ...inModules.flatMap((placed) => placed.moves)];
20
+ const { rewritten } = moveFiles(ws, config, moved);
21
+ // What derives from the tree follows the moved files: the import graph rules and the declarations.
22
+ if (moved.length > 0) {
23
+ refreshDocs(ws, 'move');
24
+ }
25
+ // knip is told of the code lists where they are, also when a person moved them.
26
+ const knip = ignoreCodeTypesWhereTheyAre(ws, config);
27
+ const unplaced = inModules.flatMap((placed) => placed.unplaced).map(unplacedLine);
28
+ const taken = inModules.flatMap((placed) => placed.taken).map(takenLine);
29
+ return {
30
+ moved,
31
+ rewritten,
32
+ manual: [...toTheRoot.manual, ...taken, ...unplaced, ...(knip === 'unreadable' ? [KNIP_BY_HAND] : [])],
33
+ };
34
+ }
35
+ /** The code lists and permission sets of the contexts that move to their root, and the contexts that hold both places. */
36
+ function contextFileMoves(ws, config, contexts) {
37
+ const found = contexts
38
+ .flatMap((context) => CONTEXT_FILES.map((file) => {
39
+ const directory = `${config.contextsDir}/${context}`;
40
+ return { from: `${directory}/${file.earlier(context)}`, to: `${directory}/${file.root(context)}` };
41
+ }))
42
+ .filter((move) => ws.exists(move.from));
43
+ const moves = found.filter((move) => !ws.exists(move.to));
44
+ const manual = found
45
+ .filter((move) => !moves.includes(move))
46
+ .map((move) => `${move.from} and ${move.to} both exist: keep ${move.to}, move into it what the other holds that it lacks, then delete ${move.from}.`);
47
+ return { moves, manual };
48
+ }
49
+ function takenLine({ from, to }) {
50
+ return `${from} and ${to} both exist: nothing was overwritten. Keep the file of the module, move into it what the other holds that it lacks, delete the other, and run the command again.`;
51
+ }
52
+ function unplacedLine(file) {
53
+ return `${file} names no module, or two, by what it imports: move it with \`ddd-ts-kit move-to-module <context> <module> <path>\`, or leave it at the level of the context if every module uses it.`;
54
+ }
55
+ //# sourceMappingURL=context-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"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E,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE1C,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAE1D,MAAM,MAAM,GAAG,KAAK;SACjB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACvC,GAAG,CACF,CAAC,IAAI,EAAE,EAAE,CACP,GAAG,IAAI,CAAC,IAAI,QAAQ,IAAI,CAAC,EAAE,qBAAqB,IAAI,CAAC,EAAE,kEAAkE,IAAI,CAAC,IAAI,GAAG,CACxI,CAAC;IAEJ,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAC3B,CAAC;AAED,SAAS,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,EAAY;IACvC,OAAO,GAAG,IAAI,QAAQ,EAAE,kKAAkK,CAAC;AAC7L,CAAC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,GAAG,IAAI,sLAAsL,CAAC;AACvM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { contextLayout, type ContextLayout } from './context-layout.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context-layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { contextLayout } from './context-layout.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context-layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { Config } from '../config/index.js';
2
+ import type { FileMove } from '../file-moves/index.js';
3
+ import type { Workspace } from '../workspace/index.js';
4
+ /** Where the files of the modules of a context go, and the ones no module could be told for. */
5
+ export interface ModuleMoves {
6
+ readonly moves: readonly FileMove[];
7
+ /** Files of a layer or specs left at the level of the context: no module, or more than one, is theirs. */
8
+ readonly unplaced: readonly string[];
9
+ /** Moves not made because a file is at their target already: nothing is overwritten. */
10
+ readonly taken: readonly FileMove[];
11
+ }
12
+ /**
13
+ * The moves that give each module of a context its folder: what 0.86 and 0.87 put under `domain/<module>/`
14
+ * and `application/<module>/` goes to `<module>/domain/` and `<module>/application/`; an adapter,
15
+ * a route or a spec left at the level of the context goes to the module of what it imports (or,
16
+ * for a spec, of the file it is named after), or of what imports it when it imports nothing of a
17
+ * module. The files the context keeps at its own level stay, and so does a file whose imports
18
+ * name two modules, or none: it is listed.
19
+ */
20
+ export declare function moduleMoves(ws: Workspace, config: Config, context: string): ModuleMoves;
21
+ //# sourceMappingURL=module-moves.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-moves.d.ts","sourceRoot":"","sources":["../../src/context-layout/module-moves.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAU9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAK9C,gGAAgG;AAChG,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,0GAA0G;IAC1G,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,wFAAwF;IACxF,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CACrC;AAQD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAmCvF"}