@hexagen-monaco/sync 0.9.0 → 0.11.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 (185) hide show
  1. package/LICENSE +6 -0
  2. package/README.md +56 -8
  3. package/dist/application/ports/out/index.d.ts +1 -2
  4. package/dist/application/ports/out/index.d.ts.map +1 -1
  5. package/dist/application/ports/out/symbol-reference-index.port.d.ts +74 -0
  6. package/dist/application/ports/out/symbol-reference-index.port.d.ts.map +1 -0
  7. package/dist/application/use-cases/get-architecture-graph.use-case.d.ts +1 -1
  8. package/dist/application/use-cases/get-architecture-graph.use-case.d.ts.map +1 -1
  9. package/dist/application/use-cases/get-linter-report.use-case.d.ts +1 -1
  10. package/dist/application/use-cases/get-linter-report.use-case.d.ts.map +1 -1
  11. package/dist/application/use-cases/index.d.ts +0 -1
  12. package/dist/application/use-cases/index.d.ts.map +1 -1
  13. package/dist/application/use-cases/refactoring-impact.use-case.d.ts +24 -6
  14. package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -1
  15. package/dist/arch-linter-bin.d.ts +19 -3
  16. package/dist/arch-linter-bin.d.ts.map +1 -1
  17. package/dist/cli.js +2905 -5399
  18. package/dist/cli.js.map +1 -1
  19. package/dist/commands/add/validate.d.ts.map +1 -1
  20. package/dist/commands/adopt/index.d.ts +24 -0
  21. package/dist/commands/adopt/index.d.ts.map +1 -0
  22. package/dist/commands/bootstrap/index.d.ts +41 -0
  23. package/dist/commands/bootstrap/index.d.ts.map +1 -0
  24. package/dist/commands/bootstrap.d.ts +30 -0
  25. package/dist/commands/bootstrap.d.ts.map +1 -0
  26. package/dist/commands/report/baseline-read.d.ts +12 -0
  27. package/dist/commands/report/baseline-read.d.ts.map +1 -0
  28. package/dist/commands/report/build-report.d.ts +13 -0
  29. package/dist/commands/report/build-report.d.ts.map +1 -0
  30. package/dist/commands/report/context-map.d.ts +9 -0
  31. package/dist/commands/report/context-map.d.ts.map +1 -0
  32. package/dist/commands/report/exec-git.d.ts +3 -0
  33. package/dist/commands/report/exec-git.d.ts.map +1 -0
  34. package/dist/commands/report/handoff.d.ts +3 -0
  35. package/dist/commands/report/handoff.d.ts.map +1 -0
  36. package/dist/commands/report/index.d.ts +14 -0
  37. package/dist/commands/report/index.d.ts.map +1 -0
  38. package/dist/commands/report/lint-collect.d.ts +4 -0
  39. package/dist/commands/report/lint-collect.d.ts.map +1 -0
  40. package/dist/commands/report/ratchet-trend.d.ts +3 -0
  41. package/dist/commands/report/ratchet-trend.d.ts.map +1 -0
  42. package/dist/commands/report/render-html.d.ts +3 -0
  43. package/dist/commands/report/render-html.d.ts.map +1 -0
  44. package/dist/commands/report/render-markdown.d.ts +3 -0
  45. package/dist/commands/report/render-markdown.d.ts.map +1 -0
  46. package/dist/commands/report/types.d.ts +52 -0
  47. package/dist/commands/report/types.d.ts.map +1 -0
  48. package/dist/commands/report/zip-store.d.ts +10 -0
  49. package/dist/commands/report/zip-store.d.ts.map +1 -0
  50. package/dist/commands/shared/detect-workspaces.d.ts +12 -0
  51. package/dist/commands/shared/detect-workspaces.d.ts.map +1 -0
  52. package/dist/commands/shared/index.d.ts +1 -1
  53. package/dist/commands/shared/index.d.ts.map +1 -1
  54. package/dist/commands/shared/project-root.d.ts +7 -0
  55. package/dist/commands/shared/project-root.d.ts.map +1 -1
  56. package/dist/domain/services/emission-plan-builder.d.ts +14 -3
  57. package/dist/domain/services/emission-plan-builder.d.ts.map +1 -1
  58. package/dist/domain/services/impact-analysis.types.d.ts +6 -1
  59. package/dist/domain/services/impact-analysis.types.d.ts.map +1 -1
  60. package/dist/domain/services/index.d.ts +2 -0
  61. package/dist/domain/services/index.d.ts.map +1 -1
  62. package/dist/domain/services/layer-classifier.d.ts +53 -2
  63. package/dist/domain/services/layer-classifier.d.ts.map +1 -1
  64. package/dist/domain/services/layer-dir-resolver.d.ts +63 -0
  65. package/dist/domain/services/layer-dir-resolver.d.ts.map +1 -0
  66. package/dist/domain/services/name-normalizer.d.ts +35 -0
  67. package/dist/domain/services/name-normalizer.d.ts.map +1 -0
  68. package/dist/domain/services/stub-template-resolver.d.ts +33 -2
  69. package/dist/domain/services/stub-template-resolver.d.ts.map +1 -1
  70. package/dist/generators/apps-framework-templates.d.ts.map +1 -1
  71. package/dist/generators/architecture-file-templates.d.ts +2 -2
  72. package/dist/generators/architecture-file-templates.d.ts.map +1 -1
  73. package/dist/generators/architecture-files.d.ts.map +1 -1
  74. package/dist/generators/cross-context.d.ts.map +1 -1
  75. package/dist/generators/eslint.d.ts.map +1 -1
  76. package/dist/generators/layer-folders.d.ts.map +1 -1
  77. package/dist/generators/package-json.d.ts.map +1 -1
  78. package/dist/generators/root-file-templates.d.ts +1 -1
  79. package/dist/generators/root-file-templates.d.ts.map +1 -1
  80. package/dist/generators/root-files.d.ts.map +1 -1
  81. package/dist/generators/stubs.d.ts +4 -1
  82. package/dist/generators/stubs.d.ts.map +1 -1
  83. package/dist/index.d.ts +23 -3
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +581 -4770
  86. package/dist/index.js.map +1 -1
  87. package/dist/infrastructure/adapters/index.d.ts +1 -0
  88. package/dist/infrastructure/adapters/index.d.ts.map +1 -1
  89. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts +47 -0
  90. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts.map +1 -0
  91. package/dist/infrastructure/config/layout-schema.d.ts +29 -0
  92. package/dist/infrastructure/config/layout-schema.d.ts.map +1 -0
  93. package/dist/infrastructure/config/load-layout-config.d.ts +8 -0
  94. package/dist/infrastructure/config/load-layout-config.d.ts.map +1 -0
  95. package/dist/linter.d.ts +24 -0
  96. package/dist/linter.d.ts.map +1 -1
  97. package/dist/manifest-service.d.ts.map +1 -1
  98. package/dist/refactoring/impact-analyzer.d.ts +7 -2
  99. package/dist/refactoring/impact-analyzer.d.ts.map +1 -1
  100. package/dist/sync-engine.d.ts.map +1 -1
  101. package/dist/templates/adobe-creative-production/files/src/domain/ports/out/creative-production.port.ts +2 -4
  102. package/dist/templates/adobe-creative-production/files/src/infrastructure/adobe/creative-production/creative-production.adapter.ts +8 -7
  103. package/dist/templates/adobe-express/files/src/domain/ports/out/express.port.ts +2 -4
  104. package/dist/templates/adobe-express/files/src/infrastructure/adobe/express/express.adapter.ts +9 -8
  105. package/dist/templates/adobe-firefly-composite/files/src/domain/ports/out/composite.port.ts +2 -4
  106. package/dist/templates/adobe-firefly-composite/files/src/infrastructure/adobe/composite/composite.adapter.ts +12 -12
  107. package/dist/templates/adobe-firefly-content-tagging/files/src/domain/ports/out/content-tagging.port.ts +2 -4
  108. package/dist/templates/adobe-firefly-content-tagging/files/src/infrastructure/adobe/content-tagging/content-tagging.adapter.ts +6 -5
  109. package/dist/templates/adobe-firefly-core/README.md +1 -1
  110. package/dist/templates/adobe-firefly-core/files/src/domain/errors/creative-service-error.ts +62 -0
  111. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/errors/to-creative-service-error.ts +45 -0
  112. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/index.ts +9 -0
  113. package/dist/templates/adobe-firefly-core/manifest.json +2 -0
  114. package/dist/templates/adobe-firefly-custom-models/files/src/domain/ports/out/custom-model.port.ts +5 -7
  115. package/dist/templates/adobe-firefly-custom-models/files/src/infrastructure/adobe/custom-models/firefly-custom-model.adapter.ts +16 -15
  116. package/dist/templates/adobe-firefly-generate/files/src/domain/ports/out/image-generation.port.ts +6 -8
  117. package/dist/templates/adobe-firefly-generate/files/src/infrastructure/adobe/generate/firefly-generate.adapter.ts +14 -16
  118. package/dist/templates/adobe-firefly-media/files/src/domain/ports/out/media-generation.port.ts +6 -8
  119. package/dist/templates/adobe-firefly-media/files/src/infrastructure/adobe/media/firefly-media.adapter.ts +11 -10
  120. package/dist/templates/adobe-firefly-upscale/files/src/domain/ports/out/upscale.port.ts +2 -4
  121. package/dist/templates/adobe-firefly-upscale/files/src/infrastructure/adobe/upscale/upscale.adapter.ts +13 -11
  122. package/dist/templates/adobe-illustrator/files/src/domain/ports/out/illustrator.port.ts +4 -6
  123. package/dist/templates/adobe-illustrator/files/src/infrastructure/adobe/illustrator/illustrator.adapter.ts +17 -15
  124. package/dist/templates/adobe-indesign/files/src/domain/ports/out/indesign.port.ts +4 -6
  125. package/dist/templates/adobe-indesign/files/src/infrastructure/adobe/indesign/indesign.adapter.ts +10 -9
  126. package/dist/templates/adobe-lightroom/files/src/domain/ports/out/lightroom.port.ts +4 -6
  127. package/dist/templates/adobe-lightroom/files/src/infrastructure/adobe/lightroom/lightroom.adapter.ts +10 -9
  128. package/dist/templates/adobe-photoshop/files/src/domain/ports/out/photoshop-automation.port.ts +6 -8
  129. package/dist/templates/adobe-photoshop/files/src/infrastructure/adobe/photoshop/photoshop-automation.adapter.ts +12 -11
  130. package/dist/templates/adobe-substance-3d/files/src/domain/ports/out/substance-3d.port.ts +4 -6
  131. package/dist/templates/adobe-substance-3d/files/src/infrastructure/adobe/substance-3d/substance-3d.adapter.ts +10 -9
  132. package/dist/templates/agents-md/files/AGENTS.md +5 -5
  133. package/dist/templates/bedrock-agentcore-runtime/files/src/application/ports/agent-runtime.port.ts +25 -0
  134. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/invocations.handler.ts +1 -1
  135. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/server.ts +1 -1
  136. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/payload.ts +5 -22
  137. package/dist/templates/bedrock-agentcore-runtime/manifest.json +1 -0
  138. package/dist/templates/ci-github-actions/README.md +13 -7
  139. package/dist/templates/ci-github-actions/files/.github/dependabot.yml +9 -2
  140. package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +18 -14
  141. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +12 -6
  142. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +14 -8
  143. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +29 -8
  144. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vps.yml +14 -8
  145. package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +34 -18
  146. package/dist/templates/ci-github-actions/manifest.json +2 -2
  147. package/dist/templates/docker/README.md +3 -0
  148. package/dist/templates/docker/files/.github/workflows/docker-build.yml +15 -6
  149. package/dist/templates/docker/manifest.json +1 -0
  150. package/dist/templates/llm-adapter/files/src/domain/errors/llm-error.ts +35 -0
  151. package/dist/templates/llm-adapter/files/src/domain/ports/out/llm-client.port.ts +1 -1
  152. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/anthropic-llm-client.adapter.ts +1 -1
  153. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/azure-openai-llm-client.adapter.ts +1 -1
  154. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/ollama-llm-client.adapter.ts +1 -1
  155. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/openai-llm-client.adapter.ts +1 -1
  156. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/xai-llm-client.adapter.ts +1 -1
  157. package/dist/templates/llm-adapter/files/src/infrastructure/llm/errors/llm-errors.ts +9 -23
  158. package/dist/templates/llm-adapter/files/src/infrastructure/llm/index.ts +4 -3
  159. package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/llm-router.ts +1 -1
  160. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/retry.ts +1 -1
  161. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/structured-output.ts +1 -1
  162. package/dist/templates/llm-adapter/manifest.json +1 -0
  163. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-llm-client.adapter.ts +1 -1
  164. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/errors/bedrock-errors.ts +1 -1
  165. package/dist/templates/mcp-server/README.md +1 -1
  166. package/dist/templates/mcp-server-http/README.md +1 -1
  167. package/package.json +6 -5
  168. package/dist/application/ports/out/project-configuration-read.port.d.ts +0 -9
  169. package/dist/application/ports/out/project-configuration-read.port.d.ts.map +0 -1
  170. package/dist/application/ports/out/symbol-reference-provider.port.d.ts +0 -10
  171. package/dist/application/ports/out/symbol-reference-provider.port.d.ts.map +0 -1
  172. package/dist/application/use-cases/get-manifest-resource.use-case.d.ts +0 -8
  173. package/dist/application/use-cases/get-manifest-resource.use-case.d.ts.map +0 -1
  174. package/dist/generators/validators/index.d.ts +0 -11
  175. package/dist/generators/validators/index.d.ts.map +0 -1
  176. package/dist/generators/validators/validate-dependencies.d.ts +0 -7
  177. package/dist/generators/validators/validate-dependencies.d.ts.map +0 -1
  178. package/dist/generators/validators/validate-manifest-sync.d.ts +0 -5
  179. package/dist/generators/validators/validate-manifest-sync.d.ts.map +0 -1
  180. package/dist/generators/validators/validate-port-adapter.d.ts +0 -5
  181. package/dist/generators/validators/validate-port-adapter.d.ts.map +0 -1
  182. package/dist/generators/validators/validation-types.d.ts +0 -20
  183. package/dist/generators/validators/validation-types.d.ts.map +0 -1
  184. package/dist/generators/validators.d.ts +0 -7
  185. package/dist/generators/validators.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/add/validate.ts"],"names":[],"mappings":"AAQA,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAwD9D"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/add/validate.ts"],"names":[],"mappings":"AAUA,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CA6D9D"}
