@hexagen-monaco/sync 0.4.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 (732) hide show
  1. package/LICENSE +33 -0
  2. package/README.md +181 -0
  3. package/dist/application/index.d.ts +3 -0
  4. package/dist/application/index.d.ts.map +1 -0
  5. package/dist/application/ports/index.d.ts +2 -0
  6. package/dist/application/ports/index.d.ts.map +1 -0
  7. package/dist/application/ports/out/architecture-graph-provider.port.d.ts +6 -0
  8. package/dist/application/ports/out/architecture-graph-provider.port.d.ts.map +1 -0
  9. package/dist/application/ports/out/file-system.port.d.ts +22 -0
  10. package/dist/application/ports/out/file-system.port.d.ts.map +1 -0
  11. package/dist/application/ports/out/generator-config.port.d.ts +51 -0
  12. package/dist/application/ports/out/generator-config.port.d.ts.map +1 -0
  13. package/dist/application/ports/out/index.d.ts +9 -0
  14. package/dist/application/ports/out/index.d.ts.map +1 -0
  15. package/dist/application/ports/out/linter-report-provider.port.d.ts +6 -0
  16. package/dist/application/ports/out/linter-report-provider.port.d.ts.map +1 -0
  17. package/dist/application/ports/out/ownership-registry.port.d.ts +35 -0
  18. package/dist/application/ports/out/ownership-registry.port.d.ts.map +1 -0
  19. package/dist/application/ports/out/project-configuration-read.port.d.ts +9 -0
  20. package/dist/application/ports/out/project-configuration-read.port.d.ts.map +1 -0
  21. package/dist/application/ports/out/symbol-reference-provider.port.d.ts +10 -0
  22. package/dist/application/ports/out/symbol-reference-provider.port.d.ts.map +1 -0
  23. package/dist/application/ports/out/workspace-file-provider.port.d.ts +14 -0
  24. package/dist/application/ports/out/workspace-file-provider.port.d.ts.map +1 -0
  25. package/dist/application/use-cases/get-architecture-graph.use-case.d.ts +8 -0
  26. package/dist/application/use-cases/get-architecture-graph.use-case.d.ts.map +1 -0
  27. package/dist/application/use-cases/get-linter-report.use-case.d.ts +8 -0
  28. package/dist/application/use-cases/get-linter-report.use-case.d.ts.map +1 -0
  29. package/dist/application/use-cases/get-manifest-resource.use-case.d.ts +8 -0
  30. package/dist/application/use-cases/get-manifest-resource.use-case.d.ts.map +1 -0
  31. package/dist/application/use-cases/index.d.ts +4 -0
  32. package/dist/application/use-cases/index.d.ts.map +1 -0
  33. package/dist/application/use-cases/refactoring-impact.use-case.d.ts +29 -0
  34. package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -0
  35. package/dist/application/use-cases/stub-generation.use-case.d.ts +23 -0
  36. package/dist/application/use-cases/stub-generation.use-case.d.ts.map +1 -0
  37. package/dist/arch-linter-bin.d.ts +20 -0
  38. package/dist/arch-linter-bin.d.ts.map +1 -0
  39. package/dist/cli.d.ts +3 -0
  40. package/dist/cli.d.ts.map +1 -0
  41. package/dist/cli.js +12149 -0
  42. package/dist/cli.js.map +1 -0
  43. package/dist/commands/add/index.d.ts +8 -0
  44. package/dist/commands/add/index.d.ts.map +1 -0
  45. package/dist/commands/add/validate.d.ts +2 -0
  46. package/dist/commands/add/validate.d.ts.map +1 -0
  47. package/dist/commands/arch/add.d.ts +3 -0
  48. package/dist/commands/arch/add.d.ts.map +1 -0
  49. package/dist/commands/arch/context/command.d.ts +4 -0
  50. package/dist/commands/arch/context/command.d.ts.map +1 -0
  51. package/dist/commands/arch/context/persistence.d.ts +22 -0
  52. package/dist/commands/arch/context/persistence.d.ts.map +1 -0
  53. package/dist/commands/arch/context/wizard.d.ts +7 -0
  54. package/dist/commands/arch/context/wizard.d.ts.map +1 -0
  55. package/dist/commands/arch/diff.d.ts +3 -0
  56. package/dist/commands/arch/diff.d.ts.map +1 -0
  57. package/dist/commands/arch/edit.d.ts +9 -0
  58. package/dist/commands/arch/edit.d.ts.map +1 -0
  59. package/dist/commands/arch/index.d.ts +3 -0
  60. package/dist/commands/arch/index.d.ts.map +1 -0
  61. package/dist/commands/arch/list.d.ts +2 -0
  62. package/dist/commands/arch/list.d.ts.map +1 -0
  63. package/dist/commands/arch/port/persistence.d.ts +28 -0
  64. package/dist/commands/arch/port/persistence.d.ts.map +1 -0
  65. package/dist/commands/arch/port.d.ts +4 -0
  66. package/dist/commands/arch/port.d.ts.map +1 -0
  67. package/dist/commands/arch/refactor-rename-entity.d.ts +3 -0
  68. package/dist/commands/arch/refactor-rename-entity.d.ts.map +1 -0
  69. package/dist/commands/arch/refactor-rename-port.d.ts +3 -0
  70. package/dist/commands/arch/refactor-rename-port.d.ts.map +1 -0
  71. package/dist/commands/arch/refactor-rename-use-case.d.ts +3 -0
  72. package/dist/commands/arch/refactor-rename-use-case.d.ts.map +1 -0
  73. package/dist/commands/arch/refactor-shared.d.ts +11 -0
  74. package/dist/commands/arch/refactor-shared.d.ts.map +1 -0
  75. package/dist/commands/arch/refactor.d.ts +3 -0
  76. package/dist/commands/arch/refactor.d.ts.map +1 -0
  77. package/dist/commands/arch/remove/context.d.ts +7 -0
  78. package/dist/commands/arch/remove/context.d.ts.map +1 -0
  79. package/dist/commands/arch/remove/port.d.ts +7 -0
  80. package/dist/commands/arch/remove/port.d.ts.map +1 -0
  81. package/dist/commands/arch/remove.d.ts +3 -0
  82. package/dist/commands/arch/remove.d.ts.map +1 -0
  83. package/dist/commands/arch/validate.d.ts +2 -0
  84. package/dist/commands/arch/validate.d.ts.map +1 -0
  85. package/dist/commands/manifest/index.d.ts +3 -0
  86. package/dist/commands/manifest/index.d.ts.map +1 -0
  87. package/dist/commands/manifest/split-utils.d.ts +8 -0
  88. package/dist/commands/manifest/split-utils.d.ts.map +1 -0
  89. package/dist/commands/manifest/split.d.ts +3 -0
  90. package/dist/commands/manifest/split.d.ts.map +1 -0
  91. package/dist/commands/shared/confirm.d.ts +5 -0
  92. package/dist/commands/shared/confirm.d.ts.map +1 -0
  93. package/dist/commands/shared/error-formatter.d.ts +7 -0
  94. package/dist/commands/shared/error-formatter.d.ts.map +1 -0
  95. package/dist/commands/shared/index.d.ts +15 -0
  96. package/dist/commands/shared/index.d.ts.map +1 -0
  97. package/dist/commands/shared/project-root.d.ts +3 -0
  98. package/dist/commands/shared/project-root.d.ts.map +1 -0
  99. package/dist/commands/shared/prompt-service.d.ts +15 -0
  100. package/dist/commands/shared/prompt-service.d.ts.map +1 -0
  101. package/dist/commands/shared/spinner.d.ts +13 -0
  102. package/dist/commands/shared/spinner.d.ts.map +1 -0
  103. package/dist/commands/shared/template-engine-path.d.ts +12 -0
  104. package/dist/commands/shared/template-engine-path.d.ts.map +1 -0
  105. package/dist/commands/shared/validation.d.ts +15 -0
  106. package/dist/commands/shared/validation.d.ts.map +1 -0
  107. package/dist/commands/shared/yaml-service.d.ts +23 -0
  108. package/dist/commands/shared/yaml-service.d.ts.map +1 -0
  109. package/dist/commands/templates/index.d.ts +3 -0
  110. package/dist/commands/templates/index.d.ts.map +1 -0
  111. package/dist/commands/templates/info.d.ts +2 -0
  112. package/dist/commands/templates/info.d.ts.map +1 -0
  113. package/dist/commands/templates/list.d.ts +2 -0
  114. package/dist/commands/templates/list.d.ts.map +1 -0
  115. package/dist/config/barrel-exclusions.d.ts +10 -0
  116. package/dist/config/barrel-exclusions.d.ts.map +1 -0
  117. package/dist/config.d.ts +19 -0
  118. package/dist/config.d.ts.map +1 -0
  119. package/dist/domain/index.d.ts +5 -0
  120. package/dist/domain/index.d.ts.map +1 -0
  121. package/dist/domain/result.d.ts +4 -0
  122. package/dist/domain/result.d.ts.map +1 -0
  123. package/dist/domain/services/architectural-boundary-checker.d.ts +18 -0
  124. package/dist/domain/services/architectural-boundary-checker.d.ts.map +1 -0
  125. package/dist/domain/services/emission-plan-builder.d.ts +17 -0
  126. package/dist/domain/services/emission-plan-builder.d.ts.map +1 -0
  127. package/dist/domain/services/impact-analysis.types.d.ts +24 -0
  128. package/dist/domain/services/impact-analysis.types.d.ts.map +1 -0
  129. package/dist/domain/services/impact-request-validator.d.ts +14 -0
  130. package/dist/domain/services/impact-request-validator.d.ts.map +1 -0
  131. package/dist/domain/services/index.d.ts +7 -0
  132. package/dist/domain/services/index.d.ts.map +1 -0
  133. package/dist/domain/services/layer-classifier.d.ts +4 -0
  134. package/dist/domain/services/layer-classifier.d.ts.map +1 -0
  135. package/dist/domain/services/stub-template-resolver.d.ts +16 -0
  136. package/dist/domain/services/stub-template-resolver.d.ts.map +1 -0
  137. package/dist/domain/session.d.ts +6 -0
  138. package/dist/domain/session.d.ts.map +1 -0
  139. package/dist/domain/stub-templates.d.ts +8 -0
  140. package/dist/domain/stub-templates.d.ts.map +1 -0
  141. package/dist/domain/types.d.ts +4 -0
  142. package/dist/domain/types.d.ts.map +1 -0
  143. package/dist/fs-utils.d.ts +28 -0
  144. package/dist/fs-utils.d.ts.map +1 -0
  145. package/dist/generators/apps-framework-templates.d.ts +4 -0
  146. package/dist/generators/apps-framework-templates.d.ts.map +1 -0
  147. package/dist/generators/apps.d.ts +5 -0
  148. package/dist/generators/apps.d.ts.map +1 -0
  149. package/dist/generators/architecture-file-templates.d.ts +9 -0
  150. package/dist/generators/architecture-file-templates.d.ts.map +1 -0
  151. package/dist/generators/architecture-files.d.ts +5 -0
  152. package/dist/generators/architecture-files.d.ts.map +1 -0
  153. package/dist/generators/barrels/index.d.ts +6 -0
  154. package/dist/generators/barrels/index.d.ts.map +1 -0
  155. package/dist/generators/barrels/recursive.d.ts +44 -0
  156. package/dist/generators/barrels/recursive.d.ts.map +1 -0
  157. package/dist/generators/barrels/utils.d.ts +56 -0
  158. package/dist/generators/barrels/utils.d.ts.map +1 -0
  159. package/dist/generators/barrels.d.ts +31 -0
  160. package/dist/generators/barrels.d.ts.map +1 -0
  161. package/dist/generators/eslint.d.ts +47 -0
  162. package/dist/generators/eslint.d.ts.map +1 -0
  163. package/dist/generators/layer-folders.d.ts +16 -0
  164. package/dist/generators/layer-folders.d.ts.map +1 -0
  165. package/dist/generators/migration-assistant.d.ts +7 -0
  166. package/dist/generators/migration-assistant.d.ts.map +1 -0
  167. package/dist/generators/migration-audit.d.ts +28 -0
  168. package/dist/generators/migration-audit.d.ts.map +1 -0
  169. package/dist/generators/migration-stubs.d.ts +7 -0
  170. package/dist/generators/migration-stubs.d.ts.map +1 -0
  171. package/dist/generators/package-json.d.ts +11 -0
  172. package/dist/generators/package-json.d.ts.map +1 -0
  173. package/dist/generators/port-analyzer.d.ts +56 -0
  174. package/dist/generators/port-analyzer.d.ts.map +1 -0
  175. package/dist/generators/reap.d.ts +11 -0
  176. package/dist/generators/reap.d.ts.map +1 -0
  177. package/dist/generators/root-file-templates.d.ts +8 -0
  178. package/dist/generators/root-file-templates.d.ts.map +1 -0
  179. package/dist/generators/root-files.d.ts +5 -0
  180. package/dist/generators/root-files.d.ts.map +1 -0
  181. package/dist/generators/stubs/index.d.ts +4 -0
  182. package/dist/generators/stubs/index.d.ts.map +1 -0
  183. package/dist/generators/stubs/stub-templates.d.ts +3 -0
  184. package/dist/generators/stubs/stub-templates.d.ts.map +1 -0
  185. package/dist/generators/stubs.d.ts +5 -0
  186. package/dist/generators/stubs.d.ts.map +1 -0
  187. package/dist/generators/test-generator.d.ts +7 -0
  188. package/dist/generators/test-generator.d.ts.map +1 -0
  189. package/dist/generators/test-templates/data-builder.d.ts +2 -0
  190. package/dist/generators/test-templates/data-builder.d.ts.map +1 -0
  191. package/dist/generators/test-templates/enhanced-test-double.d.ts +2 -0
  192. package/dist/generators/test-templates/enhanced-test-double.d.ts.map +1 -0
  193. package/dist/generators/test-templates/index.d.ts +5 -0
  194. package/dist/generators/test-templates/index.d.ts.map +1 -0
  195. package/dist/generators/test-templates/integration-test.d.ts +2 -0
  196. package/dist/generators/test-templates/integration-test.d.ts.map +1 -0
  197. package/dist/generators/test-templates/unit-test.d.ts +2 -0
  198. package/dist/generators/test-templates/unit-test.d.ts.map +1 -0
  199. package/dist/generators/tsconfig.d.ts +16 -0
  200. package/dist/generators/tsconfig.d.ts.map +1 -0
  201. package/dist/generators/validators/index.d.ts +11 -0
  202. package/dist/generators/validators/index.d.ts.map +1 -0
  203. package/dist/generators/validators/validate-dependencies.d.ts +7 -0
  204. package/dist/generators/validators/validate-dependencies.d.ts.map +1 -0
  205. package/dist/generators/validators/validate-manifest-sync.d.ts +5 -0
  206. package/dist/generators/validators/validate-manifest-sync.d.ts.map +1 -0
  207. package/dist/generators/validators/validate-port-adapter.d.ts +5 -0
  208. package/dist/generators/validators/validate-port-adapter.d.ts.map +1 -0
  209. package/dist/generators/validators/validation-types.d.ts +20 -0
  210. package/dist/generators/validators/validation-types.d.ts.map +1 -0
  211. package/dist/generators/validators.d.ts +7 -0
  212. package/dist/generators/validators.d.ts.map +1 -0
  213. package/dist/generators/wiring.d.ts +20 -0
  214. package/dist/generators/wiring.d.ts.map +1 -0
  215. package/dist/index.d.ts +12 -0
  216. package/dist/index.d.ts.map +1 -0
  217. package/dist/index.js +8070 -0
  218. package/dist/index.js.map +1 -0
  219. package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts +13 -0
  220. package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -0
  221. package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts +12 -0
  222. package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -0
  223. package/dist/infrastructure/adapters/in-memory-config-double.d.ts +30 -0
  224. package/dist/infrastructure/adapters/in-memory-config-double.d.ts.map +1 -0
  225. package/dist/infrastructure/adapters/index.d.ts +5 -0
  226. package/dist/infrastructure/adapters/index.d.ts.map +1 -0
  227. package/dist/infrastructure/adapters/yaml-config.adapter.d.ts +38 -0
  228. package/dist/infrastructure/adapters/yaml-config.adapter.d.ts.map +1 -0
  229. package/dist/infrastructure/index.d.ts +2 -0
  230. package/dist/infrastructure/index.d.ts.map +1 -0
  231. package/dist/linter.d.ts +7 -0
  232. package/dist/linter.d.ts.map +1 -0
  233. package/dist/loaders/index.d.ts +2 -0
  234. package/dist/loaders/index.d.ts.map +1 -0
  235. package/dist/loaders/manifest-merge-loader.d.ts +3 -0
  236. package/dist/loaders/manifest-merge-loader.d.ts.map +1 -0
  237. package/dist/lock.d.ts +14 -0
  238. package/dist/lock.d.ts.map +1 -0
  239. package/dist/manifest-service.d.ts +10 -0
  240. package/dist/manifest-service.d.ts.map +1 -0
  241. package/dist/migration-report.d.ts +12 -0
  242. package/dist/migration-report.d.ts.map +1 -0
  243. package/dist/preflight.d.ts +7 -0
  244. package/dist/preflight.d.ts.map +1 -0
  245. package/dist/refactoring/git-operations.d.ts +9 -0
  246. package/dist/refactoring/git-operations.d.ts.map +1 -0
  247. package/dist/refactoring/impact-analyzer.d.ts +23 -0
  248. package/dist/refactoring/impact-analyzer.d.ts.map +1 -0
  249. package/dist/refactoring/index.d.ts +6 -0
  250. package/dist/refactoring/index.d.ts.map +1 -0
  251. package/dist/refactoring/refactoring-engine.d.ts +40 -0
  252. package/dist/refactoring/refactoring-engine.d.ts.map +1 -0
  253. package/dist/refactoring/refactoring-patterns/base-pattern.d.ts +37 -0
  254. package/dist/refactoring/refactoring-patterns/base-pattern.d.ts.map +1 -0
  255. package/dist/refactoring/refactoring-patterns/index.d.ts +5 -0
  256. package/dist/refactoring/refactoring-patterns/index.d.ts.map +1 -0
  257. package/dist/refactoring/refactoring-patterns/refactoring-utils.d.ts +8 -0
  258. package/dist/refactoring/refactoring-patterns/refactoring-utils.d.ts.map +1 -0
  259. package/dist/refactoring/refactoring-patterns/rename-entity.pattern.d.ts +19 -0
  260. package/dist/refactoring/refactoring-patterns/rename-entity.pattern.d.ts.map +1 -0
  261. package/dist/refactoring/refactoring-patterns/rename-port.pattern.d.ts +42 -0
  262. package/dist/refactoring/refactoring-patterns/rename-port.pattern.d.ts.map +1 -0
  263. package/dist/refactoring/refactoring-patterns/rename-use-case.pattern.d.ts +40 -0
  264. package/dist/refactoring/refactoring-patterns/rename-use-case.pattern.d.ts.map +1 -0
  265. package/dist/refactoring/safe-refactoring-orchestrator.d.ts +24 -0
  266. package/dist/refactoring/safe-refactoring-orchestrator.d.ts.map +1 -0
  267. package/dist/refactoring/validation-suite.d.ts +20 -0
  268. package/dist/refactoring/validation-suite.d.ts.map +1 -0
  269. package/dist/results.d.ts +16 -0
  270. package/dist/results.d.ts.map +1 -0
  271. package/dist/sync-engine-helpers.d.ts +15 -0
  272. package/dist/sync-engine-helpers.d.ts.map +1 -0
  273. package/dist/sync-engine-init.d.ts +12 -0
  274. package/dist/sync-engine-init.d.ts.map +1 -0
  275. package/dist/sync-engine.d.ts +21 -0
  276. package/dist/sync-engine.d.ts.map +1 -0
  277. package/dist/template-engine.d.ts +3 -0
  278. package/dist/template-engine.d.ts.map +1 -0
  279. package/dist/templates/__example__/files/example-output.txt +9 -0
  280. package/dist/templates/__example__/manifest.json +44 -0
  281. package/dist/templates/adobe-creative-production/README.md +89 -0
  282. package/dist/templates/adobe-creative-production/files/.env.adobe-creative-production.example +6 -0
  283. package/dist/templates/adobe-creative-production/files/src/domain/ports/out/creative-production.port.ts +62 -0
  284. package/dist/templates/adobe-creative-production/files/src/infrastructure/adobe/creative-production/creative-production.adapter.ts +144 -0
  285. package/dist/templates/adobe-creative-production/manifest.json +25 -0
  286. package/dist/templates/adobe-express/README.md +85 -0
  287. package/dist/templates/adobe-express/files/.env.adobe-express.example +7 -0
  288. package/dist/templates/adobe-express/files/src/domain/ports/out/express.port.ts +47 -0
  289. package/dist/templates/adobe-express/files/src/infrastructure/adobe/express/express.adapter.ts +155 -0
  290. package/dist/templates/adobe-express/manifest.json +32 -0
  291. package/dist/templates/adobe-firefly-composite/README.md +75 -0
  292. package/dist/templates/adobe-firefly-composite/files/.env.adobe-composite.example +5 -0
  293. package/dist/templates/adobe-firefly-composite/files/src/domain/ports/out/composite.port.ts +39 -0
  294. package/dist/templates/adobe-firefly-composite/files/src/infrastructure/adobe/composite/composite.adapter.ts +102 -0
  295. package/dist/templates/adobe-firefly-composite/manifest.json +32 -0
  296. package/dist/templates/adobe-firefly-content-tagging/README.md +70 -0
  297. package/dist/templates/adobe-firefly-content-tagging/files/.env.adobe-content-tagging.example +4 -0
  298. package/dist/templates/adobe-firefly-content-tagging/files/src/domain/ports/out/content-tagging.port.ts +28 -0
  299. package/dist/templates/adobe-firefly-content-tagging/files/src/infrastructure/adobe/content-tagging/content-tagging.adapter.ts +120 -0
  300. package/dist/templates/adobe-firefly-content-tagging/manifest.json +31 -0
  301. package/dist/templates/adobe-firefly-core/README.md +147 -0
  302. package/dist/templates/adobe-firefly-core/files/.env.adobe.example +15 -0
  303. package/dist/templates/adobe-firefly-core/files/src/domain/ports/out/firefly-auth.port.ts +11 -0
  304. package/dist/templates/adobe-firefly-core/files/src/domain/ports/out/firefly-job.port.ts +50 -0
  305. package/dist/templates/adobe-firefly-core/files/src/domain/ports/out/firefly-storage.port.ts +20 -0
  306. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/auth/ims-token-provider.adapter.ts +112 -0
  307. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/auth/smoke-token.ts +17 -0
  308. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/errors/firefly-errors.ts +91 -0
  309. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/http/firefly-client.ts +135 -0
  310. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/index.ts +46 -0
  311. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/job-poller.ts +52 -0
  312. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/job-port.ts +149 -0
  313. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/job-result.ts +113 -0
  314. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/webhook-verifier.ts +67 -0
  315. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/storage/passthrough-storage.adapter.ts +36 -0
  316. package/dist/templates/adobe-firefly-core/manifest.json +86 -0
  317. package/dist/templates/adobe-firefly-custom-models/README.md +96 -0
  318. package/dist/templates/adobe-firefly-custom-models/files/.env.adobe-custom-models.example +6 -0
  319. package/dist/templates/adobe-firefly-custom-models/files/src/domain/ports/out/custom-model.port.ts +77 -0
  320. package/dist/templates/adobe-firefly-custom-models/files/src/infrastructure/adobe/custom-models/firefly-custom-model.adapter.ts +199 -0
  321. package/dist/templates/adobe-firefly-custom-models/manifest.json +33 -0
  322. package/dist/templates/adobe-firefly-generate/README.md +86 -0
  323. package/dist/templates/adobe-firefly-generate/files/.env.adobe-generate.example +5 -0
  324. package/dist/templates/adobe-firefly-generate/files/src/domain/ports/out/image-generation.port.ts +61 -0
  325. package/dist/templates/adobe-firefly-generate/files/src/infrastructure/adobe/generate/firefly-generate.adapter.ts +167 -0
  326. package/dist/templates/adobe-firefly-generate/manifest.json +45 -0
  327. package/dist/templates/adobe-firefly-media/README.md +99 -0
  328. package/dist/templates/adobe-firefly-media/files/.env.adobe-media.example +8 -0
  329. package/dist/templates/adobe-firefly-media/files/src/domain/ports/out/media-generation.port.ts +80 -0
  330. package/dist/templates/adobe-firefly-media/files/src/infrastructure/adobe/media/firefly-media.adapter.ts +161 -0
  331. package/dist/templates/adobe-firefly-media/manifest.json +32 -0
  332. package/dist/templates/adobe-firefly-storage-azure/README.md +88 -0
  333. package/dist/templates/adobe-firefly-storage-azure/files/.env.adobe-storage-azure.example +9 -0
  334. package/dist/templates/adobe-firefly-storage-azure/files/src/infrastructure/adobe/storage/azure-blob-presign.adapter.ts +171 -0
  335. package/dist/templates/adobe-firefly-storage-azure/files/src/infrastructure/adobe/storage/azure-register.ts +15 -0
  336. package/dist/templates/adobe-firefly-storage-azure/manifest.json +37 -0
  337. package/dist/templates/adobe-firefly-storage-gcs/README.md +85 -0
  338. package/dist/templates/adobe-firefly-storage-gcs/files/.env.adobe-storage-gcs.example +8 -0
  339. package/dist/templates/adobe-firefly-storage-gcs/files/src/infrastructure/adobe/storage/gcs-presign.adapter.ts +100 -0
  340. package/dist/templates/adobe-firefly-storage-gcs/files/src/infrastructure/adobe/storage/gcs-register.ts +15 -0
  341. package/dist/templates/adobe-firefly-storage-gcs/manifest.json +33 -0
  342. package/dist/templates/adobe-firefly-storage-s3/README.md +76 -0
  343. package/dist/templates/adobe-firefly-storage-s3/files/.env.adobe-storage-s3.example +8 -0
  344. package/dist/templates/adobe-firefly-storage-s3/files/src/infrastructure/adobe/storage/s3-presign.adapter.ts +109 -0
  345. package/dist/templates/adobe-firefly-storage-s3/files/src/infrastructure/adobe/storage/s3-register.ts +15 -0
  346. package/dist/templates/adobe-firefly-storage-s3/manifest.json +31 -0
  347. package/dist/templates/adobe-firefly-upscale/README.md +68 -0
  348. package/dist/templates/adobe-firefly-upscale/files/.env.adobe-upscale.example +3 -0
  349. package/dist/templates/adobe-firefly-upscale/files/src/domain/ports/out/upscale.port.ts +25 -0
  350. package/dist/templates/adobe-firefly-upscale/files/src/infrastructure/adobe/upscale/upscale.adapter.ts +85 -0
  351. package/dist/templates/adobe-firefly-upscale/manifest.json +30 -0
  352. package/dist/templates/adobe-illustrator/README.md +80 -0
  353. package/dist/templates/adobe-illustrator/files/.env.adobe-illustrator.example +7 -0
  354. package/dist/templates/adobe-illustrator/files/src/domain/ports/out/illustrator.port.ts +51 -0
  355. package/dist/templates/adobe-illustrator/files/src/infrastructure/adobe/illustrator/illustrator.adapter.ts +167 -0
  356. package/dist/templates/adobe-illustrator/manifest.json +38 -0
  357. package/dist/templates/adobe-ims-spa/README.md +99 -0
  358. package/dist/templates/adobe-ims-spa/files/.env.adobe-ims.example +12 -0
  359. package/dist/templates/adobe-ims-spa/files/app/api/auth/callback/route.ts +84 -0
  360. package/dist/templates/adobe-ims-spa/files/app/api/auth/login/route.ts +30 -0
  361. package/dist/templates/adobe-ims-spa/files/app/api/auth/logout/route.ts +24 -0
  362. package/dist/templates/adobe-ims-spa/files/app/api/auth/me/route.ts +18 -0
  363. package/dist/templates/adobe-ims-spa/files/middleware.ts +74 -0
  364. package/dist/templates/adobe-ims-spa/files/src/domain/ports/out/ims-auth.port.ts +24 -0
  365. package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/adobe-ims-auth.adapter.ts +71 -0
  366. package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/config.ts +34 -0
  367. package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/ims-client.ts +85 -0
  368. package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/pkce.ts +37 -0
  369. package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/token-store.ts +54 -0
  370. package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/user-profile-mapper.ts +12 -0
  371. package/dist/templates/adobe-ims-spa/files/src/lib/auth/get-current-user.ts +56 -0
  372. package/dist/templates/adobe-ims-spa/files/src/lib/auth/require-auth.ts +11 -0
  373. package/dist/templates/adobe-ims-spa/manifest.json +88 -0
  374. package/dist/templates/adobe-indesign/README.md +76 -0
  375. package/dist/templates/adobe-indesign/files/.env.adobe-indesign.example +7 -0
  376. package/dist/templates/adobe-indesign/files/src/domain/ports/out/indesign.port.ts +43 -0
  377. package/dist/templates/adobe-indesign/files/src/infrastructure/adobe/indesign/indesign.adapter.ts +160 -0
  378. package/dist/templates/adobe-indesign/manifest.json +38 -0
  379. package/dist/templates/adobe-lightroom/README.md +81 -0
  380. package/dist/templates/adobe-lightroom/files/.env.adobe-lightroom.example +7 -0
  381. package/dist/templates/adobe-lightroom/files/src/domain/ports/out/lightroom.port.ts +36 -0
  382. package/dist/templates/adobe-lightroom/files/src/infrastructure/adobe/lightroom/lightroom.adapter.ts +145 -0
  383. package/dist/templates/adobe-lightroom/manifest.json +39 -0
  384. package/dist/templates/adobe-photoshop/README.md +87 -0
  385. package/dist/templates/adobe-photoshop/files/.env.adobe-photoshop.example +7 -0
  386. package/dist/templates/adobe-photoshop/files/src/domain/ports/out/photoshop-automation.port.ts +60 -0
  387. package/dist/templates/adobe-photoshop/files/src/infrastructure/adobe/photoshop/photoshop-automation.adapter.ts +180 -0
  388. package/dist/templates/adobe-photoshop/manifest.json +45 -0
  389. package/dist/templates/adobe-substance-3d/README.md +88 -0
  390. package/dist/templates/adobe-substance-3d/files/.env.adobe-substance-3d.example +12 -0
  391. package/dist/templates/adobe-substance-3d/files/src/domain/ports/out/substance-3d.port.ts +45 -0
  392. package/dist/templates/adobe-substance-3d/files/src/infrastructure/adobe/substance-3d/substance-3d.adapter.ts +177 -0
  393. package/dist/templates/adobe-substance-3d/manifest.json +39 -0
  394. package/dist/templates/agents-md/README.md +55 -0
  395. package/dist/templates/agents-md/files/.agents/architecture.md +42 -0
  396. package/dist/templates/agents-md/files/.agents/git.md +30 -0
  397. package/dist/templates/agents-md/files/.agents/session-log.md +37 -0
  398. package/dist/templates/agents-md/files/.agents/tech-stack.md +34 -0
  399. package/dist/templates/agents-md/files/.agents/testing.md +30 -0
  400. package/dist/templates/agents-md/files/AGENTS.md +97 -0
  401. package/dist/templates/agents-md/manifest.json +49 -0
  402. package/dist/templates/auth-mock/README.md +57 -0
  403. package/dist/templates/auth-mock/files/.env.auth.example +9 -0
  404. package/dist/templates/auth-mock/files/middleware.ts +28 -0
  405. package/dist/templates/auth-mock/manifest.json +23 -0
  406. package/dist/templates/bedrock-agentcore-runtime/README.md +68 -0
  407. package/dist/templates/bedrock-agentcore-runtime/files/.env.agentcore.example +19 -0
  408. package/dist/templates/bedrock-agentcore-runtime/files/.github/workflows/deploy-agentcore.yml +100 -0
  409. package/dist/templates/bedrock-agentcore-runtime/files/Dockerfile.agentcore +33 -0
  410. package/dist/templates/bedrock-agentcore-runtime/files/agentcore/agentcore.json +16 -0
  411. package/dist/templates/bedrock-agentcore-runtime/files/agentcore/aws-targets.json +7 -0
  412. package/dist/templates/bedrock-agentcore-runtime/files/iam/agentcore-runtime-role.policy.json +49 -0
  413. package/dist/templates/bedrock-agentcore-runtime/files/infra/agentcore-stack.ts +90 -0
  414. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/invocations.handler.ts +152 -0
  415. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/ping.handler.ts +13 -0
  416. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/server.ts +134 -0
  417. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/payload.ts +63 -0
  418. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/session.ts +58 -0
  419. package/dist/templates/bedrock-agentcore-runtime/manifest.json +89 -0
  420. package/dist/templates/bedrock-agentcore-services/README.md +65 -0
  421. package/dist/templates/bedrock-agentcore-services/files/.env.agentcore-services.example +20 -0
  422. package/dist/templates/bedrock-agentcore-services/files/agentcore/agentcore-services.json +14 -0
  423. package/dist/templates/bedrock-agentcore-services/files/src/domain/ports/out/agent-identity.port.ts +26 -0
  424. package/dist/templates/bedrock-agentcore-services/files/src/domain/ports/out/agent-memory.port.ts +30 -0
  425. package/dist/templates/bedrock-agentcore-services/files/src/domain/ports/out/tool-gateway.port.ts +27 -0
  426. package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/gateway/agentcore-gateway.adapter.ts +103 -0
  427. package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/gateway/mcp-tool-mapper.ts +44 -0
  428. package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/identity/agentcore-identity.adapter.ts +82 -0
  429. package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/identity/idp-bridge.ts +74 -0
  430. package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/memory/agentcore-memory.adapter.ts +82 -0
  431. package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/memory/memory-config.ts +45 -0
  432. package/dist/templates/bedrock-agentcore-services/manifest.json +97 -0
  433. package/dist/templates/better-auth/README.md +60 -0
  434. package/dist/templates/better-auth/files/.env.better-auth.example +20 -0
  435. package/dist/templates/better-auth/files/app/api/auth/[...all]/route.ts +5 -0
  436. package/dist/templates/better-auth/files/src/db/index.ts +10 -0
  437. package/dist/templates/better-auth/files/src/db/migrations/0001_better_auth.sql +49 -0
  438. package/dist/templates/better-auth/files/src/db/schema/better-auth.ts +57 -0
  439. package/dist/templates/better-auth/files/src/lib/auth-client.ts +13 -0
  440. package/dist/templates/better-auth/files/src/lib/auth.ts +72 -0
  441. package/dist/templates/better-auth/manifest.json +71 -0
  442. package/dist/templates/bullmq/README.md +61 -0
  443. package/dist/templates/bullmq/files/.env.bullmq.example +34 -0
  444. package/dist/templates/bullmq/files/app/admin/queues/[[...slug]]/route.ts +103 -0
  445. package/dist/templates/bullmq/files/scripts/start-worker.ts +55 -0
  446. package/dist/templates/bullmq/files/server/startup/start-workers.ts +171 -0
  447. package/dist/templates/bullmq/files/src/infrastructure/queue/connection.ts +105 -0
  448. package/dist/templates/bullmq/files/src/infrastructure/queue/fallback/sync-executor.ts +96 -0
  449. package/dist/templates/bullmq/files/src/infrastructure/queue/index.ts +30 -0
  450. package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/ai-generation.job.ts +53 -0
  451. package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/email.job.ts +42 -0
  452. package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/export.job.ts +49 -0
  453. package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/image-processing.job.ts +48 -0
  454. package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/webhook.job.ts +139 -0
  455. package/dist/templates/bullmq/files/src/infrastructure/queue/parse-int-env.ts +28 -0
  456. package/dist/templates/bullmq/files/src/infrastructure/queue/queues.ts +153 -0
  457. package/dist/templates/bullmq/files/src/infrastructure/queue/scheduler/job-scheduler.ts +70 -0
  458. package/dist/templates/bullmq/files/src/infrastructure/queue/workers.ts +101 -0
  459. package/dist/templates/bullmq/manifest.json +120 -0
  460. package/dist/templates/ci-github-actions/README.md +62 -0
  461. package/dist/templates/ci-github-actions/files/.github/dependabot.yml +20 -0
  462. package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +103 -0
  463. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +30 -0
  464. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +32 -0
  465. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +39 -0
  466. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vps.yml +34 -0
  467. package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +58 -0
  468. package/dist/templates/ci-github-actions/files/fly.toml +23 -0
  469. package/dist/templates/ci-github-actions/manifest.json +100 -0
  470. package/dist/templates/clerk/README.md +59 -0
  471. package/dist/templates/clerk/files/.env.clerk.example +11 -0
  472. package/dist/templates/clerk/files/app/(protected)/layout.tsx +18 -0
  473. package/dist/templates/clerk/files/app/api/protected-example/route.ts +17 -0
  474. package/dist/templates/clerk/files/middleware.ts +25 -0
  475. package/dist/templates/clerk/files/src/lib/auth.ts +12 -0
  476. package/dist/templates/clerk/files/src/lib/role-guard.tsx +32 -0
  477. package/dist/templates/clerk/manifest.json +67 -0
  478. package/dist/templates/design-system/README.md +60 -0
  479. package/dist/templates/design-system/files/.storybook/main.ts +9 -0
  480. package/dist/templates/design-system/files/.storybook/preview.ts +13 -0
  481. package/dist/templates/design-system/files/DESIGN.md +76 -0
  482. package/dist/templates/design-system/files/src/components/ui/button.stories.tsx +17 -0
  483. package/dist/templates/design-system/files/src/components/ui/button.tsx +61 -0
  484. package/dist/templates/design-system/files/src/components/ui/card.tsx +40 -0
  485. package/dist/templates/design-system/files/src/components/ui/index.ts +6 -0
  486. package/dist/templates/design-system/files/src/components/ui/input.tsx +29 -0
  487. package/dist/templates/design-system/files/src/lib/cn.ts +13 -0
  488. package/dist/templates/design-system/files/src/styles/globals.css +37 -0
  489. package/dist/templates/design-system/files/src/styles/theme.ts +56 -0
  490. package/dist/templates/design-system/files/src/styles/tokens.css +73 -0
  491. package/dist/templates/design-system/files/tailwind.config.ts +58 -0
  492. package/dist/templates/design-system/manifest.json +81 -0
  493. package/dist/templates/docker/README.md +62 -0
  494. package/dist/templates/docker/files/.dockerignore +34 -0
  495. package/dist/templates/docker/files/.github/workflows/docker-build.yml +74 -0
  496. package/dist/templates/docker/files/Dockerfile +57 -0
  497. package/dist/templates/docker/files/docker-compose.ci.yml +22 -0
  498. package/dist/templates/docker/files/docker-compose.override.yml +20 -0
  499. package/dist/templates/docker/files/docker-compose.yml +109 -0
  500. package/dist/templates/docker/manifest.json +59 -0
  501. package/dist/templates/env-setup/README.md +70 -0
  502. package/dist/templates/env-setup/files/.env.example +28 -0
  503. package/dist/templates/env-setup/files/.gitignore.hexagen +16 -0
  504. package/dist/templates/env-setup/files/SETUP.md +70 -0
  505. package/dist/templates/env-setup/files/scripts/check-env.ts +95 -0
  506. package/dist/templates/env-setup/files/src/config/env.client.ts +18 -0
  507. package/dist/templates/env-setup/files/src/config/env.server.ts +49 -0
  508. package/dist/templates/env-setup/files/src/config/env.ts +14 -0
  509. package/dist/templates/env-setup/files/src/config/load-env.ts +40 -0
  510. package/dist/templates/env-setup/manifest.json +55 -0
  511. package/dist/templates/error-handling/README.md +72 -0
  512. package/dist/templates/error-handling/files/.env.sentry.example +8 -0
  513. package/dist/templates/error-handling/files/app/components/ErrorBoundary.tsx +49 -0
  514. package/dist/templates/error-handling/files/app/components/ErrorFallback.tsx +35 -0
  515. package/dist/templates/error-handling/files/server/middleware/error-handler.ts +131 -0
  516. package/dist/templates/error-handling/files/src/application/errors/application.error.ts +33 -0
  517. package/dist/templates/error-handling/files/src/domain/errors/authorization.error.ts +20 -0
  518. package/dist/templates/error-handling/files/src/domain/errors/domain.error.ts +23 -0
  519. package/dist/templates/error-handling/files/src/domain/errors/not-found.error.ts +11 -0
  520. package/dist/templates/error-handling/files/src/domain/errors/validation.error.ts +17 -0
  521. package/dist/templates/error-handling/files/src/infrastructure/errors/external-service.error.ts +24 -0
  522. package/dist/templates/error-handling/files/src/infrastructure/errors/infrastructure.error.ts +22 -0
  523. package/dist/templates/error-handling/files/src/infrastructure/errors/llm-errors.ts +57 -0
  524. package/dist/templates/error-handling/files/src/shared/errors/error-codes.ts +29 -0
  525. package/dist/templates/error-handling/files/src/shared/result.ts +38 -0
  526. package/dist/templates/error-handling/manifest.json +63 -0
  527. package/dist/templates/eslint-no-console/README.md +78 -0
  528. package/dist/templates/eslint-no-console/files/eslint.no-console.mjs +35 -0
  529. package/dist/templates/eslint-no-console/manifest.json +28 -0
  530. package/dist/templates/github-oauth/README.md +61 -0
  531. package/dist/templates/github-oauth/files/.env.github-oauth.example +13 -0
  532. package/dist/templates/github-oauth/files/app/api/auth/callback/github/route.ts +105 -0
  533. package/dist/templates/github-oauth/files/app/api/auth/login/github/route.ts +33 -0
  534. package/dist/templates/github-oauth/files/app/api/auth/logout/github/route.ts +8 -0
  535. package/dist/templates/github-oauth/files/app/api/auth/me/route.ts +10 -0
  536. package/dist/templates/github-oauth/files/middleware.ts +59 -0
  537. package/dist/templates/github-oauth/files/src/infrastructure/auth/github/config.ts +34 -0
  538. package/dist/templates/github-oauth/files/src/infrastructure/auth/github/github-auth.adapter.ts +12 -0
  539. package/dist/templates/github-oauth/files/src/infrastructure/auth/github/github-client.ts +95 -0
  540. package/dist/templates/github-oauth/files/src/infrastructure/auth/github/github-user.ts +8 -0
  541. package/dist/templates/github-oauth/files/src/infrastructure/auth/github/session-store.ts +56 -0
  542. package/dist/templates/github-oauth/files/src/infrastructure/auth/github/user-profile-mapper.ts +24 -0
  543. package/dist/templates/github-oauth/files/src/lib/auth/get-current-user.ts +31 -0
  544. package/dist/templates/github-oauth/files/src/lib/auth/require-auth.ts +11 -0
  545. package/dist/templates/github-oauth/manifest.json +83 -0
  546. package/dist/templates/google-oauth/README.md +70 -0
  547. package/dist/templates/google-oauth/files/.env.google-oauth.example +14 -0
  548. package/dist/templates/google-oauth/files/app/api/auth/callback/google/route.ts +78 -0
  549. package/dist/templates/google-oauth/files/app/api/auth/login/google/route.ts +34 -0
  550. package/dist/templates/google-oauth/files/app/api/auth/logout/google/route.ts +8 -0
  551. package/dist/templates/google-oauth/files/app/api/auth/me/route.ts +13 -0
  552. package/dist/templates/google-oauth/files/middleware.ts +62 -0
  553. package/dist/templates/google-oauth/files/src/infrastructure/auth/google/config.ts +29 -0
  554. package/dist/templates/google-oauth/files/src/infrastructure/auth/google/google-auth.adapter.ts +22 -0
  555. package/dist/templates/google-oauth/files/src/infrastructure/auth/google/google-client.ts +65 -0
  556. package/dist/templates/google-oauth/files/src/infrastructure/auth/google/google-user.ts +9 -0
  557. package/dist/templates/google-oauth/files/src/infrastructure/auth/google/session-store.ts +62 -0
  558. package/dist/templates/google-oauth/files/src/infrastructure/auth/google/user-profile-mapper.ts +24 -0
  559. package/dist/templates/google-oauth/files/src/lib/auth/get-current-user.ts +36 -0
  560. package/dist/templates/google-oauth/files/src/lib/auth/require-auth.ts +13 -0
  561. package/dist/templates/google-oauth/manifest.json +82 -0
  562. package/dist/templates/langgraph/README.md +60 -0
  563. package/dist/templates/langgraph/files/.env.langgraph.example +26 -0
  564. package/dist/templates/langgraph/files/app/api/agent/invoke/route.ts +48 -0
  565. package/dist/templates/langgraph/files/app/api/agent/resume/route.ts +66 -0
  566. package/dist/templates/langgraph/files/app/api/agent/stream/route.ts +63 -0
  567. package/dist/templates/langgraph/files/src/domain/ports/out/agent-graph.port.ts +78 -0
  568. package/dist/templates/langgraph/files/src/infrastructure/langgraph/adapters/langgraph.adapter.ts +185 -0
  569. package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/index.ts +84 -0
  570. package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/memory-checkpointer.ts +12 -0
  571. package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/postgres-checkpointer.ts +20 -0
  572. package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/redis-checkpointer.ts +25 -0
  573. package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/supabase-checkpointer.ts +26 -0
  574. package/dist/templates/langgraph/files/src/infrastructure/langgraph/edges/routing.ts +31 -0
  575. package/dist/templates/langgraph/files/src/infrastructure/langgraph/graphs/research-agent.graph.ts +81 -0
  576. package/dist/templates/langgraph/files/src/infrastructure/langgraph/graphs/simple-chain.graph.ts +81 -0
  577. package/dist/templates/langgraph/files/src/infrastructure/langgraph/index.ts +23 -0
  578. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/human-review.node.ts +34 -0
  579. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/input-processor.node.ts +31 -0
  580. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/llm-call.node.ts +38 -0
  581. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/output-formatter.node.ts +27 -0
  582. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/planner.node.ts +51 -0
  583. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/researcher.node.ts +63 -0
  584. package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/synthesiser.node.ts +62 -0
  585. package/dist/templates/langgraph/files/src/infrastructure/langgraph/state/graph-state.ts +57 -0
  586. package/dist/templates/langgraph/files/src/infrastructure/langgraph/streaming/token-stream.ts +84 -0
  587. package/dist/templates/langgraph/manifest.json +131 -0
  588. package/dist/templates/llm-adapter/README.md +63 -0
  589. package/dist/templates/llm-adapter/files/.env.llm.example +49 -0
  590. package/dist/templates/llm-adapter/files/src/domain/ports/out/llm-client.port.ts +36 -0
  591. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/anthropic-llm-client.adapter.ts +111 -0
  592. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/azure-openai-llm-client.adapter.ts +105 -0
  593. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/ollama-llm-client.adapter.ts +102 -0
  594. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/openai-llm-client.adapter.ts +104 -0
  595. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/xai-llm-client.adapter.ts +104 -0
  596. package/dist/templates/llm-adapter/files/src/infrastructure/llm/constants/capabilities.ts +38 -0
  597. package/dist/templates/llm-adapter/files/src/infrastructure/llm/constants/models.ts +39 -0
  598. package/dist/templates/llm-adapter/files/src/infrastructure/llm/errors/llm-errors.ts +83 -0
  599. package/dist/templates/llm-adapter/files/src/infrastructure/llm/index.ts +39 -0
  600. package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/llm-router.ts +117 -0
  601. package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/provider-registry.ts +45 -0
  602. package/dist/templates/llm-adapter/files/src/infrastructure/llm/smoke-test.ts +25 -0
  603. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/parse-env.ts +8 -0
  604. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/retry.ts +39 -0
  605. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/structured-output.ts +78 -0
  606. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/timeout.ts +22 -0
  607. package/dist/templates/llm-adapter/manifest.json +113 -0
  608. package/dist/templates/llm-adapter-bedrock/README.md +58 -0
  609. package/dist/templates/llm-adapter-bedrock/files/.env.bedrock.example +23 -0
  610. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-llm-client.adapter.ts +126 -0
  611. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-register.ts +20 -0
  612. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/errors/bedrock-errors.ts +42 -0
  613. package/dist/templates/llm-adapter-bedrock/manifest.json +51 -0
  614. package/dist/templates/magic-link/README.md +66 -0
  615. package/dist/templates/magic-link/files/.env.magic-link.example +24 -0
  616. package/dist/templates/magic-link/files/app/api/auth/logout/route.ts +12 -0
  617. package/dist/templates/magic-link/files/app/api/auth/magic-link/request/route.ts +34 -0
  618. package/dist/templates/magic-link/files/app/api/auth/magic-link/verify/route.ts +41 -0
  619. package/dist/templates/magic-link/files/app/api/auth/me/route.ts +10 -0
  620. package/dist/templates/magic-link/files/middleware.ts +60 -0
  621. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/config.ts +17 -0
  622. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/email-templates.ts +46 -0
  623. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/email-transport.ts +71 -0
  624. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/magic-link-auth.adapter.ts +11 -0
  625. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/magic-link-store.ts +31 -0
  626. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/session-store.ts +56 -0
  627. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/token-generator.ts +71 -0
  628. package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/user-profile-mapper.ts +10 -0
  629. package/dist/templates/magic-link/files/src/lib/auth/get-current-user.ts +28 -0
  630. package/dist/templates/magic-link/files/src/lib/auth/require-auth.ts +11 -0
  631. package/dist/templates/magic-link/manifest.json +99 -0
  632. package/dist/templates/microsoft-entra/README.md +63 -0
  633. package/dist/templates/microsoft-entra/files/.env.microsoft-entra.example +17 -0
  634. package/dist/templates/microsoft-entra/files/app/api/auth/callback/entra/route.ts +93 -0
  635. package/dist/templates/microsoft-entra/files/app/api/auth/login/entra/route.ts +29 -0
  636. package/dist/templates/microsoft-entra/files/app/api/auth/logout/entra/route.ts +26 -0
  637. package/dist/templates/microsoft-entra/files/app/api/auth/me/route.ts +10 -0
  638. package/dist/templates/microsoft-entra/files/middleware.ts +59 -0
  639. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/config.ts +43 -0
  640. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/entra-auth.adapter.ts +14 -0
  641. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/entra-client.ts +82 -0
  642. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/entra-user.ts +9 -0
  643. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/group-role-mapper.ts +22 -0
  644. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/pkce.ts +20 -0
  645. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/session-store.ts +56 -0
  646. package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/user-profile-mapper.ts +33 -0
  647. package/dist/templates/microsoft-entra/files/src/lib/auth/get-current-user.ts +31 -0
  648. package/dist/templates/microsoft-entra/files/src/lib/auth/require-auth.ts +11 -0
  649. package/dist/templates/microsoft-entra/manifest.json +93 -0
  650. package/dist/templates/nextauth/README.md +61 -0
  651. package/dist/templates/nextauth/files/.env.nextauth.example +16 -0
  652. package/dist/templates/nextauth/files/app/api/auth/[...nextauth]/route.ts +4 -0
  653. package/dist/templates/nextauth/files/middleware.ts +17 -0
  654. package/dist/templates/nextauth/files/src/auth.config.ts +41 -0
  655. package/dist/templates/nextauth/files/src/auth.ts +67 -0
  656. package/dist/templates/nextauth/files/types/next-auth.d.ts +16 -0
  657. package/dist/templates/nextauth/manifest.json +74 -0
  658. package/dist/templates/observability/README.md +69 -0
  659. package/dist/templates/observability/files/.env.observability.example +12 -0
  660. package/dist/templates/observability/files/.env.otel.example +7 -0
  661. package/dist/templates/observability/files/app/api/health/route.ts +37 -0
  662. package/dist/templates/observability/files/instrumentation.ts +52 -0
  663. package/dist/templates/observability/files/server/middleware/request-logger.ts +53 -0
  664. package/dist/templates/observability/files/src/infrastructure/logging/context.ts +21 -0
  665. package/dist/templates/observability/files/src/infrastructure/logging/correlation.ts +39 -0
  666. package/dist/templates/observability/files/src/infrastructure/logging/index.ts +12 -0
  667. package/dist/templates/observability/files/src/infrastructure/logging/logger.ts +68 -0
  668. package/dist/templates/observability/files/src/infrastructure/logging/redact.ts +89 -0
  669. package/dist/templates/observability/manifest.json +57 -0
  670. package/dist/templates/rate-limiting/README.md +63 -0
  671. package/dist/templates/rate-limiting/files/.env.rate-limit.example +21 -0
  672. package/dist/templates/rate-limiting/files/server/errors/rate-limit-exceeded.error.ts +43 -0
  673. package/dist/templates/rate-limiting/files/server/middleware/rate-limit.ts +79 -0
  674. package/dist/templates/rate-limiting/files/server/utils/get-client-ip.ts +27 -0
  675. package/dist/templates/rate-limiting/files/server/utils/rate-limiter.ts +82 -0
  676. package/dist/templates/rate-limiting/files/server/utils/session-id.ts +28 -0
  677. package/dist/templates/rate-limiting/files/types/rate-limit.d.ts +12 -0
  678. package/dist/templates/rate-limiting/manifest.json +66 -0
  679. package/dist/templates/shared-types/README.md +59 -0
  680. package/dist/templates/shared-types/files/.env.shared-types.example +14 -0
  681. package/dist/templates/shared-types/files/src/domain/value-objects/user-context.ts +11 -0
  682. package/dist/templates/shared-types/files/src/infrastructure/auth/mock-user.ts +16 -0
  683. package/dist/templates/shared-types/files/src/infrastructure/auth/session/session-manager.ts +59 -0
  684. package/dist/templates/shared-types/manifest.json +37 -0
  685. package/dist/templates/supabase/README.md +59 -0
  686. package/dist/templates/supabase/files/.env.supabase.example +15 -0
  687. package/dist/templates/supabase/files/drizzle.config.ts +15 -0
  688. package/dist/templates/supabase/files/scripts/gen-types.sh +9 -0
  689. package/dist/templates/supabase/files/scripts/migrate.ts +23 -0
  690. package/dist/templates/supabase/files/src/infrastructure/supabase/admin.ts +23 -0
  691. package/dist/templates/supabase/files/src/infrastructure/supabase/client.ts +16 -0
  692. package/dist/templates/supabase/files/src/infrastructure/supabase/drizzle/client.ts +17 -0
  693. package/dist/templates/supabase/files/src/infrastructure/supabase/drizzle/schema.ts +10 -0
  694. package/dist/templates/supabase/files/src/infrastructure/supabase/realtime/subscribe.ts +41 -0
  695. package/dist/templates/supabase/files/src/infrastructure/supabase/result.ts +30 -0
  696. package/dist/templates/supabase/files/src/infrastructure/supabase/server.ts +28 -0
  697. package/dist/templates/supabase/files/src/infrastructure/supabase/storage/delete.ts +17 -0
  698. package/dist/templates/supabase/files/src/infrastructure/supabase/storage/download.ts +17 -0
  699. package/dist/templates/supabase/files/src/infrastructure/supabase/storage/index.ts +4 -0
  700. package/dist/templates/supabase/files/src/infrastructure/supabase/storage/signed-url.ts +26 -0
  701. package/dist/templates/supabase/files/src/infrastructure/supabase/storage/upload.ts +24 -0
  702. package/dist/templates/supabase/files/src/infrastructure/supabase/types/database.types.ts +10 -0
  703. package/dist/templates/supabase/files/supabase/migrations/0001_example_rls.sql +23 -0
  704. package/dist/templates/supabase/files/supabase/seed.sql +7 -0
  705. package/dist/templates/supabase/manifest.json +133 -0
  706. package/dist/templates/supabase-auth/README.md +55 -0
  707. package/dist/templates/supabase-auth/files/app/api/auth/me/route.ts +10 -0
  708. package/dist/templates/supabase-auth/files/middleware.ts +108 -0
  709. package/dist/templates/supabase-auth/files/src/lib/auth/get-current-user.ts +46 -0
  710. package/dist/templates/supabase-auth/files/src/lib/auth/require-auth.ts +11 -0
  711. package/dist/templates/supabase-auth/manifest.json +40 -0
  712. package/dist/types/index.d.ts +3 -0
  713. package/dist/types/index.d.ts.map +1 -0
  714. package/dist/types/manifest/apps.d.ts +24 -0
  715. package/dist/types/manifest/apps.d.ts.map +1 -0
  716. package/dist/types/manifest/bounded-context.d.ts +43 -0
  717. package/dist/types/manifest/bounded-context.d.ts.map +1 -0
  718. package/dist/types/manifest/generator.d.ts +51 -0
  719. package/dist/types/manifest/generator.d.ts.map +1 -0
  720. package/dist/types/manifest/helpers.d.ts +30 -0
  721. package/dist/types/manifest/helpers.d.ts.map +1 -0
  722. package/dist/types/manifest/index.d.ts +8 -0
  723. package/dist/types/manifest/index.d.ts.map +1 -0
  724. package/dist/types/manifest/layers.d.ts +32 -0
  725. package/dist/types/manifest/layers.d.ts.map +1 -0
  726. package/dist/types/manifest/manifest.d.ts +64 -0
  727. package/dist/types/manifest/manifest.d.ts.map +1 -0
  728. package/dist/types/manifest/monorepo.d.ts +94 -0
  729. package/dist/types/manifest/monorepo.d.ts.map +1 -0
  730. package/dist/types/manifest.d.ts +2 -0
  731. package/dist/types/manifest.d.ts.map +1 -0
  732. package/package.json +44 -0
