@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.
- package/LICENSE +9 -0
- package/README.md +58 -10
- package/dist/application/ports/out/file-system.port.d.ts.map +1 -1
- package/dist/application/ports/out/index.d.ts +1 -2
- package/dist/application/ports/out/index.d.ts.map +1 -1
- package/dist/application/ports/out/symbol-reference-index.port.d.ts +74 -0
- package/dist/application/ports/out/symbol-reference-index.port.d.ts.map +1 -0
- package/dist/application/use-cases/get-architecture-graph.use-case.d.ts +1 -1
- package/dist/application/use-cases/get-architecture-graph.use-case.d.ts.map +1 -1
- package/dist/application/use-cases/get-linter-report.use-case.d.ts +1 -1
- package/dist/application/use-cases/get-linter-report.use-case.d.ts.map +1 -1
- package/dist/application/use-cases/index.d.ts +0 -1
- package/dist/application/use-cases/index.d.ts.map +1 -1
- package/dist/application/use-cases/migrate-manifest.use-case.d.ts +4 -1
- package/dist/application/use-cases/migrate-manifest.use-case.d.ts.map +1 -1
- package/dist/application/use-cases/refactoring-impact.use-case.d.ts +25 -6
- package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -1
- package/dist/arch-linter-bin.d.ts +19 -3
- package/dist/arch-linter-bin.d.ts.map +1 -1
- package/dist/cli.js +3449 -5375
- package/dist/cli.js.map +1 -1
- package/dist/commands/add/validate.d.ts.map +1 -1
- package/dist/commands/adopt/index.d.ts +24 -0
- package/dist/commands/adopt/index.d.ts.map +1 -0
- package/dist/commands/bootstrap/index.d.ts +62 -0
- package/dist/commands/bootstrap/index.d.ts.map +1 -0
- package/dist/commands/manifest/migrate.d.ts.map +1 -1
- package/dist/commands/report/baseline-read.d.ts +12 -0
- package/dist/commands/report/baseline-read.d.ts.map +1 -0
- package/dist/commands/report/build-report.d.ts +13 -0
- package/dist/commands/report/build-report.d.ts.map +1 -0
- package/dist/commands/report/context-map.d.ts +9 -0
- package/dist/commands/report/context-map.d.ts.map +1 -0
- package/dist/commands/report/exec-git.d.ts +3 -0
- package/dist/commands/report/exec-git.d.ts.map +1 -0
- package/dist/commands/report/handoff.d.ts +3 -0
- package/dist/commands/report/handoff.d.ts.map +1 -0
- package/dist/commands/report/index.d.ts +14 -0
- package/dist/commands/report/index.d.ts.map +1 -0
- package/dist/commands/report/lint-collect.d.ts +4 -0
- package/dist/commands/report/lint-collect.d.ts.map +1 -0
- package/dist/commands/report/ratchet-trend.d.ts +3 -0
- package/dist/commands/report/ratchet-trend.d.ts.map +1 -0
- package/dist/commands/report/render-html.d.ts +3 -0
- package/dist/commands/report/render-html.d.ts.map +1 -0
- package/dist/commands/report/render-markdown.d.ts +3 -0
- package/dist/commands/report/render-markdown.d.ts.map +1 -0
- package/dist/commands/report/types.d.ts +52 -0
- package/dist/commands/report/types.d.ts.map +1 -0
- package/dist/commands/report/zip-store.d.ts +10 -0
- package/dist/commands/report/zip-store.d.ts.map +1 -0
- package/dist/commands/scan/index.d.ts +185 -0
- package/dist/commands/scan/index.d.ts.map +1 -0
- package/dist/commands/shared/detect-workspaces.d.ts +12 -0
- package/dist/commands/shared/detect-workspaces.d.ts.map +1 -0
- package/dist/commands/shared/index.d.ts +2 -1
- package/dist/commands/shared/index.d.ts.map +1 -1
- package/dist/commands/shared/lstat-exists.d.ts +7 -0
- package/dist/commands/shared/lstat-exists.d.ts.map +1 -0
- package/dist/commands/shared/project-root.d.ts +7 -0
- package/dist/commands/shared/project-root.d.ts.map +1 -1
- package/dist/domain/services/emission-plan-builder.d.ts +14 -3
- package/dist/domain/services/emission-plan-builder.d.ts.map +1 -1
- package/dist/domain/services/impact-analysis.types.d.ts +6 -1
- package/dist/domain/services/impact-analysis.types.d.ts.map +1 -1
- package/dist/domain/services/impact-request-validator.d.ts.map +1 -1
- package/dist/domain/services/index.d.ts +2 -0
- package/dist/domain/services/index.d.ts.map +1 -1
- package/dist/domain/services/layer-classifier.d.ts +53 -2
- package/dist/domain/services/layer-classifier.d.ts.map +1 -1
- package/dist/domain/services/layer-dir-resolver.d.ts +82 -0
- package/dist/domain/services/layer-dir-resolver.d.ts.map +1 -0
- package/dist/domain/services/name-normalizer.d.ts +35 -0
- package/dist/domain/services/name-normalizer.d.ts.map +1 -0
- package/dist/domain/services/stub-template-resolver.d.ts +33 -2
- package/dist/domain/services/stub-template-resolver.d.ts.map +1 -1
- package/dist/generators/apps-framework-templates.d.ts.map +1 -1
- package/dist/generators/architecture-file-templates.d.ts +2 -2
- package/dist/generators/architecture-file-templates.d.ts.map +1 -1
- package/dist/generators/architecture-files.d.ts.map +1 -1
- package/dist/generators/cross-context.d.ts.map +1 -1
- package/dist/generators/eslint.d.ts.map +1 -1
- package/dist/generators/layer-folders.d.ts +9 -1
- package/dist/generators/layer-folders.d.ts.map +1 -1
- package/dist/generators/package-json.d.ts.map +1 -1
- package/dist/generators/package-src-index.d.ts +5 -0
- package/dist/generators/package-src-index.d.ts.map +1 -0
- package/dist/generators/root-file-templates.d.ts +1 -1
- package/dist/generators/root-file-templates.d.ts.map +1 -1
- package/dist/generators/root-files.d.ts.map +1 -1
- package/dist/generators/stubs.d.ts +4 -1
- package/dist/generators/stubs.d.ts.map +1 -1
- package/dist/index.d.ts +23 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +633 -4727
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -1
- package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -1
- package/dist/infrastructure/adapters/index.d.ts +1 -0
- package/dist/infrastructure/adapters/index.d.ts.map +1 -1
- package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts +47 -0
- package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts.map +1 -0
- package/dist/infrastructure/config/layout-schema.d.ts +29 -0
- package/dist/infrastructure/config/layout-schema.d.ts.map +1 -0
- package/dist/infrastructure/config/load-layout-config.d.ts +8 -0
- package/dist/infrastructure/config/load-layout-config.d.ts.map +1 -0
- package/dist/linter.d.ts +24 -0
- package/dist/linter.d.ts.map +1 -1
- package/dist/manifest-service.d.ts.map +1 -1
- package/dist/refactoring/impact-analyzer.d.ts +7 -2
- package/dist/refactoring/impact-analyzer.d.ts.map +1 -1
- package/dist/sync-engine.d.ts.map +1 -1
- package/dist/templates/adobe-creative-production/files/src/domain/ports/out/creative-production.port.ts +2 -4
- package/dist/templates/adobe-creative-production/files/src/infrastructure/adobe/creative-production/creative-production.adapter.ts +8 -7
- package/dist/templates/adobe-express/files/src/domain/ports/out/express.port.ts +2 -4
- package/dist/templates/adobe-express/files/src/infrastructure/adobe/express/express.adapter.ts +9 -8
- package/dist/templates/adobe-firefly-composite/files/src/domain/ports/out/composite.port.ts +2 -4
- package/dist/templates/adobe-firefly-composite/files/src/infrastructure/adobe/composite/composite.adapter.ts +12 -12
- package/dist/templates/adobe-firefly-content-tagging/files/src/domain/ports/out/content-tagging.port.ts +2 -4
- package/dist/templates/adobe-firefly-content-tagging/files/src/infrastructure/adobe/content-tagging/content-tagging.adapter.ts +6 -5
- package/dist/templates/adobe-firefly-core/README.md +1 -1
- package/dist/templates/adobe-firefly-core/files/src/domain/errors/creative-service-error.ts +62 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/errors/to-creative-service-error.ts +45 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/index.ts +9 -0
- package/dist/templates/adobe-firefly-core/manifest.json +2 -0
- package/dist/templates/adobe-firefly-custom-models/files/src/domain/ports/out/custom-model.port.ts +5 -7
- package/dist/templates/adobe-firefly-custom-models/files/src/infrastructure/adobe/custom-models/firefly-custom-model.adapter.ts +16 -15
- package/dist/templates/adobe-firefly-generate/files/src/domain/ports/out/image-generation.port.ts +6 -8
- package/dist/templates/adobe-firefly-generate/files/src/infrastructure/adobe/generate/firefly-generate.adapter.ts +14 -16
- package/dist/templates/adobe-firefly-media/files/src/domain/ports/out/media-generation.port.ts +6 -8
- package/dist/templates/adobe-firefly-media/files/src/infrastructure/adobe/media/firefly-media.adapter.ts +11 -10
- package/dist/templates/adobe-firefly-upscale/files/src/domain/ports/out/upscale.port.ts +2 -4
- package/dist/templates/adobe-firefly-upscale/files/src/infrastructure/adobe/upscale/upscale.adapter.ts +13 -11
- package/dist/templates/adobe-illustrator/files/src/domain/ports/out/illustrator.port.ts +4 -6
- package/dist/templates/adobe-illustrator/files/src/infrastructure/adobe/illustrator/illustrator.adapter.ts +17 -15
- package/dist/templates/adobe-indesign/files/src/domain/ports/out/indesign.port.ts +4 -6
- package/dist/templates/adobe-indesign/files/src/infrastructure/adobe/indesign/indesign.adapter.ts +10 -9
- package/dist/templates/adobe-lightroom/files/src/domain/ports/out/lightroom.port.ts +4 -6
- package/dist/templates/adobe-lightroom/files/src/infrastructure/adobe/lightroom/lightroom.adapter.ts +10 -9
- package/dist/templates/adobe-photoshop/files/src/domain/ports/out/photoshop-automation.port.ts +6 -8
- package/dist/templates/adobe-photoshop/files/src/infrastructure/adobe/photoshop/photoshop-automation.adapter.ts +12 -11
- package/dist/templates/adobe-substance-3d/files/src/domain/ports/out/substance-3d.port.ts +4 -6
- package/dist/templates/adobe-substance-3d/files/src/infrastructure/adobe/substance-3d/substance-3d.adapter.ts +10 -9
- package/dist/templates/agents-md/files/AGENTS.md +5 -5
- package/dist/templates/bedrock-agentcore-runtime/files/src/application/ports/agent-runtime.port.ts +25 -0
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/invocations.handler.ts +1 -1
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/server.ts +1 -1
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/payload.ts +5 -22
- package/dist/templates/bedrock-agentcore-runtime/manifest.json +1 -0
- package/dist/templates/ci-github-actions/README.md +13 -7
- package/dist/templates/ci-github-actions/files/.github/dependabot.yml +9 -2
- package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +18 -14
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +12 -6
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +14 -8
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +29 -8
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vps.yml +14 -8
- package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +34 -18
- package/dist/templates/ci-github-actions/manifest.json +2 -2
- package/dist/templates/docker/README.md +3 -0
- package/dist/templates/docker/files/.github/workflows/docker-build.yml +15 -6
- package/dist/templates/docker/manifest.json +1 -0
- package/dist/templates/llm-adapter/files/src/domain/errors/llm-error.ts +35 -0
- package/dist/templates/llm-adapter/files/src/domain/ports/out/llm-client.port.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/anthropic-llm-client.adapter.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/azure-openai-llm-client.adapter.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/ollama-llm-client.adapter.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/openai-llm-client.adapter.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/xai-llm-client.adapter.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/errors/llm-errors.ts +9 -23
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/index.ts +4 -3
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/llm-router.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/retry.ts +1 -1
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/structured-output.ts +1 -1
- package/dist/templates/llm-adapter/manifest.json +1 -0
- package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-llm-client.adapter.ts +1 -1
- package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/errors/bedrock-errors.ts +1 -1
- package/dist/templates/mcp-server/README.md +1 -1
- package/dist/templates/mcp-server-http/README.md +1 -1
- package/dist/types/index.d.ts +20 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +6 -5
- package/dist/application/ports/out/project-configuration-read.port.d.ts +0 -9
- package/dist/application/ports/out/project-configuration-read.port.d.ts.map +0 -1
- package/dist/application/ports/out/symbol-reference-provider.port.d.ts +0 -10
- package/dist/application/ports/out/symbol-reference-provider.port.d.ts.map +0 -1
- package/dist/application/use-cases/get-manifest-resource.use-case.d.ts +0 -8
- package/dist/application/use-cases/get-manifest-resource.use-case.d.ts.map +0 -1
- package/dist/generators/validators/index.d.ts +0 -11
- package/dist/generators/validators/index.d.ts.map +0 -1
- package/dist/generators/validators/validate-dependencies.d.ts +0 -7
- package/dist/generators/validators/validate-dependencies.d.ts.map +0 -1
- package/dist/generators/validators/validate-manifest-sync.d.ts +0 -5
- package/dist/generators/validators/validate-manifest-sync.d.ts.map +0 -1
- package/dist/generators/validators/validate-port-adapter.d.ts +0 -5
- package/dist/generators/validators/validate-port-adapter.d.ts.map +0 -1
- package/dist/generators/validators/validation-types.d.ts +0 -20
- package/dist/generators/validators/validation-types.d.ts.map +0 -1
- package/dist/generators/validators.d.ts +0 -7
- package/dist/generators/validators.d.ts.map +0 -1
|
@@ -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,
|
|
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"}
|
|
@@ -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
|
-
|
|
3
|
-
|
|
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,
|
|
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,82 @@
|
|
|
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 { BoundedContextLayers, 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
|
+
/**
|
|
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;
|
|
82
|
+
//# 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,EACV,oBAAoB,EACpB,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAEjC,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;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,oBAAoB,GAAG,SAAS,GAC9C,OAAO,CAiCT"}
|
|
@@ -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"}
|
|
@@ -7,10 +7,41 @@
|
|
|
7
7
|
* 3. built-in fallback (DEFAULT_TEMPLATES / DEFAULT_NAMING)
|
|
8
8
|
*/
|
|
9
9
|
import type { StubTemplates, StubNaming } from "../../types/manifest.js";
|
|
10
|
-
import type { SyncConfig } from "../../config.js";
|
|
11
10
|
import type { StubKind } from "./emission-plan-builder.js";
|
|
12
11
|
export type { StubKind };
|
|
13
12
|
export declare function resolveTemplate(kind: StubKind, manifestTemplates: StubTemplates | undefined): string;
|
|
14
13
|
export declare function resolveNaming(kind: StubKind, contextNaming: StubNaming | undefined, manifestNaming: StubNaming | undefined): string;
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Everything this service needs from the outside world, declared BY the domain
|
|
16
|
+
* so the domain owns the contract (HEX-038).
|
|
17
|
+
*
|
|
18
|
+
* This module used to take the whole `SyncConfig` and reach into it for two
|
|
19
|
+
* values, which pointed the dependency arrow from the innermost layer straight
|
|
20
|
+
* at the composition root — `SyncConfig` carries CLI flags, the workspace root,
|
|
21
|
+
* the live logger and the mutation journal, none of which stub interpolation
|
|
22
|
+
* has any business knowing about. Being `import type` made it invisible at
|
|
23
|
+
* runtime but no less of a compile-time layer dependency.
|
|
24
|
+
*
|
|
25
|
+
* The narrow slice is two values. `scope` is deliberately the already-resolved
|
|
26
|
+
* string rather than the `Manifest` it comes from: the projection is
|
|
27
|
+
* `resolveScope(config.manifest)`, which is exactly what `apps`, `tsconfig`,
|
|
28
|
+
* `package-json` and `root-files` already do at their own call sites, so
|
|
29
|
+
* resolving it in the generator makes stub emission consistent with its four
|
|
30
|
+
* siblings instead of being the one place that re-derives it per file.
|
|
31
|
+
*/
|
|
32
|
+
export interface StubInterpolationContext {
|
|
33
|
+
/**
|
|
34
|
+
* The generated project's own npm scope, without the `@`. Lets stub bodies
|
|
35
|
+
* reference the project's packages (`@{scope}/shared`) rather than the
|
|
36
|
+
* generator's `@hexagen/*` namespace.
|
|
37
|
+
*/
|
|
38
|
+
readonly scope: string;
|
|
39
|
+
/**
|
|
40
|
+
* Where an unresolved-variable warning goes. A one-method sink, not a
|
|
41
|
+
* logger: `LoggerPort` satisfies it structurally, and so does a test spy or
|
|
42
|
+
* an array push, without the domain importing a logging abstraction.
|
|
43
|
+
*/
|
|
44
|
+
readonly warn: (message: string) => void;
|
|
45
|
+
}
|
|
46
|
+
export declare function interpolateWithLog(template: string, name: string, templateId: string, context: StubInterpolationContext): string;
|
|
16
47
|
//# sourceMappingURL=stub-template-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stub-template-resolver.d.ts","sourceRoot":"","sources":["../../../src/domain/services/stub-template-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"stub-template-resolver.d.ts","sourceRoot":"","sources":["../../../src/domain/services/stub-template-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,iBAAiB,EAAE,aAAa,GAAG,SAAS,GAC3C,MAAM,CAER;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,EACd,aAAa,EAAE,UAAU,GAAG,SAAS,EACrC,cAAc,EAAE,UAAU,GAAG,SAAS,GACrC,MAAM,CAIR;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,wBAAwB,GAChC,MAAM,CAWR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps-framework-templates.d.ts","sourceRoot":"","sources":["../../src/generators/apps-framework-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"apps-framework-templates.d.ts","sourceRoot":"","sources":["../../src/generators/apps-framework-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AA00B9B,KAAK,wBAAwB,GAAG,QAAQ,CACtC,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC,CACpE,GACC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;AAEzC,QAAA,MAAM,2BAA2B,EAAE,OAAO,CACxC,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAwG/C,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -2,8 +2,8 @@ declare const LAYER_RULES_COMMON = "shared_kernel:\n package: \"@{scope}/shared
|
|
|
2
2
|
declare const LAYER_RULES_STRICT_ENTERPRISE = "# HexaGen \u2014 Architectural Invariants\n# Template: strict-enterprise \u2014 event-bus boundaries\n\nshared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n\ncross_context:\n deny_direct_imports: true\n required_communication: \"event-bus\"\n allowed_broker_patterns:\n - \"event-bus\"\n - \"message-queue\"\n";
|
|
3
3
|
declare const LAYER_RULES_MICRO_FRONTEND = "# HexaGen \u2014 Architectural Invariants\n# Template: micro-frontend \u2014 networked boundaries\n\nshared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n\ncross_context:\n deny_direct_imports: true\n required_communication: \"network\"\n allowed_broker_patterns:\n - \"network-rpc\"\n - \"http-api\"\n";
|
|
4
4
|
declare const LAYER_RULES_DEFAULT = "# HexaGen \u2014 Architectural Invariants\n# Template: {template} (flexible mode)\n\nshared_kernel:\n package: \"@{scope}/shared\"\n allowed_in_all_layers: true\n\nlayers:\n domain:\n access_rule: \"internal-only\"\n allowed_imports: [\"@{scope}/shared\"]\n\n application:\n access_rule: \"ports-only\"\n allowed_imports: [\"domain\", \"@{scope}/shared\"]\n\n infrastructure:\n access_rule: \"adapters\"\n allowed_imports: [\"domain\", \"application\", \"@{scope}/shared\"]\n";
|
|
5
|
-
declare const LINTER_CONFIG_STRICT = "# Rules for @hexagen-monaco/arch-linter\n# Template: {template} (strict mode)\n\nglobal_whitelist:\n - \"@{scope}/shared\"\n - \"@{scope}/shared/**\"\n\ncross_context_rules:\n deny_sibling_imports: true\n require_port_interface: true\n\ntest_double_rules:\n allowed_cross_package_imports: true\n";
|
|
6
|
-
declare const LINTER_CONFIG_DEFAULT = "# Rules for @hexagen-monaco/arch-linter\n# Template: {template} (flexible mode)\n\nglobal_whitelist:\n - \"@{scope}/shared\"\n - \"@{scope}/shared/**\"\n\ntest_double_rules:\n allowed_cross_package_imports: true\n";
|
|
5
|
+
declare const LINTER_CONFIG_STRICT = "# Rules for @hexagen-monaco/arch-linter\n# Template: {template} (strict mode)\n\nglobal_whitelist:\n - \"@{scope}/shared\"\n - \"@{scope}/shared/**\"\n\ncross_context_rules:\n deny_sibling_imports: true\n require_port_interface: true\n\n# Domain layers may not import npm packages (ADR-0054). Nothing is exempt by\n# default \u2014 list an exception here only when the library IS the domain artifact,\n# and say why:\n#\n# domain_package_allowlist:\n# - package: <bounded-context>\n# allowed_packages:\n# - some-library\n\ntest_double_rules:\n allowed_cross_package_imports: true\n";
|
|
6
|
+
declare const LINTER_CONFIG_DEFAULT = "# Rules for @hexagen-monaco/arch-linter\n# Template: {template} (flexible mode)\n\nglobal_whitelist:\n - \"@{scope}/shared\"\n - \"@{scope}/shared/**\"\n\n# Domain layers may not import npm packages (ADR-0054). Nothing is exempt by\n# default \u2014 list an exception here only when the library IS the domain artifact,\n# and say why:\n#\n# domain_package_allowlist:\n# - package: <bounded-context>\n# allowed_packages:\n# - some-library\n\ntest_double_rules:\n allowed_cross_package_imports: true\n";
|
|
7
7
|
declare const GENERATOR_CONFIG_TEMPLATE = "generator:\n version: \"1.0\"\n description: \"Global invariants and safety rules\"\n workspaceTemplate: \"{workspaceTemplate}\"\n\n invariants:\n - name: composite-safety\n description: \"Every tsconfig.json must contain paths: {{}} to override inherited source mappings.\"\n priority: critical\n failure: abort-and-cleanup\n\n - name: barrel-ownership-boundary\n description: \"Barrels may only re-export types owned by the current bounded context.\"\n priority: critical\n failure: abort-and-cleanup\n\n - name: port-single-ownership\n description: \"Each port interface belongs to exactly one bounded context.\"\n priority: critical\n failure: abort-and-cleanup\n\n - name: dependency-consistency\n description: \"Every @{scope}/* import must have a matching entry in package.json.\"\n priority: high\n failure: abort\n\n - name: self-import-prevention\n description: \"No package imports itself by name.\"\n priority: high\n failure: abort\n\n - name: signature-synchronization\n description: \"Generated consumers must derive exact signatures from the canonical port.\"\n priority: high\n failure: abort\n\n - name: no-empty-stubs\n description: \"No empty barrels (export {{}}) in src/.\"\n priority: medium\n failure: warn-and-continue\n\n - name: exports-field-mandatory\n description: \"Every package.json must include a complete exports map.\"\n priority: medium\n failure: warn-and-continue\n\n - name: test-double-parity\n description: \"Test doubles must implement the same interface as the canonical port.\"\n priority: medium\n failure: warn-and-continue\n\n bootstrap-sequence:\n - load-ownership-map\n - validate-port-ownership-map\n - generate-package-skeleton\n - enforce-tsconfig-paths-override\n - generate-exports-field\n - synchronize-signatures\n - validate-barrel-chain\n - enforce-dependency-consistency\n - final-composite-reference-check\n\n failure-behavior:\n critical: abort-and-cleanup\n high: abort\n medium: warn-and-continue\n\n ownership-registry:\n ports:\n{ownershipBlock}\n";
|
|
8
8
|
export { LAYER_RULES_COMMON, LAYER_RULES_STRICT_ENTERPRISE, LAYER_RULES_MICRO_FRONTEND, LAYER_RULES_DEFAULT, LINTER_CONFIG_STRICT, LINTER_CONFIG_DEFAULT, GENERATOR_CONFIG_TEMPLATE, };
|
|
9
9
|
//# sourceMappingURL=architecture-file-templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-file-templates.d.ts","sourceRoot":"","sources":["../../src/generators/architecture-file-templates.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,kaAgBvB,CAAC;AAEF,QAAA,MAAM,6BAA6B,4qBAUlC,CAAC;AAEF,QAAA,MAAM,0BAA0B,oqBAU/B,CAAC;AAEF,QAAA,MAAM,mBAAmB,ufAGH,CAAC;AAEvB,QAAA,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"architecture-file-templates.d.ts","sourceRoot":"","sources":["../../src/generators/architecture-file-templates.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,kaAgBvB,CAAC;AAEF,QAAA,MAAM,6BAA6B,4qBAUlC,CAAC;AAEF,QAAA,MAAM,0BAA0B,oqBAU/B,CAAC;AAEF,QAAA,MAAM,mBAAmB,ufAGH,CAAC;AAEvB,QAAA,MAAM,oBAAoB,2lBAsBzB,CAAC;AAEF,QAAA,MAAM,qBAAqB,ugBAkB1B,CAAC;AAEF,QAAA,MAAM,yBAAyB,krEAsE9B,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-files.d.ts","sourceRoot":"","sources":["../../src/generators/architecture-files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAgBvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"architecture-files.d.ts","sourceRoot":"","sources":["../../src/generators/architecture-files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAgBvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA6PzD,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAsF1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-context.d.ts","sourceRoot":"","sources":["../../src/generators/cross-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"cross-context.d.ts","sourceRoot":"","sources":["../../src/generators/cross-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA+TzD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAoK1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/generators/eslint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/generators/eslint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA0LzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,EACvB,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,YAAY,CAAA;CAAO,GAC1E,OAAO,CAAC,eAAe,CAAC,CAgE1B"}
|
|
@@ -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;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/generators/package-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/generators/package-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA6L1B"}
|
|
@@ -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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const BUILTIN_PACKAGE_JSON_TEMPLATE = "{\n \"name\": \"{system}\",\n \"private\": true,\n \"type\": \"module\",\n \"packageManager\": \"{packageManager}\",\n \"workspaces\": {workspaces},\n \"scripts\": {\n \"build\": \"turbo build\",\n \"dev\": \"turbo dev\",\n \"lint\": \"turbo lint\",\n \"typecheck\": \"turbo typecheck\",\n \"test\": \"turbo test\",\n \"clean\": \"turbo clean\",\n \"sync\": \"hexagen sync\",\n \"sync:dry\": \"hexagen sync --dry-run\",\n \"sync:force\": \"hexagen sync --force\",\n \"sync:check\": \"hexagen sync --check\",\n \"lint:arch\": \"hexagen arch validate\",\n \"templates:add\": \"hexagen add\",\n \"templates:validate\": \"hexagen validate-templates\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,md}\\\"\"\n },\n \"devDependencies\": {\n \"turbo\": \"^2.0.0\",\n \"typescript\": \"^5.5.4\",\n \"eslint\": \"^9.0.0\",\n \"prettier\": \"^3.0.0\",\n \"@hexagen-monaco/sync\": \"^{toolchainVersion}\",\n \"@hexagen-monaco/arch-linter\": \"^{toolchainVersion}\"\n }\n}";
|
|
2
2
|
declare const BUILTIN_TSCONFIG_BASE_TEMPLATE = "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"module\": \"ESNext\",\n \"moduleResolution\": \"bundler\",\n \"strict\": true,\n \"skipLibCheck\": true,\n \"composite\": true,\n \"declaration\": true,\n \"emitDeclarationOnly\": true,\n \"paths\": {\n \"@{scope}/*\": [\n \"./packages/*/src/index.ts\"\n ]\n }\n }\n}";
|
|
3
3
|
declare const BUILTIN_TURBO_TEMPLATE = "{\n \"$schema\": \"https://turbo.build/schema.json\",\n \"tasks\": {\n \"build\": {\n \"dependsOn\": [\n \"^build\"\n ],\n \"outputs\": [\n \"dist/**\"\n ]\n },\n \"dev\": {\n \"cache\": false,\n \"persistent\": true\n },\n \"lint\": {\n \"dependsOn\": [\n \"^build\"\n ]\n },\n \"typecheck\": {\n \"dependsOn\": [\n \"^build\"\n ],\n \"outputs\": [],\n \"cache\": true\n },\n \"test\": {\n \"dependsOn\": [\n \"^build\"\n ]\n }\n }\n}";
|
|
4
|
-
declare const BUILTIN_GITIGNORE_TEMPLATE = "# Dependencies\nnode_modules/\n.yarn/cache\n.yarn/install-state.gz\n.pnp.*\n\n# Build output\ndist/\n.turbo/\n.next/\n.nitro/\n.output/\n\n# Next.js static export \u2014 anchored to apps so a bare `out/` can't shadow a\n# bounded context's hexagonal `src/application/ports/out/` source (which a\n# pattern without a leading path matches at any depth).\napps/*/out/\n\n# Test / coverage\ncoverage/\n\n# Environment\n.env\n.env.*\n!.env.example\n\n# Logs & OS\n*.log\n.DS_Store\n";
|
|
4
|
+
declare const BUILTIN_GITIGNORE_TEMPLATE = "# Dependencies\nnode_modules/\n.yarn/cache\n.yarn/install-state.gz\n.pnp.*\n\n# Build output\ndist/\n.turbo/\n.next/\n.nitro/\n.output/\n\n# Failed/partial tsc runs can leave vitest.config declaration artifacts at\n# package roots (F20) \u2014 build noise, never source; keep them out of git status.\npackages/*/vitest.config.d.ts\npackages/*/vitest.config.d.ts.map\n\n# Next.js static export \u2014 anchored to apps so a bare `out/` can't shadow a\n# bounded context's hexagonal `src/application/ports/out/` source (which a\n# pattern without a leading path matches at any depth).\napps/*/out/\n\n# Test / coverage\ncoverage/\n\n# Environment\n.env\n.env.*\n!.env.example\n# Add-on templates ship additional committed examples (.env.bullmq.example,\n# .env.rate-limit.example, \u2026) that `.env.*` would otherwise swallow \u2014 without\n# this re-include `git add -A` stages only 1 of N example files (F3).\n!.env.*.example\n\n# Logs & OS\n*.log\n.DS_Store\n";
|
|
5
5
|
declare const BUILTIN_YARNRC_TEMPLATE = "# Generated by hexagen. Corepack reads `packageManager` in package.json to\n# select the Yarn version; the node-modules linker keeps installs conventional.\nnodeLinker: node-modules\n";
|
|
6
6
|
declare const BUILTIN_SETUP_MD_TEMPLATE = "# Setup\n\nThis project was scaffolded by hexagen. Before your first push:\n\n```bash\ncorepack enable # activate the pinned package manager\nyarn install # resolves dependencies, writes yarn.lock\ngit add yarn.lock && git commit -m \"chore: add lockfile\"\ngit push\n```\n\nOnce `yarn.lock` is committed, you can switch CI to a reproducible install by\nadding `--immutable` to the `yarn install` step in\n`.github/workflows/ci.yml` (npm: `npm ci`; pnpm: `pnpm install --frozen-lockfile`).\n\n**Notes**\n\n- CI reads your package-manager version from `package.json` (`packageManager`)\n via Corepack, so bumping it stays in sync automatically \u2014 nothing to edit in\n `ci.yml`.\n- **This file is a one-time bootstrap doc \u2014 delete it after your first push.**\n Its pre-lockfile guidance goes stale once `yarn.lock` is committed. (Run\n `hexagen sync` won't bring it back \u2014 it's a protected root file.)\n";
|
|
7
7
|
export { BUILTIN_PACKAGE_JSON_TEMPLATE, BUILTIN_TSCONFIG_BASE_TEMPLATE, BUILTIN_TURBO_TEMPLATE, BUILTIN_GITIGNORE_TEMPLATE, BUILTIN_YARNRC_TEMPLATE, BUILTIN_SETUP_MD_TEMPLATE, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-file-templates.d.ts","sourceRoot":"","sources":["../../src/generators/root-file-templates.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,6BAA6B,+gCA8BjC,CAAC;AAEH,QAAA,MAAM,8BAA8B,0XAgBlC,CAAC;AAEH,QAAA,MAAM,sBAAsB,kkBAiC1B,CAAC;AAEH,QAAA,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"root-file-templates.d.ts","sourceRoot":"","sources":["../../src/generators/root-file-templates.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,6BAA6B,+gCA8BjC,CAAC;AAEH,QAAA,MAAM,8BAA8B,0XAgBlC,CAAC;AAEH,QAAA,MAAM,sBAAsB,kkBAiC1B,CAAC;AAEH,QAAA,MAAM,0BAA0B,s8BAsC/B,CAAC;AAEF,QAAA,MAAM,uBAAuB,4LAG5B,CAAC;AAIF,QAAA,MAAM,yBAAyB,+7BAuB9B,CAAC;AAEF,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-files.d.ts","sourceRoot":"","sources":["../../src/generators/root-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"root-files.d.ts","sourceRoot":"","sources":["../../src/generators/root-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAgBvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA0JzD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAgI1B"}
|
|
@@ -11,7 +11,10 @@ import type { ReportRecorder } from "../domain/types.js";
|
|
|
11
11
|
* exactly once instead of `…in-port.ts.in-port.ts`), then PascalCase — so the
|
|
12
12
|
* content template's `{name}Port`/`{name}Adapter` is a valid identifier rather
|
|
13
13
|
* than `interface rest-controller.in-port.tsPort`. A no-op for names that are
|
|
14
|
-
* already clean PascalCase.
|
|
14
|
+
* already clean PascalCase. The PascalCase/identifier step is the shared
|
|
15
|
+
* `toPascalCaseIdentifier` (A3) — the same normalizer `architecture-files.ts`
|
|
16
|
+
* and `cross-context.ts` render names with, so a stub identifier and its
|
|
17
|
+
* ownership-registry/cross-context rendering can never drift apart again.
|
|
15
18
|
*/
|
|
16
19
|
export declare function normalizeStubName(rawName: string, namingTemplate: string): string;
|
|
17
20
|
export declare function generateStubs(moduleDir: string, moduleName: string, config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../../src/generators/stubs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../../src/generators/stubs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,eAAe,CAAC;AAuBvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAkIzD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GACrB,MAAM,CAYR;AAED,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAwK1B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Root barrel of `@hexagen-monaco/sync`.
|
|
3
|
+
*
|
|
4
|
+
* **The supported contract of this package is the `hexagen` binary**
|
|
5
|
+
* (`dist/cli.js`), not this barrel — see ADR-0056. Under 0.x the barrel is
|
|
6
|
+
* PROVISIONAL: names may be removed, and a removal rides a **minor**, never a
|
|
7
|
+
* patch, and is named in that release's `CHANGELOG.md` section.
|
|
8
|
+
*
|
|
9
|
+
* `__tests__/contract/public-surface.contract.test.ts` snapshots every name
|
|
10
|
+
* reachable from here. Changing this file changes that snapshot — which is the
|
|
11
|
+
* point: an accidental widening or a silent removal shows up as a red test with
|
|
12
|
+
* the exact names in the diff.
|
|
13
|
+
*
|
|
14
|
+
* Deliberately NOT re-exported (0.10.0, item 4.7 / D6):
|
|
15
|
+
* - `./infrastructure/adapters/in-memory-config-double.js` — a test double;
|
|
16
|
+
* shipping it made a fake part of the public surface.
|
|
17
|
+
* - `./infrastructure/adapters/yaml-config.adapter.js` — an infrastructure
|
|
18
|
+
* adapter; consumers drive it through the CLI, never by construction.
|
|
19
|
+
* - `./fs-utils.js` — internal write plumbing (`safeWriteFileAtomic` and
|
|
20
|
+
* friends) whose invariants only hold inside a `SyncConfig`-shaped run.
|
|
21
|
+
* All three remain importable inside this package by their module path; only
|
|
22
|
+
* the PUBLIC surface shrank.
|
|
23
|
+
*/
|
|
1
24
|
export * from "./sync-engine.js";
|
|
2
25
|
export * from "./config.js";
|
|
3
|
-
export * from "./fs-utils.js";
|
|
4
26
|
export * from "./results.js";
|
|
5
27
|
export * from "./types/index.js";
|
|
6
28
|
export * from "./domain/index.js";
|
|
7
29
|
export * from "./application/ports/out/index.js";
|
|
8
|
-
export * from "./infrastructure/adapters/yaml-config.adapter.js";
|
|
9
|
-
export * from "./infrastructure/adapters/in-memory-config-double.js";
|
|
10
30
|
export * from "./manifest-service.js";
|
|
11
31
|
export { isIndexManifest, mergeSplitManifest } from "./loaders/index.js";
|
|
12
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|