@@ -0,0 +1,24 @@
1
+ import { Command } from "commander";
2
+ import { type Result } from "../../domain/result.js";
3
+ export interface AdoptOptions {
4
+ root: string;
5
+ yes?: boolean;
6
+ dryRun?: boolean;
7
+ invokeLint?: boolean;
8
+ force?: boolean;
9
+ }
10
+ export interface AdoptResult {
11
+ layoutPath: string;
12
+ wrote: boolean;
13
+ nextSteps: string[];
14
+ }
15
+ export declare function runAdopt(options: AdoptOptions): Promise<Result<AdoptResult, Error>>;
16
+ export declare function adoptCommand(options: {
17
+ root?: string;
18
+ yes?: boolean;
19
+ dryRun?: boolean;
20
+ invokeLint?: boolean;
21
+ force?: boolean;
22
+ }): Promise<void>;
23
+ export declare const adoptCommander: Command;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/adopt/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAqBD,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAoErC;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBhB;AAED,eAAO,MAAM,cAAc,SAsBxB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { Command } from "commander";
2
+ import { type Result } from "../../domain/result.js";
3
+ export interface BootstrapContextAnswer {
4
+ name: string;
5
+ include: boolean;
6
+ type?: string;
7
+ root: string;
8
+ description?: string;
9
+ dependsOn?: string[];
10
+ }
11
+ export interface BootstrapAnswers {
12
+ system?: string;
13
+ scope?: string;
14
+ architecture?: string;
15
+ contexts: BootstrapContextAnswer[];
16
+ }
17
+ export interface BootstrapOptions {
18
+ root: string;
19
+ yes?: boolean;
20
+ answersPath?: string;
21
+ stdinJson?: boolean;
22
+ llm?: boolean;
23
+ dryRun?: boolean;
24
+ force?: boolean;
25
+ }
26
+ export interface BootstrapResult {
27
+ files: string[];
28
+ wrote: boolean;
29
+ }
30
+ export declare function runBootstrap(options: BootstrapOptions): Promise<Result<BootstrapResult, Error>>;
31
+ export declare function bootstrapCommand(options: {
32
+ root?: string;
33
+ yes?: boolean;
34
+ answers?: string;
35
+ stdinJson?: boolean;
36
+ llm?: boolean;
37
+ dryRun?: boolean;
38
+ force?: boolean;
39
+ }): Promise<void>;
40
+ export declare const bootstrapCommander: Command;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/bootstrap/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB;AAwKD,wBAAsB,YAAY,CAChC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAyFzC;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BhB;AAED,eAAO,MAAM,kBAAkB,SA0B5B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { Project, type SourceFile } from "ts-morph";
2
+ import { type Result } from "../domain/result.js";
3
+ export declare const ARCH_LINT_BASELINE_RELATIVE_PATH = ".architecture/arch-lint-baseline.json";
4
+ /** Empty ratchet baseline (ADR-0054) — numeric version + `entries`. */
5
+ export declare const EMPTY_ARCH_LINT_BASELINE: {
6
+ version: number;
7
+ entries: readonly [];
8
+ };
9
+ export interface BootstrapOptions {
10
+ force?: boolean;
11
+ }
12
+ interface WorkspaceInfo {
13
+ name: string;
14
+ dir: string;
15
+ fullPath: string;
16
+ }
17
+ /** ts-morph globs reject native Windows separators. */
18
+ export declare function toTsMorphGlob(absPath: string): string;
19
+ export declare function resolveWorkspaceSpecifier(specifier: string, packageNames: Iterable<string>): string | undefined;
20
+ export declare function collectModuleSpecifiers(file: SourceFile): string[];
21
+ export declare function deriveSystemAndScope(pkgName: string | undefined): {
22
+ system: string;
23
+ scope: string;
24
+ };
25
+ export declare function discoverWorkspaces(root: string): Promise<Result<WorkspaceInfo[], Error>>;
26
+ export declare function scanWorkspaceSources(project: Project, workspaces: readonly WorkspaceInfo[]): Promise<Result<void, Error>>;
27
+ export declare function inferDependencies(sourceFiles: readonly SourceFile[], selectedContexts: readonly WorkspaceInfo[]): Map<string, Set<string>>;
28
+ export declare function bootstrapCommand(options?: BootstrapOptions): Promise<void>;
29
+ export {};
30
+ //# sourceMappingURL=bootstrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAI1D,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO3D,eAAO,MAAM,gCAAgC,0CACJ,CAAC;AAE1C,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAmBD,uDAAuD;AACvD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,GAC7B,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAoClE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAiBA;AA+ED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC,CAiEzC;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,SAAS,aAAa,EAAE,GACnC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAsB9B;AAED,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,SAAS,UAAU,EAAE,EAClC,gBAAgB,EAAE,SAAS,aAAa,EAAE,GACzC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAwB1B;AAWD,wBAAsB,gBAAgB,CACpC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAwJf"}
@@ -0,0 +1,12 @@
1
+ import type { ReportBaselineEntry } from "./types.js";
2
+ export interface ReportBaselineFile {
3
+ version: number;
4
+ entries: ReportBaselineEntry[];
5
+ }
6
+ /**
7
+ * Local reader aligned with `@hexagen/arch-linter` parseBaseline (version 1,
8
+ * rule/file/specifier required, optional reason/expires). Kept here so the
9
+ * sync CLI does not take a runtime dependency on the linter package.
10
+ */
11
+ export declare function parseReportBaseline(text: string): ReportBaselineFile;
12
+ //# sourceMappingURL=baseline-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseline-read.d.ts","sourceRoot":"","sources":["../../../src/commands/report/baseline-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAItD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAqGpE"}
@@ -0,0 +1,13 @@
1
+ import type { Manifest } from "../../types/manifest.js";
2
+ import type { EngagementReport, GitReader, LintCollector } from "./types.js";
3
+ export declare const DEFAULT_BASELINE_REL = ".architecture/arch-lint-baseline.json";
4
+ export declare const DEFAULT_LAYOUT_REL = ".architecture/layout.yaml";
5
+ export declare function buildEngagementReport(input: {
6
+ workspaceRoot: string;
7
+ manifest: Manifest;
8
+ generatedAt?: string;
9
+ git: GitReader;
10
+ lint?: LintCollector;
11
+ now?: Date;
12
+ }): EngagementReport;
13
+ //# sourceMappingURL=build-report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-report.d.ts","sourceRoot":"","sources":["../../../src/commands/report/build-report.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQxD,OAAO,KAAK,EAEV,gBAAgB,EAChB,SAAS,EACT,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,oBAAoB,0CAA0C,CAAC;AAC5E,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAU9D,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ,GAAG,gBAAgB,CA4BnB"}
@@ -0,0 +1,9 @@
1
+ import type { Manifest } from "../../types/manifest.js";
2
+ /**
3
+ * Context map as Mermaid text. Mirrors the accept-view classDiagram
4
+ * (ports in/out) plus a flowchart of `depends_on`. No Next.js import.
5
+ */
6
+ export declare function generateContextMapMermaid(manifest: Manifest): string;
7
+ export declare function contextCount(manifest: Manifest): number;
8
+ export declare function systemNameOf(manifest: Manifest): string;
9
+ //# sourceMappingURL=context-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-map.d.ts","sourceRoot":"","sources":["../../../src/commands/report/context-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAYxD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAwDpE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEvD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAIvD"}
@@ -0,0 +1,3 @@
1
+ import type { GitReader } from "./types.js";
2
+ export declare function createGitReader(workspaceRoot: string): GitReader;
3
+ //# sourceMappingURL=exec-git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exec-git.d.ts","sourceRoot":"","sources":["../../../src/commands/report/exec-git.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAc5C,wBAAgB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CA6BhE"}
@@ -0,0 +1,3 @@
1
+ import type { EngagementReport } from "./types.js";
2
+ export declare function buildHandoffZip(report: EngagementReport, workspaceRoot: string): Buffer;
3
+ //# sourceMappingURL=handoff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../../src/commands/report/handoff.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,wBAAgB,eAAe,CAC7B,MAAM,EAAE,gBAAgB,EACxB,aAAa,EAAE,MAAM,GACpB,MAAM,CAqCR"}
@@ -0,0 +1,14 @@
1
+ export interface ReportCommandOptions {
2
+ format?: "html" | "md" | "both";
3
+ out?: string;
4
+ handoff?: boolean;
5
+ handoffOut?: string;
6
+ cwd?: string;
7
+ }
8
+ export declare function reportCommand(options?: ReportCommandOptions): Promise<{
9
+ markdownPath: string;
10
+ htmlPath: string;
11
+ handoffPath?: string;
12
+ }>;
13
+ export declare function runReportCommand(options: ReportCommandOptions): Promise<void>;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/report/index.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,aAAa,CACjC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAuC3E;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAkBf"}
@@ -0,0 +1,4 @@
1
+ import type { DriftSummary, LintCollector } from "./types.js";
2
+ export declare function createSpawnLintCollector(workspaceRoot: string): LintCollector;
3
+ export declare function parseLintJson(stdout: string): DriftSummary;
4
+ //# sourceMappingURL=lint-collect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-collect.d.ts","sourceRoot":"","sources":["../../../src/commands/report/lint-collect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAa9D,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CA4C7E;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CAmD1D"}
@@ -0,0 +1,3 @@
1
+ import type { GitReader, RatchetTrendPoint } from "./types.js";
2
+ export declare function collectRatchetTrend(git: GitReader, baselineRelPath: string, limit?: number): RatchetTrendPoint[];
3
+ //# sourceMappingURL=ratchet-trend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ratchet-trend.d.ts","sourceRoot":"","sources":["../../../src/commands/report/ratchet-trend.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/D,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,SAAS,EACd,eAAe,EAAE,MAAM,EACvB,KAAK,SAAK,GACT,iBAAiB,EAAE,CAmBrB"}
@@ -0,0 +1,3 @@
1
+ import type { EngagementReport } from "./types.js";
2
+ export declare function renderReportHtml(report: EngagementReport): string;
3
+ //# sourceMappingURL=render-html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-html.d.ts","sourceRoot":"","sources":["../../../src/commands/report/render-html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAWnD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAmEjE"}
@@ -0,0 +1,3 @@
1
+ import type { EngagementReport } from "./types.js";
2
+ export declare function renderReportMarkdown(report: EngagementReport): string;
3
+ //# sourceMappingURL=render-markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-markdown.d.ts","sourceRoot":"","sources":["../../../src/commands/report/render-markdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkBnD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAoFrE"}
@@ -0,0 +1,52 @@
1
+ export interface ReportBaselineEntry {
2
+ rule: string;
3
+ file: string;
4
+ specifier: string;
5
+ reason?: string;
6
+ expires?: string;
7
+ }
8
+ export interface ReportViolation {
9
+ rule: string;
10
+ file: string;
11
+ specifier: string;
12
+ message: string;
13
+ }
14
+ export interface RatchetTrendPoint {
15
+ hash: string;
16
+ isoDate: string;
17
+ subject: string;
18
+ entryCount: number;
19
+ }
20
+ export interface DriftSummary {
21
+ fresh: ReportViolation[];
22
+ baselined: ReportViolation[];
23
+ stale: ReportBaselineEntry[];
24
+ expired: ReportBaselineEntry[];
25
+ collected: boolean;
26
+ /** Set when collect() failed; renderers must not claim a missing binary. */
27
+ failureReason?: string;
28
+ }
29
+ export interface EngagementReport {
30
+ generatedAt: string;
31
+ workspaceRoot: string;
32
+ systemName: string;
33
+ mermaid: string;
34
+ contextCount: number;
35
+ drift: DriftSummary;
36
+ trend: RatchetTrendPoint[];
37
+ suppressions: ReportBaselineEntry[];
38
+ baselinePresent: boolean;
39
+ layoutPresent: boolean;
40
+ }
41
+ export interface GitReader {
42
+ logFollow(relativePath: string): Array<{
43
+ hash: string;
44
+ isoDate: string;
45
+ subject: string;
46
+ }>;
47
+ show(hash: string, relativePath: string): string | null;
48
+ }
49
+ export interface LintCollector {
50
+ collect(): DriftSummary;
51
+ }
52
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/report/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC;QACrC,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,IAAI,YAAY,CAAC;CACzB"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Minimal ZIP (store method, no compression). Avoids a new dependency for a
3
+ * handful of text files.
4
+ */
5
+ export interface ZipEntry {
6
+ name: string;
7
+ content: string | Uint8Array;
8
+ }
9
+ export declare function writeZipStore(entries: ZipEntry[]): Buffer;
10
+ //# sourceMappingURL=zip-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip-store.d.ts","sourceRoot":"","sources":["../../../src/commands/report/zip-store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAkEzD"}
@@ -0,0 +1,12 @@
1
+ export interface DetectedPackage {
2
+ name: string;
3
+ root: string;
4
+ packageName?: string;
5
+ layers: Partial<Record<"domain" | "application" | "infrastructure" | "presentation", string[]>>;
6
+ }
7
+ export interface WorkspaceDetection {
8
+ system: string;
9
+ packages: DetectedPackage[];
10
+ }
11
+ export declare function detectWorkspaces(root: string): Promise<WorkspaceDetection>;
12
+ //# sourceMappingURL=detect-workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect-workspaces.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/detect-workspaces.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CACb,MAAM,CACJ,QAAQ,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,EAC5D,MAAM,EAAE,CACT,CACF,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AA6ED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,CAAC,CAuD7B"}
@@ -5,7 +5,7 @@
5
5
  * and provide consistent discovery for consumers.
