@prisma/orm-framework 8.0.0-rc.20-dev.13 → 8.0.0-rc.20-dev.15

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 (100) hide show
  1. package/dist/{authoring-C9wgJCNs.d.mts → authoring-C2UAuRfN.d.mts} +4 -14
  2. package/dist/{authoring-C9wgJCNs.d.mts.map → authoring-C2UAuRfN.d.mts.map} +1 -1
  3. package/dist/{authoring-BNzxszPO.mjs → authoring-CuGQP7_1.mjs} +4 -26
  4. package/dist/authoring-CuGQP7_1.mjs.map +1 -0
  5. package/dist/{binder-DJRPMfsD-D7PEvJOJ.d.mts → binder-BszqDG1t-icu83_4f.d.mts} +16 -12
  6. package/dist/{binder-DJRPMfsD-D7PEvJOJ.d.mts.map → binder-BszqDG1t-icu83_4f.d.mts.map} +1 -1
  7. package/dist/{components-Cl5lB_Iw.d.mts → components-BenCVFk4.d.mts} +3 -3
  8. package/dist/{components-Cl5lB_Iw.d.mts.map → components-BenCVFk4.d.mts.map} +1 -1
  9. package/dist/components.d.mts +10 -10
  10. package/dist/components.mjs +4 -4
  11. package/dist/components__authoring.d.mts +4 -4
  12. package/dist/components__authoring.mjs +3 -3
  13. package/dist/components__components.d.mts +3 -3
  14. package/dist/components__control.d.mts +3 -3
  15. package/dist/components__control.mjs +2 -2
  16. package/dist/components__execution.d.mts +1 -1
  17. package/dist/components__psl-ast.d.mts +3 -3
  18. package/dist/{config-types-j3Elycru.d.mts → config-types-BJ79TZCl.d.mts} +5 -5
  19. package/dist/{config-types-j3Elycru.d.mts.map → config-types-BJ79TZCl.d.mts.map} +1 -1
  20. package/dist/config.d.mts +1 -1
  21. package/dist/config__config-types.d.mts +1 -1
  22. package/dist/contract-authoring.d.mts +19 -54
  23. package/dist/contract-authoring.d.mts.map +1 -1
  24. package/dist/contract-authoring.mjs +15 -28
  25. package/dist/contract-authoring.mjs.map +1 -1
  26. package/dist/control-B3OS8JEw.d.mts +1 -0
  27. package/dist/{control-BeXOxtXA-DRX60Yu3.d.mts → control-BeXOxtXA-BU8y-LiK.d.mts} +2 -2
  28. package/dist/{control-BeXOxtXA-DRX60Yu3.d.mts.map → control-BeXOxtXA-BU8y-LiK.d.mts.map} +1 -1
  29. package/dist/{control-Df-HE5e4.d.mts → control-CS1uqJj_.d.mts} +8 -9
  30. package/dist/{control-Df-HE5e4.d.mts.map → control-CS1uqJj_.d.mts.map} +1 -1
  31. package/dist/{control-DKOWXGUq.mjs → control-Dn1CMH6R.mjs} +8 -16
  32. package/dist/control-Dn1CMH6R.mjs.map +1 -0
  33. package/dist/{control-MllEQmML-tXi_WAy3.mjs → control-MllEQmML-BdhmgQVr.mjs} +2 -2
  34. package/dist/{control-MllEQmML-tXi_WAy3.mjs.map → control-MllEQmML-BdhmgQVr.mjs.map} +1 -1
  35. package/dist/{declarations-BgUAq1RG-Dz_-EI1Q.mjs → declarations-BgUAq1RG-DPNkVezv.mjs} +2 -2
  36. package/dist/{declarations-BgUAq1RG-Dz_-EI1Q.mjs.map → declarations-BgUAq1RG-DPNkVezv.mjs.map} +1 -1
  37. package/dist/errors.d.mts +4 -4
  38. package/dist/errors.mjs +3 -3
  39. package/dist/errors__control.d.mts +2 -2
  40. package/dist/errors__control.mjs +1 -1
  41. package/dist/errors__execution.d.mts +1 -1
  42. package/dist/errors__execution.mjs +1 -1
  43. package/dist/errors__migration.d.mts +1 -1
  44. package/dist/errors__migration.mjs +1 -1
  45. package/dist/{execution-D5tvAHf4.d.mts → execution-BPJbNttJ.d.mts} +2 -2
  46. package/dist/{execution-D5tvAHf4.d.mts.map → execution-BPJbNttJ.d.mts.map} +1 -1
  47. package/dist/{execution-CgR7dFMU.d.mts → execution-BWR_z8XI.d.mts} +2 -2
  48. package/dist/{execution-CgR7dFMU.d.mts.map → execution-BWR_z8XI.d.mts.map} +1 -1
  49. package/dist/{execution-DMsDYKSr.mjs → execution-GInmnTZ9.mjs} +2 -2
  50. package/dist/{execution-DMsDYKSr.mjs.map → execution-GInmnTZ9.mjs.map} +1 -1
  51. package/dist/{expressions-CMQzbnHk-BL2zN0Iv.mjs → expressions-CMQzbnHk-FYhlr1aG.mjs} +2 -2
  52. package/dist/{expressions-CMQzbnHk-BL2zN0Iv.mjs.map → expressions-CMQzbnHk-FYhlr1aG.mjs.map} +1 -1
  53. package/dist/{framework-authoring-DSqNuI8w-BMQDwpgF.d.mts → framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts} +17 -97
  54. package/dist/framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts.map +1 -0
  55. package/dist/{framework-components-BhbsOiJc-BpDfGsqn.d.mts → framework-components-BqHA1V92-D9j8uXa-.d.mts} +3 -3
  56. package/dist/{framework-components-BhbsOiJc-BpDfGsqn.d.mts.map → framework-components-BqHA1V92-D9j8uXa-.d.mts.map} +1 -1
  57. package/dist/ids.d.mts +3 -98
  58. package/dist/ids.d.mts.map +1 -1
  59. package/dist/ids.mjs +12 -52
  60. package/dist/ids.mjs.map +1 -1
  61. package/dist/{migration-DpdvEAEC.mjs → migration-D57w8Uxv.mjs} +2 -2
  62. package/dist/{migration-DpdvEAEC.mjs.map → migration-D57w8Uxv.mjs.map} +1 -1
  63. package/dist/{migration-Ox7HWa_t.d.mts → migration-Dk1sYIvs.d.mts} +2 -2
  64. package/dist/{migration-Ox7HWa_t.d.mts.map → migration-Dk1sYIvs.d.mts.map} +1 -1
  65. package/dist/{parse-bZgfjovA-BNgYhylT.mjs → parse-bZgfjovA-gD3hVy3X.mjs} +3 -3
  66. package/dist/{parse-bZgfjovA-BNgYhylT.mjs.map → parse-bZgfjovA-gD3hVy3X.mjs.map} +1 -1
  67. package/dist/{parse-djL5wker-sY18Mt5K.d.mts → parse-djL5wker-DnMlKOii.d.mts} +6 -6
  68. package/dist/{parse-djL5wker-sY18Mt5K.d.mts.map → parse-djL5wker-DnMlKOii.d.mts.map} +1 -1
  69. package/dist/{psl-ast-C8W7AM1f-DYtFq1nP.d.mts → psl-ast-0oMzInxd-Nx9cHmcc.d.mts} +3 -3
  70. package/dist/{psl-ast-C8W7AM1f-DYtFq1nP.d.mts.map → psl-ast-0oMzInxd-Nx9cHmcc.d.mts.map} +1 -1
  71. package/dist/psl-ast-CFQfCJeM.d.mts +2 -0
  72. package/dist/psl-parser.d.mts +12 -12
  73. package/dist/psl-parser.mjs +17 -55
  74. package/dist/psl-parser.mjs.map +1 -1
  75. package/dist/psl-parser__format.d.mts +1 -1
  76. package/dist/psl-parser__format.mjs +3 -3
  77. package/dist/psl-parser__interpret.d.mts +30 -30
  78. package/dist/psl-parser__interpret.d.mts.map +1 -1
  79. package/dist/psl-parser__interpret.mjs +110 -298
  80. package/dist/psl-parser__interpret.mjs.map +1 -1
  81. package/dist/psl-parser__syntax.d.mts +1 -1
  82. package/dist/psl-parser__syntax.mjs +3 -3
  83. package/dist/psl-printer.d.mts +4 -4
  84. package/dist/psl-printer.mjs +1 -1
  85. package/dist/temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts +133 -0
  86. package/dist/temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts.map +1 -0
  87. package/dist/{temporal-presets-5TK1pTYJ-DmhrnMP1.mjs → temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs} +29 -281
  88. package/dist/temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs.map +1 -0
  89. package/dist/{type-constructor-calls-BLf-HsFy-CHiXyVEH.mjs → type-constructor-calls-CNd1Xlw2-DjyX5mKn.mjs} +52 -7
  90. package/dist/type-constructor-calls-CNd1Xlw2-DjyX5mKn.mjs.map +1 -0
  91. package/package.json +15 -15
  92. package/dist/authoring-BNzxszPO.mjs.map +0 -1
  93. package/dist/control-CV9doMHb.d.mts +0 -1
  94. package/dist/control-DKOWXGUq.mjs.map +0 -1
  95. package/dist/framework-authoring-DSqNuI8w-BMQDwpgF.d.mts.map +0 -1
  96. package/dist/psl-ast-sZ1tAYRc.d.mts +0 -2
  97. package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs.map +0 -1
  98. package/dist/temporal-presets-De4oKG36-DlGYQgF1.d.mts +0 -258
  99. package/dist/temporal-presets-De4oKG36-DlGYQgF1.d.mts.map +0 -1
  100. package/dist/type-constructor-calls-BLf-HsFy-CHiXyVEH.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"psl-parser__interpret.mjs","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/interpret.mjs"],"sourcesContent":["import { l as diagnosticSource, n as keywordPslSpan, r as nodePslSpan } from \"./written-scalar-DYAM5coP.mjs\";\nimport { n as reportTypeConstructorNotCalled, r as readExpressionAs, t as isBareTypeConstructor } from \"./type-constructor-calls-BLf-HsFy.mjs\";\nimport { instantiateAuthoringFieldPreset, isAuthoringPslBlockDescriptor, validateAuthoringHelperArguments } from \"@internal/framework-components/authoring\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { notOk } from \"@internal/utils/result\";\nimport { dataTypeId } from \"@internal/framework-components/codec\";\n//#region src/authoring-arguments.ts\nfunction unquoteStringLiteral(value) {\n\tconst trimmed = value.trim();\n\tconst match = trimmed.match(/^(['\"])(.*)\\1$/);\n\tif (!match) return trimmed;\n\treturn match[2] ?? \"\";\n}\nconst INVALID_AUTHORING_ARGUMENT = Symbol(\"invalidAuthoringArgument\");\nfunction isIdentifierStartCharacter(character) {\n\treturn character !== void 0 && /[A-Za-z_$]/.test(character);\n}\nfunction isIdentifierCharacter(character) {\n\treturn character !== void 0 && /[A-Za-z0-9_$]/.test(character);\n}\nfunction parseJsLikeLiteral(value) {\n\tlet index = 0;\n\tfunction skipWhitespace() {\n\t\twhile (/\\s/.test(value[index] ?? \"\")) index += 1;\n\t}\n\tfunction parseIdentifier() {\n\t\tconst first = value[index];\n\t\tif (!isIdentifierStartCharacter(first)) return INVALID_AUTHORING_ARGUMENT;\n\t\tlet end = index + 1;\n\t\twhile (isIdentifierCharacter(value[end])) end += 1;\n\t\tconst identifier = value.slice(index, end);\n\t\tindex = end;\n\t\treturn identifier;\n\t}\n\tfunction parseString() {\n\t\tconst quote = value[index];\n\t\tif (quote !== \"\\\"\" && quote !== \"'\") return INVALID_AUTHORING_ARGUMENT;\n\t\tindex += 1;\n\t\tlet result = \"\";\n\t\twhile (index < value.length) {\n\t\t\tconst character = value[index];\n\t\t\tindex += 1;\n\t\t\tif (character === void 0) return INVALID_AUTHORING_ARGUMENT;\n\t\t\tif (character === quote) return result;\n\t\t\tif (character !== \"\\\\\") {\n\t\t\t\tresult += character;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst escaped = value[index];\n\t\t\tindex += 1;\n\t\t\tif (escaped === void 0) return INVALID_AUTHORING_ARGUMENT;\n\t\t\tswitch (escaped) {\n\t\t\t\tcase \"'\":\n\t\t\t\tcase \"\\\"\":\n\t\t\t\tcase \"\\\\\":\n\t\t\t\tcase \"/\":\n\t\t\t\t\tresult += escaped;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"b\":\n\t\t\t\t\tresult += \"\\b\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"f\":\n\t\t\t\t\tresult += \"\\f\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"n\":\n\t\t\t\t\tresult += \"\\n\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"r\":\n\t\t\t\t\tresult += \"\\r\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"t\":\n\t\t\t\t\tresult += \"\t\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"u\": {\n\t\t\t\t\tconst hex = value.slice(index, index + 4);\n\t\t\t\t\tif (!/^[0-9A-Fa-f]{4}$/.test(hex)) return INVALID_AUTHORING_ARGUMENT;\n\t\t\t\t\tresult += String.fromCharCode(Number.parseInt(hex, 16));\n\t\t\t\t\tindex += 4;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault: return INVALID_AUTHORING_ARGUMENT;\n\t\t\t}\n\t\t}\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t}\n\tfunction parseNumber() {\n\t\tconst raw = value.slice(index).match(/^[+-]?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/)?.[0];\n\t\tif (!raw) return INVALID_AUTHORING_ARGUMENT;\n\t\tconst parsed = Number(raw);\n\t\tif (!Number.isFinite(parsed)) return INVALID_AUTHORING_ARGUMENT;\n\t\tindex += raw.length;\n\t\treturn parsed;\n\t}\n\tfunction parseArray() {\n\t\tif (value[index] !== \"[\") return INVALID_AUTHORING_ARGUMENT;\n\t\tindex += 1;\n\t\tconst result = [];\n\t\tskipWhitespace();\n\t\tif (value[index] === \"]\") {\n\t\t\tindex += 1;\n\t\t\treturn result;\n\t\t}\n\t\twhile (index < value.length) {\n\t\t\tconst entry = parseValue();\n\t\t\tif (entry === INVALID_AUTHORING_ARGUMENT) return INVALID_AUTHORING_ARGUMENT;\n\t\t\tresult.push(entry);\n\t\t\tskipWhitespace();\n\t\t\tif (value[index] === \",\") {\n\t\t\t\tindex += 1;\n\t\t\t\tskipWhitespace();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (value[index] === \"]\") {\n\t\t\t\tindex += 1;\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t\t}\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t}\n\tfunction parseObject() {\n\t\tif (value[index] !== \"{\") return INVALID_AUTHORING_ARGUMENT;\n\t\tindex += 1;\n\t\tconst result = {};\n\t\tskipWhitespace();\n\t\tif (value[index] === \"}\") {\n\t\t\tindex += 1;\n\t\t\treturn result;\n\t\t}\n\t\twhile (index < value.length) {\n\t\t\tskipWhitespace();\n\t\t\tconst key = value[index] === \"\\\"\" || value[index] === \"'\" ? parseString() : parseIdentifier();\n\t\t\tif (key === INVALID_AUTHORING_ARGUMENT) return INVALID_AUTHORING_ARGUMENT;\n\t\t\tskipWhitespace();\n\t\t\tif (value[index] !== \":\") return INVALID_AUTHORING_ARGUMENT;\n\t\t\tindex += 1;\n\t\t\tconst entry = parseValue();\n\t\t\tif (entry === INVALID_AUTHORING_ARGUMENT) return INVALID_AUTHORING_ARGUMENT;\n\t\t\tresult[key] = entry;\n\t\t\tskipWhitespace();\n\t\t\tif (value[index] === \",\") {\n\t\t\t\tindex += 1;\n\t\t\t\tskipWhitespace();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (value[index] === \"}\") {\n\t\t\t\tindex += 1;\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t\t}\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t}\n\tfunction parseValue() {\n\t\tskipWhitespace();\n\t\tconst character = value[index];\n\t\tif (character === \"{\") return parseObject();\n\t\tif (character === \"[\") return parseArray();\n\t\tif (character === \"\\\"\" || character === \"'\") return parseString();\n\t\tif (character === \"-\" || character === \"+\" || /\\d/.test(character ?? \"\")) return parseNumber();\n\t\tconst identifier = parseIdentifier();\n\t\tif (identifier === INVALID_AUTHORING_ARGUMENT) return INVALID_AUTHORING_ARGUMENT;\n\t\tif (identifier === \"true\") return true;\n\t\tif (identifier === \"false\") return false;\n\t\tif (identifier === \"null\") return null;\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t}\n\tskipWhitespace();\n\tconst parsed = parseValue();\n\tif (parsed === INVALID_AUTHORING_ARGUMENT) return parsed;\n\tskipWhitespace();\n\treturn index === value.length ? parsed : INVALID_AUTHORING_ARGUMENT;\n}\nfunction isPlainObject(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction parsePslObjectLiteral(value) {\n\tconst trimmed = value.trim();\n\tif (!trimmed.startsWith(\"{\") || !trimmed.endsWith(\"}\")) return INVALID_AUTHORING_ARGUMENT;\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(trimmed);\n\t} catch {\n\t\tparsed = parseJsLikeLiteral(trimmed);\n\t\tif (parsed === INVALID_AUTHORING_ARGUMENT) return INVALID_AUTHORING_ARGUMENT;\n\t}\n\tif (!isPlainObject(parsed)) return INVALID_AUTHORING_ARGUMENT;\n\treturn parsed;\n}\nfunction parsePslAuthoringArgumentText(descriptor, rawValue) {\n\tswitch (descriptor.kind) {\n\t\tcase \"number\": {\n\t\t\tconst parsed = Number(unquoteStringLiteral(rawValue));\n\t\t\treturn Number.isNaN(parsed) ? INVALID_AUTHORING_ARGUMENT : parsed;\n\t\t}\n\t\tcase \"object\": return parsePslObjectLiteral(rawValue);\n\t\tcase \"option\": {\n\t\t\tconst trimmed = rawValue.trim();\n\t\t\treturn /^[A-Za-z_][A-Za-z0-9_]*$/.test(trimmed) ? trimmed : INVALID_AUTHORING_ARGUMENT;\n\t\t}\n\t\tdefault: return INVALID_AUTHORING_ARGUMENT;\n\t}\n}\nfunction pushInvalidPslHelperArgument(input) {\n\tinput.diagnostics.push({\n\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\tmessage: `${input.entityLabel} ${input.helperLabel} ${input.message}`,\n\t\t...input.source.at(input.span)\n\t});\n}\n/**\n* The value of one argument as `descriptor` reads it: a `value` argument as a value of its data type, read from its expression as attribute arguments are, and any other kind from its text. A refusal is pushed as a diagnostic at the argument.\n*/\nfunction readPslHelperArgument(input, descriptor, argument, argumentLabel) {\n\tconst invalid = () => {\n\t\tpushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `cannot parse ${argumentLabel} for descriptor kind \"${descriptor.kind}\".`\n\t\t});\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t};\n\tif (descriptor.kind !== \"value\") {\n\t\tconst value = parsePslAuthoringArgumentText(descriptor, argument.value);\n\t\treturn value === INVALID_AUTHORING_ARGUMENT ? invalid() : value;\n\t}\n\tconst { expression } = argument;\n\tif (expression === void 0 && argument.node !== void 0) {\n\t\tpushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `${argumentLabel} has no value.`\n\t\t});\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t}\n\tif (expression === void 0) throw new InternalError(`${input.entityLabel} ${input.helperLabel} received ${argumentLabel} with no expression. A value argument is read from the expression a schema writes; a reader that builds a call must pass the arguments it parsed, or instantiate the constructor with values.`);\n\tconst read = readExpressionAs(input.dataTypes, dataTypeId(descriptor.dataType), expression);\n\tif (read.ok) return read.value.value;\n\tinput.diagnostics.push({\n\t\tcode: read.failure.code,\n\t\tmessage: read.failure.message,\n\t\t...input.source.at(nodePslSpan(expression.syntax, input.source.sources))\n\t});\n\treturn INVALID_AUTHORING_ARGUMENT;\n}\n/**\n* The arguments of a type constructor or field preset call, positional and named, each read as its descriptor says. `undefined`, with a diagnostic pushed, when one cannot be read or does not match a descriptor.\n*/\nfunction mapPslHelperArgs(input) {\n\tconst mappedArgs = input.descriptors.map(() => void 0);\n\tconst positionalArgs = input.args.filter((arg) => arg.kind === \"positional\");\n\tconst namedArgs = input.args.filter((arg) => arg.kind === \"named\");\n\tif (positionalArgs.length > input.descriptors.length) return pushInvalidPslHelperArgument({\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source,\n\t\tspan: input.span,\n\t\tentityLabel: input.entityLabel,\n\t\thelperLabel: input.helperLabel,\n\t\tmessage: `accepts at most ${input.descriptors.length} argument(s), received ${positionalArgs.length}.`\n\t});\n\tfor (const [index, argument] of positionalArgs.entries()) {\n\t\tconst descriptor = input.descriptors[index];\n\t\tif (!descriptor) return pushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `does not define positional argument #${index + 1}.`\n\t\t});\n\t\tconst value = readPslHelperArgument(input, descriptor, argument, `argument #${index + 1}`);\n\t\tif (value === INVALID_AUTHORING_ARGUMENT) return void 0;\n\t\tmappedArgs[index] = value;\n\t}\n\tfor (const argument of namedArgs) {\n\t\tconst descriptorIndex = input.descriptors.findIndex((descriptor) => descriptor.name === argument.name);\n\t\tif (descriptorIndex < 0) return pushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `received unknown named argument \"${argument.name}\".`\n\t\t});\n\t\tif (mappedArgs[descriptorIndex] !== void 0) return pushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `received duplicate value for argument \"${argument.name}\".`\n\t\t});\n\t\tconst descriptor = input.descriptors[descriptorIndex];\n\t\tif (!descriptor) return pushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `does not define named argument \"${argument.name}\".`\n\t\t});\n\t\tconst value = readPslHelperArgument(input, descriptor, argument, `named argument \"${argument.name}\"`);\n\t\tif (value === INVALID_AUTHORING_ARGUMENT) return void 0;\n\t\tmappedArgs[descriptorIndex] = value;\n\t}\n\treturn mappedArgs;\n}\n//#endregion\n//#region src/enum-member-attributes.ts\nfunction enumMemberAttributeDiagnostics(enumBlock, sources) {\n\tconst source = diagnosticSource(sources, enumBlock.node.syntax);\n\treturn enumBlock.entries.flatMap((member) => Array.from(member.attributes(), (attribute) => ({\n\t\tcode: \"PSL_UNSUPPORTED_ENUM_MEMBER_ATTRIBUTE\",\n\t\tmessage: `enum \"${enumBlock.name}\": member \"${member.key()?.name() ?? \"?\"}\" carries @${attribute.name()?.path().join(\".\") ?? \"?\"}, but an enum member takes no attributes`,\n\t\t...source.at(nodePslSpan(attribute.syntax, sources))\n\t})));\n}\n//#endregion\n//#region src/field-presets.ts\nfunction reportPresetNotCalled(input) {\n\tinput.diagnostics.push({\n\t\tcode: \"PSL_PRESET_NOT_CALLED\",\n\t\tmessage: `${input.entityLabel} uses field preset \"${input.presetPath}\" without calling it. Write ${input.presetPath}().`,\n\t\t...input.source.at(input.span)\n\t});\n}\n/**\n* Instantiates a field-preset call against its descriptor, coercing PSL AST arguments into the descriptor's typed argument shape and returning the preset's full set of contract contributions.\n*\n* PSL → typed-args coercion happens here (via `mapPslHelperArgs`) so that `instantiateAuthoringFieldPreset` itself stays typed-input-only and TS keeps its zero-runtime-validation cost.\n*/\nfunction instantiatePslFieldPreset(input) {\n\tconst helperPath = input.call.path.join(\".\");\n\tconst args = mapPslHelperArgs({\n\t\targs: input.call.args,\n\t\tdescriptors: input.descriptor.args ?? [],\n\t\thelperLabel: `preset \"${helperPath}\"`,\n\t\tspan: input.call.span,\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source,\n\t\tentityLabel: input.entityLabel,\n\t\tdataTypes: input.dataTypes\n\t});\n\tif (!args) return;\n\ttry {\n\t\tvalidateAuthoringHelperArguments(helperPath, input.descriptor.args, args);\n\t\treturn instantiateAuthoringFieldPreset(input.descriptor, args);\n\t} catch (error) {\n\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\tinput.diagnostics.push({\n\t\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\t\tmessage: `${input.entityLabel}: ${message}`,\n\t\t\t...input.source.at(input.call.span)\n\t\t});\n\t\treturn;\n\t}\n}\n//#endregion\n//#region src/interpret.ts\n/**\n* Merges caller-side diagnostics (e.g. parse / symbol-table findings) into an\n* interpretation result. The authored headline is deliberately uniform — it\n* reports how many errors the schema has, never which pipeline stage found\n* them.\n*/\nfunction withSeedDiagnostics(result, seedDiagnostics) {\n\tif (seedDiagnostics.length === 0) return result;\n\tconst diagnostics = result.ok ? seedDiagnostics : [...seedDiagnostics, ...result.failure.diagnostics];\n\treturn notOk({\n\t\tsummary: `Schema has ${diagnostics.length} error${diagnostics.length === 1 ? \"\" : \"s\"}`,\n\t\tdiagnostics,\n\t\t...result.ok || result.failure.meta === void 0 ? {} : { meta: result.failure.meta }\n\t});\n}\n/** The single seam that narrows a contract source to the interpret capability. */\nfunction hasPslInterpreter(source) {\n\treturn source.format === \"psl\" && \"interpret\" in source && typeof source.interpret === \"function\";\n}\n//#endregion\n//#region src/relation-backrelations.ts\nfunction fkRelationPairKey(declaringModelName, targetModelName) {\n\treturn `${declaringModelName}::${targetModelName}`;\n}\n/**\n* Claims the one rejected FK side that pairs with this back-relation candidate: same model pair\n* and the same relation name, where an unnamed candidate pairs only with an unnamed FK side.\n* A claimed pairing is removed, so a second candidate on the same pair reports its own problem.\n*/\nfunction consumeInvalidFkPairing(candidate, pairKey, invalidFkPairings) {\n\tconst index = invalidFkPairings.findIndex((pairing) => pairing.pairKey === pairKey && pairing.relationName === candidate.relationName);\n\tif (index === -1) return false;\n\tinvalidFkPairings.splice(index, 1);\n\treturn true;\n}\nfunction requiredOneToOneBackrelationDiagnostic(input) {\n\tconst { modelName, field, targetModelName, sources, recordNoun } = input;\n\treturn {\n\t\tcode: \"PSL_REQUIRED_ONE_TO_ONE_BACKRELATION\",\n\t\tmessage: `Backrelation field \"${modelName}.${field.name}\" is required, but \"${targetModelName}\" holds the relation fields, so nothing in storage guarantees a \"${targetModelName}\" ${recordNoun} exists. Make it optional: \"${field.name} ${targetModelName}?\".`,\n\t\t...diagnosticSource(sources, field.node.syntax).at(field.span)\n\t};\n}\n//#endregion\n//#region src/unclaimed-blocks.ts\n/** A generic block is read only when a composed descriptor claims its keyword. */\nfunction claimedBlockKeywords(descriptors) {\n\tconst keywords = /* @__PURE__ */ new Set();\n\tfor (const [keyword, value] of Object.entries(descriptors ?? {})) if (isAuthoringPslBlockDescriptor(value)) keywords.add(keyword);\n\treturn keywords;\n}\nfunction unsupportedBlockDiagnostic(block, sources) {\n\treturn {\n\t\tcode: \"PSL_UNSUPPORTED_TOP_LEVEL_BLOCK\",\n\t\tmessage: `Unsupported top-level block \"${block.keyword}\"`,\n\t\t...diagnosticSource(sources, block.node.syntax).at(keywordPslSpan(block.node.syntax, block.keyword, sources))\n\t};\n}\n//#endregion\nexport { claimedBlockKeywords, consumeInvalidFkPairing, enumMemberAttributeDiagnostics, fkRelationPairKey, hasPslInterpreter, instantiatePslFieldPreset, isBareTypeConstructor, mapPslHelperArgs, reportPresetNotCalled, reportTypeConstructorNotCalled, requiredOneToOneBackrelationDiagnostic, unsupportedBlockDiagnostic, withSeedDiagnostics };\n\n//# sourceMappingURL=interpret.mjs.map"],"mappings":";;;;;;AAOA,SAAS,qBAAqB,OAAO;CACpC,MAAM,UAAU,MAAM,KAAK;CAC3B,MAAM,QAAQ,QAAQ,MAAM,gBAAgB;CAC5C,IAAI,CAAC,OAAO,OAAO;CACnB,OAAO,MAAM,MAAM;AACpB;AACA,MAAM,6BAA6B,OAAO,0BAA0B;AACpE,SAAS,2BAA2B,WAAW;CAC9C,OAAO,cAAc,KAAK,KAAK,aAAa,KAAK,SAAS;AAC3D;AACA,SAAS,sBAAsB,WAAW;CACzC,OAAO,cAAc,KAAK,KAAK,gBAAgB,KAAK,SAAS;AAC9D;AACA,SAAS,mBAAmB,OAAO;CAClC,IAAI,QAAQ;CACZ,SAAS,iBAAiB;EACzB,OAAO,KAAK,KAAK,MAAM,UAAU,EAAE,GAAG,SAAS;CAChD;CACA,SAAS,kBAAkB;EAC1B,MAAM,QAAQ,MAAM;EACpB,IAAI,CAAC,2BAA2B,KAAK,GAAG,OAAO;EAC/C,IAAI,MAAM,QAAQ;EAClB,OAAO,sBAAsB,MAAM,IAAI,GAAG,OAAO;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AI,IAAI;CACzC,KAAK,MAAM,CAAC,SAAS,UAAU,OAAO,QAAQ,eAAe,CAAC,CAAC,GAAG,IAAI,8BAA8B,KAAK,GAAG,SAAS,IAAI,OAAO;CAChI,OAAO;AACR;AACA,SAAS,2BAA2B,OAAO,SAAS;CACnD,OAAO;EACN,MAAM;EACN,SAAS,gCAAgC,MAAM,QAAQ;EACvD,GAAG,iBAAiB,SAAS,MAAM,KAAK,MAAM,CAAC,CAAC,GAAG,eAAe,MAAM,KAAK,QAAQ,MAAM,SAAS,OAAO,CAAC;CAC7G;AACD"}
