@prisma/orm-framework 8.0.0-rc.18-dev.18 → 8.0.0-rc.18-dev.19
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/{authoring-CDlR13tn.mjs → authoring-D8KPtnJg.mjs} +2 -2
- package/dist/authoring-D8KPtnJg.mjs.map +1 -0
- package/dist/{authoring-joNigE7w.d.mts → authoring-xQjRM5Pu.d.mts} +3 -3
- package/dist/{authoring-joNigE7w.d.mts.map → authoring-xQjRM5Pu.d.mts.map} +1 -1
- package/dist/{binder-BfzoRtNz-uIAexNtf.d.mts → binder-BfzoRtNz-COc5yVn5.d.mts} +9 -9
- package/dist/{binder-BfzoRtNz-uIAexNtf.d.mts.map → binder-BfzoRtNz-COc5yVn5.d.mts.map} +1 -1
- package/dist/{components-EV0zsCc7.d.mts → components-x4E7HR1C.d.mts} +2 -2
- package/dist/{components-EV0zsCc7.d.mts.map → components-x4E7HR1C.d.mts.map} +1 -1
- package/dist/components.d.mts +12 -12
- package/dist/components.mjs +5 -5
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__components.d.mts +2 -2
- package/dist/components__control.d.mts +4 -4
- package/dist/components__control.mjs +2 -2
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/components__runtime.mjs +1 -1
- package/dist/{config-types-Cz10_syo.d.mts → config-types-CWTAy1In.d.mts} +6 -6
- package/dist/{config-types-Cz10_syo.d.mts.map → config-types-CWTAy1In.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +2 -2
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{control-Bv8UK63M-D34GaTSa.mjs → control-Bv8UK63M-B2plYV6c.mjs} +2 -2
- package/dist/{control-Bv8UK63M-D34GaTSa.mjs.map → control-Bv8UK63M-B2plYV6c.mjs.map} +1 -1
- package/dist/{control-C_zs63JQ-BHMRNt82.d.mts → control-C_zs63JQ-ClziGCnK.d.mts} +2 -2
- package/dist/{control-C_zs63JQ-BHMRNt82.d.mts.map → control-C_zs63JQ-ClziGCnK.d.mts.map} +1 -1
- package/dist/{control-Bp6XS6M2.d.mts → control-ChAUqscy.d.mts} +25 -12
- package/dist/control-ChAUqscy.d.mts.map +1 -0
- package/dist/{control-5ocRB46M.mjs → control-EDGgvs_9.mjs} +21 -7
- package/dist/control-EDGgvs_9.mjs.map +1 -0
- package/dist/control-JxZycFiz.d.mts +1 -0
- package/dist/{declarations-DuSbyF44-DHxqQ1-X.mjs → declarations-DuSbyF44-Dmu71nd-.mjs} +2 -2
- package/dist/{declarations-DuSbyF44-DHxqQ1-X.mjs.map → declarations-DuSbyF44-Dmu71nd-.mjs.map} +1 -1
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-A4CaEPHk.d.mts → execution-CYRhpznv.d.mts} +3 -3
- package/dist/{execution-A4CaEPHk.d.mts.map → execution-CYRhpznv.d.mts.map} +1 -1
- package/dist/{execution-D_qcNa8s.mjs → execution-CgcGQHHb.mjs} +2 -2
- package/dist/{execution-D_qcNa8s.mjs.map → execution-CgcGQHHb.mjs.map} +1 -1
- package/dist/{execution-Db6roA4O.d.mts → execution-Cwf24TjM.d.mts} +2 -2
- package/dist/{execution-Db6roA4O.d.mts.map → execution-Cwf24TjM.d.mts.map} +1 -1
- package/dist/{framework-authoring-BYuHgXo6-BtKlRo4a.d.mts → framework-authoring-DmU1d8-I-CkAim7c8.d.mts} +6 -4
- package/dist/framework-authoring-DmU1d8-I-CkAim7c8.d.mts.map +1 -0
- package/dist/{framework-components-D_QZgxzO-D4b6r8ne.d.mts → framework-components-DIZJ4Jpy-DJwI95w-.d.mts} +4 -4
- package/dist/{framework-components-D_QZgxzO-D4b6r8ne.d.mts.map → framework-components-DIZJ4Jpy-DJwI95w-.d.mts.map} +1 -1
- package/dist/{migration-ClwEv4nY.d.mts → migration-BaRjNiyG.d.mts} +2 -2
- package/dist/{migration-ClwEv4nY.d.mts.map → migration-BaRjNiyG.d.mts.map} +1 -1
- package/dist/{migration-BpjWKFc_.mjs → migration-Do0woLo2.mjs} +2 -2
- package/dist/{migration-BpjWKFc_.mjs.map → migration-Do0woLo2.mjs.map} +1 -1
- package/dist/{mutation-default-types-DCgdIlXt-DSAdarYA.d.mts → mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts} +19 -3
- package/dist/{mutation-default-types-DCgdIlXt-DSAdarYA.d.mts.map → mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts.map} +1 -1
- package/dist/{parse-BxcaGLV1-CDTwA5qF.mjs → parse-BxcaGLV1-hxuk2zDI.mjs} +2 -2
- package/dist/{parse-BxcaGLV1-CDTwA5qF.mjs.map → parse-BxcaGLV1-hxuk2zDI.mjs.map} +1 -1
- package/dist/{parse-CJtBvEYy-b7iSU0ii.d.mts → parse-CJtBvEYy-CG3IsBbh.d.mts} +6 -6
- package/dist/{parse-CJtBvEYy-b7iSU0ii.d.mts.map → parse-CJtBvEYy-CG3IsBbh.d.mts.map} +1 -1
- package/dist/psl-ast-Ckg377Cn.d.mts +2 -0
- package/dist/{psl-ast-3tk7lIrz-u_05BsIo.d.mts → psl-ast-Da2RnM7t-BTLOxBh5.d.mts} +3 -3
- package/dist/{psl-ast-3tk7lIrz-u_05BsIo.d.mts.map → psl-ast-Da2RnM7t-BTLOxBh5.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +9 -9
- package/dist/psl-parser.mjs +3 -3
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +2 -2
- package/dist/psl-parser__interpret.d.mts +6 -6
- package/dist/psl-parser__interpret.mjs +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +2 -2
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{runtime-DHpxH1kS.d.mts → runtime-CW_0S1tZ.d.mts} +3 -3
- package/dist/{runtime-DHpxH1kS.d.mts.map → runtime-CW_0S1tZ.d.mts.map} +1 -1
- package/dist/{runtime-TH4ZwfdV.mjs → runtime-DAB3uLpb.mjs} +5 -3
- package/dist/runtime-DAB3uLpb.mjs.map +1 -0
- package/dist/{temporal-presets-CFRgwfiR-QTpEltz4.mjs → temporal-presets-woCv6gic-DW1VcyKs.mjs} +109 -7
- package/dist/temporal-presets-woCv6gic-DW1VcyKs.mjs.map +1 -0
- package/dist/{written-value-Dio_n0HT-CgpcE2lf.d.mts → written-value-aEELSm_V-BtFVjTrj.d.mts} +60 -10
- package/dist/written-value-aEELSm_V-BtFVjTrj.d.mts.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-CDlR13tn.mjs.map +0 -1
- package/dist/control-5ocRB46M.mjs.map +0 -1
- package/dist/control-B7cfY071.d.mts +0 -1
- package/dist/control-Bp6XS6M2.d.mts.map +0 -1
- package/dist/framework-authoring-BYuHgXo6-BtKlRo4a.d.mts.map +0 -1
- package/dist/psl-ast-DIzWPqtl.d.mts +0 -2
- package/dist/runtime-TH4ZwfdV.mjs.map +0 -1
- package/dist/temporal-presets-CFRgwfiR-QTpEltz4.mjs.map +0 -1
- package/dist/written-value-Dio_n0HT-CgpcE2lf.d.mts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-TH4ZwfdV.mjs","names":["#options","#open","#held","#finalized","#record","#children","#slot","#everythingBeneathCommitted","#intercepted","#ended","#middleware","#parent","#endedResult","#runStartedAt","#source","#rowCount","#stats","#aStatementFailed","#acceptingChildren","#finalizedResult","#kind","#terminalName","#annotations"],"sources":["../../../../1-framework/1-core/framework-components/dist/runtime.mjs"],"sourcesContent":["import { n as runtimeError, t as isRuntimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/execution/runtime-error.ts\n/**\n* Stable code emitted by the runtime when an in-flight `execute()`\n* is cancelled via the per-query `AbortSignal`. The envelope's\n* `details.phase` distinguishes where the abort was observed:\n*\n* - `'encode'` — abort fired during `encodeParams` (SQL) or\n* `resolveValue` (Mongo).\n* - `'decode'` — abort fired during `decodeRow` / `decodeField`.\n* - `'stream'` — abort fired between rows or before any codec call\n* (already-aborted at entry).\n* - `'beforeEncode'` / `'onRow'` — abort fired on entry to or during\n* the corresponding middleware phase\n* (cooperative cancellation per the param-transform seam).\n*/\nconst RUNTIME_ABORTED = \"RUNTIME.ABORTED\";\n/**\n* Construct a `RUNTIME.ABORTED` envelope. Phase distinguishes where the\n* abort was observed — codec call sites (`encode` / `decode` / `stream`)\n* or operation-specific middleware seams, as\n* enumerated on {@link RuntimeAbortedPhase}. Cause carries\n* `signal.reason` verbatim from the platform — native abort produces a\n* `DOMException`, explicit `controller.abort(reason)` produces whatever\n* the caller passed. No synthesis happens here.\n*/\nfunction runtimeAborted(phase, cause) {\n\tconst envelope = runtimeError(RUNTIME_ABORTED, `Operation aborted during ${phase}`, { phase });\n\treturn Object.assign(envelope, { cause });\n}\n//#endregion\n//#region src/annotations.ts\n/**\n* Defines a typed annotation handle.\n*\n* Two-step call form. The first step takes the `Payload` type argument\n* (TypeScript cannot infer `Payload` from anything in the options, so it\n* must be supplied explicitly); the second step takes the runtime options\n* and infers `Kinds` from the `applicableTo` array via a `const` type\n* parameter, so the operation kinds appear exactly once at the call site.\n*\n* @example\n* ```typescript\n* // Read-only annotation. Lane terminals like `db.User.first(...)` accept\n* // it; `db.User.create(...)` rejects it at the type level.\n* const cacheAnnotation = defineAnnotation<{ ttl?: number; skip?: boolean }>()({\n* namespace: 'cache',\n* applicableTo: ['read'],\n* }); // Kinds inferred as 'read'\n*\n* // Write-only annotation. Mirror image.\n* const auditAnnotation = defineAnnotation<{ actor: string }>()({\n* namespace: 'audit',\n* applicableTo: ['write'],\n* }); // Kinds inferred as 'write'\n*\n* // Annotation applicable to both kinds (e.g. tracing).\n* const otelAnnotation = defineAnnotation<{ traceId: string }>()({\n* namespace: 'otel',\n* applicableTo: ['read', 'write'],\n* }); // Kinds inferred as 'read' | 'write'\n* ```\n*\n* **Reserved namespaces.** See `DefineAnnotationOptions.namespace` for the\n* list of framework-internal namespaces (`codecs`, target-specific keys).\n* `defineAnnotation` does not structurally prevent a user from naming a\n* reserved namespace, but the framework makes no compatibility guarantee\n* about handles that do.\n*/\nfunction defineAnnotation() {\n\treturn (options) => {\n\t\tconst namespace = options.namespace;\n\t\tconst applicableTo = Object.freeze(new Set(options.applicableTo));\n\t\tfunction handle(value) {\n\t\t\treturn Object.freeze({\n\t\t\t\t__annotation: true,\n\t\t\t\tnamespace,\n\t\t\t\tvalue,\n\t\t\t\tapplicableTo\n\t\t\t});\n\t\t}\n\t\tfunction read(source) {\n\t\t\tconst stored = \"meta\" in source ? source.meta.annotations?.[namespace] : source.annotations.get(namespace);\n\t\t\tif (!isAnnotationValue(stored)) return;\n\t\t\tif (stored.namespace !== namespace) return;\n\t\t\treturn stored.value;\n\t\t}\n\t\treturn Object.freeze(Object.assign(handle, {\n\t\t\tnamespace,\n\t\t\tapplicableTo,\n\t\t\tread\n\t\t}));\n\t};\n}\n/**\n* Runtime applicability gate. Throws `RUNTIME.ANNOTATION_INAPPLICABLE` if\n* any annotation in `annotations` declares an `applicableTo` set that does\n* not include `kind`. Used by lane terminals (SQL DSL builders' `.build()`,\n* ORM `Collection` terminals) to fail closed when the type-level\n* `ValidAnnotations` gate is bypassed via cast / `any` / dynamic\n* invocation.\n*\n* Passes silently on:\n* - empty arrays\n* - annotations whose `applicableTo` includes `kind`\n*\n* Throws on:\n* - any annotation whose `applicableTo` does not include `kind`. The\n* error names the offending annotation's `namespace` and the\n* `terminalName` so users can locate the misuse.\n*\n* @example\n* ```typescript\n* // Inside an ORM read terminal:\n* assertAnnotationsApplicable(annotations, 'read', 'first');\n* ```\n*/\nfunction assertAnnotationsApplicable(annotations, kind, terminalName) {\n\tfor (const annotation of annotations) if (!annotation.applicableTo.has(kind)) throw runtimeError(\"RUNTIME.ANNOTATION_INAPPLICABLE\", `Annotation '${annotation.namespace}' is not applicable to '${kind}' operations (terminal: '${terminalName}'). The annotation declares applicableTo = [${Array.from(annotation.applicableTo).map((k) => `'${k}'`).join(\", \")}].`, {\n\t\tnamespace: annotation.namespace,\n\t\tterminalName,\n\t\tkind,\n\t\tapplicableTo: Array.from(annotation.applicableTo)\n\t});\n}\nconst noAnnotations = /* @__PURE__ */ new Map();\n/** The branded annotation values in a plan's `meta.annotations`, keyed by namespace. */\nfunction brandedAnnotations(annotations) {\n\tif (annotations === void 0) return noAnnotations;\n\tlet branded;\n\tfor (const [namespace, value] of Object.entries(annotations)) {\n\t\tif (!isAnnotationValue(value)) continue;\n\t\tbranded ??= /* @__PURE__ */ new Map();\n\t\tbranded.set(namespace, value);\n\t}\n\treturn branded ?? noAnnotations;\n}\n/**\n* Type guard for branded annotation values stored in `plan.meta.annotations`.\n*\n* Internal — used by `AnnotationHandle.read` to distinguish user\n* annotations (created by calling a handle returned from\n* `defineAnnotation(...)`) from framework-internal metadata that may\n* happen to live under the same namespace key.\n*/\nfunction isAnnotationValue(value) {\n\tif (value === null || typeof value !== \"object\") return false;\n\treturn value.__annotation === true;\n}\n//#endregion\n//#region src/execution/activity-lifecycle.ts\nconst resolved = Promise.resolve();\n/** The children of a transaction or a client activity: which are open, and which have ended and wait to be finalized. */\nvar ActivityChildren = class {\n\t#options;\n\t#held = [];\n\t#open = 0;\n\t#finalized;\n\tconstructor(options) {\n\t\tthis.#options = options;\n\t}\n\t/** The children that have started and not ended. */\n\tget open() {\n\t\treturn this.#open;\n\t}\n\tadd(child) {\n\t\tconst options = this.#options;\n\t\tconst entry = options.inTransaction && options.holdFinishedChildren ? {\n\t\t\tchild,\n\t\t\tended: false\n\t\t} : void 0;\n\t\tif (entry !== void 0) this.#held.push(entry);\n\t\tthis.#open++;\n\t\tlet ended = false;\n\t\treturn {\n\t\t\tstatementFailed: options.statementFailed,\n\t\t\ttransactionAcceptsChildren: options.transactionAcceptsChildren,\n\t\t\tended: async (own) => {\n\t\t\t\tif (ended) return;\n\t\t\t\tended = true;\n\t\t\t\tthis.#open--;\n\t\t\t\tif (!options.inTransaction) {\n\t\t\t\t\toptions.childFinalized(own);\n\t\t\t\t\tawait child.finalize(own);\n\t\t\t\t} else if (this.#finalized !== void 0) await child.finalize(this.#finalized);\n\t\t\t\telse if (entry !== void 0) entry.ended = true;\n\t\t\t}\n\t\t};\n\t}\n\t/** Finalizes the children that have ended, in start order, with `result`; a child that ends later is finalized with it then. `undefined` when no ended child waited. */\n\tfinalize(result) {\n\t\tif (this.#finalized !== void 0) return void 0;\n\t\tthis.#finalized = result;\n\t\tconst held = this.#held.splice(0);\n\t\tif (held.length === 0) return void 0;\n\t\treturn (async () => {\n\t\t\tfor (const { child, ended } of held) if (ended) await child.finalize(result);\n\t\t})();\n\t}\n};\nfunction notAcceptingChildrenError(parent, reason) {\n\treturn runtimeError(\"RUNTIME.ACTIVITY_NOT_ACCEPTING_CHILDREN\", `An activity was started beneath ${parent.kind === \"transaction\" ? \"a transaction\" : `a '${parent.kind}' activity`} ${parent.kind === \"transaction\" ? \"that no longer accepts children: its commit() or rollback() has been called\" : reason === \"parent\" ? \"that has ended\" : \"whose transaction no longer accepts children\"}`, {\n\t\tparentKind: parent.kind,\n\t\tparentId: parent.id\n\t});\n}\nfunction createStateStore() {\n\tlet states;\n\treturn {\n\t\tstate(key) {\n\t\t\tstates ??= /* @__PURE__ */ new Map();\n\t\t\tlet state = states.get(key);\n\t\t\tif (state === void 0) {\n\t\t\t\tstate = {};\n\t\t\t\tstates.set(key, state);\n\t\t\t}\n\t\t\treturn state;\n\t\t},\n\t\tclear() {\n\t\t\tstates = void 0;\n\t\t}\n\t};\n}\nfunction hooksOf(middleware) {\n\tconst hooks = {\n\t\tanyStarted: false,\n\t\tanyEnded: false,\n\t\tanyFinalized: false\n\t};\n\tfor (const mw of middleware) {\n\t\thooks.anyStarted ||= mw.activityStarted !== void 0;\n\t\thooks.anyEnded ||= mw.activityEnded !== void 0;\n\t\thooks.anyFinalized ||= mw.activityFinalized !== void 0;\n\t}\n\treturn hooks;\n}\nfunction createActivityRecord(middleware, activity, fields, parent) {\n\tconst store = createStateStore();\n\tlet finalized = false;\n\tlet started = middleware.length;\n\tconst ctx = contextBeneath(fields, parent, store);\n\tconst { anyStarted, anyEnded, anyFinalized } = hooksOf(middleware);\n\treturn {\n\t\tactivity,\n\t\tctx,\n\t\tstarted() {\n\t\t\tif (!anyStarted) return resolved;\n\t\t\treturn (async () => {\n\t\t\t\tfor (let index = 0; index < middleware.length; index++) {\n\t\t\t\t\tconst mw = middleware[index];\n\t\t\t\t\tif (!mw?.activityStarted) continue;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait mw.activityStarted(activity, ctx);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tstarted = index + 1;\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})();\n\t\t},\n\t\tended(result) {\n\t\t\tif (!anyEnded) return void 0;\n\t\t\treturn (async () => {\n\t\t\t\tlet firstError;\n\t\t\t\tfor (let index = 0; index < started; index++) {\n\t\t\t\t\tconst mw = middleware[index];\n\t\t\t\t\tif (!mw?.activityEnded) continue;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait mw.activityEnded(activity, result, ctx);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tif (result.outcome === \"succeeded\") firstError ??= { error };\n\t\t\t\t\t\telse logHookError(ctx, \"middleware.activityEnded.error\", mw.name, error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (firstError !== void 0) throw firstError.error;\n\t\t\t})();\n\t\t},\n\t\tfinalize(result) {\n\t\t\tif (finalized) return resolved;\n\t\t\tfinalized = true;\n\t\t\tif (!anyFinalized) {\n\t\t\t\tstore.clear();\n\t\t\t\treturn resolved;\n\t\t\t}\n\t\t\treturn (async () => {\n\t\t\t\tfor (let index = 0; index < started; index++) {\n\t\t\t\t\tconst mw = middleware[index];\n\t\t\t\t\tif (!mw?.activityFinalized) continue;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait mw.activityFinalized(activity, result, ctx);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tlogHookError(ctx, \"middleware.activityFinalized.error\", mw.name, error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstore.clear();\n\t\t\t})();\n\t\t}\n\t};\n}\n/**\n* The context of work that belongs to no activity but runs beneath `parent`, such as compiling a plan outside any statement: `parent` and `inTransaction()` as a child of `parent` would have them, and state of its own.\n*/\nfunction createContextBeneath(fields, parent) {\n\treturn contextBeneath(fields, parent, createStateStore());\n}\nfunction contextBeneath(fields, parent, store) {\n\tconst parentCtx = parent?.ctx;\n\tconst parentIsTransaction = parent?.activity.kind === \"transaction\";\n\treturn blindCast({\n\t\t...fields,\n\t\tparent: parentCtx,\n\t\tstate: store.state,\n\t\tinTransaction: () => parentIsTransaction || (parentCtx?.inTransaction() ?? false)\n\t});\n}\nfunction logHookError(ctx, event, middleware, error) {\n\ttry {\n\t\tctx.log.error({\n\t\t\tevent,\n\t\t\tmiddleware,\n\t\t\terror\n\t\t});\n\t} catch {}\n}\n/**\n* Ends an activity: its `activityEnded` hooks, then its finalization, which its parent holds or performs, or which happens at once with `own` when it has no parent. The finalization runs even when an `activityEnded` hook fails the activity; that error is rethrown afterwards.\n*/\nfunction endActivity(record, result, own, slot, finalize) {\n\tconst ended = record.ended(result);\n\tif (ended === void 0) return slot === void 0 ? finalize(own) : slot.ended(own);\n\treturn finishAfterEndedHooks(ended, own, slot, finalize);\n}\nasync function finishAfterEndedHooks(ended, own, slot, finalize) {\n\tlet endedError;\n\ttry {\n\t\tawait ended;\n\t} catch (error) {\n\t\tendedError = { error };\n\t}\n\tif (slot === void 0) await finalize(own);\n\telse await slot.ended(own);\n\tif (endedError !== void 0) throw endedError.error;\n}\n//#endregion\n//#region src/execution/async-iterable-result.ts\nvar AsyncIterableResult = class {\n\tgenerator;\n\tconsumed = false;\n\tconsumedBy;\n\tbufferedArrayPromise;\n\tconstructor(generator) {\n\t\tthis.generator = generator;\n\t}\n\t[Symbol.asyncIterator]() {\n\t\tif (this.consumed) throw runtimeError(\"RUNTIME.ITERATOR_CONSUMED\", `AsyncIterableResult iterator has already been consumed via ${this.consumedBy === \"bufferedArray\" ? \"toArray()/then()\" : \"for-await loop\"}. Each AsyncIterableResult can only be iterated once.`, {\n\t\t\tconsumedBy: this.consumedBy,\n\t\t\tsuggestion: this.consumedBy === \"bufferedArray\" ? \"If you need to iterate multiple times, store the results from toArray() in a variable and reuse that.\" : \"If you need to iterate multiple times, use toArray() to collect all results first.\"\n\t\t});\n\t\tthis.consumed = true;\n\t\tthis.consumedBy = \"iterator\";\n\t\treturn this.generator;\n\t}\n\ttoArray() {\n\t\tif (this.consumedBy === \"iterator\") return Promise.reject(runtimeError(\"RUNTIME.ITERATOR_CONSUMED\", \"AsyncIterableResult iterator has already been consumed via for-await loop. Each AsyncIterableResult can only be iterated once.\", {\n\t\t\tconsumedBy: this.consumedBy,\n\t\t\tsuggestion: \"The iterator was already consumed by a for-await loop. Use toArray() or await the result before iterating.\"\n\t\t}));\n\t\tif (this.bufferedArrayPromise) return this.bufferedArrayPromise;\n\t\tthis.consumed = true;\n\t\tthis.consumedBy = \"bufferedArray\";\n\t\tthis.bufferedArrayPromise = (async () => {\n\t\t\tconst out = [];\n\t\t\tfor await (const item of this.generator) out.push(item);\n\t\t\treturn out;\n\t\t})();\n\t\treturn this.bufferedArrayPromise;\n\t}\n\tasync first() {\n\t\treturn (await this.toArray())[0] ?? null;\n\t}\n\tasync firstOrThrow() {\n\t\tconst row = await this.first();\n\t\tif (row === null) throw runtimeError(\"RUNTIME.NO_ROWS\", \"Expected at least one row, but none were returned\", {});\n\t\treturn row;\n\t}\n\tthen(onfulfilled, onrejected) {\n\t\treturn this.toArray().then(onfulfilled, onrejected);\n\t}\n};\n//#endregion\n//#region src/execution/client-activity.ts\n/**\n* Starts a client activity: its `activityStarted` hooks, then each `intercept.onActivity` handler in registration order until one returns a result. When a hook or a handler throws, the activity ends `failed`, is finalized, and the error is rethrown. Rejects at once, running no hook, when `kind` has no hyphen (such as `statement` or `transaction`) or when `parent` no longer accepts children.\n*/\nasync function startClientActivity(activity, options) {\n\tconst kind = activity.kind;\n\tif (!kind.includes(\"-\")) throw runtimeError(\"RUNTIME.ACTIVITY_KIND_RESERVED\", `A client activity kind contains a hyphen, such as 'orm-call', and '${kind}' does not. Kinds without one, such as 'statement' and 'transaction', belong to the runtime.`, { kind });\n\tconst run = new ClientActivityRunImpl(activity, options);\n\ttry {\n\t\tawait run.start();\n\t} catch (error) {\n\t\tawait run.finish({\n\t\t\toutcome: \"failed\",\n\t\t\tsource: \"client\"\n\t\t});\n\t\tthrow error;\n\t}\n\tfor (const mw of options.middleware) {\n\t\tconst intercept = mw.intercept;\n\t\tif (intercept?.onActivity === void 0) continue;\n\t\tlet intercepted;\n\t\ttry {\n\t\t\tintercepted = await intercept.onActivity(run.activity, run.ctx);\n\t\t} catch (error) {\n\t\t\tawait run.finish({\n\t\t\t\toutcome: \"failed\",\n\t\t\t\tsource: \"middleware\"\n\t\t\t});\n\t\t\tthrow error;\n\t\t}\n\t\tif (intercepted === void 0) continue;\n\t\trun.ctx.log.debug?.({\n\t\t\tevent: \"middleware.intercept.onActivity\",\n\t\t\tmiddleware: mw.name\n\t\t});\n\t\trun.intercept(intercepted.result);\n\t\tbreak;\n\t}\n\treturn run;\n}\nvar ClientActivityRunImpl = class {\n\tactivity;\n\tctx;\n\t#record;\n\t#children;\n\t#slot;\n\t#intercepted;\n\t#ended = false;\n\t#everythingBeneathCommitted = true;\n\tconstructor(activity, options) {\n\t\tconst computeContentHash = activity.contentHash;\n\t\tlet contentHash;\n\t\tlet id;\n\t\tthis.activity = {\n\t\t\tget id() {\n\t\t\t\tid ??= crypto.randomUUID();\n\t\t\t\treturn id;\n\t\t\t},\n\t\t\tkind: activity.kind,\n\t\t\tcontentHash: () => {\n\t\t\t\tcontentHash ??= computeContentHash();\n\t\t\t\treturn contentHash;\n\t\t\t},\n\t\t\tannotations: activity.annotations ?? brandedAnnotations(void 0)\n\t\t};\n\t\tthis.#record = createActivityRecord(options.middleware, this.activity, options.context, options.parent);\n\t\tthis.ctx = this.#record.ctx;\n\t\tthis.#children = new ActivityChildren({\n\t\t\tinTransaction: this.ctx.inTransaction(),\n\t\t\tholdFinishedChildren: options.holdFinishedChildren,\n\t\t\tstatementFailed: () => this.#slot?.statementFailed(),\n\t\t\ttransactionAcceptsChildren: () => this.#slot?.transactionAcceptsChildren() ?? true,\n\t\t\tchildFinalized: (result) => {\n\t\t\t\tif (result.outcome !== \"committed\") this.#everythingBeneathCommitted = false;\n\t\t\t}\n\t\t});\n\t\tthis.#slot = options.parent?.adopt(this);\n\t}\n\tget intercepted() {\n\t\treturn this.#intercepted;\n\t}\n\tstart() {\n\t\treturn this.#record.started();\n\t}\n\tintercept(result) {\n\t\tthis.#intercepted = { result: blindCast(result) };\n\t}\n\tacceptsChildren() {\n\t\treturn !this.#ended && (this.#slot?.transactionAcceptsChildren() ?? true);\n\t}\n\tassertAcceptsChildren() {\n\t\tif (this.#ended) throw notAcceptingChildrenError(this.activity, \"parent\");\n\t\tif (!(this.#slot?.transactionAcceptsChildren() ?? true)) throw notAcceptingChildrenError(this.activity, \"transaction\");\n\t}\n\tadopt(child) {\n\t\tthis.assertAcceptsChildren();\n\t\treturn this.#children.add(child);\n\t}\n\tend(end) {\n\t\tif (this.#ended) return Promise.reject(runtimeError(\"RUNTIME.ACTIVITY_ALREADY_ENDED\", `The '${this.activity.kind}' activity has already ended`, {\n\t\t\tkind: this.activity.kind,\n\t\t\tid: this.activity.id\n\t\t}));\n\t\tconst openChildren = this.#children.open;\n\t\tif (openChildren > 0) return this.finish({\n\t\t\toutcome: \"failed\",\n\t\t\tsource: \"client\"\n\t\t}).then(() => {\n\t\t\tthrow runtimeError(\"RUNTIME.ACTIVITY_CHILDREN_OPEN\", `The '${this.activity.kind}' activity ended while ${openChildren} ${openChildren === 1 ? \"activity\" : \"activities\"} beneath it had not ended`, {\n\t\t\t\tkind: this.activity.kind,\n\t\t\t\tid: this.activity.id,\n\t\t\t\topenChildren\n\t\t\t});\n\t\t});\n\t\tconst intercepted = this.#intercepted;\n\t\tif (end.result === void 0 && intercepted !== void 0) return this.finish({\n\t\t\toutcome: end.outcome,\n\t\t\tsource: \"middleware\",\n\t\t\tresult: intercepted.result\n\t\t});\n\t\treturn this.finish({\n\t\t\toutcome: end.outcome,\n\t\t\tsource: \"client\",\n\t\t\tresult: end.result\n\t\t});\n\t}\n\tfinish(ended) {\n\t\tthis.#ended = true;\n\t\tconst { kind } = this.activity;\n\t\tconst result = ended.result === void 0 ? {\n\t\t\tkind,\n\t\t\toutcome: ended.outcome,\n\t\t\tsource: ended.source\n\t\t} : {\n\t\t\tkind,\n\t\t\toutcome: ended.outcome,\n\t\t\tsource: ended.source,\n\t\t\tresult: ended.result\n\t\t};\n\t\tconst own = { outcome: ended.outcome === \"succeeded\" && this.#everythingBeneathCommitted ? \"committed\" : \"unknown\" };\n\t\treturn endActivity(this.#record, result, own, this.#slot, (finalized) => this.finalize(finalized));\n\t}\n\tfinalize(result) {\n\t\tconst children = this.#children.finalize(result);\n\t\treturn children === void 0 ? this.#record.finalize(result) : children.then(() => this.#record.finalize(result));\n\t}\n};\n//#endregion\n//#region src/execution/mutation-defaults.ts\n/** Registers every generator the contributors provide, by id. Two contributors providing one id is an error naming both. */\nfunction collectMutationDefaultGenerators(contributors) {\n\tconst generators = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const contributor of contributors) {\n\t\tconst nextGenerators = contributor.mutationDefaultGenerators?.() ?? [];\n\t\tfor (const generator of nextGenerators) {\n\t\t\tconst existingOwner = owners.get(generator.id);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"RUNTIME.DUPLICATE_MUTATION_DEFAULT_GENERATOR\", `Duplicate mutation default generator '${generator.id}'.`, {\n\t\t\t\tid: generator.id,\n\t\t\t\texistingOwner,\n\t\t\t\tincomingOwner: contributor.id\n\t\t\t});\n\t\t\tgenerators.set(generator.id, generator);\n\t\t\towners.set(generator.id, contributor.id);\n\t\t}\n\t}\n\treturn generators;\n}\n/** Fails when the contract's mutation defaults name a generator the registry does not hold, listing every missing id and the fields that need it. */\nfunction assertMutationDefaultGeneratorsAvailable(execution, generatorRegistry) {\n\tconst defaults = execution?.mutations.defaults ?? [];\n\tif (defaults.length === 0) return;\n\tconst fieldsById = /* @__PURE__ */ new Map();\n\tfor (const mutationDefault of defaults) {\n\t\tconst phaseIds = new Set([mutationDefault.onCreate, mutationDefault.onUpdate].flatMap((phase) => phase?.kind === \"generator\" && !generatorRegistry.has(phase.id) ? [phase.id] : []));\n\t\tfor (const id of phaseIds) {\n\t\t\tconst fields = fieldsById.get(id) ?? [];\n\t\t\tfields.push(`${mutationDefault.ref.entry}.${mutationDefault.ref.field}`);\n\t\t\tfieldsById.set(id, fields);\n\t\t}\n\t}\n\tif (fieldsById.size === 0) return;\n\tconst ids = [...fieldsById.keys()];\n\tconst needs = [...fieldsById].map(([id, fields]) => `'${id}' for ${listInProse(fields)}`);\n\tthrow runtimeError(\"RUNTIME.MUTATION_DEFAULT_GENERATOR_MISSING\", `${ids.length === 1 ? `Contract requires mutation default generator ${needs[0]}, but no runtime component in the execution stack provides it.` : `Contract requires mutation default generators ${listInProse(needs)}, but no runtime component in the execution stack provides them.`} ${WHERE_GENERATORS_COME_FROM}`, {\n\t\tids,\n\t\tfields: [...fieldsById.values()].flat()\n\t});\n}\nconst WHERE_GENERATORS_COME_FROM = \"Built-in generators such as 'timestampNow' come from the database adapter's runtime descriptor, and others from the extension pack that defines them; include that component in the execution stack.\";\nfunction listInProse(items) {\n\treturn items.length > 1 ? `${items.slice(0, -1).join(\", \")} and ${items.at(-1)}` : items.join(\"\");\n}\nfunction computeExecutionDefaultValue(spec, generatorRegistry) {\n\tconst generator = generatorRegistry.get(spec.id);\n\tif (!generator) throw runtimeError(\"RUNTIME.MUTATION_DEFAULT_GENERATOR_MISSING\", `Contract references mutation default generator '${spec.id}' but no runtime component in the execution stack provides it. ${WHERE_GENERATORS_COME_FROM}`, { id: spec.id });\n\treturn generator.generate(spec.params);\n}\n/**\n* The defaults to write for one record: for each mutation default of the entry and namespace whose phase matches `op`, the generated value of every field the values do not carry. An update with no keys gets none.\n*/\nfunction applyMutationDefaults(execution, generatorRegistry, options) {\n\tconst defaults = execution?.mutations.defaults ?? [];\n\tif (defaults.length === 0) return [];\n\tconst isEmptyUpdate = options.op === \"update\" && Object.keys(options.values).length === 0;\n\tconst applied = [];\n\tconst appliedFields = /* @__PURE__ */ new Set();\n\tconst rowCache = /* @__PURE__ */ new Map();\n\tfor (const mutationDefault of defaults) {\n\t\tif (mutationDefault.ref.entry !== options.entry) continue;\n\t\tif (mutationDefault.ref.namespace !== options.namespace) continue;\n\t\tconst defaultSpec = options.op === \"create\" ? mutationDefault.onCreate : mutationDefault.onUpdate;\n\t\tif (!defaultSpec) continue;\n\t\tif (isEmptyUpdate) continue;\n\t\tconst fieldName = mutationDefault.ref.field;\n\t\tif (Object.hasOwn(options.values, fieldName) || appliedFields.has(fieldName)) continue;\n\t\tapplied.push({\n\t\t\tfield: fieldName,\n\t\t\tvalue: resolveScopedValue(defaultSpec, generatorRegistry, rowCache, options.defaultValueCache)\n\t\t});\n\t\tappliedFields.add(fieldName);\n\t}\n\treturn applied;\n}\nfunction resolveScopedValue(spec, generatorRegistry, rowCache, queryCache) {\n\tconst cache = scopedCache(generatorRegistry.get(spec.id)?.stability, rowCache, queryCache);\n\tif (!cache) return computeExecutionDefaultValue(spec, generatorRegistry);\n\tif (cache.has(spec.id)) return cache.get(spec.id);\n\tconst value = computeExecutionDefaultValue(spec, generatorRegistry);\n\tcache.set(spec.id, value);\n\treturn value;\n}\nfunction scopedCache(stability, rowCache, queryCache) {\n\tswitch (stability) {\n\t\tcase \"row\": return rowCache;\n\t\tcase \"query\": return queryCache;\n\t\tdefault: return;\n\t}\n}\n//#endregion\n//#region src/execution/race-against-abort.ts\n/**\n* Throw a phase-tagged `RUNTIME.ABORTED` envelope if the supplied\n* context is already aborted at the precheck site. Centralises the\n* `if (ctx.signal?.aborted) throw runtimeAborted(...)` pattern that\n* every codec dispatch site (and the `beforeEncode` middleware phase)\n* repeats. Accepts both the framework `CodecCallContext` and the\n* `ActivityContext`; both expose `signal?: AbortSignal`.\n*/\nfunction checkAborted(ctx, phase) {\n\tif (ctx.signal?.aborted) throw runtimeAborted(phase, ctx.signal.reason);\n}\n/**\n* Race a per-cell `Promise.all` (or any other in-flight work promise) against\n* the supplied abort signal so the runtime returns `RUNTIME.ABORTED` promptly\n* even when codec bodies ignore the signal. In-flight bodies that ignore the\n* signal are abandoned and run to completion in the background — the\n* cooperative-cancellation contract documented in ADR 204.\n*\n* Call sites still SHOULD pre-check `signal.aborted` and short-circuit with\n* a phase-tagged `RUNTIME.ABORTED` envelope before invoking this helper —\n* that path is the canonical \"aborted at entry\" surface and avoids\n* scheduling the work promise. As a defensive belt-and-braces, this helper\n* also handles the already-aborted case internally: `AbortSignal` does not\n* replay past abort events to listeners registered after the abort, so we\n* inspect `signal.aborted` synchronously and reject with the sentinel\n* before installing the listener. The rejection is still attributed to the\n* abort path via the sentinel-identity check.\n*\n* Distinguishing the rejection source is load-bearing for AC-ERR4\n* (`RUNTIME.ENCODE_FAILED` / `RUNTIME.DECODE_FAILED` pass through unchanged).\n* The semantically equivalent `abortable(signal)` helper in\n* `@internal/utils` rejects with `signal.reason ?? new DOMException(...)`,\n* which is not stably distinguishable from a codec-thrown error by identity\n* alone (a fresh fallback DOMException is allocated per call). We instead\n* track abort attribution with a unique sentinel: only the `onAbort` listener\n* installed here ever rejects with the sentinel, so an `error === sentinel`\n* identity check after the race is unambiguous.\n*\n* Lives in `framework-components` (rather than the SQL family, where it\n* originated in m2) so every family runtime that needs cooperative\n* cancellation around a codec-dispatch `Promise.all` (SQL encode + decode\n* today, Mongo encode in m3) shares the same attribution logic.\n*/\nasync function raceAgainstAbort(work, signal, phase) {\n\tif (signal === void 0) return await work;\n\tconst sentinel = { reason: void 0 };\n\tlet onAbort;\n\tconst abortPromise = new Promise((_, reject) => {\n\t\tif (signal.aborted) {\n\t\t\tsentinel.reason = signal.reason;\n\t\t\treject(sentinel);\n\t\t\treturn;\n\t\t}\n\t\tonAbort = () => {\n\t\t\tsentinel.reason = signal.reason;\n\t\t\treject(sentinel);\n\t\t};\n\t\tsignal.addEventListener(\"abort\", onAbort, { once: true });\n\t});\n\ttry {\n\t\treturn await Promise.race([work, abortPromise]);\n\t} catch (error) {\n\t\tif (error === sentinel) throw runtimeAborted(phase, sentinel.reason);\n\t\tthrow error;\n\t} finally {\n\t\tif (onAbort) signal.removeEventListener(\"abort\", onAbort);\n\t}\n}\n//#endregion\n//#region src/execution/run-with-middleware.ts\n/**\n* Runs one `query()` statement as an activity. The activity starts on the first `next()`: `activityStarted`, then `body`'s rows, then `activityEnded` and, unless a transaction holds it, `activityFinalized`. Each fires exactly once, whether the body succeeds, throws (`failed`) or the caller stops reading (`stopped`). When the parent no longer accepts work, the first `next()` rejects and no hook runs.\n*/\nfunction streamStatement(options, body) {\n\treturn { [Symbol.asyncIterator]() {\n\t\tlet thrownByCaller;\n\t\tconst generator = streamStatementRows(options, body, (error) => thrownByCaller !== void 0 && thrownByCaller.error === error);\n\t\treturn {\n\t\t\tnext: () => generator.next(),\n\t\t\treturn: () => generator.return(void 0),\n\t\t\tthrow: (error) => {\n\t\t\t\tthrownByCaller = { error };\n\t\t\t\treturn generator.throw(error);\n\t\t\t}\n\t\t};\n\t} };\n}\nasync function* streamStatementRows(options, body, isThrownByCaller) {\n\tconst statement = new StatementActivityRunImpl(options, \"rows\");\n\tstatement.attach();\n\tlet outcome = \"stopped\";\n\ttry {\n\t\tawait statement.start();\n\t\tyield* body(statement);\n\t\toutcome = \"succeeded\";\n\t} catch (error) {\n\t\tif (!isThrownByCaller(error)) outcome = \"failed\";\n\t\tthrow error;\n\t} finally {\n\t\tawait statement.end(outcome);\n\t}\n}\n/**\n* Runs one `execute()` statement as an activity: `activityStarted`, then `body`, then `activityEnded` and, unless a transaction holds it, `activityFinalized`, each exactly once. When the parent no longer accepts work, it rejects and no hook runs.\n*/\nasync function executeStatement(options, body) {\n\tconst statement = new StatementActivityRunImpl(options, \"stats\");\n\tstatement.attach();\n\tlet outcome = \"failed\";\n\ttry {\n\t\tawait statement.start();\n\t\tconst stats = await body(statement);\n\t\toutcome = \"succeeded\";\n\t\treturn stats;\n\t} finally {\n\t\tawait statement.end(outcome);\n\t}\n}\nvar StatementActivityRunImpl = class {\n\tactivity;\n\tctx;\n\t#middleware;\n\t#parent;\n\t#record;\n\t#slot;\n\t#runStartedAt;\n\t#source = \"driver\";\n\t#rowCount = 0;\n\t#stats;\n\tconstructor(options, returns) {\n\t\tconst { plan } = options;\n\t\tlet annotations;\n\t\tthis.activity = {\n\t\t\tid: crypto.randomUUID(),\n\t\t\tkind: \"statement\",\n\t\t\treturns,\n\t\t\tplan,\n\t\t\tget annotations() {\n\t\t\t\tannotations ??= brandedAnnotations(plan.meta.annotations);\n\t\t\t\treturn annotations;\n\t\t\t}\n\t\t};\n\t\tthis.#middleware = options.middleware;\n\t\tthis.#parent = options.parent;\n\t\tthis.#record = createActivityRecord(options.middleware, this.activity, options.context, options.parent);\n\t\tthis.ctx = this.#record.ctx;\n\t}\n\t/** Adopts the statement into its parent; throws when the parent no longer accepts work. */\n\tattach() {\n\t\tthis.#slot = this.#parent?.adopt(this.#record);\n\t}\n\tstart() {\n\t\treturn this.#record.started();\n\t}\n\tend(outcome) {\n\t\tif (outcome === \"failed\") this.#slot?.statementFailed();\n\t\treturn endActivity(this.#record, this.#endedResult(outcome), { outcome: outcome === \"succeeded\" ? \"committed\" : \"unknown\" }, this.#slot, this.#record.finalize);\n\t}\n\tasync beforeEncode(draft, params) {\n\t\tfor (const mw of this.#middleware) {\n\t\t\tif (!mw.beforeEncode) continue;\n\t\t\tcheckAborted(this.ctx, \"beforeEncode\");\n\t\t\tconst work = mw.beforeEncode(draft, this.ctx, params);\n\t\t\tif (work !== void 0) await raceAgainstAbort(Promise.resolve(work), this.ctx.signal, \"beforeEncode\");\n\t\t}\n\t}\n\tasync *runQuery(exec, runDriver) {\n\t\tthis.#runStartedAt = Date.now();\n\t\tlet rows;\n\t\tfor (const mw of this.#middleware) {\n\t\t\tconst intercept = mw.intercept;\n\t\t\tif (intercept?.onQuery === void 0) continue;\n\t\t\tthis.#source = \"middleware\";\n\t\t\tconst result = await intercept.onQuery(exec, this.ctx);\n\t\t\tif (result === void 0) {\n\t\t\t\tthis.#source = \"driver\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis.ctx.log.debug?.({\n\t\t\t\tevent: \"middleware.intercept.onQuery\",\n\t\t\t\tmiddleware: mw.name\n\t\t\t});\n\t\t\trows = blindCast(result.rows);\n\t\t\tbreak;\n\t\t}\n\t\tif (rows === void 0) {\n\t\t\tfor await (const row of runDriver()) {\n\t\t\t\tfor (const mw of this.#middleware) if (mw.onRow) await mw.onRow(blindCast(row), exec, this.ctx);\n\t\t\t\tthis.#rowCount++;\n\t\t\t\tyield row;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tfor await (const row of rows) {\n\t\t\tthis.#rowCount++;\n\t\t\tyield row;\n\t\t}\n\t}\n\tasync runExecute(exec, runDriver) {\n\t\tthis.#runStartedAt = Date.now();\n\t\tfor (const mw of this.#middleware) {\n\t\t\tconst intercept = mw.intercept;\n\t\t\tif (intercept?.onExecute === void 0) continue;\n\t\t\tthis.#source = \"middleware\";\n\t\t\tconst result = await intercept.onExecute(exec, this.ctx);\n\t\t\tif (result === void 0) {\n\t\t\t\tthis.#source = \"driver\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis.ctx.log.debug?.({\n\t\t\t\tevent: \"middleware.intercept.onExecute\",\n\t\t\t\tmiddleware: mw.name\n\t\t\t});\n\t\t\tthis.#stats = result.stats;\n\t\t\treturn result.stats;\n\t\t}\n\t\tthis.#stats = await runDriver();\n\t\treturn this.#stats;\n\t}\n\t#endedResult(outcome) {\n\t\tconst base = {\n\t\t\tkind: \"statement\",\n\t\t\toutcome,\n\t\t\tlatencyMs: this.#runStartedAt === void 0 ? 0 : Date.now() - this.#runStartedAt,\n\t\t\tsource: this.#source\n\t\t};\n\t\tif (this.activity.returns === \"rows\") return {\n\t\t\t...base,\n\t\t\treturns: \"rows\",\n\t\t\trowCount: this.#rowCount\n\t\t};\n\t\treturn outcome === \"succeeded\" && this.#stats !== void 0 ? {\n\t\t\t...base,\n\t\t\treturns: \"stats\",\n\t\t\tstats: this.#stats\n\t\t} : {\n\t\t\t...base,\n\t\t\treturns: \"stats\"\n\t\t};\n\t}\n};\n//#endregion\n//#region src/execution/runtime-core.ts\n/**\n* Family-agnostic abstract runtime base. Each `query()` and `execute()` call is one statement activity, run in this order: `activityStarted`, `runBeforeCompile`, `lower`, `beforeEncode`, `intercept`, the driver with `onRow`, `activityEnded`, then `activityFinalized`. It has no parent, so it is finalized right after it ends.\n*\n* Concrete subclasses implement `lower`, `runDriver`, `runExecute` and `close`.\n*/\nvar RuntimeCore = class {\n\tmiddleware;\n\tctx;\n\tconstructor(options) {\n\t\tthis.middleware = [...options.middleware];\n\t\tthis.ctx = options.ctx;\n\t}\n\t/** Pre-lowering hook for plan rewriting. Defaults to identity. */\n\trunBeforeCompile(plan) {\n\t\treturn plan;\n\t}\n\tquery(plan, options) {\n\t\tconst self = this;\n\t\tconst codecCtx = codecContextOf(options);\n\t\tconst statement = streamStatement({\n\t\t\tmiddleware: this.middleware,\n\t\t\tplan,\n\t\t\tcontext: this.contextFieldsFor(codecCtx, options),\n\t\t\tparent: void 0\n\t\t}, async function* (run) {\n\t\t\tcheckAborted(codecCtx, \"stream\");\n\t\t\tconst compiled = await self.runBeforeCompile(plan);\n\t\t\tconst exec = await self.lower(compiled, codecCtx);\n\t\t\tawait run.beforeEncode(exec);\n\t\t\tyield* run.runQuery(exec, () => blindCast(self.runDriver(exec)));\n\t\t});\n\t\tasync function* generator() {\n\t\t\tyield* statement;\n\t\t}\n\t\treturn new AsyncIterableResult(generator());\n\t}\n\texecute(plan, options) {\n\t\tconst codecCtx = codecContextOf(options);\n\t\treturn executeStatement({\n\t\t\tmiddleware: this.middleware,\n\t\t\tplan,\n\t\t\tcontext: this.contextFieldsFor(codecCtx, options),\n\t\t\tparent: void 0\n\t\t}, async (run) => {\n\t\t\tcheckAborted(codecCtx, \"stream\");\n\t\t\tconst compiled = await this.runBeforeCompile(plan);\n\t\t\tconst exec = await this.lower(compiled, codecCtx);\n\t\t\tawait run.beforeEncode(exec);\n\t\t\treturn run.runExecute(exec, () => this.runExecute(exec));\n\t\t});\n\t}\n\tcontextFieldsFor(codecCtx, options) {\n\t\treturn {\n\t\t\t...this.ctx,\n\t\t\t...codecCtx,\n\t\t\tscope: options?.scope ?? this.ctx.scope\n\t\t};\n\t}\n};\nfunction codecContextOf(options) {\n\tconst signal = options?.signal;\n\treturn signal === void 0 ? {} : { signal };\n}\n//#endregion\n//#region src/execution/runtime-middleware.ts\nfunction checkMiddlewareCompatibility(middleware, runtimeFamilyId, runtimeTargetId) {\n\tif (middleware.targetId !== void 0 && middleware.familyId === void 0) throw runtimeError(\"RUNTIME.MIDDLEWARE_INCOMPATIBLE\", `Middleware '${middleware.name}' specifies targetId '${middleware.targetId}' without familyId`, {\n\t\tmiddleware: middleware.name,\n\t\ttargetId: middleware.targetId\n\t});\n\tif (middleware.familyId !== void 0 && middleware.familyId !== runtimeFamilyId) throw runtimeError(\"RUNTIME.MIDDLEWARE_FAMILY_MISMATCH\", `Middleware '${middleware.name}' requires family '${middleware.familyId}' but the runtime is configured for family '${runtimeFamilyId}'`, {\n\t\tmiddleware: middleware.name,\n\t\tmiddlewareFamilyId: middleware.familyId,\n\t\truntimeFamilyId\n\t});\n\tif (middleware.targetId !== void 0 && middleware.targetId !== runtimeTargetId) throw runtimeError(\"RUNTIME.MIDDLEWARE_TARGET_MISMATCH\", `Middleware '${middleware.name}' requires target '${middleware.targetId}' but the runtime is configured for target '${runtimeTargetId}'`, {\n\t\tmiddleware: middleware.name,\n\t\tmiddlewareTargetId: middleware.targetId,\n\t\truntimeTargetId\n\t});\n}\n//#endregion\n//#region src/execution/shape.ts\n/**\n* Phantom key an emitted model type carries to name its relation properties.\n* Never present at runtime; `Scalars` and `Shape` read it to tell relations from fields.\n*/\nconst RelationKeys = Symbol(\"RelationKeys\");\n//#endregion\n//#region src/execution/transaction-activity.ts\n/**\n* Starts a transaction activity and runs its `activityStarted` hooks. When one of them throws, the transaction ends `failed`, is finalized `rolled-back`, and the error is rethrown. Rejects at once, running no hook, when `parent` no longer accepts children.\n*/\nasync function startTransactionActivity(options) {\n\tconst run = new TransactionActivityRunImpl(options);\n\ttry {\n\t\tawait run.start();\n\t} catch (error) {\n\t\tawait run.end({\n\t\t\tby: \"rollback\",\n\t\t\toutcome: \"failed\",\n\t\t\tcommitAttempted: false\n\t\t});\n\t\tthrow error;\n\t}\n\treturn run;\n}\nvar TransactionActivityRunImpl = class {\n\tactivity;\n\tctx;\n\t#record;\n\t#children;\n\t#slot;\n\t#aStatementFailed = false;\n\t#ended = false;\n\t#acceptingChildren = true;\n\tconstructor(options) {\n\t\tthis.activity = {\n\t\t\tid: crypto.randomUUID(),\n\t\t\tkind: \"transaction\",\n\t\t\tannotations: brandedAnnotations(void 0)\n\t\t};\n\t\tthis.#record = createActivityRecord(options.middleware, this.activity, options.context, options.parent);\n\t\tthis.ctx = this.#record.ctx;\n\t\tthis.#children = new ActivityChildren({\n\t\t\tinTransaction: true,\n\t\t\tholdFinishedChildren: options.holdFinishedChildren,\n\t\t\tstatementFailed: () => {\n\t\t\t\tthis.#aStatementFailed = true;\n\t\t\t},\n\t\t\ttransactionAcceptsChildren: () => this.#acceptingChildren,\n\t\t\tchildFinalized: () => {}\n\t\t});\n\t\tthis.#slot = options.parent?.adopt(this);\n\t}\n\tstart() {\n\t\treturn this.#record.started();\n\t}\n\tacceptsChildren() {\n\t\treturn this.#acceptingChildren;\n\t}\n\tadopt(child) {\n\t\tif (!this.#acceptingChildren) throw notAcceptingChildrenError(this.activity, \"parent\");\n\t\treturn this.#children.add(child);\n\t}\n\tstopAcceptingChildren() {\n\t\tthis.#acceptingChildren = false;\n\t}\n\tasync end(settlement) {\n\t\tif (this.#ended) return;\n\t\tthis.#ended = true;\n\t\tthis.#acceptingChildren = false;\n\t\tawait endActivity(this.#record, {\n\t\t\tkind: \"transaction\",\n\t\t\toutcome: settlement.outcome\n\t\t}, this.#finalizedResult(settlement), this.#slot, (result) => this.finalize(result));\n\t}\n\tasync finalize(result) {\n\t\tawait this.#children.finalize(result);\n\t\tawait this.#record.finalize(result);\n\t}\n\t#finalizedResult(settlement) {\n\t\tif (settlement.by === \"rollback\") return { outcome: settlement.commitAttempted ? \"unknown\" : \"rolled-back\" };\n\t\treturn { outcome: settlement.outcome === \"succeeded\" && !this.#aStatementFailed ? \"committed\" : \"unknown\" };\n\t}\n};\n//#endregion\n//#region src/meta-builder.ts\nvar MetaBuilderImpl = class {\n\t#kind;\n\t#terminalName;\n\t#annotations = /* @__PURE__ */ new Map();\n\tconstructor(kind, terminalName) {\n\t\tthis.#kind = kind;\n\t\tthis.#terminalName = terminalName;\n\t}\n\tget annotations() {\n\t\treturn this.#annotations;\n\t}\n\tannotate(annotation) {\n\t\tconst value = annotation;\n\t\tassertAnnotationsApplicable([value], this.#kind, this.#terminalName);\n\t\tthis.#annotations.set(value.namespace, value);\n\t\treturn this;\n\t}\n};\n/**\n* Construct a lane-side meta builder for a terminal of operation kind `K`.\n*\n* Lane terminals call this with their `kind` (`'read'` or `'write'`) and a\n* `terminalName` for error messages, hand the resulting builder to the\n* user-supplied configurator callback (typed as `MetaBuilder<K>`, the\n* narrower public view), and read `meta.annotations` afterwards to thread\n* the recorded values into `plan.meta.annotations`.\n*/\nfunction createMetaBuilder(kind, terminalName) {\n\treturn new MetaBuilderImpl(kind, terminalName);\n}\n//#endregion\nexport { AsyncIterableResult, RUNTIME_ABORTED, RelationKeys, RuntimeCore, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createContextBeneath, createMetaBuilder, createStateStore, defineAnnotation, executeStatement, isRuntimeError, raceAgainstAbort, runtimeAborted, runtimeError, startClientActivity, startTransactionActivity, streamStatement };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,kBAAkB;;;;;;;;;;AAUxB,SAAS,eAAe,OAAO,OAAO;CACrC,MAAM,WAAW,aAAa,iBAAiB,4BAA4B,SAAS,EAAE,MAAM,CAAC;CAC7F,OAAO,OAAO,OAAO,UAAU,EAAE,MAAM,CAAC;AACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SAAS,mBAAmB;CAC3B,QAAQ,YAAY;EACnB,MAAM,YAAY,QAAQ;EAC1B,MAAM,eAAe,OAAO,OAAO,IAAI,IAAI,QAAQ,YAAY,CAAC;EAChE,SAAS,OAAO,OAAO;GACtB,OAAO,OAAO,OAAO;IACpB,cAAc;IACd;IACA;IACA;GACD,CAAC;EACF;EACA,SAAS,KAAK,QAAQ;GACrB,MAAM,SAAS,UAAU,SAAS,OAAO,KAAK,cAAc,aAAa,OAAO,YAAY,IAAI,SAAS;GACzG,IAAI,CAAC,kBAAkB,MAAM,GAAG;GAChC,IAAI,OAAO,cAAc,WAAW;GACpC,OAAO,OAAO;EACf;EACA,OAAO,OAAO,OAAO,OAAO,OAAO,QAAQ;GAC1C;GACA;GACA;EACD,CAAC,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,QAAQ;EACjB,KAAKA,SAAS;EACd,KAAKS,qBAAqB;EAC1B,MAAM,YAAY,KAAKd,SAAS;GAC/B,MAAM;GACN,SAAS,WAAW;EACrB,GAAG,KAAKe,iBAAiB,UAAU,GAAG,KAAKb,QAAQ,WAAW,KAAK,SAAS,MAAM,CAAC;CACpF;CACA,MAAM,SAAS,QAAQ;EACtB,MAAM,KAAKD,UAAU,SAAS,MAAM;EACpC,MAAM,KAAKD,QAAQ,SAAS,MAAM;CACnC;CACA,iBAAiB,YAAY;EAC5B,IAAI,WAAW,OAAO,YAAY,OAAO,EAAE,SAAS,WAAW,kBAAkB,YAAY,cAAc;EAC3G,OAAO,EAAE,SAAS,WAAW,YAAY,eAAe,CAAC,KAAKa,oBAAoB,cAAc,UAAU;CAC3G;AACD;AAGA,IAAI,kBAAkB,MAAM;CAC3B;CACA;CACA,+BAA+B,IAAI,IAAI;CACvC,YAAY,MAAM,cAAc;EAC/B,KAAKG,QAAQ;EACb,KAAKC,gBAAgB;CACtB;CACA,IAAI,cAAc;EACjB,OAAO,KAAKC;CACb;CACA,SAAS,YAAY;EACpB,MAAM,QAAQ;EACd,4BAA4B,CAAC,KAAK,GAAG,KAAKF,OAAO,KAAKC,aAAa;EACnE,KAAKC,aAAa,IAAI,MAAM,WAAW,KAAK;EAC5C,OAAO;CACR;AACD;;;;;;;;;;AAUA,SAAS,kBAAkB,MAAM,cAAc;CAC9C,OAAO,IAAI,gBAAgB,MAAM,YAAY;AAC9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"temporal-presets-CFRgwfiR-QTpEltz4.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/temporal-presets-CFRgwfiR.mjs"],"sourcesContent":["import { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { tsQuotedTextSource, tsTemplateText } from \"@internal/ts-render\";\nimport { isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue } from \"@internal/contract/types\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/shared/framework-authoring.ts\nconst AUTHORING_WARNING_BATCH_THRESHOLD = 5;\n/**\n* Emits collected authoring warnings once per build, grouped by `code`:\n* a group at or below the threshold itemizes every `message`; above it,\n* one summary — `\"<count> <summary>\"` followed by the `item` lines — so\n* a build with many hits of one kind does not wall-of-text, and warnings\n* of different codes never batch into each other's summary.\n*/\nfunction flushAuthoringWarnings(warnings) {\n\tconst groups = /* @__PURE__ */ new Map();\n\tfor (const warning of warnings) {\n\t\tconst key = JSON.stringify([warning.code, warning.summary]);\n\t\tconst group = groups.get(key) ?? [];\n\t\tgroup.push(warning);\n\t\tgroups.set(key, group);\n\t}\n\tfor (const group of groups.values()) {\n\t\tconst first = group[0];\n\t\tif (first === void 0) continue;\n\t\tif (group.length <= AUTHORING_WARNING_BATCH_THRESHOLD) {\n\t\t\tfor (const warning of group) process.emitWarning(warning.message, { code: warning.code });\n\t\t\tcontinue;\n\t\t}\n\t\tprocess.emitWarning(`${group.length} ${first.summary}\\n${group.map((w) => ` - ${w.item}`).join(\"\\n\")}`, { code: first.code });\n\t}\n}\nfunction classifyEnumMemberType(values) {\n\tlet sawText = false;\n\tlet sawInt = false;\n\tfor (const key of Object.keys(values)) {\n\t\tconst value = values[key];\n\t\tif (value === void 0 || typeof value === \"string\") sawText = true;\n\t\telse if (typeof value === \"number\" && Number.isInteger(value)) sawInt = true;\n\t\telse return null;\n\t}\n\tif (sawText && sawInt) return null;\n\tif (sawText) return \"text\";\n\tif (sawInt) return \"int\";\n\treturn null;\n}\n/**\n* Resolves the codec id for an `enum` block. When `@@type` is absent, the codec\n* is inferred from the members via {@link classifyEnumMemberType}; otherwise the\n* explicit `@@type(\"codec\")` argument is parsed. Pushes the appropriate\n* diagnostic and returns `undefined` when neither yields a codec. `codecSpan` is\n* the span downstream codec-validation diagnostics should anchor to. Shared by\n* every family's enum factory so inference and the explicit path stay identical.\n*/\nfunction resolveEnumCodecId(block, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst typeAttr = block.attributes[\"type\"];\n\tif (typeAttr === void 0) {\n\t\tconst inferredKind = classifyEnumMemberType(block.values);\n\t\tif (inferredKind === null || ctx.enumInferenceCodecs === void 0) {\n\t\t\tctx.diagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_CANNOT_INFER_TYPE\",\n\t\t\t\tmessage: `cannot infer @@type for enum \"${block.name}\"; add an explicit @@type(...)`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.span\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn {\n\t\t\tcodecId: ctx.enumInferenceCodecs[inferredKind],\n\t\t\tcodecSpan: block.span\n\t\t};\n\t}\n\tconst codecId = typeAttr.args[\"codecId\"];\n\tinvariant(typeof codecId === \"string\", \"@@type on an enum block parses one string argument\");\n\treturn {\n\t\tcodecId,\n\t\tcodecSpan: typeAttr.argSpans?.[\"codecId\"] ?? typeAttr.span\n\t};\n}\nfunction isAuthoringArgRef(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"arg\") return false;\n\tconst { index, path } = value;\n\tif (typeof index !== \"number\" || !Number.isInteger(index) || index < 0) return false;\n\tif (path !== void 0 && (!Array.isArray(path) || path.some((s) => typeof s !== \"string\"))) return false;\n\treturn true;\n}\nfunction isAuthoringSelectRef(value) {\n\tif (!isAuthoringTemplateRecord(value) || value[\"kind\"] !== \"select\") return false;\n\tconst index = value[\"index\"];\n\tconst path = value[\"path\"];\n\tconst cases = value[\"cases\"];\n\tif (typeof index !== \"number\" || !Number.isInteger(index) || index < 0) return false;\n\tif (path !== void 0 && (!Array.isArray(path) || path.some((s) => typeof s !== \"string\"))) return false;\n\treturn typeof cases === \"object\" && cases !== null && !Array.isArray(cases);\n}\nfunction isAuthoringTemplateRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction readTemplateArgumentValue(args, index, path) {\n\tlet value = args[index];\n\tfor (const segment of path ?? []) {\n\t\tif (!isAuthoringTemplateRecord(value) || !Object.hasOwn(value, segment)) return;\n\t\tvalue = value[segment];\n\t}\n\treturn value;\n}\nfunction isAuthoringTypeConstructorDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeConstructor\";\n}\n/** The type constructor at `path` in the contributions' type namespace, or `undefined` when none is there. */\nfunction getAuthoringTypeConstructor(contributions, path) {\n\tlet current = contributions?.type;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringTypeConstructorDescriptor(current) ? current : void 0;\n}\nfunction isAuthoringFieldPresetDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"fieldPreset\";\n}\nfunction isAuthoringEntityTypeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"entity\";\n}\nfunction isAuthoringPslBlockDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"pslBlock\";\n}\nfunction isAuthoringModelAttributeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"modelAttribute\";\n}\nfunction isCopyableNamespaceObject(value) {\n\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n\tconst proto = Object.getPrototypeOf(value);\n\treturn proto === Object.prototype || proto === null;\n}\n/**\n* Deep structural check run only at the composition boundary (the merge and\n* collect walkers) to classify a raw namespace-tree node as a leaf descriptor.\n* A node counts as a leaf iff its `kind` matches `descriptorKind` AND it\n* carries that kind's required fields.\n*\n* This is boundary validation over `unknown`, NOT a type-predicate: the four\n* exported `isAuthoring*Descriptor` predicates deliberately narrow on `kind`\n* alone and trust the static types. The walkers, by contrast, also receive\n* type-bypassing packs (`as unknown as never` in tests, untyped JS at runtime)\n* whose descriptor-shaped-but-incomplete nodes must be rejected rather than\n* silently treated as sub-namespaces — so the well-formedness check lives here.\n*/\nfunction isWellFormedDescriptor(value, descriptorKind) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\tif (!(\"kind\" in value) || value.kind !== descriptorKind) return false;\n\tswitch (descriptorKind) {\n\t\tcase \"typeConstructor\":\n\t\tcase \"fieldPreset\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\treturn typeof output === \"object\" && output !== null;\n\t\t}\n\t\tcase \"entity\": {\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\") return false;\n\t\t\tif (value.discriminator.length === 0) return false;\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null) return false;\n\t\t\tconst factory = \"factory\" in output ? output.factory : void 0;\n\t\t\tconst template = \"template\" in output ? output.template : void 0;\n\t\t\treturn typeof factory === \"function\" || template !== void 0;\n\t\t}\n\t\tcase \"pslBlock\": {\n\t\t\tif (!(\"keyword\" in value) || typeof value.keyword !== \"string\" || value.keyword.length === 0) return false;\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\" || value.discriminator.length === 0) return false;\n\t\t\tif (!(\"name\" in value)) return false;\n\t\t\tconst name = value.name;\n\t\t\tif (typeof name !== \"object\" || name === null) return false;\n\t\t\tif (!(\"required\" in name) || typeof name.required !== \"boolean\") return false;\n\t\t\tif (!(\"spec\" in value) || typeof value.spec !== \"function\") return false;\n\t\t\tif (!(\"attributes\" in value) || value.attributes === void 0) return true;\n\t\t\tconst attributes = value.attributes;\n\t\t\tif (typeof attributes !== \"object\" || attributes === null || Array.isArray(attributes)) return false;\n\t\t\treturn Object.values(attributes).every((factory) => typeof factory === \"function\");\n\t\t}\n\t\tcase \"modelAttribute\":\n\t\t\tif (!(\"attribute\" in value) || typeof value.attribute !== \"string\" || value.attribute.length === 0) return false;\n\t\t\tif (!(\"spec\" in value)) return false;\n\t\t\treturn \"lower\" in value && typeof value.lower === \"function\";\n\t\tdefault: return false;\n\t}\n}\nfunction deepCopyNamespace(source, descriptorKind) {\n\tconst copy = {};\n\tfor (const [key, value] of Object.entries(source)) copy[key] = isCopyableNamespaceObject(value) && !isWellFormedDescriptor(value, descriptorKind) ? deepCopyNamespace(value, descriptorKind) : value;\n\treturn copy;\n}\n/**\n* Merges `source` into `target` recursively at the descriptor-namespace\n* level. `descriptorKind` is the `kind` value ('typeConstructor',\n* 'fieldPreset', 'entity', or 'pslBlock') that identifies a descriptor\n* (terminal merge point; same-path registrations across components are\n* reported as duplicates) as opposed to a sub-namespace (recursion target).\n*\n* Path segments are validated against prototype-pollution names\n* (`__proto__`, `constructor`, `prototype`). A value that is neither a\n* recognized leaf nor a plain object — e.g. a malformed descriptor\n* where the canonical leaf guard rejected it for missing `output` —\n* is reported as an invalid contribution rather than recursed into,\n* which would either silently mangle state or infinite-loop on\n* primitive properties.\n*\n* Within-registry duplicate detection is this walker's job;\n* cross-registry detection runs separately via\n* `assertNoCrossRegistryCollisions` after merging completes.\n*/\nfunction mergeAuthoringNamespaces(target, source, path, descriptorKind, label) {\n\tconst assertSafePath = (currentPath) => {\n\t\tconst blockedSegment = currentPath.find((segment) => segment === \"__proto__\" || segment === \"constructor\" || segment === \"prototype\");\n\t\tif (blockedSegment) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Helper path segments must not use \"${blockedSegment}\".`);\n\t};\n\tfor (const [key, sourceValue] of Object.entries(source)) {\n\t\tconst currentPath = [...path, key];\n\t\tassertSafePath(currentPath);\n\t\tconst hasExistingValue = Object.hasOwn(target, key);\n\t\tconst existingValue = hasExistingValue ? target[key] : void 0;\n\t\tif (!hasExistingValue) {\n\t\t\ttarget[key] = isCopyableNamespaceObject(sourceValue) && !isWellFormedDescriptor(sourceValue, descriptorKind) ? deepCopyNamespace(sourceValue, descriptorKind) : sourceValue;\n\t\t\tcontinue;\n\t\t}\n\t\tconst existingIsLeaf = isWellFormedDescriptor(existingValue, descriptorKind);\n\t\tconst sourceIsLeaf = isWellFormedDescriptor(sourceValue, descriptorKind);\n\t\tif (existingIsLeaf || sourceIsLeaf) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring ${label} helper \"${currentPath.join(\".\")}\". Helper names must be unique across composed packs.`);\n\t\tif (!isCopyableNamespaceObject(existingValue) || !isCopyableNamespaceObject(sourceValue)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Expected a sub-namespace object or a recognized descriptor; received a malformed value.`);\n\t\tmergeAuthoringNamespaces(existingValue, sourceValue, currentPath, descriptorKind, label);\n\t}\n}\nconst ATTRIBUTE_SPEC_LEVELS = [\"model\", \"field\"];\nfunction mergeAuthoringAttributeSpecs(target, source, contributedBy, owners) {\n\tconst invalidContribution = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs contribution from descriptor \"${contributedBy}\". ${detail}`);\n\tif (!isCopyableNamespaceObject(source)) throw invalidContribution(\"Expected a record carrying a \\\"model\\\" and a \\\"field\\\" level.\");\n\tfor (const level of ATTRIBUTE_SPEC_LEVELS) {\n\t\tconst contributed = source[level];\n\t\tif (!isCopyableNamespaceObject(contributed)) throw invalidContribution(`The \"${level}\" level must be a record of spec factories keyed by attribute name.`);\n\t\tfor (const [attribute, factory] of Object.entries(contributed)) {\n\t\t\tconst entryPath = `${level}.${attribute}`;\n\t\t\tconst invalidEntry = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs entry \"${entryPath}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\t\tif (attribute === \"__proto__\" || attribute === \"constructor\" || attribute === \"prototype\") throw invalidEntry(`Attribute names must not use \"${attribute}\".`);\n\t\t\tif (typeof factory !== \"function\") throw invalidEntry(\"Each entry must be a spec factory function.\");\n\t\t\tconst existingOwner = owners.get(entryPath);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring attributeSpecs entry \"${entryPath}\". Descriptor \"${contributedBy}\" conflicts with \"${existingOwner}\". Each attribute name may be claimed once per level.`);\n\t\t\towners.set(entryPath, contributedBy);\n\t\t\ttarget[level][attribute] = factory;\n\t\t}\n\t}\n}\n/**\n* Collects the full dotted paths of every well-formed descriptor of\n* `descriptorKind` in a raw contribution tree, using the same boundary\n* classification as {@link mergeAuthoringNamespaces}. Lets assembly-level\n* callers attribute each contributed path to its contributing component\n* before merging, so a same-path collision can be reported naming both\n* contributors.\n*/\nfunction collectContributedDescriptorPaths(namespace, descriptorKind, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isWellFormedDescriptor(value, descriptorKind)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (isCopyableNamespaceObject(value)) paths.push(...collectContributedDescriptorPaths(value, descriptorKind, currentPath));\n\t}\n\treturn paths;\n}\n/**\n* Derives the scalar view of an assembled authoring type namespace: every\n* **top-level** type constructor that is instantiable with an empty argument\n* list — all declared args optional and no entity-ref argument. A bare type\n* name `T` in a schema is semantically the zero-arg instantiation `T()`, so\n* each entry is exactly what that call produces (defaulted template values\n* applied, absent optional-arg typeParams keys omitted). Constructors\n* registered under a namespace segment, constructors with required args, and\n* entity-ref constructors are not scalars and are excluded.\n*\n* Eligibility needs no template inspection: templates that cannot resolve\n* for their legal call shapes are rejected at the composition boundary by\n* {@link assertResolvableTypeConstructorTemplates}, so the zero-arg\n* instantiation below cannot fail for an eligible constructor.\n*/\nfunction collectScalarTypeConstructors(namespace) {\n\tconst result = /* @__PURE__ */ new Map();\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) continue;\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tif (value.args?.some((arg) => arg.optional !== true)) continue;\n\t\tresult.set(name, instantiateAuthoringTypeConstructor(value, []));\n\t}\n\treturn result;\n}\nfunction visitTemplateArgRefs(template, visit) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) {\n\t\tvisit(template);\n\t\tvisitTemplateArgRefs(template.default, visit);\n\t\treturn;\n\t}\n\tif (Array.isArray(template)) {\n\t\tfor (const value of template) visitTemplateArgRefs(value, visit);\n\t\treturn;\n\t}\n\tif (typeof template === \"object\" && template !== null) for (const value of Object.values(template)) visitTemplateArgRefs(value, visit);\n}\n/**\n* Boundary validation for a contributed authoring type namespace, called\n* per contributing component at assembly (which supplies `contributedBy`\n* for attribution). Rejects what the types cannot express — entity-ref\n* constructors are skipped (their output derives from the referenced\n* entity): every `typeParams` arg-ref (including refs inside arg-ref\n* defaults) must point at a declared argument index.\n*/\nfunction assertResolvableTypeConstructorTemplates(namespace, contributedBy, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, name];\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) {\n\t\t\tassertResolvableTypeConstructorTemplates(value, contributedBy, currentPath);\n\t\t\tcontinue;\n\t\t}\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tconst args = value.args ?? [];\n\t\tconst invalid = (detail) => /* @__PURE__ */ new Error(`Invalid authoring type constructor \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\tfor (const [key, template] of Object.entries(value.output.typeParams ?? {})) visitTemplateArgRefs(template, (ref) => {\n\t\t\tif (args[ref.index] === void 0) throw invalid(`output.typeParams.${key} references argument ${ref.index}, but the constructor declares ${args.length} argument(s). Declare the argument or correct the reference index.`);\n\t\t});\n\t}\n}\nfunction collectDescriptorPaths(namespace, isLeaf, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) paths.push(...collectDescriptorPaths(value, isLeaf, currentPath));\n\t}\n\treturn paths;\n}\nfunction collectDescriptorEntries(namespace, isLeaf, descriptorKind, label, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, descriptorKind)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tif (value.discriminator.length > 0) entries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif ((record[\"kind\"] !== void 0 || record[\"keyword\"] !== void 0 || record[\"discriminator\"] !== void 0) && !isLeaf(value)) {\n\t\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\t}\n\t\t\tentries.push(...collectDescriptorEntries(value, isLeaf, descriptorKind, label, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two or more entries in the same namespace share a key. A\n* duplicate key makes dispatch ambiguous — the caller's lookup dispatches by\n* this key, so one entry would silently shadow the other. Catch duplicates\n* before building any dispatch map.\n*\n* `label` (e.g. `'pslBlock'`, `'entityType'`) names which namespace the\n* duplicate was found in and is carried in the structured error metadata;\n* the key itself is always called `key` in both the message and the\n* metadata, since what it semantically represents (a discriminator for\n* `entityType`, the parser's dispatch keyword for `pslBlock`) is the\n* caller's concern, not this function's.\n*/\nfunction assertUniqueDiscriminators(entries, label) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: key } of entries) {\n\t\tconst existing = seen.get(key);\n\t\tif (existing !== void 0) throw runtimeError(\"RUNTIME.DUPLICATE_AUTHORING_DISCRIMINATOR\", `Duplicate ${label} key \"${key}\" registered at both \"${existing}\" and \"${path}\". Each ${label} contribution must use a unique key.`, {\n\t\t\tlabel,\n\t\t\tkey,\n\t\t\texistingPath: existing,\n\t\t\tpath\n\t\t});\n\t\tseen.set(key, path);\n\t}\n}\nfunction collectPslBlockDescriptorEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringPslBlockDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"pslBlock\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator,\n\t\t\t\tkeyword: value.keyword\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectPslBlockDescriptorEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Every `pslBlockDescriptors` entry requires a matching `entityTypes` factory\n* with the same discriminator. An `entityTypes` factory may stand alone (e.g.\n* `enum`, reachable from the TypeScript builder without any PSL block).\n*\n* Uniqueness for pslBlock entries is keyed on **keyword**, not discriminator:\n* several keywords (e.g. `policy_select`/`policy_insert`) may legitimately\n* share one discriminator, routing to the same `entityTypes` factory and the\n* same `entries[discriminator]` slot — that N:1 shape is exactly what lets\n* one entity kind be authored through several PSL keywords. What must stay\n* unique is the keyword itself, since that's what the parser dispatches on.\n*/\nfunction assertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace) {\n\tconst blockEntries = collectPslBlockDescriptorEntries(pslBlockNamespace);\n\tconst entityEntries = collectDescriptorEntries(entityTypeNamespace, isAuthoringEntityTypeDescriptor, \"entity\", \"entityType\");\n\tassertUniqueDiscriminators(blockEntries.map((entry) => ({\n\t\tpath: entry.path,\n\t\tdiscriminator: entry.keyword\n\t})), \"pslBlock\");\n\tassertUniqueDiscriminators(entityEntries, \"entityType\");\n\tconst entityDiscriminators = new Set(entityEntries.map((entry) => entry.discriminator));\n\tfor (const block of blockEntries) if (!entityDiscriminators.has(block.discriminator)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Incomplete extension contribution: pslBlock helper \"${block.path}\" registers discriminator \"${block.discriminator}\" but no entityType contribution shares that discriminator. An extension-contributed PSL block requires a matching entityType factory so the parsed AST node can lower to an IR class instance; add an entityType helper with discriminator \"${block.discriminator}\".`);\n}\nfunction collectModelAttributeEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringModelAttributeDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"modelAttribute\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.attribute\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif (typeof record[\"attribute\"] === \"string\" && \"spec\" in record) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectModelAttributeEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two modelAttribute contributions — at any paths, even\n* different ones — claim the same bare `@@` attribute name. The family\n* interpreter dispatches by attribute name, not by registration path, so\n* two descriptors claiming the same name would have one silently shadow\n* the other.\n*/\nfunction assertUniqueModelAttributeNames(entries) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: attribute } of entries) {\n\t\tconst existing = seen.get(attribute);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate modelAttribute \"${attribute}\" registered at both \"${existing}\" and \"${path}\". Each modelAttribute contribution must claim a unique attribute name.`);\n\t\tseen.set(attribute, path);\n\t}\n}\nfunction assertNoCrossRegistryCollisions(typeNamespace, fieldNamespace, entityTypeNamespace = {}, pslBlockNamespace = {}, modelAttributeNamespace = {}) {\n\tconst typePaths = new Set(collectDescriptorPaths(typeNamespace, isAuthoringTypeConstructorDescriptor));\n\tconst fieldPaths = new Set(collectDescriptorPaths(fieldNamespace, isAuthoringFieldPresetDescriptor));\n\tconst entityPaths = new Set(collectDescriptorPaths(entityTypeNamespace, isAuthoringEntityTypeDescriptor));\n\tconst ambiguityHint = \"Register each path in only one of authoringContributions.field / authoringContributions.type / authoringContributions.entityTypes.\";\n\tfor (const fieldPath of fieldPaths) if (typePaths.has(fieldPath)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Ambiguous authoring registry path \"${fieldPath}\". The same path is registered as both a type constructor and a field preset; PSL resolution would be ambiguous. ${ambiguityHint}`);\n\tfor (const entityPath of entityPaths) if (typePaths.has(entityPath) || fieldPaths.has(entityPath)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Ambiguous authoring registry path \"${entityPath}\". The same path is registered as an entity contribution AND as a type constructor or field preset; PSL resolution would be ambiguous. ${ambiguityHint}`);\n\tassertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace);\n\tassertUniqueModelAttributeNames(collectModelAttributeEntries(modelAttributeNamespace));\n\tassertSelectTemplatesMatchOptionArgs(typeNamespace, fieldNamespace, entityTypeNamespace);\n}\nfunction collectDescriptorNodes(namespace, isLeaf, path = []) {\n\tconst nodes = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tnodes.push([currentPath.join(\".\"), value]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) nodes.push(...collectDescriptorNodes(value, isLeaf, currentPath));\n\t}\n\treturn nodes;\n}\nfunction collectSelectRefs(value, found) {\n\tif (typeof value !== \"object\" || value === null) return;\n\tif (isAuthoringSelectRef(value)) {\n\t\tfound.push(value);\n\t\tfor (const caseTemplate of Object.values(value.cases)) collectSelectRefs(caseTemplate, found);\n\t\treturn;\n\t}\n\tif (isAuthoringArgRef(value)) {\n\t\tcollectSelectRefs(value.default, found);\n\t\treturn;\n\t}\n\tif (Array.isArray(value)) {\n\t\tfor (const entry of value) collectSelectRefs(entry, found);\n\t\treturn;\n\t}\n\tfor (const entry of Object.values(value)) collectSelectRefs(entry, found);\n}\nfunction validateSelectRefsAgainstArgs(label, helperPath, args, templateRoot) {\n\tconst selects = [];\n\tcollectSelectRefs(templateRoot, selects);\n\tfor (const select of selects) {\n\t\tconst position = `#${select.index + 1}`;\n\t\tlet descriptor = args?.[select.index];\n\t\tif (descriptor === void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Authoring ${label} helper \"${helperPath}\" select template references argument ${position}, but the helper declares no argument at that position.`);\n\t\tfor (const segment of select.path ?? []) {\n\t\t\tdescriptor = descriptor.kind === \"object\" ? descriptor.properties[segment] : void 0;\n\t\t\tif (descriptor === void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Authoring ${label} helper \"${helperPath}\" select template references argument ${position} at path \"${(select.path ?? []).join(\".\")}\", which does not resolve to a declared argument property.`);\n\t\t}\n\t\tif (descriptor.kind !== \"option\") throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Authoring ${label} helper \"${helperPath}\" select template references argument ${position}, which is kind \"${descriptor.kind}\"; select requires an option argument.`);\n\t\tconst argumentLabel = descriptor.name !== void 0 ? `\"${descriptor.name}\"` : position;\n\t\tconst missing = descriptor.values.filter((value) => !Object.hasOwn(select.cases, value));\n\t\tif (missing.length > 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Authoring ${label} helper \"${helperPath}\" option argument ${argumentLabel} allows [${descriptor.values.join(\", \")}] but the select template has no case for: ${missing.join(\", \")}.`);\n\t\tconst values = descriptor.values;\n\t\tconst unreachable = Object.keys(select.cases).filter((key) => !values.includes(key));\n\t\tif (unreachable.length > 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Authoring ${label} helper \"${helperPath}\" select template has case(s) not allowed by option argument ${argumentLabel}: ${unreachable.join(\", \")}. Allowed values: [${values.join(\", \")}].`);\n\t}\n}\n/**\n* Every `select` template node must target an option argument whose `values`\n* exactly cover the node's `cases` — a legal token with no case and a case no\n* token can reach are both declaration bugs, caught here at pack-registration\n* time rather than at first resolution.\n*/\nfunction assertSelectTemplatesMatchOptionArgs(typeNamespace, fieldNamespace, entityTypeNamespace) {\n\tfor (const [helperPath, descriptor] of collectDescriptorNodes(fieldNamespace, isAuthoringFieldPresetDescriptor)) validateSelectRefsAgainstArgs(\"field\", helperPath, descriptor.args, descriptor.output);\n\tfor (const [helperPath, descriptor] of collectDescriptorNodes(typeNamespace, isAuthoringTypeConstructorDescriptor)) validateSelectRefsAgainstArgs(\"type\", helperPath, descriptor.args, descriptor.output);\n\tfor (const [helperPath, descriptor] of collectDescriptorNodes(entityTypeNamespace, isAuthoringEntityTypeDescriptor)) if (\"template\" in descriptor.output) validateSelectRefsAgainstArgs(\"entityType\", helperPath, descriptor.args, descriptor.output.template);\n}\nfunction resolveAuthoringTemplateValue(template, args) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) {\n\t\tconst value = readTemplateArgumentValue(args, template.index, template.path);\n\t\tif (value === void 0 && template.default !== void 0) return resolveAuthoringTemplateValue(template.default, args);\n\t\treturn value;\n\t}\n\tif (isAuthoringSelectRef(template)) {\n\t\tconst value = readTemplateArgumentValue(args, template.index, template.path);\n\t\tif (value === void 0) return;\n\t\tif (typeof value !== \"string\" || !Object.hasOwn(template.cases, value)) throw new InternalError(`Authoring template select has no case for value \"${String(value)}\"`);\n\t\treturn resolveAuthoringTemplateValue(template.cases[value], args);\n\t}\n\tif (Array.isArray(template)) return template.map((value) => resolveAuthoringTemplateValue(value, args));\n\tif (typeof template === \"object\" && template !== null) {\n\t\tconst resolved = {};\n\t\tfor (const [key, value] of Object.entries(template)) {\n\t\t\tconst resolvedValue = resolveAuthoringTemplateValue(value, args);\n\t\t\tif (resolvedValue !== void 0) resolved[key] = resolvedValue;\n\t\t}\n\t\treturn resolved;\n\t}\n\treturn template;\n}\nfunction validateAuthoringArgument(descriptor, value, path) {\n\tif (value === void 0) {\n\t\tif (descriptor.optional) return;\n\t\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} is missing`);\n\t}\n\tif (descriptor.kind === \"string\") {\n\t\tif (typeof value !== \"string\") throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be a string`);\n\t\treturn;\n\t}\n\tif (descriptor.kind === \"boolean\") {\n\t\tif (typeof value !== \"boolean\") throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be a boolean`);\n\t\treturn;\n\t}\n\tif (descriptor.kind === \"stringArray\") {\n\t\tif (!Array.isArray(value)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be an array of strings`);\n\t\tfor (const entry of value) if (typeof entry !== \"string\") throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be an array of strings`);\n\t\treturn;\n\t}\n\tif (descriptor.kind === \"object\") {\n\t\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be an object`);\n\t\tconst input = value;\n\t\tconst expectedKeys = new Set(Object.keys(descriptor.properties));\n\t\tfor (const key of Object.keys(input)) if (!expectedKeys.has(key)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} contains unknown property \"${key}\"`);\n\t\tfor (const [key, propertyDescriptor] of Object.entries(descriptor.properties)) validateAuthoringArgument(propertyDescriptor, input[key], `${path}.${key}`);\n\t\treturn;\n\t}\n\tif (descriptor.kind === \"option\") {\n\t\tif (typeof value !== \"string\" || !descriptor.values.includes(value)) {\n\t\t\tconst quoted = descriptor.values.map((option) => JSON.stringify(option));\n\t\t\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} ${quoted.length === 0 ? \"takes no value\" : `must be ${quoted.length === 1 ? quoted.join(\"\") : `one of ${quoted.join(\", \")}`}`}; received ${describeReceivedArgument(value)}`);\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof value !== \"number\" || Number.isNaN(value)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be a number`);\n\tif (descriptor.integer && !Number.isInteger(value)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be an integer`);\n\tif (descriptor.minimum !== void 0 && value < descriptor.minimum) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be >= ${descriptor.minimum}, received ${value}`);\n\tif (descriptor.maximum !== void 0 && value > descriptor.maximum) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${path} must be <= ${descriptor.maximum}, received ${value}`);\n}\nfunction validateAuthoringHelperArguments(helperPath, descriptors, args) {\n\tconst expected = descriptors ?? [];\n\tconst minimumArgs = expected.reduce((count, descriptor, index) => descriptor.optional ? count : index + 1, 0);\n\tif (args.length < minimumArgs || args.length > expected.length) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${helperPath} expects ${minimumArgs === expected.length ? expected.length : `${minimumArgs}-${expected.length}`} argument(s), received ${args.length}`);\n\texpected.forEach((descriptor, index) => {\n\t\tvalidateAuthoringArgument(descriptor, args[index], argumentLabel(helperPath, descriptor, index));\n\t});\n}\nfunction argumentLabel(helperPath, descriptor, index) {\n\treturn descriptor.name === void 0 ? `Authoring helper argument at ${helperPath}[${index}]` : `Argument \"${descriptor.name}\" of ${helperPath}`;\n}\nfunction describeReceivedArgument(value) {\n\treturn typeof value === \"string\" ? JSON.stringify(value) : String(value);\n}\nfunction argumentIndexOf(template) {\n\tlet index;\n\tvisitTemplateArgRefs(template, (ref) => {\n\t\tindex ??= ref.index;\n\t});\n\treturn index;\n}\nfunction issueKey(issue) {\n\tconst [first] = issue.path ?? [];\n\tconst key = typeof first === \"object\" && first !== null ? first.key : first;\n\treturn typeof key === \"string\" ? key : void 0;\n}\n/**\n* Checks the type parameters a constructor or preset produced against its codec's parameter schema, which is where the bounds of a data type's parameters are written. A failure names the argument the failing parameter came from.\n*/\nfunction validateAuthoringTypeParams(helperPath, template, typeParams, paramsSchema) {\n\tif (template.typeParams === void 0 || paramsSchema === void 0) return;\n\tconst result = paramsSchema[\"~standard\"].validate(typeParams ?? {});\n\tif (result instanceof Promise) throw new InternalError(`The parameter schema of codec \"${template.codecId}\" is asynchronous; authoring requires a synchronous schema.`);\n\tconst [issue] = result.issues ?? [];\n\tif (issue === void 0) return;\n\tconst key = issueKey(issue);\n\tconst argumentIndex = key === void 0 ? void 0 : argumentIndexOf(template.typeParams[key]);\n\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", argumentIndex === void 0 ? `The type parameters of ${helperPath} are invalid: ${issue.message}` : `Authoring helper argument at ${helperPath}[${argumentIndex}] is invalid: ${issue.message}`, {\n\t\thelperPath,\n\t\t...ifDefined(\"argumentIndex\", argumentIndex)\n\t});\n}\nfunction resolveAuthoringStorageTypeTemplate(template, args) {\n\tconst typeParams = template.typeParams === void 0 ? void 0 : resolveAuthoringTemplateValue(template.typeParams, args);\n\tif (typeParams !== void 0 && !isAuthoringTemplateRecord(typeParams)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Resolved authoring typeParams must be an object for codec \"${template.codecId}\", received ${String(typeParams)}`);\n\tconst normalizedTypeParams = typeParams !== void 0 && Object.keys(typeParams).length === 0 ? void 0 : typeParams;\n\treturn {\n\t\tcodecId: template.codecId,\n\t\t...ifDefined(\"typeParams\", normalizedTypeParams)\n\t};\n}\nfunction resolveAuthoringColumnDefaultTemplate(template, args) {\n\tif (template.kind === \"literal\") {\n\t\tconst value = resolveAuthoringTemplateValue(template.value, args);\n\t\tif (value === void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", \"Resolved authoring literal default must not be undefined\");\n\t\tif (!isColumnDefaultLiteralInputValue(value)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Resolved authoring literal default must be a JSON-serializable value or Date, received ${String(value)}`);\n\t\treturn {\n\t\t\tkind: \"literal\",\n\t\t\tvalue\n\t\t};\n\t}\n\tconst expression = resolveAuthoringTemplateValue(template.expression, args);\n\tif (expression === void 0 || typeof expression === \"object\" && expression !== null) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Resolved authoring function default expression must resolve to a primitive, received ${String(expression)}`);\n\treturn {\n\t\tkind: \"function\",\n\t\texpression: String(expression)\n\t};\n}\nfunction resolveExecutionMutationDefaultPhase(phase, template, args) {\n\tconst value = resolveAuthoringTemplateValue(template, args);\n\tif (value === void 0) return;\n\tif (!isExecutionMutationDefaultValue(value)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Authoring preset executionDefaults.${phase} did not resolve to a valid generator descriptor (kind: 'generator', id: string).`);\n\treturn value;\n}\nfunction resolveAuthoringExecutionDefaultsTemplate(template, args) {\n\tconst phases = {\n\t\t...ifDefined(\"onCreate\", template.onCreate !== void 0 ? resolveExecutionMutationDefaultPhase(\"onCreate\", template.onCreate, args) : void 0),\n\t\t...ifDefined(\"onUpdate\", template.onUpdate !== void 0 ? resolveExecutionMutationDefaultPhase(\"onUpdate\", template.onUpdate, args) : void 0)\n\t};\n\treturn Object.keys(phases).length === 0 ? void 0 : phases;\n}\nfunction instantiateAuthoringTypeConstructor(descriptor, args) {\n\treturn resolveAuthoringStorageTypeTemplate(descriptor.output, args);\n}\nfunction instantiateAuthoringEntityType(helperPath, descriptor, args, ctx) {\n\tif (\"factory\" in descriptor.output) {\n\t\tconst input = args[0];\n\t\treturn blindCast(descriptor.output.factory)(input, ctx);\n\t}\n\tvalidateAuthoringHelperArguments(helperPath, descriptor.args, args);\n\treturn blindCast(resolveAuthoringTemplateValue(descriptor.output.template, args));\n}\nfunction instantiateAuthoringFieldPreset(descriptor, args) {\n\treturn {\n\t\tdescriptor: resolveAuthoringStorageTypeTemplate(descriptor.output, args),\n\t\tnullable: descriptor.output.nullable ?? false,\n\t\t...ifDefined(\"default\", descriptor.output.default !== void 0 ? resolveAuthoringColumnDefaultTemplate(descriptor.output.default, args) : void 0),\n\t\t...ifDefined(\"executionDefaults\", descriptor.output.executionDefaults !== void 0 ? resolveAuthoringExecutionDefaultsTemplate(descriptor.output.executionDefaults, args) : void 0),\n\t\tid: descriptor.output.id ?? false,\n\t\tunique: descriptor.output.unique ?? false\n\t};\n}\n//#endregion\n//#region src/shared/tagged-literal.ts\nconst TAGGED_LITERAL_MAX_BYTES = 65536;\n/** The message a tagged literal's canonicalization failure is reported with, in PSL and in TypeScript. */\nfunction describeTaggedLiteralFailure(reason) {\n\tswitch (reason) {\n\t\tcase \"nul\": return \"Tagged literals must not contain NUL characters.\";\n\t\tcase \"too-large\": return `Tagged literal exceeds ${TAGGED_LITERAL_MAX_BYTES} bytes.`;\n\t}\n}\nconst PSL_BACKTICK_ESCAPES = /* @__PURE__ */ new Set([\"`\", \"\\\\\"]);\nconst TEMPLATE_TAG_ESCAPES = /* @__PURE__ */ new Set([\n\t\"`\",\n\t\"\\\\\",\n\t\"$\"\n]);\n/** The escapes a PSL backtick string resolves: `` \\` `` and `\\\\`. PSL has no interpolation, so `${` is ordinary text. */\nfunction resolvePslBacktickEscapes(raw) {\n\treturn resolveEscapes(raw, PSL_BACKTICK_ESCAPES);\n}\n/** The escapes a TypeScript template tag resolves: the PSL two plus `\\$`, the only way to write `${` in a template literal. */\nfunction resolveTemplateTagEscapes(raw) {\n\treturn resolveEscapes(raw, TEMPLATE_TAG_ESCAPES);\n}\n/** Every other backslash sequence is kept as written, both characters, so a SQL body may contain `E'\\n'` unchanged. */\nfunction resolveEscapes(raw, escapes) {\n\tlet out = \"\";\n\tlet i = 0;\n\twhile (i < raw.length) {\n\t\tconst ch = raw.charAt(i);\n\t\tconst next = raw.charAt(i + 1);\n\t\tif (ch === \"\\\\\" && escapes.has(next)) {\n\t\t\tout += next;\n\t\t\ti += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tout += ch;\n\t\ti++;\n\t}\n\treturn out;\n}\nconst BLANK_LINE = /^[ \\t]*$/;\nconst LEADING_INDENT = /^[ \\t]*/;\nconst LINE_BREAK = /\\r\\n|\\r|\\n/g;\n/**\n* Turns the escape-resolved body of a tagged literal into its canonical text:\n* newlines become `\\n`, every blank line before the first non-blank line and\n* after the last one is dropped, common leading whitespace is removed, internal\n* blank lines become empty, and no trailing newline is added. The result is its\n* own canonical text. Fails on a NUL character or when the result is larger\n* than 65536 UTF-8 bytes.\n*/\nfunction canonicalizeTaggedLiteralBody(resolved) {\n\tconst nul = resolved.indexOf(\"\\0\");\n\tif (nul !== -1) return {\n\t\tok: false,\n\t\treason: \"nul\",\n\t\toffset: nul\n\t};\n\tconst lines = splitLines(resolved);\n\twhile (lines.length > 0 && BLANK_LINE.test(lines[0]?.text ?? \"\")) lines.shift();\n\twhile (lines.length > 0 && BLANK_LINE.test(lines.at(-1)?.text ?? \"\")) lines.pop();\n\tconst indent = commonIndent(lines);\n\tconst bodyLines = lines.map((line) => BLANK_LINE.test(line.text) ? {\n\t\ttext: \"\",\n\t\tstart: line.start\n\t} : {\n\t\ttext: line.text.slice(indent),\n\t\tstart: line.start + indent\n\t});\n\tconst excess = offsetWhereBytesExceed(bodyLines, TAGGED_LITERAL_MAX_BYTES);\n\tif (excess !== void 0) return {\n\t\tok: false,\n\t\treason: \"too-large\",\n\t\toffset: excess\n\t};\n\treturn {\n\t\tok: true,\n\t\ttext: bodyLines.map((line) => line.text).join(\"\\n\")\n\t};\n}\nfunction splitLines(text) {\n\tconst lines = [];\n\tlet start = 0;\n\tfor (const match of text.matchAll(LINE_BREAK)) {\n\t\tlines.push({\n\t\t\ttext: text.slice(start, match.index),\n\t\t\tstart\n\t\t});\n\t\tstart = match.index + match[0].length;\n\t}\n\tlines.push({\n\t\ttext: text.slice(start),\n\t\tstart\n\t});\n\treturn lines;\n}\nfunction commonIndent(lines) {\n\tlet indent = Number.POSITIVE_INFINITY;\n\tfor (const line of lines) {\n\t\tif (BLANK_LINE.test(line.text)) continue;\n\t\tindent = Math.min(indent, LEADING_INDENT.exec(line.text)?.[0].length ?? 0);\n\t}\n\treturn Number.isFinite(indent) ? indent : 0;\n}\n/** The resolved-body offset of the first character that pushes the text past `limit` bytes. */\nfunction offsetWhereBytesExceed(lines, limit) {\n\tlet bytes = 0;\n\tfor (const [index, line] of lines.entries()) {\n\t\tif (index > 0) {\n\t\t\tbytes += 1;\n\t\t\tif (bytes > limit) return line.start;\n\t\t}\n\t\tlet offsetInLine = 0;\n\t\tfor (const char of line.text) {\n\t\t\tbytes += utf8Length(char.codePointAt(0) ?? 0);\n\t\t\tif (bytes > limit) return line.start + offsetInLine;\n\t\t\toffsetInLine += char.length;\n\t\t}\n\t}\n}\nfunction utf8Length(codePoint) {\n\tif (codePoint < 128) return 1;\n\tif (codePoint < 2048) return 2;\n\tif (codePoint < 65536) return 3;\n\treturn 4;\n}\nfunction escapeQuotedText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n/**\n* The PSL text of a tagged literal holding `text`: the backtick form, or the double-quote form when the text holds a\n* backtick, which reads better than escaping each backtick. A multi-line text starts on the line after the opening\n* backtick, so indentation a printer adds to an enclosing block is common to every line and the canonicalization\n* removes it. The literal's canonical text is `text` again only when {@link printedTaggedLiteralReadsBack} holds; text\n* with leading indentation or a carriage return, for example, does not read back. ADR 129.\n*/\nfunction printTaggedLiteral(tag, text) {\n\tif (text.includes(\"`\")) return `${tag}\"${escapeQuotedText(text)}\"`;\n\tconst fenced = text.replace(/\\\\(?=\\\\|$)/g, \"\\\\\\\\\");\n\treturn isPrintedOnOwnLines(text) ? `${tag}\\`\\n${fenced}\\n\\`` : `${tag}\\`${fenced}\\``;\n}\nfunction isPrintedOnOwnLines(text) {\n\treturn !text.includes(\"`\") && text.includes(\"\\n\");\n}\n/** Whether the literal {@link printTaggedLiteral} prints for `text` has `text` as its canonical text. */\nfunction printedTaggedLiteralReadsBack(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(isPrintedOnOwnLines(text) ? `\\n${text}\\n` : text);\n\treturn canonical.ok && canonical.text === text;\n}\n/**\n* TypeScript source for `text` in generated code: a template literal with `tag`, or `tsQuotedTextSource(text)`. It\n* writes a template only when the tag's TypeScript function canonicalizes its text as `canonicalizeTaggedLiteralBody`\n* does and that leaves `text` unchanged, which holds for `sql`. It also falls back when a line ends in a space or a\n* tab, which editors strip on save, and when `text` holds a character a template would carry unescaped and invisible.\n* A multi-line template's lines sit one level deeper than the line it opens on.\n*/\nfunction tsTaggedTemplateSource(tag, text) {\n\tif (!templateHoldsUnchanged(text)) return {\n\t\tsource: tsQuotedTextSource(text),\n\t\tusesTag: false\n\t};\n\tconst escaped = tsTemplateText(text);\n\tif (!text.includes(\"\\n\")) return {\n\t\tsource: `${tag}\\`${escaped}\\``,\n\t\tusesTag: true\n\t};\n\treturn {\n\t\tsource: `${tag}\\`\\n${escaped.split(\"\\n\").map((line) => line.length === 0 ? line : ` ${line}`).join(\"\\n\")}\\n\\``,\n\t\tusesTag: true\n\t};\n}\nconst WHITESPACE_ONLY_LINE = /^\\s+$/;\nconst TRAILING_SPACE_OR_TAB = /[ \\t]$/;\nfunction templateHoldsUnchanged(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\tif (!canonical.ok || canonical.text !== text) return false;\n\tconst lines = text.split(\"\\n\");\n\tconst indentTreatsAsBlank = (line) => WHITESPACE_ONLY_LINE.test(line) && !BLANK_LINE.test(line);\n\tif (lines.some((line) => indentTreatsAsBlank(line) || TRAILING_SPACE_OR_TAB.test(line))) return false;\n\treturn !holdsCharacterThatNeedsAnEscape(text);\n}\nfunction holdsCharacterThatNeedsAnEscape(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 && char !== \"\\n\" && char !== \"\t\" || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/shared/temporal-presets.ts\n/**\n* Canonical id for the wall-clock-now mutation default generator. It flows to the control-plane descriptor and the temporal field presets below, to each family's runtime generator, and to the authoring surfaces (PSL `temporal.updatedAt()`, TS `field.temporal.updatedAt()`) through the descriptor.\n*/\nconst TIMESTAMP_NOW_GENERATOR_ID = \"timestampNow\";\n/**\n* Builds the control-plane descriptor for the wall-clock-now mutation default generator. Its `id` and `buildPhases` are target-agnostic, so PSL `temporal.updatedAt()` and TS `field.temporal.updatedAt()` lower to byte-identical contracts.\n*\n* `applicableCodecIds` is omitted: `timestampNow` is reachable only through a preset, which co-registers the codec itself, so a compatibility list would be tautological.\n*/\nfunction timestampNowControlDescriptor() {\n\treturn {\n\t\tid: TIMESTAMP_NOW_GENERATOR_ID,\n\t\tbuildPhases: () => ({\n\t\t\tonCreate: {\n\t\t\t\tkind: \"generator\",\n\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t},\n\t\t\tonUpdate: {\n\t\t\t\tkind: \"generator\",\n\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t}\n\t\t})\n\t};\n}\n/**\n* Builds the `temporal.{createdAt,updatedAt}` field-preset pair. `createdAt` lowers to an execution generator on `onCreate`; `updatedAt` lowers to the same generator on both `onCreate` and `onUpdate`. The target supplies the storage template of its timestamp codec, which the presets carry through unchanged; everything else is shared, so PSL and TS authoring lower to byte-identical contracts across targets.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalAuthoringPresets(input) {\n\tconst { generatorId: requestedGeneratorId, ...storage } = input;\n\tconst generatorId = requestedGeneratorId ?? \"timestampNow\";\n\treturn {\n\t\tcreatedAt: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\t...storage,\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: generatorId\n\t\t\t\t} }\n\t\t\t}\n\t\t},\n\t\tupdatedAt: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\t...storage,\n\t\t\t\texecutionDefaults: {\n\t\t\t\t\tonCreate: {\n\t\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\t\tid: generatorId\n\t\t\t\t\t},\n\t\t\t\t\tonUpdate: {\n\t\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\t\tid: generatorId\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\nconst TEMPORAL_ON_CREATE_ARG = {\n\tname: \"onCreate\",\n\tkind: \"option\",\n\tvalues: [\"now\"],\n\toptional: true\n};\nconst TEMPORAL_ON_UPDATE_ARG = {\n\tname: \"onUpdate\",\n\tkind: \"option\",\n\tvalues: [\"now\"],\n\toptional: true\n};\n/**\n* Selects a generator descriptor for the preset's `now` token. The token is preset vocabulary; the generator id never appears in a user's spelling (ADR 169 — these generators are preset-only).\n*/\nfunction temporalPhaseTemplate(index, generatorId) {\n\treturn {\n\t\tkind: \"select\",\n\t\tindex,\n\t\tcases: { now: {\n\t\t\tkind: \"generator\",\n\t\t\tid: generatorId\n\t\t} }\n\t};\n}\n/**\n* Builds a `temporal.<codec>` field preset for a codec with no type parameters, carrying the codec's storage template through unchanged. Both phase arguments are optional, and omitting one omits that phase.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalCodecPreset(storage) {\n\treturn {\n\t\tkind: \"fieldPreset\",\n\t\targs: [TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG],\n\t\toutput: {\n\t\t\t...storage,\n\t\t\texecutionDefaults: {\n\t\t\t\tonCreate: temporalPhaseTemplate(0, TIMESTAMP_NOW_GENERATOR_ID),\n\t\t\t\tonUpdate: temporalPhaseTemplate(1, TIMESTAMP_NOW_GENERATOR_ID)\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\nexport { isAuthoringPslBlockDescriptor as A, instantiateAuthoringEntityType as C, isAuthoringEntityTypeDescriptor as D, isAuthoringArgRef as E, resolveEnumCodecId as F, validateAuthoringHelperArguments as I, validateAuthoringTypeParams as L, mergeAuthoringAttributeSpecs as M, mergeAuthoringNamespaces as N, isAuthoringFieldPresetDescriptor as O, resolveAuthoringTemplateValue as P, getAuthoringTypeConstructor as S, instantiateAuthoringTypeConstructor as T, assertResolvableTypeConstructorTemplates as _, temporalCodecPreset as a, collectScalarTypeConstructors as b, TAGGED_LITERAL_MAX_BYTES as c, printTaggedLiteral as d, printedTaggedLiteralReadsBack as f, assertNoCrossRegistryCollisions as g, tsTaggedTemplateSource as h, temporalAuthoringPresets as i, isAuthoringTypeConstructorDescriptor as j, isAuthoringModelAttributeDescriptor as k, canonicalizeTaggedLiteralBody as l, resolveTemplateTagEscapes as m, TEMPORAL_ON_UPDATE_ARG as n, temporalPhaseTemplate as o, resolvePslBacktickEscapes as p, TIMESTAMP_NOW_GENERATOR_ID as r, timestampNowControlDescriptor as s, TEMPORAL_ON_CREATE_ARG as t, describeTaggedLiteralFailure as u, classifyEnumMemberType as v, instantiateAuthoringFieldPreset as w, flushAuthoringWarnings as x, collectContributedDescriptorPaths as y };\n\n//# sourceMappingURL=temporal-presets-CFRgwfiR.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,oCAAoC;;;;;;;;AAQ1C,SAAS,uBAAuB,UAAU;CACzC,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,WAAW,UAAU;EAC/B,MAAM,MAAM,KAAK,UAAU,CAAC,QAAQ,MAAM,QAAQ,O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BAAoB;GACnB,UAAU;IACT,MAAM;IACN,IAAI;GACL;GACA,UAAU;IACT,MAAM;IACN,IAAI;GACL;EACD;CACD;AACD;;;;;AAKA,SAAS,yBAAyB,OAAO;CACxC,MAAM,EAAE,aAAa,sBAAsB,GAAG,YAAY;CAC1D,MAAM,cAAc,wBAAwB;CAC5C,OAAO;EACN,WAAW;GACV,MAAM;GACN,QAAQ;IACP,GAAG;IACH,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;GACH;EACD;EACA,WAAW;GACV,MAAM;GACN,QAAQ;IACP,GAAG;IACH,mBAAmB;KAClB,UAAU;MACT,MAAM;MACN,IAAI;KACL;KACA,UAAU;MACT,MAAM;MACN,IAAI;KACL;IACD;GACD;EACD;CACD;AACD;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,QAAQ,CAAC,KAAK;CACd,UAAU;AACX;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,QAAQ,CAAC,KAAK;CACd,UAAU;AACX;;;;AAIA,SAAS,sBAAsB,OAAO,aAAa;CAClD,OAAO;EACN,MAAM;EACN;EACA,OAAO,EAAE,KAAK;GACb,MAAM;GACN,IAAI;EACL,EAAE;CACH;AACD;;;;;AAKA,SAAS,oBAAoB,SAAS;CACrC,OAAO;EACN,MAAM;EACN,MAAM,CAAC,wBAAwB,sBAAsB;EACrD,QAAQ;GACP,GAAG;GACH,mBAAmB;IAClB,UAAU,sBAAsB,GAAG,0BAA0B;IAC7D,UAAU,sBAAsB,GAAG,0BAA0B;GAC9D;EACD;CACD;AACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"written-value-Dio_n0HT-CgpcE2lf.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/written-value-Dio_n0HT.d.mts"],"mappings":";;;;;;;;;;;KAUK;WACM;WACA;;WAEA;WACA;WACA;;cAEG;;iBAEG,6BAA6B;;iBAE7B,0BAA0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