@prisma/orm-framework 8.0.0-rc.18-dev.31 → 8.0.0-rc.18-dev.33

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 (119) hide show
  1. package/dist/{authoring-BY3RNM--.d.mts → authoring-BJgarhJI.d.mts} +10 -8
  2. package/dist/authoring-BJgarhJI.d.mts.map +1 -0
  3. package/dist/{authoring-D77CrCtb.mjs → authoring-so3aBYD8.mjs} +70 -42
  4. package/dist/authoring-so3aBYD8.mjs.map +1 -0
  5. package/dist/{binder-Cm0N-oPu-deLbJ-j9.d.mts → binder-Cm0N-oPu-XR7EBW2L.d.mts} +12 -12
  6. package/dist/{binder-Cm0N-oPu-deLbJ-j9.d.mts.map → binder-Cm0N-oPu-XR7EBW2L.d.mts.map} +1 -1
  7. package/dist/codec-DGRG8oEH.mjs +56 -0
  8. package/dist/codec-DGRG8oEH.mjs.map +1 -0
  9. package/dist/{codec-CGFT5YKu.d.mts → codec-DkiEF2cQ.d.mts} +15 -3
  10. package/dist/codec-DkiEF2cQ.d.mts.map +1 -0
  11. package/dist/{codec-descriptor-DEfL2Kb6-B-vOB0ue.mjs → codec-descriptor-V2-N5Qmm-BR-5owl6.mjs} +3 -3
  12. package/dist/{codec-descriptor-DEfL2Kb6-B-vOB0ue.mjs.map → codec-descriptor-V2-N5Qmm-BR-5owl6.mjs.map} +1 -1
  13. package/dist/{codec-types-B5_YzEwo-DVCRRWlg.d.mts → codec-types-DjozIOvT-BIcpyFea.d.mts} +10 -2
  14. package/dist/codec-types-DjozIOvT-BIcpyFea.d.mts.map +1 -0
  15. package/dist/{components-BdXloTpj.d.mts → components-BbJVTEds.d.mts} +4 -4
  16. package/dist/{components-BdXloTpj.d.mts.map → components-BbJVTEds.d.mts.map} +1 -1
  17. package/dist/components.d.mts +16 -16
  18. package/dist/components.mjs +6 -6
  19. package/dist/components__authoring.d.mts +3 -3
  20. package/dist/components__authoring.mjs +1 -1
  21. package/dist/components__codec.d.mts +3 -3
  22. package/dist/components__codec.mjs +4 -4
  23. package/dist/components__components.d.mts +3 -3
  24. package/dist/components__control.d.mts +2 -2
  25. package/dist/components__control.mjs +1 -1
  26. package/dist/components__emission.d.mts +3 -3
  27. package/dist/components__execution.d.mts +1 -1
  28. package/dist/components__psl-ast.d.mts +3 -3
  29. package/dist/components__runtime.d.mts +1 -1
  30. package/dist/{config-types-BXw8w6h9.d.mts → config-types-DshiyAml.d.mts} +9 -9
  31. package/dist/{config-types-BXw8w6h9.d.mts.map → config-types-DshiyAml.d.mts.map} +1 -1
  32. package/dist/config.d.mts +1 -1
  33. package/dist/config__config-types.d.mts +1 -1
  34. package/dist/contract-authoring.d.mts +5 -5
  35. package/dist/contract-authoring.mjs +3 -3
  36. package/dist/contract-authoring.mjs.map +1 -1
  37. package/dist/contract.d.mts +3 -3
  38. package/dist/contract.mjs +1 -1
  39. package/dist/contract__enum-accessor.d.mts +1 -1
  40. package/dist/contract__enum-accessor.mjs +1 -1
  41. package/dist/contract__types.d.mts +2 -2
  42. package/dist/{control-Bv8UK63M-dBsEDbTP.mjs → control-Bv8UK63M-w9cKGBgd.mjs} +2 -2
  43. package/dist/{control-Bv8UK63M-dBsEDbTP.mjs.map → control-Bv8UK63M-w9cKGBgd.mjs.map} +1 -1
  44. package/dist/{control-C_zs63JQ-BFg3u8U5.d.mts → control-C_zs63JQ-Bzie4S4Y.d.mts} +2 -2
  45. package/dist/{control-C_zs63JQ-BFg3u8U5.d.mts.map → control-C_zs63JQ-Bzie4S4Y.d.mts.map} +1 -1
  46. package/dist/{control-BJypoZfu.mjs → control-DTKpwU3x.mjs} +2 -2
  47. package/dist/{control-BJypoZfu.mjs.map → control-DTKpwU3x.mjs.map} +1 -1
  48. package/dist/control-GTC0UlpN.d.mts +1 -0
  49. package/dist/{control-D2f07K6R.d.mts → control-i2ob_mHM.d.mts} +9 -9
  50. package/dist/{control-D2f07K6R.d.mts.map → control-i2ob_mHM.d.mts.map} +1 -1
  51. package/dist/{data-type-DPhZLx30-DP2Kmnf5.mjs → data-type-CVNHtd6y-BFa_VnCb.mjs} +4 -3
  52. package/dist/data-type-CVNHtd6y-BFa_VnCb.mjs.map +1 -0
  53. package/dist/emission-XBYOUuHN.d.mts +2 -0
  54. package/dist/{emission-types-CH6r1DQ8-eg79TO6Y.d.mts → emission-types-sz0-pyyS-D3-ssRUu.d.mts} +4 -4
  55. package/dist/{emission-types-CH6r1DQ8-eg79TO6Y.d.mts.map → emission-types-sz0-pyyS-D3-ssRUu.d.mts.map} +1 -1
  56. package/dist/{enum-accessor-BUVBc6ZH.d.mts → enum-accessor-2OZgavDX.d.mts} +4 -2
  57. package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
  58. package/dist/{enum-accessor-CAlX-HOl.mjs → enum-accessor-B-A2wNok.mjs} +17 -4
  59. package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
  60. package/dist/errors.d.mts +4 -4
  61. package/dist/errors.mjs +3 -3
  62. package/dist/errors__control.d.mts +2 -2
  63. package/dist/errors__control.mjs +1 -1
  64. package/dist/errors__execution.d.mts +1 -1
  65. package/dist/errors__execution.mjs +1 -1
  66. package/dist/errors__migration.d.mts +1 -1
  67. package/dist/errors__migration.mjs +1 -1
  68. package/dist/{execution-okmamhD2.mjs → execution-C94w3M_6.mjs} +2 -2
  69. package/dist/{execution-okmamhD2.mjs.map → execution-C94w3M_6.mjs.map} +1 -1
  70. package/dist/{execution-B_f4fR5R.d.mts → execution-CQcplRZV.d.mts} +3 -3
  71. package/dist/{execution-B_f4fR5R.d.mts.map → execution-CQcplRZV.d.mts.map} +1 -1
  72. package/dist/{execution-DbU_RTsu.d.mts → execution-oZAqgZPd.d.mts} +2 -2
  73. package/dist/{execution-DbU_RTsu.d.mts.map → execution-oZAqgZPd.d.mts.map} +1 -1
  74. package/dist/{framework-authoring-CdKfPz3Y-BGocjz36.d.mts → framework-authoring-D3AsJskV-BALZR-J9.d.mts} +131 -10
  75. package/dist/framework-authoring-D3AsJskV-BALZR-J9.d.mts.map +1 -0
  76. package/dist/{framework-components-CDiuJNYP-CwszHrSy.d.mts → framework-components-CTibZus8-BK5QlxM-.d.mts} +5 -5
  77. package/dist/{framework-components-CDiuJNYP-CwszHrSy.d.mts.map → framework-components-CTibZus8-BK5QlxM-.d.mts.map} +1 -1
  78. package/dist/ids.d.mts +1 -1
  79. package/dist/{migration-BfUEEHWP.mjs → migration-BN_eRcEi.mjs} +2 -2
  80. package/dist/{migration-BfUEEHWP.mjs.map → migration-BN_eRcEi.mjs.map} +1 -1
  81. package/dist/{migration-BmIe8pwt.d.mts → migration-DFDepmTh.d.mts} +2 -2
  82. package/dist/{migration-BmIe8pwt.d.mts.map → migration-DFDepmTh.d.mts.map} +1 -1
  83. package/dist/{parse-CJtBvEYy-wRfXv1HQ.d.mts → parse-CJtBvEYy-CtMI21Fx.d.mts} +6 -6
  84. package/dist/{parse-CJtBvEYy-wRfXv1HQ.d.mts.map → parse-CJtBvEYy-CtMI21Fx.d.mts.map} +1 -1
  85. package/dist/psl-ast-DOJH1ZST.d.mts +2 -0
  86. package/dist/{psl-ast-DJhMWL6S-Bwyl-NrU.d.mts → psl-ast-JQykH4Uz-D6tMHdnz.d.mts} +3 -3
  87. package/dist/{psl-ast-DJhMWL6S-Bwyl-NrU.d.mts.map → psl-ast-JQykH4Uz-D6tMHdnz.d.mts.map} +1 -1
  88. package/dist/psl-parser.d.mts +19 -14
  89. package/dist/psl-parser.d.mts.map +1 -1
  90. package/dist/psl-parser.mjs +145 -116
  91. package/dist/psl-parser.mjs.map +1 -1
  92. package/dist/psl-parser__format.d.mts +1 -1
  93. package/dist/psl-parser__interpret.d.mts +6 -6
  94. package/dist/psl-parser__syntax.d.mts +1 -1
  95. package/dist/psl-printer.d.mts +4 -4
  96. package/dist/{runtime-CsMROQco.d.mts → runtime-BXPhK_oW.d.mts} +2 -2
  97. package/dist/{runtime-CsMROQco.d.mts.map → runtime-BXPhK_oW.d.mts.map} +1 -1
  98. package/dist/{written-value-CQt_C72W-aKFkxVmA.d.mts → temporal-presets-adW53vQH-DPdAe_Oe.d.mts} +4 -125
  99. package/dist/temporal-presets-adW53vQH-DPdAe_Oe.d.mts.map +1 -0
  100. package/dist/{types-BBb-tMcj.d.mts → types-GNXJ7xW2.d.mts} +16 -3
  101. package/dist/types-GNXJ7xW2.d.mts.map +1 -0
  102. package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts → types-import-spec-hkPsnreE-C-fa8812.d.mts} +3 -3
  103. package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts.map → types-import-spec-hkPsnreE-C-fa8812.d.mts.map} +1 -1
  104. package/package.json +15 -15
  105. package/dist/authoring-BY3RNM--.d.mts.map +0 -1
  106. package/dist/authoring-D77CrCtb.mjs.map +0 -1
  107. package/dist/codec-BYGt3r-S.mjs +0 -28
  108. package/dist/codec-BYGt3r-S.mjs.map +0 -1
  109. package/dist/codec-CGFT5YKu.d.mts.map +0 -1
  110. package/dist/codec-types-B5_YzEwo-DVCRRWlg.d.mts.map +0 -1
  111. package/dist/control-GrJDRvbD.d.mts +0 -1
  112. package/dist/data-type-DPhZLx30-DP2Kmnf5.mjs.map +0 -1
  113. package/dist/emission-D9fjPyAg.d.mts +0 -2
  114. package/dist/enum-accessor-BUVBc6ZH.d.mts.map +0 -1
  115. package/dist/enum-accessor-CAlX-HOl.mjs.map +0 -1
  116. package/dist/framework-authoring-CdKfPz3Y-BGocjz36.d.mts.map +0 -1
  117. package/dist/psl-ast-BrpUfqBu.d.mts +0 -2
  118. package/dist/types-BBb-tMcj.d.mts.map +0 -1
  119. package/dist/written-value-CQt_C72W-aKFkxVmA.d.mts.map +0 -1
