@hexagen-monaco/sync 0.11.0 → 0.12.1

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 (42) hide show
  1. package/LICENSE +8 -5
  2. package/README.md +2 -2
  3. package/dist/application/ports/out/file-system.port.d.ts.map +1 -1
  4. package/dist/application/ports/out/symbol-reference-index.port.d.ts +9 -9
  5. package/dist/application/ports/out/symbol-reference-index.port.d.ts.map +1 -1
  6. package/dist/application/use-cases/migrate-manifest.use-case.d.ts +4 -1
  7. package/dist/application/use-cases/migrate-manifest.use-case.d.ts.map +1 -1
  8. package/dist/application/use-cases/refactoring-impact.use-case.d.ts +6 -5
  9. package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -1
  10. package/dist/cli.js +893 -360
  11. package/dist/cli.js.map +1 -1
  12. package/dist/commands/adopt/index.d.ts.map +1 -1
  13. package/dist/commands/bootstrap/index.d.ts +21 -0
  14. package/dist/commands/bootstrap/index.d.ts.map +1 -1
  15. package/dist/commands/manifest/migrate.d.ts.map +1 -1
  16. package/dist/commands/scan/index.d.ts +185 -0
  17. package/dist/commands/scan/index.d.ts.map +1 -0
  18. package/dist/commands/shared/index.d.ts +1 -0
  19. package/dist/commands/shared/index.d.ts.map +1 -1
  20. package/dist/commands/shared/lstat-exists.d.ts +7 -0
  21. package/dist/commands/shared/lstat-exists.d.ts.map +1 -0
  22. package/dist/domain/services/impact-request-validator.d.ts.map +1 -1
  23. package/dist/domain/services/layer-dir-resolver.d.ts +20 -1
  24. package/dist/domain/services/layer-dir-resolver.d.ts.map +1 -1
  25. package/dist/fs-utils.d.ts.map +1 -1
  26. package/dist/generators/barrels/recursive.d.ts.map +1 -1
  27. package/dist/generators/layer-folders.d.ts +9 -1
  28. package/dist/generators/layer-folders.d.ts.map +1 -1
  29. package/dist/generators/package-src-index.d.ts +5 -0
  30. package/dist/generators/package-src-index.d.ts.map +1 -0
  31. package/dist/index.js +110 -50
  32. package/dist/index.js.map +1 -1
  33. package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -1
  34. package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -1
  35. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts +1 -1
  36. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts.map +1 -1
  37. package/dist/sync-engine.d.ts.map +1 -1
  38. package/dist/types/index.d.ts +20 -1
  39. package/dist/types/index.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/commands/bootstrap.d.ts +0 -30
  42. package/dist/commands/bootstrap.d.ts.map +0 -1
@@ -1 +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"}
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"}
@@ -1,3 +1,12 @@
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
+ */
1
10
  import { Command } from "commander";
2
11
  import { type Result } from "../../domain/result.js";
