@hexagen-monaco/sync 0.5.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/cli.js +1610 -620
  2. package/dist/cli.js.map +1 -1
  3. package/dist/config.d.ts +24 -0
  4. package/dist/config.d.ts.map +1 -1
  5. package/dist/domain/types.d.ts +8 -1
  6. package/dist/domain/types.d.ts.map +1 -1
  7. package/dist/fs-utils.d.ts +17 -4
  8. package/dist/fs-utils.d.ts.map +1 -1
  9. package/dist/generators/apps-framework-templates.d.ts +2 -1
  10. package/dist/generators/apps-framework-templates.d.ts.map +1 -1
  11. package/dist/generators/apps.d.ts.map +1 -1
  12. package/dist/generators/architecture-files.d.ts.map +1 -1
  13. package/dist/generators/barrels/recursive.d.ts +2 -3
  14. package/dist/generators/barrels/recursive.d.ts.map +1 -1
  15. package/dist/generators/barrels.d.ts +2 -3
  16. package/dist/generators/barrels.d.ts.map +1 -1
  17. package/dist/generators/cross-context.d.ts +5 -0
  18. package/dist/generators/cross-context.d.ts.map +1 -0
  19. package/dist/generators/eslint.d.ts +3 -1
  20. package/dist/generators/eslint.d.ts.map +1 -1
  21. package/dist/generators/layer-folders.d.ts +18 -6
  22. package/dist/generators/layer-folders.d.ts.map +1 -1
  23. package/dist/generators/package-json.d.ts +2 -3
  24. package/dist/generators/package-json.d.ts.map +1 -1
  25. package/dist/generators/port-analyzer.d.ts +38 -4
  26. package/dist/generators/port-analyzer.d.ts.map +1 -1
  27. package/dist/generators/reap.d.ts +7 -3
  28. package/dist/generators/reap.d.ts.map +1 -1
  29. package/dist/generators/root-file-templates.d.ts +4 -4
  30. package/dist/generators/root-file-templates.d.ts.map +1 -1
  31. package/dist/generators/root-files.d.ts.map +1 -1
  32. package/dist/generators/shared-kernel.d.ts +23 -0
  33. package/dist/generators/shared-kernel.d.ts.map +1 -0
  34. package/dist/generators/stubs.d.ts +13 -0
  35. package/dist/generators/stubs.d.ts.map +1 -1
  36. package/dist/generators/tsconfig.d.ts.map +1 -1
  37. package/dist/index.js +1441 -470
  38. package/dist/index.js.map +1 -1
  39. package/dist/journal.d.ts +64 -0
  40. package/dist/journal.d.ts.map +1 -0
  41. package/dist/migration-report.d.ts +13 -2
  42. package/dist/migration-report.d.ts.map +1 -1
  43. package/dist/results.d.ts +66 -0
  44. package/dist/results.d.ts.map +1 -1
  45. package/dist/scope-filter.d.ts +35 -0
  46. package/dist/scope-filter.d.ts.map +1 -0
  47. package/dist/sync-engine-helpers.d.ts.map +1 -1
  48. package/dist/sync-engine.d.ts +13 -1
  49. package/dist/sync-engine.d.ts.map +1 -1
  50. package/dist/templates/adobe-creative-production/manifest.json +2 -0
  51. package/dist/templates/adobe-express/manifest.json +2 -0
  52. package/dist/templates/adobe-firefly-composite/manifest.json +2 -0
  53. package/dist/templates/adobe-firefly-content-tagging/manifest.json +2 -0
  54. package/dist/templates/adobe-firefly-core/manifest.json +2 -0
  55. package/dist/templates/adobe-firefly-custom-models/manifest.json +2 -0
  56. package/dist/templates/adobe-firefly-generate/manifest.json +2 -0
  57. package/dist/templates/adobe-firefly-media/manifest.json +2 -0
  58. package/dist/templates/adobe-firefly-storage-azure/manifest.json +2 -0
  59. package/dist/templates/adobe-firefly-storage-gcs/manifest.json +2 -0
  60. package/dist/templates/adobe-firefly-storage-s3/manifest.json +2 -0
  61. package/dist/templates/adobe-firefly-upscale/manifest.json +2 -0
  62. package/dist/templates/adobe-illustrator/manifest.json +2 -0
  63. package/dist/templates/adobe-ims-spa/manifest.json +2 -0
  64. package/dist/templates/adobe-indesign/manifest.json +2 -0
  65. package/dist/templates/adobe-lightroom/manifest.json +2 -0
  66. package/dist/templates/adobe-photoshop/manifest.json +2 -0
  67. package/dist/templates/adobe-substance-3d/manifest.json +2 -0
  68. package/dist/templates/auth-mock/manifest.json +2 -0
  69. package/dist/templates/bedrock-agentcore-runtime/manifest.json +10 -2
  70. package/dist/templates/bedrock-agentcore-services/manifest.json +38 -9
  71. package/dist/templates/better-auth/manifest.json +2 -0
  72. package/dist/templates/bullmq/manifest.json +2 -0
  73. package/dist/templates/ci-github-actions/README.md +7 -0
  74. package/dist/templates/ci-github-actions/files/.github/dependabot.yml +16 -4
  75. package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +7 -3
  76. package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +20 -2
  77. package/dist/templates/ci-github-actions/manifest.json +26 -6
  78. package/dist/templates/clerk/manifest.json +2 -0
  79. package/dist/templates/design-system/manifest.json +14 -3
  80. package/dist/templates/docker/manifest.json +2 -0
  81. package/dist/templates/error-handling/manifest.json +2 -0
  82. package/dist/templates/eslint-no-console/manifest.json +2 -0
  83. package/dist/templates/github-oauth/manifest.json +2 -0
  84. package/dist/templates/google-oauth/manifest.json +2 -0
  85. package/dist/templates/langgraph/manifest.json +62 -15
  86. package/dist/templates/llm-adapter/manifest.json +2 -0
  87. package/dist/templates/magic-link/manifest.json +2 -0
  88. package/dist/templates/mcp-server/README.md +49 -0
  89. package/dist/templates/mcp-server/files/.env.mcp.example +6 -0
  90. package/dist/templates/mcp-server/files/.mcp.json.example +8 -0
  91. package/dist/templates/mcp-server/files/bin/cli.ts +15 -0
  92. package/dist/templates/mcp-server/files/src/infrastructure/mcp/prompts/example.prompt.ts +32 -0
  93. package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/register-all.ts +11 -0
  94. package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/tool-registry.test.ts +67 -0
  95. package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/tool-registry.ts +45 -0
  96. package/dist/templates/mcp-server/files/src/infrastructure/mcp/resources/example.resource.ts +28 -0
  97. package/dist/templates/mcp-server/files/src/infrastructure/mcp/sdk.ts +41 -0
  98. package/dist/templates/mcp-server/files/src/infrastructure/mcp/server.ts +52 -0
  99. package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.test.ts +31 -0
  100. package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.ts +74 -0
  101. package/dist/templates/mcp-server/files/src/infrastructure/mcp/transport/register-transports.ts +15 -0
  102. package/dist/templates/mcp-server/files/src/infrastructure/mcp/transport/stdio.ts +14 -0
  103. package/dist/templates/mcp-server/manifest.json +68 -0
  104. package/dist/templates/mcp-server-http/README.md +98 -0
  105. package/dist/templates/mcp-server-http/files/.env.mcp-http.example +22 -0
  106. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.test.ts +54 -0
  107. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.ts +49 -0
  108. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.test.ts +50 -0
  109. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.ts +53 -0
  110. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.test.ts +75 -0
  111. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.ts +26 -0
  112. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/transport/http.ts +94 -0
  113. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/transport/register-transports.ts +15 -0
  114. package/dist/templates/mcp-server-http/manifest.json +56 -0
  115. package/dist/templates/microsoft-entra/manifest.json +2 -0
  116. package/dist/templates/nextauth/manifest.json +2 -0
  117. package/dist/templates/observability/manifest.json +10 -2
  118. package/dist/templates/rate-limiting/manifest.json +2 -0
  119. package/dist/templates/shared-types/manifest.json +2 -0
  120. package/dist/templates/supabase/manifest.json +2 -0
  121. package/dist/templates/supabase-auth/manifest.json +2 -0
  122. package/dist/toolchain-version.d.ts +14 -0
  123. package/dist/toolchain-version.d.ts.map +1 -0
  124. package/dist/types/manifest/apps.d.ts +12 -1
  125. package/dist/types/manifest/apps.d.ts.map +1 -1
  126. package/package.json +1 -1
  127. package/dist/application/use-cases/stub-generation.use-case.d.ts +0 -23
  128. package/dist/application/use-cases/stub-generation.use-case.d.ts.map +0 -1
  129. package/dist/generators/migration-assistant.d.ts +0 -7
  130. package/dist/generators/migration-assistant.d.ts.map +0 -1
  131. package/dist/generators/migration-audit.d.ts +0 -28
  132. package/dist/generators/migration-audit.d.ts.map +0 -1
  133. package/dist/generators/migration-stubs.d.ts +0 -7
  134. package/dist/generators/migration-stubs.d.ts.map +0 -1
  135. package/dist/generators/test-generator.d.ts +0 -7
  136. package/dist/generators/test-generator.d.ts.map +0 -1
  137. package/dist/generators/test-templates/data-builder.d.ts +0 -2
  138. package/dist/generators/test-templates/data-builder.d.ts.map +0 -1
  139. package/dist/generators/test-templates/enhanced-test-double.d.ts +0 -2
  140. package/dist/generators/test-templates/enhanced-test-double.d.ts.map +0 -1
  141. package/dist/generators/test-templates/index.d.ts +0 -5
  142. package/dist/generators/test-templates/index.d.ts.map +0 -1
  143. package/dist/generators/test-templates/integration-test.d.ts +0 -2
  144. package/dist/generators/test-templates/integration-test.d.ts.map +0 -1
  145. package/dist/generators/test-templates/unit-test.d.ts +0 -2
  146. package/dist/generators/test-templates/unit-test.d.ts.map +0 -1
  147. package/dist/generators/wiring.d.ts +0 -20
  148. package/dist/generators/wiring.d.ts.map +0 -1
