@prisma/composer-prisma-cloud 0.1.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.
Files changed (46) hide show
  1. package/LICENSE +201 -0
  2. package/dist/control.d.mts +53 -0
  3. package/dist/control.mjs +2031 -0
  4. package/dist/control.mjs.map +1 -0
  5. package/dist/cron/index.d.mts +99 -0
  6. package/dist/cron/index.mjs +392 -0
  7. package/dist/cron/index.mjs.map +1 -0
  8. package/dist/cron/scheduler-entrypoint.mjs +7769 -0
  9. package/dist/cron/scheduler-entrypoint.mjs.map +1 -0
  10. package/dist/cron/scheduler-service.mjs +318 -0
  11. package/dist/cron/scheduler-service.mjs.map +1 -0
  12. package/dist/index.d.mts +205 -0
  13. package/dist/index.mjs +182 -0
  14. package/dist/index.mjs.map +1 -0
  15. package/dist/param-DB0B8m15-IvzNq9BM.mjs +92 -0
  16. package/dist/param-DB0B8m15-IvzNq9BM.mjs.map +1 -0
  17. package/dist/prisma-next-COrwlg3N.mjs +176 -0
  18. package/dist/prisma-next-COrwlg3N.mjs.map +1 -0
  19. package/dist/prisma-next.d.mts +71 -0
  20. package/dist/prisma-next.mjs +2 -0
  21. package/dist/serializer-DAEWRfnm-D3GW9dOZ.mjs +235 -0
  22. package/dist/serializer-DAEWRfnm-D3GW9dOZ.mjs.map +1 -0
  23. package/dist/storage/index.d.mts +55 -0
  24. package/dist/storage/index.mjs +411 -0
  25. package/dist/storage/index.mjs.map +1 -0
  26. package/dist/storage/storage-entrypoint.mjs +1173 -0
  27. package/dist/storage/storage-entrypoint.mjs.map +1 -0
  28. package/dist/storage/storage-service.mjs +377 -0
  29. package/dist/storage/storage-service.mjs.map +1 -0
  30. package/dist/storage/testing.d.mts +85 -0
  31. package/dist/storage/testing.mjs +531 -0
  32. package/dist/storage/testing.mjs.map +1 -0
  33. package/dist/streams/index.d.mts +47 -0
  34. package/dist/streams/index.mjs +450 -0
  35. package/dist/streams/index.mjs.map +1 -0
  36. package/dist/streams/streams-entrypoint.mjs +40575 -0
  37. package/dist/streams/streams-entrypoint.mjs.map +1 -0
  38. package/dist/streams/streams-service.mjs +424 -0
  39. package/dist/streams/streams-service.mjs.map +1 -0
  40. package/dist/streams/testing.d.mts +33 -0
  41. package/dist/streams/testing.mjs +31335 -0
  42. package/dist/streams/testing.mjs.map +1 -0
  43. package/dist/testing.d.mts +25 -0
  44. package/dist/testing.mjs +32 -0
  45. package/dist/testing.mjs.map +1 -0
  46. package/package.json +74 -0