3
12
  export interface BootstrapContextAnswer {
@@ -22,11 +31,23 @@ export interface BootstrapOptions {
22
31
  llm?: boolean;
23
32
  dryRun?: boolean;
24
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;
25
39
  }
26
40
  export interface BootstrapResult {
27
41
  files: string[];
28
42
  wrote: boolean;
29
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
+ };
30
51
  export declare function runBootstrap(options: BootstrapOptions): Promise<Result<BootstrapResult, Error>>;
31
52
  export declare function bootstrapCommand(options: {
32
53
  root?: string;
@@ -1 +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,MAA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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,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":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAQ9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC;AAExC;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC;IACvB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,OAAO,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;QAChC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC;QACV,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;CACJ;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,GAAG,YAAY,CAiBhE;AAWD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAgF/D;AA2DD,wBAAsB,OAAO,CAC3B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CA4LpC;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkDhB;AAED,eAAO,MAAM,aAAa,SA8CvB,CAAC"}
@@ -12,4 +12,5 @@ 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,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
+ {"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 +1 @@
1
- {"version":3,"file":"impact-request-validator.d.ts","sourceRoot":"","sources":["../../../src/domain/services/impact-request-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,gBAAgB,CA8BlB;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,eAAe,EACrB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,gBAAgB,CAUlB;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GACzF,gBAAgB,CAgBlB"}
1
+ {"version":3,"file":"impact-request-validator.d.ts","sourceRoot":"","sources":["../../../src/domain/services/impact-request-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,gBAAgB,CAuClB;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,eAAe,EACrB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,gBAAgB,CAalB;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACvC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,gBAAgB,CAgBnB"}
@@ -24,7 +24,7 @@
24
24
  * bug was exactly that split. Known-site spellings normalize to the
25
25
  * kebab-case convention; unknown custom subfolders pass through verbatim.
26
26
  */
27
- import type { LayerConfig } from "../../types/manifest.js";
27
+ import type { BoundedContextLayers, LayerConfig } from "../../types/manifest.js";
28
28
  export type LayerKind = "domain" | "application" | "infrastructure";
29
29
  export type LayersConfig = Record<string, LayerConfig>;
30
30
  /**
@@ -60,4 +60,23 @@ export declare function resolveLayerDir(layers: LayersConfig | undefined, layer:
60
60
  * `"application/ports/in"`, ...): split into (layer, site) and resolve.
61
61
  */
62
62
  export declare function resolveEmissionDir(layers: LayersConfig | undefined, site: `${LayerKind}/${string}`): string;
63
+ /**
64
+ * Wave C 6.7(a) / HEX-025 / ADR-0050 Decision 1: a configured layer is
65
+ * *used* only when the bounded-context YAML lists real content
66
+ * (entities / ports / adapters / …) for it. Empty objects, empty arrays,
67
+ * a missing `layers:` block, and unknown layer names are unused — the
68
+ * scaffold must not emit those folders (or plan them as created).
69
+ *
70
+ * Fail-closed: no context layers means nothing is used. A forgotten
71
+ * caller must not fall back to "mkdir every declared layer" — that was
72
+ * the twice-bitten trap on foreign trees.
73
+ *
74
+ * Schema coupling: the keys below are the declared-name lists on
75
+ * `BoundedContextLayers` (`src/types/manifest/layers.ts`). Adding a new
76
+ * list field (e.g. `domain_events`) requires updating THAT type and this
77
+ * predicate together — otherwise a layer that only has the new field is
78
+ * treated as unused and is not emitted. That fail-closed miss is
79
+ * intentional; do not replace this with "any non-empty value".
80
+ */
81
+ export declare function layerDeclaresContent(layerName: string, contextLayers: BoundedContextLayers | undefined): boolean;
63
82
  //# sourceMappingURL=layer-dir-resolver.d.ts.map
@@ -1 +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,y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AE,OAAe,GAClC,OAAO,CAAC,WAAW,CAAC,CAQtB"}
1
+ {"version":3,"file":"fs-utils.d.ts","sourceRoot":"","sources":["../src/fs-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAYhD,eAAO,MAAM,cAAc,aAiBzB,CAAC;AASH;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAc7E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAIvE;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,EACvB,kBAAkB,GAAE,OAAe,GAClC,OAAO,CAAC,WAAW,CAAC,CAsHtB;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,UAAU,EAClB,kBAAkB,GAAE,OAAe,GAClC,OAAO,CAAC,WAAW,CAAC,CAQtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"recursive.d.ts","sourceRoot":"","sources":["../../../src/generators/barrels/recursive.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAGL,KAAK,eAAe,EAC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EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAsI1B"}
@@ -1,5 +1,6 @@
1
1
  import { SyncConfig } from "../config.js";
2
2
  import { type GeneratorResult } from "../results.js";
3
+ import type { BoundedContextLayers } from "../types/manifest.js";
3
4
  interface LayerConfig {
4
5
  folder: string;
5
6
  subfolders?: string[];
@@ -27,7 +28,14 @@ interface LayerConfig {
27
28
  * creates an `export {};` barrel in an empty layer directory and migrates the
28
29
  * legacy "No exports yet" content). Same single-writer doctrine as
29
30
  * cross-context.
31
+ *
32
+ * Wave C 6.7(a) / HEX-025 / ADR-0050 Decision 1: a configured layer is
33
+ * emitted only when `contextLayers` lists real content for it. Unused
34
+ * layers (missing `layers:`, empty objects, empty arrays) are not created
35
+ * and not planned as created — on Hexagen self-regen and on foreign trees
36
+ * alike. Fail-closed when `contextLayers` is omitted. Used-layer
37
+ * `.gitkeep` / leaf-tracking is unchanged.
30
38
  */
31
- export declare function ensureLayerFolders(moduleDir: string, layers: Record<string, LayerConfig>, config: SyncConfig): Promise<GeneratorResult>;
39
+ export declare function ensureLayerFolders(moduleDir: string, layers: Record<string, LayerConfig>, config: SyncConfig, contextLayers?: BoundedContextLayers): Promise<GeneratorResult>;
32
40
  export {};
33
41
  //# sourceMappingURL=layer-folders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layer-folders.d.ts","sourceRoot":"","sources":["../../src/generators/layer-folders.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AASvB,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAgJD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACnC,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,eAAe,CAAC,CAkG1B"}
1
+ {"version":3,"file":"layer-folders.d.ts","sourceRoot":"","sources":["../../src/generators/layer-folders.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGjE,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAgJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACnC,MAAM,EAAE,UAAU,EAClB,aAAa,CAAC,EAAE,oBAAoB,GACnC,OAAO,CAAC,eAAe,CAAC,CA0G1B"}
@@ -0,0 +1,5 @@
1
+ import type { SyncConfig } from "../config.js";
2
+ import type { ReportRecorder } from "../domain/types.js";
3
+ import { type GeneratorResult } from "../results.js";
4
+ export declare function ensurePackageSrcIndex(moduleDir: string, config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
5
+ //# sourceMappingURL=package-src-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-src-index.d.ts","sourceRoot":"","sources":["../../src/generators/package-src-index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAmBvB,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA8B1B"}