@hexagen-monaco/sync 0.9.0 → 0.12.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 (199) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +58 -10
  3. package/dist/application/ports/out/file-system.port.d.ts.map +1 -1
  4. package/dist/application/ports/out/index.d.ts +1 -2
  5. package/dist/application/ports/out/index.d.ts.map +1 -1
  6. package/dist/application/ports/out/symbol-reference-index.port.d.ts +74 -0
  7. package/dist/application/ports/out/symbol-reference-index.port.d.ts.map +1 -0
  8. package/dist/application/use-cases/get-architecture-graph.use-case.d.ts +1 -1
  9. package/dist/application/use-cases/get-architecture-graph.use-case.d.ts.map +1 -1
  10. package/dist/application/use-cases/get-linter-report.use-case.d.ts +1 -1
  11. package/dist/application/use-cases/get-linter-report.use-case.d.ts.map +1 -1
  12. package/dist/application/use-cases/index.d.ts +0 -1
  13. package/dist/application/use-cases/index.d.ts.map +1 -1
  14. package/dist/application/use-cases/migrate-manifest.use-case.d.ts +4 -1
  15. package/dist/application/use-cases/migrate-manifest.use-case.d.ts.map +1 -1
  16. package/dist/application/use-cases/refactoring-impact.use-case.d.ts +25 -6
  17. package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -1
  18. package/dist/arch-linter-bin.d.ts +19 -3
  19. package/dist/arch-linter-bin.d.ts.map +1 -1
  20. package/dist/cli.js +3449 -5375
  21. package/dist/cli.js.map +1 -1
  22. package/dist/commands/add/validate.d.ts.map +1 -1
  23. package/dist/commands/adopt/index.d.ts +24 -0
  24. package/dist/commands/adopt/index.d.ts.map +1 -0
  25. package/dist/commands/bootstrap/index.d.ts +62 -0
  26. package/dist/commands/bootstrap/index.d.ts.map +1 -0
  27. package/dist/commands/manifest/migrate.d.ts.map +1 -1
  28. package/dist/commands/report/baseline-read.d.ts +12 -0
  29. package/dist/commands/report/baseline-read.d.ts.map +1 -0
  30. package/dist/commands/report/build-report.d.ts +13 -0
  31. package/dist/commands/report/build-report.d.ts.map +1 -0
  32. package/dist/commands/report/context-map.d.ts +9 -0
  33. package/dist/commands/report/context-map.d.ts.map +1 -0
  34. package/dist/commands/report/exec-git.d.ts +3 -0
  35. package/dist/commands/report/exec-git.d.ts.map +1 -0
  36. package/dist/commands/report/handoff.d.ts +3 -0
  37. package/dist/commands/report/handoff.d.ts.map +1 -0
  38. package/dist/commands/report/index.d.ts +14 -0
  39. package/dist/commands/report/index.d.ts.map +1 -0
  40. package/dist/commands/report/lint-collect.d.ts +4 -0
  41. package/dist/commands/report/lint-collect.d.ts.map +1 -0
  42. package/dist/commands/report/ratchet-trend.d.ts +3 -0
  43. package/dist/commands/report/ratchet-trend.d.ts.map +1 -0
  44. package/dist/commands/report/render-html.d.ts +3 -0
  45. package/dist/commands/report/render-html.d.ts.map +1 -0
  46. package/dist/commands/report/render-markdown.d.ts +3 -0
  47. package/dist/commands/report/render-markdown.d.ts.map +1 -0
  48. package/dist/commands/report/types.d.ts +52 -0
  49. package/dist/commands/report/types.d.ts.map +1 -0
  50. package/dist/commands/report/zip-store.d.ts +10 -0
  51. package/dist/commands/report/zip-store.d.ts.map +1 -0
  52. package/dist/commands/scan/index.d.ts +185 -0
  53. package/dist/commands/scan/index.d.ts.map +1 -0
  54. package/dist/commands/shared/detect-workspaces.d.ts +12 -0
  55. package/dist/commands/shared/detect-workspaces.d.ts.map +1 -0
  56. package/dist/commands/shared/index.d.ts +2 -1
  57. package/dist/commands/shared/index.d.ts.map +1 -1
  58. package/dist/commands/shared/lstat-exists.d.ts +7 -0
  59. package/dist/commands/shared/lstat-exists.d.ts.map +1 -0
  60. package/dist/commands/shared/project-root.d.ts +7 -0
  61. package/dist/commands/shared/project-root.d.ts.map +1 -1
  62. package/dist/domain/services/emission-plan-builder.d.ts +14 -3
  63. package/dist/domain/services/emission-plan-builder.d.ts.map +1 -1
  64. package/dist/domain/services/impact-analysis.types.d.ts +6 -1
  65. package/dist/domain/services/impact-analysis.types.d.ts.map +1 -1
  66. package/dist/domain/services/impact-request-validator.d.ts.map +1 -1
  67. package/dist/domain/services/index.d.ts +2 -0
  68. package/dist/domain/services/index.d.ts.map +1 -1
  69. package/dist/domain/services/layer-classifier.d.ts +53 -2
  70. package/dist/domain/services/layer-classifier.d.ts.map +1 -1
  71. package/dist/domain/services/layer-dir-resolver.d.ts +82 -0
  72. package/dist/domain/services/layer-dir-resolver.d.ts.map +1 -0
  73. package/dist/domain/services/name-normalizer.d.ts +35 -0
  74. package/dist/domain/services/name-normalizer.d.ts.map +1 -0
  75. package/dist/domain/services/stub-template-resolver.d.ts +33 -2
  76. package/dist/domain/services/stub-template-resolver.d.ts.map +1 -1
  77. package/dist/generators/apps-framework-templates.d.ts.map +1 -1
  78. package/dist/generators/architecture-file-templates.d.ts +2 -2
  79. package/dist/generators/architecture-file-templates.d.ts.map +1 -1
  80. package/dist/generators/architecture-files.d.ts.map +1 -1
  81. package/dist/generators/cross-context.d.ts.map +1 -1
  82. package/dist/generators/eslint.d.ts.map +1 -1
  83. package/dist/generators/layer-folders.d.ts +9 -1
  84. package/dist/generators/layer-folders.d.ts.map +1 -1
  85. package/dist/generators/package-json.d.ts.map +1 -1
  86. package/dist/generators/package-src-index.d.ts +5 -0
  87. package/dist/generators/package-src-index.d.ts.map +1 -0
  88. package/dist/generators/root-file-templates.d.ts +1 -1
  89. package/dist/generators/root-file-templates.d.ts.map +1 -1
  90. package/dist/generators/root-files.d.ts.map +1 -1
  91. package/dist/generators/stubs.d.ts +4 -1
  92. package/dist/generators/stubs.d.ts.map +1 -1
  93. package/dist/index.d.ts +23 -3
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/index.js +633 -4727
  96. package/dist/index.js.map +1 -1
  97. package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -1
  98. package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -1
  99. package/dist/infrastructure/adapters/index.d.ts +1 -0
  100. package/dist/infrastructure/adapters/index.d.ts.map +1 -1
  101. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts +47 -0
  102. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts.map +1 -0
  103. package/dist/infrastructure/config/layout-schema.d.ts +29 -0
  104. package/dist/infrastructure/config/layout-schema.d.ts.map +1 -0
  105. package/dist/infrastructure/config/load-layout-config.d.ts +8 -0
  106. package/dist/infrastructure/config/load-layout-config.d.ts.map +1 -0
  107. package/dist/linter.d.ts +24 -0
  108. package/dist/linter.d.ts.map +1 -1
  109. package/dist/manifest-service.d.ts.map +1 -1
  110. package/dist/refactoring/impact-analyzer.d.ts +7 -2
  111. package/dist/refactoring/impact-analyzer.d.ts.map +1 -1
  112. package/dist/sync-engine.d.ts.map +1 -1
  113. package/dist/templates/adobe-creative-production/files/src/domain/ports/out/creative-production.port.ts +2 -4
  114. package/dist/templates/adobe-creative-production/files/src/infrastructure/adobe/creative-production/creative-production.adapter.ts +8 -7
  115. package/dist/templates/adobe-express/files/src/domain/ports/out/express.port.ts +2 -4
  116. package/dist/templates/adobe-express/files/src/infrastructure/adobe/express/express.adapter.ts +9 -8
  117. package/dist/templates/adobe-firefly-composite/files/src/domain/ports/out/composite.port.ts +2 -4
  118. package/dist/templates/adobe-firefly-composite/files/src/infrastructure/adobe/composite/composite.adapter.ts +12 -12
  119. package/dist/templates/adobe-firefly-content-tagging/files/src/domain/ports/out/content-tagging.port.ts +2 -4
  120. package/dist/templates/adobe-firefly-content-tagging/files/src/infrastructure/adobe/content-tagging/content-tagging.adapter.ts +6 -5
  121. package/dist/templates/adobe-firefly-core/README.md +1 -1
  122. package/dist/templates/adobe-firefly-core/files/src/domain/errors/creative-service-error.ts +62 -0
  123. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/errors/to-creative-service-error.ts +45 -0
  124. package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/index.ts +9 -0
  125. package/dist/templates/adobe-firefly-core/manifest.json +2 -0
  126. package/dist/templates/adobe-firefly-custom-models/files/src/domain/ports/out/custom-model.port.ts +5 -7
  127. package/dist/templates/adobe-firefly-custom-models/files/src/infrastructure/adobe/custom-models/firefly-custom-model.adapter.ts +16 -15
  128. package/dist/templates/adobe-firefly-generate/files/src/domain/ports/out/image-generation.port.ts +6 -8
  129. package/dist/templates/adobe-firefly-generate/files/src/infrastructure/adobe/generate/firefly-generate.adapter.ts +14 -16
  130. package/dist/templates/adobe-firefly-media/files/src/domain/ports/out/media-generation.port.ts +6 -8
  131. package/dist/templates/adobe-firefly-media/files/src/infrastructure/adobe/media/firefly-media.adapter.ts +11 -10
  132. package/dist/templates/adobe-firefly-upscale/files/src/domain/ports/out/upscale.port.ts +2 -4
  133. package/dist/templates/adobe-firefly-upscale/files/src/infrastructure/adobe/upscale/upscale.adapter.ts +13 -11
  134. package/dist/templates/adobe-illustrator/files/src/domain/ports/out/illustrator.port.ts +4 -6
  135. package/dist/templates/adobe-illustrator/files/src/infrastructure/adobe/illustrator/illustrator.adapter.ts +17 -15
  136. package/dist/templates/adobe-indesign/files/src/domain/ports/out/indesign.port.ts +4 -6
  137. package/dist/templates/adobe-indesign/files/src/infrastructure/adobe/indesign/indesign.adapter.ts +10 -9
  138. package/dist/templates/adobe-lightroom/files/src/domain/ports/out/lightroom.port.ts +4 -6
  139. package/dist/templates/adobe-lightroom/files/src/infrastructure/adobe/lightroom/lightroom.adapter.ts +10 -9
  140. package/dist/templates/adobe-photoshop/files/src/domain/ports/out/photoshop-automation.port.ts +6 -8
  141. package/dist/templates/adobe-photoshop/files/src/infrastructure/adobe/photoshop/photoshop-automation.adapter.ts +12 -11
  142. package/dist/templates/adobe-substance-3d/files/src/domain/ports/out/substance-3d.port.ts +4 -6
  143. package/dist/templates/adobe-substance-3d/files/src/infrastructure/adobe/substance-3d/substance-3d.adapter.ts +10 -9
  144. package/dist/templates/agents-md/files/AGENTS.md +5 -5
  145. package/dist/templates/bedrock-agentcore-runtime/files/src/application/ports/agent-runtime.port.ts +25 -0
  146. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/invocations.handler.ts +1 -1
  147. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/server.ts +1 -1
  148. package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/payload.ts +5 -22
  149. package/dist/templates/bedrock-agentcore-runtime/manifest.json +1 -0
  150. package/dist/templates/ci-github-actions/README.md +13 -7
  151. package/dist/templates/ci-github-actions/files/.github/dependabot.yml +9 -2
  152. package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +18 -14
  153. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +12 -6
  154. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +14 -8
  155. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +29 -8
  156. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vps.yml +14 -8
  157. package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +34 -18
  158. package/dist/templates/ci-github-actions/manifest.json +2 -2
  159. package/dist/templates/docker/README.md +3 -0
  160. package/dist/templates/docker/files/.github/workflows/docker-build.yml +15 -6
  161. package/dist/templates/docker/manifest.json +1 -0
  162. package/dist/templates/llm-adapter/files/src/domain/errors/llm-error.ts +35 -0
  163. package/dist/templates/llm-adapter/files/src/domain/ports/out/llm-client.port.ts +1 -1
  164. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/anthropic-llm-client.adapter.ts +1 -1
  165. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/azure-openai-llm-client.adapter.ts +1 -1
  166. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/ollama-llm-client.adapter.ts +1 -1
  167. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/openai-llm-client.adapter.ts +1 -1
  168. package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/xai-llm-client.adapter.ts +1 -1
  169. package/dist/templates/llm-adapter/files/src/infrastructure/llm/errors/llm-errors.ts +9 -23
  170. package/dist/templates/llm-adapter/files/src/infrastructure/llm/index.ts +4 -3
  171. package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/llm-router.ts +1 -1
  172. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/retry.ts +1 -1
  173. package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/structured-output.ts +1 -1
  174. package/dist/templates/llm-adapter/manifest.json +1 -0
  175. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-llm-client.adapter.ts +1 -1
  176. package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/errors/bedrock-errors.ts +1 -1
  177. package/dist/templates/mcp-server/README.md +1 -1
  178. package/dist/templates/mcp-server-http/README.md +1 -1
  179. package/dist/types/index.d.ts +20 -1
  180. package/dist/types/index.d.ts.map +1 -1
  181. package/package.json +6 -5
  182. package/dist/application/ports/out/project-configuration-read.port.d.ts +0 -9
  183. package/dist/application/ports/out/project-configuration-read.port.d.ts.map +0 -1
  184. package/dist/application/ports/out/symbol-reference-provider.port.d.ts +0 -10
  185. package/dist/application/ports/out/symbol-reference-provider.port.d.ts.map +0 -1
  186. package/dist/application/use-cases/get-manifest-resource.use-case.d.ts +0 -8
  187. package/dist/application/use-cases/get-manifest-resource.use-case.d.ts.map +0 -1
  188. package/dist/generators/validators/index.d.ts +0 -11
  189. package/dist/generators/validators/index.d.ts.map +0 -1
  190. package/dist/generators/validators/validate-dependencies.d.ts +0 -7
  191. package/dist/generators/validators/validate-dependencies.d.ts.map +0 -1
  192. package/dist/generators/validators/validate-manifest-sync.d.ts +0 -5
  193. package/dist/generators/validators/validate-manifest-sync.d.ts.map +0 -1
  194. package/dist/generators/validators/validate-port-adapter.d.ts +0 -5
  195. package/dist/generators/validators/validate-port-adapter.d.ts.map +0 -1
  196. package/dist/generators/validators/validation-types.d.ts +0 -20
  197. package/dist/generators/validators/validation-types.d.ts.map +0 -1
  198. package/dist/generators/validators.d.ts +0 -7
  199. 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;AAI9D,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,CAiErC;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,62 @@
