@prisma/composer-cli 0.25.0-dev.3 → 0.25.0-dev.5
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/dist/bin.mjs +55 -108
- package/dist/bin.mjs.map +1 -1
- package/dist/{execute-deploy-destroy-Bdi-RiN5-T3tv5DHr.mjs → execute-deploy-destroy-CF6DR7sA-DGs5poBA.mjs} +23 -19
- package/dist/execute-deploy-destroy-CF6DR7sA-DGs5poBA.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-Bdi-RiN5-BBrZ9a8c.mjs → execute-deploy-destroy-CF6DR7sA-jdelm-y5.mjs} +22 -18
- package/dist/execute-deploy-destroy-CF6DR7sA-jdelm-y5.mjs.map +1 -0
- package/dist/{execute-dev-BLCK5wF7-B-fG_E31.mjs → execute-dev-DAIUT0es-CVW9TfgX.mjs} +179 -130
- package/dist/execute-dev-DAIUT0es-CVW9TfgX.mjs.map +1 -0
- package/dist/{execute-dev-BLCK5wF7-CuzMSK7T.mjs → execute-dev-DAIUT0es-DTdnJdOi.mjs} +100 -131
- package/dist/{execute-dev-BLCK5wF7-B-fG_E31.mjs.map → execute-dev-DAIUT0es-DTdnJdOi.mjs.map} +1 -1
- package/dist/{execute-log-B_zCJ17b-C4a0uxJj.mjs → execute-log-PLs9-Qn3-BUBx5KmY.mjs} +7 -10
- package/dist/execute-log-PLs9-Qn3-BUBx5KmY.mjs.map +1 -0
- package/dist/{execute-log-B_zCJ17b-BrLUt7vo.mjs → execute-log-PLs9-Qn3-D8DRuvDr.mjs} +6 -9
- package/dist/execute-log-PLs9-Qn3-D8DRuvDr.mjs.map +1 -0
- package/dist/{family-DEJvITUc-DHsvEGPB.d.mts → family-DB2Uf88c-DWEm0USb.d.mts} +71 -14
- package/dist/{family-DEJvITUc-DHsvEGPB.d.mts.map → family-DB2Uf88c-DWEm0USb.d.mts.map} +1 -1
- package/dist/family.d.mts +3 -13
- package/dist/family.d.mts.map +1 -1
- package/dist/family.mjs +55 -108
- package/dist/family.mjs.map +1 -1
- package/dist/generate-dev-stack-CPpjJdTG-W0N0YgsI.mjs +87 -0
- package/dist/generate-dev-stack-CPpjJdTG-W0N0YgsI.mjs.map +1 -0
- package/dist/{local-target-hoEGqgVA.mjs → local-target-B9cBl_6r.mjs} +3 -3
- package/dist/local-target-B9cBl_6r.mjs.map +1 -0
- package/dist/{local-target-BOGjATc2.mjs → local-target-P4-n1Ovh.mjs} +3 -3
- package/dist/local-target-P4-n1Ovh.mjs.map +1 -0
- package/dist/{pipeline-C7gNjMzJ-CMqZQxqM.mjs → pipeline-DAYhea3J-BEnHHWp8.mjs} +36 -261
- package/dist/{pipeline-C7gNjMzJ-CMqZQxqM.mjs.map → pipeline-DAYhea3J-BEnHHWp8.mjs.map} +1 -1
- package/dist/{pipeline-C7gNjMzJ-CixaMvnR.mjs → pipeline-DAYhea3J-uuBciVDS.mjs} +36 -262
- package/dist/{pipeline-C7gNjMzJ-CixaMvnR.mjs.map → pipeline-DAYhea3J-uuBciVDS.mjs.map} +1 -1
- package/dist/result-D9vIrN7i.mjs +432 -0
- package/dist/result-D9vIrN7i.mjs.map +1 -0
- package/dist/{result-B874OKwb.mjs → result-SF9LFOuR.mjs} +207 -129
- package/dist/result-SF9LFOuR.mjs.map +1 -0
- package/dist/{run-alchemy-pANK8XNX-BH1wC0r6.mjs → run-alchemy-pANK8XNX-CqXC1tbs.mjs} +2 -2
- package/dist/{run-alchemy-pANK8XNX-BH1wC0r6.mjs.map → run-alchemy-pANK8XNX-CqXC1tbs.mjs.map} +1 -1
- package/dist/{run-alchemy-pANK8XNX-XcCQncKN.mjs → run-alchemy-pANK8XNX-T_pHNDBo.mjs} +2 -2
- package/dist/{run-alchemy-pANK8XNX-XcCQncKN.mjs.map → run-alchemy-pANK8XNX-T_pHNDBo.mjs.map} +1 -1
- package/dist/shared-BAIiDgXa-DYP7EOSk.mjs +33 -0
- package/dist/shared-BAIiDgXa-DYP7EOSk.mjs.map +1 -0
- package/dist/testing.d.mts +16 -2
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +3 -2
- package/dist/testing.mjs.map +1 -1
- package/package.json +4 -5
- package/src/exports/testing.ts +3 -1
- package/dist/execute-deploy-destroy-Bdi-RiN5-BBrZ9a8c.mjs.map +0 -1
- package/dist/execute-deploy-destroy-Bdi-RiN5-T3tv5DHr.mjs.map +0 -1
- package/dist/execute-dev-BLCK5wF7-CuzMSK7T.mjs.map +0 -1
- package/dist/execute-log-B_zCJ17b-BrLUt7vo.mjs.map +0 -1
- package/dist/execute-log-B_zCJ17b-C4a0uxJj.mjs.map +0 -1
- package/dist/local-target-BOGjATc2.mjs.map +0 -1
- package/dist/local-target-hoEGqgVA.mjs.map +0 -1
- package/dist/result-B874OKwb.mjs.map +0 -1
- package/dist/result-sR7PBi61.mjs +0 -229
- package/dist/result-sR7PBi61.mjs.map +0 -1
- package/dist/shared-BTnATsqm-BH4axbJg.mjs +0 -158
- package/dist/shared-BTnATsqm-BH4axbJg.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as resolveAppIdentity } from "./pipeline-
|
|
4
|
-
import { n as withEmulatorRetry, r as DEV_DIR, t as resolveLocalTargets } from "./local-target-
|
|
1
|
+
import { c as CliStructuredError, n as ok, t as notOk } from "./result-D9vIrN7i.mjs";
|
|
2
|
+
import { r as toStructured } from "./shared-BAIiDgXa-DYP7EOSk.mjs";
|
|
3
|
+
import { t as resolveAppIdentity } from "./pipeline-DAYhea3J-BEnHHWp8.mjs";
|
|
4
|
+
import { n as withEmulatorRetry, r as DEV_DIR, t as resolveLocalTargets } from "./local-target-B9cBl_6r.mjs";
|
|
5
5
|
import * as path from "node:path";
|
|
6
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-log-
|
|
6
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-log-PLs9-Qn3.mjs
|
|
7
7
|
/**
|
|
8
8
|
* The log executor — run-log.ts's attach-and-tail (config → localTarget →
|
|
9
9
|
* container → attach → logs) with console and signal handling removed: the
|
|
@@ -113,10 +113,7 @@ async function executeLog(input, deps, cwd) {
|
|
|
113
113
|
const attachments = [];
|
|
114
114
|
let services;
|
|
115
115
|
try {
|
|
116
|
-
const identity = deps.identity ?? await resolveAppIdentity(input.entry, input.name, cwd,
|
|
117
|
-
config: deps.config,
|
|
118
|
-
configPath: deps.configPath
|
|
119
|
-
});
|
|
116
|
+
const identity = deps.identity ?? await resolveAppIdentity(input.entry, input.name, cwd, input.config);
|
|
120
117
|
name = identity.name;
|
|
121
118
|
const resolved = await resolveLocalTargets(identity.config);
|
|
122
119
|
for (const target of resolved.values()) try {
|
|
@@ -155,4 +152,4 @@ async function executeLog(input, deps, cwd) {
|
|
|
155
152
|
//#endregion
|
|
156
153
|
export { LOG_QUEUE_LIMIT, executeLog };
|
|
157
154
|
|
|
158
|
-
//# sourceMappingURL=execute-log-
|
|
155
|
+
//# sourceMappingURL=execute-log-PLs9-Qn3-BUBx5KmY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-log-PLs9-Qn3-BUBx5KmY.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-log-PLs9-Qn3.mjs"],"sourcesContent":["import { r as toStructured } from \"./shared-BAIiDgXa.mjs\";\nimport { t as resolveAppIdentity } from \"./pipeline-DAYhea3J.mjs\";\nimport { t as withEmulatorRetry } from \"./emulator-retry-DGonap4g.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as path from \"node:path\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { DEV_DIR, resolveLocalTargets } from \"@internal/core/local-target\";\n//#region src/operations/execute-log.ts\n/**\n* The log executor — run-log.ts's attach-and-tail (config → localTarget →\n* container → attach → logs) with console and signal handling removed: the\n* merged stream comes back as an AsyncIterable, ended by the caller's\n* AbortSignal. Reached only by lazy import from log.ts — this module's\n* static graph transitively loads alchemy's provider tree, so the control\n* entry must never import it statically.\n*/\nfunction failureMessage(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n/** The merge queue's bound: past this, the oldest line is dropped and the\n* consumer is told via a `lines-dropped` event — a log viewer tolerates loss\n* better than the host tolerates unbounded memory growth. Exported so tests\n* can size their floods relative to the bound. */\nconst LOG_QUEUE_LIMIT = 1e4;\n/**\n* Merges every attachment's log stream into one iterable: one pump per\n* attachment pushing into a shared bounded queue. A pump's throw becomes a\n* `stream-failed` event and ends that pump only; the merged iterable ends\n* when `input.signal` aborts, when every pump ends, or when the consumer\n* stops iterating (an early `break` aborts an internal controller so the\n* pumps tear down — the generator never waits on a source that will not\n* end). No event is delivered after the iterable has ended. Address\n* filtering and `tail` apply exactly as the CLI always has.\n*/\nasync function* mergeLogStreams(attachments, input) {\n\tconst controller = new AbortController();\n\tconst { signal } = controller;\n\tconst abortInternal = () => controller.abort();\n\tif (input.signal?.aborted === true) controller.abort();\n\tinput.signal?.addEventListener(\"abort\", abortInternal, { once: true });\n\tconst queue = [];\n\tlet dropped = 0;\n\tlet done = false;\n\tlet active = attachments.length;\n\tlet wake;\n\tconst notify = () => {\n\t\twake?.();\n\t\twake = void 0;\n\t};\n\tsignal.addEventListener(\"abort\", notify, { once: true });\n\tconst emit = (event) => {\n\t\tif (done) return;\n\t\ttry {\n\t\t\tinput.onEvent?.(event);\n\t\t} catch {}\n\t};\n\tconst pump = async (attachment) => {\n\t\ttry {\n\t\t\tfor await (const { service, line } of attachment.logs(signal, { tail: input.tail ?? 0 })) {\n\t\t\t\tif (signal.aborted) return;\n\t\t\t\tif (input.address !== void 0 && service !== input.address) continue;\n\t\t\t\tif (queue.length >= 1e4) {\n\t\t\t\t\tqueue.shift();\n\t\t\t\t\tdropped += 1;\n\t\t\t\t}\n\t\t\t\tqueue.push({\n\t\t\t\t\tservice,\n\t\t\t\t\tline\n\t\t\t\t});\n\t\t\t\tnotify();\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (!signal.aborted) emit({\n\t\t\t\tkind: \"stream-failed\",\n\t\t\t\tmessage: failureMessage(error)\n\t\t\t});\n\t\t} finally {\n\t\t\tactive -= 1;\n\t\t\tnotify();\n\t\t}\n\t};\n\tfor (const attachment of attachments) pump(attachment);\n\ttry {\n\t\twhile (true) {\n\t\t\tlet next = queue.shift();\n\t\t\twhile (next !== void 0) {\n\t\t\t\tif (dropped > 0) {\n\t\t\t\t\tconst count = dropped;\n\t\t\t\t\tdropped = 0;\n\t\t\t\t\temit({\n\t\t\t\t\t\tkind: \"lines-dropped\",\n\t\t\t\t\t\tcount\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tyield next;\n\t\t\t\tnext = queue.shift();\n\t\t\t}\n\t\t\tif (signal.aborted || active === 0) break;\n\t\t\tawait new Promise((resolve) => {\n\t\t\t\twake = resolve;\n\t\t\t});\n\t\t}\n\t} finally {\n\t\tdone = true;\n\t\tcontroller.abort();\n\t\tsignal.removeEventListener(\"abort\", notify);\n\t\tinput.signal?.removeEventListener(\"abort\", abortInternal);\n\t}\n}\n/** Resolves the running app and attaches to its log streams; the caller consumes `lines`. */\nasync function executeLog(input, deps, cwd) {\n\tif (process.platform === \"win32\") return notOk(new CliStructuredError(\"LOG.PLATFORM_UNSUPPORTED\", \"local dev is not supported on Windows yet.\"));\n\tconst devDir = path.join(cwd, DEV_DIR);\n\tlet name;\n\tconst attachments = [];\n\tlet services;\n\ttry {\n\t\tconst identity = deps.identity ?? await resolveAppIdentity(input.entry, input.name, cwd, input.config);\n\t\tname = identity.name;\n\t\tconst resolved = await resolveLocalTargets(identity.config);\n\t\tfor (const target of resolved.values()) try {\n\t\t\tconst container = await target.container.ensure({\n\t\t\t\tappName: name,\n\t\t\t\tstage: void 0\n\t\t\t});\n\t\t\tattachments.push(await withEmulatorRetry(() => target.attach({\n\t\t\t\tcontainer,\n\t\t\t\tdevDir\n\t\t\t})));\n\t\t} catch (error) {\n\t\t\tthrow toStructured(\"LOG.ATTACH_FAILED\", error);\n\t\t}\n\t\ttry {\n\t\t\tservices = (await Promise.all(attachments.map((a) => withEmulatorRetry(() => a.endpoints())))).flat();\n\t\t} catch (error) {\n\t\t\tthrow toStructured(\"LOG.ATTACH_FAILED\", error);\n\t\t}\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n\tif (services.length === 0) return ok({\n\t\tappName: name,\n\t\tservices: [],\n\t\tlines: mergeLogStreams([], input)\n\t});\n\tif (input.address !== void 0 && !services.some((s) => s.address === input.address)) return notOk(new CliStructuredError(\"LOG.ADDRESS_UNKNOWN\", `no service \"${input.address}\" in \"${name}\" — running services: ${services.map((s) => s.address).join(\", \")}.`));\n\treturn ok({\n\t\tappName: name,\n\t\tservices,\n\t\tlines: mergeLogStreams(attachments, input)\n\t});\n}\n//#endregion\nexport { LOG_QUEUE_LIMIT, executeLog };\n\n//# sourceMappingURL=execute-log-PLs9-Qn3.mjs.map"],"mappings":";;;;;;;;;;;;;;AAgBA,SAAS,eAAe,OAAO;CAC9B,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC7D;;;;;AAKA,MAAM,kBAAkB;;;;;;;;;;;AAWxB,gBAAgB,gBAAgB,aAAa,OAAO;CACnD,MAAM,aAAa,IAAI,gBAAgB;CACvC,MAAM,EAAE,WAAW;CACnB,MAAM,sBAAsB,WAAW,MAAM;CAC7C,IAAI,MAAM,QAAQ,YAAY,MAAM,WAAW,MAAM;CACrD,MAAM,QAAQ,iBAAiB,SAAS,eAAe,EAAE,MAAM,KAAK,CAAC;CACrE,MAAM,QAAQ,CAAC;CACf,IAAI,UAAU;CACd,IAAI,OAAO;CACX,IAAI,SAAS,YAAY;CACzB,IAAI;CACJ,MAAM,eAAe;EACpB,OAAO;EACP,OAAO,KAAK;CACb;CACA,OAAO,iBAAiB,SAAS,QAAQ,EAAE,MAAM,KAAK,CAAC;CACvD,MAAM,QAAQ,UAAU;EACvB,IAAI,MAAM;EACV,IA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ry, r as DEV_DIR, t as resolveLocalTargets } from "./local-target-
|
|
1
|
+
import { d as CliStructuredError, n as ok, t as notOk, u as toStructured } from "./result-SF9LFOuR.mjs";
|
|
2
|
+
import { t as resolveAppIdentity } from "./pipeline-DAYhea3J-uuBciVDS.mjs";
|
|
3
|
+
import { n as withEmulatorRetry, r as DEV_DIR, t as resolveLocalTargets } from "./local-target-P4-n1Ovh.mjs";
|
|
4
4
|
import * as path from "node:path";
|
|
5
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-log-
|
|
5
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-log-PLs9-Qn3.mjs
|
|
6
6
|
/**
|
|
7
7
|
* The log executor — run-log.ts's attach-and-tail (config → localTarget →
|
|
8
8
|
* container → attach → logs) with console and signal handling removed: the
|
|
@@ -112,10 +112,7 @@ async function executeLog(input, deps, cwd) {
|
|
|
112
112
|
const attachments = [];
|
|
113
113
|
let services;
|
|
114
114
|
try {
|
|
115
|
-
const identity = deps.identity ?? await resolveAppIdentity(input.entry, input.name, cwd,
|
|
116
|
-
config: deps.config,
|
|
117
|
-
configPath: deps.configPath
|
|
118
|
-
});
|
|
115
|
+
const identity = deps.identity ?? await resolveAppIdentity(input.entry, input.name, cwd, input.config);
|
|
119
116
|
name = identity.name;
|
|
120
117
|
const resolved = await resolveLocalTargets(identity.config);
|
|
121
118
|
for (const target of resolved.values()) try {
|
|
@@ -154,4 +151,4 @@ async function executeLog(input, deps, cwd) {
|
|
|
154
151
|
//#endregion
|
|
155
152
|
export { LOG_QUEUE_LIMIT, executeLog };
|
|
156
153
|
|
|
157
|
-
//# sourceMappingURL=execute-log-
|
|
154
|
+
//# sourceMappingURL=execute-log-PLs9-Qn3-D8DRuvDr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-log-PLs9-Qn3-D8DRuvDr.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-log-PLs9-Qn3.mjs"],"sourcesContent":["import { r as toStructured } from \"./shared-BAIiDgXa.mjs\";\nimport { t as resolveAppIdentity } from \"./pipeline-DAYhea3J.mjs\";\nimport { t as withEmulatorRetry } from \"./emulator-retry-DGonap4g.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as path from \"node:path\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { DEV_DIR, resolveLocalTargets } from \"@internal/core/local-target\";\n//#region src/operations/execute-log.ts\n/**\n* The log executor — run-log.ts's attach-and-tail (config → localTarget →\n* container → attach → logs) with console and signal handling removed: the\n* merged stream comes back as an AsyncIterable, ended by the caller's\n* AbortSignal. Reached only by lazy import from log.ts — this module's\n* static graph transitively loads alchemy's provider tree, so the control\n* entry must never import it statically.\n*/\nfunction failureMessage(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n/** The merge queue's bound: past this, the oldest line is dropped and the\n* consumer is told via a `lines-dropped` event — a log viewer tolerates loss\n* better than the host tolerates unbounded memory growth. Exported so tests\n* can size their floods relative to the bound. */\nconst LOG_QUEUE_LIMIT = 1e4;\n/**\n* Merges every attachment's log stream into one iterable: one pump per\n* attachment pushing into a shared bounded queue. A pump's throw becomes a\n* `stream-failed` event and ends that pump only; the merged iterable ends\n* when `input.signal` aborts, when every pump ends, or when the consumer\n* stops iterating (an early `break` aborts an internal controller so the\n* pumps tear down — the generator never waits on a source that will not\n* end). No event is delivered after the iterable has ended. Address\n* filtering and `tail` apply exactly as the CLI always has.\n*/\nasync function* mergeLogStreams(attachments, input) {\n\tconst controller = new AbortController();\n\tconst { signal } = controller;\n\tconst abortInternal = () => controller.abort();\n\tif (input.signal?.aborted === true) controller.abort();\n\tinput.signal?.addEventListener(\"abort\", abortInternal, { once: true });\n\tconst queue = [];\n\tlet dropped = 0;\n\tlet done = false;\n\tlet active = attachments.length;\n\tlet wake;\n\tconst notify = () => {\n\t\twake?.();\n\t\twake = void 0;\n\t};\n\tsignal.addEventListener(\"abort\", notify, { once: true });\n\tconst emit = (event) => {\n\t\tif (done) return;\n\t\ttry {\n\t\t\tinput.onEvent?.(event);\n\t\t} catch {}\n\t};\n\tconst pump = async (attachment) => {\n\t\ttry {\n\t\t\tfor await (const { service, line } of attachment.logs(signal, { tail: input.tail ?? 0 })) {\n\t\t\t\tif (signal.aborted) return;\n\t\t\t\tif (input.address !== void 0 && service !== input.address) continue;\n\t\t\t\tif (queue.length >= 1e4) {\n\t\t\t\t\tqueue.shift();\n\t\t\t\t\tdropped += 1;\n\t\t\t\t}\n\t\t\t\tqueue.push({\n\t\t\t\t\tservice,\n\t\t\t\t\tline\n\t\t\t\t});\n\t\t\t\tnotify();\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (!signal.aborted) emit({\n\t\t\t\tkind: \"stream-failed\",\n\t\t\t\tmessage: failureMessage(error)\n\t\t\t});\n\t\t} finally {\n\t\t\tactive -= 1;\n\t\t\tnotify();\n\t\t}\n\t};\n\tfor (const attachment of attachments) pump(attachment);\n\ttry {\n\t\twhile (true) {\n\t\t\tlet next = queue.shift();\n\t\t\twhile (next !== void 0) {\n\t\t\t\tif (dropped > 0) {\n\t\t\t\t\tconst count = dropped;\n\t\t\t\t\tdropped = 0;\n\t\t\t\t\temit({\n\t\t\t\t\t\tkind: \"lines-dropped\",\n\t\t\t\t\t\tcount\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tyield next;\n\t\t\t\tnext = queue.shift();\n\t\t\t}\n\t\t\tif (signal.aborted || active === 0) break;\n\t\t\tawait new Promise((resolve) => {\n\t\t\t\twake = resolve;\n\t\t\t});\n\t\t}\n\t} finally {\n\t\tdone = true;\n\t\tcontroller.abort();\n\t\tsignal.removeEventListener(\"abort\", notify);\n\t\tinput.signal?.removeEventListener(\"abort\", abortInternal);\n\t}\n}\n/** Resolves the running app and attaches to its log streams; the caller consumes `lines`. */\nasync function executeLog(input, deps, cwd) {\n\tif (process.platform === \"win32\") return notOk(new CliStructuredError(\"LOG.PLATFORM_UNSUPPORTED\", \"local dev is not supported on Windows yet.\"));\n\tconst devDir = path.join(cwd, DEV_DIR);\n\tlet name;\n\tconst attachments = [];\n\tlet services;\n\ttry {\n\t\tconst identity = deps.identity ?? await resolveAppIdentity(input.entry, input.name, cwd, input.config);\n\t\tname = identity.name;\n\t\tconst resolved = await resolveLocalTargets(identity.config);\n\t\tfor (const target of resolved.values()) try {\n\t\t\tconst container = await target.container.ensure({\n\t\t\t\tappName: name,\n\t\t\t\tstage: void 0\n\t\t\t});\n\t\t\tattachments.push(await withEmulatorRetry(() => target.attach({\n\t\t\t\tcontainer,\n\t\t\t\tdevDir\n\t\t\t})));\n\t\t} catch (error) {\n\t\t\tthrow toStructured(\"LOG.ATTACH_FAILED\", error);\n\t\t}\n\t\ttry {\n\t\t\tservices = (await Promise.all(attachments.map((a) => withEmulatorRetry(() => a.endpoints())))).flat();\n\t\t} catch (error) {\n\t\t\tthrow toStructured(\"LOG.ATTACH_FAILED\", error);\n\t\t}\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n\tif (services.length === 0) return ok({\n\t\tappName: name,\n\t\tservices: [],\n\t\tlines: mergeLogStreams([], input)\n\t});\n\tif (input.address !== void 0 && !services.some((s) => s.address === input.address)) return notOk(new CliStructuredError(\"LOG.ADDRESS_UNKNOWN\", `no service \"${input.address}\" in \"${name}\" — running services: ${services.map((s) => s.address).join(\", \")}.`));\n\treturn ok({\n\t\tappName: name,\n\t\tservices,\n\t\tlines: mergeLogStreams(attachments, input)\n\t});\n}\n//#endregion\nexport { LOG_QUEUE_LIMIT, executeLog };\n\n//# sourceMappingURL=execute-log-PLs9-Qn3.mjs.map"],"mappings":";;;;;;;;;;;;;AAgBA,SAAS,eAAe,OAAO;CAC9B,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC7D;;;;;AAKA,MAAM,kBAAkB;;;;;;;;;;;AAWxB,gBAAgB,gBAAgB,aAAa,OAAO;CACnD,MAAM,aAAa,IAAI,gBAAgB;CAC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MAAM,YAAY,KAAK,KAAK,CAAC,SAAS,MAAM,MAAM,EAAE,YAAY,MAAM,OAAO,GAAG,OAAO,MAAM,IAAI,mBAAmB,uBAAuB,eAAe,MAAM,QAAQ,QAAQ,KAAK,wBAAwB,SAAS,KAAK,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;CAC9P,OAAO,GAAG;EACT,SAAS;EACT;EACA,OAAO,gBAAgB,aAAa,KAAK;CAC1C,CAAC;AACF"}
|
|
@@ -589,7 +589,7 @@ interface Graph {
|
|
|
589
589
|
readonly params: readonly ParamBinding[];
|
|
590
590
|
}
|
|
591
591
|
//#endregion
|
|
592
|
-
//#region ../../0-framework/1-core/core/dist/app-config-
|
|
592
|
+
//#region ../../0-framework/1-core/core/dist/app-config-Cay7dFv5.d.mts
|
|
593
593
|
//#region src/container-transport.d.ts
|
|
594
594
|
/**
|
|
595
595
|
* Carries resolved containers from the CLI process into the alchemy process
|
|
@@ -1206,10 +1206,51 @@ interface NotOk<F> {
|
|
|
1206
1206
|
type Result$1<T, F> = Ok<T> | NotOk<F>;
|
|
1207
1207
|
//#endregion
|
|
1208
1208
|
//#region ../../0-framework/3-tooling/assemble/dist/index.d.mts
|
|
1209
|
+
//#endregion
|
|
1210
|
+
//#region src/assemble-services.d.ts
|
|
1211
|
+
interface AssembledServices {
|
|
1212
|
+
/** One bundle per provisioned service, keyed by the service's full hierarchical address (its graph id). */
|
|
1213
|
+
readonly bundles: Record<string, Bundle>;
|
|
1214
|
+
}
|
|
1209
1215
|
/** Assembles one service node — the seam tests substitute to avoid a real build. */
|
|
1210
1216
|
type RunAssembler = (node: ServiceNode, address: string, cwd: string) => Promise<Bundle>;
|
|
1211
1217
|
//#endregion
|
|
1212
|
-
//#region ../../0-framework/3-tooling/cli/dist/log-
|
|
1218
|
+
//#region ../../0-framework/3-tooling/cli/dist/log-CMjHiahp.d.mts
|
|
1219
|
+
//#region src/composer-config.d.ts
|
|
1220
|
+
/** Composer's configuration and the `prisma.config.ts` that declares it. */
|
|
1221
|
+
interface ComposerConfigSource {
|
|
1222
|
+
/** The `composer` section: the `composer` property of that file's default export. */
|
|
1223
|
+
readonly value: PrismaAppConfig;
|
|
1224
|
+
/** The declaring `prisma.config.ts`. The deploy's generated stack file imports it. A relative path resolves against the operation's `cwd`. */
|
|
1225
|
+
readonly file: string;
|
|
1226
|
+
}
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region src/dev/watch.d.ts
|
|
1229
|
+
interface WatchTarget {
|
|
1230
|
+
readonly address: string;
|
|
1231
|
+
readonly paths: readonly string[];
|
|
1232
|
+
}
|
|
1233
|
+
interface WatchHandle {
|
|
1234
|
+
/** Resolves once chokidar's OS-level watches are attached — a change made before this can be missed entirely. Also resolves on `stop()` so an awaiting caller can never hang. */
|
|
1235
|
+
readonly ready: Promise<void>;
|
|
1236
|
+
stop(): void;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Watches every target's paths via chokidar, debounced 300 ms and coalesced
|
|
1240
|
+
* across every service, invoking `onChange` once per burst.
|
|
1241
|
+
*
|
|
1242
|
+
* File targets are watched THROUGH their parent directory, filtered to the
|
|
1243
|
+
* exact path: a watch bound directly to a file dies with the file's inode
|
|
1244
|
+
* on Linux, so `rm -rf dist && bun build --outfile dist/x.mjs` — every
|
|
1245
|
+
* rebuild's shape — would go silently unobserved after the first delete
|
|
1246
|
+
* (chokidar absorbs atomic renames, not unlink+recreate of a directly
|
|
1247
|
+
* watched file; proven by the delete-recreate test failing on Linux CI
|
|
1248
|
+
* only). Directory targets are watched recursively as themselves; a
|
|
1249
|
+
* nonexistent path is treated as a file target, so it starts reporting the
|
|
1250
|
+
* moment something creates it.
|
|
1251
|
+
*/
|
|
1252
|
+
declare function startWatch(targets: readonly WatchTarget[], onChange: () => void, onError?: (error: unknown) => void): WatchHandle;
|
|
1253
|
+
//#endregion
|
|
1213
1254
|
//#region src/operations/shared.d.ts
|
|
1214
1255
|
/** A running service's dotted address plus its local URL — what `dev` reports
|
|
1215
1256
|
* as the front door and `log` reports as the tailable services. */
|
|
@@ -1219,7 +1260,7 @@ interface ServiceEndpoint {
|
|
|
1219
1260
|
}
|
|
1220
1261
|
/**
|
|
1221
1262
|
* The operations' in-package injection seam — lets the CLI's own tests drive
|
|
1222
|
-
* them without a real wrapper build
|
|
1263
|
+
* them without a real wrapper build or alchemy process.
|
|
1223
1264
|
* Threaded through the *WithDeps variants, never part of the published
|
|
1224
1265
|
* surface: the fields mirror internal types.
|
|
1225
1266
|
*/
|
|
@@ -1231,9 +1272,8 @@ interface OperationDeps {
|
|
|
1231
1272
|
* owns signal policy; hosts get the default `spawnAlchemy`.
|
|
1232
1273
|
*/
|
|
1233
1274
|
readonly alchemy?: RunAlchemy | undefined;
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
readonly configPath?: string | undefined;
|
|
1275
|
+
/** Starts a file watch for `dev`; defaults to chokidar-backed `startWatch`. Tests substitute it to drive changes directly. */
|
|
1276
|
+
readonly watch?: typeof startWatch | undefined;
|
|
1237
1277
|
/**
|
|
1238
1278
|
* How the in-process leg authenticates: the caller's already-authenticated
|
|
1239
1279
|
* API client and the workspace it acts in. Supplied by the CLI from the
|
|
@@ -1253,6 +1293,10 @@ interface OperationDeps {
|
|
|
1253
1293
|
//#endregion
|
|
1254
1294
|
//#region src/operations/deploy.d.ts
|
|
1255
1295
|
interface DeployInput {
|
|
1296
|
+
/**
|
|
1297
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
1298
|
+
*/
|
|
1299
|
+
readonly config: ComposerConfigSource;
|
|
1256
1300
|
/** Path to the entry module, resolved against `cwd` — same contract as `prisma-composer deploy <entry>`. */
|
|
1257
1301
|
readonly entry: string;
|
|
1258
1302
|
/** Override the root node's name (the `--name` flag's slot). */
|
|
@@ -1301,6 +1345,10 @@ type DestroyEvent =
|
|
|
1301
1345
|
readonly cwd: string;
|
|
1302
1346
|
};
|
|
1303
1347
|
interface DestroyInput {
|
|
1348
|
+
/**
|
|
1349
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
1350
|
+
*/
|
|
1351
|
+
readonly config: ComposerConfigSource;
|
|
1304
1352
|
readonly entry: string;
|
|
1305
1353
|
readonly name?: string | undefined;
|
|
1306
1354
|
readonly target: DestroyTarget;
|
|
@@ -1331,6 +1379,11 @@ type DevEvent =
|
|
|
1331
1379
|
readonly kind: 'watch-error';
|
|
1332
1380
|
readonly message: string;
|
|
1333
1381
|
} |
|
|
1382
|
+
/** `prisma.config.ts` changed. The session keeps the config it started with and stops rebuilding until it is restarted. */
|
|
1383
|
+
{
|
|
1384
|
+
readonly kind: 'config-changed';
|
|
1385
|
+
readonly file: string;
|
|
1386
|
+
} |
|
|
1334
1387
|
/** The app keeps running, still watching. */
|
|
1335
1388
|
{
|
|
1336
1389
|
readonly kind: 'converge-failed';
|
|
@@ -1348,6 +1401,10 @@ type DevEvent =
|
|
|
1348
1401
|
readonly kind: 'stopped';
|
|
1349
1402
|
};
|
|
1350
1403
|
interface DevInput {
|
|
1404
|
+
/**
|
|
1405
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
1406
|
+
*/
|
|
1407
|
+
readonly config: ComposerConfigSource;
|
|
1351
1408
|
readonly entry: string;
|
|
1352
1409
|
readonly name?: string | undefined;
|
|
1353
1410
|
readonly fresh?: boolean | undefined;
|
|
@@ -1373,7 +1430,6 @@ declare function devWithDeps(input: DevInput, deps: OperationDeps): Promise<Resu
|
|
|
1373
1430
|
//#endregion
|
|
1374
1431
|
//#region src/pipeline.d.ts
|
|
1375
1432
|
interface AppIdentity {
|
|
1376
|
-
readonly configPath: string;
|
|
1377
1433
|
readonly config: PrismaAppConfig;
|
|
1378
1434
|
readonly name: string;
|
|
1379
1435
|
}
|
|
@@ -1398,14 +1454,15 @@ type LogEvent =
|
|
|
1398
1454
|
/** The log operation's in-package injection seam (the CLI's LogRunDeps, unit
|
|
1399
1455
|
* tests) — threaded through logWithDeps, never part of the published surface. */
|
|
1400
1456
|
interface LogDeps {
|
|
1401
|
-
/** Substituted for the c12 evaluation of the discovered config file (discovery still runs). */
|
|
1402
|
-
readonly config?: PrismaAppConfig | undefined;
|
|
1403
1457
|
/** Overrides the identity resolution (config + name) — lets tests skip a real entry module. */
|
|
1404
1458
|
readonly identity?: AppIdentity | undefined;
|
|
1405
|
-
/** Names the config file explicitly instead of walking up from the entry. */
|
|
1406
|
-
readonly configPath?: string | undefined;
|
|
1407
1459
|
}
|
|
1408
1460
|
interface LogInput {
|
|
1461
|
+
/**
|
|
1462
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
1463
|
+
* `log` reads only the section; it takes the same input as the other operations so a host builds it once.
|
|
1464
|
+
*/
|
|
1465
|
+
readonly config: ComposerConfigSource;
|
|
1409
1466
|
readonly entry: string;
|
|
1410
1467
|
readonly name?: string | undefined;
|
|
1411
1468
|
/** Restrict to one service's dotted address; validated against running services. */
|
|
@@ -1432,7 +1489,7 @@ interface LogAttached {
|
|
|
1432
1489
|
* mirrors internal types and is not part of the published surface. */
|
|
1433
1490
|
declare function logWithDeps(input: LogInput, deps: LogDeps): Promise<Result$1<LogAttached, CliStructuredError>>;
|
|
1434
1491
|
//#endregion
|
|
1435
|
-
//#region ../../0-framework/3-tooling/cli/dist/family-
|
|
1492
|
+
//#region ../../0-framework/3-tooling/cli/dist/family-DB2Uf88c.d.mts
|
|
1436
1493
|
//#region src/family/family.d.ts
|
|
1437
1494
|
/**
|
|
1438
1495
|
* The control-plane operations the family's handlers call. These are the
|
|
@@ -1455,5 +1512,5 @@ interface CreateComposerFamilyOptions {
|
|
|
1455
1512
|
}
|
|
1456
1513
|
declare function createComposerFamily(options?: CreateComposerFamilyOptions): CommandFamily;
|
|
1457
1514
|
//#endregion
|
|
1458
|
-
export {
|
|
1459
|
-
//# sourceMappingURL=family-
|
|
1515
|
+
export { ServiceEndpoint as _, ComposerConfigSource as a, CliStructuredError as b, DestroyEvent as c, DevSession as d, LogAttached as f, OperationDeps as g, LogLine as h, realOperations as i, DestroyInput as l, LogInput as m, CreateComposerFamilyOptions as n, DeployInput as o, LogDeps as p, createComposerFamily as r, DeploySuccess as s, ComposerOperations as t, DevInput as u, AssembledServices as v, Result$1 as y };
|
|
1516
|
+
//# sourceMappingURL=family-DB2Uf88c-DWEm0USb.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family-
|
|
1
|
+
{"version":3,"file":"family-DB2Uf88c-DWEm0USb.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../0-framework/1-core/core/dist/graph-types-BTTaRnih.d.mts","../../../0-framework/1-core/core/dist/app-config-Cay7dFv5.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-CU-eVvJM.d.mts","../../../0-framework/3-tooling/cli/dist/load-entry-curbqn_8.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/assemble/dist/index.d.mts","../../../0-framework/3-tooling/cli/dist/log-CMjHiahp.d.mts","../../../0-framework/3-tooling/cli/dist/family-DB2Uf88c.d.mts"],"x_google_ignoreList":[1],"mappings":";;;;;;;UACU,wBAAwB;WACvB;WACA;WACA;WACA;aACE;aACA;;WAEF;WACA,OAAO;WACP;;;;;;;;UAwBD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;;;;;;;;cAoBG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA;eACE;eACA;;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GrF;WACC,QAAQ;WACR;;;;UAID;WACC;WACA;;KAEN;;;WAGM;WACA;;;;;WAKA;WACA;;;;UAID;;WAEC,WAAW;;UAEZ;;;;;WAKC,QAAQ;WACR;WACA;;WAEA;;;WAGA;WACA;;WAEA,SAAS;WACT,YAAY,OAAO;;UAEpB;;WAEC;;;WAGA,mBAAmB;;WAEnB,OAAO,cAAc;;;;;iBAMf,YAAY,OAAO,UAAU,MAAM,UAAU,QAAQ,SAAO,aAAa;;;;;;;;;;;;UCzShF;WACC,eAAe;WACf,gBAAgB;WAChB,YAAY;WACZ,YAAY;;cAET,gBAAgB;UACpB;;WAEC,aAAa;;iBAEP,qBAAqB,UAAU,8BAA8B"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as realOperations, n as CreateComposerFamilyOptions, r as createComposerFamily, t as ComposerOperations
|
|
1
|
+
import { a as ComposerConfigSource, b as CliStructuredError$1, i as realOperations, n as CreateComposerFamilyOptions, r as createComposerFamily, t as ComposerOperations } from "./family-DB2Uf88c-DWEm0USb.mjs";
|
|
2
2
|
import { Cli, CliRunHooks, ConfigSection, HostProcess } from "@prisma/cli-engine";
|
|
3
3
|
import { CliStructuredError } from "@prisma/cli-engine/protocol";
|
|
4
4
|
//#region ../../0-framework/3-tooling/cli/dist/family.d.mts
|
|
@@ -28,17 +28,7 @@ declare function createComposerCli(spec: ComposerCliSpec): Cli;
|
|
|
28
28
|
declare function runComposerCli(argv: readonly string[], host: HostProcess, spec: ComposerCliSpec, hooks?: CliRunHooks): Promise<number>;
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/family/section.d.ts
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Absolute path to `prisma-composer.config.ts`. In the config file it may
|
|
34
|
-
* be written relative; the validator resolves it against the file that
|
|
35
|
-
* declared it, so a root-declared path means the same file from every
|
|
36
|
-
* subdirectory. Absent — the common case — means composer searches upward
|
|
37
|
-
* from the command's entry argument, as it always has.
|
|
38
|
-
*/
|
|
39
|
-
readonly configPath?: string | undefined;
|
|
40
|
-
}
|
|
41
|
-
declare const composerSection: ConfigSection<ComposerSection>;
|
|
31
|
+
declare const composerSection: ConfigSection<ComposerConfigSource>;
|
|
42
32
|
//#endregion
|
|
43
33
|
//#region src/family/translate-error.d.ts
|
|
44
34
|
/**
|
|
@@ -50,5 +40,5 @@ type ComposerError = CliStructuredError$1;
|
|
|
50
40
|
/** Translates a composer failure into the engine's error type. Composer-side detail — `meta`, `where`, `docsUrl` — rides along untouched. */
|
|
51
41
|
declare function toEngineError(error: ComposerError): CliStructuredError;
|
|
52
42
|
//#endregion
|
|
53
|
-
export { BINARY_NAME, type ComposerCliSpec, type ComposerOperations, type
|
|
43
|
+
export { BINARY_NAME, type ComposerCliSpec, type ComposerOperations, type CreateComposerFamilyOptions, composerSection, createComposerCli, createComposerFamily, realOperations, runComposerCli, toEngineError };
|
|
54
44
|
//# sourceMappingURL=family.d.mts.map
|
package/dist/family.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts"],"mappings":";;;;;cAKc;UACJ;;;;;;WAMC;WACA,aAAa;;iBAEP,kBAAkB,MAAM,kBAAkB;;;;;;;;;;;;iBAY1C,eAAe,yBAAyB,MAAM,aAAa,MAAM,iBAAiB,QAAQ,cAAc;;;cAG3G,iBAAiB,cAAc;;;;;;;;KAQxC,gBAAA;;iBAEY,cAAc,OAAO,gBAAgB"}
|