@@ -0,0 +1,318 @@
1
+ import { contract, rpc } from "@prisma/composer/rpc";
2
+ import { type } from "arktype";
3
+ import { hydrateSecrets, hydrateSync, number, param, service } from "@prisma/composer";
4
+ import node from "@prisma/composer/node";
5
+ import { blindCast } from "@prisma/composer/casts";
6
+ blindCast(Symbol.for("prisma:prisma-cloud-secret-source"));
7
+ /**
8
+ * Walks a node's own params, then each dependency input's connection params —
9
+ * the same enumeration order `configOf` uses, but carrying the raw
10
+ * `ConfigParam` (with its `serialize`/`deserialize`) instead of a pure-data
11
+ * projection.
12
+ */
13
+ function paramEntries(node) {
14
+ const entries = [];
15
+ for (const [input, value] of Object.entries(node.inputs)) {
16
+ if (typeof value !== "object" || value === null) continue;
17
+ const params = blindCast(value).connection.params;
18
+ for (const [name, param] of Object.entries(params)) entries.push({
19
+ owner: { input },
20
+ name,
21
+ param
22
+ });
23
+ }
24
+ for (const [name, param] of Object.entries(node.params)) entries.push({
25
+ owner: "service",
26
+ name,
27
+ param
28
+ });
29
+ return entries;
30
+ }
31
+ const configKey = (address, d) => {
32
+ const segments = address.split(".").filter((s) => s.length > 0);
33
+ const owner = d.owner === "service" ? [] : [d.owner.input];
34
+ return [
35
+ "COMPOSER",
36
+ ...segments,
37
+ ...owner,
38
+ d.name
39
+ ].join("_").toUpperCase();
40
+ };
41
+ /**
42
+ * Typed value → its stored string. Service-own literals are JSON-encoded; a
43
+ * dependency-input value is a provisioning ref at deploy (and a resolved
44
+ * string at boot) and passes through untouched — LANDMINE: JSON-encoding it
45
+ * would break the ordering edge Alchemy resolves through it.
46
+ */
47
+ function encode(owner, value) {
48
+ return owner === "service" ? JSON.stringify(value) : blindCast(value);
49
+ }
50
+ /** Reverses `encode`: JSON-parse a service-own value, take a dependency-input value raw. */
51
+ function decode(owner, raw) {
52
+ return owner === "service" ? JSON.parse(raw) : raw;
53
+ }
54
+ const PARAM_POINTER_PREFIX = "@composer-param-pointer:";
55
+ /** True iff `raw` is a param pointer row (as opposed to a JSON-encoded literal). */
56
+ const isParamPointerRow = (raw) => raw.startsWith(PARAM_POINTER_PREFIX);
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
+ * Boot: resolve every secret slot to its value by double-lookup — read the
140
+ * pointer key (the platform NAME), then read that platform var. A missing
141
+ * pointer or a missing/empty platform value is a loud failure naming both keys.
142
+ * Returns a plain Record for core's `hydrateSecrets` to box.
143
+ */
144
+ const deserializeSecrets = (node, address) => {
145
+ const values = {};
146
+ for (const slot of Object.keys(node.secretSlots)) {
147
+ const key = secretKey(address, slot);
148
+ const name = process.env[key];
149
+ if (name === void 0 || name === "") throw new Error(`missing secret pointer for slot "${slot}" (env ${key}) — the deploy did not write it.`);
150
+ const value = process.env[name];
151
+ if (value === void 0 || value === "") throw new Error(`secret "${slot}" is not provisioned (env ${key} → ${name}): the platform var "${name}" is unset or empty.`);
152
+ values[slot] = value;
153
+ }
154
+ return values;
155
+ };
156
+ /**
157
+ * run()'s setup step for secrets: re-emit each slot's pointer NAME under its
158
+ * address-free key, so the address-free `deserializeSecrets` double-looks-up
159
+ * identically. Never the value — the value stays only in the platform var.
160
+ */
161
+ const stashSecrets = (node, address) => {
162
+ for (const slot of Object.keys(node.secretSlots)) {
163
+ const name = process.env[secretKey(address, slot)];
164
+ if (name === void 0) continue;
165
+ process.env[secretKey("", slot)] = name;
166
+ }
167
+ };
168
+ /** Synchronous Standard Schema validation — see the matching note in core's `config.ts`. */
169
+ function standardValidateSync(schema, value) {
170
+ const result = schema["~standard"].validate(value);
171
+ if (result instanceof Promise) throw new Error("config param schema validation must be synchronous — async Standard Schema validators are not supported for config params");
172
+ if (result.issues !== void 0) throw new Error(`config param validation failed: ${result.issues.map((issue) => issue.message).join("; ")}`);
173
+ return result.value;
174
+ }
175
+ //#endregion
176
+ //#region ../../1-prisma-cloud/1-extensions/target/dist/param-DB0B8m15.mjs
177
+ /** The reserved accepted-keys env var: COMPOSER_<addr>_RPC_ACCEPTED_KEYS ("" ↦ @internal/rpc's RPC_ACCEPTED_KEYS_ENV). */
178
+ const serviceKeyEnvName = (address) => configKey(address, {
179
+ owner: "service",
180
+ name: "RPC_ACCEPTED_KEYS"
181
+ });
182
+ blindCast(Symbol.for("prisma:prisma-cloud-param-source"));
183
+ //#endregion
184
+ //#region ../../1-prisma-cloud/1-extensions/target/dist/index.mjs
185
+ const reservedParams = { port: number({ default: 3e3 }) };
186
+ /**
187
+ * A Prisma Compute service — declarations only (deps + params + build + the
188
+ * ports it exposes), no descriptor. `params` merges with the reserved
189
+ * `ReservedParams` (`port`); a user param whose name collides with a reserved
190
+ * one fails at authoring, the same way a colliding dependency name does.
191
+ * Returns the extension's runnable/loadable node:
192
+ * · run(address, boot) — the process controller: deserialize the platform
193
+ * environment (keyed off `address`, the extension's ONE env read) into a
194
+ * typed Config, re-emit it under address-free process-local stash keys,
195
+ * then call boot() to start the app's entry.
196
+ * · load() / config() — called from inside the app's entry: read the stash;
197
+ * load() hydrates + memoizes the deps, config() returns the typed params.
198
+ * Separate accessors so a dep and a param never share a namespace (ADR-0021).
199
+ *
200
+ * `service()`'s underlying node carries `extension: '@prisma/composer-prisma-cloud'` —
201
+ * the control-plane registry key `prisma-composer deploy` resolves through the
202
+ * app's `prisma-composer.config.ts` (ADR-0017). This module loads nothing at
203
+ * deploy time; nodes are pure data.
204
+ */
205
+ const compute = (def) => {
206
+ const userParams = def.params ?? blindCast({});
207
+ for (const reserved of Object.keys(reservedParams)) {
208
+ if (reserved in def.deps) throw new Error(`compute(): dependency "${reserved}" collides with the reserved service param of the same name — rename the dependency.`);
209
+ if (reserved in userParams) throw new Error(`compute(): param "${reserved}" collides with the reserved service param of the same name — rename the param.`);
210
+ }
211
+ const params = blindCast({
212
+ ...userParams,
213
+ ...reservedParams
214
+ });
215
+ const node = service({
216
+ name: def.name,
217
+ extension: "@prisma/composer-prisma-cloud",
218
+ type: "compute",
219
+ inputs: def.deps,
220
+ params,
221
+ ...def.secrets !== void 0 ? { secrets: def.secrets } : {},
222
+ build: def.build,
223
+ ...def.expose !== void 0 ? { expose: def.expose } : {}
224
+ });
225
+ let resolved;
226
+ let loadedDeps;
227
+ let loadedParams;
228
+ let loadedSecrets;
229
+ function processConfig() {
230
+ if (resolved === void 0) resolved = deserialize(node, "");
231
+ return resolved;
232
+ }
233
+ const runnable = {
234
+ ...node,
235
+ async run(address, boot) {
236
+ const config = deserialize(node, address);
237
+ stash(node, config);
238
+ stashSecrets(node, address);
239
+ const accepted = process.env[serviceKeyEnvName(address)];
240
+ if (accepted !== void 0) process.env[serviceKeyEnvName("")] = accepted;
241
+ const port = config.service["port"];
242
+ if (typeof port === "number") process.env["PORT"] = String(port);
243
+ return boot();
244
+ },
245
+ load() {
246
+ if (loadedDeps === void 0) loadedDeps = blindCast(hydrateSync(node, processConfig()));
247
+ return loadedDeps;
248
+ },
249
+ config() {
250
+ if (loadedParams === void 0) loadedParams = blindCast(processConfig().service);
251
+ return loadedParams;
252
+ },
253
+ secrets() {
254
+ if (loadedSecrets === void 0) loadedSecrets = blindCast(hydrateSecrets(node, deserializeSecrets(node, "")));
255
+ return loadedSecrets;
256
+ }
257
+ };
258
+ return Object.freeze(blindCast(runnable));
259
+ };
260
+ Object.freeze({
261
+ kind: "postgres",
262
+ __cmp: { url: "" },
263
+ satisfies: (required) => required.kind === "postgres"
264
+ });
265
+ Object.freeze({
266
+ kind: "credentials",
267
+ __cmp: {
268
+ accessKeyId: "",
269
+ secretAccessKey: ""
270
+ },
271
+ satisfies: (required) => required.kind === "credentials"
272
+ });
273
+ //#endregion
274
+ //#region ../../1-prisma-cloud/2-shared-modules/cron/dist/scheduler-iL9rl3YY.mjs
275
+ /**
276
+ * The one call edge between the scheduler and the app's runner: `trigger(jobId)`.
277
+ * The scheduler depends on it (`rpc(triggerContract)`); the runner exposes it
278
+ * (`expose: { trigger: triggerContract }`). `jobId` travels as data through this
279
+ * single method — adding a job never adds a method, service, or port.
280
+ */
281
+ const triggerContract = contract({ trigger: rpc({
282
+ input: type({ jobId: "string" }),
283
+ output: type({ ok: "boolean" })
284
+ }) });
285
+ /**
286
+ * The reusable scheduler node and its firing logic. `cronScheduler` builds a
287
+ * `compute()` whose `jobs` param default is the app's schedule and whose only
288
+ * dependency is `trigger(jobId)`; nothing else about it varies per app.
289
+ * `runScheduler` is the pure, injectable firing loop the entrypoint (and its
290
+ * tests) drive.
291
+ */
292
+ const scheduleSchema = type({
293
+ jobId: "string",
294
+ every: "string"
295
+ }).array();
296
+ /**
297
+ * The always-on scheduler service. `schedule` sets only the `jobs` param's
298
+ * default — the value the deploy serializes into config; the scheduler
299
+ * itself is job-agnostic.
300
+ */
301
+ function cronScheduler(schedule) {
302
+ return compute({
303
+ name: "scheduler",
304
+ deps: { trigger: rpc(triggerContract) },
305
+ params: { jobs: param(scheduleSchema, { default: [...schedule.jobs] }) },
306
+ build: node({
307
+ module: new URL("./scheduler-service.mjs", import.meta.url).href,
308
+ entry: "./scheduler-entrypoint.mjs"
309
+ })
310
+ });
311
+ }
312
+ //#endregion
313
+ //#region ../../1-prisma-cloud/2-shared-modules/cron/dist/scheduler-service.mjs
314
+ var scheduler_service_default = cronScheduler({ jobs: [] });
315
+ //#endregion
316
+ export { scheduler_service_default as default };
317
+
318
+ //# sourceMappingURL=scheduler-service.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler-service.mjs","names":[],"sources":["../../../../1-prisma-cloud/1-extensions/target/dist/serializer-DAEWRfnm.mjs","../../../../1-prisma-cloud/1-extensions/target/dist/param-DB0B8m15.mjs","../../../../1-prisma-cloud/1-extensions/target/dist/index.mjs","../../../../1-prisma-cloud/2-shared-modules/cron/dist/scheduler-iL9rl3YY.mjs","../../../../1-prisma-cloud/2-shared-modules/cron/dist/scheduler-service.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\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/** 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 { encodeParamPointer as a, stash as c, secretName as d, encode as i, stashSecrets as l, deserialize as n, paramEntries as o, deserializeSecrets as r, secretPointerRows as s, configKey as t, envSecret as u };\n\n//# sourceMappingURL=serializer-DAEWRfnm.mjs.map","import { t as configKey } from \"./serializer-DAEWRfnm.mjs\";\nimport { isParamSource, paramSource } from \"@internal/core\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport { RPC_PEER_KEY } from \"@internal/rpc\";\n//#region src/service-keys.ts\n/** Every faceted RPC edge in the graph — scans each dependency edge's consumer-side input for the need. */\nfunction serviceKeyEdges(graph) {\n\tconst edges = [];\n\tfor (const edge of graph.edges) {\n\t\tif (edge.kind !== \"dependency\") continue;\n\t\tconst consumer = graph.nodes.find((n) => n.id === edge.to)?.node;\n\t\tif (consumer === void 0 || consumer.kind !== \"service\") continue;\n\t\tconst slot = consumer.inputs[edge.input];\n\t\tif (slot === void 0) continue;\n\t\tif (slot.connection.params[\"serviceKey\"]?.provision?.brand !== RPC_PEER_KEY) continue;\n\t\tedges.push({\n\t\t\tedgeId: `${edge.to}.${edge.input}`,\n\t\t\tconsumerAddress: edge.to,\n\t\t\tinput: edge.input,\n\t\t\tproviderAddress: edge.from\n\t\t});\n\t}\n\treturn edges;\n}\n/** The reserved accepted-keys env var: COMPOSER_<addr>_RPC_ACCEPTED_KEYS (\"\" ↦ @internal/rpc's RPC_ACCEPTED_KEYS_ENV). */\nconst serviceKeyEnvName = (address) => configKey(address, {\n\towner: \"service\",\n\tname: \"RPC_ACCEPTED_KEYS\"\n});\n//#endregion\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 { serviceKeyEdges as a, paramName as i, isEnvParamSource as n, serviceKeyEnvName as o, paramBindingFor as r, envParam as t };\n\n//# sourceMappingURL=param-DB0B8m15.mjs.map","import { c as stash, d as secretName, l as stashSecrets, n as deserialize, r as deserializeSecrets, t as configKey, u as envSecret } from \"./serializer-DAEWRfnm.mjs\";\nimport { i as paramName, o as serviceKeyEnvName, t as envParam } from \"./param-DB0B8m15.mjs\";\nimport { dependency, hydrateSecrets, hydrateSync, number, resource, service, string } from \"@internal/core\";\nimport { blindCast } from \"@internal/foundation/casts\";\n//#region src/compute.ts\nconst reservedParams = { port: number({ default: 3e3 }) };\n/**\n* A Prisma Compute service — declarations only (deps + params + build + the\n* ports it exposes), no descriptor. `params` merges with the reserved\n* `ReservedParams` (`port`); a user param whose name collides with a reserved\n* one fails at authoring, the same way a colliding dependency name does.\n* Returns the extension's runnable/loadable node:\n* · run(address, boot) — the process controller: deserialize the platform\n* environment (keyed off `address`, the extension's ONE env read) into a\n* typed Config, re-emit it under address-free process-local stash keys,\n* then call boot() to start the app's entry.\n* · load() / config() — called from inside the app's entry: read the stash;\n* load() hydrates + memoizes the deps, config() returns the typed params.\n* Separate accessors so a dep and a param never share a namespace (ADR-0021).\n*\n* `service()`'s underlying node carries `extension: '@prisma/composer-prisma-cloud'` —\n* the control-plane registry key `prisma-composer deploy` resolves through the\n* app's `prisma-composer.config.ts` (ADR-0017). This module loads nothing at\n* deploy time; nodes are pure data.\n*/\nconst compute = (def) => {\n\tconst userParams = def.params ?? blindCast({});\n\tfor (const reserved of Object.keys(reservedParams)) {\n\t\tif (reserved in def.deps) throw new Error(`compute(): dependency \"${reserved}\" collides with the reserved service param of the same name — rename the dependency.`);\n\t\tif (reserved in userParams) throw new Error(`compute(): param \"${reserved}\" collides with the reserved service param of the same name — rename the param.`);\n\t}\n\tconst params = blindCast({\n\t\t...userParams,\n\t\t...reservedParams\n\t});\n\tconst node = service({\n\t\tname: def.name,\n\t\textension: \"@prisma/composer-prisma-cloud\",\n\t\ttype: \"compute\",\n\t\tinputs: def.deps,\n\t\tparams,\n\t\t...def.secrets !== void 0 ? { secrets: def.secrets } : {},\n\t\tbuild: def.build,\n\t\t...def.expose !== void 0 ? { expose: def.expose } : {}\n\t});\n\tlet resolved;\n\tlet loadedDeps;\n\tlet loadedParams;\n\tlet loadedSecrets;\n\tfunction processConfig() {\n\t\tif (resolved === void 0) resolved = deserialize(node, \"\");\n\t\treturn resolved;\n\t}\n\tconst runnable = {\n\t\t...node,\n\t\tasync run(address, boot) {\n\t\t\tconst config = deserialize(node, address);\n\t\t\tstash(node, config);\n\t\t\tstashSecrets(node, address);\n\t\t\tconst accepted = process.env[serviceKeyEnvName(address)];\n\t\t\tif (accepted !== void 0) process.env[serviceKeyEnvName(\"\")] = accepted;\n\t\t\tconst port = config.service[\"port\"];\n\t\t\tif (typeof port === \"number\") process.env[\"PORT\"] = String(port);\n\t\t\treturn boot();\n\t\t},\n\t\tload() {\n\t\t\tif (loadedDeps === void 0) loadedDeps = blindCast(hydrateSync(node, processConfig()));\n\t\t\treturn loadedDeps;\n\t\t},\n\t\tconfig() {\n\t\t\tif (loadedParams === void 0) loadedParams = blindCast(processConfig().service);\n\t\t\treturn loadedParams;\n\t\t},\n\t\tsecrets() {\n\t\t\tif (loadedSecrets === void 0) loadedSecrets = blindCast(hydrateSecrets(node, deserializeSecrets(node, \"\")));\n\t\t\treturn loadedSecrets;\n\t\t}\n\t};\n\treturn Object.freeze(blindCast(runnable));\n};\n//#endregion\n//#region src/http.ts\nconst defaultHttpClient = (cfg) => ({\n\turl: cfg.url,\n\tfetch: (path, init) => fetch(new URL(path, cfg.url), init)\n});\n/**\n* A service-to-service dependency. Its binding (what `load()` returns) is a\n* derived HttpClient — a thin URL-anchored fetch wrapper (fetch is standard\n* across runtimes — no driver, no runtime coupling). http() is a\n* protocol-owned kind: the framework owns the transport, so the client is\n* kind-canonical and derived from the contract, with no user client in the\n* declaration (ADR-0015). The typed generated client arrives with the\n* interface primitive (a later extension point).\n*/\nconst http = (opts) => dependency({\n\tname: opts.name,\n\ttype: \"http\",\n\tconnection: {\n\t\tparams: { url: string() },\n\t\thydrate: (v) => defaultHttpClient({ url: v.url })\n\t}\n});\n//#endregion\n//#region src/postgres.ts\n/**\n* The contract a Postgres provides — and the contract its consumers require.\n* `satisfies` compares KIND, not identity: an extension module can be duplicated\n* across a workspace (same rationale as the Symbol.for node brand), and every\n* duplicate's contract must still satisfy. `__cmp` is the connection config a\n* postgres offers; core never inspects it.\n*/\nconst postgresContract = Object.freeze({\n\tkind: \"postgres\",\n\t__cmp: { url: \"\" },\n\tsatisfies: (required) => required.kind === \"postgres\"\n});\nfunction postgres(opts) {\n\tif (opts?.name !== void 0) return resource({\n\t\tname: opts.name,\n\t\textension: \"@prisma/composer-prisma-cloud\",\n\t\tprovides: postgresContract\n\t});\n\treturn dependency({\n\t\ttype: \"postgres\",\n\t\tconnection: {\n\t\t\tparams: { url: string() },\n\t\t\thydrate: (v) => v\n\t\t},\n\t\trequired: postgresContract\n\t});\n}\n//#endregion\n//#region src/s3-credentials.ts\n/**\n* The contract the `s3-credentials` resource provides — a minted SigV4 key\n* pair. `satisfies` compares KIND only (mirrors `postgresContract`); `__cmp` is\n* the config the resource offers, which core never inspects.\n*/\nconst credentialsContract = Object.freeze({\n\tkind: \"credentials\",\n\t__cmp: {\n\t\taccessKeyId: \"\",\n\t\tsecretAccessKey: \"\"\n\t},\n\tsatisfies: (required) => required.kind === \"credentials\"\n});\nfunction s3Credentials(opts) {\n\tif (opts?.name !== void 0) return resource({\n\t\tname: opts.name,\n\t\textension: \"@prisma/composer-prisma-cloud\",\n\t\tprovides: credentialsContract\n\t});\n\treturn dependency({\n\t\ttype: \"credentials\",\n\t\tconnection: {\n\t\t\tparams: {\n\t\t\t\taccessKeyId: string(),\n\t\t\t\tsecretAccessKey: string()\n\t\t\t},\n\t\t\thydrate: (v) => v\n\t\t},\n\t\trequired: credentialsContract\n\t});\n}\n//#endregion\n//#region src/s3-store.ts\n/**\n* The storage service authoring factory — a `compute` service routed to the\n* `s3-store` lowering instead of `compute`'s. It is exactly `compute`'s\n* runnable (run/load/config, deps, params, build, expose) with the routing\n* `type` overridden to `'s3-store'`: nothing at runtime keys off `type` (the\n* serializer keys off the deployment address and each param's owner/name, and\n* `load`/`config` off deps/params), so only the deploy-time descriptor lookup\n* sees the override and routes to the extended-output lowering (§ 5). The\n* return type is compute's exactly (including the reserved `port` param). The\n* storage module (D4b) calls this with its `db`/`credentials` deps, a `bucket`\n* param, and `expose: { store: s3Contract }`.\n*/\nfunction s3StoreService(def) {\n\tconst node = compute(def);\n\treturn Object.freeze(blindCast({\n\t\t...node,\n\t\ttype: \"s3-store\"\n\t}));\n}\n//#endregion\nexport { compute, configKey, credentialsContract, envParam, envSecret, http, paramName, postgres, postgresContract, s3Credentials, s3StoreService, secretName };\n\n//# sourceMappingURL=index.mjs.map","import { contract, rpc } from \"@internal/rpc\";\nimport { type } from \"arktype\";\nimport { param } from \"@internal/core\";\nimport node from \"@internal/node\";\nimport { compute } from \"@internal/prisma-cloud\";\n//#region src/contract.ts\n/**\n* The one call edge between the scheduler and the app's runner: `trigger(jobId)`.\n* The scheduler depends on it (`rpc(triggerContract)`); the runner exposes it\n* (`expose: { trigger: triggerContract }`). `jobId` travels as data through this\n* single method — adding a job never adds a method, service, or port.\n*/\nconst triggerContract = contract({ trigger: rpc({\n\tinput: type({ jobId: \"string\" }),\n\toutput: type({ ok: \"boolean\" })\n}) });\n//#endregion\n//#region src/schedule.ts\n/**\n* `defineSchedule({ tick: '60s', mrr: '24h' })` →\n* `{ jobs: [{ jobId: 'tick', every: '60s' }, { jobId: 'mrr', every: '24h' }] }`,\n* preserving key order.\n*/\nfunction defineSchedule(spec) {\n\treturn { jobs: Object.entries(spec).map(([jobId, every]) => ({\n\t\tjobId,\n\t\tevery\n\t})) };\n}\n/**\n* Parses the `every` grammar `<integer><unit>`, unit one of `s`/`m`/`h`/`d`\n* (e.g. `30s`, `24h`), returning milliseconds. Throws on a malformed value —\n* empty, missing/unknown unit, non-integer, or non-positive.\n*/\nfunction parseEvery(s) {\n\tconst match = /^(\\d+)([smhd])$/.exec(s);\n\tif (match === null) throw new Error(`parseEvery(): \"${s}\" is not a valid interval — expected \"<integer><unit>\" with unit one of s/m/h/d (e.g. \"30s\", \"24h\").`);\n\tconst [, digits = \"\", unit = \"\"] = match;\n\tconst value = Number(digits);\n\tif (!Number.isInteger(value) || value <= 0) throw new Error(`parseEvery(): \"${s}\" must have a positive integer value.`);\n\tswitch (unit) {\n\t\tcase \"s\": return value * 1e3;\n\t\tcase \"m\": return value * 6e4;\n\t\tcase \"h\": return value * 36e5;\n\t\tcase \"d\": return value * 864e5;\n\t\tdefault: throw new Error(`parseEvery(): \"${s}\" has an unknown unit \"${unit}\" — expected one of s/m/h/d.`);\n\t}\n}\n//#endregion\n//#region src/scheduler.ts\n/**\n* The reusable scheduler node and its firing logic. `cronScheduler` builds a\n* `compute()` whose `jobs` param default is the app's schedule and whose only\n* dependency is `trigger(jobId)`; nothing else about it varies per app.\n* `runScheduler` is the pure, injectable firing loop the entrypoint (and its\n* tests) drive.\n*/\nconst scheduleSchema = type({\n\tjobId: \"string\",\n\tevery: \"string\"\n}).array();\n/**\n* The always-on scheduler service. `schedule` sets only the `jobs` param's\n* default — the value the deploy serializes into config; the scheduler\n* itself is job-agnostic.\n*/\nfunction cronScheduler(schedule) {\n\treturn compute({\n\t\tname: \"scheduler\",\n\t\tdeps: { trigger: rpc(triggerContract) },\n\t\tparams: { jobs: param(scheduleSchema, { default: [...schedule.jobs] }) },\n\t\tbuild: node({\n\t\t\tmodule: new URL(\"./scheduler-service.mjs\", import.meta.url).href,\n\t\t\tentry: \"./scheduler-entrypoint.mjs\"\n\t\t})\n\t});\n}\n/**\n* Fires `call(jobId)` on each job's `every` interval. A rejected `call` is\n* logged, never thrown — a missed tick is healed by an idempotent target, not\n* by scheduler state. `setTimer` defaults to `setInterval`; tests inject a\n* fake to drive time.\n*/\nfunction runScheduler(opts) {\n\tconst setTimer = opts.setTimer ?? ((fn, ms) => setInterval(fn, ms));\n\tfor (const job of opts.jobs) setTimer(() => {\n\t\topts.call(job.jobId).catch((err) => {\n\t\t\tconsole.error(`cron: job \"${job.jobId}\" failed`, err);\n\t\t});\n\t}, parseEvery(job.every));\n}\n//#endregion\nexport { triggerContract as i, runScheduler as n, defineSchedule as r, cronScheduler as t };\n\n//# sourceMappingURL=scheduler-iL9rl3YY.mjs.map","import { t as cronScheduler } from \"./scheduler-iL9rl3YY.mjs\";\n//#region src/scheduler-service.ts\nvar scheduler_service_default = cronScheduler({ jobs: [] });\n//#endregion\nexport { scheduler_service_default as default };\n\n//# sourceMappingURL=scheduler-service.mjs.map"],"mappings":";;;;;AASmC,UAAU,OAAO,IAAI,mCAAmC,CAAC;;;;;;;AA0C5F,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;GAChE,OAAO,EAAE,MAAM;GACf;GACA;EACD,CAAC;CACF;CACA,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,KAAK,MAAM,GAAG,QAAQ,KAAK;EACrE,OAAO;EACP;EACA;CACD,CAAC;CACD,OAAO;AACR;AACA,MAAM,aAAa,SAAS,MAAM;CACjC,MAAM,WAAW,QAAQ,MAAM,GAAG,CAAC,CAAC,QAAQ,MAAM,EAAE,SAAS,CAAC;CAC9D,MAAM,QAAQ,EAAE,UAAU,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK;CACzD,OAAO;EACN;EACA,GAAG;EACH,GAAG;EACH,EAAE;CACH,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,YAAY;AACzB;;;;;;;AAOA,SAAS,OAAO,OAAO,OAAO;CAC7B,OAAO,UAAU,YAAY,KAAK,UAAU,KAAK,IAAI,UAAU,KAAK;A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iB;CAClB;CACA,YAAY,aAAa,SAAS,SAAS;AAC5C,CAAC;;;;;;;;;ACtID,MAAM,kBAAkB,SAAS,EAAE,SAAS,IAAI;CAC/C,OAAO,KAAK,EAAE,OAAO,SAAS,CAAC;CAC/B,QAAQ,KAAK,EAAE,IAAI,UAAU,CAAC;AAC/B,CAAC,EAAE,CAAC;;;;;;;;AA0CJ,MAAM,iBAAiB,KAAK;CAC3B,OAAO;CACP,OAAO;AACR,CAAC,CAAC,CAAC,MAAM;;;;;;AAMT,SAAS,cAAc,UAAU;CAChC,OAAO,QAAQ;EACd,MAAM;EACN,MAAM,EAAE,SAAS,IAAI,eAAe,EAAE;EACtC,QAAQ,EAAE,MAAM,MAAM,gBAAgB,EAAE,SAAS,CAAC,GAAG,SAAS,IAAI,EAAE,CAAC,EAAE;EACvE,OAAO,KAAK;GACX,QAAQ,IAAI,IAAI,2BAA2B,OAAO,KAAK,GAAG,CAAC,CAAC;GAC5D,OAAO;EACR,CAAC;CACF,CAAC;AACF;;;AC1EA,IAAI,4BAA4B,cAAc,EAAE,MAAM,CAAC,EAAE,CAAC"}
@@ -0,0 +1,205 @@
1
+ import { BuildAdapter, ConfigParam, Contract, DependencyEnd, Deps, Expose, ParamBinding, ParamSource, Params, ResourceNode, RunnableServiceNode, SecretBinding, SecretSource, Secrets } from "@prisma/composer";
2
+ //#region ../../1-prisma-cloud/1-extensions/target/dist/index.d.mts
3
+ //#region src/compute.d.ts
4
+ declare const reservedParams: {
5
+ readonly port: import("@prisma/composer").ConfigParam<import("@standard-schema/spec").StandardSchemaV1<number, number>>;
6
+ };
7
+ type ReservedParams = typeof reservedParams;
8
+ /**
9
+ * A Prisma Compute service — declarations only (deps + params + build + the
10
+ * ports it exposes), no descriptor. `params` merges with the reserved
11
+ * `ReservedParams` (`port`); a user param whose name collides with a reserved
12
+ * one fails at authoring, the same way a colliding dependency name does.
13
+ * Returns the extension's runnable/loadable node:
14
+ * · run(address, boot) — the process controller: deserialize the platform
15
+ * environment (keyed off `address`, the extension's ONE env read) into a
16
+ * typed Config, re-emit it under address-free process-local stash keys,
17
+ * then call boot() to start the app's entry.
18
+ * · load() / config() — called from inside the app's entry: read the stash;
19
+ * load() hydrates + memoizes the deps, config() returns the typed params.
20
+ * Separate accessors so a dep and a param never share a namespace (ADR-0021).
21
+ *
22
+ * `service()`'s underlying node carries `extension: '@prisma/composer-prisma-cloud'` —
23
+ * the control-plane registry key `prisma-composer deploy` resolves through the
24
+ * app's `prisma-composer.config.ts` (ADR-0017). This module loads nothing at
25
+ * deploy time; nodes are pure data.
26
+ */
27
+ declare const compute: <D extends Deps, P extends Params = Record<never, never>, E extends Expose = Record<never, never>, S extends Secrets = Record<never, never>>(def: {
28
+ name: string;
29
+ deps: D;
30
+ params?: P;
31
+ secrets?: S;
32
+ build: BuildAdapter;
33
+ expose?: E;
34
+ }) => RunnableServiceNode<D, P & ReservedParams, E, S>;
35
+ //#endregion
36
+ //#region src/http.d.ts
37
+ /** A service-to-service dependency's client: a thin URL-anchored fetch wrapper. */
38
+ interface HttpClient {
39
+ readonly url: string;
40
+ fetch(path: string, init?: RequestInit): Promise<Response>;
41
+ }
42
+ /**
43
+ * A service-to-service dependency. Its binding (what `load()` returns) is a
44
+ * derived HttpClient — a thin URL-anchored fetch wrapper (fetch is standard
45
+ * across runtimes — no driver, no runtime coupling). http() is a
46
+ * protocol-owned kind: the framework owns the transport, so the client is
47
+ * kind-canonical and derived from the contract, with no user client in the
48
+ * declaration (ADR-0015). The typed generated client arrives with the
49
+ * interface primitive (a later extension point).
50
+ */
51
+ declare const http: (opts: {
52
+ name: string;
53
+ }) => DependencyEnd<HttpClient>;
54
+ //#endregion
55
+ //#region src/param.d.ts
56
+ /**
57
+ * Brands the payload `envParam` builds. Core's `paramSource()` is a public
58
+ * SPI, so a user could bypass `envParam` and bind a raw `paramSource('x')`;
59
+ * the brand lets `paramName` reject such a source (or another target's) with
60
+ * a clear error instead of reading an absent `.name`.
61
+ */
62
+ declare const PRISMA_CLOUD_PARAM_SOURCE: unique symbol;
63
+ /** The Prisma Cloud param source payload: the platform env-var name the slot resolves to, under a brand only `envParam` sets. */
64
+ interface EnvParamPayload {
65
+ readonly [PRISMA_CLOUD_PARAM_SOURCE]: true;
66
+ readonly name: string;
67
+ }
68
+ /**
69
+ * Binds a param slot to a named Prisma Cloud platform env var — the non-secret
70
+ * sibling of `envSecret` (spec: env-sourced config params). The platform
71
+ * injects the value into the running instance per stage; the param's own
72
+ * schema validates it at boot, unredacted. The name may not use the
73
+ * framework's reserved `COMPOSER_` prefix or the poisoned
74
+ * `DATABASE_URL(_POOLED)` keys — same parity as `envSecret`.
75
+ */
76
+ declare function envParam(name: string): ParamSource<EnvParamPayload>;
77
+ /**
78
+ * Reads the Prisma Cloud env-var name back out of a param binding's opaque
79
+ * source. A source not built by `envParam` (a raw `paramSource(...)` or
80
+ * another target's source) carries no name — reject it here. `paramName` runs
81
+ * in preflight and at serialize before any value ever crosses the wire, so a
82
+ * foreign source fails early and clearly rather than producing a broken
83
+ * deploy with an undefined name.
84
+ */
85
+ declare function paramName(binding: ParamBinding): string;
86
+ //#endregion
87
+ //#region src/postgres.d.ts
88
+ interface PostgresConfig {
89
+ readonly url: string;
90
+ }
91
+ /**
92
+ * The contract a Postgres provides — and the contract its consumers require.
93
+ * `satisfies` compares KIND, not identity: an extension module can be duplicated
94
+ * across a workspace (same rationale as the Symbol.for node brand), and every
95
+ * duplicate's contract must still satisfy. `__cmp` is the connection config a
96
+ * postgres offers; core never inspects it.
97
+ */
98
+ declare const postgresContract: Contract<'postgres', PostgresConfig>;
99
+ /**
100
+ * The one Postgres factory; the argument shape picks the role.
101
+ *
102
+ * `{ name }` — the resource identity a module provisions: the ONE place the
103
+ * database exists, providing `postgresContract`. Return type declared
104
+ * explicitly so nothing widens.
105
+ */
106
+ declare function postgres(opts: {
107
+ name: string;
108
+ }): ResourceNode<typeof postgresContract>;
109
+ /**
110
+ * `postgres()` — a service's dependency on a Postgres. Its binding (what
111
+ * `load()` returns) is the typed connection config `PostgresConfig` itself —
112
+ * the most-derived thing the contract alone can construct. The app builds its
113
+ * own client from `{ url }` with its own driver, in app code (ADR-0015):
114
+ * `const sql = new SQL({ url: db.url })`. No driver choice lives in the
115
+ * declaration.
116
+ */
117
+ declare function postgres(): DependencyEnd<PostgresConfig, typeof postgresContract>;
118
+ //#endregion
119
+ //#region src/s3-credentials.d.ts
120
+ interface CredentialsConfig {
121
+ readonly accessKeyId: string;
122
+ readonly secretAccessKey: string;
123
+ }
124
+ /**
125
+ * The contract the `s3-credentials` resource provides — a minted SigV4 key
126
+ * pair. `satisfies` compares KIND only (mirrors `postgresContract`); `__cmp` is
127
+ * the config the resource offers, which core never inspects.
128
+ */
129
+ declare const credentialsContract: Contract<'credentials', CredentialsConfig>;
130
+ type CredentialsContract = typeof credentialsContract;
131
+ /**
132
+ * The one credentials factory; the argument shape picks the role. `{ name }` is
133
+ * the resource identity a module provisions — the ONE place the key pair is
134
+ * minted (its lowering mints once and keeps it stable across deploys).
135
+ */
136
+ declare function s3Credentials(opts: {
137
+ name: string;
138
+ }): ResourceNode<typeof credentialsContract>;
139
+ /**
140
+ * `s3Credentials()` — a service's dependency on the minted pair. Its binding is
141
+ * the typed `CredentialsConfig`. The storage service reads the pair through this
142
+ * dependency binding (invariant 4 — no bespoke env reads).
143
+ */
144
+ declare function s3Credentials(): DependencyEnd<CredentialsConfig, typeof credentialsContract>;
145
+ //#endregion
146
+ //#region src/s3-store.d.ts
147
+ /**
148
+ * The storage service authoring factory — a `compute` service routed to the
149
+ * `s3-store` lowering instead of `compute`'s. It is exactly `compute`'s
150
+ * runnable (run/load/config, deps, params, build, expose) with the routing
151
+ * `type` overridden to `'s3-store'`: nothing at runtime keys off `type` (the
152
+ * serializer keys off the deployment address and each param's owner/name, and
153
+ * `load`/`config` off deps/params), so only the deploy-time descriptor lookup
154
+ * sees the override and routes to the extended-output lowering (§ 5). The
155
+ * return type is compute's exactly (including the reserved `port` param). The
156
+ * storage module (D4b) calls this with its `db`/`credentials` deps, a `bucket`
157
+ * param, and `expose: { store: s3Contract }`.
158
+ */
159
+ declare function s3StoreService<D extends Deps, P extends Params = Record<never, never>, E extends Expose = Record<never, never>>(def: Parameters<typeof compute<D, P, E>>[0]): ReturnType<typeof compute<D, P, E>>;
160
+ //#endregion
161
+ //#region src/secret.d.ts
162
+ /**
163
+ * Brands the payload `envSecret` builds. Core's `secretSource()` is a public
164
+ * SPI, so a user could bypass `envSecret` and bind a raw `secretSource('x')`;
165
+ * the brand lets `secretName` reject such a source (or another target's) with a
166
+ * clear error instead of reading an absent `.name`.
167
+ */
168
+ declare const PRISMA_CLOUD_SECRET_SOURCE: unique symbol;
169
+ /** The Prisma Cloud secret source payload: the platform env-var name the slot resolves to, under a brand only `envSecret` sets. */
170
+ interface EnvSecretPayload {
171
+ readonly [PRISMA_CLOUD_SECRET_SOURCE]: true;
172
+ readonly name: string;
173
+ }
174
+ /**
175
+ * Binds a secret slot to a named Prisma Cloud platform env var (ADR-0029). The
176
+ * value is provisioned out-of-band; only the name is carried. The name may not
177
+ * use the framework's reserved `COMPOSER_` prefix or the poisoned
178
+ * `DATABASE_URL(_POOLED)` keys.
179
+ */
180
+ declare function envSecret(name: string): SecretSource<EnvSecretPayload>;
181
+ /**
182
+ * Reads the Prisma Cloud env-var name back out of a secret binding's opaque
183
+ * source. A source not built by `envSecret` (a raw `secretSource(...)` or
184
+ * another target's source) carries no name — reject it here. `secretName` runs
185
+ * in preflight before any provisioning, so a foreign source fails early and
186
+ * clearly rather than producing a broken deploy with an undefined name.
187
+ */
188
+ declare function secretName(binding: SecretBinding): string;
189
+ //#endregion
190
+ //#region src/serializer.d.ts
191
+ /** One declared param, paired with its owner and the raw ConfigParam (functions included). */
192
+ interface ParamEntry {
193
+ readonly owner: 'service' | {
194
+ readonly input: string;
195
+ };
196
+ readonly name: string;
197
+ readonly param: ConfigParam;
198
+ }
199
+ declare const configKey: (address: string, d: {
200
+ owner: ParamEntry["owner"];
201
+ name: string;
202
+ }) => string;
203
+ //#endregion
204
+ export { type CredentialsConfig, type CredentialsContract, type HttpClient, type PostgresConfig, compute, configKey, credentialsContract, envParam, envSecret, http, paramName, postgres, postgresContract, s3Credentials, s3StoreService, secretName };
205
+ //# sourceMappingURL=index.d.mts.map