@prisma/composer 0.27.0 → 0.28.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-config-DyCMnkDr-CguUhanl.d.mts → app-config-3CswwwoZ-DFjnySqN.d.mts} +6 -2
- package/dist/app-config-3CswwwoZ-DFjnySqN.d.mts.map +1 -0
- package/dist/config-0y3sE6iC.d.mts +1 -0
- package/dist/config.d.mts +2 -2
- package/dist/control.d.mts +28 -6
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +3 -3
- package/dist/control.mjs.map +1 -1
- package/dist/deploy-0y3sE6iC.d.mts +1 -0
- package/dist/deploy.d.mts +2 -2
- package/dist/{deployment-summary-CU-eVvJM-c3AqO52N.d.mts → deployment-summary-CU-eVvJM-B8prOwIp.d.mts} +3 -3
- package/dist/{deployment-summary-CU-eVvJM-c3AqO52N.d.mts.map → deployment-summary-CU-eVvJM-B8prOwIp.d.mts.map} +1 -1
- package/dist/{dev-Bmq-eLnv-DsenQNJM.mjs → dev-D5mgw4vL-ChhDjyGs.mjs} +11 -5
- package/dist/dev-D5mgw4vL-ChhDjyGs.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-c0eko3AO-BoK0-r1U.mjs → execute-deploy-destroy-1Nn5Pz26-Bgbc4ZpD.mjs} +112 -19
- package/dist/execute-deploy-destroy-1Nn5Pz26-Bgbc4ZpD.mjs.map +1 -0
- package/dist/{execute-dev-BICPaq1g-DQccw8kr.mjs → execute-dev-BnKUgJhb-DOden3PU.mjs} +4 -4
- package/dist/{execute-dev-BICPaq1g-DQccw8kr.mjs.map → execute-dev-BnKUgJhb-DOden3PU.mjs.map} +1 -1
- package/dist/{execute-log-DivzSDBL-CBdSN2Vv.mjs → execute-log-COAVD35o-DSphbVHe.mjs} +4 -4
- package/dist/{execute-log-DivzSDBL-CBdSN2Vv.mjs.map → execute-log-COAVD35o-DSphbVHe.mjs.map} +1 -1
- package/dist/local-target.d.mts +1 -1
- package/dist/nextjs-control.d.mts +3 -3
- package/dist/node-control.d.mts +3 -3
- package/dist/node-control.mjs +23 -9
- package/dist/node-control.mjs.map +1 -1
- package/dist/{pipeline-DYvl561J-DDtnkFPh.mjs → pipeline-B-vJNch3-PBDKc8cX.mjs} +30 -14
- package/dist/pipeline-B-vJNch3-PBDKc8cX.mjs.map +1 -0
- package/dist/report.d.mts +3 -3
- package/package.json +10 -10
- package/skills/prisma-composer-core-concepts/SKILL.md +14 -1
- package/dist/app-config-DyCMnkDr-CguUhanl.d.mts.map +0 -1
- package/dist/config-i9yR7YWi.d.mts +0 -1
- package/dist/deploy-i9yR7YWi.d.mts +0 -1
- package/dist/dev-Bmq-eLnv-DsenQNJM.mjs.map +0 -1
- package/dist/execute-deploy-destroy-c0eko3AO-BoK0-r1U.mjs.map +0 -1
- package/dist/pipeline-DYvl561J-DDtnkFPh.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
|
|
2
2
|
import { t as DEV_DIR } from "./app-config-CGJHcFb--CIEFCG4V.mjs";
|
|
3
|
-
import { a as toStructured, o as notOk, s as ok } from "./dev-
|
|
3
|
+
import { a as toStructured, o as notOk, s as ok } from "./dev-D5mgw4vL-ChhDjyGs.mjs";
|
|
4
4
|
import { n as resolveLocalTargets } from "./local-target-B4xoiDAV.mjs";
|
|
5
|
-
import { t as resolveAppIdentity } from "./pipeline-
|
|
5
|
+
import { t as resolveAppIdentity } from "./pipeline-B-vJNch3-PBDKc8cX.mjs";
|
|
6
6
|
import { t as withEmulatorRetry } from "./emulator-retry-DGonap4g-S8BNrXFD.mjs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-log-
|
|
8
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-log-COAVD35o.mjs
|
|
9
9
|
/**
|
|
10
10
|
* The log executor — run-log.ts's attach-and-tail (config → localTarget →
|
|
11
11
|
* container → attach → logs) with console and signal handling removed: the
|
|
@@ -154,4 +154,4 @@ async function executeLog(input, deps, cwd) {
|
|
|
154
154
|
//#endregion
|
|
155
155
|
export { LOG_QUEUE_LIMIT, executeLog };
|
|
156
156
|
|
|
157
|
-
//# sourceMappingURL=execute-log-
|
|
157
|
+
//# sourceMappingURL=execute-log-COAVD35o-DSphbVHe.mjs.map
|
package/dist/{execute-log-DivzSDBL-CBdSN2Vv.mjs.map → execute-log-COAVD35o-DSphbVHe.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-log-
|
|
1
|
+
{"version":3,"file":"execute-log-COAVD35o-DSphbVHe.mjs","names":["path"],"sources":["../../../0-framework/3-tooling/cli/dist/execute-log-COAVD35o.mjs"],"sourcesContent":["import { s as toStructured } from \"./dev-D5mgw4vL.mjs\";\nimport { t as resolveAppIdentity } from \"./pipeline-B-vJNch3.mjs\";\nimport { t as withEmulatorRetry } from \"./emulator-retry-DGonap4g.mjs\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as path from \"node:path\";\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-COAVD35o.mjs.map"],"mappings":"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"}
|
package/dist/local-target.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as PrismaAppConfig, _ as LocalTargetEmulatorsInput, c as ContainerInstance, g as LocalTargetDescriptor, h as LocalTargetAttachment, l as DEV_DIR, m as LocalTargetAttachInput, v as LocalTargetProvidersInput } from "./app-config-
|
|
1
|
+
import { A as PrismaAppConfig, _ as LocalTargetEmulatorsInput, c as ContainerInstance, g as LocalTargetDescriptor, h as LocalTargetAttachment, l as DEV_DIR, m as LocalTargetAttachInput, v as LocalTargetProvidersInput } from "./app-config-3CswwwoZ-DFjnySqN.mjs";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
//#region ../../0-framework/1-core/core/dist/local-target.d.mts
|
|
4
4
|
//#region src/control/local-target.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Bundle, i as AssembleInput, p as ExtensionDescriptor } from "./app-config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./deploy-
|
|
1
|
+
import { a as Bundle, i as AssembleInput, p as ExtensionDescriptor } from "./app-config-3CswwwoZ-DFjnySqN.mjs";
|
|
2
|
+
import "./config-0y3sE6iC.mjs";
|
|
3
|
+
import "./deploy-0y3sE6iC.mjs";
|
|
4
4
|
import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-D7UOddVQ.mjs";
|
|
5
5
|
//#region ../../0-framework/2-authoring/nextjs/dist/control.d.mts
|
|
6
6
|
//#region src/control/build.d.ts
|
package/dist/node-control.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Bundle, i as AssembleInput, p as ExtensionDescriptor } from "./app-config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./deploy-
|
|
1
|
+
import { a as Bundle, i as AssembleInput, p as ExtensionDescriptor } from "./app-config-3CswwwoZ-DFjnySqN.mjs";
|
|
2
|
+
import "./config-0y3sE6iC.mjs";
|
|
3
|
+
import "./deploy-0y3sE6iC.mjs";
|
|
4
4
|
//#region ../../0-framework/2-authoring/node/dist/control.d.mts
|
|
5
5
|
//#region src/control/build.d.ts
|
|
6
6
|
declare function assemble(input: AssembleInput): Promise<Bundle>;
|
package/dist/node-control.mjs
CHANGED
|
@@ -21788,14 +21788,15 @@ async function copyTracedEntry(source, destination, stagingRoot, bundleDir, dirP
|
|
|
21788
21788
|
copySource: realTarget,
|
|
21789
21789
|
copyWithinRoot: bundleDir
|
|
21790
21790
|
});
|
|
21791
|
-
return;
|
|
21791
|
+
return 0;
|
|
21792
21792
|
}
|
|
21793
21793
|
if (stat.isDirectory()) {
|
|
21794
21794
|
await fs$1.promises.mkdir(destination, { recursive: true });
|
|
21795
|
-
return;
|
|
21795
|
+
return 0;
|
|
21796
21796
|
}
|
|
21797
21797
|
if (!stat.isFile()) throw new Error(`the runtime dependency trace found an unsupported filesystem entry: ${source}`);
|
|
21798
21798
|
await fs$1.promises.copyFile(source, destination);
|
|
21799
|
+
return stat.size;
|
|
21799
21800
|
}
|
|
21800
21801
|
/**
|
|
21801
21802
|
* The staging root: the deepest directory containing the service module, the
|
|
@@ -21857,6 +21858,7 @@ async function stageRuntimeDependencies(options) {
|
|
|
21857
21858
|
}));
|
|
21858
21859
|
const stagingRoot = stagingRootFor(moduleDir, dirPath, tracedEntries.flatMap(({ source, origin }) => [source, origin]));
|
|
21859
21860
|
const stagedFrom = /* @__PURE__ */ new Map();
|
|
21861
|
+
let bytesStaged = 0;
|
|
21860
21862
|
for (const { source, origin } of tracedEntries) {
|
|
21861
21863
|
if (isWithin(dirPath, source)) continue;
|
|
21862
21864
|
const destination = stagedRuntimePath(source, stagingRoot, options.bundleDir);
|
|
@@ -21866,9 +21868,14 @@ async function stageRuntimeDependencies(options) {
|
|
|
21866
21868
|
throw new Error(`two runtime dependencies stage to the same bundle path ("${path$1.relative(options.bundleDir, destination).split(path$1.sep).join("/")}"): ${alreadyStaged} and ${origin}. Staging keeps each file's path from its first node_modules segment, so two packages of the same name installed at different depths collapse onto one location — deduplicate them in your install so only one version is reachable.`);
|
|
21867
21869
|
}
|
|
21868
21870
|
if (await pathExists(destination)) continue;
|
|
21869
|
-
await copyTracedEntry(source, destination, stagingRoot, options.bundleDir, dirPath);
|
|
21871
|
+
bytesStaged += await copyTracedEntry(source, destination, stagingRoot, options.bundleDir, dirPath);
|
|
21870
21872
|
stagedFrom.set(destination, origin);
|
|
21871
21873
|
}
|
|
21874
|
+
return {
|
|
21875
|
+
filesTraced: fileList.size,
|
|
21876
|
+
filesStaged: stagedFrom.size,
|
|
21877
|
+
bytesStaged
|
|
21878
|
+
};
|
|
21872
21879
|
}
|
|
21873
21880
|
/**
|
|
21874
21881
|
* The working dir is cleared on every assemble, so it must not overlap the copy
|
|
@@ -21905,12 +21912,19 @@ async function assemble(input) {
|
|
|
21905
21912
|
if (!fs$1.existsSync(path$1.join(workDir, "main.mjs"))) throw new Error(`esbuild produced no main.mjs in ${workDir}`);
|
|
21906
21913
|
const bundleDir = path$1.join(workDir, "bundle");
|
|
21907
21914
|
await runnable.copyInto(bundleDir);
|
|
21908
|
-
if (buildDescriptor.dir
|
|
21909
|
-
|
|
21910
|
-
|
|
21911
|
-
|
|
21912
|
-
|
|
21913
|
-
|
|
21915
|
+
if (buildDescriptor.dir === void 0) input.report?.({ form: "file" });
|
|
21916
|
+
else {
|
|
21917
|
+
const staged = await stageRuntimeDependencies({
|
|
21918
|
+
entryPath: path$1.join(runnable.source, ...runnable.entry.split("/")),
|
|
21919
|
+
dirPath: runnable.source,
|
|
21920
|
+
moduleDir,
|
|
21921
|
+
bundleDir
|
|
21922
|
+
});
|
|
21923
|
+
input.report?.({
|
|
21924
|
+
form: "directory",
|
|
21925
|
+
...staged
|
|
21926
|
+
});
|
|
21927
|
+
}
|
|
21914
21928
|
await assertBundleSymlinksStayInside(bundleDir);
|
|
21915
21929
|
return {
|
|
21916
21930
|
dir: workDir,
|