1
+ {"version":3,"file":"psl-parser__interpret.mjs","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/interpret.mjs"],"sourcesContent":["import { a as keywordPslSpan, f as diagnosticSource, n as contributedTypeCodecId, o as nodePslSpan, t as contributedTypeAt } from \"./contributed-type-scope-CbBzMSUB.mjs\";\nimport { n as reportTypeConstructorNotCalled, r as readExpressionAs, t as isBareTypeConstructor } from \"./type-constructor-calls-CNd1Xlw2.mjs\";\nimport { isAuthoringPslBlockDescriptor } from \"@internal/framework-components/authoring\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { dataTypeId } from \"@internal/framework-components/codec\";\n//#region src/call-arguments.ts\n/** The call as the schema writes it, with its arguments separated by `, `. */\nfunction printTypeConstructorCall(call) {\n\tconst args = call.args.map((arg) => arg.kind === \"named\" ? `${arg.name}: ${arg.value}` : arg.value);\n\treturn `${call.path.join(\".\")}(${args.join(\", \")})`;\n}\n/**\n* Binds a call's arguments to its parameters, as PSL reads every call: the positional arguments fill the parameters in order, wherever named ones sit among them, and a named argument fills the parameter it names, which no other argument may fill. The bound arguments come positional ones first, then named ones, each in the order written.\n*/\nfunction bindCallArguments(args, parameters) {\n\tconst positional = args.filter((arg) => arg.kind === \"positional\");\n\tif (positional.length > parameters.length) return notOk({\n\t\tkind: \"tooManyPositional\",\n\t\treceived: positional.length,\n\t\tbound: []\n\t});\n\tconst bound = positional.map((argument, index) => ({\n\t\targument,\n\t\tindex\n\t}));\n\tconst filled = new Set(bound.map(({ index }) => index));\n\tfor (const argument of args.filter((arg) => arg.kind === \"named\")) {\n\t\tconst index = argument.name === void 0 ? -1 : parameters.indexOf(argument.name);\n\t\tif (index < 0) return notOk({\n\t\t\tkind: \"unknownName\",\n\t\t\targument,\n\t\t\tbound\n\t\t});\n\t\tif (filled.has(index)) return notOk({\n\t\t\tkind: \"filledTwice\",\n\t\t\targument,\n\t\t\tbound\n\t\t});\n\t\tfilled.add(index);\n\t\tbound.push({\n\t\t\targument,\n\t\t\tindex\n\t\t});\n\t}\n\treturn ok(bound);\n}\n/** Each argument's value, keyed by the parameter it fills, as {@link bindCallArguments} binds them; `undefined` when they do not bind. */\nfunction argumentsByParameter(args, parameters) {\n\tconst bound = bindCallArguments(args, parameters);\n\tif (!bound.ok) return void 0;\n\tconst values = /* @__PURE__ */ new Map();\n\tfor (const { argument, index } of bound.value) {\n\t\tconst parameter = parameters[index];\n\t\tif (parameter === void 0) return void 0;\n\t\tvalues.set(parameter, argument.value);\n\t}\n\treturn values;\n}\n//#endregion\n//#region src/authoring-arguments.ts\nconst INVALID_AUTHORING_ARGUMENT = Symbol(\"invalidAuthoringArgument\");\nfunction pushInvalidPslHelperArgument(input) {\n\tinput.diagnostics.push({\n\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\tmessage: `${input.entityLabel} ${input.helperLabel} ${input.message}`,\n\t\t...input.source.at(input.span)\n\t});\n}\n/**\n* The value of one argument as a value of its descriptor's data type, read from its expression as attribute arguments are. A refusal is pushed as a diagnostic at the argument.\n*/\nfunction readPslHelperArgument(input, descriptor, argument, argumentLabel) {\n\tconst { expression } = argument;\n\tif (expression === void 0 && argument.node !== void 0) {\n\t\tpushInvalidPslHelperArgument({\n\t\t\tdiagnostics: input.diagnostics,\n\t\t\tsource: input.source,\n\t\t\tspan: argument.span,\n\t\t\tentityLabel: input.entityLabel,\n\t\t\thelperLabel: input.helperLabel,\n\t\t\tmessage: `${argumentLabel} has no value.`\n\t\t});\n\t\treturn INVALID_AUTHORING_ARGUMENT;\n\t}\n\tif (expression === void 0) throw new InternalError(`${input.entityLabel} ${input.helperLabel} received ${argumentLabel} with no expression. A value argument is read from the expression a schema writes; a reader that builds a call must pass the arguments it parsed, or instantiate the constructor with values.`);\n\tconst read = readExpressionAs(input.dataTypes, dataTypeId(descriptor.dataType), expression);\n\tif (read.ok) return read.value.value;\n\tinput.diagnostics.push({\n\t\tcode: read.failure.code,\n\t\tmessage: read.failure.message,\n\t\t...input.source.at(nodePslSpan(expression.syntax, input.source.sources))\n\t});\n\treturn INVALID_AUTHORING_ARGUMENT;\n}\n/**\n* The arguments of a type constructor call, positional and named, each read as its descriptor says. `undefined`, with a diagnostic pushed, when one cannot be read or does not match a descriptor.\n*/\nfunction mapPslHelperArgs(input) {\n\tconst refuse = (span, message) => pushInvalidPslHelperArgument({\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source,\n\t\tspan,\n\t\tentityLabel: input.entityLabel,\n\t\thelperLabel: input.helperLabel,\n\t\tmessage\n\t});\n\tconst bound = bindCallArguments(input.args, input.descriptors.map((descriptor) => descriptor?.name));\n\tconst mappedArgs = input.descriptors.map(() => void 0);\n\tfor (const { argument, index } of bound.ok ? bound.value : bound.failure.bound) {\n\t\tconst descriptor = input.descriptors[index];\n\t\tif (!descriptor) return refuse(argument.span, `does not define positional argument #${index + 1}.`);\n\t\tconst value = readPslHelperArgument(input, descriptor, argument, argument.kind === \"named\" ? `named argument \"${argument.name}\"` : `argument #${index + 1}`);\n\t\tif (value === INVALID_AUTHORING_ARGUMENT) return void 0;\n\t\tmappedArgs[index] = value;\n\t}\n\tif (bound.ok) return mappedArgs;\n\tconst failure = bound.failure;\n\tswitch (failure.kind) {\n\t\tcase \"tooManyPositional\": return refuse(input.span, `accepts at most ${input.descriptors.length} argument(s), received ${failure.received}.`);\n\t\tcase \"unknownName\": return refuse(failure.argument.span, `received unknown named argument \"${failure.argument.name}\".`);\n\t\tcase \"filledTwice\": return refuse(failure.argument.span, `received duplicate value for argument \"${failure.argument.name}\".`);\n\t}\n}\n//#endregion\n//#region src/enum-member-attributes.ts\nfunction enumMemberAttributeDiagnostics(enumBlock, sources) {\n\tconst source = diagnosticSource(sources, enumBlock.node.syntax);\n\treturn enumBlock.entries.flatMap((member) => Array.from(member.attributes(), (attribute) => ({\n\t\tcode: \"PSL_UNSUPPORTED_ENUM_MEMBER_ATTRIBUTE\",\n\t\tmessage: `enum \"${enumBlock.name}\": member \"${member.key()?.name() ?? \"?\"}\" carries @${attribute.name()?.path().join(\".\") ?? \"?\"}, but an enum member takes no attributes`,\n\t\t...source.at(nodePslSpan(attribute.syntax, sources))\n\t})));\n}\n//#endregion\n//#region src/interpret.ts\n/**\n* Merges caller-side diagnostics (e.g. parse / symbol-table findings) into an\n* interpretation result. The authored headline is deliberately uniform — it\n* reports how many errors the schema has, never which pipeline stage found\n* them.\n*/\nfunction withSeedDiagnostics(result, seedDiagnostics) {\n\tif (seedDiagnostics.length === 0) return result;\n\tconst diagnostics = result.ok ? seedDiagnostics : [...seedDiagnostics, ...result.failure.diagnostics];\n\treturn notOk({\n\t\tsummary: `Schema has ${diagnostics.length} error${diagnostics.length === 1 ? \"\" : \"s\"}`,\n\t\tdiagnostics,\n\t\t...result.ok || result.failure.meta === void 0 ? {} : { meta: result.failure.meta }\n\t});\n}\n/** The single seam that narrows a contract source to the interpret capability. */\nfunction hasPslInterpreter(source) {\n\treturn source.format === \"psl\" && \"interpret\" in source && typeof source.interpret === \"function\";\n}\n//#endregion\n//#region src/relation-backrelations.ts\nfunction fkRelationPairKey(declaringModelName, targetModelName) {\n\treturn `${declaringModelName}::${targetModelName}`;\n}\n/**\n* Claims the one rejected FK side that pairs with this back-relation candidate: same model pair\n* and the same relation name, where an unnamed candidate pairs only with an unnamed FK side.\n* A claimed pairing is removed, so a second candidate on the same pair reports its own problem.\n*/\nfunction consumeInvalidFkPairing(candidate, pairKey, invalidFkPairings) {\n\tconst index = invalidFkPairings.findIndex((pairing) => pairing.pairKey === pairKey && pairing.relationName === candidate.relationName);\n\tif (index === -1) return false;\n\tinvalidFkPairings.splice(index, 1);\n\treturn true;\n}\nfunction requiredOneToOneBackrelationDiagnostic(input) {\n\tconst { modelName, field, targetModelName, sources, recordNoun } = input;\n\treturn {\n\t\tcode: \"PSL_REQUIRED_ONE_TO_ONE_BACKRELATION\",\n\t\tmessage: `Backrelation field \"${modelName}.${field.name}\" is required, but \"${targetModelName}\" holds the relation fields, so nothing in storage guarantees a \"${targetModelName}\" ${recordNoun} exists. Make it optional: \"${field.name} ${targetModelName}?\".`,\n\t\t...diagnosticSource(sources, field.node.syntax).at(field.span)\n\t};\n}\n//#endregion\n//#region src/removed-field-presets.ts\nconst PHASES = [\"onCreate\", \"onUpdate\"];\n/** The row of a preset whose rewrite is always `written`, such as `Ulid @id @onCreate(ulid())`; its type is the first word of `written`. */\nfunction removedPresetWrittenAs(written, codecId) {\n\tconst [type = written] = written.split(/[ (]/);\n\treturn [{\n\t\ttype: type.split(\".\"),\n\t\t...codecId === void 0 ? {} : { codecId },\n\t\trewrite: () => `Write ${written}.`\n\t}];\n}\n/**\n* The row of a preset that took `onCreate: now` and `onUpdate: now`, and a precision first when `takesPrecision`. Its rewrite writes `type`, with the precision as its argument and `@onCreate(now())` and `@onUpdate(now())` for the phases the call set.\n*/\nfunction removedPresetWithPhases(type, codecId, takesPrecision) {\n\tconst parameters = takesPrecision ? [\"precision\", ...PHASES] : [...PHASES];\n\tconst fallback = `Write ${type}${takesPrecision ? \"(...)\" : \"\"} with @onCreate(now()) and @onUpdate(now()) for the phases the preset set.`;\n\treturn [{\n\t\ttype: [type],\n\t\tcodecId,\n\t\trewrite: (call) => {\n\t\t\tconst args = argumentsByParameter(call.args, parameters);\n\t\t\tconst precision = args?.get(\"precision\");\n\t\t\tif (args === void 0 || precision !== void 0 && !/^\\d+$/.test(precision) || PHASES.some((phase) => args.has(phase) && args.get(phase) !== \"now\")) return fallback;\n\t\t\tconst attributes = PHASES.filter((phase) => args.has(phase)).map((phase) => ` @${phase}(now())`);\n\t\t\treturn `Write ${type}${precision === void 0 ? \"\" : `(${precision})`}${attributes.join(\"\")}.`;\n\t\t}\n\t}];\n}\n/**\n* The refusal of a call to a field preset Prisma 8 removed, naming what to write instead, or `undefined` when `presets` has no row for the call that applies to a stack whose types `types` holds. A row is skipped when `isDeclared` says the schema declares the first name of its type, because the rewrite would then name the schema's declaration.\n*/\nfunction describeRemovedFieldPreset(presets, call, types, isDeclared) {\n\tconst path = call.path.join(\".\");\n\tconst preset = (Object.hasOwn(presets, path) ? presets[path] : void 0)?.find((row) => {\n\t\tconst [name] = row.type;\n\t\tconst replacement = contributedTypeAt(types, row.type);\n\t\treturn replacement !== void 0 && (name === void 0 || !isDeclared(name)) && (row.codecId === void 0 || contributedTypeCodecId(replacement) === row.codecId);\n\t});\n\tif (preset === void 0) return void 0;\n\treturn `${printTypeConstructorCall(call)} was a field preset, and Prisma 8 removed field presets. ${preset.rewrite(call)}`;\n}\n//#endregion\n//#region src/unclaimed-blocks.ts\n/** A generic block is read only when a composed descriptor claims its keyword. */\nfunction claimedBlockKeywords(descriptors) {\n\tconst keywords = /* @__PURE__ */ new Set();\n\tfor (const [keyword, value] of Object.entries(descriptors ?? {})) if (isAuthoringPslBlockDescriptor(value)) keywords.add(keyword);\n\treturn keywords;\n}\nfunction unsupportedBlockDiagnostic(block, sources) {\n\treturn {\n\t\tcode: \"PSL_UNSUPPORTED_TOP_LEVEL_BLOCK\",\n\t\tmessage: `Unsupported top-level block \"${block.keyword}\"`,\n\t\t...diagnosticSource(sources, block.node.syntax).at(keywordPslSpan(block.node.syntax, block.keyword, sources))\n\t};\n}\n//#endregion\nexport { claimedBlockKeywords, consumeInvalidFkPairing, describeRemovedFieldPreset, enumMemberAttributeDiagnostics, fkRelationPairKey, hasPslInterpreter, isBareTypeConstructor, mapPslHelperArgs, removedPresetWithPhases, removedPresetWrittenAs, reportTypeConstructorNotCalled, requiredOneToOneBackrelationDiagnostic, unsupportedBlockDiagnostic, withSeedDiagnostics };\n\n//# sourceMappingURL=interpret.mjs.map"],"mappings":";;;;;;;AAQA,SAAS,yBAAyB,MAAM;CACvC,MAAM,OAAO,KAAK,KAAK,KAAK,QAAQ,IAAI,SAAS,UAAU,GAAG,IAAI,KAAK,IAAI,IAAI,UAAU,IAAI,KAAK;CAClG,OAAO,GAAG,KAAK,KAAK,KAAK,GAAG,EAAE,GAAG,KAAK,KAAK,IAAI,EAAE;AAClD;;;;AAIA,SAAS,kBAAkB,MAAM,YAAY;CAC5C,MAAM,aAAa,KAAK,QAAQ,QAAQ,IAAI,SAAS,YAAY;CACjE,IAAI,WAAW,SAAS,WAAW,QAAQ,OAAO,MAAM;EACvD,MAAM;EACN,UAAU,WAAW;EACrB,OAAO,CAAC;CACT,CAAC;CACD,MAAM,QAAQ,WAAW,KAAK,UAAU,WAAW;EAClD;EACA;CACD,EAAE;CACF,MAAM,SAAS,IAAI,IAAI,MAAM,KAAK,EAAE,YAAY,KAAK,CAAC;CACtD,KAAK,MAAM,YAAY,KAAK,QAAQ,QAAQ,IAAI,SAAS,OAAO,GAAG;EAClE,MAAM,QAAQ,SAAS,SAAS,KAAK,IAAI,KAAK,WAAW,QAAQ,SAAS,IAAI;EAC9E,IAAI,QAAQ,GAAG,OAAO,MAAM;GAC3B,MAAM;GACN;GACA;EACD,CAAC;EACD,IAAI,OAAO,IAAI,KAAK,GAAG,OAAO,MAAM;GACnC,MAAM;GACN;GACA;EACD,CAAC;EACD,OAAO,IAAI,KAAK;EAChB,MAAM,KAAK;GACV;GACA;EACD,CAAC;CACF;CACA,OAAO,GAAG,KAAK;AAChB;;AAEA,SAAS,qBAAqB,MAAM,YAAY;CAC/C,MAAM,QAAQ,kBAAkB,MAAM,UAAU;CAChD,IAAI,CAAC,MAAM,IAAI,OAAO,KAAK;CAC3B,MAAM,yBAAyB,IAAI,IAAI;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K,GAAG,OAAO,KAAK;CACnC,OAAO,GAAG,yBAAyB,IAAI,EAAE,2DAA2D,OAAO,QAAQ,IAAI;AACxH;;AAIA,SAAS,qBAAqB,aAAa;CAC1C,MAAM,2BAA2B,IAAI,IAAI;CACzC,KAAK,MAAM,CAAC,SAAS,UAAU,OAAO,QAAQ,eAAe,CAAC,CAAC,GAAG,IAAI,8BAA8B,KAAK,GAAG,SAAS,IAAI,OAAO;CAChI,OAAO;AACR;AACA,SAAS,2BAA2B,OAAO,SAAS;CACnD,OAAO;EACN,MAAM;EACN,SAAS,gCAAgC,MAAM,QAAQ;EACvD,GAAG,iBAAiB,SAAS,MAAM,KAAK,MAAM,CAAC,CAAC,GAAG,eAAe,MAAM,KAAK,QAAQ,MAAM,SAAS,OAAO,CAAC;CAC7G;AACD"}
@@ -1,5 +1,5 @@
1
1
  import { n as TokenKind } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
