@hexagen-monaco/sync 0.8.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +6 -0
- package/README.md +56 -8
- 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/refactoring-impact.use-case.d.ts +24 -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 +4430 -6205
- package/dist/cli.js.map +1 -1
- package/dist/commands/add/index.d.ts +6 -0
- package/dist/commands/add/index.d.ts.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 +41 -0
- package/dist/commands/bootstrap/index.d.ts.map +1 -0
- package/dist/commands/bootstrap.d.ts +30 -0
- package/dist/commands/bootstrap.d.ts.map +1 -0
- 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/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 +1 -1
- package/dist/commands/shared/index.d.ts.map +1 -1
- 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/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 +63 -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/apps.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 +2 -0
- package/dist/generators/eslint.d.ts.map +1 -1
- package/dist/generators/layer-folders.d.ts.map +1 -1
- package/dist/generators/package-json.d.ts.map +1 -1
- 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 +1663 -5150
- package/dist/index.js.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/tech-stack.md +3 -4
- package/dist/templates/agents-md/files/.agents/testing.md +9 -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/files/src/infrastructure/mcp/registry/tool-registry.test.ts +1 -1
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.test.ts +1 -1
- package/dist/templates/mcp-server-http/README.md +1 -1
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.test.ts +1 -1
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.test.ts +1 -1
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.test.ts +1 -1
- package/dist/types/manifest/apps.d.ts +1 -1
- package/dist/types/manifest/apps.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
|
@@ -3,6 +3,12 @@ export interface AddCommandOptions {
|
|
|
3
3
|
force?: boolean;
|
|
4
4
|
/** Pre-supplied answers in "key=value" format, per template: templateId.questionId=value */
|
|
5
5
|
answers?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Also emit each template's `*.test.*` / `*.spec.*` scaffolds. Off by default
|
|
8
|
+
* — matches the web (in-memory) emit path, so `hexagen add` doesn't drop test
|
|
9
|
+
* files (which import the project's test runner) into a project unasked.
|
|
10
|
+
*/
|
|
11
|
+
withTests?: boolean;
|
|
6
12
|
}
|
|
7
13
|
export declare function addTemplateCommand(templateIds: string[], options?: AddCommandOptions): Promise<void>;
|
|
8
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/add/index.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/add/index.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAsFf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/add/validate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/add/validate.ts"],"names":[],"mappings":"AAUA,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CA6D9D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { type Result } from "../../domain/result.js";
|
|
3
|
+
export interface AdoptOptions {
|
|
4
|
+
root: string;
|
|
5
|
+
yes?: boolean;
|
|
6
|
+
dryRun?: boolean;
|
|
7
|
+
invokeLint?: boolean;
|
|
8
|
+
force?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AdoptResult {
|
|
11
|
+
layoutPath: string;
|
|
12
|
+
wrote: boolean;
|
|
13
|
+
nextSteps: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function runAdopt(options: AdoptOptions): Promise<Result<AdoptResult, Error>>;
|
|
16
|
+
export declare function adoptCommand(options: {
|
|
17
|
+
root?: string;
|
|
18
|
+
yes?: boolean;
|
|
19
|
+
dryRun?: boolean;
|
|
20
|
+
invokeLint?: boolean;
|
|
21
|
+
force?: boolean;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
export declare const adoptCommander: Command;
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/adopt/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAqBD,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAoErC;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBhB;AAED,eAAO,MAAM,cAAc,SAsBxB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { type Result } from "../../domain/result.js";
|
|
3
|
+
export interface BootstrapContextAnswer {
|
|
4
|
+
name: string;
|
|
5
|
+
include: boolean;
|
|
6
|
+
type?: string;
|
|
7
|
+
root: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
dependsOn?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface BootstrapAnswers {
|
|
12
|
+
system?: string;
|
|
13
|
+
scope?: string;
|
|
14
|
+
architecture?: string;
|
|
15
|
+
contexts: BootstrapContextAnswer[];
|
|
16
|
+
}
|
|
17
|
+
export interface BootstrapOptions {
|
|
18
|
+
root: string;
|
|
19
|
+
yes?: boolean;
|
|
20
|
+
answersPath?: string;
|
|
21
|
+
stdinJson?: boolean;
|
|
22
|
+
llm?: boolean;
|
|
23
|
+
dryRun?: boolean;
|
|
24
|
+
force?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface BootstrapResult {
|
|
27
|
+
files: string[];
|
|
28
|
+
wrote: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function runBootstrap(options: BootstrapOptions): Promise<Result<BootstrapResult, Error>>;
|
|
31
|
+
export declare function bootstrapCommand(options: {
|
|
32
|
+
root?: string;
|
|
33
|
+
yes?: boolean;
|
|
34
|
+
answers?: string;
|
|
35
|
+
stdinJson?: boolean;
|
|
36
|
+
llm?: boolean;
|
|
37
|
+
dryRun?: boolean;
|
|
38
|
+
force?: boolean;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
export declare const bootstrapCommander: Command;
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/bootstrap/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB;AAwKD,wBAAsB,YAAY,CAChC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAyFzC;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BhB;AAED,eAAO,MAAM,kBAAkB,SA0B5B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Project, type SourceFile } from "ts-morph";
|
|
2
|
+
import { type Result } from "../domain/result.js";
|
|
3
|
+
export declare const ARCH_LINT_BASELINE_RELATIVE_PATH = ".architecture/arch-lint-baseline.json";
|
|
4
|
+
/** Empty ratchet baseline (ADR-0054) — numeric version + `entries`. */
|
|
5
|
+
export declare const EMPTY_ARCH_LINT_BASELINE: {
|
|
6
|
+
version: number;
|
|
7
|
+
entries: readonly [];
|
|
8
|
+
};
|
|
9
|
+
export interface BootstrapOptions {
|
|
10
|
+
force?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface WorkspaceInfo {
|
|
13
|
+
name: string;
|
|
14
|
+
dir: string;
|
|
15
|
+
fullPath: string;
|
|
16
|
+
}
|
|
17
|
+
/** ts-morph globs reject native Windows separators. */
|
|
18
|
+
export declare function toTsMorphGlob(absPath: string): string;
|
|
19
|
+
export declare function resolveWorkspaceSpecifier(specifier: string, packageNames: Iterable<string>): string | undefined;
|
|
20
|
+
export declare function collectModuleSpecifiers(file: SourceFile): string[];
|
|
21
|
+
export declare function deriveSystemAndScope(pkgName: string | undefined): {
|
|
22
|
+
system: string;
|
|
23
|
+
scope: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function discoverWorkspaces(root: string): Promise<Result<WorkspaceInfo[], Error>>;
|
|
26
|
+
export declare function scanWorkspaceSources(project: Project, workspaces: readonly WorkspaceInfo[]): Promise<Result<void, Error>>;
|
|
27
|
+
export declare function inferDependencies(sourceFiles: readonly SourceFile[], selectedContexts: readonly WorkspaceInfo[]): Map<string, Set<string>>;
|
|
28
|
+
export declare function bootstrapCommand(options?: BootstrapOptions): Promise<void>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAI1D,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO3D,eAAO,MAAM,gCAAgC,0CACJ,CAAC;AAE1C,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAmBD,uDAAuD;AACvD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,GAC7B,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAoClE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAiBA;AA+ED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC,CAiEzC;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,SAAS,aAAa,EAAE,GACnC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAsB9B;AAED,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,SAAS,UAAU,EAAE,EAClC,gBAAgB,EAAE,SAAS,aAAa,EAAE,GACzC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAwB1B;AAWD,wBAAsB,gBAAgB,CACpC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAwJf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReportBaselineEntry } from "./types.js";
|
|
2
|
+
export interface ReportBaselineFile {
|
|
3
|
+
version: number;
|
|
4
|
+
entries: ReportBaselineEntry[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Local reader aligned with `@hexagen/arch-linter` parseBaseline (version 1,
|
|
8
|
+
* rule/file/specifier required, optional reason/expires). Kept here so the
|
|
9
|
+
* sync CLI does not take a runtime dependency on the linter package.
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseReportBaseline(text: string): ReportBaselineFile;
|
|
12
|
+
//# sourceMappingURL=baseline-read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseline-read.d.ts","sourceRoot":"","sources":["../../../src/commands/report/baseline-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAItD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAqGpE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Manifest } from "../../types/manifest.js";
|
|
2
|
+
import type { EngagementReport, GitReader, LintCollector } from "./types.js";
|
|
3
|
+
export declare const DEFAULT_BASELINE_REL = ".architecture/arch-lint-baseline.json";
|
|
4
|
+
export declare const DEFAULT_LAYOUT_REL = ".architecture/layout.yaml";
|
|
5
|
+
export declare function buildEngagementReport(input: {
|
|
6
|
+
workspaceRoot: string;
|
|
7
|
+
manifest: Manifest;
|
|
8
|
+
generatedAt?: string;
|
|
9
|
+
git: GitReader;
|
|
10
|
+
lint?: LintCollector;
|
|
11
|
+
now?: Date;
|
|
12
|
+
}): EngagementReport;
|
|
13
|
+
//# sourceMappingURL=build-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-report.d.ts","sourceRoot":"","sources":["../../../src/commands/report/build-report.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQxD,OAAO,KAAK,EAEV,gBAAgB,EAChB,SAAS,EACT,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,oBAAoB,0CAA0C,CAAC;AAC5E,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAU9D,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ,GAAG,gBAAgB,CA4BnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Manifest } from "../../types/manifest.js";
|
|
2
|
+
/**
|
|
3
|
+
* Context map as Mermaid text. Mirrors the accept-view classDiagram
|
|
4
|
+
* (ports in/out) plus a flowchart of `depends_on`. No Next.js import.
|
|
5
|
+
*/
|
|
6
|
+
export declare function generateContextMapMermaid(manifest: Manifest): string;
|
|
7
|
+
export declare function contextCount(manifest: Manifest): number;
|
|
8
|
+
export declare function systemNameOf(manifest: Manifest): string;
|
|
9
|
+
//# sourceMappingURL=context-map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-map.d.ts","sourceRoot":"","sources":["../../../src/commands/report/context-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAYxD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAwDpE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEvD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAIvD"}
|
|
@@ -0,0 +1 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"render-markdown.d.ts","sourceRoot":"","sources":["../../../src/commands/report/render-markdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkBnD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAoFrE"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface ReportBaselineEntry {
|
|
2
|
+
rule: string;
|
|
3
|
+
file: string;
|
|
4
|
+
specifier: string;
|
|
5
|
+
reason?: string;
|
|
6
|
+
expires?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ReportViolation {
|
|
9
|
+
rule: string;
|
|
10
|
+
file: string;
|
|
11
|
+
specifier: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RatchetTrendPoint {
|
|
15
|
+
hash: string;
|
|
16
|
+
isoDate: string;
|
|
17
|
+
subject: string;
|
|
18
|
+
entryCount: number;
|
|
19
|
+
}
|
|
20
|
+
export interface DriftSummary {
|
|
21
|
+
fresh: ReportViolation[];
|
|
22
|
+
baselined: ReportViolation[];
|
|
23
|
+
stale: ReportBaselineEntry[];
|
|
24
|
+
expired: ReportBaselineEntry[];
|
|
25
|
+
collected: boolean;
|
|
26
|
+
/** Set when collect() failed; renderers must not claim a missing binary. */
|
|
27
|
+
failureReason?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface EngagementReport {
|
|
30
|
+
generatedAt: string;
|
|
31
|
+
workspaceRoot: string;
|
|
32
|
+
systemName: string;
|
|
33
|
+
mermaid: string;
|
|
34
|
+
contextCount: number;
|
|
35
|
+
drift: DriftSummary;
|
|
36
|
+
trend: RatchetTrendPoint[];
|
|
37
|
+
suppressions: ReportBaselineEntry[];
|
|
38
|
+
baselinePresent: boolean;
|
|
39
|
+
layoutPresent: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface GitReader {
|
|
42
|
+
logFollow(relativePath: string): Array<{
|
|
43
|
+
hash: string;
|
|
44
|
+
isoDate: string;
|
|
45
|
+
subject: string;
|
|
46
|
+
}>;
|
|
47
|
+
show(hash: string, relativePath: string): string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface LintCollector {
|
|
50
|
+
collect(): DriftSummary;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/report/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC;QACrC,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,IAAI,YAAY,CAAC;CACzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal ZIP (store method, no compression). Avoids a new dependency for a
|
|
3
|
+
* handful of text files.
|
|
4
|
+
*/
|
|
5
|
+
export interface ZipEntry {
|
|
6
|
+
name: string;
|
|
7
|
+
content: string | Uint8Array;
|
|
8
|
+
}
|
|
9
|
+
export declare function writeZipStore(entries: ZipEntry[]): Buffer;
|
|
10
|
+
//# sourceMappingURL=zip-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip-store.d.ts","sourceRoot":"","sources":["../../../src/commands/report/zip-store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAkEzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DetectedPackage {
|
|
2
|
+
name: string;
|
|
3
|
+
root: string;
|
|
4
|
+
packageName?: string;
|
|
5
|
+
layers: Partial<Record<"domain" | "application" | "infrastructure" | "presentation", string[]>>;
|
|
6
|
+
}
|
|
7
|
+
export interface WorkspaceDetection {
|
|
8
|
+
system: string;
|
|
9
|
+
packages: DetectedPackage[];
|
|
10
|
+
}
|
|
11
|
+
export declare function detectWorkspaces(root: string): Promise<WorkspaceDetection>;
|
|
12
|
+
//# sourceMappingURL=detect-workspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-workspaces.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/detect-workspaces.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CACb,MAAM,CACJ,QAAQ,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,EAC5D,MAAM,EAAE,CACT,CACF,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AA6ED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,CAAC,CAuD7B"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* and provide consistent discovery for consumers.
|
|
6
6
|
*/
|
|
7
7
|
export { yamlService } from "./yaml-service.js";
|
|
8
|
-
export { getProjectRoot, findProjectRoot } from "./project-root.js";
|
|
8
|
+
export { getProjectRoot, findProjectRoot, findWorkspaceRoot, } from "./project-root.js";
|
|
9
9
|
export { promptService, PromptService } from "./prompt-service.js";
|
|
10
10
|
export { spinner, Spinner } from "./spinner.js";
|
|
11
11
|
export { confirm } from "./confirm.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export declare function findProjectRoot(from: string): string | null;
|
|
2
|
+
/**
|
|
3
|
+
* Workspace root for commands that must run *before* a manifest exists
|
|
4
|
+
* (`hexagen bootstrap`). Prefers an existing HexaGen project (manifest
|
|
5
|
+
* present) and otherwise walks up for a `package.json` that declares
|
|
6
|
+
* `workspaces`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function findWorkspaceRoot(from: string): string | null;
|
|
2
9
|
export declare function getProjectRoot(): string;
|
|
3
10
|
//# sourceMappingURL=project-root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-root.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/project-root.ts"],"names":[],"mappings":"AAmCA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAuB3D;AAED,wBAAgB,cAAc,IAAI,MAAM,CAUvC"}
|
|
1
|
+
{"version":3,"file":"project-root.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/project-root.ts"],"names":[],"mappings":"AAmCA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAuB3D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2B7D;AAED,wBAAgB,cAAc,IAAI,MAAM,CAUvC"}
|
|
@@ -3,15 +3,26 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Flattens the bounded context's layers object into an ordered list of
|
|
5
5
|
* emission items (kind, subdir, names) so the generator can iterate
|
|
6
|
-
* them uniformly.
|
|
6
|
+
* them uniformly. Directories are resolved through the single layer-folder
|
|
7
|
+
* resolver (A2): each conventional emission site is combined with the
|
|
8
|
+
* manifest's `generator.sync.layers` configuration, so a custom
|
|
9
|
+
* `application.folder` (or an underscored `value_objects` subfolder — F16)
|
|
10
|
+
* places stubs in the same tree `ensureLayerFolders` scaffolds.
|
|
7
11
|
*/
|
|
8
12
|
import type { BoundedContext } from "../../types/manifest.js";
|
|
13
|
+
import { type LayersConfig } from "./layer-dir-resolver.js";
|
|
14
|
+
/**
|
|
15
|
+
* Conventional emission-site vocabulary (layer + kebab-case site). These are
|
|
16
|
+
* the resolver INPUTS — the plan's `subdir` carries the RESOLVED directory
|
|
17
|
+
* (relative to the package root, `src/...` by convention).
|
|
18
|
+
*/
|
|
9
19
|
export type EmissionSite = "domain/entities" | "domain/value-objects" | "domain/services" | "domain/ports/in" | "domain/ports/out" | "application/use-cases" | "application/ports/in" | "application/ports/out" | "infrastructure/adapters";
|
|
10
20
|
export type StubKind = "inPort" | "outPort" | "adapter" | "useCase" | "entity" | "valueObject" | "domainService";
|
|
11
21
|
export interface EmissionPlan {
|
|
12
22
|
kind: StubKind;
|
|
13
|
-
|
|
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
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"impact-analysis.types.d.ts","sourceRoot":"","sources":["../../../src/domain/services/impact-analysis.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,cAAc,CAAC;AAEnB;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC3C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
|
|
@@ -3,5 +3,7 @@ export * from "./emission-plan-builder.js";
|
|
|
3
3
|
export * from "./impact-analysis.types.js";
|
|
4
4
|
export * from "./impact-request-validator.js";
|
|
5
5
|
export * from "./layer-classifier.js";
|
|
6
|
+
export * from "./layer-dir-resolver.js";
|
|
7
|
+
export * from "./name-normalizer.js";
|
|
6
8
|
export * from "./stub-template-resolver.js";
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/services/index.ts"],"names":[],"mappings":"AAEA,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/services/index.ts"],"names":[],"mappings":"AAEA,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
import type { Layer } from "./impact-analysis.types.js";
|
|
2
|
-
|
|
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,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE single layer-folder resolver (A2 / F16).
|
|
3
|
+
*
|
|
4
|
+
* Several code paths used to guess the on-disk directory for a layer/stub
|
|
5
|
+
* site independently — the emission plan and stub placement hardcoded
|
|
6
|
+
* `src/<layer>/<site>` while `ensureLayerFolders` consumed
|
|
7
|
+
* `generator.sync.layers[*].folder` — so a manifest that set
|
|
8
|
+
* `application: { folder: "src/app" }` scaffolded `src/app/...` but stubs
|
|
9
|
+
* landed in `src/application/...`. Every consumer that turns a (layer, site)
|
|
10
|
+
* pair into a directory now goes through `resolveLayerDir`.
|
|
11
|
+
*
|
|
12
|
+
* Rules:
|
|
13
|
+
* - The LAYER folder comes from `generator.sync.layers[layer].folder`,
|
|
14
|
+
* falling back to the `src/<layer>` convention. A configured folder that
|
|
15
|
+
* is absolute or path-traverses out of the package is ignored (fall back
|
|
16
|
+
* to convention) — manifests can arrive unvalidated via `/api/generate`,
|
|
17
|
+
* and this is the same traversal posture as the SyncEngine module guard.
|
|
18
|
+
* - The SITE subfolder is the conventional kebab-case vocabulary
|
|
19
|
+
* (`entities`, `value-objects`, `use-cases`, `ports/in`, ...).
|
|
20
|
+
* Hyphen/underscore are treated as the same separator for KNOWN sites:
|
|
21
|
+
* the wizard's layer config names `value_objects` while every emitter
|
|
22
|
+
* (stub plan, add-on template payloads and their import specifiers, this
|
|
23
|
+
* monorepo's own layout) uses `value-objects` — F16's duplicate-folder
|
|
24
|
+
* bug was exactly that split. Known-site spellings normalize to the
|
|
25
|
+
* kebab-case convention; unknown custom subfolders pass through verbatim.
|
|
26
|
+
*/
|
|
27
|
+
import type { LayerConfig } from "../../types/manifest.js";
|
|
28
|
+
export type LayerKind = "domain" | "application" | "infrastructure";
|
|
29
|
+
export type LayersConfig = Record<string, LayerConfig>;
|
|
30
|
+
/**
|
|
31
|
+
* Normalize a subfolder spelling: a spelling of a KNOWN site (any
|
|
32
|
+
* hyphen/underscore/case variant, e.g. `value_objects`) collapses to the
|
|
33
|
+
* conventional kebab-case form; anything else (a genuinely custom subfolder)
|
|
34
|
+
* is returned verbatim. Used by `ensureLayerFolders` too, so the scaffolded
|
|
35
|
+
* skeleton and the emitted files agree on ONE folder per site (F16).
|
|
36
|
+
*/
|
|
37
|
+
export declare function normalizeSubfolder(subfolder: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* A configured layer folder (or subfolder) must stay inside the package:
|
|
40
|
+
* reject absolute paths and `..` segments (unvalidated `/api/generate`
|
|
41
|
+
* manifests reach this code — same posture as the SyncEngine module-name
|
|
42
|
+
* guard and cross-context's `isSafePathSegment`). Exported so the scaffold
|
|
43
|
+
* (`ensureLayerFolders`) applies the same rule to configured subfolders
|
|
44
|
+
* before any filesystem write.
|
|
45
|
+
*/
|
|
46
|
+
export declare function isSafeLayerFolder(folder: string): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Resolve the on-disk directory (POSIX-style, relative to the package root)
|
|
49
|
+
* for a layer — optionally a site inside it — from `generator.sync.layers`,
|
|
50
|
+
* with a fallback to the `src/<layer>/<conventional-site>` convention.
|
|
51
|
+
*
|
|
52
|
+
* `resolveLayerDir(layers, "application", "ports/out")` →
|
|
53
|
+
* `"src/app/ports/out"` when the manifest configures
|
|
54
|
+
* `application: { folder: "src/app" }`, `"src/application/ports/out"`
|
|
55
|
+
* otherwise.
|
|
56
|
+
*/
|
|
57
|
+
export declare function resolveLayerDir(layers: LayersConfig | undefined, layer: string, subfolder?: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* Convenience form for emission-site strings (`"domain/value-objects"`,
|
|
60
|
+
* `"application/ports/in"`, ...): split into (layer, site) and resolve.
|
|
61
|
+
*/
|
|
62
|
+
export declare function resolveEmissionDir(layers: LayersConfig | undefined, site: `${LayerKind}/${string}`): string;
|
|
63
|
+
//# sourceMappingURL=layer-dir-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-dir-resolver.d.ts","sourceRoot":"","sources":["../../../src/domain/services/layer-dir-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAuBvD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG5D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,YAAY,GAAG,SAAS,EAGhC,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAQR;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,IAAI,EAAE,GAAG,SAAS,IAAI,MAAM,EAAE,GAC7B,MAAM,CAIR"}
|