6
6
  */
7
7
  export { yamlService } from "./yaml-service.js";
8
- export { getProjectRoot, findProjectRoot } from "./project-root.js";
8
+ export { getProjectRoot, findProjectRoot, findWorkspaceRoot, } from "./project-root.js";
9
9
  export { promptService, PromptService } from "./prompt-service.js";
10
10
  export { spinner, Spinner } from "./spinner.js";
11
11
  export { confirm } from "./confirm.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,3 +1,10 @@
1
1
  export declare function findProjectRoot(from: string): string | null;
2
+ /**
3
+ * Workspace root for commands that must run *before* a manifest exists
4
+ * (`hexagen bootstrap`). Prefers an existing HexaGen project (manifest
5
+ * present) and otherwise walks up for a `package.json` that declares
6
+ * `workspaces`.
7
+ */
8
+ export declare function findWorkspaceRoot(from: string): string | null;
2
9
  export declare function getProjectRoot(): string;
3
10
  //# sourceMappingURL=project-root.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-root.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/project-root.ts"],"names":[],"mappings":"AAmCA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAuB3D;AAED,wBAAgB,cAAc,IAAI,MAAM,CAUvC"}
1
+ {"version":3,"file":"project-root.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/project-root.ts"],"names":[],"mappings":"AAmCA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAuB3D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2B7D;AAED,wBAAgB,cAAc,IAAI,MAAM,CAUvC"}
@@ -3,15 +3,26 @@
3
3
  *