@@ -0,0 +1,24 @@
1
+ export type RefactoringType = "rename-port" | "rename-use-case" | "rename-entity" | "move-use-case" | "extract-port";
2
+ export type Layer = "domain" | "application" | "infrastructure" | "test" | "manifest" | "config" | "unknown";
3
+ export interface FileToModify {
4
+ path: string;
5
+ reason: string;
6
+ layer: Layer;
7
+ packageName: string;
8
+ }
9
+ export interface CrossPackageDependency {
10
+ fromPackage: string;
11
+ toPackage: string;
12
+ symbol: string;
13
+ fromFile: string;
14
+ toFile: string;
15
+ }
16
+ export type ArchitecturalImpact = "SAFE" | "BOUNDARY_VIOLATION" | "UNKNOWN";
17
+ export interface ImpactAnalysisResult {
18
+ filesToModify: FileToModify[];
19
+ crossPackageDeps: CrossPackageDependency[];
20
+ architecturalImpact: ArchitecturalImpact;
21
+ estimatedChanges: number;
22
+ warnings: string[];
23
+ }
24
+ //# sourceMappingURL=impact-analysis.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impact-analysis.types.d.ts","sourceRoot":"","sources":["../../../src/domain/services/impact-analysis.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,iBAAiB,GAAG,eAAe,GAAG,eAAe,GAAG,cAAc,CAAC;AAErH,MAAM,MAAM,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE7G,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC3C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -0,0 +1,14 @@
1
+ import type { RefactoringType } from "./impact-analysis.types.js";
2
+ export interface ValidationResult {
3
+ valid: boolean;
4
+ error?: string;
5
+ }
6
+ export declare function validateRenameRequest(type: RefactoringType, newName: string | undefined): ValidationResult;
7
+ export declare function validateMoveRequest(type: RefactoringType, newLocation: string | undefined): ValidationResult;
8
+ export declare function validateRequest(request: {
9
+ type: RefactoringType;
10
+ target: string;
11
+ newName?: string;
12
+ newLocation?: string;
13
+ }): ValidationResult;
14
+ //# sourceMappingURL=impact-request-validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impact-request-validator.d.ts","sourceRoot":"","sources":["../../../src/domain/services/impact-request-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,gBAAgB,CA8BlB;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,eAAe,EACrB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,gBAAgB,CAUlB;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GACzF,gBAAgB,CAgBlB"}
@@ -0,0 +1,7 @@
1
+ export * from "./architectural-boundary-checker.js";
2
+ export * from "./emission-plan-builder.js";
3
+ export * from "./impact-analysis.types.js";
4
+ export * from "./impact-request-validator.js";
5
+ export * from "./layer-classifier.js";
6
+ export * from "./stub-template-resolver.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/services/index.ts"],"names":[],"mappings":"AAEA,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Layer } from "./impact-analysis.types.js";
2
+ export declare function determineLayer(relativePath: string): Layer;
3
+ export declare function determinePackageName(relativePath: string): string;
4
+ //# sourceMappingURL=layer-classifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layer-classifier.d.ts","sourceRoot":"","sources":["../../../src/domain/services/layer-classifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAuB1D;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAGjE"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Template resolution service for stub generation.
3
+ *
4
+ * Handles the cascading resolution of template bodies and naming conventions:
5
+ * 1. per-context naming override
6
+ * 2. global naming override
7
+ * 3. built-in fallback (DEFAULT_TEMPLATES / DEFAULT_NAMING)
8
+ */
9
+ import type { StubTemplates, StubNaming } from "../../types/manifest.js";
10
+ import type { SyncConfig } from "../../config.js";
11
+ import type { StubKind } from "./emission-plan-builder.js";
12
+ export type { StubKind };
13
+ export declare function resolveTemplate(kind: StubKind, manifestTemplates: StubTemplates | undefined): string;
14
+ export declare function resolveNaming(kind: StubKind, contextNaming: StubNaming | undefined, manifestNaming: StubNaming | undefined): string;
15
+ export declare function interpolateWithLog(template: string, name: string, templateId: string, config: SyncConfig): string;
16
+ //# sourceMappingURL=stub-template-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stub-template-resolver.d.ts","sourceRoot":"","sources":["../../../src/domain/services/stub-template-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,iBAAiB,EAAE,aAAa,GAAG,SAAS,GAC3C,MAAM,CAER;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,EACd,aAAa,EAAE,UAAU,GAAG,SAAS,EACrC,cAAc,EAAE,UAAU,GAAG,SAAS,GACrC,MAAM,CAIR;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,GACjB,MAAM,CAWR"}
@@ -0,0 +1,6 @@
1
+ export interface Session {
2
+ id: string;
3
+ userId: string;
4
+ createdAt: string;
5
+ }
6
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/domain/session.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CAEnB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Built-in fallback template bodies for stub generation.
3
+ * Used when the manifest does not declare a given `generator.sync.stubs.templates[kind]`.
4
+ */
5
+ import type { StubTemplates, StubNaming } from "../types/manifest.js";
6
+ export declare const DEFAULT_TEMPLATES: Required<StubTemplates>;
7
+ export declare const DEFAULT_NAMING: Required<StubNaming>;
8
+ //# sourceMappingURL=stub-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stub-templates.d.ts","sourceRoot":"","sources":["../../src/domain/stub-templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,aAAa,CAmRrD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,UAAU,CAQ/C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type ReportRecorder = {
2
+ record: (type: string, target: string, message: string) => void;
3
+ };
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/domain/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjE,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { SyncConfig } from "./config.js";
2
+ export declare const protectedFiles: Set<string>;
3
+ /**
4
+ * Determine whether a file was generated by the sync tool.
5
+ */
6
+ export declare function isGeneratedFile(content: string): boolean;
7
+ /**
8
+ * Check if a path points to a protected root file.
9
+ */
10
+ export declare function isProtectedRoot(filePath: string, config: SyncConfig): boolean;
11
+ /**
12
+ * Atomic, idempotent file writer.
13
+ * Returns one of: created, updated, unchanged, skipped, protected.
14
+ *
15
+ * Protection rules:
16
+ * - Root protected files: require --force-root (NOT --force)
17
+ * - Non-generated package files: require --force-root (hand-written files
18
+ * are preserved even under --force; --force only regenerates files
19
+ * carrying the @generated marker)
20
+ */
21
+ export declare function safeWriteFileAtomic(filePath: string, content: string, config: SyncConfig, report?: {
22
+ record: (type: string, target: string, message: string) => void;
23
+ }, skipGeneratedCheck?: boolean): Promise<"created" | "updated" | "unchanged" | "skipped" | "protected">;
24
+ /**
25
+ * Simple wrapper that forwards to safeWriteFileAtomic without a report.
26
+ */
27
+ export declare function safeWriteFile(filePath: string, content: string, config: SyncConfig, skipGeneratedCheck?: boolean): Promise<"created" | "updated" | "unchanged" | "skipped" | "protected">;
28
+ //# sourceMappingURL=fs-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs-utils.d.ts","sourceRoot":"","sources":["../src/fs-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAW9C,eAAO,MAAM,cAAc,aAiBzB,CAAC;AASH;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAY7E;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,EAC5E,kBAAkB,GAAE,OAAe,GAClC,OAAO,CAAC,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC,CAuFxE;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,UAAU,EAClB,kBAAkB,GAAE,OAAe,GAClC,OAAO,CAAC,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC,CAQxE"}
@@ -0,0 +1,4 @@
1
+ import type { AppFramework, AppFrameworkConfig } from "../types/manifest.js";
2
+ declare const BUILTIN_FRAMEWORK_TEMPLATES: Partial<Record<AppFramework, Required<AppFrameworkConfig>>>;
3
+ export { BUILTIN_FRAMEWORK_TEMPLATES };
4
+ //# sourceMappingURL=apps-framework-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps-framework-templates.d.ts","sourceRoot":"","sources":["../../src/generators/apps-framework-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAwI9B,QAAA,MAAM,2BAA2B,EAAE,OAAO,CACxC,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CA0BnD,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { SyncConfig } from "../config.js";
2
+ import { type GeneratorResult } from "../results.js";
3
+ import type { ReportRecorder } from "../domain/types.js";
4
+ export declare function generateApps(config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
5
+ //# sourceMappingURL=apps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/generators/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AASxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAqDzD,wBAAsB,YAAY,CAChC,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA2K1B"}
@@ -0,0 +1,9 @@
1
+ declare const LAYER_RULES_COMMON = "shared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n";
2
+ declare const LAYER_RULES_STRICT_ENTERPRISE = "# HexaGen \u2014 Architectural Invariants\n# Template: strict-enterprise \u2014 event-bus boundaries\n\nshared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n\ncross_context:\n deny_direct_imports: true\n required_communication: \"event-bus\"\n allowed_broker_patterns:\n - \"event-bus\"\n - \"message-queue\"\n";
3
+ declare const LAYER_RULES_MICRO_FRONTEND = "# HexaGen \u2014 Architectural Invariants\n# Template: micro-frontend \u2014 networked boundaries\n\nshared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n\ncross_context:\n deny_direct_imports: true\n required_communication: \"network\"\n allowed_broker_patterns:\n - \"network-rpc\"\n - \"http-api\"\n";
4
+ declare const LAYER_RULES_DEFAULT = "# HexaGen \u2014 Architectural Invariants\n# Template: {template} (flexible mode)\n\nshared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n";
5
+ declare const LINTER_CONFIG_STRICT = "# Rules for @hexagen-monaco/arch-linter\n# Template: {template} (strict mode)\n\nglobal_whitelist:\n - \"@{scope}/shared\"\n - \"@{scope}/shared/**\"\n\ncross_context_rules:\n deny_sibling_imports: true\n require_port_interface: true\n\ntest_double_rules:\n allowed_cross_package_imports: true\n";
6
+ declare const LINTER_CONFIG_DEFAULT = "# Rules for @hexagen-monaco/arch-linter\n# Template: {template} (flexible mode)\n\nglobal_whitelist:\n - \"@{scope}/shared\"\n - \"@{scope}/shared/**\"\n\ntest_double_rules:\n allowed_cross_package_imports: true\n";
7
+ declare const GENERATOR_CONFIG_TEMPLATE = "generator:\n version: \"1.0\"\n description: \"Global invariants and safety rules\"\n workspace_template: \"{workspaceTemplate}\"\n\n invariants:\n - name: composite-safety\n description: \"Every tsconfig.json must contain paths: {{}} to override inherited source mappings.\"\n priority: critical\n failure: abort-and-cleanup\n\n - name: barrel-ownership-boundary\n description: \"Barrels may only re-export types owned by the current bounded context.\"\n priority: critical\n failure: abort-and-cleanup\n\n - name: port-single-ownership\n description: \"Each port interface belongs to exactly one bounded context.\"\n priority: critical\n failure: abort-and-cleanup\n\n - name: dependency-consistency\n description: \"Every @{scope}/* import must have a matching entry in package.json.\"\n priority: high\n failure: abort\n\n - name: self-import-prevention\n description: \"No package imports itself by name.\"\n priority: high\n failure: abort\n\n - name: signature-synchronization\n description: \"Generated consumers must derive exact signatures from the canonical port.\"\n priority: high\n failure: abort\n\n - name: no-empty-stubs\n description: \"No empty barrels (export {{}}) in src/.\"\n priority: medium\n failure: warn-and-continue\n\n - name: exports-field-mandatory\n description: \"Every package.json must include a complete exports map.\"\n priority: medium\n failure: warn-and-continue\n\n - name: test-double-parity\n description: \"Test doubles must implement the same interface as the canonical port.\"\n priority: medium\n failure: warn-and-continue\n\n bootstrap-sequence:\n - load-ownership-map\n - validate-port-ownership-map\n - generate-package-skeleton\n - enforce-tsconfig-paths-override\n - generate-exports-field\n - synchronize-signatures\n - validate-barrel-chain\n - enforce-dependency-consistency\n - final-composite-reference-check\n\n failure-behavior:\n critical: abort-and-cleanup\n high: abort\n medium: warn-and-continue\n\n ownership-registry:\n ports:\n{ownershipBlock}\n";
8
+ export { LAYER_RULES_COMMON, LAYER_RULES_STRICT_ENTERPRISE, LAYER_RULES_MICRO_FRONTEND, LAYER_RULES_DEFAULT, LINTER_CONFIG_STRICT, LINTER_CONFIG_DEFAULT, GENERATOR_CONFIG_TEMPLATE, };
9
+ //# sourceMappingURL=architecture-file-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"architecture-file-templates.d.ts","sourceRoot":"","sources":["../../src/generators/architecture-file-templates.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,kaAgBvB,CAAC;AAEF,QAAA,MAAM,6BAA6B,4qBAUlC,CAAC;AAEF,QAAA,MAAM,0BAA0B,oqBAU/B,CAAC;AAEF,QAAA,MAAM,mBAAmB,ufAGH,CAAC;AAEvB,QAAA,MAAM,oBAAoB,iTAazB,CAAC;AAEF,QAAA,MAAM,qBAAqB,6NAS1B,CAAC;AAEF,QAAA,MAAM,yBAAyB,mrEAsE9B,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { SyncConfig } from "../config.js";
2
+ import { type GeneratorResult } from "../results.js";
3
+ import type { ReportRecorder } from "../domain/types.js";
4
+ export declare function generateArchitectureFiles(config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
5
+ //# sourceMappingURL=architecture-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"architecture-files.d.ts","sourceRoot":"","sources":["../../src/generators/architecture-files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAgBxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAsKzD,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA8E1B"}
@@ -0,0 +1,6 @@
1
+ export { generateRecursiveBarrels, CircularExportError } from "./recursive.js";
2
+ export type { BarrelGenerationReport } from "./recursive.js";
3
+ export { isGeneratedFile, generateBarrelContent, detectCircularExports, parseBarrelExports, isSourceFile, contentHash, GENERATED_MARKER, LEGACY_GENERATED_MARKER, } from "./utils.js";
4
+ export type { CircularCheckResult, ExportEntry } from "./utils.js";
5
+ export { isExcludedDirectory, BARREL_EXCLUSIONS, } from "../../config/barrel-exclusions.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/barrels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import type { SyncConfig } from "../../config.js";
2
+ import { type GeneratorResult } from "../../results.js";
3
+ /**
4
+ * Error thrown when circular exports are detected.
5
+ * This is a critical failure that triggers abort + cleanup.
6
+ */
7
+ export declare class CircularExportError extends Error {
8
+ readonly cycle: string[];
9
+ constructor(cycle: string[]);
10
+ }
11
+ /**
12
+ * Report of barrel generation operations.
13
+ */
14
+ export interface BarrelGenerationReport {
15
+ created: string[];
16
+ updated: string[];
17
+ skipped: string[];
18
+ preserved: string[];
19
+ totalOps: number;
20
+ }
21
+ /**
22
+ * Recursively generate barrels for a package's src directory.
23
+ *
24
+ * Algorithm:
25
+ * 1. Walk the directory tree depth-first
26
+ * 2. For each directory with .ts files or subdirectories:
27
+ * - If index.ts exists and is NOT generated → skip (preserve hand-written)
28
+ * - If index.ts exists and IS generated → regenerate
29
+ * - If index.ts missing → create new barrel
30
+ * 3. Collect all pending writes
31
+ * 4. Validate for circular exports
32
+ * 5. If circular detected → throw CircularExportError (critical failure)
33
+ * 6. Write all barrels atomically
34
+ *
35
+ * @param moduleDir - Package root directory (e.g., packages/shared)
36
+ * @param config - Sync configuration
37
+ * @param report - Optional migration report for logging
38
+ * @returns Generator result with created/updated/skipped counts
39
+ * @throws CircularExportError if circular exports detected
40
+ */
41
+ export declare function generateRecursiveBarrels(moduleDir: string, config: SyncConfig, report?: {
42
+ record: (type: string, target: string, message?: string) => void;
43
+ }): Promise<GeneratorResult>;
44
+ //# sourceMappingURL=recursive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recursive.d.ts","sourceRoot":"","sources":["../../../src/generators/barrels/recursive.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAa3E;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;aAChB,KAAK,EAAE,MAAM,EAAE;gBAAf,KAAK,EAAE,MAAM,EAAE;CAI5C;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAYD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC5E,OAAO,CAAC,eAAe,CAAC,CAiF1B"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Markers used to identify generated files.
3
+ * Files with these markers can be safely overwritten by the sync engine.
4
+ */
5
+ export declare const GENERATED_MARKER = "// @generated by @hexagen/sync";
6
+ export declare const LEGACY_GENERATED_MARKER = "\u2014 generated by sync.ts";
7
+ /**
8
+ * Check if file content was generated by the sync tool.
9
+ * Recognizes both current and legacy markers.
10
+ */
11
+ export declare function isGeneratedFile(content: string): boolean;
12
+ /**
13
+ * Compute SHA-256 hash of content for change detection.
14
+ */
15
+ export declare function contentHash(content: string): string;
16
+ /**
17
+ * Result of circular dependency detection.
18
+ */
19
+ export interface CircularCheckResult {
20
+ hasCircular: boolean;
21
+ cycle: string[] | null;
22
+ }
23
+ /**
24
+ * Detect circular exports in a barrel export graph.
25
+ *
26
+ * @param exportGraph - Map of barrel path to list of paths it exports
27
+ * @returns Result indicating if circular dependency exists and the cycle path
28
+ */
29
+ export declare function detectCircularExports(exportGraph: Map<string, string[]>): CircularCheckResult;
30
+ /**
31
+ * Export entry with type information.
32
+ */
33
+ export interface ExportEntry {
34
+ name: string;
35
+ isDirectory: boolean;
36
+ }
37
+ /**
38
+ * Generate barrel content for a list of export targets.
39
+ *
40
+ * @param entries - List of export entries with name and type info
41
+ * @returns Generated barrel file content with marker
42
+ */
43
+ export declare function generateBarrelContent(entries: ExportEntry[]): string | null;
44
+ /**
45
+ * Extract export targets from barrel content.
46
+ * Parses `export * from './foo.js';` statements.
47
+ *
48
+ * @param content - Barrel file content
49
+ * @returns List of exported module names (without .js extension)
50
+ */
51
+ export declare function parseBarrelExports(content: string): string[];
52
+ /**
53
+ * Determine if a file is a TypeScript source file (not declaration or test).
54
+ */
55
+ export declare function isSourceFile(filename: string): boolean;
56
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/generators/barrels/utils.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mCAAmC,CAAC;AACjE,eAAO,MAAM,uBAAuB,gCAA2B,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAKxD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GACjC,mBAAmB,CAyCrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,GAAG,IAAI,CAgB3E;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAU5D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAQtD"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Barrel generator entry point.
3
+ * Delegates to the recursive barrel generator for full tree walking.
4
+ *
5
+ * This module maintains backward compatibility with the existing sync engine
6
+ * while using the new recursive implementation under the hood.
7
+ */
8
+ import type { SyncConfig } from "../config.js";
9
+ import type { GeneratorResult } from "../results.js";
10
+ export { CircularExportError } from "./barrels/index.js";
11
+ /**
12
+ * Generate barrels for a package's src directory.
13
+ *
14
+ * This function recursively walks the src/{layer} directories and generates
15
+ * index.ts barrel files that re-export all modules.
16
+ *
17
+ * Safety guarantees:
18
+ * - Never overwrites hand-written barrels (files without generated marker)
19
+ * - Validates for circular exports before writing
20
+ * - Throws CircularExportError on circular detection (critical failure)
21
+ *
22
+ * @param moduleDir - Package root directory (e.g., packages/shared)
23
+ * @param config - Sync configuration
24
+ * @param report - Optional migration report for logging
25
+ * @returns Generator result with created/updated/skipped counts
26
+ * @throws CircularExportError if circular exports are detected
27
+ */
28
+ export declare function generateBarrels(moduleDir: string, config: SyncConfig, report?: {
29
+ record: (type: string, target: string, message?: string) => void;
30
+ }): Promise<GeneratorResult>;
31
+ //# sourceMappingURL=barrels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barrels.d.ts","sourceRoot":"","sources":["../../src/generators/barrels.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC5E,OAAO,CAAC,eAAe,CAAC,CAE1B"}
@@ -0,0 +1,47 @@
1
+ import type { SyncConfig } from "../config.js";
2
+ import { type GeneratorResult } from "../results.js";
3
+ import type { ReportRecorder } from "../domain/types.js";
4
+ /**
5
+ * Generate the `eslint.config.js` file for one bounded-context package.
6
+ *
7
+ * Pipeline:
8
+ *
9
+ * 1. Resolve the template via the three-level merge cascade
10
+ * (`resolveTemplate`).
11
+ * 2. Interpolate `{packageName}` and `{scope}` — most eslint configs won't
12
+ * use these, so interpolation is typically a no-op.
13
+ * 3. Prepend the `// @generated by @hexagen/sync` marker so a subsequent
14
+ * self-regen recognises our output and is allowed to overwrite it, while
15
+ * hand-written configs (no marker) remain protected by
16
+ * `safeWriteFileAtomic`'s `isGeneratedFile` check.
17
+ * 4. Write atomically via `safeWriteFileAtomic` with
18
+ * `skipGeneratedCheck=false` (the default semantics).
19
+ *
20
+ * Interpolation warnings — placeholders that appeared in the template but
21
+ * were absent from the variable map — are surfaced through the optional
22
+ * `report` recorder as `"warning"` entries, and to the module logger via
23
+ * `config.logger.warn`. Generation is NOT aborted: the placeholder is left
24
+ * visible in the output (per `template-engine.ts` design), making the
25
+ * authoring mistake obvious in the generated file.
26
+ *
27
+ * Errors encountered during resolution or writing are captured on the
28
+ * returned {@link GeneratorResult} (`result.error` + `result.summary`) and
29
+ * cause the generator to skip this package rather than abort the whole
30
+ * engine run — consistent with {@link generateTsconfig} and per the
31
+ * "Missing template + missing fallback → log error, skip" rule in the
32
+ * Wave 2e task description.
33
+ *
34
+ * @param moduleDir - Absolute path of the package directory (e.g.
35
+ * `<targetRoot>/packages/<name>`).
36
+ * @param moduleName - Bounded-context name, used as the manifest lookup key
37
+ * and as the `{packageName}` interpolation value.
38
+ * @param config - Full {@link SyncConfig}, including the parsed
39
+ * `manifest` and `workspaceRoot`.
40
+ * @param report - Optional recorder for structured reporting. Receives
41
+ * `"warning"` entries for missing interpolation vars and
42
+ * `"error"` entries for catastrophic failures.
43
+ * @returns A {@link GeneratorResult} with the single `eslint.config.js` path
44
+ * categorised into `created` / `updated` / `skipped`.
45
+ */
46
+ export declare function generateEslintConfig(moduleDir: string, moduleName: string, config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
47
+ //# sourceMappingURL=eslint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/generators/eslint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAQxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAsGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA+D1B"}
@@ -0,0 +1,16 @@
1
+ import { SyncConfig } from "../config.js";
2
+ import { type GeneratorResult } from "../results.js";
3
+ interface LayerConfig {
4
+ folder: string;
5
+ subfolders?: string[];
6
+ }
7
+ /**
8
+ * Ensures layer folders exist for a module (domain, application, infrastructure).
9
+ * Creates subfolders and barrels if missing.
10
+ * Uses safeWriteFile for dry-run safety, protection, and idempotency.
11
+ */
12
+ export declare function ensureLayerFolders(moduleDir: string, layers: Record<string, LayerConfig>, config: SyncConfig, report?: {
13
+ record: (type: string, target: string, message?: string) => void;
14
+ }): Promise<GeneratorResult>;
15
+ export {};
16
+ //# sourceMappingURL=layer-folders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layer-folders.d.ts","sourceRoot":"","sources":["../../src/generators/layer-folders.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAMxE,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AA6DD;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACnC,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC5E,OAAO,CAAC,eAAe,CAAC,CAsF1B"}
@@ -0,0 +1,7 @@
1
+ import { type GeneratorResult } from "../results.js";
2
+ import { type PackageAudit, type MigrationConfig, type ReportRecorder } from "./migration-audit.js";
3
+ export { auditPackages, generateMigrationReport } from "./migration-audit.js";
4
+ export type { PackageAudit, MigrationConfig } from "./migration-audit.js";
5
+ declare function migratePackage(audit: PackageAudit, config: MigrationConfig, reporter: ReportRecorder): Promise<GeneratorResult>;
6
+ export { migratePackage };
7
+ //# sourceMappingURL=migration-assistant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration-assistant.d.ts","sourceRoot":"","sources":["../../src/generators/migration-assistant.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE1E,iBAAe,cAAc,CAC3B,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,CAsG1B;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { SyncConfig } from "../config.js";
2
+ import type { ReportRecorder } from "../domain/types.js";
3
+ interface PackageAudit {
4
+ packageName: string;
5
+ packagePath: string;
6
+ missingAdapters: string[];
7
+ missingWiring: string[];
8
+ missingTestDoubles: string[];
9
+ missingMcpTools: string[];
10
+ missingTests: string[];
11
+ }
12
+ interface MigrationConfig {
13
+ enabled?: boolean;
14
+ dryRun?: boolean;
15
+ packages?: string[];
16
+ generateAdapters?: boolean;
17
+ generateWiring?: boolean;
18
+ generateTestDoubles?: boolean;
19
+ generateMcpTools?: boolean;
20
+ generateTests?: boolean;
21
+ }
22
+ declare function auditPackages(config: SyncConfig, reporter: ReportRecorder): Promise<PackageAudit[]>;
23
+ declare function generateMigrationReport(audits: PackageAudit[]): string;
24
+ declare function hasIssues(audit: PackageAudit): boolean;
25
+ export { auditPackages, generateMigrationReport, hasIssues };
26
+ export type { PackageAudit, MigrationConfig };
27
+ export type { ReportRecorder } from "../domain/types.js";
28
+ //# sourceMappingURL=migration-audit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration-audit.d.ts","sourceRoot":"","sources":["../../src/generators/migration-audit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,iBAAe,aAAa,CAC1B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,EAAE,CAAC,CAuBzB;AAiGD,iBAAS,uBAAuB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CA0D/D;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAQ/C;AAED,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,SAAS,EAAE,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare function generateAdapterStub(adapterName: string): string;
2
+ declare function generateWiringStub(packageName: string): string;
3
+ declare function generateTestDoubleStub(testDoubleName: string): string;
4
+ declare function generateMcpToolsStub(packageName: string): string;
5
+ declare function toPascalCase(str: string): string;
6
+ export { generateAdapterStub, generateWiringStub, generateTestDoubleStub, generateMcpToolsStub, toPascalCase, };
7
+ //# sourceMappingURL=migration-stubs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration-stubs.d.ts","sourceRoot":"","sources":["../../src/generators/migration-stubs.ts"],"names":[],"mappings":"AAAA,iBAAS,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAexD;AAED,iBAAS,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED,iBAAS,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAa9D;AAED,iBAAS,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAYzD;AAED,iBAAS,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKzC;AAED,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,GACb,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { SyncConfig } from "../config.js";
2
+ import { type GeneratorResult } from "../results.js";
3
+ /**
4
+ * Generates or updates package.json with merge strategy.
5
+ * Preserves protected keys from existing file.
6
+ * Uses safeWriteFile with skipGeneratedCheck=true (package.json can't carry marker).
7
+ */
8
+ export declare function generatePackageJson(modulePath: string, moduleName: string, config: SyncConfig, report?: {
9
+ record: (type: string, target: string, message?: string) => void;
10
+ }): Promise<GeneratorResult>;
11
+ //# sourceMappingURL=package-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/generators/package-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAQxE;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC5E,OAAO,CAAC,eAAe,CAAC,CA6G1B"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Represents a method signature extracted from a port interface
3
+ */
4
+ export interface PortMethodSignature {
5
+ name: string;
6
+ parameters: Array<{
7
+ name: string;
8
+ type: string;
9
+ isOptional: boolean;
10
+ }>;
11
+ returnType: string;
12
+ isAsync: boolean;
13
+ documentation?: string;
14
+ }
15
+ /**
16
+ * Represents an import statement needed for types
17
+ */
18
+ export interface TypeImport {
19
+ moduleSpecifier: string;
20
+ namedImports: string[];
21
+ isTypeOnly: boolean;
22
+ }
23
+ /**
24
+ * Result of analyzing a port file
25
+ */
26
+ export interface PortAnalysisResult {
27
+ interfaceName: string;
28
+ methods: PortMethodSignature[];
29
+ imports: TypeImport[];
30
+ filePath: string;
31
+ }
32
+ /**
33
+ * Analyze a port interface file and extract method signatures and imports
34
+ *
35
+ * @param portFilePath - Absolute path to the port interface file
36
+ * @returns Analysis result with methods and imports, or null if file doesn't exist
37
+ */
38
+ export declare function analyzePortFile(portFilePath: string): PortAnalysisResult | null;
39
+ /**
40
+ * Generate an adapter implementation scaffold from port analysis
41
+ *
42
+ * @param analysis - Port analysis result
43
+ * @param adapterName - Name of the adapter class
44
+ * @returns TypeScript code for the adapter implementation
45
+ */
46
+ export declare function generateAdapterFromPort(analysis: PortAnalysisResult, adapterName: string): string;
47
+ /**
48
+ * Generate a use case implementation scaffold from port analysis
49
+ *
50
+ * @param analysis - Port analysis result
51
+ * @param useCaseName - Name of the use case class
52
+ * @param outPorts - Array of out-port names this use case depends on
53
+ * @returns TypeScript code for the use case implementation
54
+ */
55
+ export declare function generateUseCaseFromPort(analysis: PortAnalysisResult, useCaseName: string, outPorts: string[]): string;
56
+ //# sourceMappingURL=port-analyzer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-analyzer.d.ts","sourceRoot":"","sources":["../../src/generators/port-analyzer.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC,CAAC;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,MAAM,GACnB,kBAAkB,GAAG,IAAI,CAwC3B;AA2ED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAE,MAAM,GAClB,MAAM,CA6CR;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,CA8DR"}
@@ -0,0 +1,11 @@
1
+ import type { SyncConfig } from "../config.js";
2
+ /**
3
+ * Removes legacy layer directories (domain, application, infrastructure) if they are empty.
4
+ * Accepts an optional report to log deletions.
5
+ *
6
+ * IMPORTANT: Respects dry-run mode — will only log, not delete.
7
+ */
8
+ export declare function reapLegacyFolders(moduleDir: string, config: SyncConfig, report?: {
9
+ record: (type: string, target: string, message?: string) => void;
10
+ }): Promise<void>;
11
+ //# sourceMappingURL=reap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reap.d.ts","sourceRoot":"","sources":["../../src/generators/reap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC5E,OAAO,CAAC,IAAI,CAAC,CAoCf"}