@@ -0,0 +1,75 @@
1
+ import { describe, it } from "node:test";
2
+ import assert from "node:assert/strict";
3
+ import { assertSafeTransport } from "./guard.js";
4
+
5
+ describe("assertSafeTransport", () => {
6
+ it("throws when streamable-http has no auth mode set", () => {
7
+ assert.throws(
8
+ () => assertSafeTransport({ MCP_TRANSPORT: "streamable-http" }),
9
+ /requires MCP_AUTH_MODE/,
10
+ );
11
+ });
12
+
13
+ it("throws when streamable-http has MCP_AUTH_MODE=none", () => {
14
+ assert.throws(
15
+ () =>
16
+ assertSafeTransport({
17
+ MCP_TRANSPORT: "streamable-http",
18
+ MCP_AUTH_MODE: "none",
19
+ }),
20
+ /requires MCP_AUTH_MODE/,
21
+ );
22
+ });
23
+
24
+ it("allows streamable-http with bearer auth", () => {
25
+ assert.doesNotThrow(() =>
26
+ assertSafeTransport({
27
+ MCP_TRANSPORT: "streamable-http",
28
+ MCP_AUTH_MODE: "bearer",
29
+ }),
30
+ );
31
+ });
32
+
33
+ it("allows streamable-http with oauth auth", () => {
34
+ assert.doesNotThrow(() =>
35
+ assertSafeTransport({
36
+ MCP_TRANSPORT: "streamable-http",
37
+ MCP_AUTH_MODE: "oauth",
38
+ }),
39
+ );
40
+ });
41
+
42
+ it("ignores non-http transports — stdio needs no auth", () => {
43
+ assert.doesNotThrow(() => assertSafeTransport({ MCP_TRANSPORT: "stdio" }));
44
+ assert.doesNotThrow(() => assertSafeTransport({}));
45
+ });
46
+
47
+ it("throws for empty, whitespace, or otherwise invalid auth modes", () => {
48
+ for (const MCP_AUTH_MODE of ["", " ", "disabled", "basic"]) {
49
+ assert.throws(
50
+ () =>
51
+ assertSafeTransport({
52
+ MCP_TRANSPORT: "streamable-http",
53
+ MCP_AUTH_MODE,
54
+ }),
55
+ /requires MCP_AUTH_MODE/,
56
+ `MCP_AUTH_MODE=${JSON.stringify(MCP_AUTH_MODE)} must be rejected`,
57
+ );
58
+ }
59
+ });
60
+
61
+ it("accepts bearer/oauth case-insensitively and trims whitespace", () => {
62
+ assert.doesNotThrow(() =>
63
+ assertSafeTransport({
64
+ MCP_TRANSPORT: "streamable-http",
65
+ MCP_AUTH_MODE: " Bearer ",
66
+ }),
67
+ );
68
+ assert.doesNotThrow(() =>
69
+ assertSafeTransport({
70
+ MCP_TRANSPORT: "streamable-http",
71
+ MCP_AUTH_MODE: "OAUTH",
72
+ }),
73
+ );
74
+ });
75
+ });
@@ -0,0 +1,26 @@
1
+ // @hexagen-server-only
2
+ /**
3
+ * Defense-in-depth startup guard: refuse to start a network-exposed transport
4
+ * without authentication. The structural protection is the template split — the
5
+ * `mcp-server-http` addon's `auth` question has no `none` option — but `.env` is
6
+ * hand-edited after generation, so this guard fails fast at startup unless
7
+ * `MCP_TRANSPORT=streamable-http` is paired with a valid `MCP_AUTH_MODE`
8
+ * (`bearer` | `oauth`). It enforces an **allowlist**, so an empty string,
9
+ * `none`, or any other invalid value is rejected — not just an unset variable.
10
+ *
11
+ * Called first inside `createHttpTransport()`, i.e. only on the HTTP path: stdio
12
+ * deployments pay nothing, and importing the transport module in a unit test
13
+ * never trips it. `MCP_AUTH_MODE` is read only here — the auth implementation
14
+ * itself is fixed at install.
15
+ */
16
+ export function assertSafeTransport(env: NodeJS.ProcessEnv): void {
17
+ if (env.MCP_TRANSPORT !== "streamable-http") return;
18
+
19
+ const mode = (env.MCP_AUTH_MODE ?? "").trim().toLowerCase();
20
+ if (mode !== "bearer" && mode !== "oauth") {
21
+ throw new Error(
22
+ "Refusing to start: MCP_TRANSPORT=streamable-http requires MCP_AUTH_MODE=bearer|oauth. " +
23
+ "Set MCP_AUTH_MODE and the matching secret, or use the stdio transport.",
24
+ );
25
+ }
26
+ }
@@ -0,0 +1,94 @@
1
+ // @hexagen-server-only — network-exposed transport; holds no logic and gates
2
+ // every request through auth before the MCP layer sees it (ADR-0037).
3
+ import {
4
+ createServer,
5
+ type IncomingMessage,
6
+ type ServerResponse,
7
+ } from "node:http";
8
+ import type { TransportFactory } from "../server.js";
9
+ import { assertSafeTransport } from "../guard.js";
10
+ import { authenticate, assertConfigured } from "../auth/{auth}.js";
11
+
12
+ /**
13
+ * Streamable-HTTP transport factory. Unlike stdio (a one-shot subprocess pipe),
14
+ * the HTTP transport is request-driven: it needs a Node http server to feed it
15
+ * requests via `transport.handleRequest(req, res)`. This factory builds a
16
+ * stateless transport plus a Node http listener (authenticating every request
17
+ * first), then ties the listener into the transport's own lifecycle:
18
+ *
19
+ * - The port opens in `transport.start()`, which `server.connect()` invokes
20
+ * only AFTER it has wired `onmessage`/`onclose`/`onerror` — so no request can
21
+ * reach `handleRequest` before the transport is connected to the McpServer.
22
+ * - `transport.close()` shuts the listener down, so stopping the MCP server
23
+ * frees the port and lets the process exit (no dangling listener, no
24
+ * EADDRINUSE on restart).
25
+ * - A bind failure (e.g. EADDRINUSE) rejects `start()` with a clear error
26
+ * rather than crashing the process with an unhandled `'error'` event.
27
+ *
28
+ * The SDK is dynamically imported (ADR-0010). For stateful multi-client
29
+ * deployments, pass a `sessionIdGenerator` instead of `undefined` (see SDK docs).
30
+ */
31
+ export const createHttpTransport: TransportFactory = async () => {
32
+ // Defense-in-depth: refuse to expose the server over the network without auth
33
+ // (even if MCP_AUTH_MODE was cleared in a hand-edited .env), and fail fast when
34
+ // the chosen auth's secret is unset — otherwise the server would start and
35
+ // silently deny every request.
36
+ assertSafeTransport(process.env);
37
+ assertConfigured();
38
+
39
+ const { StreamableHTTPServerTransport } = await import(
40
+ "@modelcontextprotocol/sdk/server/streamableHttp.js"
41
+ );
42
+ const transport = new StreamableHTTPServerTransport({
43
+ sessionIdGenerator: undefined, // stateless: one transport, no session tracking
44
+ });
45
+
46
+ const port = Number(process.env.MCP_HTTP_PORT) || 3333;
47
+ const httpServer = createServer(
48
+ async (req: IncomingMessage, res: ServerResponse) => {
49
+ try {
50
+ if (!(await authenticate(req))) {
51
+ res.writeHead(401, { "content-type": "application/json" });
52
+ res.end(JSON.stringify({ error: "unauthorized" }));
53
+ return;
54
+ }
55
+ await transport.handleRequest(req, res);
56
+ } catch (error: unknown) {
57
+ console.error("[mcp-http] request failed:", error);
58
+ if (!res.headersSent) {
59
+ res.writeHead(500, { "content-type": "application/json" });
60
+ res.end(JSON.stringify({ error: "internal_error" }));
61
+ }
62
+ }
63
+ },
64
+ );
65
+
66
+ // Open the port in start() (run by server.connect() after the message handlers
67
+ // are wired) and surface a bind error there instead of as an unhandled event.
68
+ const baseStart = transport.start.bind(transport);
69
+ transport.start = async () => {
70
+ await baseStart();
71
+ await new Promise<void>((resolve, reject) => {
72
+ const onBindError = (err: Error) => reject(err);
73
+ httpServer.once("error", onBindError);
74
+ httpServer.listen(port, () => {
75
+ httpServer.removeListener("error", onBindError);
76
+ httpServer.on("error", (err) =>
77
+ console.error("[mcp-http] server error:", err),
78
+ );
79
+ console.error(`[mcp-http] listening on :${port}`);
80
+ resolve();
81
+ });
82
+ });
83
+ };
84
+
85
+ // Free the listener when the MCP server shuts down, so the port is released
86
+ // and the event loop can exit.
87
+ const baseClose = transport.close.bind(transport);
88
+ transport.close = async () => {
89
+ await new Promise<void>((resolve) => httpServer.close(() => resolve()));
90
+ await baseClose();
91
+ };
92
+
93
+ return transport;
94
+ };
@@ -0,0 +1,15 @@
1
+ // @hexagen-server-only
2
+ /**
3
+ * Static transport registrations. The base registers `stdio`; the
4
+ * `mcp-server-http` addon re-emits this file to add `streamable-http` — the
5
+ * seam's intended extension point (see the base file's note). Re-emitting this
6
+ * tiny declarative file is the minimal-blast-radius way to extend the registry
7
+ * without touching the composition root (`server.ts`). If you had hand-edited
8
+ * it, your version is preserved as a `.hexagen-update` conflict copy.
9
+ */
10
+ import { registerTransport } from "../server.js";
11
+ import { createStdioTransport } from "./stdio.js";
12
+ import { createHttpTransport } from "./http.js";
13
+
14
+ registerTransport("stdio", createStdioTransport);
15
+ registerTransport("streamable-http", createHttpTransport);
@@ -0,0 +1,56 @@
1
+ {
2
+ "id": "mcp-server-http",
3
+ "name": "MCP Server — HTTP transport + auth",
4
+ "description": "Adds a network-exposed Streamable-HTTP transport with always-on auth (bearer or OAuth) to the mcp-server base. A transport-factory addon: it plugs into the base's registerTransport seam (no server.ts rewrite) and ships a defense-in-depth startup guard.",
5
+ "version": "1.0.0",
6
+ "requires": ["mcp-server"],
7
+ "conflicts": [],
8
+ "branch": "feature/generator-template-mcp-server-http",
9
+ "questions": [
10
+ {
11
+ "id": "auth",
12
+ "type": "select",
13
+ "prompt": "Auth for the HTTP transport?",
14
+ "options": ["bearer", "oauth"],
15
+ "default": "bearer"
16
+ },
17
+ {
18
+ "id": "http_port",
19
+ "type": "text",
20
+ "prompt": "HTTP port?",
21
+ "default": "3333"
22
+ }
23
+ ],
24
+ "envVars": ["MCP_TRANSPORT", "MCP_HTTP_PORT", "MCP_AUTH_MODE"],
25
+ "outputs": [
26
+ "src/infrastructure/mcp/transport/http.ts",
27
+ "src/infrastructure/mcp/transport/register-transports.ts",
28
+ "src/infrastructure/mcp/guard.ts",
29
+ "src/infrastructure/mcp/guard.test.ts",
30
+ ".env.mcp-http.example",
31
+ {
32
+ "path": "src/infrastructure/mcp/auth/bearer.ts",
33
+ "when": { "answer": "auth", "equals": "bearer" }
34
+ },
35
+ {
36
+ "path": "src/infrastructure/mcp/auth/bearer.test.ts",
37
+ "when": { "answer": "auth", "equals": "bearer" }
38
+ },
39
+ {
40
+ "path": "src/infrastructure/mcp/auth/oauth.ts",
41
+ "when": { "answer": "auth", "equals": "oauth" }
42
+ },
43
+ {
44
+ "path": "src/infrastructure/mcp/auth/oauth.test.ts",
45
+ "when": { "answer": "auth", "equals": "oauth" }
46
+ }
47
+ ],
48
+ "checklist": [
49
+ "Set MCP_TRANSPORT=streamable-http, MCP_HTTP_PORT, and MCP_AUTH_MODE in .env (see .env.mcp-http.example).",
50
+ "Never run streamable-http with MCP_AUTH_MODE unset or 'none' — the server refuses to start (guard.ts).",
51
+ "bearer: set MCP_BEARER_TOKEN to the shared secret clients send as 'Authorization: Bearer <token>' — the server refuses to start if it is unset.",
52
+ "oauth: set MCP_OAUTH_ISSUER_URL (the server refuses to start without it) and implement token verification in src/infrastructure/mcp/auth/oauth.ts — it fail-closes (denies all) until you do; install `jose` for JWKS verification.",
53
+ "Verify: start the server (npx tsx bin/cli.ts) and POST an MCP initialize to http://localhost:<port> with a valid Authorization header.",
54
+ "For remote deploy, containerize with the `docker` template."
55
+ ]
56
+ }
@@ -3,6 +3,8 @@
3
3
  "name": "Microsoft Entra ID (Azure AD)",