4
4
  * Flattens the bounded context's layers object into an ordered list of
5
5
  * emission items (kind, subdir, names) so the generator can iterate
6
- * them uniformly.
6
+ * them uniformly. Directories are resolved through the single layer-folder
7
+ * resolver (A2): each conventional emission site is combined with the
8
+ * manifest's `generator.sync.layers` configuration, so a custom
9
+ * `application.folder` (or an underscored `value_objects` subfolder — F16)
10
+ * places stubs in the same tree `ensureLayerFolders` scaffolds.
7
11
  */
8
12
  import type { BoundedContext } from "../../types/manifest.js";
13
+ import { type LayersConfig } from "./layer-dir-resolver.js";
14
+ /**
15
+ * Conventional emission-site vocabulary (layer + kebab-case site). These are
16
+ * the resolver INPUTS — the plan's `subdir` carries the RESOLVED directory
17
+ * (relative to the package root, `src/...` by convention).
18
+ */
9
19
  export type EmissionSite = "domain/entities" | "domain/value-objects" | "domain/services" | "domain/ports/in" | "domain/ports/out" | "application/use-cases" | "application/ports/in" | "application/ports/out" | "infrastructure/adapters";
10
20
  export type StubKind = "inPort" | "outPort" | "adapter" | "useCase" | "entity" | "valueObject" | "domainService";