@@ -14,7 +14,7 @@ function isImmutable(value) {
14
14
  return Object.isFrozen(value) || kindOf(value).startsWith("[object Temporal.");
15
15
  }
16
16
  /**
17
- * 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.
17
+ * 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, and, for a data type whose equal values have more than one stored form, any value the type's equality holds equal to a member, so `0.50` is the `numeric` member `0.5`. Without a codec, members are their stored forms.
18
18
  */
19
19
  function createEnumAccessor(contractEnum, codec) {
20
20
  const read = (stored) => {
@@ -45,14 +45,27 @@ function createEnumAccessor(contractEnum, codec) {
45
45
  }]))));
46
46
  const allImmutable = entries.every((entry) => entry.immutable);
47
47
  const immutableValues = Object.freeze(entries.map((entry) => entry.value));
48
+ const equalityKey = codec?.dataType.equalityKey;
48
49
  const primitiveOrdinals = /* @__PURE__ */ new Map();
49
50
  const objectOrdinals = /* @__PURE__ */ new Map();
51
+ const equalOrdinals = /* @__PURE__ */ new Map();
50
52
  entries.forEach((entry, ordinal) => {
51
53
  if (isObject(entry.value)) objectOrdinals.set(storedFormKey(entry.value), ordinal);
52
54
  else primitiveOrdinals.set(entry.value, ordinal);
55
+ if (equalityKey !== void 0) equalOrdinals.set(equalityKey(entry.stored), ordinal);
53
56
  });