2
- import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, C as IdentifierAst, D as ModelAttributeAst, E as MixinInclusionAst, F as ParseDiagnostic, G as StringLiteralExprAst, H as QualifiedNameAst, I as ParseResult, J as SyntaxKind, K as StringLiteralQuote, L as PathExprAst, M as NumberLiteralExprAst, N as ObjectFieldAst, O as ModelDeclarationAst, P as ObjectLiteralExprAst, Q as TokenAtOffset, R as Position, S as HasDocComment, T as MixinDeclarationAst, U as Range, V as PslSources, W as SourceFile, X as SyntaxToken, Y as SyntaxNode, Z as TaggedLiteralExprAst, _ as GenericBlockDeclarationAst, a as AttributeAst, b as GreenNode, c as BracedBlock, ct as filterChildren, dt as greenNode, et as TypesBlockAst, f as DocumentAst, ft as greenToken, g as FunctionCallAst, h as FieldDeclarationAst, ht as printSyntax, i as AttributeArgListAst, it as createSyntaxTree, j as NamespaceMemberAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, lt as findChildToken, m as FieldAttributeAst, mt as parse, n as AstNode, nt as castExpression, o as BlockMemberAst, p as ExpressionAst, q as SyntaxElement, r as AttributeArgAst, s as BooleanLiteralExprAst, st as dottedPathsIn, t as ArrayLiteralAst, tt as any, u as DeclarationAst, ut as findFirstChild, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement } from "./parse-djL5wker-sY18Mt5K.mjs";
2
+ import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, C as IdentifierAst, D as ModelAttributeAst, E as MixinInclusionAst, F as ParseDiagnostic, G as StringLiteralExprAst, H as QualifiedNameAst, I as ParseResult, J as SyntaxKind, K as StringLiteralQuote, L as PathExprAst, M as NumberLiteralExprAst, N as ObjectFieldAst, O as ModelDeclarationAst, P as ObjectLiteralExprAst, Q as TokenAtOffset, R as Position, S as HasDocComment, T as MixinDeclarationAst, U as Range, V as PslSources, W as SourceFile, X as SyntaxToken, Y as SyntaxNode, Z as TaggedLiteralExprAst, _ as GenericBlockDeclarationAst, a as AttributeAst, b as GreenNode, c as BracedBlock, ct as filterChildren, dt as greenNode, et as TypesBlockAst, f as DocumentAst, ft as greenToken, g as FunctionCallAst, h as FieldDeclarationAst, ht as printSyntax, i as AttributeArgListAst, it as createSyntaxTree, j as NamespaceMemberAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, lt as findChildToken, m as FieldAttributeAst, mt as parse, n as AstNode, nt as castExpression, o as BlockMemberAst, p as ExpressionAst, q as SyntaxElement, r as AttributeArgAst, s as BooleanLiteralExprAst, st as dottedPathsIn, t as ArrayLiteralAst, tt as any, u as DeclarationAst, ut as findFirstChild, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement } from "./parse-djL5wker-DnMlKOii.mjs";
3
3
  //#region ../../../1-framework/2-authoring/psl-parser/dist/syntax.d.mts