11
21
  export interface EmissionPlan {
12
22
  kind: StubKind;
13
- subdir: EmissionSite;
23
+ /** Resolved on-disk directory relative to the package root (e.g. `src/app/ports/in`). */
24
+ subdir: string;
14
25
  names: string[];
15
26
  }
16
- export declare function buildEmissionPlan(context: BoundedContext): EmissionPlan[];
27
+ export declare function buildEmissionPlan(context: BoundedContext, layersConfig?: LayersConfig): EmissionPlan[];
17
28
  //# sourceMappingURL=emission-plan-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emission-plan-builder.d.ts","sourceRoot":"","sources":["../../../src/domain/services/emission-plan-builder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,sBAAsB,GACtB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,uBAAuB,GACvB,yBAAyB,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,aAAa,GACb,eAAe,CAAC;AAEpB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,GAAG,YAAY,EAAE,CAgFzE"}
1
+ {"version":3,"file":"emission-plan-builder.d.ts","sourceRoot":"","sources":["../../../src/domain/services/emission-plan-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,sBAAsB,GACtB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,uBAAuB,GACvB,yBAAyB,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,aAAa,GACb,eAAe,CAAC;AAEpB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,YAAY,GAC1B,YAAY,EAAE,CAmFhB"}
@@ -1,5 +1,10 @@
1
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";
2
+ /**
3
+ * Conventional hexagonal names, plus any `layout.yaml`-configured layer.
4
+ * Configured names are first-class Layer values — they must not be forced
5
+ * through an `as Layer` assertion.
6
+ */
7
+ export type Layer = string;
3
8
  export interface FileToModify {
4
9
  path: string;
5
10
  reason: string;
@@ -1 +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"}
1
+ {"version":3,"file":"impact-analysis.types.d.ts","sourceRoot":"","sources":["../../../src/domain/services/impact-analysis.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,cAAc,CAAC;AAEnB;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B,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"}
@@ -3,5 +3,7 @@ export * from "./emission-plan-builder.js";
3
3
  export * from "./impact-analysis.types.js";
4
4
  export * from "./impact-request-validator.js";
5
5
  export * from "./layer-classifier.js";
6
+ export * from "./layer-dir-resolver.js";
7
+ export * from "./name-normalizer.js";
6
8
  export * from "./stub-template-resolver.js";
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC"}
@@ -1,4 +1,55 @@
1
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;
2
+ /**
3
+ * Reduce an absolute file path to a workspace-relative POSIX path.
4
+ *
5
+ * Both classifiers below read a *workspace-relative POSIX* string —
6
+ * `determinePackageName` anchors on `/^(?:packages|apps)\//` and
7
+ * `determineLayer` matches on `/domain/`-style segments — so producing that
8
+ * dialect is part of the same contract and lives here beside them.
9
+ *
10
+ * The two arguments arrive in **different dialects**, which is the whole point.
11
+ * `filePath` reaches the caller as a ts-morph *output*: `getFilePath()` returns
12
+ * a `StandardizedFilePath`, already slash-normalised even on Windows
13
+ * (`C:\ws\a.ts` -> `C:/ws/a.ts`). `workspaceRoot` is a raw *input* — whatever
14
+ * the caller handed the analyser, on Windows a native `path.join`/`os.tmpdir`
15
+ * string full of backslashes. Subtracting one from the other with a literal
16
+ * `` `${workspaceRoot}/` `` prefix strip therefore matched nothing on Windows
17
+ * and left the absolute path in `FileToModify.path`, which then failed the
18
+ * `^(?:packages|apps)/` anchor and classified every file as package "unknown".
19
+ * `@hexagen/sync` is published and `hexagen arch refactor` runs on consumer
20
+ * machines, so that was a consumer-facing defect, not a test-only one.
21
+ *
22
+ * Implemented as pure segment arithmetic rather than `node:path` because this
23
+ * is the domain layer and the architectural linter (rightly) bans node builtins
24
+ * here. For the inputs this code path produces — two absolute paths under a
25
+ * common root — it agrees exactly with the platform-correct reference
26
+ * (`path.win32.relative` re-standardised to slashes for drive-letter roots,
27
+ * `path.posix.relative` for POSIX roots), including out-of-tree `../` escapes
28
+ * and trailing separators on the root. Doing the arithmetic explicitly is also
29
+ * what makes the answer host-independent: `path.relative` bound to the host
30
+ * returns backslashes on Windows, which the `^(?:packages|apps)/` anchor
31
+ * rejects just as hard as an absolute path, while `path.posix.relative` on a
32
+ * POSIX host does not treat `C:/...` as absolute and resolves it against the
33
+ * process cwd.
34
+ */
35
+ export declare function toWorkspaceRelativePosixPath(workspaceRoot: string, filePath: string): string;
36
+ /** Flat `layers:` / `ignore:` list from the sync layout.yaml schema. */
37
+ export interface LayoutConfig {
38
+ contexts?: string | Record<string, {
39
+ root: string;
40
+ layers?: Record<string, readonly string[]>;
41
+ }>;
42
+ root?: string;
43
+ layers?: string[];
44
+ ignore?: string[];
45
+ }
46
+ /** Optional per-context directory map — config-driven mode alongside convention. */
47
+ export interface LayerLayoutConfig {
48
+ contexts?: Record<string, {
49
+ root: string;
50
+ layers?: Record<string, readonly string[]>;
51
+ }>;
52
+ }
53
+ export declare function determineLayer(relativePath: string, config?: LayoutConfig | LayerLayoutConfig): Layer;
54
+ export declare function determinePackageName(relativePath: string, layout?: LayoutConfig | LayerLayoutConfig): string;
4
55
  //# sourceMappingURL=layer-classifier.d.ts.map
@@ -1 +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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,MAAM,CAkBR;AAED,wEAAwE;AACxE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EACL,MAAM,GACN,MAAM,CACJ,MAAM,EACN;QACE,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;KAC5C,CACF,CAAC;IACN,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,oFAAoF;AACpF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CACf,MAAM,EACN;QACE,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;KAC5C,CACF,CAAC;CACH;AAyED,wBAAgB,cAAc,CAC5B,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,YAAY,GAAG,iBAAiB,GACxC,KAAK,CAiDP;AAED,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,YAAY,GAAG,iBAAiB,GACxC,MAAM,CAOR"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * THE single layer-folder resolver (A2 / F16).
3
+ *
4
+ * Several code paths used to guess the on-disk directory for a layer/stub
5
+ * site independently — the emission plan and stub placement hardcoded
6
+ * `src/<layer>/<site>` while `ensureLayerFolders` consumed
7
+ * `generator.sync.layers[*].folder` — so a manifest that set
8
+ * `application: { folder: "src/app" }` scaffolded `src/app/...` but stubs
9
+ * landed in `src/application/...`. Every consumer that turns a (layer, site)
10
+ * pair into a directory now goes through `resolveLayerDir`.
11
+ *
12
+ * Rules:
13
+ * - The LAYER folder comes from `generator.sync.layers[layer].folder`,
14
+ * falling back to the `src/<layer>` convention. A configured folder that
15
+ * is absolute or path-traverses out of the package is ignored (fall back
16
+ * to convention) — manifests can arrive unvalidated via `/api/generate`,
17
+ * and this is the same traversal posture as the SyncEngine module guard.
18
+ * - The SITE subfolder is the conventional kebab-case vocabulary
19
+ * (`entities`, `value-objects`, `use-cases`, `ports/in`, ...).
20
+ * Hyphen/underscore are treated as the same separator for KNOWN sites:
21
+ * the wizard's layer config names `value_objects` while every emitter
22
+ * (stub plan, add-on template payloads and their import specifiers, this
23
+ * monorepo's own layout) uses `value-objects` — F16's duplicate-folder
24
+ * bug was exactly that split. Known-site spellings normalize to the
25
+ * kebab-case convention; unknown custom subfolders pass through verbatim.
26
+ */
27
+ import type { LayerConfig } from "../../types/manifest.js";
28
+ export type LayerKind = "domain" | "application" | "infrastructure";
29
+ export type LayersConfig = Record<string, LayerConfig>;
30
+ /**
31
+ * Normalize a subfolder spelling: a spelling of a KNOWN site (any
32
+ * hyphen/underscore/case variant, e.g. `value_objects`) collapses to the
33
+ * conventional kebab-case form; anything else (a genuinely custom subfolder)
34
+ * is returned verbatim. Used by `ensureLayerFolders` too, so the scaffolded
35
+ * skeleton and the emitted files agree on ONE folder per site (F16).
36
+ */
37
+ export declare function normalizeSubfolder(subfolder: string): string;
38
+ /**
39
+ * A configured layer folder (or subfolder) must stay inside the package:
40
+ * reject absolute paths and `..` segments (unvalidated `/api/generate`
41
+ * manifests reach this code — same posture as the SyncEngine module-name
42
+ * guard and cross-context's `isSafePathSegment`). Exported so the scaffold
43
+ * (`ensureLayerFolders`) applies the same rule to configured subfolders
44
+ * before any filesystem write.
45
+ */
46
+ export declare function isSafeLayerFolder(folder: string): boolean;
47
+ /**
48
+ * Resolve the on-disk directory (POSIX-style, relative to the package root)
49
+ * for a layer — optionally a site inside it — from `generator.sync.layers`,
50
+ * with a fallback to the `src/<layer>/<conventional-site>` convention.
51
+ *
52
+ * `resolveLayerDir(layers, "application", "ports/out")` →
53
+ * `"src/app/ports/out"` when the manifest configures
54
+ * `application: { folder: "src/app" }`, `"src/application/ports/out"`
55
+ * otherwise.
56
+ */
57
+ export declare function resolveLayerDir(layers: LayersConfig | undefined, layer: string, subfolder?: string): string;
58
+ /**
59
+ * Convenience form for emission-site strings (`"domain/value-objects"`,
60
+ * `"application/ports/in"`, ...): split into (layer, site) and resolve.
61
+ */
62
+ export declare function resolveEmissionDir(layers: LayersConfig | undefined, site: `${LayerKind}/${string}`): string;
63
+ //# sourceMappingURL=layer-dir-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layer-dir-resolver.d.ts","sourceRoot":"","sources":["../../../src/domain/services/layer-dir-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAuBvD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG5D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,YAAY,GAAG,SAAS,EAGhC,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAQR;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,IAAI,EAAE,GAAG,SAAS,IAAI,MAAM,EAAE,GAC7B,MAAM,CAIR"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * THE single name normalizer (A3).
3
+ *
4
+ * `normalizeStubName` (stubs.ts) and the private `toPascalCase` copies in
5
+ * `architecture-files.ts` / `cross-context.ts` evolved separately with subtly
6
+ * different word-splitting (the generator copies split on `[-.]` only, so an
7
+ * underscored name PascalCased to `User_repo` while its stub identifier was
8
+ * `UserRepo`). A stub identifier and the same name rendered anywhere else
9
+ * (ownership registry, cross-context class names) must agree, so all of them
10
+ * now share this module.
11
+ *
12
+ * Policy (the #242 `normalizeStubName` semantics — the better-tested of the
13
+ * divergent copies, pinned in `normalize-stub-name.test.ts` and
14
+ * `name-normalizer.test.ts`):
15
+ * - split on EVERY non-alphanumeric run (kebab, underscore, dot, space, ...)
16
+ * and capitalize each word — `user_repo` → `UserRepo`;
17
+ * - the identifier form additionally guards invalid identifier starts:
18
+ * empty → `Stub`, digit-leading → `Stub` prefix (`3d-renderer` →
19
+ * `Stub3dRenderer`).
20
+ */
21
+ /**
22
+ * PascalCase a raw name: split on non-alphanumeric runs, capitalize each
23
+ * word. Makes NO identifier-validity promise (may return `""` or a
24
+ * digit-leading string) — use `toPascalCaseIdentifier` where the result
25
+ * becomes a TS identifier or must match one.
26
+ */
27
+ export declare function toPascalCase(stem: string): string;
28
+ /**
29
+ * PascalCase with identifier guards: an empty result falls back to `Stub`,
30
+ * a digit-leading result gains a `Stub` prefix so the name is a valid TS
31
+ * identifier start. This is the form stub emission has always used (#242),
32
+ * and what every other renderer of the same name must match.
33
+ */
34
+ export declare function toPascalCaseIdentifier(stem: string): string;
35
+ //# sourceMappingURL=name-normalizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name-normalizer.d.ts","sourceRoot":"","sources":["../../../src/domain/services/name-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK3D"}