4
4
  "description": "Entra ID confidential-client PKCE flow, Microsoft Graph profile + group fetch, AAD group-to-role mapping, AES-256-GCM stateless session cookie, and a root middleware that protects configured paths while still honouring AUTH_MODE=mock as a dev short-circuit.",
5
5
  "version": "2.0.0",
6
+ "provides": "platform.auth",
7
+ "scope": "project",
6
8
  "requires": ["shared-types", "auth-mock", "env-setup"],
7
9
  "conflicts": [
8
10
  "nextauth",
@@ -3,6 +3,8 @@
3
3
  "name": "Auth.js (NextAuth v5)",
4
4
  "description": "Standalone Auth.js v5 setup: Google/GitHub/Credentials providers, Edge-safe config split, JWT session strategy, typed session.user, and matcher-based route protection middleware",
5
5
  "version": "1.0.0",
6
+ "provides": "platform.auth",
7
+ "scope": "project",
6
8
  "requires": ["env-setup"],
7
9
  "conflicts": [
8
10
  "auth-mock",
@@ -2,6 +2,8 @@
2
2
  "id": "observability",
3
3
  "name": "Observability",
4
4
  "description": "Structured JSON logging, correlation IDs via AsyncLocalStorage, request logger middleware, /api/health endpoint",
5
+ "provides": "platform.observability",
6
+ "scope": "project",
5
7
  "version": "1.0.0",
6
8
  "requires": [],
7
9
  "conflicts": [],
@@ -39,11 +41,17 @@
39
41
  ".env.observability.example",
40
42
  {
41
43
  "path": "instrumentation.ts",
42
- "when": { "answer": "otel", "equals": true }
44
+ "when": {
45
+ "answer": "otel",
46
+ "equals": true
47
+ }
43
48
  },
44
49
  {
45
50
  "path": ".env.otel.example",
46
- "when": { "answer": "otel", "equals": true }
51
+ "when": {
52
+ "answer": "otel",
53
+ "equals": true
54
+ }
47
55
  }
48
56
  ],
49
57
  "checklist": [
@@ -2,6 +2,8 @@
2
2
  "id": "rate-limiting",
3
3
  "name": "Rate Limiting",
4
4
  "description": "Differentiated middleware (text/image/general), session+IP hybrid identification, configurable limits, debug logging",
5
+ "provides": "platform.rate-limiting",
6
+ "scope": "project",
5
7
  "version": "1.0.0",
6
8
  "requires": ["env-setup"],
7
9
  "conflicts": [],
@@ -3,6 +3,8 @@
3
3
  "name": "Shared Types",
4
4
  "description": "Foundation library shared by every auth template: UserContext domain type, a runtime-overridable MOCK_USER for development, and generic AES-256-GCM session-cookie helpers (including the canonical COOKIE_NAME resolver). Carries no opinion about mock vs. real auth.",
5
5
  "version": "1.0.0",
6
+ "provides": "kernel.user-context",
7
+ "scope": "shared",
6
8
  "requires": ["env-setup"],
7
9
  "conflicts": [],
8
10
  "questions": [
@@ -3,6 +3,8 @@
3
3
  "name": "Supabase",
4
4
  "description": "SSR-safe browser/server/admin clients, Result-based storage helpers, RLS examples, type generation, optional Drizzle ORM and realtime. Pure storage/database layer — no auth code. Add the supabase-auth template to layer @supabase/ssr-based session middleware on top.",
5
5
  "version": "3.0.0",
6
+ "provides": "persistence.out-adapter",
7
+ "scope": "context",
6
8
  "requires": ["env-setup"],
7
9
  "conflicts": [],
8
10
  "questions": [
@@ -3,6 +3,8 @@
3
3
  "name": "Supabase Auth",
4
4
  "description": "Authentication provider built on Supabase: @supabase/ssr root middleware that refreshes the session and protects configured paths, getCurrentUser/requireAuth helpers, and /api/auth/me — all honouring AUTH_MODE=mock as a dev short-circuit. Layer on top of the supabase template.",
5
5
  "version": "1.0.0",
6
+ "provides": "platform.auth",
7
+ "scope": "project",
6
8
  "requires": ["supabase", "shared-types", "auth-mock", "env-setup"],
7
9
  "conflicts": [
8
10
  "nextauth",
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Validate a candidate toolchain version: must be a FULL SemVer 2.0.0 version
3
+ * string and must not be the degenerate `0.0.0` that the old silent fallback
4
+ * produced. Returns the version on success, throws with the offending source
5
+ * on failure. Shared by the runtime resolver below AND the tsup build gate
6
+ * (tsup.config.ts imports it), so the two cannot drift apart.
7
+ */
8
+ export declare function assertValidToolchainVersion(version: unknown, source: string): string;
9
+ /**
10
+ * Resolve the engine's own version (e.g. `0.7.0`). Throws instead of
11
+ * returning a fallback — callers that scaffold pins must abort loudly.
12
+ */
13
+ export declare function resolveToolchainVersion(): string;
14
+ //# sourceMappingURL=toolchain-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolchain-version.d.ts","sourceRoot":"","sources":["../src/toolchain-version.ts"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAcR;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CA6BhD"}
@@ -1,5 +1,5 @@
1
1
  export type AppDriver = "next.js" | "fastify" | "express" | "cli";
2
- export type AppFramework = "next.js" | "fastify" | "express" | "plain-ts";
2
+ export type AppFramework = "next.js" | "fastify" | "express" | "plain-ts" | "nitro";
3
3
  export interface App {
4
4
  name: string;
5
5
  driver?: AppDriver;
@@ -16,6 +16,17 @@ export interface AppFrameworkConfig {
16
16
  packageJson?: import("./monorepo.js").FileTemplate;
17
17
  tsConfig?: import("./monorepo.js").TsConfigTemplate;
18
18
  entryPoint?: AppEntryPoint;
19
+ /**
20
+ * Additional root-relative files beyond the single `entryPoint` (e.g. Nitro's
21
+ * `nitro.config.ts`). Each is interpolated and written with the same path
22
+ * containment as `entryPoint`.
23
+ *
24
+ * Like the other fields, a manifest override REPLACES this whole array (no
25
+ * merge): if you override a built-in framework's config and still want its
26
+ * extra files (e.g. keep `nitro.config.ts`), re-include them. Omitting the key
27
+ * keeps the built-in's `extraFiles`; setting `[]` removes them all.
28
+ */
29
+ extraFiles?: AppEntryPoint[];
19
30
  }
20
31
  export interface AppsGeneratorConfig {
21
32
  enabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/types/manifest/apps.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;AAElE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAE1E,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,OAAO,eAAe,EAAE,YAAY,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,eAAe,EAAE,gBAAgB,CAAC;IACpD,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC;CAChE"}
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/types/manifest/apps.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;AAElE,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,OAAO,eAAe,EAAE,YAAY,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,eAAe,EAAE,gBAAgB,CAAC;IACpD,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC;CAChE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexagen-monaco/sync",
3
- "version": "0.5.2",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "description": "HexaGen Sync Engine — Generate and sync modular monorepos",
6
6
  "keywords": [
@@ -1,23 +0,0 @@
1
- /**
2
- * Stub Generation Use Case
3
- *
4
- * Orchestrates the stub file generation process for a bounded context.
5
- * Handles template resolution, naming cascade, emission planning,
6
- * and file emission.
7
- */
8
- import type { BoundedContext, StubsConfig } from "../../types/manifest.js";
9
- import { type GeneratorResult } from "../../results.js";
10
- import type { FileSystemPort } from "../ports/out/file-system.port.js";
11
- import type { LoggerPort } from "@hexagen/shared";
12
- export interface StubGenerationOptions {
13
- moduleDir: string;
14
- moduleName: string;
15
- stubsConfig: StubsConfig | undefined;
16
- context: BoundedContext;
17
- }
18
- export interface StubGenerationResult {
19
- result: GeneratorResult;
20
- skippedCount: number;
21
- }
22
- export declare function generateStubs(options: StubGenerationOptions, fsPort: FileSystemPort, logger: LoggerPort): Promise<StubGenerationResult>;
23
- //# sourceMappingURL=stub-generation.use-case.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stub-generation.use-case.d.ts","sourceRoot":"","sources":["../../../src/application/use-cases/stub-generation.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAalD,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB;AA8BD,wBAAsB,aAAa,CACjC,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,oBAAoB,CAAC,CAwE/B"}
@@ -1,7 +0,0 @@
1
- import { type GeneratorResult } from "../results.js";
2
- import { type PackageAudit, type MigrationConfig, type ReportRecorder } from "./migration-audit.js";
3
- export { auditPackages, generateMigrationReport } from "./migration-audit.js";
4
- export type { PackageAudit, MigrationConfig } from "./migration-audit.js";
5
- declare function migratePackage(audit: PackageAudit, config: MigrationConfig, reporter: ReportRecorder): Promise<GeneratorResult>;
6
- export { migratePackage };
7
- //# sourceMappingURL=migration-assistant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration-assistant.d.ts","sourceRoot":"","sources":["../../src/generators/migration-assistant.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE1E,iBAAe,cAAc,CAC3B,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,CAsG1B;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,28 +0,0 @@
1
- import type { SyncConfig } from "../config.js";
2
- import type { ReportRecorder } from "../domain/types.js";
3
- interface PackageAudit {
4
- packageName: string;
5
- packagePath: string;
6
- missingAdapters: string[];
7
- missingWiring: string[];
8
- missingTestDoubles: string[];
9
- missingMcpTools: string[];
10
- missingTests: string[];
11
- }
12
- interface MigrationConfig {
13
- enabled?: boolean;
14
- dryRun?: boolean;
15
- packages?: string[];
16
- generateAdapters?: boolean;
17
- generateWiring?: boolean;
18
- generateTestDoubles?: boolean;
19
- generateMcpTools?: boolean;
20
- generateTests?: boolean;
21
- }
22
- declare function auditPackages(config: SyncConfig, reporter: ReportRecorder): Promise<PackageAudit[]>;
23
- declare function generateMigrationReport(audits: PackageAudit[]): string;
24
- declare function hasIssues(audit: PackageAudit): boolean;
25
- export { auditPackages, generateMigrationReport, hasIssues };
26
- export type { PackageAudit, MigrationConfig };
27
- export type { ReportRecorder } from "../domain/types.js";
28
- //# sourceMappingURL=migration-audit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration-audit.d.ts","sourceRoot":"","sources":["../../src/generators/migration-audit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,iBAAe,aAAa,CAC1B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,EAAE,CAAC,CAuBzB;AAiGD,iBAAS,uBAAuB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CA0D/D;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAQ/C;AAED,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,SAAS,EAAE,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,7 +0,0 @@
1
- declare function generateAdapterStub(adapterName: string): string;
2
- declare function generateWiringStub(packageName: string): string;
3
- declare function generateTestDoubleStub(testDoubleName: string): string;
4
- declare function generateMcpToolsStub(packageName: string): string;
5
- declare function toPascalCase(str: string): string;
6
- export { generateAdapterStub, generateWiringStub, generateTestDoubleStub, generateMcpToolsStub, toPascalCase, };
7
- //# sourceMappingURL=migration-stubs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration-stubs.d.ts","sourceRoot":"","sources":["../../src/generators/migration-stubs.ts"],"names":[],"mappings":"AAAA,iBAAS,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAexD;AAED,iBAAS,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED,iBAAS,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAa9D;AAED,iBAAS,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAYzD;AAED,iBAAS,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKzC;AAED,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,GACb,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { SyncConfig } from "../config.js";
2
- import { type GeneratorResult } from "../results.js";
3
- import { generateEnhancedTestDouble } from "./test-templates/index.js";
4
- import type { ReportRecorder } from "../domain/types.js";
5
- export { generateEnhancedTestDouble };
6
- export declare function generateTests(moduleDir: string, moduleName: string, config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
7
- //# sourceMappingURL=test-generator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-generator.d.ts","sourceRoot":"","sources":["../../src/generators/test-generator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAIL,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAmBzD,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAEtC,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAkI1B"}
@@ -1,2 +0,0 @@
1
- export declare function generateDataBuilder(entity: string): string;
2
- //# sourceMappingURL=data-builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-builder.d.ts","sourceRoot":"","sources":["../../../src/generators/test-templates/data-builder.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAyD1D"}
@@ -1,2 +0,0 @@
1
- export declare function generateEnhancedTestDouble(port: string, methods: string[], scope: string): string;
2
- //# sourceMappingURL=enhanced-test-double.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhanced-test-double.d.ts","sourceRoot":"","sources":["../../../src/generators/test-templates/enhanced-test-double.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EAAE,EACjB,KAAK,EAAE,MAAM,GACZ,MAAM,CAqFR"}
@@ -1,5 +0,0 @@
1
- export { generateUnitTest } from "./unit-test.js";
2
- export { generateIntegrationTest } from "./integration-test.js";
3
- export { generateDataBuilder } from "./data-builder.js";
4
- export { generateEnhancedTestDouble } from "./enhanced-test-double.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/test-templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function generateIntegrationTest(useCase: string): string;
2
- //# sourceMappingURL=integration-test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration-test.d.ts","sourceRoot":"","sources":["../../../src/generators/test-templates/integration-test.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmE/D"}
@@ -1,2 +0,0 @@
1
- export declare function generateUnitTest(useCase: string, outPorts: string[]): string;
2
- //# sourceMappingURL=unit-test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unit-test.d.ts","sourceRoot":"","sources":["../../../src/generators/test-templates/unit-test.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAmG5E"}
@@ -1,20 +0,0 @@
1
- import type { SyncConfig } from "../config.js";
2
- import { type GeneratorResult } from "../results.js";
3
- import type { ReportRecorder } from "../domain/types.js";
4
- /**
5
- * Generate wiring code for a bounded context.
6
- *
7
- * This is the main entry point for the wiring generator. It:
8
- * 1. Reads use case declarations from the manifest
9
- * 2. Generates composition root bindings
10
- * 3. Generates test doubles for ports
11
- * 4. Generates MCP tool registrations
12
- *
13
- * @param moduleDir - Package root directory
14
- * @param moduleName - Bounded context name
15
- * @param config - Sync configuration
16
- * @param report - Optional diagnostic recorder
17
- * @returns Generator result with created/updated files
18
- */
19
- export declare function generateWiring(moduleDir: string, moduleName: string, config: SyncConfig, report?: ReportRecorder): Promise<GeneratorResult>;
20
- //# sourceMappingURL=wiring.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../src/generators/wiring.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA2JzD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAClC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAmK1B"}