4
4
  //#region src/syntax/green-builder.d.ts
5
5
  declare class GreenNodeBuilder {
@@ -1,4 +1,4 @@
1
- import { C as printSyntax, S as findFirstChild, _ as castExpression, a as IdentifierAst, b as filterChildren, c as ObjectLiteralExprAst, d as StringLiteralExprAst, f as SyntaxNode, g as any, h as TokenAtOffset, i as FunctionCallAst, l as PathExprAst, m as TaggedLiteralExprAst, n as AttributeArgAst, o as NumberLiteralExprAst, p as SyntaxToken, r as BooleanLiteralExprAst, s as ObjectFieldAst, t as ArrayLiteralAst, u as QualifiedNameAst, v as createSyntaxTree, x as findChildToken, y as dottedPathsIn } from "./expressions-CMQzbnHk-BL2zN0Iv.mjs";
2
- import { _ as isTriviaKind, a as FieldDeclarationAst, c as MixinDeclarationAst, d as ModelDeclarationAst, f as NamedTypeDeclarationAst, g as isTrivia, h as TypesBlockAst, i as FieldAttributeAst, l as MixinInclusionAst, m as TypeAnnotationAst, n as CompositeTypeDeclarationAst, o as GenericBlockDeclarationAst, p as NamespaceDeclarationAst, r as DocumentAst, s as KeyValuePairAst, t as AttributeArgListAst, u as ModelAttributeAst, v as nonTriviaSibling, y as skipTriviaToken } from "./declarations-BgUAq1RG-Dz_-EI1Q.mjs";
3
- import { a as greenToken, i as greenNode, n as PslSources, o as parse, r as SourceFile, t as GreenNodeBuilder } from "./parse-bZgfjovA-BNgYhylT.mjs";
1
+ import { C as printSyntax, S as findFirstChild, _ as castExpression, a as IdentifierAst, b as filterChildren, c as ObjectLiteralExprAst, d as StringLiteralExprAst, f as SyntaxNode, g as any, h as TokenAtOffset, i as FunctionCallAst, l as PathExprAst, m as TaggedLiteralExprAst, n as AttributeArgAst, o as NumberLiteralExprAst, p as SyntaxToken, r as BooleanLiteralExprAst, s as ObjectFieldAst, t as ArrayLiteralAst, u as QualifiedNameAst, v as createSyntaxTree, x as findChildToken, y as dottedPathsIn } from "./expressions-CMQzbnHk-FYhlr1aG.mjs";
2
+ import { _ as isTriviaKind, a as FieldDeclarationAst, c as MixinDeclarationAst, d as ModelDeclarationAst, f as NamedTypeDeclarationAst, g as isTrivia, h as TypesBlockAst, i as FieldAttributeAst, l as MixinInclusionAst, m as TypeAnnotationAst, n as CompositeTypeDeclarationAst, o as GenericBlockDeclarationAst, p as NamespaceDeclarationAst, r as DocumentAst, s as KeyValuePairAst, t as AttributeArgListAst, u as ModelAttributeAst, v as nonTriviaSibling, y as skipTriviaToken } from "./declarations-BgUAq1RG-DPNkVezv.mjs";
3
+ import { a as greenToken, i as greenNode, n as PslSources, o as parse, r as SourceFile, t as GreenNodeBuilder } from "./parse-bZgfjovA-gD3hVy3X.mjs";
4
4
  export { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, DocumentAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, GreenNodeBuilder, IdentifierAst, KeyValuePairAst, MixinDeclarationAst, MixinInclusionAst, ModelAttributeAst, ModelDeclarationAst, NamedTypeDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectFieldAst, ObjectLiteralExprAst, PathExprAst, PslSources, QualifiedNameAst, SourceFile, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TokenAtOffset, TypeAnnotationAst, TypesBlockAst, any, castExpression, createSyntaxTree, dottedPathsIn, filterChildren, findChildToken, findFirstChild, greenNode, greenToken, isTrivia, isTriviaKind, nonTriviaSibling, parse, printSyntax, skipTriviaToken };
@@ -1,7 +1,7 @@
1
- import { E as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-DSqNuI8w-BMQDwpgF.mjs";
2
- import "./authoring-C9wgJCNs.mjs";
3
- import { f as PslDocumentAst } from "./psl-ast-C8W7AM1f-DYtFq1nP.mjs";
4
- import "./psl-ast-sZ1tAYRc.mjs";
1
+ import { x as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-ebqZ8M_M-DIDpVcUB.mjs";
2
+ import "./authoring-C2UAuRfN.mjs";
3
+ import { f as PslDocumentAst } from "./psl-ast-0oMzInxd-Nx9cHmcc.mjs";
4
+ import "./psl-ast-CFQfCJeM.mjs";
5
5
  //#region ../../../1-framework/2-authoring/psl-printer/dist/index.d.mts
6
6
  //#region src/print-psl.d.ts
7
7
  type PslBlockDescriptorsNamespace = AuthoringPslBlockDescriptorNamespace;
@@ -1,6 +1,6 @@
1
1
  import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
2
2
  import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
3
- import { O as isAuthoringPslBlockDescriptor } from "./temporal-presets-5TK1pTYJ-DmhrnMP1.mjs";
3
+ import { T as isAuthoringPslBlockDescriptor } from "./temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs";
4
4
  import { a as flatPslModels, c as namespacePslExtensionBlocks } from "./psl-ast-CyvE6CR-.mjs";
5
5
  //#region ../../../1-framework/2-authoring/psl-printer/dist/index.mjs
6
6
  function contractError(code, message, options) {
@@ -0,0 +1,133 @@
1
+ import { _ as DataType, v as DataTypeId } from "./codec-types-B4wPvO-K-BqcGrCE-.mjs";
2
+ import { E as AuthoringTypeConstructorDescriptor, R as DataTypeAuthoringEntry, S as AuthoringStorageTypeTemplate, et as MutationDefaultGeneratorDescriptor, o as AuthoringContributions, z as DataTypeSupport } from "./framework-authoring-ebqZ8M_M-DIDpVcUB.mjs";
3
+ //#region ../../../1-framework/1-core/framework-components/dist/temporal-type-aliases-BIiamFSH.d.mts
4
+ //#region src/shared/data-type-support.d.ts
5
+ /** A component as data type assembly reads it: the data types it registers, their authoring entries, the codecs that name them, and the type constructors whose value arguments name them. */
6
+ interface DataTypeComponent {
7
+ readonly id?: string;
8
+ readonly dataTypes?: ReadonlyArray<DataType>;
9
+ readonly authoring?: Pick<AuthoringContributions, 'dataTypes' | 'type' | 'textDataTypes'>;
10
+ readonly types?: {
11
+ readonly [slot: string]: unknown;
12
+ readonly codecTypes?: {
13
+ readonly codecDescriptors?: ReadonlyArray<{
14
+ readonly codecId: string;
15
+ readonly dataType: DataTypeId;
16
+ }>;
17
+ };
18
+ };
19
+ }
20
+ /** A type constructor, the helper that takes arguments, with the path it is registered under and who registered it. */
21
+ interface ContributedHelper {
22
+ readonly path: string;
23
+ readonly descriptor: AuthoringTypeConstructorDescriptor;
24
+ readonly contributedBy: string;
25
+ }
26
+ interface AssembledDataTypeSupport {
27
+ readonly support: DataTypeSupport;
28
+ /** Every data type the components register, with the id of the component that registered it. */
29
+ readonly declared: ReadonlyArray<{
30
+ readonly type: DataType;
31
+ readonly contributedBy: string;
32
+ }>;
33
+ }
34
+ /** Merge every component's PSL support for its data types, refusing two claims on one key. */
35
+ declare function assembleAuthoringDataTypes(components: ReadonlyArray<Pick<DataTypeComponent, 'id' | 'authoring'>>): Readonly<Record<string, DataTypeAuthoringEntry>>;
36
+ /**
37
+ * The data types the components register, with their authoring entries, as every contract source reads values with. Refuses two registrations of one data type or one entry key, every case {@link enforceDataTypeAssemblyInvariants} lists, a value argument of a type constructor whose data type is unregistered or that no contract source can write, and a type-constructor argument that is not a value. ADR 254.
38
+ */
39
+ declare function assembleDataTypeSupport(components: ReadonlyArray<DataTypeComponent>, dataTypeOfCodec: (codecId: string) => DataTypeId | undefined): AssembledDataTypeSupport;
40
+ //#endregion
41
+ //#region src/shared/tagged-literal.d.ts
42
+ /**
43
+ * `text` is the canonical value of the literal. Every failure `offset` is an
44
+ * index into the resolved body the function was given, including `too-large`,
45
+ * whose limit is measured on the canonical text.
46
+ */
47
+ type TaggedLiteralCanonicalization = {
48
+ readonly ok: true;
49
+ readonly text: string;
50
+ } | {
51
+ readonly ok: false;
52
+ readonly reason: 'nul' | 'too-large';
53
+ readonly offset: number;
54
+ };
55
+ declare const TAGGED_LITERAL_MAX_BYTES = 65536;
56
+ /** The message a tagged literal's canonicalization failure is reported with, in PSL and in TypeScript. */
57
+ declare function describeTaggedLiteralFailure(reason: 'nul' | 'too-large'): string;
58
+ /** The escapes a PSL backtick string resolves: `` \` `` and `\\`. PSL has no interpolation, so `${` is ordinary text. */
59
+ declare function resolvePslBacktickEscapes(raw: string): string;
60
+ /** The escapes a TypeScript template tag resolves: the PSL two plus `\$`, the only way to write `${` in a template literal. */
61
+ declare function resolveTemplateTagEscapes(raw: string): string;
62
+ /**
63
+ * Turns the escape-resolved body of a tagged literal into its canonical text:
64
+ * newlines become `\n`, every blank line before the first non-blank line and
65
+ * after the last one is dropped, common leading whitespace is removed, internal
66
+ * blank lines become empty, and no trailing newline is added. The result is its
67
+ * own canonical text. Fails on a NUL character or when the result is larger
68
+ * than 65536 UTF-8 bytes.
69
+ */
70
+ declare function canonicalizeTaggedLiteralBody(resolved: string): TaggedLiteralCanonicalization;
71
+ /**
72
+ * The PSL text of a tagged literal holding `text`: the backtick form, or the double-quote form when the text holds a
73
+ * backtick, which reads better than escaping each backtick. A multi-line text starts on the line after the opening
74
+ * backtick, so indentation a printer adds to an enclosing block is common to every line and the canonicalization
75
+ * removes it. The literal's canonical text is `text` again only when {@link printedTaggedLiteralReadsBack} holds; text
76
+ * with leading indentation or a carriage return, for example, does not read back. ADR 129.
77
+ */
78
+ declare function printTaggedLiteral(tag: string, text: string): string;
79
+ /** Whether the literal {@link printTaggedLiteral} prints for `text` has `text` as its canonical text. */
80
+ declare function printedTaggedLiteralReadsBack(text: string): boolean;
81
+ /**
82
+ * TypeScript source for `text` in generated code: a template literal with `tag`, or `tsQuotedTextSource(text)`. It
83
+ * writes a template only when the tag's TypeScript function canonicalizes its text as `canonicalizeTaggedLiteralBody`
84
+ * does and that leaves `text` unchanged, which holds for `sql`. It also falls back when a line ends in a space or a
85
+ * tab, which editors strip on save, and when `text` holds a character a template would carry unescaped and invisible.
86
+ * A multi-line template's lines sit one level deeper than the line it opens on.
87
+ */
88
+ declare function tsTaggedTemplateSource(tag: string, text: string): {
89
+ readonly source: string;
90
+ readonly usesTag: boolean;
91
+ };
92
+ //#endregion
93
+ //#region src/shared/temporal-type-aliases.d.ts
94
+ /**
95
+ * Canonical id for the wall-clock-now mutation default generator. It flows to the control-plane descriptor, to each family's runtime generator, and to the `now()` binding of the codecs that store it.
96
+ */
97
+ declare const TIMESTAMP_NOW_GENERATOR_ID: "timestampNow";
98
+ /** Builds the control-plane descriptor for the wall-clock-now mutation default generator. */
99
+ declare function timestampNowControlDescriptor(): MutationDefaultGeneratorDescriptor;
100
+ /**
101
+ * Builds the `temporal.{CreatedAt,UpdatedAt}` type alias pair for a target's timestamp column type. `CreatedAt` calls `now()` on create; `UpdatedAt` calls it on create and on update. The target's `now()` binding for the codec picks the generator. `value` names the value the codec gives in TypeScript, such as `a JavaScript Date`, and ends each alias's documentation.
102
+ */
103
+ declare function temporalTypeAliases<const Type extends AuthoringStorageTypeTemplate>(type: Type, value: string): {
104
+ readonly CreatedAt: {
105
+ readonly kind: "typeAlias";
106
+ readonly documentation: `A timestamp the client sets to now when a row is created. Its value is ${string}.`;
107
+ readonly output: {
108
+ readonly type: Type;
109
+ readonly onCreate: {
110
+ readonly name: "now";
111
+ readonly args: {};
112
+ };
113
+ };
114
+ };
115
+ readonly UpdatedAt: {
116
+ readonly kind: "typeAlias";
117
+ readonly documentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${string}.`;
118
+ readonly output: {
119
+ readonly type: Type;
120
+ readonly onCreate: {
121
+ readonly name: "now";
122
+ readonly args: {};
123
+ };
124
+ readonly onUpdate: {
125
+ readonly name: "now";
126
+ readonly args: {};
127
+ };
128
+ };
129
+ };
130
+ };
131
+ //#endregion
132
+ export { tsTaggedTemplateSource as _, TIMESTAMP_NOW_GENERATOR_ID as a, assembleDataTypeSupport as c, printTaggedLiteral as d, printedTaggedLiteralReadsBack as f, timestampNowControlDescriptor as g, temporalTypeAliases as h, TAGGED_LITERAL_MAX_BYTES as i, canonicalizeTaggedLiteralBody as l, resolveTemplateTagEscapes as m, ContributedHelper as n, TaggedLiteralCanonicalization as o, resolvePslBacktickEscapes as p, DataTypeComponent as r, assembleAuthoringDataTypes as s, AssembledDataTypeSupport as t, describeTaggedLiteralFailure as u };
133
+ //# sourceMappingURL=temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/temporal-type-aliases-BIiamFSH.d.mts"],"mappings":";;;;;UAIU;WACC;WACA,YAAY,cAAc;WAC1B,YAAY,KAAK;WACjB;cACG;aACD;eACE,mBAAmB;iBACjB;iBACA,UAAU;;;;;;UAMjB;WACC;WACA,YAAY;WACZ;;UAED;WACC,SAAS;;WAET,UAAU;aACR,MAAM;aACN;;;;iBAII,2BAA2B,YAAY,cAAc,KAAK,0CAA0C,SAAS,eAAe;;;;iBAI5H,wBAAwB,YAAY,cAAc,oBAAoB,kBAAkB,oBAAoB,yBAAyB;;;;;;;;KAQjJ;WACM;WACA;;WAEA;WACA;WACA;;cAEG;;iBAEG,6BAA6B;;iBAE7B,0BAA0B;;iBAE1B,0BAA0B;;;;;;;;;iBAS1B,8BAA8B,mBAAmB;;;;;;;;iBAQjD,mBAAmB,aAAa;;iBAEhC,8BAA8B;;;;;;;;iBAQ9B,uBAAuB,aAAa;WAC1C;WACA;;;;;;;cAOG;;iBAEG,iCAAiC;;;;iBAIjC,0BAA0B,aAAa,8BAA8B,MAAM,MAAM;WACvF;aACE;aACA;aACA;eACE,MAAM;eACN;iBACE;iBACA;;;;WAIN;aACE;aACA;aACA;eACE,MAAM;eACN;iBACE;iBACA;;eAEF;iBACE;iBACA"}