@prisma/composer-prisma-cloud 0.3.0-dev.6 → 0.3.0-dev.8
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/control.d.mts +1 -1
- package/dist/control.mjs +28 -17
- package/dist/control.mjs.map +1 -1
- package/dist/cron/index.d.mts +33 -26
- package/dist/cron/index.d.mts.map +1 -1
- package/dist/cron/index.mjs +202 -77
- package/dist/cron/index.mjs.map +1 -1
- package/dist/cron/scheduler-entrypoint.mjs +133 -114
- package/dist/cron/scheduler-entrypoint.mjs.map +1 -1
- package/dist/cron/scheduler-service.mjs +200 -76
- package/dist/cron/scheduler-service.mjs.map +1 -1
- package/dist/email/email-entrypoint.mjs +162 -126
- package/dist/email/email-entrypoint.mjs.map +1 -1
- package/dist/email/email-service.mjs +230 -79
- package/dist/email/email-service.mjs.map +1 -1
- package/dist/email/index.d.mts +33 -29
- package/dist/email/index.d.mts.map +1 -1
- package/dist/email/index.mjs +236 -84
- package/dist/email/index.mjs.map +1 -1
- package/dist/email/testing.mjs +112 -89
- package/dist/email/testing.mjs.map +1 -1
- package/dist/index.d.mts +51 -43
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +47 -51
- package/dist/index.mjs.map +1 -1
- package/dist/local-target.mjs +1 -1
- package/dist/local-target.mjs.map +1 -1
- package/dist/{preflight-names-BPL-qsZF-BfoRgbgb.mjs → preflight-names-CpJUd9ZA-BCU-W3cT.mjs} +30 -14
- package/dist/{preflight-names-BPL-qsZF-BfoRgbgb.mjs.map → preflight-names-CpJUd9ZA-BCU-W3cT.mjs.map} +1 -1
- package/dist/{provisioned-edges-C1wSO3cx-YC5C19f9.mjs → provisioned-edges-Cxy18aoh-CUnaY96r.mjs} +3 -3
- package/dist/{provisioned-edges-C1wSO3cx-YC5C19f9.mjs.map → provisioned-edges-Cxy18aoh-CUnaY96r.mjs.map} +1 -1
- package/dist/{param-BTzY0ne5-CW6ojZ3E.mjs → secret-BVGxqHxY-DYDfiULl.mjs} +45 -4
- package/dist/secret-BVGxqHxY-DYDfiULl.mjs.map +1 -0
- package/dist/{serializer-Cx5slrV4-xJfH6EWS.d.mts → serializer-BD_6nkr4-DWn5NNTC.d.mts} +2 -2
- package/dist/serializer-BD_6nkr4-DWn5NNTC.d.mts.map +1 -0
- package/dist/serializer-sVE4UAmg-CikRngbR.mjs +475 -0
- package/dist/serializer-sVE4UAmg-CikRngbR.mjs.map +1 -0
- package/dist/storage/index.d.mts +31 -26
- package/dist/storage/index.d.mts.map +1 -1
- package/dist/storage/index.mjs +215 -89
- package/dist/storage/index.mjs.map +1 -1
- package/dist/storage/storage-entrypoint.mjs +147 -122
- package/dist/storage/storage-entrypoint.mjs.map +1 -1
- package/dist/storage/storage-service.mjs +212 -87
- package/dist/storage/storage-service.mjs.map +1 -1
- package/dist/streams/index.d.mts +29 -22
- package/dist/streams/index.d.mts.map +1 -1
- package/dist/streams/index.mjs +213 -88
- package/dist/streams/index.mjs.map +1 -1
- package/dist/streams/streams-entrypoint.mjs +139 -118
- package/dist/streams/streams-entrypoint.mjs.map +1 -1
- package/dist/streams/streams-service.mjs +212 -87
- package/dist/streams/streams-service.mjs.map +1 -1
- package/dist/testing.d.mts +19 -5
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +11 -3
- package/dist/testing.mjs.map +1 -1
- package/package.json +17 -17
- package/dist/param-BTzY0ne5-CW6ojZ3E.mjs.map +0 -1
- package/dist/secret-rz_ZqNeq-_xd97Jd9.mjs +0 -47
- package/dist/secret-rz_ZqNeq-_xd97Jd9.mjs.map +0 -1
- package/dist/serializer-CJiOhF2d-DJUjQj1i.mjs +0 -251
- package/dist/serializer-CJiOhF2d-DJUjQj1i.mjs.map +0 -1
- package/dist/serializer-Cx5slrV4-xJfH6EWS.d.mts.map +0 -1
package/dist/testing.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, Deps, Expose, Params, RunnableServiceNode } from "@prisma/composer";
|
|
1
|
+
import { Config, Deps, Expose, InputBinding, Params, RunnableServiceNode } from "@prisma/composer";
|
|
2
2
|
//#region ../../1-prisma-cloud/1-extensions/target/dist/testing.d.mts
|
|
3
3
|
//#region src/testing.d.ts
|
|
4
4
|
/** What `bootstrapService` hands back: a live, driveable instance of the booted entry. */
|
|
@@ -6,6 +6,17 @@ interface BootstrappedService {
|
|
|
6
6
|
readonly url: string;
|
|
7
7
|
readonly fetch: typeof fetch;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* `bootstrapService`'s config: core's Config plus the service's provision-time
|
|
11
|
+
* `input` binding (ADR-0042) — required exactly when the service declares an
|
|
12
|
+
* input schema, exactly like `provision()`. The binding rides the same
|
|
13
|
+
* deploy-side path a real deploy takes (`serializeInput`: resolve, validate
|
|
14
|
+
* with sentinel boxes, one `$secret`-pointer document row), so `input()` in
|
|
15
|
+
* the booted entry reads it identically to a deployed process.
|
|
16
|
+
*/
|
|
17
|
+
interface BootstrapConfig extends Config {
|
|
18
|
+
readonly input?: InputBinding;
|
|
19
|
+
}
|
|
9
20
|
/**
|
|
10
21
|
* Boots `service`'s real entry against `config`, in-process. By default the
|
|
11
22
|
* entry is `service.build.entry` resolved against `service.build.module` —
|
|
@@ -16,10 +27,13 @@ interface BootstrappedService {
|
|
|
16
27
|
* supplies its own `boot` thunk; the target owns that resolution.
|
|
17
28
|
*
|
|
18
29
|
* `config.service.port` must be concrete — the entry self-listens and never
|
|
19
|
-
* reports an OS-assigned port back.
|
|
20
|
-
*
|
|
30
|
+
* reports an OS-assigned port back. The resolved port is also exposed as
|
|
31
|
+
* `process.env.PORT` before boot, mirroring `run()` — that is the channel an
|
|
32
|
+
* entry reads its port from (ADR-0042 removed `config()`). No `close()`:
|
|
33
|
+
* teardown rides bun-test's per-file process isolation (H3's resolved
|
|
34
|
+
* decision).
|
|
21
35
|
*/
|
|
22
|
-
declare function bootstrapService<D extends Deps, P extends Params, E extends Expose>(service: RunnableServiceNode<D, P, E>, config:
|
|
36
|
+
declare function bootstrapService<D extends Deps, P extends Params, E extends Expose>(service: RunnableServiceNode<D, P, E>, config: BootstrapConfig, boot?: () => Promise<void>): Promise<BootstrappedService>;
|
|
23
37
|
//#endregion
|
|
24
|
-
export { BootstrappedService, bootstrapService };
|
|
38
|
+
export { BootstrapConfig, BootstrappedService, bootstrapService };
|
|
25
39
|
//# sourceMappingURL=testing.d.mts.map
|
package/dist/testing.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.mts","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/testing.d.mts"],"mappings":";;;;UAGU;WACC;WACA,cAAc
|
|
1
|
+
{"version":3,"file":"testing.d.mts","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/testing.d.mts"],"mappings":";;;;UAGU;WACC;WACA,cAAc;;;;;;;;;;UAUf,wBAAwB;WACvB,QAAQ;;;;;;;;;;;;;;;;;;iBAkBF,iBAAiB,UAAU,MAAM,UAAU,QAAQ,UAAU,QAAQ,SAAS,oBAAoB,GAAG,GAAG,IAAI,QAAQ,iBAAiB,aAAa,gBAAgB,QAAQ"}
|
package/dist/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as stash } from "./serializer-
|
|
1
|
+
import { l as serializeInput, u as stash } from "./serializer-sVE4UAmg-CikRngbR.mjs";
|
|
2
2
|
//#region ../../1-prisma-cloud/1-extensions/target/dist/testing.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Boots `service`'s real entry against `config`, in-process. By default the
|
|
@@ -10,8 +10,11 @@ import { u as stash } from "./serializer-CJiOhF2d-DJUjQj1i.mjs";
|
|
|
10
10
|
* supplies its own `boot` thunk; the target owns that resolution.
|
|
11
11
|
*
|
|
12
12
|
* `config.service.port` must be concrete — the entry self-listens and never
|
|
13
|
-
* reports an OS-assigned port back.
|
|
14
|
-
*
|
|
13
|
+
* reports an OS-assigned port back. The resolved port is also exposed as
|
|
14
|
+
* `process.env.PORT` before boot, mirroring `run()` — that is the channel an
|
|
15
|
+
* entry reads its port from (ADR-0042 removed `config()`). No `close()`:
|
|
16
|
+
* teardown rides bun-test's per-file process isolation (H3's resolved
|
|
17
|
+
* decision).
|
|
15
18
|
*/
|
|
16
19
|
async function bootstrapService(service, config, boot) {
|
|
17
20
|
const port = config.service["port"];
|
|
@@ -20,6 +23,11 @@ async function bootstrapService(service, config, boot) {
|
|
|
20
23
|
await import(new URL(service.build.entry, service.build.module).href);
|
|
21
24
|
});
|
|
22
25
|
stash(service, config);
|
|
26
|
+
if (service.inputSchema !== void 0 || config.input !== void 0) {
|
|
27
|
+
const row = serializeInput(service, "", config.input);
|
|
28
|
+
if (row !== void 0) process.env[row.key] = row.value;
|
|
29
|
+
}
|
|
30
|
+
process.env["PORT"] = String(port);
|
|
23
31
|
await bootEntry();
|
|
24
32
|
return {
|
|
25
33
|
url: `http://localhost:${port}/`,
|
package/dist/testing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/testing.mjs"],"sourcesContent":["import { u as stash } from \"./serializer-
|
|
1
|
+
{"version":3,"file":"testing.mjs","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/testing.mjs"],"sourcesContent":["import { l as serializeInput, u as stash } from \"./serializer-sVE4UAmg.mjs\";\n//#region src/testing.ts\n/**\n* Boots `service`'s real entry against `config`, in-process. By default the\n* entry is `service.build.entry` resolved against `service.build.module` —\n* exactly how the printed deploy bootstrap imports it (see `@internal/lowering`'s\n* artifact.ts) — which fits a build adapter whose `entry` is a plain\n* module-relative path (`@prisma/composer/node`'s). A build adapter whose bootable\n* path isn't module-relative (`@prisma/composer/nextjs`'s standalone output)\n* supplies its own `boot` thunk; the target owns that resolution.\n*\n* `config.service.port` must be concrete — the entry self-listens and never\n* reports an OS-assigned port back. The resolved port is also exposed as\n* `process.env.PORT` before boot, mirroring `run()` — that is the channel an\n* entry reads its port from (ADR-0042 removed `config()`). No `close()`:\n* teardown rides bun-test's per-file process isolation (H3's resolved\n* decision).\n*/\nasync function bootstrapService(service, config, boot) {\n\tconst port = config.service[\"port\"];\n\tif (typeof port !== \"number\") throw new Error(\"bootstrapService(): config.service.port must be a concrete port number — the booted entry self-listens with no way to report an OS-assigned one back to the caller.\");\n\tconst bootEntry = boot ?? (async () => {\n\t\tawait import(new URL(service.build.entry, service.build.module).href);\n\t});\n\tstash(service, config);\n\tif (service.inputSchema !== void 0 || config.input !== void 0) {\n\t\tconst row = serializeInput(service, \"\", config.input);\n\t\tif (row !== void 0) process.env[row.key] = row.value;\n\t}\n\tprocess.env[\"PORT\"] = String(port);\n\tawait bootEntry();\n\treturn {\n\t\turl: `http://localhost:${port}/`,\n\t\tfetch\n\t};\n}\n//#endregion\nexport { bootstrapService };\n\n//# sourceMappingURL=testing.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,eAAe,iBAAiB,SAAS,QAAQ,MAAM;CACtD,MAAM,OAAO,OAAO,QAAQ;CAC5B,IAAI,OAAO,SAAS,UAAU,MAAM,IAAI,MAAM,qKAAqK;CACnN,MAAM,YAAY,SAAS,YAAY;EACtC,MAAM,OAAO,IAAI,IAAI,QAAQ,MAAM,OAAO,QAAQ,MAAM,MAAM,CAAC,CAAC;CACjE;CACA,MAAM,SAAS,MAAM;CACrB,IAAI,QAAQ,gBAAgB,KAAK,KAAK,OAAO,UAAU,KAAK,GAAG;EAC9D,MAAM,MAAM,eAAe,SAAS,IAAI,OAAO,KAAK;EACpD,IAAI,QAAQ,KAAK,GAAG,QAAQ,IAAI,IAAI,OAAO,IAAI;CAChD;CACA,QAAQ,IAAI,UAAU,OAAO,IAAI;CACjC,MAAM,UAAU;CAChB,OAAO;EACN,KAAK,oBAAoB,KAAK;EAC9B;CACD;AACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/composer-prisma-cloud",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Prisma Cloud target for Prisma Composer: compute(), postgres(), the target extension, and first-party modules realized on Prisma Cloud (cron).",
|
|
6
6
|
"exports": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@effect/platform-bun": "4.0.0-beta.97",
|
|
34
34
|
"@effect/platform-node": "4.0.0-beta.92",
|
|
35
|
-
"@internal/dev-emulators": "0.3.0-dev.
|
|
35
|
+
"@internal/dev-emulators": "0.3.0-dev.8",
|
|
36
36
|
"@prisma-next/cli": "0.16.0",
|
|
37
37
|
"@prisma-next/config-loader": "0.16.0",
|
|
38
38
|
"@prisma-next/contract": "0.16.0",
|
|
39
39
|
"@prisma-next/migration-tools": "0.16.0",
|
|
40
40
|
"@prisma-next/postgres": "0.16.0",
|
|
41
41
|
"@prisma-next/sql-contract": "0.16.0",
|
|
42
|
-
"@prisma/composer": "0.3.0-dev.
|
|
42
|
+
"@prisma/composer": "0.3.0-dev.8",
|
|
43
43
|
"@prisma/management-api-sdk": "^1.50.0",
|
|
44
44
|
"@standard-schema/spec": "^1.1.0",
|
|
45
45
|
"alchemy": "2.0.0-beta.59",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
"tsdown": "^0.22.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@internal/core": "0.3.0-dev.
|
|
55
|
-
"@internal/cron": "0.3.0-dev.
|
|
56
|
-
"@internal/email": "0.3.0-dev.
|
|
57
|
-
"@internal/foundation": "0.3.0-dev.
|
|
58
|
-
"@internal/local-target": "0.3.0-dev.
|
|
59
|
-
"@internal/lowering": "0.3.0-dev.
|
|
60
|
-
"@internal/nextjs": "0.3.0-dev.
|
|
61
|
-
"@internal/node": "0.3.0-dev.
|
|
62
|
-
"@internal/prisma-cloud": "0.3.0-dev.
|
|
63
|
-
"@internal/s3-protocol": "0.3.0-dev.
|
|
64
|
-
"@internal/service-rpc": "0.3.0-dev.
|
|
65
|
-
"@internal/storage": "0.3.0-dev.
|
|
66
|
-
"@internal/streams": "0.3.0-dev.
|
|
67
|
-
"@internal/tsdown-config": "0.3.0-dev.
|
|
54
|
+
"@internal/core": "0.3.0-dev.8",
|
|
55
|
+
"@internal/cron": "0.3.0-dev.8",
|
|
56
|
+
"@internal/email": "0.3.0-dev.8",
|
|
57
|
+
"@internal/foundation": "0.3.0-dev.8",
|
|
58
|
+
"@internal/local-target": "0.3.0-dev.8",
|
|
59
|
+
"@internal/lowering": "0.3.0-dev.8",
|
|
60
|
+
"@internal/nextjs": "0.3.0-dev.8",
|
|
61
|
+
"@internal/node": "0.3.0-dev.8",
|
|
62
|
+
"@internal/prisma-cloud": "0.3.0-dev.8",
|
|
63
|
+
"@internal/s3-protocol": "0.3.0-dev.8",
|
|
64
|
+
"@internal/service-rpc": "0.3.0-dev.8",
|
|
65
|
+
"@internal/storage": "0.3.0-dev.8",
|
|
66
|
+
"@internal/streams": "0.3.0-dev.8",
|
|
67
|
+
"@internal/tsdown-config": "0.3.0-dev.8",
|
|
68
68
|
"@types/node": "^26.0.1",
|
|
69
69
|
"typescript": "^6.0.3"
|
|
70
70
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"param-BTzY0ne5-CW6ojZ3E.mjs","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/param-BTzY0ne5.mjs"],"sourcesContent":["import { isParamSource, paramSource } from \"@internal/core\";\nimport { blindCast } from \"@internal/foundation/casts\";\n//#region src/param.ts\n/**\n* Brands the payload `envParam` builds. Core's `paramSource()` is a public\n* SPI, so a user could bypass `envParam` and bind a raw `paramSource('x')`;\n* the brand lets `paramName` reject such a source (or another target's) with\n* a clear error instead of reading an absent `.name`.\n*/\nconst PRISMA_CLOUD_PARAM_SOURCE = blindCast(Symbol.for(\"prisma:prisma-cloud-param-source\"));\nconst RESERVED_PARAM_PREFIX = \"COMPOSER_\";\nconst POISONED_PARAM_NAMES = /* @__PURE__ */ new Set([\"DATABASE_URL\", \"DATABASE_URL_POOLED\"]);\n/**\n* Binds a param slot to a named Prisma Cloud platform env var — the non-secret\n* sibling of `envSecret` (spec: env-sourced config params). The platform\n* injects the value into the running instance per stage; the param's own\n* schema validates it at boot, unredacted. The name may not use the\n* framework's reserved `COMPOSER_` prefix or the poisoned\n* `DATABASE_URL(_POOLED)` keys — same parity as `envSecret`.\n*/\nfunction envParam(name) {\n\tif (typeof name !== \"string\" || name.length === 0) throw new Error(\"envParam() requires a non-empty platform env-var name, e.g. envParam('APP_ORIGIN').\");\n\tif (name.startsWith(RESERVED_PARAM_PREFIX)) throw new Error(`envParam name \"${name}\" may not start with \"${RESERVED_PARAM_PREFIX}\" — that prefix is reserved for the framework's own generated config keys.`);\n\tif (POISONED_PARAM_NAMES.has(name)) throw new Error(`envParam name \"${name}\" is reserved — ${[...POISONED_PARAM_NAMES].join(\" and \")} are poisoned at project provision and cannot back a param.`);\n\treturn paramSource({\n\t\t[PRISMA_CLOUD_PARAM_SOURCE]: true,\n\t\tname\n\t});\n}\n/** True only for a payload that `envParam` built — i.e. one carrying the brand. */\nfunction isEnvParamPayload(payload) {\n\treturn typeof payload === \"object\" && payload !== null && blindCast(payload)[PRISMA_CLOUD_PARAM_SOURCE] === true;\n}\n/** True iff a resolved param value is an env-sourced pointer this target built (as opposed to a literal, or a foreign/raw `ParamSource`). */\nfunction isEnvParamSource(value) {\n\treturn isParamSource(value) && isEnvParamPayload(value.payload);\n}\n/**\n* Reads the Prisma Cloud env-var name back out of a param binding's opaque\n* source. A source not built by `envParam` (a raw `paramSource(...)` or\n* another target's source) carries no name — reject it here. `paramName` runs\n* in preflight and at serialize before any value ever crosses the wire, so a\n* foreign source fails early and clearly rather than producing a broken\n* deploy with an undefined name.\n*/\nfunction paramName(binding) {\n\tconst { binding: bound } = binding;\n\tif (!isEnvParamSource(bound)) throw new Error(`param slot \"${binding.slot}\" of service \"${binding.serviceAddress}\" is bound to a source not created by envParam() — bind env-sourced params with envParam('NAME') from @prisma/composer-prisma-cloud.`);\n\treturn bound.payload.name;\n}\n/**\n* Finds the manifest entry for one service param slot. `serialize` calls this\n* only after confirming `buildConfig` resolved the slot to a `ParamSource`\n* (`isParamSource(value)`), so a miss here means `graph.params` and the\n* resolved `Config` have drifted — a Load invariant violation, surfaced\n* loudly rather than producing a pointer row with an undefined name.\n*/\nfunction paramBindingFor(bindings, serviceAddress, slot) {\n\tconst binding = bindings.find((b) => b.serviceAddress === serviceAddress && b.slot === slot);\n\tif (binding === void 0) throw new Error(`param slot \"${slot}\" of \"${serviceAddress}\" resolved to a source but has no bound entry in the manifest — Load should have recorded it.`);\n\treturn binding;\n}\n//#endregion\nexport { paramName as i, isEnvParamSource as n, paramBindingFor as r, envParam as t };\n\n//# sourceMappingURL=param-BTzY0ne5.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,4BAA4B,UAAU,OAAO,IAAI,kCAAkC,CAAC;AAC1F,MAAM,wBAAwB;AAC9B,MAAM,uCAAuC,IAAI,IAAI,CAAC,gBAAgB,qBAAqB,CAAC;;;;;;;;;AAS5F,SAAS,SAAS,MAAM;CACvB,IAAI,OAAO,SAAS,YAAY,KAAK,WAAW,GAAG,MAAM,IAAI,MAAM,qFAAqF;CACxJ,IAAI,KAAK,WAAW,qBAAqB,GAAG,MAAM,IAAI,MAAM,kBAAkB,KAAK,wBAAwB,sBAAsB,2EAA2E;CAC5M,IAAI,qBAAqB,IAAI,IAAI,GAAG,MAAM,IAAI,MAAM,kBAAkB,KAAK,kBAAkB,CAAC,GAAG,oBAAoB,CAAC,CAAC,KAAK,OAAO,EAAE,4DAA4D;CACjM,OAAO,YAAY;GACjB,4BAA4B;EAC7B;CACD,CAAC;AACF;;AAEA,SAAS,kBAAkB,SAAS;CACnC,OAAO,OAAO,YAAY,YAAY,YAAY,QAAQ,UAAU,OAAO,CAAC,CAAC,+BAA+B;AAC7G;;AAEA,SAAS,iBAAiB,OAAO;CAChC,OAAO,cAAc,KAAK,KAAK,kBAAkB,MAAM,OAAO;AAC/D;;;;;;;;;AASA,SAAS,UAAU,SAAS;CAC3B,MAAM,EAAE,SAAS,UAAU;CAC3B,IAAI,CAAC,iBAAiB,KAAK,GAAG,MAAM,IAAI,MAAM,eAAe,QAAQ,KAAK,gBAAgB,QAAQ,eAAe,qIAAqI;CACtP,OAAO,MAAM,QAAQ;AACtB;;;;;;;;AAQA,SAAS,gBAAgB,UAAU,gBAAgB,MAAM;CACxD,MAAM,UAAU,SAAS,MAAM,MAAM,EAAE,mBAAmB,kBAAkB,EAAE,SAAS,IAAI;CAC3F,IAAI,YAAY,KAAK,GAAG,MAAM,IAAI,MAAM,eAAe,KAAK,QAAQ,eAAe,8FAA8F;CACjL,OAAO;AACR"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { secretSource } from "@prisma/composer";
|
|
2
|
-
import { blindCast } from "@prisma/composer/casts";
|
|
3
|
-
//#region ../../1-prisma-cloud/1-extensions/target/dist/secret-rz_ZqNeq.mjs
|
|
4
|
-
/**
|
|
5
|
-
* Brands the payload `envSecret` builds. Core's `secretSource()` is a public
|
|
6
|
-
* SPI, so a user could bypass `envSecret` and bind a raw `secretSource('x')`;
|
|
7
|
-
* the brand lets `secretName` reject such a source (or another target's) with a
|
|
8
|
-
* clear error instead of reading an absent `.name`.
|
|
9
|
-
*/
|
|
10
|
-
const PRISMA_CLOUD_SECRET_SOURCE = blindCast(Symbol.for("prisma:prisma-cloud-secret-source"));
|
|
11
|
-
const RESERVED_SECRET_PREFIX = "COMPOSER_";
|
|
12
|
-
const POISONED_SECRET_NAMES = /* @__PURE__ */ new Set(["DATABASE_URL", "DATABASE_URL_POOLED"]);
|
|
13
|
-
/**
|
|
14
|
-
* Binds a secret slot to a named Prisma Cloud platform env var (ADR-0029). The
|
|
15
|
-
* value is provisioned out-of-band; only the name is carried. The name may not
|
|
16
|
-
* use the framework's reserved `COMPOSER_` prefix or the poisoned
|
|
17
|
-
* `DATABASE_URL(_POOLED)` keys.
|
|
18
|
-
*/
|
|
19
|
-
function envSecret(name) {
|
|
20
|
-
if (typeof name !== "string" || name.length === 0) throw new Error("envSecret() requires a non-empty platform env-var name, e.g. envSecret('STRIPE_SECRET_KEY').");
|
|
21
|
-
if (name.startsWith(RESERVED_SECRET_PREFIX)) throw new Error(`envSecret name "${name}" may not start with "${RESERVED_SECRET_PREFIX}" — that prefix is reserved for the framework's own generated config keys.`);
|
|
22
|
-
if (POISONED_SECRET_NAMES.has(name)) throw new Error(`envSecret name "${name}" is reserved — ${[...POISONED_SECRET_NAMES].join(" and ")} are poisoned at project provision and cannot back a secret.`);
|
|
23
|
-
return secretSource({
|
|
24
|
-
[PRISMA_CLOUD_SECRET_SOURCE]: true,
|
|
25
|
-
name
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/** True only for a payload that `envSecret` built — i.e. one carrying the brand. */
|
|
29
|
-
function isEnvSecretPayload(payload) {
|
|
30
|
-
return typeof payload === "object" && payload !== null && blindCast(payload)[PRISMA_CLOUD_SECRET_SOURCE] === true;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Reads the Prisma Cloud env-var name back out of a secret binding's opaque
|
|
34
|
-
* source. A source not built by `envSecret` (a raw `secretSource(...)` or
|
|
35
|
-
* another target's source) carries no name — reject it here. `secretName` runs
|
|
36
|
-
* in preflight before any provisioning, so a foreign source fails early and
|
|
37
|
-
* clearly rather than producing a broken deploy with an undefined name.
|
|
38
|
-
*/
|
|
39
|
-
function secretName(binding) {
|
|
40
|
-
const payload = binding.source.payload;
|
|
41
|
-
if (!isEnvSecretPayload(payload)) throw new Error(`secret slot "${binding.slot}" of service "${binding.serviceAddress}" is bound to a source not created by envSecret() — bind secrets with envSecret('NAME') from @prisma/composer-prisma-cloud.`);
|
|
42
|
-
return payload.name;
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
export { secretName as n, envSecret as t };
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=secret-rz_ZqNeq-_xd97Jd9.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secret-rz_ZqNeq-_xd97Jd9.mjs","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/secret-rz_ZqNeq.mjs"],"sourcesContent":["import { secretSource } from \"@internal/core\";\nimport { blindCast } from \"@internal/foundation/casts\";\n//#region src/secret.ts\n/**\n* Brands the payload `envSecret` builds. Core's `secretSource()` is a public\n* SPI, so a user could bypass `envSecret` and bind a raw `secretSource('x')`;\n* the brand lets `secretName` reject such a source (or another target's) with a\n* clear error instead of reading an absent `.name`.\n*/\nconst PRISMA_CLOUD_SECRET_SOURCE = blindCast(Symbol.for(\"prisma:prisma-cloud-secret-source\"));\nconst RESERVED_SECRET_PREFIX = \"COMPOSER_\";\nconst POISONED_SECRET_NAMES = /* @__PURE__ */ new Set([\"DATABASE_URL\", \"DATABASE_URL_POOLED\"]);\n/**\n* Binds a secret slot to a named Prisma Cloud platform env var (ADR-0029). The\n* value is provisioned out-of-band; only the name is carried. The name may not\n* use the framework's reserved `COMPOSER_` prefix or the poisoned\n* `DATABASE_URL(_POOLED)` keys.\n*/\nfunction envSecret(name) {\n\tif (typeof name !== \"string\" || name.length === 0) throw new Error(\"envSecret() requires a non-empty platform env-var name, e.g. envSecret('STRIPE_SECRET_KEY').\");\n\tif (name.startsWith(RESERVED_SECRET_PREFIX)) throw new Error(`envSecret name \"${name}\" may not start with \"${RESERVED_SECRET_PREFIX}\" — that prefix is reserved for the framework's own generated config keys.`);\n\tif (POISONED_SECRET_NAMES.has(name)) throw new Error(`envSecret name \"${name}\" is reserved — ${[...POISONED_SECRET_NAMES].join(\" and \")} are poisoned at project provision and cannot back a secret.`);\n\treturn secretSource({\n\t\t[PRISMA_CLOUD_SECRET_SOURCE]: true,\n\t\tname\n\t});\n}\n/** True only for a payload that `envSecret` built — i.e. one carrying the brand. */\nfunction isEnvSecretPayload(payload) {\n\treturn typeof payload === \"object\" && payload !== null && blindCast(payload)[PRISMA_CLOUD_SECRET_SOURCE] === true;\n}\n/**\n* Reads the Prisma Cloud env-var name back out of a secret binding's opaque\n* source. A source not built by `envSecret` (a raw `secretSource(...)` or\n* another target's source) carries no name — reject it here. `secretName` runs\n* in preflight before any provisioning, so a foreign source fails early and\n* clearly rather than producing a broken deploy with an undefined name.\n*/\nfunction secretName(binding) {\n\tconst payload = binding.source.payload;\n\tif (!isEnvSecretPayload(payload)) throw new Error(`secret slot \"${binding.slot}\" of service \"${binding.serviceAddress}\" is bound to a source not created by envSecret() — bind secrets with envSecret('NAME') from @prisma/composer-prisma-cloud.`);\n\treturn payload.name;\n}\n//#endregion\nexport { secretName as n, envSecret as t };\n\n//# sourceMappingURL=secret-rz_ZqNeq.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,6BAA6B,UAAU,OAAO,IAAI,mCAAmC,CAAC;AAC5F,MAAM,yBAAyB;AAC/B,MAAM,wCAAwC,IAAI,IAAI,CAAC,gBAAgB,qBAAqB,CAAC;;;;;;;AAO7F,SAAS,UAAU,MAAM;CACxB,IAAI,OAAO,SAAS,YAAY,KAAK,WAAW,GAAG,MAAM,IAAI,MAAM,8FAA8F;CACjK,IAAI,KAAK,WAAW,sBAAsB,GAAG,MAAM,IAAI,MAAM,mBAAmB,KAAK,wBAAwB,uBAAuB,2EAA2E;CAC/M,IAAI,sBAAsB,IAAI,IAAI,GAAG,MAAM,IAAI,MAAM,mBAAmB,KAAK,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,CAAC,KAAK,OAAO,EAAE,6DAA6D;CACrM,OAAO,aAAa;GAClB,6BAA6B;EAC9B;CACD,CAAC;AACF;;AAEA,SAAS,mBAAmB,SAAS;CACpC,OAAO,OAAO,YAAY,YAAY,YAAY,QAAQ,UAAU,OAAO,CAAC,CAAC,gCAAgC;AAC9G;;;;;;;;AAQA,SAAS,WAAW,SAAS;CAC5B,MAAM,UAAU,QAAQ,OAAO;CAC/B,IAAI,CAAC,mBAAmB,OAAO,GAAG,MAAM,IAAI,MAAM,gBAAgB,QAAQ,KAAK,gBAAgB,QAAQ,eAAe,4HAA4H;CAClP,OAAO,QAAQ;AAChB"}
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { n as secretName } from "./secret-rz_ZqNeq-_xd97Jd9.mjs";
|
|
2
|
-
import { blindCast } from "@prisma/composer/casts";
|
|
3
|
-
import { type } from "arktype";
|
|
4
|
-
//#region ../../1-prisma-cloud/1-extensions/target/dist/serializer-CJiOhF2d.mjs
|
|
5
|
-
/**
|
|
6
|
-
* Walks a node's own params, then each dependency input's connection params —
|
|
7
|
-
* the same enumeration order `configOf` uses, but carrying the raw
|
|
8
|
-
* `ConfigParam` (with its `serialize`/`deserialize`) instead of a pure-data
|
|
9
|
-
* projection.
|
|
10
|
-
*/
|
|
11
|
-
function paramEntries(node) {
|
|
12
|
-
const entries = [];
|
|
13
|
-
for (const [input, value] of Object.entries(node.inputs)) {
|
|
14
|
-
if (typeof value !== "object" || value === null) continue;
|
|
15
|
-
const params = blindCast(value).connection.params;
|
|
16
|
-
for (const [name, param] of Object.entries(params)) entries.push({
|
|
17
|
-
owner: { input },
|
|
18
|
-
name,
|
|
19
|
-
param
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
for (const [name, param] of Object.entries(node.params)) entries.push({
|
|
23
|
-
owner: "service",
|
|
24
|
-
name,
|
|
25
|
-
param
|
|
26
|
-
});
|
|
27
|
-
return entries;
|
|
28
|
-
}
|
|
29
|
-
const configKey = (address, d) => {
|
|
30
|
-
const segments = address.split(".").filter((s) => s.length > 0);
|
|
31
|
-
const owner = d.owner === "service" ? [] : [d.owner.input];
|
|
32
|
-
return [
|
|
33
|
-
"COMPOSER",
|
|
34
|
-
...segments,
|
|
35
|
-
...owner,
|
|
36
|
-
d.name
|
|
37
|
-
].join("_").toUpperCase();
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Typed value → its stored string. Service-own literals are JSON-encoded; a
|
|
41
|
-
* dependency-input value is a provisioning ref at deploy (and a resolved
|
|
42
|
-
* string at boot) and passes through untouched — LANDMINE: JSON-encoding it
|
|
43
|
-
* would break the ordering edge Alchemy resolves through it.
|
|
44
|
-
*/
|
|
45
|
-
function encode(owner, value) {
|
|
46
|
-
return owner === "service" ? JSON.stringify(value) : blindCast(value);
|
|
47
|
-
}
|
|
48
|
-
/** Reverses `encode`: JSON-parse a service-own value, take a dependency-input value raw. */
|
|
49
|
-
function decode(owner, raw) {
|
|
50
|
-
return owner === "service" ? JSON.parse(raw) : raw;
|
|
51
|
-
}
|
|
52
|
-
const PARAM_POINTER_PREFIX = "@composer-param-pointer:";
|
|
53
|
-
/** True iff `raw` is a param pointer row (as opposed to a JSON-encoded literal). */
|
|
54
|
-
const isParamPointerRow = (raw) => raw.startsWith(PARAM_POINTER_PREFIX);
|
|
55
|
-
/** Builds a param pointer row's stored value from the platform var NAME it points to. */
|
|
56
|
-
const encodeParamPointer = (name) => `${PARAM_POINTER_PREFIX}${name}`;
|
|
57
|
-
/** Reverses `encodeParamPointer`: the platform var NAME a pointer row points to. */
|
|
58
|
-
const decodeParamPointer = (raw) => raw.slice(24);
|
|
59
|
-
function coerce(raw, d, key) {
|
|
60
|
-
if (!(raw !== void 0 && raw !== "")) {
|
|
61
|
-
if (d.param.default !== void 0) return d.param.default;
|
|
62
|
-
if (d.param.optional === true) return void 0;
|
|
63
|
-
throw new Error(`missing required config param "${d.name}" (env ${key})`);
|
|
64
|
-
}
|
|
65
|
-
if (d.owner === "service" && isParamPointerRow(raw)) return coerceEnvSourcedParam(raw, d, key);
|
|
66
|
-
try {
|
|
67
|
-
return standardValidateSync(d.param.schema, decode(d.owner, raw));
|
|
68
|
-
} catch (cause) {
|
|
69
|
-
const message = cause instanceof Error ? cause.message : String(cause);
|
|
70
|
-
throw new Error(`invalid value for config param "${d.name}" (env ${key}): ${message}`);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Boot resolution for an env-sourced param: double-lookup (pointer → platform
|
|
75
|
-
* var), then the param's own schema on the raw string — no JSON decode, and
|
|
76
|
-
* no redaction (it's config, not a secret). An UNSET platform var is a loud
|
|
77
|
-
* boot failure naming both the param and the platform var; an EMPTY string is
|
|
78
|
-
* not special-cased here — it reaches the schema like any other value, so it
|
|
79
|
-
* passes iff the schema accepts it (deliberately unlike a literal param's own
|
|
80
|
-
* ""-means-absent rule, and unlike a secret's non-empty requirement).
|
|
81
|
-
*/
|
|
82
|
-
function coerceEnvSourcedParam(raw, d, key) {
|
|
83
|
-
const platformVar = decodeParamPointer(raw);
|
|
84
|
-
const value = process.env[platformVar];
|
|
85
|
-
if (value === void 0) throw new Error(`env-sourced config param "${d.name}" (env ${key} → ${platformVar}) is unset: the platform variable "${platformVar}" was not injected — the deploy did not provision it.`);
|
|
86
|
-
try {
|
|
87
|
-
return standardValidateSync(d.param.schema, value);
|
|
88
|
-
} catch (cause) {
|
|
89
|
-
const message = cause instanceof Error ? cause.message : String(cause);
|
|
90
|
-
throw new Error(`invalid value for env-sourced config param "${d.name}" (env ${key} → ${platformVar}): ${message}`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Boot: read each declared param from env by its key, reverse the param's own
|
|
95
|
-
* serialization (missing/invalid fails loudly), assemble the typed Config.
|
|
96
|
-
* Secrets ride a separate channel (deserializeSecrets), not this one.
|
|
97
|
-
*/
|
|
98
|
-
const deserialize = (node, address) => {
|
|
99
|
-
const service = {};
|
|
100
|
-
const inputs = {};
|
|
101
|
-
for (const d of paramEntries(node)) {
|
|
102
|
-
const key = configKey(address, d);
|
|
103
|
-
const value = coerce(process.env[key], d, key);
|
|
104
|
-
if (d.owner === "service") service[d.name] = value;
|
|
105
|
-
else {
|
|
106
|
-
let bucket = inputs[d.owner.input];
|
|
107
|
-
if (bucket === void 0) {
|
|
108
|
-
bucket = {};
|
|
109
|
-
inputs[d.owner.input] = bucket;
|
|
110
|
-
}
|
|
111
|
-
bucket[d.name] = value;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
service,
|
|
116
|
-
inputs
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* run()'s setup step: write the resolved config to the environment under
|
|
121
|
-
* address-free keys (configKey("", d) + each serialize suffix), which load()
|
|
122
|
-
* reads back with no address. Uses env, not a module variable, because a
|
|
123
|
-
* framework may fork worker processes that inherit env but not memory.
|
|
124
|
-
* Writes only these keys; nothing else is touched.
|
|
125
|
-
*/
|
|
126
|
-
const stash = (node, config) => {
|
|
127
|
-
for (const d of paramEntries(node)) {
|
|
128
|
-
const value = d.owner === "service" ? config.service[d.name] : config.inputs[d.owner.input]?.[d.name];
|
|
129
|
-
if (value === void 0) continue;
|
|
130
|
-
process.env[configKey("", d)] = encode(d.owner, value);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
/** The pointer-row key for a secret slot: COMPOSER_<addr>_<slot> (secrets are service-level). */
|
|
134
|
-
const secretKey = (address, slot) => configKey(address, {
|
|
135
|
-
owner: "service",
|
|
136
|
-
name: slot
|
|
137
|
-
});
|
|
138
|
-
/**
|
|
139
|
-
* Deploy: the pointer rows for a node's secret slots — each slot's key mapped to
|
|
140
|
-
* the platform NAME the root bound it to (looked up in `graph.secrets`). Never a
|
|
141
|
-
* value. A declared slot with no binding is a Load-invariant violation (Load
|
|
142
|
-
* binds every slot), surfaced loudly here rather than written as a blank row.
|
|
143
|
-
*/
|
|
144
|
-
function secretPointerRows(node, address, bindings) {
|
|
145
|
-
const rows = [];
|
|
146
|
-
for (const slot of Object.keys(node.secretSlots)) {
|
|
147
|
-
const binding = bindings.find((b) => b.serviceAddress === address && b.slot === slot);
|
|
148
|
-
if (binding === void 0) throw new Error(`secret slot "${slot}" of "${address}" has no bound platform name — Load should have bound it (ADR-0029).`);
|
|
149
|
-
rows.push({
|
|
150
|
-
key: secretKey(address, slot),
|
|
151
|
-
name: secretName(binding)
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
return rows;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Boot: resolve every secret slot to its value by double-lookup — read the
|
|
158
|
-
* pointer key (the platform NAME), then read that platform var. A missing
|
|
159
|
-
* pointer or a missing/empty platform value is a loud failure naming both keys.
|
|
160
|
-
* Returns a plain Record for core's `hydrateSecrets` to box.
|
|
161
|
-
*/
|
|
162
|
-
const deserializeSecrets = (node, address) => {
|
|
163
|
-
const values = {};
|
|
164
|
-
for (const slot of Object.keys(node.secretSlots)) {
|
|
165
|
-
const key = secretKey(address, slot);
|
|
166
|
-
const name = process.env[key];
|
|
167
|
-
if (name === void 0 || name === "") throw new Error(`missing secret pointer for slot "${slot}" (env ${key}) — the deploy did not write it.`);
|
|
168
|
-
const value = process.env[name];
|
|
169
|
-
if (value === void 0 || value === "") throw new Error(`secret "${slot}" is not provisioned (env ${key} → ${name}): the platform var "${name}" is unset or empty.`);
|
|
170
|
-
values[slot] = value;
|
|
171
|
-
}
|
|
172
|
-
return values;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* run()'s setup step for secrets: re-emit each slot's pointer NAME under its
|
|
176
|
-
* address-free key, so the address-free `deserializeSecrets` double-looks-up
|
|
177
|
-
* identically. Never the value — the value stays only in the platform var.
|
|
178
|
-
*/
|
|
179
|
-
const stashSecrets = (node, address) => {
|
|
180
|
-
for (const slot of Object.keys(node.secretSlots)) {
|
|
181
|
-
const name = process.env[secretKey(address, slot)];
|
|
182
|
-
if (name === void 0) continue;
|
|
183
|
-
process.env[secretKey("", slot)] = name;
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Boot: for each reserved provider param, read its address-scoped row through
|
|
188
|
-
* the same `coerce` a declared param uses (JSON-decode, schema-validate), and
|
|
189
|
-
* re-emit it address-free — `stash`'s counterpart for this separate
|
|
190
|
-
* declaration space. A param is declared optional here unconditionally: an
|
|
191
|
-
* absent row means "never provisioned" (local dev, tests, a provider with no
|
|
192
|
-
* registered value for this deploy), never a boot failure, so nothing is
|
|
193
|
-
* stashed and the runtime reader that owns this slot falls back to its own
|
|
194
|
-
* pass-through behavior.
|
|
195
|
-
*/
|
|
196
|
-
function stashProviderParams(entries, address) {
|
|
197
|
-
for (const entry of entries) {
|
|
198
|
-
const d = {
|
|
199
|
-
owner: "service",
|
|
200
|
-
name: entry.name,
|
|
201
|
-
param: {
|
|
202
|
-
schema: entry.schema,
|
|
203
|
-
optional: true
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
const key = configKey(address, d);
|
|
207
|
-
const value = coerce(process.env[key], d, key);
|
|
208
|
-
if (value === void 0) continue;
|
|
209
|
-
process.env[configKey("", d)] = encode("service", value);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
/** The framework-resolved origin row: COMPOSER_<addr>_ORIGIN. Written per
|
|
213
|
-
* compute service at serialize — the service's own provisioned endpoint URL,
|
|
214
|
-
* riding the reserved-provider-param machinery (`origin-key.ts`'s
|
|
215
|
-
* `ORIGIN_PARAM`); never a declared param, never in config(). A harness with
|
|
216
|
-
* no deploy behind it supplies it by setting `COMPOSER_ORIGIN` to the
|
|
217
|
-
* JSON-encoded origin URL — exactly how the existing entrypoint tests supply
|
|
218
|
-
* their other `COMPOSER_*` rows. */
|
|
219
|
-
const ORIGIN_KEY_NAME = "ORIGIN";
|
|
220
|
-
/**
|
|
221
|
-
* Reads this service's origin back out of the address-free stash
|
|
222
|
-
* `stashProviderParams` wrote for the ORIGIN entry. `COMPOSER_ORIGIN` unset is
|
|
223
|
-
* a loud failure — a deployed environment always writes it, so an unset row
|
|
224
|
-
* means either a local harness that hasn't supplied it or a boot() called
|
|
225
|
-
* before run().
|
|
226
|
-
*/
|
|
227
|
-
function readOrigin() {
|
|
228
|
-
const d = {
|
|
229
|
-
owner: "service",
|
|
230
|
-
name: ORIGIN_KEY_NAME,
|
|
231
|
-
param: {
|
|
232
|
-
schema: type("string"),
|
|
233
|
-
optional: true
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
const key = configKey("", d);
|
|
237
|
-
const value = coerce(process.env[key], d, key);
|
|
238
|
-
if (value === void 0) throw new Error("this service's origin is not available (env COMPOSER_ORIGIN is unset) — a deployed environment writes it automatically; a local harness must supply it like any other config value (set COMPOSER_ORIGIN to the JSON-encoded origin URL).");
|
|
239
|
-
return blindCast(value);
|
|
240
|
-
}
|
|
241
|
-
/** Synchronous Standard Schema validation — see the matching note in core's `config.ts`. */
|
|
242
|
-
function standardValidateSync(schema, value) {
|
|
243
|
-
const result = schema["~standard"].validate(value);
|
|
244
|
-
if (result instanceof Promise) throw new Error("config param schema validation must be synchronous — async Standard Schema validators are not supported for config params");
|
|
245
|
-
if (result.issues !== void 0) throw new Error(`config param validation failed: ${result.issues.map((issue) => issue.message).join("; ")}`);
|
|
246
|
-
return result.value;
|
|
247
|
-
}
|
|
248
|
-
//#endregion
|
|
249
|
-
export { encode as a, readOrigin as c, stashProviderParams as d, stashSecrets as f, deserializeSecrets as i, secretPointerRows as l, configKey as n, encodeParamPointer as o, deserialize as r, paramEntries as s, ORIGIN_KEY_NAME as t, stash as u };
|
|
250
|
-
|
|
251
|
-
//# sourceMappingURL=serializer-CJiOhF2d-DJUjQj1i.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializer-CJiOhF2d-DJUjQj1i.mjs","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/serializer-CJiOhF2d.mjs"],"sourcesContent":["import { n as secretName } from \"./secret-rz_ZqNeq.mjs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport { type } from \"arktype\";\n//#region src/serializer.ts\n/**\n* Walks a node's own params, then each dependency input's connection params —\n* the same enumeration order `configOf` uses, but carrying the raw\n* `ConfigParam` (with its `serialize`/`deserialize`) instead of a pure-data\n* projection.\n*/\nfunction paramEntries(node) {\n\tconst entries = [];\n\tfor (const [input, value] of Object.entries(node.inputs)) {\n\t\tif (typeof value !== \"object\" || value === null) continue;\n\t\tconst params = blindCast(value).connection.params;\n\t\tfor (const [name, param] of Object.entries(params)) entries.push({\n\t\t\towner: { input },\n\t\t\tname,\n\t\t\tparam\n\t\t});\n\t}\n\tfor (const [name, param] of Object.entries(node.params)) entries.push({\n\t\towner: \"service\",\n\t\tname,\n\t\tparam\n\t});\n\treturn entries;\n}\nconst configKey = (address, d) => {\n\tconst segments = address.split(\".\").filter((s) => s.length > 0);\n\tconst owner = d.owner === \"service\" ? [] : [d.owner.input];\n\treturn [\n\t\t\"COMPOSER\",\n\t\t...segments,\n\t\t...owner,\n\t\td.name\n\t].join(\"_\").toUpperCase();\n};\n/**\n* Typed value → its stored string. Service-own literals are JSON-encoded; a\n* dependency-input value is a provisioning ref at deploy (and a resolved\n* string at boot) and passes through untouched — LANDMINE: JSON-encoding it\n* would break the ordering edge Alchemy resolves through it.\n*/\nfunction encode(owner, value) {\n\treturn owner === \"service\" ? JSON.stringify(value) : blindCast(value);\n}\n/** Reverses `encode`: JSON-parse a service-own value, take a dependency-input value raw. */\nfunction decode(owner, raw) {\n\treturn owner === \"service\" ? JSON.parse(raw) : raw;\n}\nconst PARAM_POINTER_PREFIX = \"@composer-param-pointer:\";\n/** True iff `raw` is a param pointer row (as opposed to a JSON-encoded literal). */\nconst isParamPointerRow = (raw) => raw.startsWith(PARAM_POINTER_PREFIX);\n/** Builds a param pointer row's stored value from the platform var NAME it points to. */\nconst encodeParamPointer = (name) => `${PARAM_POINTER_PREFIX}${name}`;\n/** Reverses `encodeParamPointer`: the platform var NAME a pointer row points to. */\nconst decodeParamPointer = (raw) => raw.slice(24);\nfunction coerce(raw, d, key) {\n\tif (!(raw !== void 0 && raw !== \"\")) {\n\t\tif (d.param.default !== void 0) return d.param.default;\n\t\tif (d.param.optional === true) return void 0;\n\t\tthrow new Error(`missing required config param \"${d.name}\" (env ${key})`);\n\t}\n\tif (d.owner === \"service\" && isParamPointerRow(raw)) return coerceEnvSourcedParam(raw, d, key);\n\ttry {\n\t\treturn standardValidateSync(d.param.schema, decode(d.owner, raw));\n\t} catch (cause) {\n\t\tconst message = cause instanceof Error ? cause.message : String(cause);\n\t\tthrow new Error(`invalid value for config param \"${d.name}\" (env ${key}): ${message}`);\n\t}\n}\n/**\n* Boot resolution for an env-sourced param: double-lookup (pointer → platform\n* var), then the param's own schema on the raw string — no JSON decode, and\n* no redaction (it's config, not a secret). An UNSET platform var is a loud\n* boot failure naming both the param and the platform var; an EMPTY string is\n* not special-cased here — it reaches the schema like any other value, so it\n* passes iff the schema accepts it (deliberately unlike a literal param's own\n* \"\"-means-absent rule, and unlike a secret's non-empty requirement).\n*/\nfunction coerceEnvSourcedParam(raw, d, key) {\n\tconst platformVar = decodeParamPointer(raw);\n\tconst value = process.env[platformVar];\n\tif (value === void 0) throw new Error(`env-sourced config param \"${d.name}\" (env ${key} → ${platformVar}) is unset: the platform variable \"${platformVar}\" was not injected — the deploy did not provision it.`);\n\ttry {\n\t\treturn standardValidateSync(d.param.schema, value);\n\t} catch (cause) {\n\t\tconst message = cause instanceof Error ? cause.message : String(cause);\n\t\tthrow new Error(`invalid value for env-sourced config param \"${d.name}\" (env ${key} → ${platformVar}): ${message}`);\n\t}\n}\n/**\n* Boot: read each declared param from env by its key, reverse the param's own\n* serialization (missing/invalid fails loudly), assemble the typed Config.\n* Secrets ride a separate channel (deserializeSecrets), not this one.\n*/\nconst deserialize = (node, address) => {\n\tconst service = {};\n\tconst inputs = {};\n\tfor (const d of paramEntries(node)) {\n\t\tconst key = configKey(address, d);\n\t\tconst value = coerce(process.env[key], d, key);\n\t\tif (d.owner === \"service\") service[d.name] = value;\n\t\telse {\n\t\t\tlet bucket = inputs[d.owner.input];\n\t\t\tif (bucket === void 0) {\n\t\t\t\tbucket = {};\n\t\t\t\tinputs[d.owner.input] = bucket;\n\t\t\t}\n\t\t\tbucket[d.name] = value;\n\t\t}\n\t}\n\treturn {\n\t\tservice,\n\t\tinputs\n\t};\n};\n/**\n* run()'s setup step: write the resolved config to the environment under\n* address-free keys (configKey(\"\", d) + each serialize suffix), which load()\n* reads back with no address. Uses env, not a module variable, because a\n* framework may fork worker processes that inherit env but not memory.\n* Writes only these keys; nothing else is touched.\n*/\nconst stash = (node, config) => {\n\tfor (const d of paramEntries(node)) {\n\t\tconst value = d.owner === \"service\" ? config.service[d.name] : config.inputs[d.owner.input]?.[d.name];\n\t\tif (value === void 0) continue;\n\t\tprocess.env[configKey(\"\", d)] = encode(d.owner, value);\n\t}\n};\n/** The pointer-row key for a secret slot: COMPOSER_<addr>_<slot> (secrets are service-level). */\nconst secretKey = (address, slot) => configKey(address, {\n\towner: \"service\",\n\tname: slot\n});\n/**\n* Deploy: the pointer rows for a node's secret slots — each slot's key mapped to\n* the platform NAME the root bound it to (looked up in `graph.secrets`). Never a\n* value. A declared slot with no binding is a Load-invariant violation (Load\n* binds every slot), surfaced loudly here rather than written as a blank row.\n*/\nfunction secretPointerRows(node, address, bindings) {\n\tconst rows = [];\n\tfor (const slot of Object.keys(node.secretSlots)) {\n\t\tconst binding = bindings.find((b) => b.serviceAddress === address && b.slot === slot);\n\t\tif (binding === void 0) throw new Error(`secret slot \"${slot}\" of \"${address}\" has no bound platform name — Load should have bound it (ADR-0029).`);\n\t\trows.push({\n\t\t\tkey: secretKey(address, slot),\n\t\t\tname: secretName(binding)\n\t\t});\n\t}\n\treturn rows;\n}\n/**\n* Boot: resolve every secret slot to its value by double-lookup — read the\n* pointer key (the platform NAME), then read that platform var. A missing\n* pointer or a missing/empty platform value is a loud failure naming both keys.\n* Returns a plain Record for core's `hydrateSecrets` to box.\n*/\nconst deserializeSecrets = (node, address) => {\n\tconst values = {};\n\tfor (const slot of Object.keys(node.secretSlots)) {\n\t\tconst key = secretKey(address, slot);\n\t\tconst name = process.env[key];\n\t\tif (name === void 0 || name === \"\") throw new Error(`missing secret pointer for slot \"${slot}\" (env ${key}) — the deploy did not write it.`);\n\t\tconst value = process.env[name];\n\t\tif (value === void 0 || value === \"\") throw new Error(`secret \"${slot}\" is not provisioned (env ${key} → ${name}): the platform var \"${name}\" is unset or empty.`);\n\t\tvalues[slot] = value;\n\t}\n\treturn values;\n};\n/**\n* run()'s setup step for secrets: re-emit each slot's pointer NAME under its\n* address-free key, so the address-free `deserializeSecrets` double-looks-up\n* identically. Never the value — the value stays only in the platform var.\n*/\nconst stashSecrets = (node, address) => {\n\tfor (const slot of Object.keys(node.secretSlots)) {\n\t\tconst name = process.env[secretKey(address, slot)];\n\t\tif (name === void 0) continue;\n\t\tprocess.env[secretKey(\"\", slot)] = name;\n\t}\n};\n/**\n* Boot: for each reserved provider param, read its address-scoped row through\n* the same `coerce` a declared param uses (JSON-decode, schema-validate), and\n* re-emit it address-free — `stash`'s counterpart for this separate\n* declaration space. A param is declared optional here unconditionally: an\n* absent row means \"never provisioned\" (local dev, tests, a provider with no\n* registered value for this deploy), never a boot failure, so nothing is\n* stashed and the runtime reader that owns this slot falls back to its own\n* pass-through behavior.\n*/\nfunction stashProviderParams(entries, address) {\n\tfor (const entry of entries) {\n\t\tconst d = {\n\t\t\towner: \"service\",\n\t\t\tname: entry.name,\n\t\t\tparam: {\n\t\t\t\tschema: entry.schema,\n\t\t\t\toptional: true\n\t\t\t}\n\t\t};\n\t\tconst key = configKey(address, d);\n\t\tconst value = coerce(process.env[key], d, key);\n\t\tif (value === void 0) continue;\n\t\tprocess.env[configKey(\"\", d)] = encode(\"service\", value);\n\t}\n}\n/** The framework-resolved origin row: COMPOSER_<addr>_ORIGIN. Written per\n* compute service at serialize — the service's own provisioned endpoint URL,\n* riding the reserved-provider-param machinery (`origin-key.ts`'s\n* `ORIGIN_PARAM`); never a declared param, never in config(). A harness with\n* no deploy behind it supplies it by setting `COMPOSER_ORIGIN` to the\n* JSON-encoded origin URL — exactly how the existing entrypoint tests supply\n* their other `COMPOSER_*` rows. */\nconst ORIGIN_KEY_NAME = \"ORIGIN\";\n/**\n* Reads this service's origin back out of the address-free stash\n* `stashProviderParams` wrote for the ORIGIN entry. `COMPOSER_ORIGIN` unset is\n* a loud failure — a deployed environment always writes it, so an unset row\n* means either a local harness that hasn't supplied it or a boot() called\n* before run().\n*/\nfunction readOrigin() {\n\tconst d = {\n\t\towner: \"service\",\n\t\tname: ORIGIN_KEY_NAME,\n\t\tparam: {\n\t\t\tschema: type(\"string\"),\n\t\t\toptional: true\n\t\t}\n\t};\n\tconst key = configKey(\"\", d);\n\tconst value = coerce(process.env[key], d, key);\n\tif (value === void 0) throw new Error(\"this service's origin is not available (env COMPOSER_ORIGIN is unset) — a deployed environment writes it automatically; a local harness must supply it like any other config value (set COMPOSER_ORIGIN to the JSON-encoded origin URL).\");\n\treturn blindCast(value);\n}\n/** Synchronous Standard Schema validation — see the matching note in core's `config.ts`. */\nfunction standardValidateSync(schema, value) {\n\tconst result = schema[\"~standard\"].validate(value);\n\tif (result instanceof Promise) throw new Error(\"config param schema validation must be synchronous — async Standard Schema validators are not supported for config params\");\n\tif (result.issues !== void 0) throw new Error(`config param validation failed: ${result.issues.map((issue) => issue.message).join(\"; \")}`);\n\treturn result.value;\n}\n//#endregion\nexport { encode as a, readOrigin as c, stashProviderParams as d, stashSecrets as f, deserializeSecrets as i, secretPointerRows as l, configKey as n, encodeParamPointer as o, deserialize as r, paramEntries as s, ORIGIN_KEY_NAME as t, stash as u };\n\n//# sourceMappingURL=serializer-CJiOhF2d.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,aAAa,MAAM;CAC3B,MAAM,UAAU,CAAC;CACjB,KAAK,MAAM,CAAC,OAAO,UAAU,OAAO,QAAQ,KAAK,MAAM,GAAG;EACzD,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM;EACjD,MAAM,SAAS,UAAU,KAAK,CAAC,CAAC,WAAW;EAC3C,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,GAAG,QAAQ,KAAK;GACh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