57
+ /** The member the data type's equality holds `v` equal to, for a type whose equal values have more than one stored form. */
58
+ const equalOrdinalOf = (v) => {
59
+ if (equalityKey === void 0 || codec === void 0) return -1;
60
+ try {
61
+ return equalOrdinals.get(equalityKey(codec.dataType.toContract(codec.toDataTypeValue(v)))) ?? -1;
62
+ } catch (error) {
63
+ if (isInternalError(error)) throw error;
64
+ return -1;
65
+ }
66
+ };
54
67
  const ordinalOf = (v) => {
55
- if (!isObject(v)) return primitiveOrdinals.get(v) ?? -1;
68
+ if (!isObject(v)) return primitiveOrdinals.get(v) ?? equalOrdinalOf(v);
56
69
  let key;
57
70
  try {
58
71
  key = storedFormKey(v);
@@ -62,7 +75,7 @@ function createEnumAccessor(contractEnum, codec) {
62
75
  }
63
76
  const ordinal = objectOrdinals.get(key) ?? -1;
64
77
  const member = entries[ordinal]?.value;
65
- return isObject(member) && kindOf(member) === kindOf(v) ? ordinal : -1;
78
+ return isObject(member) && kindOf(member) === kindOf(v) ? ordinal : equalOrdinalOf(v);
66
79
  };
67
80
  return {
68
81
  get values() {
@@ -106,4 +119,4 @@ function buildNamespacedEnums(domain, codecFor) {
106
119
  //#endregion
107
120
  export { buildNamespacedEnums as n, createEnumAccessor as r, buildEnumsMapForNamespace as t };
108
121
 
109
- //# sourceMappingURL=enum-accessor-CAlX-HOl.mjs.map
122
+ //# sourceMappingURL=enum-accessor-B-A2wNok.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-accessor-B-A2wNok.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, and, for a data type whose equal values have more than one stored form, any value the type's equality holds equal to a member, so `0.50` is the `numeric` member `0.5`. 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 equalityKey = codec?.dataType.equalityKey;\n\tconst primitiveOrdinals = /* @__PURE__ */ new Map();\n\tconst objectOrdinals = /* @__PURE__ */ new Map();\n\tconst equalOrdinals = /* @__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\tif (equalityKey !== void 0) equalOrdinals.set(equalityKey(entry.stored), ordinal);\n\t});\n\t/** The member the data type's equality holds `v` equal to, for a type whose equal values have more than one stored form. */\n\tconst equalOrdinalOf = (v) => {\n\t\tif (equalityKey === void 0 || codec === void 0) return -1;\n\t\ttry {\n\t\t\treturn equalOrdinals.get(equalityKey(codec.dataType.toContract(codec.toDataTypeValue(v)))) ?? -1;\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn -1;\n\t\t}\n\t};\n\tconst ordinalOf = (v) => {\n\t\tif (!isObject(v)) return primitiveOrdinals.get(v) ?? equalOrdinalOf(v);\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 : equalOrdinalOf(v);\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,UAAU,YAAY,UAAU;AAC/C;AACA,SAAS,OAAO,OAAO;CACtB,OAAO,OAAO,UAAU,SAAS,KAAK,KAAK;AAC5C;AACA,SAAS,YAAY,OAAO;CAC3B,IAAI,CAAC,SAAS,KAAK,GAAG,OAAO;CAC7B,IAAI,iBAAiB,QAAQ,iBAAiB,YAAY,OAAO;CACjE,OAAO,OAAO,SAAS,KAAK,KAAK,OAAO,KAAK,CAAC,CAAC,WAAW,mBAAmB;AAC9E;;;;AAIA,SAAS,mBAAmB,cAAc,OAAO;CAChD,MAAM,QAAQ,WAAW;EACxB,MAAM,OAAO,gBAAgB,MAAM;EACnC,OAAO,UAAU,KAAK,IAAI,OAAO,MAAM,kBAAkB,MAAM,SAAS,aAAa,MAAM,CAAC,CAAC,CAAC;CAC/F;CACA,MAAM,iBAAiB,UAAU,mBAAmB,UAAU,KAAK,IAAI,QAAQ,MAAM,SAAS,WAAW,MAAM,gBAAgB,KAAK,CAAC,CAAC;CACtI,MAAM,UAAU,aAAa,QAAQ,KAAK,WAAW;EACpD,MAAM,QAAQ,KAAK,OAAO,KAAK;EAC/B,OAAO;GACN,MAAM,OAAO;GACb,QAAQ,OAAO;GACf;GACA,WAAW,YAAY,KAAK;EAC7B;CACD,CAAC;CACD,MAAM,UAAU,UAAU;EACzB,IAAI,MAAM,WAAW,OAAO,MAAM;EAClC,IAAI,MAAM,iBAAiB,MAAM,OAAO,IAAI,KAAK,MAAM,MAAM,QAAQ,CAAC;EACtE,IAAI,MAAM,iBAAiB,YAAY,OAAO,WAAW,KAAK,MAAM,KAAK;EAC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CAAC;EACtB,SAAS,OAAO;GACf,IAAI,gBAAgB,KAAK,GAAG,MAAM;GAClC,OAAO;EACR;EACA,MAAM,UAAU,eAAe,IAAI,GAAG,KAAK;EAC3C,MAAM,SAAS,QAAQ,QAAQ,EAAE;EACjC,OAAO,SAAS,MAAM,KAAK,OAAO,MAAM,MAAM,OAAO,CAAC,IAAI,UAAU,eAAe,CAAC;CACrF;CACA,OAAO;EACN,IAAI,SAAS;GACZ,OAAO,eAAe,kBAAkB,OAAO,OAAO,QAAQ,IAAI,MAAM,CAAC;EAC1E;EACA;EACA;EACA,MAAM,MAAM,UAAU,CAAC,MAAM;EAC7B,UAAU,SAAS,QAAQ,IAAI,IAAI;EACnC,SAAS,MAAM;GACd,MAAM,UAAU,UAAU,CAAC;GAC3B,OAAO,YAAY,KAAK,KAAK,IAAI,MAAM;EACxC;EACA;CACD;AACD;;;;AAIA,SAAS,0BAA0B,QAAQ,aAAa,UAAU;CACjE,MAAM,SAAS,CAAC;CAChB,MAAM,YAAY,OAAO,WAAW;CACpC,IAAI,WAAW,MAAM,KAAK,MAAM,CAAC,MAAM,iBAAiB,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"}
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-C_zs63JQ-BFg3u8U5.mjs";
2
- import "./control-GrJDRvbD.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-B_f4fR5R.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-BmIe8pwt.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-Bzie4S4Y.mjs";
2
+ import "./control-GTC0UlpN.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-CQcplRZV.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-DFDepmTh.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 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-dBsEDbTP.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-okmamhD2.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-BfUEEHWP.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-w9cKGBgd.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-C94w3M_6.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-BN_eRcEi.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-C_zs63JQ-BFg3u8U5.mjs";
2
- import "./control-GrJDRvbD.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-Bzie4S4Y.mjs";
2
+ import "./control-GTC0UlpN.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 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-dBsEDbTP.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-w9cKGBgd.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-B_f4fR5R.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-CQcplRZV.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-okmamhD2.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-C94w3M_6.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-BmIe8pwt.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-DFDepmTh.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-BfUEEHWP.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-BN_eRcEi.mjs";
2
2
  export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };
@@ -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-Bv8UK63M-dBsEDbTP.mjs";
3
+ import { t as CliStructuredError } from "./control-Bv8UK63M-w9cKGBgd.mjs";
4
4
  //#region ../../../1-framework/1-core/errors/dist/execution.mjs
5
5
  /**
6
6
  * Contract marker not found in database.
@@ -169,4 +169,4 @@ function errorRuntime(code, summary, options) {
169
169
  //#endregion
170
170
  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 };
171
171
 
172
- //# sourceMappingURL=execution-okmamhD2.mjs.map
172
+ //# sourceMappingURL=execution-C94w3M_6.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-okmamhD2.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 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\tthrow errorMarkerReadFailed({\n\t\twhy: err instanceof Error ? err.message : String(err),\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,OAAO,QAAQ,MAAM;EAC7B,GAAG,UAAU,SAAS,QAAQ,KAAK;CACpC,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA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AS;CAC/C,OAAO,IAAI,mBAAmB,uCAAuC,QAAQ,SAAS;EACrF,KAAK;EACL,KAAK;EACL,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;EACV,GAAG;GACF,MAAM;GACN,OAAO;EACR,CAAC;EACD,MAAM;GACL,oBAAoB,QAAQ;GAC5B,GAAG,UAAU,UAAU,QAAQ,MAAM;EACtC;CACD,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS,SAAS;CAC5C,OAAO,IAAI,mBAAmB,2BAA2B,SAAS;EACjE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,UAAU,eAAe,SAAS,WAAW;EAChD,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;EAC7C,GAAG,UAAU,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-C94w3M_6.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 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\tthrow errorMarkerReadFailed({\n\t\twhy: err instanceof Error ? err.message : String(err),\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,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GAAG,UAAU,UAAU,QAAQ,MAAM;EACtC;CACD,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS,SAAS;CAC5C,OAAO,IAAI,mBAAmB,2BAA2B,SAAS;EACjE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,UAAU,eAAe,SAAS,WAAW;EAChD,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;EAC7C,GAAG,UAAU,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,6 +1,6 @@
1
- import { Nt as SchemaDiffIssue, an as VerifyDatabaseSchemaResult } from "./control-D2f07K6R.mjs";
1
+ import { Nt as SchemaDiffIssue, an as VerifyDatabaseSchemaResult } from "./control-i2ob_mHM.mjs";
2
2
  import { i as NextAction, r as Diagnostic } from "./structured-error-Cc7AIRsp.mjs";
3
- import { i as CliStructuredError } from "./control-C_zs63JQ-BFg3u8U5.mjs";
3
+ import { i as CliStructuredError } from "./control-C_zs63JQ-Bzie4S4Y.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-B_f4fR5R.d.mts.map
96
+ //# sourceMappingURL=execution-CQcplRZV.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-B_f4fR5R.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-CQcplRZV.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,4 +1,4 @@
1
- import { M as TargetDescriptor, N as TargetInstance, _ as FamilyInstance, g as FamilyDescriptor, l as DriverDescriptor, m as ExtensionInstance, n as AdapterInstance, p as ExtensionDescriptor, t as AdapterDescriptor, u as DriverInstance } from "./framework-components-CDiuJNYP-CwszHrSy.mjs";
1
+ import { M as TargetDescriptor, N as TargetInstance, _ as FamilyInstance, g as FamilyDescriptor, l as DriverDescriptor, m as ExtensionInstance, n as AdapterInstance, p as ExtensionDescriptor, t as AdapterDescriptor, u as DriverInstance } from "./framework-components-CTibZus8-BK5QlxM-.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-DbU_RTsu.d.mts.map
79
+ //# sourceMappingURL=execution-oZAqgZPd.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-DbU_RTsu.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/execution.d.mts"],"mappings":";;;UAEU,sBAAsB,kCAAkC,eAAe;UACvE,sBAAsB,0BAA0B,kCAAkC,eAAe,WAAW;UAC5G,uBAAuB,0BAA0B,kCAAkC,gBAAgB,WAAW;UAC9G,sBAAsB,0BAA0B,kCAAkC,eAAe,WAAW;UAC5G,yBAAyB,0BAA0B,kCAAkC,kBAAkB,WAAW;;;UAGlH,eAAe,0BAA0B,0BAA0B,yBAAyB,uBAAuB,WAAW,aAAa,uBAAuB,WAAW,YAAY,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW;WAC3Z,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW,WAAW;WACxD,QAAQ,wBAAwB,WAAW,oBAAoB;WAC/D,qBAAqB,2BAA2B,WAAW,WAAW;;UAEvE,uBAAuB,0BAA0B,0BAA0B,yBAAyB,uBAAuB,WAAW,aAAa,uBAAuB,WAAW,YAAY,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW;WACna,OAAO,eAAe,WAAW,WAAW,kBAAkB,iBAAiB;WAC/E,QAAQ,sBAAsB,WAAW;WACzC,SAAS;WACT,QAAQ;WACR,qBAAqB;;iBAEf,qBAAqB,0BAA0B,0BAA0B,wBAAwB,sBAAsB,WAAW,YAAY,0BAA0B,wBAAwB,WAAW,WAAW,kBAAkB,yBAAyB,uBAAuB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,WAAW,mBAAmB,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YA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P,UAAU;;;;iBAIK,2CAA2C,0BAA0B,4BAA4B,UAAU,QAAQ,QAAQ,SAAS;WAC1I;aACE;aACA,aAAa;;WAEf,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,qBAAqB,2BAA2B,WAAW"}
@@ -1,14 +1,134 @@
1
1
  import { B as JsonValue, N as ExecutionMutationDefaultPhases, a as ColumnDefault } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
- import { p as CodecLookupWithDescriptors, v as DataTypeId, y as DataTypeLookup } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
2
+ import { T as DataTypeValue, b as DataTypeParams, p as CodecLookupWithDescriptors, v as DataTypeId, y as DataTypeLookup } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
3
+ import { r as Result } from "./result-BYCOANWy.mjs";
3
4
  import { Type } from "arktype";
4
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
- //#region ../../../1-framework/1-core/framework-components/dist/framework-authoring-CdKfPz3Y.d.mts
6
+ //#region ../../../1-framework/1-core/framework-components/dist/framework-authoring-D3AsJskV.d.mts
6
7
  //#region src/shared/option-descriptor.d.ts
7
8
  interface AuthoringOption {
8
9
  readonly kind: 'option';
9
10
  readonly values: readonly string[];
10
11
  }
11
12
  //#endregion
13
+ //#region src/shared/written-value.d.ts
14
+ /** One written value, in the syntax a contract source wrote it in. The framework defines the list shape, and the family's default reader is the only reader of it. ADR 254. */
15
+ type WrittenValue = {
16
+ readonly kind: 'tag';
17
+ readonly tag: string;
18
+ readonly text: string;
19
+ } | {
20
+ readonly kind: 'string';
21
+ readonly text: string;
22
+ } | {
23
+ readonly kind: 'boolean';
24
+ readonly value: boolean;
25
+ } | {
26
+ readonly kind: 'number';
27
+ readonly text: string;
28
+ } | {
29
+ readonly kind: 'list';
30
+ readonly elements: readonly WrittenValue[];
31
+ };
32
+ type WrittenScalar = Exclude<WrittenValue, {
33
+ readonly kind: 'list';
34
+ }>;
35
+ /** A stack's registered data types with their authoring entries, and the data type each of its codecs represents. */
36
+ interface DataTypeSupport {
37
+ readonly entries: Readonly<Record<string, DataTypeAuthoringEntry>>;
38
+ readonly lookup: DataTypeLookup;
39
+ readonly dataTypeOfCodec: (codecId: string) => DataTypeId | undefined;
40
+ }
41
+ type ReadRefusal = {
42
+ readonly kind: 'unreadable';
43
+ readonly message: string;
44
+ } | {
45
+ readonly kind: 'unknown-tag';
46
+ readonly tag: string;
47
+ readonly known: readonly string[];
48
+ } | {
49
+ readonly kind: 'unwritable';
50
+ readonly syntax: 'string' | 'boolean' | 'number';
51
+ };
52
+ type CastRefusal = {
53
+ readonly kind: 'no-cast';
54
+ readonly receivingType: DataTypeId;
55
+ /** The parameters the receiving position holds its value under. */
56
+ readonly receivingParams: DataTypeParams;
57
+ readonly valueType: DataTypeId;
58
+ readonly casts: readonly string[];
59
+ } | {
60
+ readonly kind: 'unreadable';
61
+ readonly message: string;
62
+ } | {
63
+ /** The receiving type does not hold the value under the receiving position's parameters. */
64
+ readonly kind: 'refused-by-type';
65
+ readonly receivingType: DataTypeId;
66
+ readonly message: string;
67
+ };
68
+ /** A cast-rule refusal worded for a diagnostic. */
69
+ interface RefusalDescription {
70
+ readonly code: 'PSL_UNKNOWN_LITERAL_TAG' | 'PSL_VALUE_TYPE_INCOMPATIBLE' | 'PSL_INVALID_LITERAL';
71
+ readonly message: string;
72
+ }
73
+ /** A syntax a value is written in, with the phrase a diagnostic names it by. */
74
+ type WrittenForm = {
75
+ readonly kind: 'tag';
76
+ readonly tag: string;
77
+ readonly phrase: string;
78
+ } | {
79
+ readonly kind: 'string' | 'boolean' | 'number';
80
+ readonly phrase: string;
81
+ };
82
+ /** What a refusal tells the author to write: the forms the position admits, and an exact rewrite of the written value when there is one. */
83
+ interface RefusalGuidance {
84
+ /** Each form the position admits, as {@link admittedForms} lists them. */
85
+ readonly forms: readonly WrittenForm[];
86
+ /** The written value rewritten in an admitted form, as in ``sql`8` ``. */
87
+ readonly rewrite: string | undefined;
88
+ }
89
+ /**
90
+ * Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.
91
+ */
92
+ declare function describeRefusal(refusal: ReadRefusal | CastRefusal, support: DataTypeSupport, guidance: RefusalGuidance): RefusalDescription;
93
+ /** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */
94
+ declare function describeExpected(forms: readonly WrittenForm[]): string;
95
+ /**
96
+ * Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.
97
+ */
98
+ declare function describeRefusedValueType(refused: {
99
+ readonly receivingType: DataTypeId;
100
+ readonly valueType: DataTypeId;
101
+ }, support: DataTypeSupport, guidance: RefusalGuidance): string;
102
+ /**
103
+ * The literal to write in place of a quoted string that `receivingType` refuses under `receivingParams`: the string as a literal of the first tag the type admits, or else the string's text unquoted, as a number or a boolean. `undefined` when the value is not a quoted string, no such literal reads back as the same text, or the type would refuse each of them too.
104
+ */
105
+ declare function exactRewrite(support: DataTypeSupport, receiving: {
106
+ readonly receivingType: DataTypeId;
107
+ readonly receivingParams: DataTypeParams;
108
+ }, written: WrittenScalar): string | undefined;
109
+ interface FoundEntry {
110
+ readonly key: string;
111
+ readonly entry: DataTypeAuthoringEntry;
112
+ }
113
+ /** The entry a tag names, or `undefined` when no pack registered that tag. */
114
+ declare function entryForTag(support: DataTypeSupport, tag: string): FoundEntry | undefined;
115
+ /** The entry that reads a plain string, boolean or number, or `undefined` when none does. */
116
+ declare function entryForPlain(support: DataTypeSupport, syntax: 'string' | 'boolean' | 'number'): FoundEntry | undefined;
117
+ /** Every tag a stack registers, in the order the entries were merged. */
118
+ declare function knownTags(support: DataTypeSupport): readonly string[];
119
+ /** Read one written value through the authoring entry for its syntax, as a value its type constructs. */
120
+ declare function readWrittenValue(support: DataTypeSupport, written: WrittenScalar): Result<DataTypeValue, ReadRefusal>;
121
+ /** Take a value into the receiving type, directly or through the cast that type declares; the receiving type constructs the result under `receivingParams`, the parameters of the position that receives it. */
122
+ declare function castTypedValue(support: DataTypeSupport, receivingType: DataTypeId, receivingParams: DataTypeParams, value: DataTypeValue): Result<DataTypeValue, CastRefusal>;
123
+ /** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */
124
+ declare function admittedTags(support: DataTypeSupport, dataType: DataTypeId): readonly string[];
125
+ /** The form a value of a tagged literal's type is written in. */
126
+ declare function tagForm(tag: string): WrittenForm;
127
+ /** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */
128
+ declare function admittedForms(support: DataTypeSupport, receivingTypes: readonly DataTypeId[]): readonly WrittenForm[];
129
+ /** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */
130
+ declare function describeAdmittedForms(support: DataTypeSupport, dataType: DataTypeId): string;
131
+ //#endregion
12
132
  //#region src/shared/psl-extension-block.d.ts
13
133
  interface PslPosition {
14
134
  readonly offset: number;
@@ -156,8 +276,8 @@ interface ParsedPslExtensionBlock<Values = Readonly<Record<string, unknown>>> {
156
276
  readonly name: string;
157
277
  readonly values: Values;
158
278
  readonly parameterSpans: Readonly<Record<string, PslSpan>>;
159
- /** The source text of each entry whose value is a number literal, by key, so a reader can keep digits a JavaScript number loses. */
160
- readonly numberTexts?: Readonly<Record<string, string>>;
279
+ /** Each entry whose value is a literal, by key, as it is written: its syntax and source text, so a reader takes it by the cast rule and keeps digits a JavaScript number loses. ADR 254. */
280
+ readonly writtenValues?: Readonly<Record<string, WrittenScalar>>;
161
281
  readonly attributes: Readonly<Record<string, PslExtensionBlockParsedAttribute>>;
162
282
  readonly span: PslSpan;
163
283
  }
@@ -345,12 +465,13 @@ interface AuthoringWarningSink {
345
465
  * of different codes never batch into each other's summary.
346
466
  */
347
467
  declare function flushAuthoringWarnings(warnings: readonly AuthoringWarning[]): void;
348
- /** A written value read for a codec: its stored form, or why it is refused. */
468
+ /** A written value read for a codec: its stored form, or why it is refused, as a diagnostic's code and message. */
349
469
  type WrittenValueReading = {
350
470
  readonly ok: true;
351
471
  readonly value: JsonValue;
352
472
  } | {
353
473
  readonly ok: false;
474
+ readonly code: string;
354
475
  readonly message: string;
355
476
  };
356
477
  interface AuthoringEntityContext {
@@ -367,10 +488,10 @@ interface AuthoringEntityContext {
367
488
  /** Push channel for non-fatal authoring-time warnings emitted by the factory. */
368
489
  readonly warnings?: AuthoringWarningSink;
369
490
  /**
370
- * 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.
491
+ * Reads a value written in the contract source outside a default, such as an enum member's value, the way a column default is read: the value's syntax gives it 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 value as JSON.
371
492
  */
372
- readonly readWrittenNumber?: (input: {
373
- readonly text: string;
493
+ readonly readWrittenValueForCodec?: (input: {
494
+ readonly written: WrittenScalar;
374
495
  readonly codecId: string;
375
496
  readonly subject: string;
376
497
  }) => WrittenValueReading | undefined;
@@ -736,5 +857,5 @@ declare function instantiateAuthoringFieldPreset(descriptor: AuthoringFieldPrese
736
857
  readonly unique: boolean;
737
858
  };
738
859
  //#endregion
739
- 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, isAuthoringSelectRef as at, AuthoringModelAttributeLoweringOutput as b, AuthoringEntityTypeDescriptor as c, resolveAuthoringTemplateValue as ct, AuthoringEntityTypeTemplateOutput as d, validateAuthoringTypeParams as dt, 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, resolveEnumCodecId as lt, AuthoringFieldPresetOutput as m, AuthoringArgumentDescriptor as n, isAuthoringFieldPresetDescriptor as nt, AuthoringDiagnosticSink as o, isAuthoringTypeConstructorDescriptor as ot, AuthoringFieldPresetDescriptor as p, classifyEnumMemberType as q, AuthoringAttributeSpecContributions as r, isAuthoringModelAttributeDescriptor as rt, AuthoringEntityContext as s, mergeAuthoringNamespaces as st, AuthoringArgRef as t, isAuthoringEntityTypeDescriptor as tt, AuthoringEntityTypeNamespace as u, validateAuthoringHelperArguments as ut, AuthoringModelAttributeEntityOutput as v, AuthoringSelectRef as w, AuthoringOption as x, AuthoringModelAttributeIndexOutput as y, PslExtensionBlockAttributeArg as z };
740
- //# sourceMappingURL=framework-authoring-CdKfPz3Y-BGocjz36.d.mts.map
860
+ export { admittedForms as $, AuthoringWarning as A, tagForm as At, PslExtensionBlockAttribute as B, AuthoringPslBlockDescriptorNamespace as C, isAuthoringSelectRef as Ct, AuthoringTypeConstructorDescriptor as D, readWrittenValue as Dt, AuthoringTemplateValue as E, mergeAuthoringNamespaces as Et, DataTypeSupport as F, PslSpan as G, PslExtensionBlockParsedAttribute as H, DataTypeWrittenForm as I, RefusalGuidance as J, ReadRefusal as K, ParsedPslExtensionBlock as L, CastRefusal as M, validateAuthoringTypeParams as Mt, ContributedPslDiagnosticCode as N, AuthoringTypeConstructorEntityRef as O, resolveAuthoringTemplateValue as Ot, DataTypeAuthoringEntry as P, WrittenValue as Q, PslDiagnosticCode as R, AuthoringPslBlockDescriptor as S, isAuthoringPslBlockDescriptor as St, AuthoringStorageTypeTemplate as T, knownTags as Tt, PslExtensionBlockPrintEntry as U, PslExtensionBlockAttributeArg as V, PslPosition as W, WrittenForm as X, ScalarTypeConstructorOutput as Y, WrittenScalar as Z, AuthoringModelAttributeDescriptorNamespace as _, instantiateAuthoringTypeConstructor as _t, AuthoringContributions as a, collectScalarTypeConstructors as at, AuthoringModelAttributeLoweringOutput as b, isAuthoringFieldPresetDescriptor as bt, AuthoringEntityTypeDescriptor as c, describeRefusal as ct, AuthoringEntityTypeTemplateOutput as d, entryForTag as dt, admittedTags as et, AuthoringFieldNamespace as f, exactRewrite as ft, AuthoringModelAttributeDescriptor as g, instantiateAuthoringFieldPreset as gt, AuthoringModelAttributeContext as h, instantiateAuthoringEntityType as ht, AuthoringColumnDefaultTemplate as i, classifyEnumMemberType as it, AuthoringWarningSink as j, validateAuthoringHelperArguments as jt, AuthoringTypeNamespace as k, resolveEnumCodecId as kt, AuthoringEntityTypeFactoryOutput as l, describeRefusedValueType as lt, AuthoringFieldPresetOutput as m, getAuthoringTypeConstructor as mt, AuthoringArgumentDescriptor as n, assertResolvableTypeConstructorTemplates as nt, AuthoringDiagnosticSink as o, describeAdmittedForms as ot, AuthoringFieldPresetDescriptor as p, flushAuthoringWarnings as pt, RefusalDescription as q, AuthoringAttributeSpecContributions as r, castTypedValue as rt, AuthoringEntityContext as s, describeExpected as st, AuthoringArgRef as t, assertNoCrossRegistryCollisions as tt, AuthoringEntityTypeNamespace as u, entryForPlain as ut, AuthoringModelAttributeEntityOutput as v, isAuthoringArgRef as vt, AuthoringSelectRef as w, isAuthoringTypeConstructorDescriptor as wt, AuthoringOption as x, isAuthoringModelAttributeDescriptor as xt, AuthoringModelAttributeIndexOutput as y, isAuthoringEntityTypeDescriptor as yt, PslExtensionBlock as z };
861
+ //# sourceMappingURL=framework-authoring-D3AsJskV-BALZR-J9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework-authoring-D3AsJskV-BALZR-J9.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-authoring-D3AsJskV.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;;;;;KAKN;WACM;WACA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA,mBAAmB;;KAEzB,gBAAgB,QAAQ;WAClB;;;UAGD;WACC,SAAS,SAAS,eAAe;WACjC,QAAQ;WACR,kBAAkB,oBAAoB;;KAE5C;WACM;WACA;;WAEA;WACA;WACA;;WAEA;WACA;;KAEN;WACM;WACA,eAAe;;WAEf,iBAAiB;WACjB,WAAW;WACX;;WAEA;WACA;;;WAGA;WACA,eAAe;WACf;;;UAGD;WACC;WACA;;;KAGN;WACM;WACA;WACA;;WAEA;WACA;;;UAGD;;WAEC,gBAAgB;;WAEhB;;;;;iBAKM,gBAAgB,SAAS,cAAc,aAAa,SAAS,iBAAiB,UAAU,kBAAkB;;iBAE1G,iBAAiB,gBAAgB;;;;iBAIjC,yBAAyB;WAC/B,eAAe;WACf,WAAW;GACnB,SAAS,iBAAiB,UAAU;;;;iBAItB,aAAa,SAAS,iBAAiB;WAC7C,eAAe;WACf,iBAAiB;GACzB,SAAS;UACF;WACC;WACA,OAAO;;;iBAGD,YAAY,SAAS,iBAAiB,cAAc;;iBAEpD,cAAc,SAAS,iBAAiB,0CAA0C;;iBAElF,UAAU,SAAS;;iBAEnB,iBAAiB,SAAS,iBAAiB,SAAS,gBAAgB,OAAO,eAAe;;iBAE1F,eAAe,SAAS,iBAAiB,eAAe,YAAY,iBAAiB,gBAAgB,OA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AA+B,mBAAmB,oBAAoB,YAAY,+BAA+B,0BAA0B,KAAK,yBAAyB;iBACzK,gCAAgC,YAAY,gCAAgC;WAClF,YAAY;WACZ;WACA,UAAU;WACV,oBAAoB;WACpB;WACA"}
@@ -1,9 +1,9 @@
1
1
  import { P as ExecutionMutationDefaultValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
- import { _ as DataType, t as AnyCodecDescriptor } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
3
- import { a as AuthoringContributions } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
2
+ import { _ as DataType, t as AnyCodecDescriptor } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
3
+ import { a as AuthoringContributions } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
4
4
  import { c as MutationDefaultGeneratorDescriptor, i as ControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
5
- import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-B2nK2jwW-DkF7t1NL.mjs";
6
- //#region ../../../1-framework/1-core/framework-components/dist/framework-components-CDiuJNYP.d.mts
5
+ import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-hkPsnreE-C-fa8812.mjs";
6
+ //#region ../../../1-framework/1-core/framework-components/dist/framework-components-CTibZus8.d.mts
7
7
  //#region src/shared/generator-functions.d.ts
8
8
  /** The phase a client generator runs in: when a row is created, or every time it is updated. */
9
9
  type GeneratorPhase = 'onCreate' | 'onUpdate';
@@ -419,4 +419,4 @@ interface ExtensionInstance<TFamilyId extends string, TTargetId extends string>
419
419
  }
420
420
  //#endregion
421
421
  export { PrintedGeneratorCall as A, GeneratorFunctionField as C, GeneratorPhase as D, GeneratorFunctionSummary as E, assembleGeneratorFunctions as F, checkContractComponentRequirements as I, singleGeneratorBinding as L, TargetDescriptor as M, TargetInstance as N, PackRefBase as O, TargetPackRef as P, GeneratorFunctionContribution as S, GeneratorFunctionResolution as T, FamilyInstance as _, ComponentDescriptor as a, GeneratorFunctionCall as b, ContractComponentRequirementsCheckResult as c, DriverPackRef as d, EMPTY_GENERATOR_FUNCTIONS as f, FamilyDescriptor as g, ExtensionPackRef as h, BindingResolution as i, TargetBoundComponentDescriptor as j, PrintedArguments as k, DriverDescriptor as l, ExtensionInstance as m, AdapterInstance as n, ComponentMetadata as o, ExtensionDescriptor as p, AdapterPackRef as r, ContractComponentRequirementsCheckInput as s, AdapterDescriptor as t, DriverInstance as u, FamilyPackRef as v, GeneratorFunctionRegistry as w, GeneratorFunctionComponent as x, GeneratorFunctionBinding as y };
422
- //# sourceMappingURL=framework-components-CDiuJNYP-CwszHrSy.d.mts.map
422
+ //# sourceMappingURL=framework-components-CTibZus8-BK5QlxM-.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework-components-CDiuJNYP-CwszHrSy.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-CDiuJNYP.d.mts"],"mappings":";;;;;;;;KAOK;;UAEK;WACC;WACA,YAAY,SAAS;;;UAGtB;WACC;WACA,MAAM,SAAS;;;KAGrB;WACM;WACA,WAAW;;WAEX;WACA;;;UAGD;WACC,MAAM,SAAS;WACf;;UAED;WACC;;WAEA;WACA,UAAU;aACR,MAAM,SAAS;aACf,OAAO;QACZ;;WAEG,iBAAiB,WAAW,+BAA+B,OAAO,2BAA2B;;UAE9F;WACC;;WAEA;WACA,mBAAmB;;UAEpB;WACC;WACA;;KAEN;WACM;WACA,WAAW;;WAEX;WACA;WACA;;WAEA;WACA;WACA;;;UAGD;WACC,MAAM;WACN;;UAED;EACR,aAAa,2BAA2B;EACxC,IAAI;EACJ,QAAQ,MAAM,uBAAuB,OAAO,yBAAyB;EACrE,QAAQ,WAAW,+BAA+B,OAAO,yBAAyB;;;UAG1E;WACC;WACA,8BAA8B;WAC9B;aACE,+BAA+B;;;;;;iBAM3B,2BAA2B,aAAa,cAAc,8BAA8B;;;;iBAIpF,uBAAuB;WAC7B;WACA;WACA,mBAAmB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;;;;;;;;;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-CTibZus8-BK5QlxM-.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-CTibZus8.d.mts"],"mappings":";;;;;;;;KAOK;;UAEK;WACC;WACA,YAAY,SAAS;;;UAGtB;WACC;WACA,MAAM,SAAS;;;KAGrB;WACM;WACA,WAAW;;WAEX;WACA;;;UAGD;WACC,MAAM,SAAS;WACf;;UAED;WACC;;WAEA;WACA,UAAU;aACR,MAAM,SAAS;aACf,OAAO;QACZ;;WAEG,iBAAiB,WAAW,+BAA+B,OAAO,2BAA2B;;UAE9F;WACC;;WAEA;WACA,mBAAmB;;UAEpB;WACC;WACA;;KAEN;WACM;WACA,WAAW;;WAEX;WACA;WACA;;WAEA;WACA;WACA;;;UAGD;WACC,MAAM;WACN;;UAED;EACR,aAAa,2BAA2B;EACxC,IAAI;EACJ,QAAQ,MAAM,uBAAuB,OAAO,yBAAyB;EACrE,QAAQ,WAAW,+BAA+B,OAAO,yBAAyB;;;UAG1E;WACC;WACA,8BAA8B;WAC9B;aACE,+BAA+B;;;;;;iBAM3B,2BAA2B,aAAa,cAAc,8BAA8B;;;;iBAIpF,uBAAuB;WAC7B;WACA;WACA,mBAAmB,OAAO,2BAA2B,SAAS;IACrE;;cAEU,2BAA2B;;;;;;UAM/B;;WAEC;;;;;;WAMA,eAAe;;WAEf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,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"}
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-CGFT5YKu.mjs";
2
+ import { s as ColumnTypeDescriptor } from "./codec-DkiEF2cQ.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";
@@ -1,4 +1,4 @@
1
- import { n as UPGRADE_GUIDES_URL, t as CliStructuredError } from "./control-Bv8UK63M-dBsEDbTP.mjs";
1
+ import { n as UPGRADE_GUIDES_URL, t as CliStructuredError } from "./control-Bv8UK63M-w9cKGBgd.mjs";
2
2
  //#region ../../../1-framework/1-core/errors/dist/migration.mjs
3
3
  /**
4
4
  * A scaffolded migration contains a placeholder slot that was never filled in.
@@ -150,4 +150,4 @@ function errorMigrationOperationOptionRemoved(options) {
150
150
  //#endregion
151
151
  export { errorMigrationPlanNotArray as a, placeholder as c, errorMigrationOperationOptionRemoved as i, unfilledPlaceholderOperation as l, errorMigrationFileMissing as n, errorMigrationTargetMismatch as o, errorMigrationInvalidDefaultExport as r, errorUnfilledPlaceholder as s, errorDataTransformContractMismatch as t };
152
152
 
153
- //# sourceMappingURL=migration-BfUEEHWP.mjs.map
153
+ //# sourceMappingURL=migration-BN_eRcEi.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-BfUEEHWP.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError, w as UPGRADE_GUIDES_URL } from \"./control-Bv8UK63M.mjs\";\n//#region src/migration.ts\n/**\n* A scaffolded migration contains a placeholder slot that was never filled in.\n*\n* Thrown at emit time (when `check.source()` or `run()` is invoked) via the\n* `placeholder(...)` utility. The `slot` identifies the exact location the\n* author still needs to edit, e.g. `\"backfill-product-status:check.source\"`.\n*/\nfunction errorUnfilledPlaceholder(slot) {\n\treturn new CliStructuredError(\"MIGRATION.UNFILLED_PLACEHOLDER\", \"Unfilled migration placeholder\", {\n\t\twhy: `The migration contains a placeholder that has not been filled in: ${slot}`,\n\t\tfix: \"Open migration.ts and replace the `placeholder(...)` call with your actual query.\",\n\t\tmeta: { slot }\n\t});\n}\n/**\n* The operation of a planner-stubbed data transform: a promise that rejects with\n* `MIGRATION.UNFILLED_PLACEHOLDER`. A plan's other operations stay readable beside it. The\n* rejection is marked handled, and so is any promise a target wraps it in, so reading a plan's\n* operations without awaiting each one does not raise an unhandled rejection.\n*/\nfunction unfilledPlaceholderOperation(slot) {\n\tconst operation = Promise.reject(errorUnfilledPlaceholder(slot));\n\toperation.catch(() => void 0);\n\treturn operation;\n}\n/**\n* Scaffolded `migration.ts` files call this wherever the scaffolder couldn't\n* emit a real query and the author is expected to fill one in. Always throws\n* a structured migration error (`MIGRATION.UNFILLED_PLACEHOLDER`).\n*\n* The return type `never` makes it assignable to any expected return type, so\n* a scaffolded `() => placeholder('...')` satisfies signatures like\n* `() => MongoQueryPlan` without polluting them with a sentinel union arm.\n*/\nfunction placeholder(slot) {\n\tthrow errorUnfilledPlaceholder(slot);\n}\n/**\n* A `dataTransform(endContract, …)` factory was handed a `SqlQueryPlan` whose\n* `meta.storageHash` does not match the `endContract.storage.storageHash` it\n* was configured with. This almost always means the user's query-builder\n* (`sql({ context: createExecutionContext({ contract: endContract, … }) })`)\n* was instantiated from a different contract reference than the one passed\n* to `dataTransform(endContract, …)`.\n*\n* Distinct from `errorHashMismatch` (`CONTRACT.MARKER_MISMATCH`) which\n* rejects a plan at runtime execution; this is an authoring-time rejection\n* so it lives in the `MIGRATION` namespace.\n*/\nfunction errorDataTransformContractMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH\", \"dataTransform query plan built against wrong contract\", {\n\t\twhy: `Data transform \"${options.dataTransformName}\" produced a query plan whose storage hash (${options.actual}) does not match the migration's contract (${options.expected}). The query builder was configured with a different contract than the one passed to dataTransform(endContract, ...).`,\n\t\tfix: \"Ensure the `endContract` imported at module scope (used for both `dataTransform(endContract, …)` and `sql({ context: createExecutionContext({ contract: endContract, … }) })`) is the same reference.\",\n\t\tmeta: {\n\t\t\tdataTransformName: options.dataTransformName,\n\t\t\texpected: options.expected,\n\t\t\tactual: options.actual\n\t\t}\n\t});\n}\n/**\n* `migration.ts` was expected at the given package directory but could not be\n* located. Thrown when consumers attempt to read a migration package that is\n* missing its source file.\n*/\nfunction errorMigrationFileMissing(dir) {\n\treturn new CliStructuredError(\"MIGRATION.FILE_MISSING\", \"migration.ts not found\", {\n\t\twhy: `No migration.ts file was found at \"${dir}\"`,\n\t\tfix: \"Scaffold one with `{bin} migration new` or `{bin} migration plan`.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold an empty migration\",\n\t\t\tcommand: \"{bin} migration new\"\n\t\t}, {\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold a migration from a contract diff\",\n\t\t\tcommand: \"{bin} migration plan\"\n\t\t}],\n\t\tmeta: { dir }\n\t});\n}\n/**\n* The `migration.ts` at the given package directory does not default-export a\n* valid migration shape. Two shapes are accepted: a `Migration` subclass, or a\n* factory function returning a `MigrationPlan`-shaped object (with at least\n* an `operations` array, plus `targetId` and `destination`). Thrown when the\n* default export is missing, is not a constructor/function, does not extend\n* `Migration`, or (for factory functions) returns a value that is not\n* `MigrationPlan`-shaped.\n*/\nfunction errorMigrationInvalidDefaultExport(dir, actualExportDescription) {\n\treturn new CliStructuredError(\"MIGRATION.INVALID_DEFAULT_EXPORT\", \"migration.ts default export is not a valid migration\", {\n\t\twhy: actualExportDescription !== void 0 ? `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object; got ${actualExportDescription}` : `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object.`,\n\t\tfix: \"Use `export default class extends Migration { ... }` or `export default () => ({ targetId, destination, operations })`.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualExportDescription !== void 0 ? { actualExport: actualExportDescription } : {}\n\t\t}\n\t});\n}\n/**\n* The migration class declares one `targetId` but the loaded\n* `prisma.config.ts` declares another. Thrown by `MigrationCLI.run`\n* when a migration script is invoked against a config whose target\n* descriptor disagrees with the migration's own `targetId`. Distinct from generic\n* config-validation errors because the mismatch is between two valid\n* artifacts (the script and the config), not a malformed input.\n*/\nfunction errorMigrationTargetMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_MISMATCH\", \"Migration target does not match config target\", {\n\t\twhy: `This migration is for target \"${options.migrationTargetId}\" but the loaded prisma.config.ts declares target \"${options.configTargetId}\". The migration script can only be run against a config that targets the same database.`,\n\t\tfix: \"Switch to a config whose `target` matches the migration's target, or pass `--config <path>` to point at the right config file.\",\n\t\tmeta: {\n\t\t\tmigrationTargetId: options.migrationTargetId,\n\t\t\tconfigTargetId: options.configTargetId\n\t\t}\n\t});\n}\n/**\n* A `Migration.operations` getter returned a value that is not an array. Used\n* by emit capabilities after instantiating the authored migration.\n*/\nfunction errorMigrationPlanNotArray(dir, actualValueDescription) {\n\treturn new CliStructuredError(\"MIGRATION.PLAN_NOT_ARRAY\", \"Migration.operations must be an array of operations\", {\n\t\twhy: actualValueDescription !== void 0 ? `Migration.operations for migration.ts at \"${dir}\" was ${actualValueDescription}; an array of operations is required.` : `Migration.operations for migration.ts at \"${dir}\" is not an array of operations.`,\n\t\tfix: \"Ensure your `operations` getter returns an array of operations; see the data-migrations authoring guide.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualValueDescription !== void 0 ? { actualValue: actualValueDescription } : {}\n\t\t}\n\t});\n}\n/**\n* A `migration.ts` passes an operation an option in the form an earlier version wrote, which this version no longer reads. `node migration.ts` strips types without checking them, so such a file runs; the operation refuses the option rather than leave out what it carries. `subject` names what the option was for, `rewrite` says how to write it now, and `upgradeEntry` is the id of the upgrade entry that shows the new form.\n*/\nfunction errorMigrationOperationOptionRemoved(options) {\n\tconst { operation, option, upgradeEntry } = options;\n\treturn new CliStructuredError(\"MIGRATION.OPERATION_OPTION_REMOVED\", `\\`${operation}\\` in migration.ts passes \\`${option}\\`, which this version no longer reads, for ${options.subject}`, {\n\t\twhy: \"An earlier version wrote this migration.ts. `node migration.ts` does not check its types, so the file runs, and this version would leave out what the option carries.\",\n\t\tfix: `${options.rewrite} Or, if the migration is not applied, delete its package and run \\`migration plan\\` again. The upgrade entry \\`${upgradeEntry}\\` shows the new shape: ${UPGRADE_GUIDES_URL}`,\n\t\tmeta: {\n\t\t\toperation,\n\t\t\toption,\n\t\t\tupgradeEntry\n\t\t}\n\t});\n}\n//#endregion\nexport { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,yBAAyB,MAAM;CACvC,OAAO,IAAI,mBAAmB,kCAAkC,kCAAkC;EACjG,KAAK,qEAAqE;EAC1E,KAAK;EACL,MAAM,EAAE,KAAK;CACd,CAAC;AACF;;;;;;;AAOA,SAAS,6BAA6B,MAAM;CAC3C,MAAM,YAAY,QAAQ,OAAO,yBAAyB,IAAI,CAAC;CAC/D,UAAU,YA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,2BAA2B,KAAK,IAAI,6CAA6C,IAAI,QAAQ,uBAAuB,yCAAyC,6CAA6C,IAAI;EACnN,KAAK;EACL,MAAM;GACL;GACA,GAAG,2BAA2B,KAAK,IAAI,EAAE,aAAa,uBAAuB,IAAI,CAAC;EACnF;CACD,CAAC;AACF;;;;AAIA,SAAS,qCAAqC,SAAS;CACtD,MAAM,EAAE,WAAW,QAAQ,iBAAiB;CAC5C,OAAO,IAAI,mBAAmB,sCAAsC,KAAK,UAAU,8BAA8B,OAAO,8CAA8C,QAAQ,WAAW;EACxL,KAAK;EACL,KAAK,GAAG,QAAQ,QAAQ,iHAAiH,aAAa,0BAA0B;EAChL,MAAM;GACL;GACA;GACA;EACD;CACD,CAAC;AACF"}
1
+ {"version":3,"file":"migration-BN_eRcEi.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError, w as UPGRADE_GUIDES_URL } from \"./control-Bv8UK63M.mjs\";\n//#region src/migration.ts\n/**\n* A scaffolded migration contains a placeholder slot that was never filled in.\n*\n* Thrown at emit time (when `check.source()` or `run()` is invoked) via the\n* `placeholder(...)` utility. The `slot` identifies the exact location the\n* author still needs to edit, e.g. `\"backfill-product-status:check.source\"`.\n*/\nfunction errorUnfilledPlaceholder(slot) {\n\treturn new CliStructuredError(\"MIGRATION.UNFILLED_PLACEHOLDER\", \"Unfilled migration placeholder\", {\n\t\twhy: `The migration contains a placeholder that has not been filled in: ${slot}`,\n\t\tfix: \"Open migration.ts and replace the `placeholder(...)` call with your actual query.\",\n\t\tmeta: { slot }\n\t});\n}\n/**\n* The operation of a planner-stubbed data transform: a promise that rejects with\n* `MIGRATION.UNFILLED_PLACEHOLDER`. A plan's other operations stay readable beside it. The\n* rejection is marked handled, and so is any promise a target wraps it in, so reading a plan's\n* operations without awaiting each one does not raise an unhandled rejection.\n*/\nfunction unfilledPlaceholderOperation(slot) {\n\tconst operation = Promise.reject(errorUnfilledPlaceholder(slot));\n\toperation.catch(() => void 0);\n\treturn operation;\n}\n/**\n* Scaffolded `migration.ts` files call this wherever the scaffolder couldn't\n* emit a real query and the author is expected to fill one in. Always throws\n* a structured migration error (`MIGRATION.UNFILLED_PLACEHOLDER`).\n*\n* The return type `never` makes it assignable to any expected return type, so\n* a scaffolded `() => placeholder('...')` satisfies signatures like\n* `() => MongoQueryPlan` without polluting them with a sentinel union arm.\n*/\nfunction placeholder(slot) {\n\tthrow errorUnfilledPlaceholder(slot);\n}\n/**\n* A `dataTransform(endContract, …)` factory was handed a `SqlQueryPlan` whose\n* `meta.storageHash` does not match the `endContract.storage.storageHash` it\n* was configured with. This almost always means the user's query-builder\n* (`sql({ context: createExecutionContext({ contract: endContract, … }) })`)\n* was instantiated from a different contract reference than the one passed\n* to `dataTransform(endContract, …)`.\n*\n* Distinct from `errorHashMismatch` (`CONTRACT.MARKER_MISMATCH`) which\n* rejects a plan at runtime execution; this is an authoring-time rejection\n* so it lives in the `MIGRATION` namespace.\n*/\nfunction errorDataTransformContractMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH\", \"dataTransform query plan built against wrong contract\", {\n\t\twhy: `Data transform \"${options.dataTransformName}\" produced a query plan whose storage hash (${options.actual}) does not match the migration's contract (${options.expected}). The query builder was configured with a different contract than the one passed to dataTransform(endContract, ...).`,\n\t\tfix: \"Ensure the `endContract` imported at module scope (used for both `dataTransform(endContract, …)` and `sql({ context: createExecutionContext({ contract: endContract, … }) })`) is the same reference.\",\n\t\tmeta: {\n\t\t\tdataTransformName: options.dataTransformName,\n\t\t\texpected: options.expected,\n\t\t\tactual: options.actual\n\t\t}\n\t});\n}\n/**\n* `migration.ts` was expected at the given package directory but could not be\n* located. Thrown when consumers attempt to read a migration package that is\n* missing its source file.\n*/\nfunction errorMigrationFileMissing(dir) {\n\treturn new CliStructuredError(\"MIGRATION.FILE_MISSING\", \"migration.ts not found\", {\n\t\twhy: `No migration.ts file was found at \"${dir}\"`,\n\t\tfix: \"Scaffold one with `{bin} migration new` or `{bin} migration plan`.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold an empty migration\",\n\t\t\tcommand: \"{bin} migration new\"\n\t\t}, {\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold a migration from a contract diff\",\n\t\t\tcommand: \"{bin} migration plan\"\n\t\t}],\n\t\tmeta: { dir }\n\t});\n}\n/**\n* The `migration.ts` at the given package directory does not default-export a\n* valid migration shape. Two shapes are accepted: a `Migration` subclass, or a\n* factory function returning a `MigrationPlan`-shaped object (with at least\n* an `operations` array, plus `targetId` and `destination`). Thrown when the\n* default export is missing, is not a constructor/function, does not extend\n* `Migration`, or (for factory functions) returns a value that is not\n* `MigrationPlan`-shaped.\n*/\nfunction errorMigrationInvalidDefaultExport(dir, actualExportDescription) {\n\treturn new CliStructuredError(\"MIGRATION.INVALID_DEFAULT_EXPORT\", \"migration.ts default export is not a valid migration\", {\n\t\twhy: actualExportDescription !== void 0 ? `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object; got ${actualExportDescription}` : `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object.`,\n\t\tfix: \"Use `export default class extends Migration { ... }` or `export default () => ({ targetId, destination, operations })`.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualExportDescription !== void 0 ? { actualExport: actualExportDescription } : {}\n\t\t}\n\t});\n}\n/**\n* The migration class declares one `targetId` but the loaded\n* `prisma.config.ts` declares another. Thrown by `MigrationCLI.run`\n* when a migration script is invoked against a config whose target\n* descriptor disagrees with the migration's own `targetId`. Distinct from generic\n* config-validation errors because the mismatch is between two valid\n* artifacts (the script and the config), not a malformed input.\n*/\nfunction errorMigrationTargetMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_MISMATCH\", \"Migration target does not match config target\", {\n\t\twhy: `This migration is for target \"${options.migrationTargetId}\" but the loaded prisma.config.ts declares target \"${options.configTargetId}\". The migration script can only be run against a config that targets the same database.`,\n\t\tfix: \"Switch to a config whose `target` matches the migration's target, or pass `--config <path>` to point at the right config file.\",\n\t\tmeta: {\n\t\t\tmigrationTargetId: options.migrationTargetId,\n\t\t\tconfigTargetId: options.configTargetId\n\t\t}\n\t});\n}\n/**\n* A `Migration.operations` getter returned a value that is not an array. Used\n* by emit capabilities after instantiating the authored migration.\n*/\nfunction errorMigrationPlanNotArray(dir, actualValueDescription) {\n\treturn new CliStructuredError(\"MIGRATION.PLAN_NOT_ARRAY\", \"Migration.operations must be an array of operations\", {\n\t\twhy: actualValueDescription !== void 0 ? `Migration.operations for migration.ts at \"${dir}\" was ${actualValueDescription}; an array of operations is required.` : `Migration.operations for migration.ts at \"${dir}\" is not an array of operations.`,\n\t\tfix: \"Ensure your `operations` getter returns an array of operations; see the data-migrations authoring guide.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualValueDescription !== void 0 ? { actualValue: actualValueDescription } : {}\n\t\t}\n\t});\n}\n/**\n* A `migration.ts` passes an operation an option in the form an earlier version wrote, which this version no longer reads. `node migration.ts` strips types without checking them, so such a file runs; the operation refuses the option rather than leave out what it carries. `subject` names what the option was for, `rewrite` says how to write it now, and `upgradeEntry` is the id of the upgrade entry that shows the new form.\n*/\nfunction errorMigrationOperationOptionRemoved(options) {\n\tconst { operation, option, upgradeEntry } = options;\n\treturn new CliStructuredError(\"MIGRATION.OPERATION_OPTION_REMOVED\", `\\`${operation}\\` in migration.ts passes \\`${option}\\`, which this version no longer reads, for ${options.subject}`, {\n\t\twhy: \"An earlier version wrote this migration.ts. `node migration.ts` does not check its types, so the file runs, and this version would leave out what the option carries.\",\n\t\tfix: `${options.rewrite} Or, if the migration is not applied, delete its package and run \\`migration plan\\` again. The upgrade entry \\`${upgradeEntry}\\` shows the new shape: ${UPGRADE_GUIDES_URL}`,\n\t\tmeta: {\n\t\t\toperation,\n\t\t\toption,\n\t\t\tupgradeEntry\n\t\t}\n\t});\n}\n//#endregion\nexport { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,yBAAyB,MAAM;CACvC,OAAO,IAAI,mBAAmB,kCAAkC,kCAAkC;EACjG,KAAK,qEAAqE;EAC1E,KAAK;EACL,MAAM,EAAE,KAAK;CACd,CAAC;AACF;;;;;;;AAOA,SAAS,6BAA6B,MAAM;CAC3C,MAAM,YAAY,QAAQ,OAAO,yBAAyB,IAAI,CAAC;CAC/D,UAAU,YAAY,KAAK,CAAC;CAC5B,OAAO;AACR;;;;;;;;;;AAUA,SAAS,YAAY,MAAM;CAC1B,MAAM,yBAAyB,IAAI;AACpC;;;;;;;;;;;;;AAaA,SAAS,mCAAmC,SAAS;CACpD,OAAO,IAAI,mBAAmB,8CAA8C,yDAAyD;EACpI,KAAK,mBAAmB,QAAQ,kBAAkB,8CAA8C,QAAQ,OAAO,6CAA6C,QAAQ,SAAS;EAC7K,KAAK;EACL,MAAM;GACL,mBAAmB,QAAQ;GAC3B,UAAU,QAAQ;GAClB,QAAQ,QAAQ;EACjB;CACD,CAAC;AACF;;;;;;AAMA,SAAS,0BAA0B,KAAK;CACvC,OAAO,IAAI,mBAAmB,0BAA0B,0BAA0B;EACjF,KAAK,sCAAsC,IAAI;EAC/C,KAAK;EACL,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;EACV,GAAG;GACF,MAAM;GACN,OAAO;GACP,SAAS;EACV,CAAC;EACD,MAAM,EAAE,IAAI;CACb,CAAC;AACF;;;;;;;;;;AAUA,SAAS,mCAAmC,KAAK,yBAAyB;CACzE,OAAO,IAAI,mBAAmB,oCAAoC,wDAAwD;EACzH,KAAK,4BAA4B,KAAK,IAAI,oBAAoB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