@prisma/composer 0.30.0-dev.8 → 0.30.0-dev.9
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-C8hNl6eR-B64GWwEY.d.mts → app-config-BBPLNnZX-DzU21TVb.d.mts} +4 -4
- package/dist/{app-config-C8hNl6eR-B64GWwEY.d.mts.map → app-config-BBPLNnZX-DzU21TVb.d.mts.map} +1 -1
- package/dist/config-CRHoX2Pq.d.mts +1 -0
- package/dist/config.d.mts +2 -2
- package/dist/control.d.mts +6 -6
- package/dist/control.mjs +3 -3
- package/dist/deploy-CRHoX2Pq.d.mts +1 -0
- package/dist/deploy.d.mts +2 -2
- package/dist/deploy.mjs +1 -1
- package/dist/deploy.mjs.map +1 -1
- package/dist/{deployment-summary-CU-eVvJM-BuSxJ5Zh.d.mts → deployment-summary-CU-eVvJM-rJHGy-BV.d.mts} +3 -3
- package/dist/{deployment-summary-CU-eVvJM-BuSxJ5Zh.d.mts.map → deployment-summary-CU-eVvJM-rJHGy-BV.d.mts.map} +1 -1
- package/dist/{dev-current-Bm7Yrsmt-CtPg7WIU.mjs → dev-current-Bm7Yrsmt-BokQtx_Z.mjs} +4 -4
- package/dist/{dev-current-Bm7Yrsmt-CtPg7WIU.mjs.map → dev-current-Bm7Yrsmt-BokQtx_Z.mjs.map} +1 -1
- package/dist/{dist-CR0-3j9o.mjs → dist-D5tj8ZhD.mjs} +2 -2
- package/dist/{dist-CR0-3j9o.mjs.map → dist-D5tj8ZhD.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-BK4R2qCX-CeAXv4Yc.mjs → execute-deploy-destroy-BK4R2qCX-C7pPemYB.mjs} +3 -3
- package/dist/{execute-deploy-destroy-BK4R2qCX-CeAXv4Yc.mjs.map → execute-deploy-destroy-BK4R2qCX-C7pPemYB.mjs.map} +1 -1
- package/dist/{execute-dev-current-nYH8EiKK-c4LffAjN.mjs → execute-dev-current-nYH8EiKK-B-GAyQFU.mjs} +3 -3
- package/dist/{execute-dev-current-nYH8EiKK-c4LffAjN.mjs.map → execute-dev-current-nYH8EiKK-B-GAyQFU.mjs.map} +1 -1
- package/dist/{execute-dev-qKlYePGn-DoULCKpJ.mjs → execute-dev-qKlYePGn-D6SHRPB4.mjs} +3 -3
- package/dist/{execute-dev-qKlYePGn-DoULCKpJ.mjs.map → execute-dev-qKlYePGn-D6SHRPB4.mjs.map} +1 -1
- package/dist/{execute-log-B4lOgkOV-BcMe-DNX.mjs → execute-log-B4lOgkOV-DRG7IyK8.mjs} +3 -3
- package/dist/{execute-log-B4lOgkOV-BcMe-DNX.mjs.map → execute-log-B4lOgkOV-DRG7IyK8.mjs.map} +1 -1
- package/dist/{graph-BfKAg2Ap-LY3OAuK2.mjs → graph-BPLLRt2I-m78iETnF.mjs} +15 -6
- package/dist/graph-BPLLRt2I-m78iETnF.mjs.map +1 -0
- package/dist/{graph-CPeatmoF-DfDx8ctT.d.mts → graph-C4If3c5e-CVij_XGB.d.mts} +3 -3
- package/dist/graph-C4If3c5e-CVij_XGB.d.mts.map +1 -0
- package/dist/{graph-types-BTTaRnih-BF6PobQ3.d.mts → graph-types-Cegbwb_X-BU-H2pnt.d.mts} +27 -21
- package/dist/graph-types-Cegbwb_X-BU-H2pnt.d.mts.map +1 -0
- package/dist/http.d.mts +22 -0
- package/dist/http.d.mts.map +1 -0
- package/dist/http.mjs +40 -0
- package/dist/http.mjs.map +1 -0
- package/dist/{index-DeocL1di.d.mts → index-vUfxWpWf.d.mts} +3 -3
- package/dist/{index-DeocL1di.d.mts.map → index-vUfxWpWf.d.mts.map} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/local-target.d.mts +1 -1
- package/dist/{nextjs-DLyeRR7M-D7UOddVQ.d.mts → nextjs-DLyeRR7M-Btfuot-v.d.mts} +3 -3
- package/dist/{nextjs-DLyeRR7M-D7UOddVQ.d.mts.map → nextjs-DLyeRR7M-Btfuot-v.d.mts.map} +1 -1
- package/dist/nextjs-control.d.mts +4 -4
- package/dist/nextjs.d.mts +1 -1
- package/dist/node-control.d.mts +3 -3
- package/dist/node.d.mts +2 -2
- package/dist/{pipeline-Dpesfd2j-BqG-vT-8.mjs → pipeline-Dpesfd2j-CD3W79W6.mjs} +3 -3
- package/dist/{pipeline-Dpesfd2j-BqG-vT-8.mjs.map → pipeline-Dpesfd2j-CD3W79W6.mjs.map} +1 -1
- package/dist/report.d.mts +3 -3
- package/dist/service-rpc.d.mts +2 -2
- package/dist/service-rpc.mjs +3 -2
- package/dist/service-rpc.mjs.map +1 -1
- package/dist/testing.d.mts +1 -1
- package/package.json +13 -11
- package/skills/prisma-composer-core-concepts/SKILL.md +28 -4
- package/src/exports/http.ts +1 -0
- package/dist/config-DaKWSO2D.d.mts +0 -1
- package/dist/deploy-DaKWSO2D.d.mts +0 -1
- package/dist/graph-BfKAg2Ap-LY3OAuK2.mjs.map +0 -1
- package/dist/graph-CPeatmoF-DfDx8ctT.d.mts.map +0 -1
- package/dist/graph-types-BTTaRnih-BF6PobQ3.d.mts.map +0 -1
package/dist/{execute-dev-current-nYH8EiKK-c4LffAjN.mjs → execute-dev-current-nYH8EiKK-B-GAyQFU.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as InternalError } from "./internal-error-Dfur7Zqt-D96dWHZK.mjs";
|
|
2
2
|
import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
|
|
3
3
|
import { t as DEV_DIR } from "./app-config-CGJHcFb--CIEFCG4V.mjs";
|
|
4
|
-
import { c as notOk, l as ok, s as toStructured } from "./dev-current-Bm7Yrsmt-
|
|
4
|
+
import { c as notOk, l as ok, s as toStructured } from "./dev-current-Bm7Yrsmt-BokQtx_Z.mjs";
|
|
5
5
|
import { r as resolveLocalTargets } from "./local-target-BUZG9uLx.mjs";
|
|
6
|
-
import { t as checkConfigSource } from "./pipeline-Dpesfd2j-
|
|
6
|
+
import { t as checkConfigSource } from "./pipeline-Dpesfd2j-CD3W79W6.mjs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-nYH8EiKK.mjs
|
|
9
9
|
/**
|
|
@@ -125,4 +125,4 @@ async function executeDevStop(input, cwd) {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
export { executeDevStop, executeDevUrl };
|
|
127
127
|
|
|
128
|
-
//# sourceMappingURL=execute-dev-current-nYH8EiKK-
|
|
128
|
+
//# sourceMappingURL=execute-dev-current-nYH8EiKK-B-GAyQFU.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-dev-current-nYH8EiKK-
|
|
1
|
+
{"version":3,"file":"execute-dev-current-nYH8EiKK-B-GAyQFU.mjs","names":["path"],"sources":["../../../0-framework/3-tooling/cli/dist/execute-dev-current-nYH8EiKK.mjs"],"sourcesContent":["import { l as toStructured } from \"./dev-current-Bm7Yrsmt.mjs\";\nimport { t as checkConfigSource } from \"./pipeline-Dpesfd2j.mjs\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { CliStructuredError, InternalError } from \"@internal/foundation/errors\";\nimport * as path from \"node:path\";\nimport { DEV_DIR, resolveLocalTargets } from \"@internal/core/local-target\";\n//#region src/operations/execute-dev-current.ts\n/**\n* The `devUrl` and `devStop` executor: config → each extension's local\n* target → the app it recorded in the directory's dev state. Reached only by\n* lazy import from dev-current.ts — resolving the local targets loads their\n* descriptors, whose graphs reach alchemy's provider tree.\n*/\nconst RUN_DEV = \"Run `prisma dev <entry>` in this directory.\";\nfunction platformUnsupported() {\n\treturn new CliStructuredError(\"DEV.PLATFORM_UNSUPPORTED\", \"local dev is not supported on Windows yet.\");\n}\n/** A call into an extension's local target; its failures that carry no code are the emulator's. */\nasync function fromTarget(call) {\n\ttry {\n\t\treturn await call();\n\t} catch (error) {\n\t\tthrow toStructured(\"DEV.EMULATOR_FAILED\", error);\n\t}\n}\n/** Every extension's record of the app `prisma dev` last ran from `cwd`; fails when none recorded one. */\nasync function currentApps(input, cwd) {\n\tconst { value } = checkConfigSource(input.config, cwd);\n\tconst devDir = path.join(cwd, DEV_DIR);\n\tconst apps = [];\n\tfor (const target of (await resolveLocalTargets(value)).values()) {\n\t\tconst current = await fromTarget(async () => target.current?.({ devDir }));\n\t\tif (current !== void 0) apps.push(current);\n\t}\n\tif (apps.length === 0) throw new CliStructuredError(\"DEV.NOT_STARTED_HERE\", `\\`prisma dev\\` has not run in ${cwd}.`, {\n\t\twhy: `The local services, databases and buckets of an app are recorded in ${devDir} when \\`prisma dev\\` runs there, and there is no such record.`,\n\t\tfix: RUN_DEV,\n\t\tmeta: { cwd }\n\t});\n\treturn apps;\n}\nasync function locate(input, cwd) {\n\tconst apps = await currentApps(input, cwd);\n\tconst app = apps.find((candidate) => candidate.addresses.includes(input.address));\n\tif (app === void 0) {\n\t\tconst known = apps.flatMap((candidate) => candidate.addresses).sort();\n\t\tthrow new CliStructuredError(\"DEV.ADDRESS_UNKNOWN\", `\"${apps.map((a) => a.app).join(\"\\\", \\\"\")}\" has no node at \"${input.address}\".`, {\n\t\t\twhy: `The addresses recorded for the app \\`prisma dev\\` last ran here are: ${known.join(\", \")}.`,\n\t\t\tfix: \"Pass one of those addresses. A nested node has a dotted address, such as `catalog.database`.\",\n\t\t\tmeta: {\n\t\t\t\taddress: input.address,\n\t\t\t\tknown\n\t\t\t}\n\t\t});\n\t}\n\tconst location = await fromTarget(() => app.locate(input.address));\n\tif (location === void 0) throw new InternalError(`the local target recorded \"${input.address}\" but cannot locate it`);\n\tif (location.emulator === \"not-running\") throw new CliStructuredError(\"DEV.EMULATOR_UNREACHABLE\", `The local ${location.kind} emulator that runs \"${input.address}\" is not running.`, {\n\t\twhy: \"The local emulators run your services, databases and buckets on this machine; `prisma dev` starts the ones an app needs.\",\n\t\tfix: RUN_DEV,\n\t\tmeta: {\n\t\t\taddress: input.address,\n\t\t\tkind: location.kind\n\t\t}\n\t});\n\tif (location.condition !== \"running\") throw notRunning(input.address, location);\n\tif (location.url === void 0) throw new InternalError(`the local target reports \"${input.address}\" running with no URL`);\n\treturn {\n\t\taddress: input.address,\n\t\tkind: location.kind,\n\t\turl: location.url,\n\t\tstate: location.state\n\t};\n}\nfunction notRunning(address, location) {\n\tconst { kind, state, condition, logPath } = location;\n\tconst meta = {\n\t\taddress,\n\t\tkind,\n\t\tstate,\n\t\t...logPath === void 0 ? {} : { logPath }\n\t};\n\tconst message = `The ${kind} \"${address}\" is not running (${state}).`;\n\tif (condition === \"crashing\") return new CliStructuredError(\"DEV.NOT_RUNNING\", message, {\n\t\twhy: \"It exited after it started, and it is being restarted or was held after repeated crashes.\",\n\t\tfix: logPath === void 0 ? \"Read its output in the `prisma dev` terminal, fix the cause, and rebuild.\" : `Read its log at ${logPath}, fix the cause, and rebuild.`,\n\t\tmeta\n\t});\n\tif (condition === \"missing\") return new CliStructuredError(\"DEV.NOT_RUNNING\", message, {\n\t\twhy: \"The local emulator no longer has it, for example because a Composer upgrade discarded the emulator’s state.\",\n\t\tfix: `${RUN_DEV} It creates the ${kind} again, empty.`,\n\t\tmeta\n\t});\n\treturn new CliStructuredError(\"DEV.NOT_RUNNING\", message, {\n\t\twhy: \"`prisma dev` stops the app when it ends, and a stopped node has no URL that answers.\",\n\t\tfix: RUN_DEV,\n\t\tmeta\n\t});\n}\nasync function executeDevUrl(input, cwd) {\n\tif (process.platform === \"win32\") return notOk(platformUnsupported());\n\ttry {\n\t\treturn ok(await locate(input, cwd));\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n}\nasync function executeDevStop(input, cwd) {\n\tif (process.platform === \"win32\") return notOk(platformUnsupported());\n\ttry {\n\t\tconst apps = await currentApps(input, cwd);\n\t\tconst stopped = [];\n\t\tfor (const app of apps) stopped.push(...await fromTarget(() => app.stop()));\n\t\treturn ok({\n\t\t\tapp: apps.map((a) => a.app).join(\", \"),\n\t\t\tstopped\n\t\t});\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n}\n//#endregion\nexport { executeDevStop, executeDevUrl };\n\n//# sourceMappingURL=execute-dev-current-nYH8EiKK.mjs.map"],"mappings":";;;;;;;;;;;;;;AAaA,MAAM,UAAU;AAChB,SAAS,sBAAsB;CAC9B,OAAO,IAAI,mBAAmB,4BAA4B,4CAA4C;AACvG;;AAEA,eAAe,WAAW,MAAM;CAC/B,IAAI;EACH,OAAO,MAAM,KAAK;CACnB,SAAS,OAAO;EACf,MAAM,aAAa,uBAAuB,KAAK;CAChD;AACD;;AAEA,eAAe,YAAY,OAAO,KAAK;CACtC,MAAM,EAAE,UAAU,kBAAkB,MAAM,QAAQ,GAAG;CACrD,MAAM,SAASA,OAAK,KAAK,KAAK,OAAO;CACrC,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,WAAW,MAAM,oBAAoB,KAAK,EAAA,CAAG,OAAO,GAAG;EACjE,MAAM,UAAU,MAAM,WAAW,YAAY,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC;EACzE,IAAI,YAAY,KAAK,GAAG,KAAK,KAAK,OAAO;CAC1C;CACA,IAAI,KAAK,WAAW,GAAG,MAAM,IAAI,mBAAmB,wBAAwB,iCAAiC,IAAI,IAAI;EACpH,KAAK,uEAAuE,OAAO;EACnF,KAAK;EACL,MAAM,EAAE,IAAI;CACb,CAAC;CACD,OAAO;AACR;AACA,eAAe,OAAO,OAAO,KAAK;CACjC,MAAM,OAAO,MAAM,YAAY,OAAO,GAAG;CACzC,MAAM,MAAM,KAAK,MAAM,cAAc,UAAU,UAAU,SAAS,MAAM,OAAO,CAAC;CAChF,IAAI,QAAQ,KAAK,GAAG;EACnB,MAAM,QAAQ,KAAK,SAAS,cAAc,UAAU,SAAS,CAAC,CAAC,KAAK;EACpE,MAAM,IAAI,mBAAmB,uBAAuB,IAAI,KAAK,KAAK,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,QAAQ,EAAE,oBAAo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D,KAAK;EACL,KAAK;EACL;CACD,CAAC;AACF;AACA,eAAe,cAAc,OAAO,KAAK;CACxC,IAAI,QAAQ,aAAa,SAAS,OAAO,MAAM,oBAAoB,CAAC;CACpE,IAAI;EACH,OAAO,GAAG,MAAM,OAAO,OAAO,GAAG,CAAC;CACnC,SAAS,OAAO;EACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACpD,MAAM;CACP;AACD;AACA,eAAe,eAAe,OAAO,KAAK;CACzC,IAAI,QAAQ,aAAa,SAAS,OAAO,MAAM,oBAAoB,CAAC;CACpE,IAAI;EACH,MAAM,OAAO,MAAM,YAAY,OAAO,GAAG;EACzC,MAAM,UAAU,CAAC;EACjB,KAAK,MAAM,OAAO,MAAM,QAAQ,KAAK,GAAG,MAAM,iBAAiB,IAAI,KAAK,CAAC,CAAC;EAC1E,OAAO,GAAG;GACT,KAAK,KAAK,KAAK,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI;GACrC;EACD,CAAC;CACF,SAAS,OAAO;EACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACpD,MAAM;CACP;AACD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
|
|
2
2
|
import { t as containerEnv } from "./container-transport-HcvNOGZL-twPi2TIv.mjs";
|
|
3
3
|
import { t as DEV_DIR } from "./app-config-CGJHcFb--CIEFCG4V.mjs";
|
|
4
|
-
import { c as notOk, l as ok, s as toStructured } from "./dev-current-Bm7Yrsmt-
|
|
4
|
+
import { c as notOk, l as ok, s as toStructured } from "./dev-current-Bm7Yrsmt-BokQtx_Z.mjs";
|
|
5
5
|
import { r as resolveLocalTargets } from "./local-target-BUZG9uLx.mjs";
|
|
6
6
|
import { n as reproduceCommand, r as spawnAlchemy, t as alchemyInvocation } from "./run-alchemy-BqHpStQn-sYiodM6y.mjs";
|
|
7
|
-
import { i as noComposerExportMessage, r as runPipeline } from "./pipeline-Dpesfd2j-
|
|
7
|
+
import { i as noComposerExportMessage, r as runPipeline } from "./pipeline-Dpesfd2j-CD3W79W6.mjs";
|
|
8
8
|
import { t as withEmulatorRetry } from "./emulator-retry-CV8rl69G-BgUzkxc-.mjs";
|
|
9
9
|
import * as fs$1 from "node:fs";
|
|
10
10
|
import * as path$1 from "node:path";
|
|
@@ -2074,4 +2074,4 @@ async function executeDev(input, deps, cwd) {
|
|
|
2074
2074
|
//#endregion
|
|
2075
2075
|
export { executeDev };
|
|
2076
2076
|
|
|
2077
|
-
//# sourceMappingURL=execute-dev-qKlYePGn-
|
|
2077
|
+
//# sourceMappingURL=execute-dev-qKlYePGn-D6SHRPB4.mjs.map
|