1
+ /**
2
+ * `hexagen bootstrap` is ratification-driven. It writes a starting
3
+ * `manifest.yaml` + `layout.yaml` + empty baseline from questions, `--yes`,
4
+ * `--answers`, or `--stdin-json`. It does **not** scan the TypeScript import
5
+ * graph and does **not** auto-fill `depends_on`. Callers who need declared
6
+ * edges must supply `contexts[].dependsOn` in an answers file. The retired
7
+ * Phase-0 module (`commands/bootstrap.ts`) inferred edges via ts-morph; that
8
+ * path is gone on purpose, not silently.
9
+ */
10
+ import { Command } from "commander";
11
+ import { type Result } from "../../domain/result.js";
12
+ export interface BootstrapContextAnswer {
13
+ name: string;
14
+ include: boolean;
15
+ type?: string;
16
+ root: string;
17
+ description?: string;
18
+ dependsOn?: string[];
19
+ }
20
+ export interface BootstrapAnswers {
21
+ system?: string;
22
+ scope?: string;
23
+ architecture?: string;
24
+ contexts: BootstrapContextAnswer[];
25
+ }
26
+ export interface BootstrapOptions {
27
+ root: string;
28
+ yes?: boolean;
29
+ answersPath?: string;
30
+ stdinJson?: boolean;
31
+ llm?: boolean;
32
+ dryRun?: boolean;
33
+ force?: boolean;
34
+ /**
35
+ * When true, do not write `layout.yaml` and do not treat an existing layout
36
+ * as a blocker. Used by `hexagen scan`, which owns layout via adopt.
37
+ */
38
+ skipLayout?: boolean;
39
+ }
40
+ export interface BootstrapResult {
41
+ files: string[];
42
+ wrote: boolean;
43
+ }
44
+ /** ts-morph globs reject native Windows separators. Folded from the retired Phase-0 module. */
45
+ export declare function toTsMorphGlob(absPath: string): string;
46
+ export declare function resolveWorkspaceSpecifier(specifier: string, packageNames: Iterable<string>): string | undefined;
47
+ export declare function deriveSystemAndScope(pkgName: string | undefined): {
48
+ system: string;
49
+ scope: string;
50
+ };
51
+ export declare function runBootstrap(options: BootstrapOptions): Promise<Result<BootstrapResult, Error>>;
52
+ export declare function bootstrapCommand(options: {
53
+ root?: string;
54
+ yes?: boolean;
55
+ answers?: string;
56
+ stdinJson?: boolean;
57
+ llm?: boolean;
58
+ dryRun?: boolean;
59
+ force?: boolean;
60
+ }): Promise<void>;
61
+ export declare const bootstrapCommander: Command;
62
+ //# 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;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAU9D,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;IAChB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB;AAQD,+FAA+F;AAC/F,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,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAiBA;AAsJD,wBAAsB,YAAY,CAChC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CA6FzC;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/commands/manifest/migrate.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,wBAAwB,SAuEjC,CAAC"}
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/commands/manifest/migrate.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,wBAAwB,SAyEjC,CAAC"}
@@ -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,185 @@
1
+ import { Command } from "commander";
2
+ import { type Result } from "../../domain/result.js";
3
+ import type { DriftSummary } from "../report/types.js";
4
+ /**
5
+ * Findings carried by the scan envelope.
6
+ *
7
+ * Deliberately an ALIAS of the report package's `DriftSummary` rather than a
8
+ * fresh interface: `parseLintJson` (commands/report/lint-collect.ts) is this
9
+ * repo's one reader of the `hexagen-lint --json` contract and already produces
10
+ * exactly this shape. A second shape here would make two producers of one
11
+ * contract -- the drift that kept `reportMarkdown` null for a release.
12
+ *
13
+ * `collected: false` (always with a `failureReason`) is how "the findings
14
+ * could not be read" is stated. Four empty arrays with `collected: true` mean
15
+ * a genuinely clean tree. The two must never be collapsed: that is the same
16
+ * "reported success while producing nothing" defect this command has already
17
+ * been fixed for twice.
18
+ */
19
+ export type ScanFindings = DriftSummary;
20
+ /**
21
+ * What the lint seam reports back: the exit code that drives the scan's own
22
+ * exit status, plus the findings read from `hexagen-lint --json`.
23
+ *
24
+ * A bare `number` remains accepted by {@link ScanLintRunner} so callers and
25
+ * injected test doubles written against the pre-BF-0.3 seam keep compiling.
26
+ * Such a runner is normalised to `collected: false`, never to an empty-but-
27
+ * clean summary -- it genuinely reported no findings either way.
28
+ */
29
+ export interface ScanLintOutcome {
30
+ exitCode: number;
31
+ findings: ScanFindings;
32
+ /**
33
+ * Files the linter actually walked, read from its `--json` payload.
34
+ *
35
+ * Null when the linter could not run or its output could not be parsed --
36
+ * never a silent 0, which would read as "scanned nothing and passed", the
37
+ * exact false-green this codebase's abortIfVacuous exists to prevent.
38
+ */
39
+ filesScanned: number | null;
40
+ }
41
+ export interface ScanLintRunner {
42
+ (root: string): number | ScanLintOutcome | Promise<number | ScanLintOutcome>;
43
+ }
44
+ export interface ScanReportRunner {
45
+ (options: {
46
+ cwd: string;
47
+ format?: "html" | "md" | "both";
48
+ handoff?: boolean;
49
+ handoffOut?: string;
50
+ }): Promise<{
51
+ markdownPath: string;
52
+ htmlPath: string;
53
+ handoffPath?: string;
54
+ }>;
55
+ }
56
+ export interface ScanOptions {
57
+ root: string;
58
+ yes?: boolean;
59
+ dryRun?: boolean;
60
+ force?: boolean;
61
+ skipBootstrap?: boolean;
62
+ noReport?: boolean;
63
+ /**
64
+ * Also write the Tier-A handoff zip (`hexagen-handoff.zip`).
65
+ *
66
+ * Not a second implementation: it forwards to `reportCommand`, which already
67
+ * owns `buildHandoffZip` and therefore owns the entry names the web ingest
68
+ * route matches on. Duplicating the packing here is exactly the drift that
69
+ * made `reportMarkdown` always null before.
70
+ */
71
+ handoff?: boolean;
72
+ /** Handoff zip path. Relative paths resolve against `root`. */
73
+ handoffOut?: string;
74
+ /** Test / composition seam. Defaults to spawning hexagen-lint --root. */
75
+ lint?: ScanLintRunner;
76
+ /** Test / composition seam. Defaults to reportCommand. */
77
+ report?: ScanReportRunner;
78
+ }
79
+ export interface ScanResult {
80
+ layoutPath: string;
81
+ manifestPath: string;
82
+ wrote: boolean;
83
+ lintExitCode: number;
84
+ reportPaths: string[];
85
+ /**
86
+ * Absolute path of the handoff zip, present only when `--handoff` was asked
87
+ * for and the report actually ran. Kept OUT of `reportPaths`: that list is
88
+ * consumed as "the report documents" (`.md`/`.html`), and a zip in it would
89
+ * be read as one.
90
+ */
91
+ handoffPath?: string;
92
+ nextSteps: string[];
93
+ /**
94
+ * Machine-readable summary for non-human consumers (the web scan adapter).
95
+ *
96
+ * Emitted by `scanCommand` as the FINAL stdout line, after the human
97
+ * `nextSteps`. That placement is the repo's existing convention for mixing
98
+ * both on one stream -- `parseLintJson` reads `hexagen-lint --json` the same
99
+ * way, taking the last trimmed line that starts with `{`.
100
+ */
101
+ envelope: ScanEnvelopePayload;
102
+ }
103
+ /**
104
+ * The scan envelope. Field names are the contract the web adapter already
105
+ * parses; `schemaVersion` comes from @hexagen/shared so producer and consumer
106
+ * cannot drift on it independently.
107
+ */
108
+ export interface ScanEnvelopePayload {
109
+ schemaVersion: string;
110
+ layout: string | null;
111
+ /**
112
+ * The count of files the linter walked, or null when it could not run.
113
+ *
114
+ * The history matters, because the obvious reading of the CLI is wrong:
115
+ * `hexagen-lint` prints `Files scanned: N` through `logger.info`, and its
116
+ * logger is built as `createConsoleLogger(process.argv.includes("--json"))`
117
+ * -- i.e. `--json` makes it QUIET. So the findings and the count are not
118
+ * both obtainable from one linter run. Verified against the built linter
119
+ * both ways: with `--json`, stdout is exactly one line (the findings JSON)
120
+ * and the count appears nowhere; without it, `Files scanned: 1946` is on
121
+ * stdout and there is no JSON at all.
122
+ *
123
+ * RESOLVED: `tools/arch-linter/src/cli.ts` now carries `filesScanned` in
124
+ * the `--json` payload, so a single `--json` run yields both the findings
125
+ * and the count. Left null only when the linter could not run or its
126
+ * output could not be parsed -- never as a silent default.
127
+ */
128
+ filesScanned: number | null;
129
+ reportMarkdown: string | null;
130
+ error: string | null;
131
+ /**
132
+ * Findings from `hexagen-lint --json`, always present.
133
+ *
134
+ * Additive: the shared `ScanEnvelope` schema is `.passthrough()`, so an
135
+ * older consumer preserves this field without understanding it and no schema
136
+ * version bump is needed.
137
+ *
138
+ * The linter also emits `introduced` and `baselineGrowth`; both are
139
+ * deliberately dropped. They are populated only under `--pr-diff`, which
140
+ * requires a base branch to diff against -- an imported brownfield tree has
141
+ * none, so carrying them would ship two permanently empty arrays that read
142
+ * as "nothing was introduced" rather than "the question does not apply".
143
+ */
144
+ findings: ScanFindings;
145
+ }
146
+ export declare function collectFilesScanned(stdout: string): number | null;
147
+ export declare function collectLintFindings(stdout: string): ScanFindings;
148
+ /**
149
+ * Spawn the installed `hexagen-lint` bin against `root` and return both its
150
+ * exit code and its findings. Missing bin, spawn failure, signal-kill, timeout
151
+ * and an over-long output are all "could not run" (exit 2) — never a silent
152
+ * pass. Vacuous scans reuse the linter's own exit 2.
153
+ *
154
+ * `--json` is what makes the findings readable at all, and it is why stdout is
155
+ * PIPED where it used to be inherited. Two consequences worth stating:
156
+ *
157
+ * - stderr stays INHERITED, so the user still sees the violation text live in
158
+ * their terminal: every violation line is `logger.error`, i.e. stderr.
159
+ * - the linter's console logger is constructed quiet under `--json`, so its
160
+ * informational stdout (including `Files scanned: N`) is not emitted at all.
161
+ * That is why the count needed the linter change this packet makes; see
162
+ * `ScanEnvelopePayload.filesScanned`.
163
+ *
164
+ * Capturing stdout also keeps the linter's JSON line OFF the scan's own
165
+ * stdout, where a stray `{`-line would compete with the envelope the web
166
+ * adapter reads as "the last line starting with `{`".
167
+ *
168
+ * Posix-only (no shell). A Windows `.cmd` shim is not launched; `shell: true`
169
+ * would reintroduce the quoting bug other execFile call sites exist to avoid.
170
+ * CI is Ubuntu — win32 is unsupported here rather than half-supported.
171
+ */
172
+ export declare function invokeHexagenLint(root: string): ScanLintOutcome;
173
+ export declare function runScan(options: ScanOptions): Promise<Result<ScanResult, Error>>;
174
+ export declare function scanCommand(options: {
175
+ root?: string;
176
+ yes?: boolean;
177
+ dryRun?: boolean;
178
+ force?: boolean;
179
+ skipBootstrap?: boolean;
180
+ noReport?: boolean;
181
+ handoff?: boolean;
182
+ handoffOut?: string;
183
+ }): Promise<void>;
184
+ export declare const scanCommander: Command;
185
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/scan/index.ts"],"names":[],"mappings":"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"}
@@ -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,11 +5,12 @@
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";
12
12
  export * from "./validation.js";
13
13
  export * from "./error-formatter.js";
14
14
  export { resolveTemplatesDir } from "./template-engine-path.js";
15
+ export { lstatExists } from "./lstat-exists.js";
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type Result } from "../../domain/result.js";
2
+ /**
3
+ * Existence via lstat: a dangling or live symlink is present.
4
+ * Only ENOENT is absence; EACCES and other errors propagate.
5
+ */
6
+ export declare function lstatExists(target: string): Promise<Result<boolean, Error>>;
7
+ //# sourceMappingURL=lstat-exists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lstat-exists.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/lstat-exists.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAQjC"}
@@ -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"}