@prisma/orm-framework 8.0.0-rc.18-dev.16 → 8.0.0-rc.18-dev.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/{authoring-CdcF6V47.mjs → authoring-CDlR13tn.mjs} +49 -42
  2. package/dist/authoring-CDlR13tn.mjs.map +1 -0
  3. package/dist/{authoring-CSsdXy1L.d.mts → authoring-joNigE7w.d.mts} +5 -5
  4. package/dist/{authoring-CSsdXy1L.d.mts.map → authoring-joNigE7w.d.mts.map} +1 -1
  5. package/dist/{binder-Eeh-nJsx-a-PG0VsN.d.mts → binder-BfzoRtNz-uIAexNtf.d.mts} +14 -13
  6. package/dist/{binder-Eeh-nJsx-a-PG0VsN.d.mts.map → binder-BfzoRtNz-uIAexNtf.d.mts.map} +1 -1
  7. package/dist/{capabilities-CnCdDH1J-Bq8Zf0nY.mjs → capabilities-Cn-Kepnv-B8FOAyUu.mjs} +3 -3
  8. package/dist/{capabilities-CnCdDH1J-Bq8Zf0nY.mjs.map → capabilities-Cn-Kepnv-B8FOAyUu.mjs.map} +1 -1
  9. package/dist/codec-BYGt3r-S.mjs +28 -0
  10. package/dist/codec-BYGt3r-S.mjs.map +1 -0
  11. package/dist/{codec-C50y5KJD.d.mts → codec-BxNHu928.d.mts} +21 -18
  12. package/dist/codec-BxNHu928.d.mts.map +1 -0
  13. package/dist/codec-descriptor-C_M6vCEV-CX-PKa8w.mjs +78 -0
  14. package/dist/codec-descriptor-C_M6vCEV-CX-PKa8w.mjs.map +1 -0
  15. package/dist/{codec-types-BsE6wCHK-Dpx-WFJ2.d.mts → codec-types-BNVa23xn-DLZmMFiC.d.mts} +75 -60
  16. package/dist/codec-types-BNVa23xn-DLZmMFiC.d.mts.map +1 -0
  17. package/dist/{components-VMbwq7D8.mjs → components-Bji-LsWb.mjs} +2 -2
  18. package/dist/{components-VMbwq7D8.mjs.map → components-Bji-LsWb.mjs.map} +1 -1
  19. package/dist/{components-DY1n6ZoG.d.mts → components-EV0zsCc7.d.mts} +4 -4
  20. package/dist/{components-DY1n6ZoG.d.mts.map → components-EV0zsCc7.d.mts.map} +1 -1
  21. package/dist/components.d.mts +17 -17
  22. package/dist/components.mjs +10 -10
  23. package/dist/components__authoring.d.mts +4 -4
  24. package/dist/components__authoring.mjs +3 -3
  25. package/dist/components__codec.d.mts +3 -3
  26. package/dist/components__codec.mjs +4 -4
  27. package/dist/components__components.d.mts +3 -3
  28. package/dist/components__components.mjs +2 -2
  29. package/dist/components__control.d.mts +3 -3
  30. package/dist/components__control.mjs +2 -2
  31. package/dist/components__emission.d.mts +3 -3
  32. package/dist/components__execution.d.mts +1 -1
  33. package/dist/components__psl-ast.d.mts +3 -3
  34. package/dist/components__runtime.d.mts +1 -1
  35. package/dist/{config-types-ClR0TWDp.d.mts → config-types-Cz10_syo.d.mts} +7 -7
  36. package/dist/{config-types-ClR0TWDp.d.mts.map → config-types-Cz10_syo.d.mts.map} +1 -1
  37. package/dist/config.d.mts +1 -1
  38. package/dist/config__config-types.d.mts +1 -1
  39. package/dist/contract-authoring.d.mts +4 -4
  40. package/dist/contract-authoring.mjs +3 -3
  41. package/dist/{contract-validation-error-DEiWp_EI-CRwtUgRw.mjs → contract-validation-error-CAnTGhkt-DSnujRaK.mjs} +6 -3
  42. package/dist/contract-validation-error-CAnTGhkt-DSnujRaK.mjs.map +1 -0
  43. package/dist/{contract-validation-error-R7cMoK04.d.mts → contract-validation-error-D1QAeOh5.d.mts} +4 -2
  44. package/dist/contract-validation-error-D1QAeOh5.d.mts.map +1 -0
  45. package/dist/contract.d.mts +2 -2
  46. package/dist/contract.mjs +3 -3
  47. package/dist/contract__contract-validation-error.d.mts +1 -1
  48. package/dist/contract__contract-validation-error.mjs +1 -1
  49. package/dist/contract__enum-accessor.d.mts +1 -1
  50. package/dist/contract__enum-accessor.mjs +1 -1
  51. package/dist/contract__validate-domain.mjs +1 -1
  52. package/dist/{control-DnVTy0uQ.mjs → control-5ocRB46M.mjs} +8 -17
  53. package/dist/control-5ocRB46M.mjs.map +1 -0
  54. package/dist/control-B7cfY071.d.mts +1 -0
  55. package/dist/{control-DiIVftDP.d.mts → control-Bp6XS6M2.d.mts} +10 -10
  56. package/dist/{control-DiIVftDP.d.mts.map → control-Bp6XS6M2.d.mts.map} +1 -1
  57. package/dist/{control-CVGlbj6c-DGRy_Odg.mjs → control-Bv8UK63M-D34GaTSa.mjs} +28 -15
  58. package/dist/control-Bv8UK63M-D34GaTSa.mjs.map +1 -0
  59. package/dist/{control-C11hV6zc-Bu4HR5MZ.d.mts → control-C_zs63JQ-BHMRNt82.d.mts} +5 -3
  60. package/dist/control-C_zs63JQ-BHMRNt82.d.mts.map +1 -0
  61. package/dist/data-type-Yz-2OZh--ZEUqit-7.mjs +253 -0
  62. package/dist/data-type-Yz-2OZh--ZEUqit-7.mjs.map +1 -0
  63. package/dist/{declarations-DuSbyF44-Bee8mK-C.mjs → declarations-DuSbyF44-DHxqQ1-X.mjs} +2 -2
  64. package/dist/{declarations-DuSbyF44-Bee8mK-C.mjs.map → declarations-DuSbyF44-DHxqQ1-X.mjs.map} +1 -1
  65. package/dist/{dist-BHoPlvHD.mjs → dist-D1f6xr7F.mjs} +4 -4
  66. package/dist/{dist-BHoPlvHD.mjs.map → dist-D1f6xr7F.mjs.map} +1 -1
  67. package/dist/emission-Cr-H5ooL.d.mts +2 -0
  68. package/dist/{emission-types-6eDWkqG7-C0x_EHcS.d.mts → emission-types-4eOAB7Fb-B-L5H9gM.d.mts} +4 -4
  69. package/dist/{emission-types-6eDWkqG7-C0x_EHcS.d.mts.map → emission-types-4eOAB7Fb-B-L5H9gM.d.mts.map} +1 -1
  70. package/dist/{enum-accessor-BTMiHs-n.mjs → enum-accessor-CAlX-HOl.mjs} +3 -3
  71. package/dist/enum-accessor-CAlX-HOl.mjs.map +1 -0
  72. package/dist/{enum-accessor-COww36Lu.d.mts → enum-accessor-GZPV-WpP.d.mts} +8 -4
  73. package/dist/enum-accessor-GZPV-WpP.d.mts.map +1 -0
  74. package/dist/errors.d.mts +4 -4
  75. package/dist/errors.mjs +3 -3
  76. package/dist/errors__control.d.mts +2 -2
  77. package/dist/errors__control.mjs +1 -1
  78. package/dist/errors__execution.d.mts +1 -1
  79. package/dist/errors__execution.mjs +1 -1
  80. package/dist/errors__migration.d.mts +1 -1
  81. package/dist/errors__migration.mjs +1 -1
  82. package/dist/{execution-BPjhu9gV.d.mts → execution-A4CaEPHk.d.mts} +3 -3
  83. package/dist/{execution-BPjhu9gV.d.mts.map → execution-A4CaEPHk.d.mts.map} +1 -1
  84. package/dist/{execution-BIqac9cC.mjs → execution-D_qcNa8s.mjs} +2 -2
  85. package/dist/{execution-BIqac9cC.mjs.map → execution-D_qcNa8s.mjs.map} +1 -1
  86. package/dist/{execution-5GwMfE3u.d.mts → execution-Db6roA4O.d.mts} +2 -2
  87. package/dist/{execution-5GwMfE3u.d.mts.map → execution-Db6roA4O.d.mts.map} +1 -1
  88. package/dist/{framework-authoring-D6Z2kyE8-B8GVWZ59.d.mts → framework-authoring-BYuHgXo6-BtKlRo4a.d.mts} +9 -24
  89. package/dist/{framework-authoring-D6Z2kyE8-B8GVWZ59.d.mts.map → framework-authoring-BYuHgXo6-BtKlRo4a.d.mts.map} +1 -1
  90. package/dist/{framework-components-DhrgvP2z-B_XzMVzi.d.mts → framework-components-D_QZgxzO-D4b6r8ne.d.mts} +5 -5
  91. package/dist/{framework-components-DhrgvP2z-B_XzMVzi.d.mts.map → framework-components-D_QZgxzO-D4b6r8ne.d.mts.map} +1 -1
  92. package/dist/ids.d.mts +1 -1
  93. package/dist/{index-wEX7G1Bv.d.mts → index-MU-ksXsh.d.mts} +4 -4
  94. package/dist/{index-wEX7G1Bv.d.mts.map → index-MU-ksXsh.d.mts.map} +1 -1
  95. package/dist/ir-uDGU9vaj.mjs.map +1 -1
  96. package/dist/{migration-BdFXgvxm.mjs → migration-BpjWKFc_.mjs} +2 -3
  97. package/dist/migration-BpjWKFc_.mjs.map +1 -0
  98. package/dist/{migration-IroycW9a.d.mts → migration-ClwEv4nY.d.mts} +2 -2
  99. package/dist/{migration-IroycW9a.d.mts.map → migration-ClwEv4nY.d.mts.map} +1 -1
  100. package/dist/{parse-BxcaGLV1-yhRJIgS-.mjs → parse-BxcaGLV1-CDTwA5qF.mjs} +2 -2
  101. package/dist/{parse-BxcaGLV1-yhRJIgS-.mjs.map → parse-BxcaGLV1-CDTwA5qF.mjs.map} +1 -1
  102. package/dist/{parse-CJtBvEYy-QAuABAmw.d.mts → parse-CJtBvEYy-b7iSU0ii.d.mts} +6 -6
  103. package/dist/{parse-CJtBvEYy-QAuABAmw.d.mts.map → parse-CJtBvEYy-b7iSU0ii.d.mts.map} +1 -1
  104. package/dist/{psl-ast-xH8q-IMy-BGt6Xtfb.d.mts → psl-ast-3tk7lIrz-u_05BsIo.d.mts} +3 -3
  105. package/dist/{psl-ast-xH8q-IMy-BGt6Xtfb.d.mts.map → psl-ast-3tk7lIrz-u_05BsIo.d.mts.map} +1 -1
  106. package/dist/psl-ast-DIzWPqtl.d.mts +2 -0
  107. package/dist/psl-parser.d.mts +12 -10
  108. package/dist/psl-parser.d.mts.map +1 -1
  109. package/dist/psl-parser.mjs +20 -12
  110. package/dist/psl-parser.mjs.map +1 -1
  111. package/dist/psl-parser__format.d.mts +1 -1
  112. package/dist/psl-parser__format.mjs +2 -2
  113. package/dist/psl-parser__interpret.d.mts +6 -6
  114. package/dist/psl-parser__interpret.mjs +1 -1
  115. package/dist/psl-parser__syntax.d.mts +1 -1
  116. package/dist/psl-parser__syntax.mjs +2 -2
  117. package/dist/psl-printer.d.mts +4 -4
  118. package/dist/psl-printer.mjs +1 -1
  119. package/dist/{runtime-DXJoMikC.d.mts → runtime-_W8nv8Vz.d.mts} +2 -2
  120. package/dist/{runtime-DXJoMikC.d.mts.map → runtime-_W8nv8Vz.d.mts.map} +1 -1
  121. package/dist/{temporal-presets-DEyPX8qQ-Bz4DdZ8v.mjs → temporal-presets-CFRgwfiR-QTpEltz4.mjs} +5 -21
  122. package/dist/temporal-presets-CFRgwfiR-QTpEltz4.mjs.map +1 -0
  123. package/dist/ts-render.d.mts +1 -1
  124. package/dist/ts-render.mjs +1 -1
  125. package/dist/{types-import-spec-DkCibt5c-eWXsW3y_.d.mts → types-import-spec-BlKcW9tz-BxhTG7Oc.d.mts} +5 -5
  126. package/dist/types-import-spec-BlKcW9tz-BxhTG7Oc.d.mts.map +1 -0
  127. package/dist/{validate-domain-Yvt64F2p.mjs → validate-domain-CbXHDYpF.mjs} +2 -2
  128. package/dist/{validate-domain-Yvt64F2p.mjs.map → validate-domain-CbXHDYpF.mjs.map} +1 -1
  129. package/dist/{written-value-Cux5g-EZ-Bqapydv4.d.mts → written-value-Dio_n0HT-CgpcE2lf.d.mts} +23 -18
  130. package/dist/written-value-Dio_n0HT-CgpcE2lf.d.mts.map +1 -0
  131. package/package.json +15 -15
  132. package/dist/authoring-CdcF6V47.mjs.map +0 -1
  133. package/dist/codec-B6f31GrC.mjs +0 -135
  134. package/dist/codec-B6f31GrC.mjs.map +0 -1
  135. package/dist/codec-C50y5KJD.d.mts.map +0 -1
  136. package/dist/codec-descriptor-cZ8iVRuw-Cfsd42-8.mjs +0 -42
  137. package/dist/codec-descriptor-cZ8iVRuw-Cfsd42-8.mjs.map +0 -1
  138. package/dist/codec-types-BsE6wCHK-Dpx-WFJ2.d.mts.map +0 -1
  139. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +0 -1
  140. package/dist/contract-validation-error-R7cMoK04.d.mts.map +0 -1
  141. package/dist/control-C11hV6zc-Bu4HR5MZ.d.mts.map +0 -1
  142. package/dist/control-CGf1ZZbx.d.mts +0 -1
  143. package/dist/control-CVGlbj6c-DGRy_Odg.mjs.map +0 -1
  144. package/dist/control-DnVTy0uQ.mjs.map +0 -1
  145. package/dist/data-type-PGFGVtmU-DeoZ2KIb.mjs +0 -106
  146. package/dist/data-type-PGFGVtmU-DeoZ2KIb.mjs.map +0 -1
  147. package/dist/emission-BSYl5A1j.d.mts +0 -2
  148. package/dist/enum-accessor-BTMiHs-n.mjs.map +0 -1
  149. package/dist/enum-accessor-COww36Lu.d.mts.map +0 -1
  150. package/dist/migration-BdFXgvxm.mjs.map +0 -1
  151. package/dist/psl-ast-nSJQBZ1d.d.mts +0 -2
  152. package/dist/temporal-presets-DEyPX8qQ-Bz4DdZ8v.mjs.map +0 -1
  153. package/dist/types-import-spec-DkCibt5c-eWXsW3y_.d.mts.map +0 -1
  154. package/dist/written-value-Cux5g-EZ-Bqapydv4.d.mts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dist-BHoPlvHD.mjs","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.mjs"],"sourcesContent":["import { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/ts-string-literal.ts\n/**\n* Renders a string as a TypeScript source-text literal.\n*\n* `JSON.stringify` already escapes quotes, backslashes, and control characters\n* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy\n* parsers treat as line terminators, and DEL (U+007F), which is invisible, so\n* those are escaped explicitly.\n*\n* Used for both value literals (`jsonToTsSource`) and type-level literals /\n* property keys (the contract emitter), so a physical name that a store admits\n* as a quoted identifier but TypeScript does not admit bare renders the same\n* way everywhere.\n*/\nfunction tsStringLiteral(value) {\n\treturn JSON.stringify(value).replace(/\\u2028/g, \"\\\\u2028\").replace(/\\u2029/g, \"\\\\u2029\").replace(/\\u007f/g, \"\\\\x7f\");\n}\n/**\n* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote\n* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,\n* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.\n*/\nfunction tsQuotedTextSource(text) {\n\tif (!(text.includes(\"'\") && text.includes(\"\\\"\")) || needsEscapeSequence(text)) return tsStringLiteral(text);\n\treturn `\\`${tsTemplateText(text)}\\``;\n}\n/** `text` escaped for the inside of a TypeScript template literal: `\\`, a backtick and `${` are escaped; nothing else is. */\nfunction tsTemplateText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\");\n}\nfunction needsEscapeSequence(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/json-to-ts-source.ts\n/**\n* Pure JSON-to-TypeScript-source printer.\n*\n* This module is the second stage of the codec → TS pipeline:\n*\n* jsValue → codec.encodeJson → JsonValue → jsonToTsSource → TS source text\n*\n* Stage 1 (`codec.encodeJson`) is a codec responsibility — date serialization,\n* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2\n* (this module) is a pure JSON-to-TS printer that must never grow type-specific\n* branches.\n*\n* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it\n* through the relevant codec's `encodeJson` first. Adding special cases to\n* this file is not the answer — that's what codecs are for.\n*\n* The file also exports `tsObjectSource` and `tsArraySource`, the object and\n* array layouts `jsonToTsSource` uses, for callers that render some values\n* themselves.\n*/\n/**\n* Render a JSON-compatible value as a TypeScript source-text literal.\n*\n* Accepts `unknown` for ergonomics with structural types (e.g. `ColumnSpec`,\n* `ForeignKeySpec`) whose fields are all JSON-compatible but whose interfaces\n* lack the index signature TypeScript requires for `JsonObject` assignability.\n* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.\n*/\nfunction jsonToTsSource(value) {\n\tif (value === void 0) return \"undefined\";\n\tif (value === null) return \"null\";\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n\tif (Array.isArray(value)) return tsArraySource(value.map((v) => jsonToTsSource(v)));\n\tif (typeof value === \"object\") return tsObjectSource(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, jsonToTsSource(v)]));\n\tthrow new InternalError(`jsonToTsSource: unsupported value type \"${typeof value}\"`);\n}\n/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */\nfunction tsObjectSource(entries) {\n\tif (entries.length === 0) return \"{}\";\n\tconst items = entries.map(([key, source]) => `${renderKey(key)}: ${source}`);\n\tconst singleLine = `{ ${items.join(\", \")} }`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `{\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n}`;\n}\n/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */\nfunction tsArraySource(items) {\n\tif (items.length === 0) return \"[]\";\n\tconst singleLine = `[${items.join(\", \")}]`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `[\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n]`;\n}\nfunction renderKey(key) {\n\tif (key === \"__proto__\") return tsStringLiteral(key);\n\treturn /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/render-imports.ts\n/**\n* Render an aggregated `import` block from a flat list of\n* `ImportRequirement`s. Each target's migration renderer collects\n* requirements polymorphically from its call nodes and pipes them here.\n*\n* The emitter invariants:\n*\n* - **Usually one line per module specifier.** Named imports are aggregated\n* and emitted sorted; a single default symbol is combined onto the same\n* line when attributes agree (`import def, { a, b } from \"m\";`). Aliased\n* symbols render `symbol as alias`. When every symbol for a module is\n* `typeOnly`, the statement collapses to `import type { … }`; a module\n* mixing value and type symbols prefixes the type-only ones\n* (`import { type T, v }`). Exceptions that split into multiple lines: a\n* fully type-only statement with both a default and one or more named\n* bindings (`import type D from \"m\";` then `import type { N } from \"m\";`,\n* because TypeScript rejects `import type D, { N } from \"m\"` — TS1363),\n* and multiple distinct default symbols (see below).\n* - **Multiple distinct default symbols per module are allowed.** JS permits\n* re-importing the same specifier under different default-binding names\n* (`import a from 'm'; import b from 'm';`), so each distinct default\n* symbol renders its own `import` line, sorted alphabetically; a repeated\n* requirement for the same symbol still collapses into one binding,\n* merging `typeOnly` by AND.\n* - **Attribute unanimity per module.** All requirements for the same\n* module specifier must carry the same (or no) `attributes` map.\n* Divergent attribute maps throw — they can't collapse to one line\n* and there's no user-resolvable recovery at this layer.\n* - **Distinct (symbol, alias) pairs are distinct bindings.** TypeScript\n* permits importing the same export under multiple local names, so\n* `{ A }` + `{ A as B }` renders as `import { A, A as B } from \"m\"` and\n* `{ A as B }` + `{ A as C }` renders as `import { A as B, A as C } from \"m\"`.\n* Truly identical `(symbol, alias)` pairs still collapse to one binding,\n* merging `typeOnly` by AND.\n* - **Deterministic ordering.** Modules are emitted sorted by specifier;\n* within a module, named bindings are emitted sorted by `(symbol, alias)`\n* using JavaScript code-unit comparison, with the un-aliased form (no\n* alias) treated as alias `\"\"` so it sorts before any aliased form of the\n* same symbol.\n*\n* Returns a string containing one or more import lines per module (see the\n* splitting exceptions above), joined by `\\n` (no trailing newline). An\n* empty requirement list returns `\"\"`.\n*/\nfunction renderImports(requirements) {\n\treturn [...aggregateByModule(requirements).entries()].sort(([a], [b]) => a.localeCompare(b)).map(([moduleSpecifier, group]) => renderModuleImport(moduleSpecifier, group)).join(\"\\n\");\n}\nfunction aggregateByModule(requirements) {\n\tconst byModule = /* @__PURE__ */ new Map();\n\tfor (const req of requirements) {\n\t\tlet group = byModule.get(req.moduleSpecifier);\n\t\tif (!group) {\n\t\t\tgroup = {\n\t\t\t\tnamed: /* @__PURE__ */ new Map(),\n\t\t\t\tdefaults: /* @__PURE__ */ new Map(),\n\t\t\t\tattributes: null,\n\t\t\t\tattributesSet: false\n\t\t\t};\n\t\t\tbyModule.set(req.moduleSpecifier, group);\n\t\t}\n\t\tmergeRequirementIntoGroup(req, group);\n\t}\n\treturn byModule;\n}\nfunction mergeRequirementIntoGroup(req, group) {\n\tconst kind = req.kind ?? \"named\";\n\tconst typeOnly = req.typeOnly === true;\n\tif (kind === \"default\") {\n\t\tconst existingTypeOnly = group.defaults.get(req.symbol);\n\t\tgroup.defaults.set(req.symbol, existingTypeOnly === void 0 ? typeOnly : existingTypeOnly && typeOnly);\n\t} else {\n\t\tconst alias = req.alias && req.alias !== req.symbol ? req.alias : null;\n\t\tconst key = namedBindingKey(req.symbol, alias);\n\t\tconst existing = group.named.get(key);\n\t\tif (existing) existing.typeOnly = existing.typeOnly && typeOnly;\n\t\telse group.named.set(key, {\n\t\t\tsymbol: req.symbol,\n\t\t\talias,\n\t\t\ttypeOnly\n\t\t});\n\t}\n\tmergeAttributes(req, group);\n}\nfunction mergeAttributes(req, group) {\n\tconst incoming = req.attributes ?? null;\n\tif (!group.attributesSet) {\n\t\tgroup.attributes = incoming;\n\t\tgroup.attributesSet = true;\n\t\treturn;\n\t}\n\tif (!attributesEqual(group.attributes, incoming)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Conflicting import attributes for module \"${req.moduleSpecifier}\": ${stringifyAttributes(group.attributes)} vs ${stringifyAttributes(incoming)}.`, { meta: { moduleSpecifier: req.moduleSpecifier } });\n}\nfunction attributesEqual(a, b) {\n\tif (a === b) return true;\n\tif (a === null || b === null) return false;\n\tconst aKeys = Object.keys(a).sort();\n\tconst bKeys = Object.keys(b).sort();\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i++) {\n\t\tconst key = aKeys[i];\n\t\tif (key !== bKeys[i]) return false;\n\t\tif (a[key] !== b[key]) return false;\n\t}\n\treturn true;\n}\nfunction stringifyAttributes(attrs) {\n\tif (attrs === null) return \"(none)\";\n\treturn `{ ${Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join(\", \")} }`;\n}\nfunction renderModuleImport(moduleSpecifier, group) {\n\tconst attrs = buildAttributesClause(group.attributes);\n\tconst defaultEntries = [...group.defaults.entries()].sort(([a], [b]) => a.localeCompare(b));\n\tconst hasNamed = group.named.size > 0;\n\tif (defaultEntries.length > 1) {\n\t\tconst defaultLines = defaultEntries.map(([symbol, typeOnly]) => `import ${typeOnly ? \"type \" : \"\"}${symbol} from '${moduleSpecifier}'${attrs};`);\n\t\tif (!hasNamed) return defaultLines.join(\"\\n\");\n\t\treturn [...defaultLines, renderNamedOnlyStatement(moduleSpecifier, group, attrs)].join(\"\\n\");\n\t}\n\tconst defaultEntry = defaultEntries[0];\n\tconst hasDefault = defaultEntry !== void 0;\n\tconst [defaultSymbol, defaultTypeOnly] = defaultEntry ?? [null, true];\n\tconst typeOnlyStatement = isStatementTypeOnly(hasDefault, defaultTypeOnly, group);\n\tif (typeOnlyStatement && hasDefault && hasNamed) return `${`import type ${defaultSymbol} from '${moduleSpecifier}'${attrs};`}\\n${`import type { ${renderNamedBindingsList(group, true)} } from '${moduleSpecifier}'${attrs};`}`;\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} ${buildImportClause(defaultSymbol, group, typeOnlyStatement)} from '${moduleSpecifier}'${attrs};`;\n}\nfunction renderNamedOnlyStatement(moduleSpecifier, group, attrs) {\n\tconst typeOnlyStatement = [...group.named.values()].every((binding) => binding.typeOnly);\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} { ${renderNamedBindingsList(group, typeOnlyStatement)} } from '${moduleSpecifier}'${attrs};`;\n}\nfunction isStatementTypeOnly(hasDefault, defaultTypeOnly, group) {\n\tconst hasNamed = group.named.size > 0;\n\tif (!hasDefault && !hasNamed) return false;\n\tif (hasDefault && !defaultTypeOnly) return false;\n\tfor (const binding of group.named.values()) if (!binding.typeOnly) return false;\n\treturn true;\n}\nfunction buildImportClause(defaultSymbol, group, statementTypeOnly) {\n\tconst hasNamed = group.named.size > 0;\n\tconst hasDefault = defaultSymbol !== null;\n\tconst namedClause = hasNamed ? renderNamedBindingsList(group, statementTypeOnly) : \"\";\n\tif (hasDefault && hasNamed) return `${defaultSymbol}, { ${namedClause} }`;\n\tif (hasDefault) return defaultSymbol;\n\treturn `{ ${namedClause} }`;\n}\nfunction renderNamedBindingsList(group, statementTypeOnly) {\n\treturn [...group.named.values()].sort(compareNamedBindings).map((binding) => renderNamedBinding(binding, statementTypeOnly)).join(\", \");\n}\nfunction compareNamedBindings(a, b) {\n\tif (a.symbol !== b.symbol) return a.symbol < b.symbol ? -1 : 1;\n\tconst aAlias = a.alias ?? \"\";\n\tconst bAlias = b.alias ?? \"\";\n\tif (aAlias === bAlias) return 0;\n\treturn aAlias < bAlias ? -1 : 1;\n}\nfunction namedBindingKey(symbol, alias) {\n\treturn `${symbol}\\x00${alias ?? \"\"}`;\n}\nfunction renderNamedBinding(binding, statementTypeOnly) {\n\tconst prefix = !statementTypeOnly && binding.typeOnly ? \"type \" : \"\";\n\tconst aliasClause = binding.alias !== null ? ` as ${binding.alias}` : \"\";\n\treturn `${prefix}${binding.symbol}${aliasClause}`;\n}\nfunction buildAttributesClause(attrs) {\n\tif (attrs === null) return \"\";\n\tconst entries = Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`);\n\tif (entries.length === 0) return \"\";\n\treturn ` with { ${entries.join(\", \")} }`;\n}\n//#endregion\n//#region src/ts-expression.ts\n/**\n* Abstract base class for any IR node that can be emitted as a TypeScript\n* expression and declare its own import requirements.\n*\n* A top-level renderer walks an array of these polymorphically, concatenates\n* `renderTypeScript()` results, and aggregates `importRequirements()` into a\n* deduplicated import block.\n*/\nvar TsExpression = class {};\n//#endregion\nexport { TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral, tsTemplateText };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,KAAK,UAAU,KAAK,CAAC,C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AAoB,CAAC,CAAC,KAAK,YAAY,mBAAmB,SAAS,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI;AACvI;AACA,SAAS,qBAAqB,GAAG,GAAG;CACnC,IAAI,EAAE,WAAW,EAAE,QAAQ,OAAO,EAAE,SAAS,EAAE,SAAS,KAAK;CAC7D,MAAM,SAAS,EAAE,SAAS;CAC1B,MAAM,SAAS,EAAE,SAAS;CAC1B,IAAI,WAAW,QAAQ,OAAO;CAC9B,OAAO,SAAS,SAAS,KAAK;AAC/B;AACA,SAAS,gBAAgB,QAAQ,OAAO;CACvC,OAAO,GAAG,OAAO,MAAM,SAAS;AACjC;AACA,SAAS,mBAAmB,SAAS,mBAAmB;CACvD,MAAM,SAAS,CAAC,qBAAqB,QAAQ,WAAW,UAAU;CAClE,MAAM,cAAc,QAAQ,UAAU,OAAO,OAAO,QAAQ,UAAU;CACtE,OAAO,GAAG,SAAS,QAAQ,SAAS;AACrC;AACA,SAAS,sBAAsB,OAAO;CACrC,IAAI,UAAU,MAAM,OAAO;CAC3B,MAAM,UAAU,OAAO,QAAQ,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,EAAE,IAAI,KAAK,UAAU,CAAC,GAAG;CACzH,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,OAAO,WAAW,QAAQ,KAAK,IAAI,EAAE;AACtC;;;;;;;;;AAWA,IAAI,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"dist-D1f6xr7F.mjs","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.mjs"],"sourcesContent":["import { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/ts-string-literal.ts\n/**\n* Renders a string as a TypeScript source-text literal.\n*\n* `JSON.stringify` already escapes quotes, backslashes, and control characters\n* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy\n* parsers treat as line terminators, and DEL (U+007F), which is invisible, so\n* those are escaped explicitly.\n*\n* Used for both value literals (`jsonToTsSource`) and type-level literals /\n* property keys (the contract emitter), so a physical name that a store admits\n* as a quoted identifier but TypeScript does not admit bare renders the same\n* way everywhere.\n*/\nfunction tsStringLiteral(value) {\n\treturn JSON.stringify(value).replace(/\\u2028/g, \"\\\\u2028\").replace(/\\u2029/g, \"\\\\u2029\").replace(/\\u007f/g, \"\\\\x7f\");\n}\n/**\n* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote\n* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,\n* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.\n*/\nfunction tsQuotedTextSource(text) {\n\tif (!(text.includes(\"'\") && text.includes(\"\\\"\")) || needsEscapeSequence(text)) return tsStringLiteral(text);\n\treturn `\\`${tsTemplateText(text)}\\``;\n}\n/** `text` escaped for the inside of a TypeScript template literal: `\\`, a backtick and `${` are escaped; nothing else is. */\nfunction tsTemplateText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\");\n}\nfunction needsEscapeSequence(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/json-to-ts-source.ts\n/**\n* Pure JSON-to-TypeScript-source printer.\n*\n* This module is the second stage of the codec → TS pipeline:\n*\n* jsValue → codec.toDataTypeValue → JsonValue → jsonToTsSource → TS source text\n*\n* Stage 1 (`codec.toDataTypeValue`, whose value holds the stored JSON) is a codec and data type responsibility — date serialization,\n* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2\n* (this module) is a pure JSON-to-TS printer that must never grow type-specific\n* branches.\n*\n* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it\n* through the relevant codec's `toDataTypeValue` first. Adding special cases to\n* this file is not the answer — that's what codecs are for.\n*\n* The file also exports `tsObjectSource` and `tsArraySource`, the object and\n* array layouts `jsonToTsSource` uses, for callers that render some values\n* themselves.\n*/\n/**\n* Render a JSON-compatible value as a TypeScript source-text literal.\n*\n* Accepts `unknown` for ergonomics with structural types (e.g. `ColumnSpec`,\n* `ForeignKeySpec`) whose fields are all JSON-compatible but whose interfaces\n* lack the index signature TypeScript requires for `JsonObject` assignability.\n* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.\n*/\nfunction jsonToTsSource(value) {\n\tif (value === void 0) return \"undefined\";\n\tif (value === null) return \"null\";\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n\tif (Array.isArray(value)) return tsArraySource(value.map((v) => jsonToTsSource(v)));\n\tif (typeof value === \"object\") return tsObjectSource(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, jsonToTsSource(v)]));\n\tthrow new InternalError(`jsonToTsSource: unsupported value type \"${typeof value}\"`);\n}\n/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */\nfunction tsObjectSource(entries) {\n\tif (entries.length === 0) return \"{}\";\n\tconst items = entries.map(([key, source]) => `${renderKey(key)}: ${source}`);\n\tconst singleLine = `{ ${items.join(\", \")} }`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `{\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n}`;\n}\n/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */\nfunction tsArraySource(items) {\n\tif (items.length === 0) return \"[]\";\n\tconst singleLine = `[${items.join(\", \")}]`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `[\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n]`;\n}\nfunction renderKey(key) {\n\tif (key === \"__proto__\") return tsStringLiteral(key);\n\treturn /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/render-imports.ts\n/**\n* Render an aggregated `import` block from a flat list of\n* `ImportRequirement`s. Each target's migration renderer collects\n* requirements polymorphically from its call nodes and pipes them here.\n*\n* The emitter invariants:\n*\n* - **Usually one line per module specifier.** Named imports are aggregated\n* and emitted sorted; a single default symbol is combined onto the same\n* line when attributes agree (`import def, { a, b } from \"m\";`). Aliased\n* symbols render `symbol as alias`. When every symbol for a module is\n* `typeOnly`, the statement collapses to `import type { … }`; a module\n* mixing value and type symbols prefixes the type-only ones\n* (`import { type T, v }`). Exceptions that split into multiple lines: a\n* fully type-only statement with both a default and one or more named\n* bindings (`import type D from \"m\";` then `import type { N } from \"m\";`,\n* because TypeScript rejects `import type D, { N } from \"m\"` — TS1363),\n* and multiple distinct default symbols (see below).\n* - **Multiple distinct default symbols per module are allowed.** JS permits\n* re-importing the same specifier under different default-binding names\n* (`import a from 'm'; import b from 'm';`), so each distinct default\n* symbol renders its own `import` line, sorted alphabetically; a repeated\n* requirement for the same symbol still collapses into one binding,\n* merging `typeOnly` by AND.\n* - **Attribute unanimity per module.** All requirements for the same\n* module specifier must carry the same (or no) `attributes` map.\n* Divergent attribute maps throw — they can't collapse to one line\n* and there's no user-resolvable recovery at this layer.\n* - **Distinct (symbol, alias) pairs are distinct bindings.** TypeScript\n* permits importing the same export under multiple local names, so\n* `{ A }` + `{ A as B }` renders as `import { A, A as B } from \"m\"` and\n* `{ A as B }` + `{ A as C }` renders as `import { A as B, A as C } from \"m\"`.\n* Truly identical `(symbol, alias)` pairs still collapse to one binding,\n* merging `typeOnly` by AND.\n* - **Deterministic ordering.** Modules are emitted sorted by specifier;\n* within a module, named bindings are emitted sorted by `(symbol, alias)`\n* using JavaScript code-unit comparison, with the un-aliased form (no\n* alias) treated as alias `\"\"` so it sorts before any aliased form of the\n* same symbol.\n*\n* Returns a string containing one or more import lines per module (see the\n* splitting exceptions above), joined by `\\n` (no trailing newline). An\n* empty requirement list returns `\"\"`.\n*/\nfunction renderImports(requirements) {\n\treturn [...aggregateByModule(requirements).entries()].sort(([a], [b]) => a.localeCompare(b)).map(([moduleSpecifier, group]) => renderModuleImport(moduleSpecifier, group)).join(\"\\n\");\n}\nfunction aggregateByModule(requirements) {\n\tconst byModule = /* @__PURE__ */ new Map();\n\tfor (const req of requirements) {\n\t\tlet group = byModule.get(req.moduleSpecifier);\n\t\tif (!group) {\n\t\t\tgroup = {\n\t\t\t\tnamed: /* @__PURE__ */ new Map(),\n\t\t\t\tdefaults: /* @__PURE__ */ new Map(),\n\t\t\t\tattributes: null,\n\t\t\t\tattributesSet: false\n\t\t\t};\n\t\t\tbyModule.set(req.moduleSpecifier, group);\n\t\t}\n\t\tmergeRequirementIntoGroup(req, group);\n\t}\n\treturn byModule;\n}\nfunction mergeRequirementIntoGroup(req, group) {\n\tconst kind = req.kind ?? \"named\";\n\tconst typeOnly = req.typeOnly === true;\n\tif (kind === \"default\") {\n\t\tconst existingTypeOnly = group.defaults.get(req.symbol);\n\t\tgroup.defaults.set(req.symbol, existingTypeOnly === void 0 ? typeOnly : existingTypeOnly && typeOnly);\n\t} else {\n\t\tconst alias = req.alias && req.alias !== req.symbol ? req.alias : null;\n\t\tconst key = namedBindingKey(req.symbol, alias);\n\t\tconst existing = group.named.get(key);\n\t\tif (existing) existing.typeOnly = existing.typeOnly && typeOnly;\n\t\telse group.named.set(key, {\n\t\t\tsymbol: req.symbol,\n\t\t\talias,\n\t\t\ttypeOnly\n\t\t});\n\t}\n\tmergeAttributes(req, group);\n}\nfunction mergeAttributes(req, group) {\n\tconst incoming = req.attributes ?? null;\n\tif (!group.attributesSet) {\n\t\tgroup.attributes = incoming;\n\t\tgroup.attributesSet = true;\n\t\treturn;\n\t}\n\tif (!attributesEqual(group.attributes, incoming)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Conflicting import attributes for module \"${req.moduleSpecifier}\": ${stringifyAttributes(group.attributes)} vs ${stringifyAttributes(incoming)}.`, { meta: { moduleSpecifier: req.moduleSpecifier } });\n}\nfunction attributesEqual(a, b) {\n\tif (a === b) return true;\n\tif (a === null || b === null) return false;\n\tconst aKeys = Object.keys(a).sort();\n\tconst bKeys = Object.keys(b).sort();\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i++) {\n\t\tconst key = aKeys[i];\n\t\tif (key !== bKeys[i]) return false;\n\t\tif (a[key] !== b[key]) return false;\n\t}\n\treturn true;\n}\nfunction stringifyAttributes(attrs) {\n\tif (attrs === null) return \"(none)\";\n\treturn `{ ${Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join(\", \")} }`;\n}\nfunction renderModuleImport(moduleSpecifier, group) {\n\tconst attrs = buildAttributesClause(group.attributes);\n\tconst defaultEntries = [...group.defaults.entries()].sort(([a], [b]) => a.localeCompare(b));\n\tconst hasNamed = group.named.size > 0;\n\tif (defaultEntries.length > 1) {\n\t\tconst defaultLines = defaultEntries.map(([symbol, typeOnly]) => `import ${typeOnly ? \"type \" : \"\"}${symbol} from '${moduleSpecifier}'${attrs};`);\n\t\tif (!hasNamed) return defaultLines.join(\"\\n\");\n\t\treturn [...defaultLines, renderNamedOnlyStatement(moduleSpecifier, group, attrs)].join(\"\\n\");\n\t}\n\tconst defaultEntry = defaultEntries[0];\n\tconst hasDefault = defaultEntry !== void 0;\n\tconst [defaultSymbol, defaultTypeOnly] = defaultEntry ?? [null, true];\n\tconst typeOnlyStatement = isStatementTypeOnly(hasDefault, defaultTypeOnly, group);\n\tif (typeOnlyStatement && hasDefault && hasNamed) return `${`import type ${defaultSymbol} from '${moduleSpecifier}'${attrs};`}\\n${`import type { ${renderNamedBindingsList(group, true)} } from '${moduleSpecifier}'${attrs};`}`;\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} ${buildImportClause(defaultSymbol, group, typeOnlyStatement)} from '${moduleSpecifier}'${attrs};`;\n}\nfunction renderNamedOnlyStatement(moduleSpecifier, group, attrs) {\n\tconst typeOnlyStatement = [...group.named.values()].every((binding) => binding.typeOnly);\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} { ${renderNamedBindingsList(group, typeOnlyStatement)} } from '${moduleSpecifier}'${attrs};`;\n}\nfunction isStatementTypeOnly(hasDefault, defaultTypeOnly, group) {\n\tconst hasNamed = group.named.size > 0;\n\tif (!hasDefault && !hasNamed) return false;\n\tif (hasDefault && !defaultTypeOnly) return false;\n\tfor (const binding of group.named.values()) if (!binding.typeOnly) return false;\n\treturn true;\n}\nfunction buildImportClause(defaultSymbol, group, statementTypeOnly) {\n\tconst hasNamed = group.named.size > 0;\n\tconst hasDefault = defaultSymbol !== null;\n\tconst namedClause = hasNamed ? renderNamedBindingsList(group, statementTypeOnly) : \"\";\n\tif (hasDefault && hasNamed) return `${defaultSymbol}, { ${namedClause} }`;\n\tif (hasDefault) return defaultSymbol;\n\treturn `{ ${namedClause} }`;\n}\nfunction renderNamedBindingsList(group, statementTypeOnly) {\n\treturn [...group.named.values()].sort(compareNamedBindings).map((binding) => renderNamedBinding(binding, statementTypeOnly)).join(\", \");\n}\nfunction compareNamedBindings(a, b) {\n\tif (a.symbol !== b.symbol) return a.symbol < b.symbol ? -1 : 1;\n\tconst aAlias = a.alias ?? \"\";\n\tconst bAlias = b.alias ?? \"\";\n\tif (aAlias === bAlias) return 0;\n\treturn aAlias < bAlias ? -1 : 1;\n}\nfunction namedBindingKey(symbol, alias) {\n\treturn `${symbol}\\x00${alias ?? \"\"}`;\n}\nfunction renderNamedBinding(binding, statementTypeOnly) {\n\tconst prefix = !statementTypeOnly && binding.typeOnly ? \"type \" : \"\";\n\tconst aliasClause = binding.alias !== null ? ` as ${binding.alias}` : \"\";\n\treturn `${prefix}${binding.symbol}${aliasClause}`;\n}\nfunction buildAttributesClause(attrs) {\n\tif (attrs === null) return \"\";\n\tconst entries = Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`);\n\tif (entries.length === 0) return \"\";\n\treturn ` with { ${entries.join(\", \")} }`;\n}\n//#endregion\n//#region src/ts-expression.ts\n/**\n* Abstract base class for any IR node that can be emitted as a TypeScript\n* expression and declare its own import requirements.\n*\n* A top-level renderer walks an array of these polymorphically, concatenates\n* `renderTypeScript()` results, and aggregates `importRequirements()` into a\n* deduplicated import block.\n*/\nvar TsExpression = class {};\n//#endregion\nexport { TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral, tsTemplateText };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,KAAK,UAAU,KAAK,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,OAAO;AACpH;;;;;;AAMA,SAAS,mBAAmB,MAAM;CACjC,IAAI,EAAE,KAAK,SAAS,GAAG,KAAK,KAAK,SAAS,IAAI,MAAM,oBAAoB,IAAI,GAAG,OAAO,gBAAgB,IAAI;CAC1G,OAAO,KAAK,eAAe,IAAI,EAAE;AAClC;;AAEA,SAAS,eAAe,MAAM;CAC7B,OAAO,KAAK,QAAQ,OAAO,MAAM,CAAC,CAAC,QAAQ,MAAM,KAAK,CAAC,CAAC,QAAQ,SAAS,MAAM;AAChF;AACA,SAAS,oBAAoB,MAAM;CAClC,KAAK,MAAM,QAAQ,MAAM;EACxB,MAAM,OAAO,KAAK,YAAY,CAAC,KAAK;EACpC,IAAI,OAAO,MAAM,SAAS,OAAO,SAAS,QAAQ,SAAS,QAAQ,QAAQ,SAAS,QAAQ,OAAO,OAAO;CAC3G;CACA,OAAO;AACR;;;;;;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MAAM,OAAO;CAC3B,MAAM,UAAU,OAAO,QAAQ,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,EAAE,IAAI,KAAK,UAAU,CAAC,GAAG;CACzH,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,OAAO,WAAW,QAAQ,KAAK,IAAI,EAAE;AACtC;;;;;;;;;AAWA,IAAI,eAAe,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ import "./types-import-spec-BlKcW9tz-BxhTG7Oc.mjs";
2
+ import "./emission-types-4eOAB7Fb-B-L5H9gM.mjs";
@@ -1,8 +1,8 @@
1
1
  import { B as JsonValue, g as ContractModelBase } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
2
  import { t as Contract } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
3
- import { f as CodecLookup, t as AnyCodecDescriptor } from "./codec-types-BsE6wCHK-Dpx-WFJ2.mjs";
4
- import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-DkCibt5c-eWXsW3y_.mjs";
5
- //#region ../../../1-framework/1-core/framework-components/dist/emission-types-6eDWkqG7.d.mts
3
+ import { f as CodecLookup, t as AnyCodecDescriptor } from "./codec-types-BNVa23xn-DLZmMFiC.mjs";
4
+ import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-BlKcW9tz-BxhTG7Oc.mjs";
5
+ //#region ../../../1-framework/1-core/framework-components/dist/emission-types-4eOAB7Fb.d.mts
6
6
  //#region src/shared/import-specifier-resolver.d.ts
7
7
  /**
8
8
  * Rewrites one module specifier for the import root a generated file is being
@@ -82,4 +82,4 @@ interface EmissionSpi {
82
82
  }
83
83
  //#endregion
84
84
  export { resolveRequirementSpecifiers as a, keepInternalSpecifiers as i, GenerateContractTypesOptions as n, ImportSpecifierResolver as r, EmissionSpi as t };
85
- //# sourceMappingURL=emission-types-6eDWkqG7-C0x_EHcS.d.mts.map
85
+ //# sourceMappingURL=emission-types-4eOAB7Fb-B-L5H9gM.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emission-types-6eDWkqG7-C0x_EHcS.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/emission-types-6eDWkqG7.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAcK,2BAA2B;;;;;;cAMlB,wBAAwB;;;;;;;;;;iBAUrB,6BAA6B;WACnC;GACR,uBAAuB,KAAK,UAAU,0BAA0B,MAAM,KAAK;WACnE;;;;UAID;WACC,4BAA4B,cAAc;;WAE1C,iCAAiC,cAAc;;;;WAI/C,uBAAuB,cAAc;WACrC,mBAAmB,cAAc;;;;WAIjC;;UAED;WACC;EACT,oBAAoB,UAAU,UAAU;EACxC,yBAAyB,mBAAmB,OAAO;;;;;;EAMnD,iBAAiB,wBAAwB;EACzC,qBAAqB,UAAU;EAC/B;EACA,mBAAmB,0BAA0B;;;;;;;EAO7C,sBAAsB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU;aACrF,wBAAwB;aACxB;;EAEX,uBAAuB,UAAU,UAAU,cAAc;;;;EAIzD,sBAAsB"}
1
+ {"version":3,"file":"emission-types-4eOAB7Fb-B-L5H9gM.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/emission-types-4eOAB7Fb.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAcK,2BAA2B;;;;;;cAMlB,wBAAwB;;;;;;;;;;iBAUrB,6BAA6B;WACnC;GACR,uBAAuB,KAAK,UAAU,0BAA0B,MAAM,KAAK;WACnE;;;;UAID;WACC,4BAA4B,cAAc;;WAE1C,iCAAiC,cAAc;;;;WAI/C,uBAAuB,cAAc;WACrC,mBAAmB,cAAc;;;;WAIjC;;UAED;WACC;EACT,oBAAoB,UAAU,UAAU;EACxC,yBAAyB,mBAAmB,OAAO;;;;;;EAMnD,iBAAiB,wBAAwB;EACzC,qBAAqB,UAAU;EAC/B;EACA,mBAAmB,0BAA0B;;;;;;;EAO7C,sBAAsB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU;aACrF,wBAAwB;aACxB;;EAEX,uBAAuB,UAAU,UAAU,cAAc;;;;EAIzD,sBAAsB"}
@@ -19,9 +19,9 @@ function isImmutable(value) {
19
19
  function createEnumAccessor(contractEnum, codec) {
20
20
  const read = (stored) => {
21
21
  const copy = structuredClone(stored);
22
- return codec === void 0 ? copy : codec.decodeJson(copy);
22
+ return codec === void 0 ? copy : codec.fromDataTypeValue(codec.dataType.fromContract(copy, {}));
23
23
  };
24
- const storedFormKey = (value) => canonicalStringify(codec === void 0 ? value : codec.encodeJson(value));
24
+ const storedFormKey = (value) => canonicalStringify(codec === void 0 ? value : codec.dataType.toContract(codec.toDataTypeValue(value)));
25
25
  const entries = contractEnum.members.map((member) => {
26
26
  const value = read(member.value);
27
27
  return {
@@ -106,4 +106,4 @@ function buildNamespacedEnums(domain, codecFor) {
106
106
  //#endregion
107
107
  export { buildNamespacedEnums as n, createEnumAccessor as r, buildEnumsMapForNamespace as t };
108
108
 
109
- //# sourceMappingURL=enum-accessor-BTMiHs-n.mjs.map
109
+ //# sourceMappingURL=enum-accessor-CAlX-HOl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-accessor-CAlX-HOl.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.mjs"],"sourcesContent":["import { canonicalStringify } from \"@internal/utils/canonical-stringify\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isInternalError } from \"@internal/utils/internal-error\";\n//#region src/enum-accessor.ts\nfunction isObject(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\nfunction kindOf(value) {\n\treturn Object.prototype.toString.call(value);\n}\nfunction isImmutable(value) {\n\tif (!isObject(value)) return true;\n\tif (value instanceof Date || value instanceof Uint8Array) return false;\n\treturn Object.isFrozen(value) || kindOf(value).startsWith(\"[object Temporal.\");\n}\n/**\n* Builds the accessor for one enum, decoding each member once. Each member holds the value `codec` reads from its stored form, which is the value a query returns. A primitive or immutable member is handed out as decoded; a mutable member is copied on every read, so changing a value read from the accessor leaves the enum unchanged. A value is a member when it equals one: a primitive by SameValueZero, an object by its `Object.prototype.toString` kind and the form `codec` stores it in, so two equal dates match. Without a codec, members are their stored forms.\n*/\nfunction createEnumAccessor(contractEnum, codec) {\n\tconst read = (stored) => {\n\t\tconst copy = structuredClone(stored);\n\t\treturn codec === void 0 ? copy : codec.fromDataTypeValue(codec.dataType.fromContract(copy, {}));\n\t};\n\tconst storedFormKey = (value) => canonicalStringify(codec === void 0 ? value : codec.dataType.toContract(codec.toDataTypeValue(value)));\n\tconst entries = contractEnum.members.map((member) => {\n\t\tconst value = read(member.value);\n\t\treturn {\n\t\t\tname: member.name,\n\t\t\tstored: member.value,\n\t\t\tvalue,\n\t\t\timmutable: isImmutable(value)\n\t\t};\n\t});\n\tconst copyOf = (entry) => {\n\t\tif (entry.immutable) return entry.value;\n\t\tif (entry.value instanceof Date) return new Date(entry.value.getTime());\n\t\tif (entry.value instanceof Uint8Array) return Uint8Array.from(entry.value);\n\t\treturn read(entry.stored);\n\t};\n\tconst names = Object.freeze(entries.map((entry) => entry.name));\n\tconst nameSet = Object.freeze(new Set(names));\n\tconst members = Object.freeze(Object.defineProperties({}, Object.fromEntries(entries.map((entry) => [entry.name, {\n\t\tenumerable: true,\n\t\tget: () => copyOf(entry)\n\t}]))));\n\tconst allImmutable = entries.every((entry) => entry.immutable);\n\tconst immutableValues = Object.freeze(entries.map((entry) => entry.value));\n\tconst primitiveOrdinals = /* @__PURE__ */ new Map();\n\tconst objectOrdinals = /* @__PURE__ */ new Map();\n\tentries.forEach((entry, ordinal) => {\n\t\tif (isObject(entry.value)) objectOrdinals.set(storedFormKey(entry.value), ordinal);\n\t\telse primitiveOrdinals.set(entry.value, ordinal);\n\t});\n\tconst ordinalOf = (v) => {\n\t\tif (!isObject(v)) return primitiveOrdinals.get(v) ?? -1;\n\t\tlet key;\n\t\ttry {\n\t\t\tkey = storedFormKey(v);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn -1;\n\t\t}\n\t\tconst ordinal = objectOrdinals.get(key) ?? -1;\n\t\tconst member = entries[ordinal]?.value;\n\t\treturn isObject(member) && kindOf(member) === kindOf(v) ? ordinal : -1;\n\t};\n\treturn {\n\t\tget values() {\n\t\t\treturn allImmutable ? immutableValues : Object.freeze(entries.map(copyOf));\n\t\t},\n\t\tnames,\n\t\tmembers,\n\t\thas: (v) => ordinalOf(v) !== -1,\n\t\thasName: (name) => nameSet.has(name),\n\t\tnameOf: (v) => {\n\t\t\tconst ordinal = ordinalOf(v);\n\t\t\treturn ordinal === -1 ? void 0 : names[ordinal];\n\t\t},\n\t\tordinalOf\n\t};\n}\n/**\n* The accessors for one namespace's enums. Each enum's codec is resolved here, so a contract whose enum codec `codecFor` lacks fails now; its members are decoded when the enum is first read, so a codec that needs something the runtime lacks, such as `Temporal`, fails only then.\n*/\nfunction buildEnumsMapForNamespace(domain, namespaceId, codecFor) {\n\tconst result = {};\n\tconst namespace = domain.namespaces[namespaceId];\n\tif (namespace?.enum) for (const [name, contractEnum] of Object.entries(namespace.enum)) {\n\t\tconst codec = codecFor(contractEnum.codecId);\n\t\tlet accessor;\n\t\tObject.defineProperty(result, name, {\n\t\t\tenumerable: true,\n\t\t\tget: () => {\n\t\t\t\taccessor ??= createEnumAccessor(contractEnum, codec);\n\t\t\t\treturn accessor;\n\t\t\t}\n\t\t});\n\t}\n\treturn result;\n}\nfunction buildNamespacedEnums(domain, codecFor) {\n\tconst result = {};\n\tfor (const namespaceId of Object.keys(domain.namespaces)) result[namespaceId] = buildEnumsMapForNamespace(domain, namespaceId, codecFor);\n\treturn blindCast(result);\n}\n//#endregion\nexport { buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };\n\n//# sourceMappingURL=enum-accessor.mjs.map"],"mappings":";;;;AAIA,SAAS,SAAS,OAAO;CACxB,OAAO,OAAO,UA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iB,OAAO,QAAQ,UAAU,IAAI,GAAG;EACvF,MAAM,QAAQ,SAAS,aAAa,OAAO;EAC3C,IAAI;EACJ,OAAO,eAAe,QAAQ,MAAM;GACnC,YAAY;GACZ,WAAW;IACV,aAAa,mBAAmB,cAAc,KAAK;IACnD,OAAO;GACR;EACD,CAAC;CACF;CACA,OAAO;AACR;AACA,SAAS,qBAAqB,QAAQ,UAAU;CAC/C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,eAAe,OAAO,KAAK,OAAO,UAAU,GAAG,OAAO,eAAe,0BAA0B,QAAQ,aAAa,QAAQ;CACvI,OAAO,UAAU,MAAM;AACxB"}
@@ -3,11 +3,15 @@ import { t as Contract } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
3
3
  //#region ../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts
4
4
  //#region src/enum-accessor.d.ts
5
5
  /**
6
- * The two conversions of an enum's codec that its accessor uses: `decodeJson` reads a member's stored form as the value the application reads from the database, and `encodeJson` writes a value in its stored form, which is how values are compared.
6
+ * What an enum's accessor uses of its codec: the codec's data type reads a member's stored form as a value, which `fromDataTypeValue` turns into the value the application reads from the database; `toDataTypeValue` and the type's `toContract` write a value in its stored form, which is how values are compared.
7
7
  */
8
8
  interface EnumMemberCodec {
9
- decodeJson(json: JsonValue): unknown;
10
- encodeJson(value: unknown): JsonValue;
9
+ readonly dataType: {
10
+ fromContract(json: JsonValue, params: Readonly<Record<string, unknown>>): unknown;
11
+ toContract(value: unknown): JsonValue;
12
+ };
13
+ fromDataTypeValue(value: unknown): unknown;
14
+ toDataTypeValue(value: unknown): unknown;
11
15
  }
12
16
  /** The codec an enum's `codecId` names. */
13
17
  type EnumMemberCodecFor = (codecId: string) => EnumMemberCodec;
@@ -95,4 +99,4 @@ type NamespaceEnumAccessors<TContract extends Contract, NsId extends keyof TCont
95
99
  type NamespacedEnums<TContract extends Contract> = { readonly [Ns in keyof TContract['domain']['namespaces']]: NamespaceEnumAccessors<TContract, Ns>; };
96
100
  //#endregion
97
101
  export { EnumMemberCodecFor as a, NamespaceEnumAccessors as c, buildNamespacedEnums as d, createEnumAccessor as f, EnumMemberCodec as i, NamespacedEnums as l, EnumAccessor as n, EnumMemberNames as o, EnumEntriesToAccessors as r, EnumValues as s, ContractEnumAccessor as t, buildEnumsMapForNamespace as u };
98
- //# sourceMappingURL=enum-accessor-COww36Lu.d.mts.map
102
+ //# sourceMappingURL=enum-accessor-GZPV-WpP.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-accessor-GZPV-WpP.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts"],"mappings":";;;;;;;UAMU;WACC;IACP,aAAa,MAAM,WAAW,QAAQ,SAAS;IAC/C,WAAW,iBAAiB;;EAE9B,kBAAkB;EAClB,gBAAgB;;;KAGb,sBAAsB,oBAAoB;;;;;;UAMrC;;WAEC;WACA;WACA,SAAS,SAAS;EAC3B,IAAI;EACJ,QAAQ;EACR,OAAO;EACP,UAAU;;;;;iBAKK,mBAAmB,cAAc,cAAc,QAAQ,kBAAkB;;;;iBAIzE,0BAA0B;WAChC,YAAY,SAAS;aACnB,OAAO,SAAS,eAAe;;GAEzC,qBAAqB,UAAU,qBAAqB,eAAe;iBACrD,qBAAqB,kBAAkB,UAAU,QAAQ,qBAAqB,UAAU,qBAAqB,gBAAgB;KACzI,QAAQ,KAAK,QAAQ;KACrB;WACM;WACA;;KAEN;WACM,kBAAkB;;KAExB,aAAa,uBAAuB,WAAW,UAAU,QAAQ,WAAW,kBAAkB,QAAQ;KACtG,YAAY,uBAAuB,WAAW,UAAU,QAAQ,WAAW,kBAAkB,QAAQ;KACrG,gBAAgB,cAAc,aAAa,aAAa;KACxD,eAAe,cAAc,aAAa,YAAY;KACtD,iBAAiB,cAAc,yBAAyB,KAAK,4BAA4B,YAAY;KACrG,qBAAqB,cAAc;WAC7B,QAAQ,gBAAgB;WACxB,OAAO,eAAe;WACtB,SAAS,iBAAiB;;EAEnC,IAAI,aAAa,KAAK,gBAAgB;;EAEtC,QAAQ,eAAe,QAAQ,QAAQ,eAAe;EACtD,OAAO,GAAG,gBAAgB;EAC1B,UAAU,GAAG,gBAAgB;;;;;WAKpB,OAAO,gBAAgB;;;;;;;KAO7B,WAAW,KAAK;WACV,QAAQ,oBAAoB;IACnC;;;;KAIC,gBAAgB,KAAK;WACf,OAAO,oBAAoB;IAClC;KACC,uBAAuB,qBAAqB,WAAW,QAAQ,MAAM,WAAW,YAAY,qBAAqB,MAAM;KACvH,kBAAkB,cAAc;WAC1B,aAAa;oBACJ,IAAI,uBAAuB,QAAQ,KAAK;KACvD,qBAAqB,cAAc;WAC7B,wBAAwB;oBACf,eAAe,kBAAkB,0BAA0B,WAAW,QAAQ;WACvF,SAAS,QAAQ,cAAc;OACnC,kBAAkB;KACpB,uBAAuB,kBAAkB,UAAU,mBAAmB,qCAAqC,uBAAuB,qBAAqB,kCAAkC;KACzL,gBAAgB,kBAAkB,wBAAwB,YAAY,oCAAoC,uBAAuB,WAAW"}
package/dist/errors.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as errorOutputFormatMutex, E as errorUnexpected, S as errorMigrationPlanningFailed, T as errorTargetMigrationNotSupported, _ as errorInvalidOutputFormat, a as errorConfigEvaluationFailed, b as errorMigrationCliInvalidConfigArg, c as errorConfigVersionMarkerMissing, d as errorContractValidationFailed, f as errorDatabaseConnectionRequired, g as errorFileNotFound, h as errorFamilyReadMarkerSqlRequired, i as CliStructuredError, l as errorContractConfigMissing, m as errorEnumCodecNotInPackStack, n as CliErrorConflict, o as errorConfigFileNotFound, p as errorDriverRequired, r as CliErrorEnvelope, s as errorConfigValidation, t as CheckedMigrationConfig, u as errorContractMissingExtensions, v as errorJsonFormatNotSupported, w as errorQueryRunnerFactoryRequired, x as errorMigrationCliUnknownFlag, y as errorMigrationCliConfigNotFound } from "./control-C11hV6zc-Bu4HR5MZ.mjs";
2
- import "./control-CGf1ZZbx.mjs";
3
- import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-BPjhu9gV.mjs";
4
- import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-IroycW9a.mjs";
1
+ import { C as errorOutputFormatMutex, E as errorUnexpected, S as errorMigrationPlanningFailed, T as errorTargetMigrationNotSupported, _ as errorInvalidOutputFormat, a as errorConfigEvaluationFailed, b as errorMigrationCliInvalidConfigArg, c as errorConfigVersionMarkerMissing, d as errorContractValidationFailed, f as errorDatabaseConnectionRequired, g as errorFileNotFound, h as errorFamilyReadMarkerSqlRequired, i as CliStructuredError, l as errorContractConfigMissing, m as errorEnumCodecNotInPackStack, n as CliErrorConflict, o as errorConfigFileNotFound, p as errorDriverRequired, r as CliErrorEnvelope, s as errorConfigValidation, t as CheckedMigrationConfig, u as errorContractMissingExtensions, v as errorJsonFormatNotSupported, w as errorQueryRunnerFactoryRequired, x as errorMigrationCliUnknownFlag, y as errorMigrationCliConfigNotFound } from "./control-C_zs63JQ-BHMRNt82.mjs";
2
+ import "./control-B7cfY071.mjs";
3
+ import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-A4CaEPHk.mjs";
4
+ import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-ClwEv4nY.mjs";
5
5
  export { type CheckedMigrationConfig, type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, unfilledPlaceholderOperation, withMarkerReadErrorHandling };
package/dist/errors.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as errorUnexpected, S as errorTargetMigrationNotSupported, _ as errorMigrationCliInvalidConfigArg, a as errorConfigVersionMarkerMissing, b as errorOutputFormatMutex, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliConfigNotFound, h as errorJsonFormatNotSupported, i as errorConfigValidation, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as errorConfigEvaluationFailed, o as errorContractConfigMissing, p as errorFileNotFound, r as errorConfigFileNotFound, s as errorContractMissingExtensions, t as CliStructuredError, u as errorDriverRequired, v as errorMigrationCliUnknownFlag, x as errorQueryRunnerFactoryRequired, y as errorMigrationPlanningFailed } from "./control-CVGlbj6c-DGRy_Odg.mjs";
2
- import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-BIqac9cC.mjs";
3
- import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-BdFXgvxm.mjs";
1
+ import { C as errorTargetMigrationNotSupported, S as errorQueryRunnerFactoryRequired, _ as errorMigrationCliConfigNotFound, a as errorConfigValidation, b as errorMigrationPlanningFailed, c as errorContractMissingExtensions, d as errorDriverRequired, f as errorEnumCodecNotInPackStack, g as errorJsonFormatNotSupported, h as errorInvalidOutputFormat, i as errorConfigFileNotFound, l as errorContractValidationFailed, m as errorFileNotFound, o as errorConfigVersionMarkerMissing, p as errorFamilyReadMarkerSqlRequired, r as errorConfigEvaluationFailed, s as errorContractConfigMissing, t as CliStructuredError, u as errorDatabaseConnectionRequired, v as errorMigrationCliInvalidConfigArg, w as errorUnexpected, x as errorOutputFormatMutex, y as errorMigrationCliUnknownFlag } from "./control-Bv8UK63M-D34GaTSa.mjs";
2
+ import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-D_qcNa8s.mjs";
3
+ import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-BpjWKFc_.mjs";
4
4
  export { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, unfilledPlaceholderOperation, withMarkerReadErrorHandling };
@@ -1,3 +1,3 @@
1
- import { C as errorOutputFormatMutex, E as errorUnexpected, S as errorMigrationPlanningFailed, T as errorTargetMigrationNotSupported, _ as errorInvalidOutputFormat, a as errorConfigEvaluationFailed, b as errorMigrationCliInvalidConfigArg, c as errorConfigVersionMarkerMissing, d as errorContractValidationFailed, f as errorDatabaseConnectionRequired, g as errorFileNotFound, h as errorFamilyReadMarkerSqlRequired, i as CliStructuredError, l as errorContractConfigMissing, m as errorEnumCodecNotInPackStack, n as CliErrorConflict, o as errorConfigFileNotFound, p as errorDriverRequired, r as CliErrorEnvelope, s as errorConfigValidation, t as CheckedMigrationConfig, u as errorContractMissingExtensions, v as errorJsonFormatNotSupported, w as errorQueryRunnerFactoryRequired, x as errorMigrationCliUnknownFlag, y as errorMigrationCliConfigNotFound } from "./control-C11hV6zc-Bu4HR5MZ.mjs";
2
- import "./control-CGf1ZZbx.mjs";
1
+ import { C as errorOutputFormatMutex, E as errorUnexpected, S as errorMigrationPlanningFailed, T as errorTargetMigrationNotSupported, _ as errorInvalidOutputFormat, a as errorConfigEvaluationFailed, b as errorMigrationCliInvalidConfigArg, c as errorConfigVersionMarkerMissing, d as errorContractValidationFailed, f as errorDatabaseConnectionRequired, g as errorFileNotFound, h as errorFamilyReadMarkerSqlRequired, i as CliStructuredError, l as errorContractConfigMissing, m as errorEnumCodecNotInPackStack, n as CliErrorConflict, o as errorConfigFileNotFound, p as errorDriverRequired, r as CliErrorEnvelope, s as errorConfigValidation, t as CheckedMigrationConfig, u as errorContractMissingExtensions, v as errorJsonFormatNotSupported, w as errorQueryRunnerFactoryRequired, x as errorMigrationCliUnknownFlag, y as errorMigrationCliConfigNotFound } from "./control-C_zs63JQ-BHMRNt82.mjs";
2
+ import "./control-B7cfY071.mjs";
3
3
  export { type CheckedMigrationConfig, type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
@@ -1,2 +1,2 @@
1
- import { C as errorUnexpected, S as errorTargetMigrationNotSupported, _ as errorMigrationCliInvalidConfigArg, a as errorConfigVersionMarkerMissing, b as errorOutputFormatMutex, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliConfigNotFound, h as errorJsonFormatNotSupported, i as errorConfigValidation, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as errorConfigEvaluationFailed, o as errorContractConfigMissing, p as errorFileNotFound, r as errorConfigFileNotFound, s as errorContractMissingExtensions, t as CliStructuredError, u as errorDriverRequired, v as errorMigrationCliUnknownFlag, x as errorQueryRunnerFactoryRequired, y as errorMigrationPlanningFailed } from "./control-CVGlbj6c-DGRy_Odg.mjs";
1
+ import { C as errorTargetMigrationNotSupported, S as errorQueryRunnerFactoryRequired, _ as errorMigrationCliConfigNotFound, a as errorConfigValidation, b as errorMigrationPlanningFailed, c as errorContractMissingExtensions, d as errorDriverRequired, f as errorEnumCodecNotInPackStack, g as errorJsonFormatNotSupported, h as errorInvalidOutputFormat, i as errorConfigFileNotFound, l as errorContractValidationFailed, m as errorFileNotFound, o as errorConfigVersionMarkerMissing, p as errorFamilyReadMarkerSqlRequired, r as errorConfigEvaluationFailed, s as errorContractConfigMissing, t as CliStructuredError, u as errorDatabaseConnectionRequired, v as errorMigrationCliInvalidConfigArg, w as errorUnexpected, x as errorOutputFormatMutex, y as errorMigrationCliUnknownFlag } from "./control-Bv8UK63M-D34GaTSa.mjs";
2
2
  export { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
@@ -1,2 +1,2 @@
1
- import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-BPjhu9gV.mjs";
1
+ import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-A4CaEPHk.mjs";
2
2
  export { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -1,2 +1,2 @@
1
- import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-BIqac9cC.mjs";
1
+ import { a as errorMarkerRowCorrupt, c as errorSchemaVerificationFailed, d as rethrowMarkerReadError, f as withMarkerReadErrorHandling, i as errorMarkerRequired, l as errorTargetMismatch, n as errorMarkerMissing, o as errorRunnerFailed, r as errorMarkerReadFailed, s as errorRuntime, t as errorHashMismatch, u as parseMarkerRowSafely } from "./execution-D_qcNa8s.mjs";
2
2
  export { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -1,2 +1,2 @@
1
- import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-IroycW9a.mjs";
1
+ import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-ClwEv4nY.mjs";
2
2
  export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };
@@ -1,2 +1,2 @@
1
- import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-BdFXgvxm.mjs";
1
+ import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-BpjWKFc_.mjs";
2
2
  export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };
@@ -1,6 +1,6 @@
1
- import { jt as SchemaDiffIssue, rn as VerifyDatabaseSchemaResult } from "./control-DiIVftDP.mjs";
1
+ import { jt as SchemaDiffIssue, rn as VerifyDatabaseSchemaResult } from "./control-Bp6XS6M2.mjs";
2
2
  import { i as NextAction, r as Diagnostic } from "./structured-error-Cc7AIRsp.mjs";
3
- import { i as CliStructuredError } from "./control-C11hV6zc-Bu4HR5MZ.mjs";
3
+ import { i as CliStructuredError } from "./control-C_zs63JQ-BHMRNt82.mjs";
4
4
  //#region ../../../1-framework/1-core/errors/dist/execution.d.mts
5
5
  //#region src/execution.d.ts
6
6
  /**
@@ -93,4 +93,4 @@ declare function errorRuntime(code: `${string}.${string}`, summary: string, opti
93
93
  }): CliStructuredError;
94
94
  //#endregion
95
95
  export { errorMarkerRowCorrupt as a, errorSchemaVerificationFailed as c, rethrowMarkerReadError as d, withMarkerReadErrorHandling as f, errorMarkerRequired as i, errorTargetMismatch as l, errorMarkerMissing as n, errorRunnerFailed as o, errorMarkerReadFailed as r, errorRuntime as s, errorHashMismatch as t, parseMarkerRowSafely as u };
96
- //# sourceMappingURL=execution-BPjhu9gV.d.mts.map
96
+ //# sourceMappingURL=execution-A4CaEPHk.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-BPjhu9gV.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.d.mts"],"mappings":";;;;;;;;iBAOiB,mBAAmB;WACzB;IACP;;;;iBAIa,kBAAkB;WACxB;WACA;WACA;IACP;;;;iBAIa,oBAAoB,kBAAkB,gBAAgB;WAC5D;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;iBACa,uBAAuB,cAAc;WAC3C;WACA;;iBAEM,4BAA4B,GAAG,iBAAiB,QAAQ,IAAI;WAClE;WACA;IACP,QAAQ;iBACK,qBAAqB,GAAG,cAAc,QAAQ,mBAAmB,GAAG;WAC1E;WACA;IACP;;;;;iBAKa,oBAAoB;WAC1B;WACA;WACA,uBAAuB;IAC9B;;;;;iBAKa,8BAA8B;WACpC;WACA,oBAAoB;WACpB,kBAAkB;IACzB;;;;iBAIa,kBAAkB,iBAAiB;WACzC;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP;;;;iBAIa,aAAa,6BAA6B,iBAAiB;WACjE;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP"}
1
+ {"version":3,"file":"execution-A4CaEPHk.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.d.mts"],"mappings":";;;;;;;;iBAOiB,mBAAmB;WACzB;IACP;;;;iBAIa,kBAAkB;WACxB;WACA;WACA;IACP;;;;iBAIa,oBAAoB,kBAAkB,gBAAgB;WAC5D;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;iBACa,uBAAuB,cAAc;WAC3C;WACA;;iBAEM,4BAA4B,GAAG,iBAAiB,QAAQ,IAAI;WAClE;WACA;IACP,QAAQ;iBACK,qBAAqB,GAAG,cAAc,QAAQ,mBAAmB,GAAG;WAC1E;WACA;IACP;;;;;iBAKa,oBAAoB;WAC1B;WACA;WACA,uBAAuB;IAC9B;;;;;iBAKa,8BAA8B;WACpC;WACA,oBAAoB;WACpB,kBAAkB;IACzB;;;;iBAIa,kBAAkB,iBAAiB;WACzC;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP;;;;iBAIa,aAAa,6BAA6B,iBAAiB;WACjE;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP"}
@@ -1,6 +1,6 @@
1
1
  import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
2
2
  import { i as isStructuredError } from "./structured-error-BXbihKQ-.mjs";
3
- import { t as CliStructuredError } from "./control-CVGlbj6c-DGRy_Odg.mjs";
3
+ import { t as CliStructuredError } from "./control-Bv8UK63M-D34GaTSa.mjs";
4
4
  //#region ../../../1-framework/1-core/errors/dist/execution.mjs
5
5
  /**
6
6
  * Contract marker not found in database.
@@ -193,4 +193,4 @@ function errorRuntime(code, summary, options) {
193
193
  //#endregion
194
194
  export { errorMarkerRowCorrupt as a, errorSchemaVerificationFailed as c, rethrowMarkerReadError as d, withMarkerReadErrorHandling as f, errorMarkerRequired as i, errorTargetMismatch as l, errorMarkerMissing as n, errorRunnerFailed as o, errorMarkerReadFailed as r, errorRuntime as s, errorHashMismatch as t, parseMarkerRowSafely as u };
195
195
 
196
- //# sourceMappingURL=execution-BIqac9cC.mjs.map
196
+ //# sourceMappingURL=execution-D_qcNa8s.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-BIqac9cC.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-CVGlbj6c.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `{bin} db sign --db <url>` to sign the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db sign --db <url>\"\n\t\t}]\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`{bin} db sign --db <url>\\` to write a fresh marker.`,\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Write a fresh marker\",\n\t\t\tcommand: \"{bin} db sign --db <url>\",\n\t\t\treason: `Delete the invalid ${options.markerLocation} row for space \"${options.space}\" first — this command then writes a valid one.`\n\t\t}],\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction isDriverError(err) {\n\treturn isStructuredError(err) && err.code.startsWith(\"DRIVER.\");\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction isLegacyMarkerShapeReadError(message) {\n\tconst normalized = message.toLowerCase();\n\treturn normalized.includes(\"column \\\"space\\\" does not exist\") || normalized.includes(\"no such column: space\");\n}\nfunction errorLegacyMarkerShape(options) {\n\treturn errorRunnerFailed(`Legacy marker-table shape detected on ${options.markerLocation} (no \\`space\\` column). Prisma 8 is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. Drop \\`${options.markerLocation}\\` and re-run \\`{bin} db init\\` to reinitialise from a clean baseline.`, {\n\t\twhy: options.why,\n\t\tfix: \"Legacy marker-table shape detected. Drop `prisma_contract.marker` (Postgres) or `_prisma_marker` (SQLite) and re-run `{bin} db init` to recreate it with the current per-space schema.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Reinitialise the marker table from a clean baseline\",\n\t\t\tcommand: \"{bin} db init\",\n\t\t\treason: `Drop \\`${options.markerLocation}\\` first — it has the legacy shape (no \\`space\\` column) and this command recreates it with the current per-space schema.`\n\t\t}],\n\t\tmeta: { runnerErrorCode: \"MIGRATION.LEGACY_MARKER_SHAPE\" },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err) || isDriverError(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tconst message = err instanceof Error ? err.message : String(err);\n\tif (isLegacyMarkerShapeReadError(message)) throw errorLegacyMarkerShape({\n\t\twhy: message,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `{bin} db init` first to sign the database\",\n\t\tnextActions: options?.nextActions ?? [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db init\"\n\t\t}]\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `{bin} db update` to reconcile, or adjust your contract to match the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Reconcile the database\",\n\t\t\tcommand: \"{bin} db update\"\n\t\t}, {\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Adjust your contract to match the database\"\n\t\t}],\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Migration runner failed during execution.\n*/\nfunction errorRunnerFailed(summary, options) {\n\treturn new CliStructuredError(\"MIGRATION.RUNNER_FAILED\", summary, {\n\t\twhy: options?.why ?? \"Migration runner failed\",\n\t\tfix: options?.fix ?? \"Inspect the reported conflict and reconcile schema drift\",\n\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t...options?.meta ? { meta: options.meta } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Generic runtime error carrying a caller-provided dotted code.\n*/\nfunction errorRuntime(code, summary, options) {\n\treturn new CliStructuredError(code, summary, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\t...ifDefined(\"fix\", options?.fix),\n\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;EACV,CAAC;CACF,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS;CACnC,OAAO,IAAI,mBAAmB,4BAA4B,iBAAiB;EAC1E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,GAAG,SAAS,aAAa,KAAK,KAAK,SAAS,WAAW,KAAK,IAAI,EAAE,MAAM;GACvE,GAAG,UAAU,YAAY,SAAS,QAAQ;GAC1C,GAAG,UAAU,UAAU,SAAS,MAAM;EACvC,EAAE,IAAI,CAAC;CACR,CAAC;AACF;;;;AAIA,SAAS,oBAAoB,UAAU,QAAQ,SAAS;CACvD,OAAO,IAAI,mBAAmB,4BAA4B,mBAAmB;EAC5E,KAAK,SAAS,OAAO,2DAA2D,SAAS,YAAY,OAAO;EAC5G,KAAK;EACL,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA+B,yCAAyC;EACrG,KAAK,QAAQ;EACb,KAAK,OAAO,QAAQ,eAAe,kBAAkB,QAAQ,MAAM;EACnE,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;GACT,QAAQ,sBAAsB,QAAQ,eAAe,kBAAkB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AU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF;;;;AAIA,SAAS,aAAa,MAAM,SAAS,SAAS;CAC7C,OAAO,IAAI,mBAAmB,MAAM,SAAS;EAC5C,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,eAAe,SAAS,WAAW;EAChD,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
1
+ {"version":3,"file":"execution-D_qcNa8s.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-Bv8UK63M.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `{bin} db sign --db <url>` to sign the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db sign --db <url>\"\n\t\t}]\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`{bin} db sign --db <url>\\` to write a fresh marker.`,\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Write a fresh marker\",\n\t\t\tcommand: \"{bin} db sign --db <url>\",\n\t\t\treason: `Delete the invalid ${options.markerLocation} row for space \"${options.space}\" first — this command then writes a valid one.`\n\t\t}],\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction isDriverError(err) {\n\treturn isStructuredError(err) && err.code.startsWith(\"DRIVER.\");\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction isLegacyMarkerShapeReadError(message) {\n\tconst normalized = message.toLowerCase();\n\treturn normalized.includes(\"column \\\"space\\\" does not exist\") || normalized.includes(\"no such column: space\");\n}\nfunction errorLegacyMarkerShape(options) {\n\treturn errorRunnerFailed(`Legacy marker-table shape detected on ${options.markerLocation} (no \\`space\\` column). Prisma 8 is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. Drop \\`${options.markerLocation}\\` and re-run \\`{bin} db init\\` to reinitialise from a clean baseline.`, {\n\t\twhy: options.why,\n\t\tfix: \"Legacy marker-table shape detected. Drop `prisma_contract.marker` (Postgres) or `_prisma_marker` (SQLite) and re-run `{bin} db init` to recreate it with the current per-space schema.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Reinitialise the marker table from a clean baseline\",\n\t\t\tcommand: \"{bin} db init\",\n\t\t\treason: `Drop \\`${options.markerLocation}\\` first — it has the legacy shape (no \\`space\\` column) and this command recreates it with the current per-space schema.`\n\t\t}],\n\t\tmeta: { runnerErrorCode: \"MIGRATION.LEGACY_MARKER_SHAPE\" },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err) || isDriverError(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tconst message = err instanceof Error ? err.message : String(err);\n\tif (isLegacyMarkerShapeReadError(message)) throw errorLegacyMarkerShape({\n\t\twhy: message,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `{bin} db init` first to sign the database\",\n\t\tnextActions: options?.nextActions ?? [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db init\"\n\t\t}]\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `{bin} db update` to reconcile, or adjust your contract to match the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Reconcile the database\",\n\t\t\tcommand: \"{bin} db update\"\n\t\t}, {\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Adjust your contract to match the database\"\n\t\t}],\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Migration runner failed during execution.\n*/\nfunction errorRunnerFailed(summary, options) {\n\treturn new CliStructuredError(\"MIGRATION.RUNNER_FAILED\", summary, {\n\t\twhy: options?.why ?? \"Migration runner failed\",\n\t\tfix: options?.fix ?? \"Inspect the reported conflict and reconcile schema drift\",\n\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t...options?.meta ? { meta: options.meta } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Generic runtime error carrying a caller-provided dotted code.\n*/\nfunction errorRuntime(code, summary, options) {\n\treturn new CliStructuredError(code, summary, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\t...ifDefined(\"fix\", options?.fix),\n\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;EACV,CAAC;CACF,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS;CACnC,OAAO,IAAI,mBAAmB,4BAA4B,iBAAiB;EAC1E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,GAAG,SAAS,aAAa,KAAK,KAAK,SAAS,WAAW,KAAK,IAAI,EAAE,MAAM;GACvE,GAAG,UAAU,YAAY,SAAS,QAAQ;GAC1C,GAAG,UAAU,UAAU,SAAS,MAAM;EACvC,EAAE,IAAI,CAAC;CACR,CAAC;AACF;;;;AAIA,SAAS,oBAAoB,UAAU,QAAQ,SAAS;CACvD,OAAO,IAAI,mBAAmB,4BAA4B,mBAAmB;EAC5E,KAAK,SAAS,OAAO,2DAA2D,SAAS,YAAY,OAAO;EAC5G,KAAK;EACL,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA+B,yCAAyC;EACrG,KAAK,QAAQ;EACb,KAAK,OAAO,QAAQ,eAAe,kBAAkB,QAAQ,MAAM;EACnE,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;GACT,QAAQ,sBAAsB,QAAQ,eAAe,kBAAkB,QAAQ,MAAM;EACtF,CAAC;EACD,MAAM,EAAE,O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IA,SAAS,aAAa,MAAM,SAAS,SAAS;CAC7C,OAAO,IAAI,mBAAmB,MAAM,SAAS;EAC5C,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,eAAe,SAAS,WAAW;EAChD,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
@@ -1,4 +1,4 @@
1
- import { b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, y as TargetDescriptor } from "./framework-components-DhrgvP2z-B_XzMVzi.mjs";
1
+ import { b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, y as TargetDescriptor } from "./framework-components-D_QZgxzO-D4b6r8ne.mjs";
2
2
  //#region ../../../1-framework/1-core/framework-components/dist/execution.d.mts
3
3
  //#region src/execution/execution-instances.d.ts
4
4
  interface RuntimeFamilyInstance<TFamilyId extends string> extends FamilyInstance<TFamilyId> {}
@@ -76,4 +76,4 @@ declare function assertRuntimeContractRequirementsSatisfied<TFamilyId extends st
76
76
  }): void;
77
77
  //#endregion
78
78
  export { RuntimeDriverDescriptor as a, RuntimeExtensionInstance as c, RuntimeTargetDescriptor as d, RuntimeTargetInstance as f, instantiateExecutionStack as h, RuntimeAdapterInstance as i, RuntimeFamilyDescriptor as l, createExecutionStack as m, ExecutionStackInstance as n, RuntimeDriverInstance as o, assertRuntimeContractRequirementsSatisfied as p, RuntimeAdapterDescriptor as r, RuntimeExtensionDescriptor as s, ExecutionStack as t, RuntimeFamilyInstance as u };
79
- //# sourceMappingURL=execution-5GwMfE3u.d.mts.map
79
+ //# sourceMappingURL=execution-Db6roA4O.d.mts.map
@@ -1 +1 @@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ChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,qBAAqB,2BAA2B,WAAW"}
@@ -1,8 +1,8 @@
1
1
  import { B as JsonValue, N as ExecutionMutationDefaultPhases, a as ColumnDefault } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
- import { b as DataTypeLookup, p as CodecLookupWithDescriptors, y as DataTypeId } from "./codec-types-BsE6wCHK-Dpx-WFJ2.mjs";
2
+ import { p as CodecLookupWithDescriptors, v as DataTypeId, y as DataTypeLookup } from "./codec-types-BNVa23xn-DLZmMFiC.mjs";
3
3
  import { Type } from "arktype";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
- //#region ../../../1-framework/1-core/framework-components/dist/framework-authoring-D6Z2kyE8.d.mts
5
+ //#region ../../../1-framework/1-core/framework-components/dist/framework-authoring-BYuHgXo6.d.mts
6
6
  //#region src/shared/option-descriptor.d.ts
7
7
  interface AuthoringOption {
8
8
  readonly kind: 'option';
@@ -366,7 +366,7 @@ interface AuthoringEntityContext {
366
366
  /** Push channel for non-fatal authoring-time warnings emitted by the factory. */
367
367
  readonly warnings?: AuthoringWarningSink;
368
368
  /**
369
- * Reads a number literal written in the contract source, such as an enum member's value, from its source text the way a column default is read: the literal gives a value of a data type, the codec's data type takes it directly or through a cast, and the codec checks it. Returns the value's stored form, or why it is refused, worded for `subject`. Without it, or when it returns `undefined` for a codec the stack registers no descriptor for, the codec's `decodeJson` reads the number.
369
+ * Reads a number literal written in the contract source, such as an enum member's value, from its source text the way a column default is read: the literal gives a value of a data type, the codec's data type takes it directly or through a cast, and the codec checks it. Returns the value's stored form, or why it is refused, worded for `subject`. Without it, or when it returns `undefined` for a codec the stack registers no descriptor for, the codec's data type and then the codec read the number.
370
370
  */
371
371
  readonly readWrittenNumber?: (input: {
372
372
  readonly text: string;
@@ -583,19 +583,13 @@ interface AuthoringAttributeSpecContributions {
583
583
  * the three pieces of syntax read without a tag: a quoted string, `true`/`false`, and a number.
584
584
  *
585
585
  * A number is the one plain form that yields several types, so instead of `parse` its arm carries a
586
- * classifier, which picks the type from the digits and returns the canonical form with it, and
586
+ * classifier, which picks the type from the digits and returns JSON of that type with it, and
587
587
  * `types`, every type the classifier can return — which is how assembly knows those types can be
588
- * written. ADR 254.
588
+ * written. The type constructs its value from what `parse` or the classifier returns. ADR 254.
589
589
  */
590
590
  type DataTypeWrittenForm = {
591
591
  readonly kind: 'tag';
592
592
  readonly tag: string;
593
- /**
594
- * The data type the body is a value of, for an entry under {@link tagEntryKey}: a tag that
595
- * yields a type whose own entry reads another syntax. An entry under a data type id leaves it
596
- * out.
597
- */
598
- readonly type?: DataTypeId;
599
593
  readonly parse: (text: string) => JsonValue;
600
594
  } | {
601
595
  readonly kind: 'plain';
@@ -614,23 +608,14 @@ type DataTypeWrittenForm = {
614
608
  * PSL support for one data type, keyed by its id and contributed by the component that registers
615
609
  * the type.
616
610
  *
617
- * The written form reads text into the type's canonical form, throwing a structured error for text
618
- * it cannot read; `print` is the reverse.
611
+ * The written form reads text into JSON the type constructs its value from, throwing a structured
612
+ * error for text it cannot read; `print` is the reverse.
619
613
  */
620
614
  interface DataTypeAuthoringEntry {
621
615
  readonly written: DataTypeWrittenForm;
622
616
  readonly print: (value: JsonValue) => string;
623
617
  readonly documentation: string;
624
618
  }
625
- /**
626
- * The key an entry sits under when its tag yields a type whose own key is taken by the entry for
627
- * another syntax: SQLite's `json` tag yields `sqlite/text`, whose entry reads a plain string. A data
628
- * type id is `owner/name`, so this key never collides with one.
629
- */
630
- declare function tagEntryKey(tag: string): string;
631
- declare function isTagEntryKey(key: string): boolean;
632
- /** The data type a value entry reads its written form as: its tag's `type`, or else its key. */
633
- declare function authoringEntryType(key: string, entry: DataTypeAuthoringEntry): string;
634
619
  interface AuthoringContributions {
635
620
  readonly type?: AuthoringTypeNamespace;
636
621
  readonly field?: AuthoringFieldNamespace;
@@ -749,5 +734,5 @@ declare function instantiateAuthoringFieldPreset(descriptor: AuthoringFieldPrese
749
734
  readonly unique: boolean;
750
735
  };
751
736
  //#endregion
752
- export { instantiateAuthoringFieldPreset as $, AuthoringWarning as A, PslExtensionBlockParsedAttribute as B, AuthoringPslBlockDescriptorNamespace as C, AuthoringTypeConstructorDescriptor as D, AuthoringTemplateValue as E, ParsedPslExtensionBlock as F, assertNoCrossRegistryCollisions as G, PslPosition as H, PslDiagnosticCode as I, classifyEnumMemberType as J, assertResolvableTypeConstructorTemplates as K, PslExtensionBlock as L, ContributedPslDiagnosticCode as M, DataTypeAuthoringEntry as N, AuthoringTypeConstructorEntityRef as O, DataTypeWrittenForm as P, instantiateAuthoringEntityType as Q, PslExtensionBlockAttribute as R, AuthoringPslBlockDescriptor as S, AuthoringStorageTypeTemplate as T, PslSpan as U, PslExtensionBlockPrintEntry as V, ScalarTypeConstructorOutput as W, flushAuthoringWarnings as X, collectScalarTypeConstructors as Y, getAuthoringTypeConstructor as Z, AuthoringModelAttributeDescriptorNamespace as _, AuthoringContributions as a, isAuthoringPslBlockDescriptor as at, AuthoringModelAttributeLoweringOutput as b, AuthoringEntityTypeDescriptor as c, mergeAuthoringNamespaces as ct, AuthoringEntityTypeTemplateOutput as d, tagEntryKey as dt, instantiateAuthoringTypeConstructor as et, AuthoringFieldNamespace as f, validateAuthoringHelperArguments as ft, AuthoringModelAttributeDescriptor as g, AuthoringModelAttributeContext as h, AuthoringColumnDefaultTemplate as i, isAuthoringModelAttributeDescriptor as it, AuthoringWarningSink as j, AuthoringTypeNamespace as k, AuthoringEntityTypeFactoryOutput as l, resolveAuthoringTemplateValue as lt, AuthoringFieldPresetOutput as m, AuthoringArgumentDescriptor as n, isAuthoringEntityTypeDescriptor as nt, AuthoringDiagnosticSink as o, isAuthoringTypeConstructorDescriptor as ot, AuthoringFieldPresetDescriptor as p, validateAuthoringTypeParams as pt, authoringEntryType as q, AuthoringAttributeSpecContributions as r, isAuthoringFieldPresetDescriptor as rt, AuthoringEntityContext as s, isTagEntryKey as st, AuthoringArgRef as t, isAuthoringArgRef as tt, AuthoringEntityTypeNamespace as u, resolveEnumCodecId as ut, AuthoringModelAttributeEntityOutput as v, AuthoringSelectRef as w, AuthoringOption as x, AuthoringModelAttributeIndexOutput as y, PslExtensionBlockAttributeArg as z };
753
- //# sourceMappingURL=framework-authoring-D6Z2kyE8-B8GVWZ59.d.mts.map
737
+ export { instantiateAuthoringTypeConstructor as $, AuthoringWarning as A, PslExtensionBlockParsedAttribute as B, AuthoringPslBlockDescriptorNamespace as C, AuthoringTypeConstructorDescriptor as D, AuthoringTemplateValue as E, ParsedPslExtensionBlock as F, assertNoCrossRegistryCollisions as G, PslPosition as H, PslDiagnosticCode as I, collectScalarTypeConstructors as J, assertResolvableTypeConstructorTemplates as K, PslExtensionBlock as L, ContributedPslDiagnosticCode as M, DataTypeAuthoringEntry as N, AuthoringTypeConstructorEntityRef as O, DataTypeWrittenForm as P, instantiateAuthoringFieldPreset as Q, PslExtensionBlockAttribute as R, AuthoringPslBlockDescriptor as S, AuthoringStorageTypeTemplate as T, PslSpan as U, PslExtensionBlockPrintEntry as V, ScalarTypeConstructorOutput as W, getAuthoringTypeConstructor as X, flushAuthoringWarnings as Y, instantiateAuthoringEntityType as Z, AuthoringModelAttributeDescriptorNamespace as _, AuthoringContributions as a, isAuthoringTypeConstructorDescriptor as at, AuthoringModelAttributeLoweringOutput as b, AuthoringEntityTypeDescriptor as c, resolveEnumCodecId as ct, AuthoringEntityTypeTemplateOutput as d, isAuthoringArgRef as et, AuthoringFieldNamespace as f, AuthoringModelAttributeDescriptor as g, AuthoringModelAttributeContext as h, AuthoringColumnDefaultTemplate as i, isAuthoringPslBlockDescriptor as it, AuthoringWarningSink as j, AuthoringTypeNamespace as k, AuthoringEntityTypeFactoryOutput as l, validateAuthoringHelperArguments as lt, AuthoringFieldPresetOutput as m, AuthoringArgumentDescriptor as n, isAuthoringFieldPresetDescriptor as nt, AuthoringDiagnosticSink as o, mergeAuthoringNamespaces as ot, AuthoringFieldPresetDescriptor as p, classifyEnumMemberType as q, AuthoringAttributeSpecContributions as r, isAuthoringModelAttributeDescriptor as rt, AuthoringEntityContext as s, resolveAuthoringTemplateValue as st, AuthoringArgRef as t, isAuthoringEntityTypeDescriptor as tt, AuthoringEntityTypeNamespace as u, validateAuthoringTypeParams as ut, AuthoringModelAttributeEntityOutput as v, AuthoringSelectRef as w, AuthoringOption as x, AuthoringModelAttributeIndexOutput as y, PslExtensionBlockAttributeArg as z };
738
+ //# sourceMappingURL=framework-authoring-BYuHgXo6-BtKlRo4a.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework-authoring-D6Z2kyE8-B8GVWZ59.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-authoring-D6Z2kyE8.d.mts"],"mappings":";;;;;;UAKU;WACC;WACA;;;;UAID;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;KAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuFA;UACK;WACC;WACA,MAAM;;;;;;UAMP;WACC;WACA;WACA,MAAM;;;;;;;;UAQP;WACC;WACA,eAAe;WACf,MAAM;;UAEP;WACC,MAAM,SAAS;WACf,WAAW,SAAS,eAAe;WACnC,MAAM;;UAEP;WACC;;;;;;;WAOA;WACA;WACA,YAAY,eAAe;WAC3B,0BAA0B;WAC1B,MAAM;;UAEP,wBAAwB,SAAS,SAAS;WACzC;WACA;WACA;WACA,QAAQ;WACR,gBAAgB,SAAS,eAAe;;WAExC,cAAc,SAAS;WACvB,YAAY,SAAS,eAAe;WACpC,MAAM;;;;KAIZ;WACM;WACA;WACA;WACA,UAAU;;;;;;;;;;;;;;;;UAgBX;WACC;WACA;WACA;WACA,OAAO,SAAS,eAAe;;KAErC,4DAA4D,kBAAkB,8BAA8B;YACrG,cAAc;;UAEhB;WACC;WACA;;KAEN,8BAA8B;WACxB;;WAEA;;WAEA;WACA;WACA;WACA;;WAEA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,yBAAyB,oBAAoB;;;;;;;;;iBAStF,yCAAyC,WAAW,wBAAwB,uBAAuB;iBACnG,gCAAgC,eAAe,wBAAwB,gBAAgB,yBAAyB,sBAAsB,8BAA8B,oBAAoB,sCAAsC,0BAA0B;iBACxP,8BAA8B,UAAU,oCAAoC;iBAC5E,iCAAiC,oBAAoB,sBAAsB,2CAA2C;;;;iBAItH,4BAA4B,oBAAoB,UAAU,8BAA8B,YAAY,qCAAqC,cAAc;iBACvJ,oCAAoC,YAAY,oCAAoC,2BAA2B;iBAC/G,+BAA+B,mBAAmB,oBAAoB,YAAY,+BAA+B,0BAA0B,KAAK,yBAAyB;iBACzK,gCAAgC,YAAY,gCAAgC;WAClF,YAAY;WACZ;WACA,UAAU;WACV,oBAAoB;WACpB;WACA"}
1
+ {"version":3,"file":"framework-authoring-BYuHgXo6-BtKlRo4a.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-authoring-BYuHgXo6.d.mts"],"mappings":";;;;;;UAKU;WACC;WACA;;;;UAID;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;KAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuFA;UACK;WACC;WACA,MAAM;;;;;;UAMP;WACC;WACA;WACA,MAAM;;;;;;;;UAQP;WACC;WACA,eAAe;WACf,MAAM;;UAEP;WACC,MAAM,SAAS;WACf,WAAW,SAAS,eAAe;WACnC,MAAM;;UAEP;WACC;;;;;;;WAOA;WACA;WACA,YAAY,eAAe;WAC3B,0BAA0B;WAC1B,MAAM;;UAEP,wBAAwB,SAAS,SAAS;WACzC;WACA;WACA;WACA,QAAQ;WACR,gBAAgB,SAAS,eAAe;;WAExC,cAAc,SAAS;WACvB,YAAY,SAAS,eAAe;WACpC,MAAM;;;;KAIZ;WACM;WACA;WACA;WACA,UAAU;;;;;;;;;;;;;;;;UAgBX;WACC;WAC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wB;UACnJ;WACC;WACA,aAAa;;;;;;;;;;;;;;;;;iBAiBP,8BAA8B,WAAW,yBAAyB,oBAAoB;;;;;;;;;iBAStF,yCAAyC,WAAW,wBAAwB,uBAAuB;iBACnG,gCAAgC,eAAe,wBAAwB,gBAAgB,yBAAyB,sBAAsB,8BAA8B,oBAAoB,sCAAsC,0BAA0B;iBACxP,8BAA8B,UAAU,oCAAoC;iBAC5E,iCAAiC,oBAAoB,sBAAsB,2CAA2C;;;;iBAItH,4BAA4B,oBAAoB,UAAU,8BAA8B,YAAY,qCAAqC,cAAc;iBACvJ,oCAAoC,YAAY,oCAAoC,2BAA2B;iBAC/G,+BAA+B,mBAAmB,oBAAoB,YAAY,+BAA+B,0BAA0B,KAAK,yBAAyB;iBACzK,gCAAgC,YAAY,gCAAgC;WAClF,YAAY;WACZ;WACA,UAAU;WACV,oBAAoB;WACpB;WACA"}
@@ -1,8 +1,8 @@
1
- import { t as AnyCodecDescriptor, v as DataType } from "./codec-types-BsE6wCHK-Dpx-WFJ2.mjs";
2
- import { a as AuthoringContributions } from "./framework-authoring-D6Z2kyE8-B8GVWZ59.mjs";
1
+ import { _ as DataType, t as AnyCodecDescriptor } from "./codec-types-BNVa23xn-DLZmMFiC.mjs";
2
+ import { a as AuthoringContributions } from "./framework-authoring-BYuHgXo6-BtKlRo4a.mjs";
3
3
  import { r as ControlMutationDefaults } from "./mutation-default-types-DCgdIlXt-DSAdarYA.mjs";
4
- import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-DkCibt5c-eWXsW3y_.mjs";
5
- //#region ../../../1-framework/1-core/framework-components/dist/framework-components-DhrgvP2z.d.mts
4
+ import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-BlKcW9tz-BxhTG7Oc.mjs";
5
+ //#region ../../../1-framework/1-core/framework-components/dist/framework-components-D_QZgxzO.d.mts
6
6
  //#region src/shared/framework-components.d.ts
7
7
  /**
8
8
  * Declarative fields that describe component metadata.
@@ -321,4 +321,4 @@ interface ExtensionInstance<TFamilyId extends string, TTargetId extends string>
321
321
  }
322
322
  //#endregion
323
323
  export { checkContractComponentRequirements as S, PackRefBase as _, ComponentMetadata as a, TargetInstance as b, DriverDescriptor as c, ExtensionDescriptor as d, ExtensionInstance as f, FamilyPackRef as g, FamilyInstance as h, ComponentDescriptor as i, DriverInstance as l, FamilyDescriptor as m, AdapterInstance as n, ContractComponentRequirementsCheckInput as o, ExtensionPackRef as p, AdapterPackRef as r, ContractComponentRequirementsCheckResult as s, AdapterDescriptor as t, DriverPackRef as u, TargetBoundComponentDescriptor as v, TargetPackRef as x, TargetDescriptor as y };
324
- //# sourceMappingURL=framework-components-DhrgvP2z-B_XzMVzi.d.mts.map
324
+ //# sourceMappingURL=framework-components-D_QZgxzO-D4b6r8ne.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework-components-DhrgvP2z-B_XzMVzi.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-DhrgvP2z.d.mts"],"mappings":";;;;;;;;;UAQU;;WAEC;;;;;;WAMA,eAAe;;WAEf;aACE;;;;eAIE,SAAS;;;;;;;;eAQT,cAAc,cAAc;;;;eAI5B,2BAA2B;;;;eAI3B,oBAAoB;;;;eAIpB,mBAAmB,cAAc;;;;;aAKnC,uBAAuB,cAAc;aACrC;eACE,QAAQ;;;;;;;;;WASZ,YAAY,cAAc;;;;;;WAM1B,YAAY;;;;WAIZ,0BAA0B;;;;;;;;;;;;;;;;;UAiB3B,oBAAoB,6BAA6B;;WAEhD,MAAM;;WAEN;;UAED;WACC;aACE;aACA;aACA,aAAa;;WAEf;WACA;WACA,sBAAsB;;UAEvB;WACC;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;iBAEM,mCAAmC,OAAO,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;UA0B3F,iBAAiB,kCAAkC;;WAElD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2BX,iBAAiB,0BAA0B,kCAAkC;;WAE5E,UAAU;;WAEV,UAAU;;WAEV;;;;;UAKD,YAAY,qBAAqB,kCAAkC;WAClE,MAAM;WACN;WACA,UAAU;WACV;WACA,YAAY;;KAElB,cAAc,qCAAqC,sBAAsB;KACzE,cAAc,mCAAmC,qCAAqC,sBAAsB;WACtG,UAAU;;WAEV;WACA;;KAEN,eAAe,mCAAmC,qCAAqC,uBAAuB;WACxG,UAAU;;KAEhB,iBAAiB,mCAAmC,qCAAqC,yBAAyB;WAC5G,UAAU;;KAEhB,cAAc,mCAAmC,qCAAqC,sBAAsB;WACtG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BX,kBAAkB,0BAA0B,kCAAkC;;WAE7E,UAAU;;WAEV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6BX,iBAAiB,0BAA0B,kCAAkC;;WAE5E,UAAU;;WAEV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BX,oBAAoB,0BAA0B,kCAAkC;;WAE/E,UAAU;;WAEV,UAAU;;;KAGhB,+BAA+B,0BAA0B,4BAA4B,iBAAiB,WAAW,aAAa,kBAAkB,WAAW,aAAa,iBAAiB,WAAW,aAAa,oBAAoB,WAAW;UAC3O,eAAe;WACd,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,gBAAgB,0BAA0B;WACzC,UAAU;WACV,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,kBAAkB,0BAA0B;WAC3C,UAAU;WACV,UAAU"}
1
+ {"version":3,"file":"framework-components-D_QZgxzO-D4b6r8ne.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-D_QZgxzO.d.mts"],"mappings":";;;;;;;;;UAQU;;WAEC;;;;;;WAMA,eAAe;;WAEf;aACE;;;;eAIE,SAAS;;;;;;;;eAQT,cAAc,cAAc;;;;eAI5B,2BAA2B;;;;eAI3B,oBAAoB;;;;eAIpB,mBAAmB,c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AAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,gBAAgB,0BAA0B;WACzC,UAAU;WACV,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,kBAAkB,0BAA0B;WAC3C,UAAU;WACV,UAAU"}
package/dist/ids.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { P as ExecutionMutationDefaultValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
- import { s as ColumnTypeDescriptor } from "./codec-C50y5KJD.mjs";
2
+ import { s as ColumnTypeDescriptor } from "./codec-BxNHu928.mjs";
3
3
  import { cuid2 as cuid2$1 } from "uniku/cuid2";
4
4
  import { ksuid as ksuid$1 } from "uniku/ksuid";
5
5
  import { nanoid as nanoid$1 } from "uniku/nanoid";