@prisma/orm-framework 8.0.0-rc.24-dev.28 → 8.0.0-rc.24-dev.29

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/README.md +2 -0
  2. package/dist/{authoring-DnYn5EZT.mjs → authoring-BoRTq-7r.mjs} +2 -2
  3. package/dist/{authoring-DnYn5EZT.mjs.map → authoring-BoRTq-7r.mjs.map} +1 -1
  4. package/dist/{binder-CMy3WM5A-gjYNJqla.d.mts → binder-CMy3WM5A-BjkRdpH6.d.mts} +4 -4
  5. package/dist/{binder-CMy3WM5A-gjYNJqla.d.mts.map → binder-CMy3WM5A-BjkRdpH6.d.mts.map} +1 -1
  6. package/dist/boolean-C37kSXDF.mjs +14 -0
  7. package/dist/boolean-C37kSXDF.mjs.map +1 -0
  8. package/dist/boolean-CcUSuhCU.d.mts +9 -0
  9. package/dist/boolean-CcUSuhCU.d.mts.map +1 -0
  10. package/dist/{codec-yFwW7XRh.mjs → codec-CBJNOQS4.mjs} +2 -2
  11. package/dist/{codec-yFwW7XRh.mjs.map → codec-CBJNOQS4.mjs.map} +1 -1
  12. package/dist/{components-BaV9iCkq.mjs → components-Bx7dm2HO.mjs} +2 -2
  13. package/dist/{components-BaV9iCkq.mjs.map → components-Bx7dm2HO.mjs.map} +1 -1
  14. package/dist/components.d.mts +5 -5
  15. package/dist/components.mjs +7 -8
  16. package/dist/components__authoring.mjs +2 -2
  17. package/dist/components__codec.mjs +1 -1
  18. package/dist/components__components.mjs +2 -2
  19. package/dist/components__control.d.mts +1 -1
  20. package/dist/components__control.mjs +2 -2
  21. package/dist/components__emission.d.mts +3 -3
  22. package/dist/components__emission.mjs +1 -2
  23. package/dist/{config-types-D0mYyP62.mjs → config-types-DlaG0ylV.mjs} +4 -2
  24. package/dist/config-types-DlaG0ylV.mjs.map +1 -0
  25. package/dist/{config-types-Ck3UXVIU.d.mts → config-types-DvM9eXG7.d.mts} +6 -2
  26. package/dist/{config-types-Ck3UXVIU.d.mts.map → config-types-DvM9eXG7.d.mts.map} +1 -1
  27. package/dist/config.d.mts +1 -1
  28. package/dist/config.mjs +1 -1
  29. package/dist/config__config-types.d.mts +1 -1
  30. package/dist/config__config-types.mjs +1 -1
  31. package/dist/contract-authoring.mjs +3 -3
  32. package/dist/{control-BeXOxtXA-CoPQgVyR.d.mts → control-BeXOxtXA-D1DDBvDL.d.mts} +2 -2
  33. package/dist/{control-BeXOxtXA-CoPQgVyR.d.mts.map → control-BeXOxtXA-D1DDBvDL.d.mts.map} +1 -1
  34. package/dist/control-DI1fnOUO.d.mts +1 -0
  35. package/dist/{control-B0KO727Y.mjs → control-DNwP6V2m.mjs} +3 -3
  36. package/dist/{control-B0KO727Y.mjs.map → control-DNwP6V2m.mjs.map} +1 -1
  37. package/dist/{control-MllEQmML-IlhSvGbE.mjs → control-MllEQmML-aKdJLwRB.mjs} +2 -2
  38. package/dist/{control-MllEQmML-IlhSvGbE.mjs.map → control-MllEQmML-aKdJLwRB.mjs.map} +1 -1
  39. package/dist/{control-B3QHYJcv.d.mts → control-rzZBO0wp.d.mts} +116 -121
  40. package/dist/control-rzZBO0wp.d.mts.map +1 -0
  41. package/dist/decimal-CetFpCr5.mjs +49 -0
  42. package/dist/decimal-CetFpCr5.mjs.map +1 -0
  43. package/dist/decimal-DpMh1SwW.d.mts +15 -0
  44. package/dist/decimal-DpMh1SwW.d.mts.map +1 -0
  45. package/dist/{declarations-8CRDqUTt-B0YG2lqY.mjs → declarations-8CRDqUTt-BZ6aspIz.mjs} +2 -2
  46. package/dist/{declarations-8CRDqUTt-B0YG2lqY.mjs.map → declarations-8CRDqUTt-BZ6aspIz.mjs.map} +1 -1
  47. package/dist/{dist-D1f6xr7F.mjs → dist-s8Mn2iIF.mjs} +7 -10
  48. package/dist/dist-s8Mn2iIF.mjs.map +1 -0
  49. package/dist/{emission-DGYCaKjl.d.mts → emission-ZgkI1aFl.d.mts} +1 -1
  50. package/dist/{emission-types-bX2HmNSC-vaRddb1_.d.mts → emission-types-BuZVDb1i-BnSb9rsQ.d.mts} +6 -42
  51. package/dist/emission-types-BuZVDb1i-BnSb9rsQ.d.mts.map +1 -0
  52. package/dist/errors.d.mts +4 -4
  53. package/dist/errors.mjs +3 -3
  54. package/dist/errors__control.d.mts +2 -2
  55. package/dist/errors__control.mjs +1 -1
  56. package/dist/errors__execution.d.mts +1 -1
  57. package/dist/errors__execution.mjs +1 -1
  58. package/dist/errors__migration.d.mts +1 -1
  59. package/dist/errors__migration.mjs +1 -1
  60. package/dist/{execution-DLAnWNAh.d.mts → execution-Bbc4v1Vn.d.mts} +2 -2
  61. package/dist/{execution-DLAnWNAh.d.mts.map → execution-Bbc4v1Vn.d.mts.map} +1 -1
  62. package/dist/{execution-DE_55Rj3.mjs → execution-DMqI5fFP.mjs} +2 -2
  63. package/dist/{execution-DE_55Rj3.mjs.map → execution-DMqI5fFP.mjs.map} +1 -1
  64. package/dist/{expressions-BlhT51Ib-CQCMuQD8.mjs → expressions-BlhT51Ib-DfkeWOwr.mjs} +2 -2
  65. package/dist/{expressions-BlhT51Ib-CQCMuQD8.mjs.map → expressions-BlhT51Ib-DfkeWOwr.mjs.map} +1 -1
  66. package/dist/{generator-functions-CXbQfvYu-BIFU1Ryx.mjs → generator-functions-VMolCOGa-xY11fV0Q.mjs} +4 -3
  67. package/dist/generator-functions-VMolCOGa-xY11fV0Q.mjs.map +1 -0
  68. package/dist/json-Cjj5_v0y.mjs +67 -0
  69. package/dist/json-Cjj5_v0y.mjs.map +1 -0
  70. package/dist/json-oOHvzn6v.d.mts +18 -0
  71. package/dist/json-oOHvzn6v.d.mts.map +1 -0
  72. package/dist/{migration-rWN1KSXH.mjs → migration-BfPqhbjG.mjs} +2 -2
  73. package/dist/{migration-rWN1KSXH.mjs.map → migration-BfPqhbjG.mjs.map} +1 -1
  74. package/dist/{migration-KEyQBpKF.d.mts → migration-BiqyI92H.d.mts} +2 -2
  75. package/dist/{migration-KEyQBpKF.d.mts.map → migration-BiqyI92H.d.mts.map} +1 -1
  76. package/dist/{parse-D-B_nrfC-FsqZwLif.mjs → parse-D-B_nrfC-agY84gQk.mjs} +3 -3
  77. package/dist/{parse-D-B_nrfC-FsqZwLif.mjs.map → parse-D-B_nrfC-agY84gQk.mjs.map} +1 -1
  78. package/dist/{parse-djL5wker-Bx0JH2c_.d.mts → parse-djL5wker-DNAOL0Cj.d.mts} +2 -2
  79. package/dist/{parse-djL5wker-Bx0JH2c_.d.mts.map → parse-djL5wker-DNAOL0Cj.d.mts.map} +1 -1
  80. package/dist/psl-parser.d.mts +3 -3
  81. package/dist/psl-parser.mjs +5 -5
  82. package/dist/psl-parser__format.d.mts +1 -1
  83. package/dist/psl-parser__format.mjs +3 -3
  84. package/dist/psl-parser__interpret.d.mts +3 -3
  85. package/dist/psl-parser__interpret.mjs +2 -2
  86. package/dist/psl-parser__syntax.d.mts +1 -1
  87. package/dist/psl-parser__syntax.mjs +3 -3
  88. package/dist/psl-printer.mjs +5 -2
  89. package/dist/psl-printer.mjs.map +1 -1
  90. package/dist/target-package-config.d.mts +2 -0
  91. package/dist/target-package-config.mjs +2 -0
  92. package/dist/target-package-config__type-declarations.d.mts +2 -0
  93. package/dist/target-package-config__type-declarations.mjs +2 -0
  94. package/dist/{temporal-type-aliases-CFh3BW2a-DOlmiuQn.mjs → temporal-type-aliases-CFh3BW2a-CeZV7A5h.mjs} +2 -2
  95. package/dist/{temporal-type-aliases-CFh3BW2a-DOlmiuQn.mjs.map → temporal-type-aliases-CFh3BW2a-CeZV7A5h.mjs.map} +1 -1
  96. package/dist/ts-render.mjs +1 -1
  97. package/dist/{type-constructor-calls-Bfg5ojed-Ld7LE20u.mjs → type-constructor-calls-Bfg5ojed-DlLeoRYW.mjs} +4 -4
  98. package/dist/{type-constructor-calls-Bfg5ojed-Ld7LE20u.mjs.map → type-constructor-calls-Bfg5ojed-DlLeoRYW.mjs.map} +1 -1
  99. package/dist/type-declarations-CPPGpPSj.mjs +58 -0
  100. package/dist/type-declarations-CPPGpPSj.mjs.map +1 -0
  101. package/dist/type-declarations-C_77eFnt.d.mts +11 -0
  102. package/dist/type-declarations-C_77eFnt.d.mts.map +1 -0
  103. package/dist/type-implementations.d.mts +4 -1
  104. package/dist/type-implementations.mjs +4 -1
  105. package/dist/type-implementations__boolean.d.mts +2 -0
  106. package/dist/type-implementations__boolean.mjs +2 -0
  107. package/dist/type-implementations__decimal.d.mts +2 -0
  108. package/dist/type-implementations__decimal.mjs +2 -0
  109. package/dist/type-implementations__json.d.mts +2 -0
  110. package/dist/type-implementations__json.mjs +2 -0
  111. package/package.json +22 -16
  112. package/dist/config-types-D0mYyP62.mjs.map +0 -1
  113. package/dist/control-B0WmeKXX.d.mts +0 -1
  114. package/dist/control-B3QHYJcv.d.mts.map +0 -1
  115. package/dist/dist-D1f6xr7F.mjs.map +0 -1
  116. package/dist/emission-CeoAV9mj.mjs +0 -26
  117. package/dist/emission-CeoAV9mj.mjs.map +0 -1
  118. package/dist/emission-types-bX2HmNSC-vaRddb1_.d.mts.map +0 -1
  119. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
2
2
  import { r as docsUrlFor } from "./structured-error-BXbihKQ-.mjs";
3
3
  import "./namespace-VUH2dgnS-By5y75h9.mjs";
4
- import { nt as migrationStatementJson } from "./control-B0KO727Y.mjs";
4
+ import { nt as migrationStatementJson } from "./control-DNwP6V2m.mjs";
5
5
  //#region ../../../1-framework/1-core/errors/dist/control-MllEQmML.mjs
6
6
  /** Where the upgrade instructions of every release are published, as a skill. */
7
7
  const UPGRADE_GUIDES_URL = "https://github.com/prisma/orm/tree/main/skills/prisma-8/upgrading";
@@ -379,4 +379,4 @@ function errorUnexpected(message, options) {
379
379
  //#endregion
380
380
  export { errorTargetMigrationNotSupported as C, errorQueryRunnerFactoryRequired as S, errorMigrationCliConfigNotFound as _, errorConfigValidation as a, errorMigrationPlanningFailed as b, errorContractMissingExtensions as c, errorDriverRequired as d, errorEnumCodecNotInPackStack as f, errorJsonFormatNotSupported as g, errorInvalidOutputFormat as h, errorConfigFileNotFound as i, errorContractValidationFailed as l, errorFileNotFound as m, UPGRADE_GUIDES_URL as n, errorConfigVersionMarkerMissing as o, errorFamilyReadMarkerSqlRequired as p, errorConfigEvaluationFailed as r, errorContractConfigMissing as s, CliStructuredError as t, errorDatabaseConnectionRequired as u, errorMigrationCliInvalidConfigArg as v, errorUnexpected as w, errorOutputFormatMutex as x, errorMigrationCliUnknownFlag as y };
381
381
 
382
- //# sourceMappingURL=control-MllEQmML-IlhSvGbE.mjs.map
382
+ //# sourceMappingURL=control-MllEQmML-aKdJLwRB.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-MllEQmML-IlhSvGbE.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-MllEQmML.mjs"],"sourcesContent":["import { migrationStatementJson } from \"@internal/framework-components/control\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { docsUrlFor } from \"@internal/utils/structured-error\";\n//#region src/upgrade-guides.ts\n/** Where the upgrade instructions of every release are published, as a skill. */\nconst UPGRADE_GUIDES_URL = \"https://github.com/prisma/orm/tree/main/skills/prisma-8/upgrading\";\n/** The upgrade instructions for an application, as opposed to an extension. */\nconst APP_UPGRADE_GUIDES_URL = `${UPGRADE_GUIDES_URL}/app`;\n//#endregion\n//#region src/control.ts\n/**\n* Structured CLI error that contains all information needed for error envelopes.\n* Call sites throw these errors with full context.\n*\n* A `CliStructuredError` is a `StructuredError` (see\n* `@internal/utils/structured-error`): `code` is a dotted\n* `NAMESPACE.SUBCODE` string, and the namespace prefix is the error's\n* category — there is no separate `domain` field. See\n* [ADR 239](../../../../../docs/architecture%20docs/adrs/ADR%20239%20-%20Errors%20are%20structural%20envelopes%20with%20dotted%20namespace%20codes.md)\n* for the namespace taxonomy.\n*/\nvar CliStructuredError = class extends Error {\n\tcode;\n\tseverity;\n\tconstructor(code, summary, options) {\n\t\tsuper(summary, options?.cause !== void 0 ? { cause: options.cause } : void 0);\n\t\tthis.name = \"CliStructuredError\";\n\t\tthis.code = code;\n\t\tthis.severity = options?.severity ?? \"error\";\n\t\tconst fix = options?.fix === options?.why ? void 0 : options?.fix;\n\t\tconst where = options?.where ? {\n\t\t\t...ifDefined(\"path\", options.where.path),\n\t\t\t...ifDefined(\"line\", options.where.line)\n\t\t} : void 0;\n\t\tObject.assign(this, {\n\t\t\t...ifDefined(\"why\", options?.why),\n\t\t\t...ifDefined(\"fix\", fix),\n\t\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t\t...ifDefined(\"where\", where),\n\t\t\t...ifDefined(\"meta\", options?.meta),\n\t\t\t...ifDefined(\"docsUrl\", options?.docsUrl)\n\t\t});\n\t}\n\t/**\n\t* Converts this error to a CLI error envelope for output formatting.\n\t*\n\t* This is the boundary that emits the envelope, so it is where a missing\n\t* `nextActions` becomes `[]`.\n\t*/\n\ttoEnvelope() {\n\t\treturn {\n\t\t\tok: false,\n\t\t\tcode: this.code,\n\t\t\tseverity: this.severity,\n\t\t\tsummary: this.message,\n\t\t\t...ifDefined(\"why\", this.why),\n\t\t\t...ifDefined(\"fix\", this.fix),\n\t\t\tnextActions: this.nextActions ?? [],\n\t\t\t...ifDefined(\"diagnostics\", this.diagnostics),\n\t\t\t...ifDefined(\"where\", this.where),\n\t\t\t...ifDefined(\"meta\", this.meta),\n\t\t\t...ifDefined(\"docsUrl\", this.docsUrl)\n\t\t};\n\t}\n\t/**\n\t* Type guard to check if an error is a CliStructuredError.\n\t* Uses duck-typing to work across module boundaries where instanceof may fail.\n\t*/\n\tstatic is(error) {\n\t\tif (!(error instanceof Error)) return false;\n\t\tconst candidate = error;\n\t\treturn candidate.name === \"CliStructuredError\" && typeof candidate.code === \"string\" && typeof candidate.toEnvelope === \"function\";\n\t}\n};\n/**\n* Config file not found or missing.\n*/\nfunction errorConfigFileNotFound(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.FILE_NOT_FOUND\", \"Config file not found\", {\n\t\t...options?.why ? { why: options.why } : { why: \"Config file not found\" },\n\t\tfix: \"Run '{bin} orm init' to create a config file\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Create a config file\",\n\t\t\tcommand: \"{bin} orm init\"\n\t\t}],\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FILE_NOT_FOUND\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Config module failed to evaluate (syntax error, module threw during import).\n*/\nfunction errorConfigEvaluationFailed(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.EVALUATION_FAILED\", \"Config file could not be evaluated\", {\n\t\twhy: options.why,\n\t\tfix: \"Fix the error in your prisma.config.ts so the module evaluates, then rerun the command\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.EVALUATION_FAILED\"),\n\t\t...configPath ? { where: { path: configPath } } : {},\n\t\t...options.cause !== void 0 ? { cause: options.cause } : {}\n\t});\n}\n/**\n* Config module evaluated, but its export does not carry the definePrismaConfig\n* version marker (plain object export, or a config produced by a different\n* defineConfig such as classic Prisma's).\n*/\nfunction errorConfigVersionMarkerMissing(configPath) {\n\treturn new CliStructuredError(\"CONFIG.VERSION_MARKER_MISSING\", \"Config is not a definePrismaConfig result\", {\n\t\twhy: \"The config module evaluated, but its default export was not created by a current definePrismaConfig\",\n\t\tfix: \"Create the config with definePrismaConfig from '@prisma/cli-engine', nest your settings under its `orm` section, and export its return value directly\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VERSION_MARKER_MISSING\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Contract configuration missing from config.\n*/\nfunction errorContractConfigMissing(options) {\n\treturn new CliStructuredError(\"CONFIG.CONTRACT_MISSING\", \"Contract configuration missing\", {\n\t\twhy: options?.why ?? \"The contract configuration is required for emit\",\n\t\tfix: \"Add contract configuration to your prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.CONTRACT_MISSING\")\n\t});\n}\n/**\n* Contract validation failed.\n*/\nfunction errorContractValidationFailed(reason, options) {\n\treturn new CliStructuredError(\"CONTRACT.VALIDATION_FAILED\", \"Contract validation failed\", {\n\t\twhy: reason,\n\t\tfix: `If an earlier release emitted this contract, follow the app upgrade instructions of each release since, which rewrite the contract and its migration snapshots: ${APP_UPGRADE_GUIDES_URL}. If this release emitted it, re-run \\`{bin} contract emit\\`, or fix the contract file if you edited it, and try again`,\n\t\tnextActions: [\n\t\t\t{\n\t\t\t\tkind: \"open-url\",\n\t\t\t\tlabel: \"If an earlier release emitted the contract, follow the app upgrade instructions\",\n\t\t\t\turl: APP_UPGRADE_GUIDES_URL\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"If this release emitted the contract, re-emit it\",\n\t\t\t\tcommand: \"{bin} contract emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"edit-file\",\n\t\t\t\tlabel: \"Fix the contract file, then re-run the command\",\n\t\t\t\treason\n\t\t\t}\n\t\t],\n\t\tdocsUrl: docsUrlFor(\"CONTRACT.VALIDATION_FAILED\"),\n\t\t...options?.where ? { where: options.where } : {},\n\t\t...ifDefined(\"cause\", options?.cause),\n\t\t...ifDefined(\"meta\", options?.meta)\n\t});\n}\n/**\n* File not found.\n*/\nfunction errorFileNotFound(filePath, options) {\n\treturn new CliStructuredError(\"CLI.FILE_NOT_FOUND\", \"File not found\", {\n\t\twhy: options?.why ?? `File not found: ${filePath}`,\n\t\tfix: options?.fix ?? \"Check that the file path is correct\",\n\t\twhere: { path: filePath },\n\t\t...options?.docsUrl ? { docsUrl: options.docsUrl } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Database connection is required but not provided.\n*/\nfunction errorDatabaseConnectionRequired(options) {\n\tconst runHint = options?.retryCommand ? `Run \\`${options.retryCommand}\\`` : options?.commandName ? `Run \\`{bin} ${options.commandName} --db <url>\\`` : \"Provide `--db <url>`\";\n\treturn new CliStructuredError(\"CONFIG.DB_CONNECTION_REQUIRED\", \"Database connection is required\", {\n\t\twhy: options?.why ?? \"Database connection is required for this command\",\n\t\tfix: `${runHint}, or set \\`db: { connection: \"postgres://…\" }\\` in prisma.config.ts`,\n\t\t...options?.missingFlags !== void 0 ? { meta: { missingFlags: [...options.missingFlags] } } : {}\n\t});\n}\n/**\n* Query runner factory is required but not provided in config.\n*/\nfunction errorQueryRunnerFactoryRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\", \"Query runner factory is required\", {\n\t\twhy: options?.why ?? \"Config.db.queryRunnerFactory is required for db verify\",\n\t\tfix: \"Add db.queryRunnerFactory to prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\")\n\t});\n}\n/**\n* Family verify.readMarker is required but not provided.\n*/\nfunction errorFamilyReadMarkerSqlRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\", \"Family readMarker() is required\", {\n\t\twhy: options?.why ?? \"Family verify.readMarker is required for db verify\",\n\t\tfix: \"Ensure family.verify.readMarker() is exported by your family package\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\")\n\t});\n}\n/**\n* JSON output format not supported.\n*/\nfunction errorJsonFormatNotSupported(options) {\n\treturn new CliStructuredError(\"CLI.JSON_FORMAT_UNSUPPORTED\", \"Unsupported JSON format\", {\n\t\twhy: `The ${options.command} command does not support --json ${options.format}`,\n\t\tfix: `Use --json ${options.supportedFormats.join(\" or \")}, or omit --json for human output`,\n\t\tmeta: {\n\t\t\tcommand: options.command,\n\t\t\tformat: options.format,\n\t\t\tsupportedFormats: options.supportedFormats\n\t\t}\n\t});\n}\n/**\n* Driver is required for DB-connected commands but not provided.\n*/\nfunction errorDriverRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.DRIVER_REQUIRED\", \"Driver is required for DB-connected commands\", {\n\t\twhy: options?.why ?? \"Config.driver is required for DB-connected commands\",\n\t\tfix: \"Add a control-plane driver to prisma.config.ts (e.g. import a driver descriptor and set `driver: postgresDriver`)\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.DRIVER_REQUIRED\")\n\t});\n}\n/**\n* Contract requires extension packs that are not provided by config descriptors.\n*/\nfunction errorContractMissingExtensions(options) {\n\tconst missing = [...options.missingExtensions].sort();\n\treturn new CliStructuredError(\"CONFIG.MISSING_EXTENSION_PACKS\", \"Missing extension packs in config\", {\n\t\twhy: missing.length === 1 ? `Contract requires extension pack '${missing[0]}', but CLI config does not provide a matching descriptor.` : `Contract requires extension packs ${missing.map((p) => `'${p}'`).join(\", \")}, but CLI config does not provide matching descriptors.`,\n\t\tfix: \"Add the missing extension descriptors to `extensions` in prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.MISSING_EXTENSION_PACKS\"),\n\t\tmeta: {\n\t\t\tmissingExtensions: missing,\n\t\t\tprovidedComponentIds: [...options.providedComponentIds].sort()\n\t\t}\n\t});\n}\nfunction locationJson(location) {\n\tif (location.namespaceId !== UNBOUND_NAMESPACE_ID) return location;\n\tconst { namespaceId: _unbound, ...rest } = location;\n\treturn rest;\n}\nfunction conflictJson(conflict) {\n\treturn {\n\t\t...conflict,\n\t\t...conflict.location === void 0 ? {} : { location: locationJson(conflict.location) },\n\t\t...conflict.refusedStatement === void 0 ? {} : { refusedStatement: migrationStatementJson(conflict.refusedStatement) },\n\t\t...conflict.leaveOut === void 0 ? {} : { leaveOut: conflict.leaveOut.map(migrationStatementJson) }\n\t};\n}\n/**\n* Migration planning failed due to conflicts.\n*/\nfunction errorMigrationPlanningFailed(options) {\n\tconst conflictSummaries = options.conflicts.map((c) => c.summary);\n\tconst computedWhy = options.why ?? conflictSummaries.join(\"\\n\");\n\tconst conflictFixes = options.conflicts.map((c) => c.why).filter((why) => typeof why === \"string\");\n\tconst error = new CliStructuredError(\"MIGRATION.PLANNING_FAILED\", \"Migration planning failed\", {\n\t\twhy: computedWhy,\n\t\tfix: conflictFixes.length > 0 ? conflictFixes.join(\"\\n\") : \"Use `db verify --schema-only` to inspect conflicts, or ensure the database is empty\",\n\t\tmeta: { conflicts: options.conflicts.map(conflictJson) },\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.PLANNING_FAILED\")\n\t});\n\treturn Object.assign(error, { why: computedWhy });\n}\n/**\n* Target does not support migrations (missing createPlanner/createRunner).\n*/\nfunction errorTargetMigrationNotSupported(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_UNSUPPORTED\", \"Target does not support migrations\", {\n\t\twhy: options?.why ?? \"The configured target does not provide migration planner/runner\",\n\t\tfix: \"Select a target that provides migrations (it must export `target.migrations` for db init)\",\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.TARGET_UNSUPPORTED\")\n\t});\n}\n/**\n* Without `--config`, the migration-file CLI found no config whose migrations directory holds the migration.\n*/\nfunction errorMigrationCliConfigNotFound(options) {\n\tconst rule = `Without --config, a migration.ts uses the prisma.config.ts whose migrations directory holds it: the nearest one above ${options.migrationDir}, else the one in the working directory.`;\n\tconst found = options.checked.map(({ configPath, migrationsDir, loadFailure }) => loadFailure === void 0 ? `${configPath} keeps migrations in ${migrationsDir}` : `${configPath} failed to load (${loadFailure})`);\n\treturn new CliStructuredError(\"CLI.MIGRATION_CONFIG_NOT_FOUND\", \"No config found for this migration\", {\n\t\twhy: found.length === 0 ? `${rule} There is neither.` : `${rule} None of them does: ${found.join(\"; \")}.`,\n\t\tfix: \"Run it again with `--config <path to the config of the project this migration belongs to>`.\",\n\t\tmeta: {\n\t\t\tmigrationDir: options.migrationDir,\n\t\t\tchecked: options.checked.map(({ configPath }) => configPath)\n\t\t}\n\t});\n}\n/**\n* The migration-file CLI received `--config` without a path argument (either\n* a bare trailing `--config`, or `--config` followed by another flag like\n* `--config --dry-run`). Surfacing this as a structured error fails fast\n* rather than silently consuming the next flag as the config path or\n* falling back to default discovery against the wrong project.\n*/\nfunction errorMigrationCliInvalidConfigArg(options) {\n\treturn new CliStructuredError(\"CLI.CONFIG_ARG_MISSING_PATH\", \"--config flag requires a path argument\", {\n\t\twhy: options?.nextToken !== void 0 ? `\\`--config\\` was followed by another flag (\\`${options.nextToken}\\`) instead of a path argument.` : \"`--config` was passed without a following path argument.\",\n\t\tfix: \"Pass a config path: `--config <path>` or `--config=<path>`.\",\n\t\tmeta: options?.nextToken !== void 0 ? { nextToken: options.nextToken } : {}\n\t});\n}\n/**\n* The migration-file CLI received a flag it does not recognise. Surfaced as a\n* structured error so consumers can render their own \"did you mean\"\n* suggestions from `meta.knownFlags` rather than parsing the message.\n*\n* Designed to wrap clipanion's `UnknownSyntaxError` at the parser boundary:\n* pass the offending token as `flag` and the option declarations as\n* `knownFlags`.\n*/\nfunction errorMigrationCliUnknownFlag(options) {\n\tconst knownList = options.knownFlags.join(\", \");\n\treturn new CliStructuredError(\"CLI.UNKNOWN_FLAG\", \"Unknown migration CLI flag\", {\n\t\twhy: `Unknown flag \\`${options.flag}\\`.`,\n\t\tfix: `Known flags: ${knownList}. Run with \\`--help\\` to see the full list.`,\n\t\tmeta: {\n\t\t\tflag: options.flag,\n\t\t\tknownFlags: options.knownFlags\n\t\t}\n\t});\n}\n/**\n* The main CLI received an unsupported `--format` value.\n*/\nfunction errorInvalidOutputFormat(value) {\n\treturn new CliStructuredError(\"CLI.INVALID_OUTPUT_FORMAT\", `Invalid --format value \"${value}\". Allowed values: pretty, json.`, { meta: {\n\t\tvalue,\n\t\tallowed: [\"pretty\", \"json\"]\n\t} });\n}\n/**\n* The main CLI received mutually exclusive output format flags\n* (`--format pretty` together with `--json`).\n*/\nfunction errorOutputFormatMutex() {\n\treturn new CliStructuredError(\"CLI.OUTPUT_FORMAT_CONFLICT\", \"Cannot use --format pretty together with --json. Use --format json or --json alone for JSON output.\");\n}\n/**\n* Config validation error (missing required fields).\n*/\nfunction errorConfigValidation(field, options) {\n\treturn new CliStructuredError(\"CONFIG.VALIDATION_FAILED\", \"Config validation error\", {\n\t\twhy: options?.why ?? `Config must have a \"${field}\" field`,\n\t\tfix: \"Check your prisma.config.ts and ensure all required fields are provided\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VALIDATION_FAILED\"),\n\t\tmeta: {\n\t\t\tfield,\n\t\t\t...options?.section !== void 0 ? { section: options.section } : {}\n\t\t}\n\t});\n}\n/**\n* An enum declares a codecId that no component in the contract's pack stack provides,\n* so its member values cannot be encoded. Thrown by both authoring paths (TS `defineContract`\n* and PSL interpretation) when the codec lookup built from the contract's packs has no\n* descriptor for the codecId.\n*/\nfunction errorEnumCodecNotInPackStack(options) {\n\treturn new CliStructuredError(\"CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK\", `Enum codec \"${options.codecId}\" is not part of the contract's pack stack`, {\n\t\twhy: `An enum uses codec \"${options.codecId}\", but no family, target, or extension pack in the contract provides it.`,\n\t\tfix: \"Use a codec provided by the contract's target/extension packs, or add the pack that supplies this codec.\",\n\t\tmeta: { codecId: options.codecId }\n\t});\n}\n/**\n* Generic unexpected error.\n*/\nfunction errorUnexpected(message, options) {\n\treturn new CliStructuredError(\"CLI.UNEXPECTED\", \"Unexpected error\", {\n\t\twhy: options?.why ?? message,\n\t\tfix: options?.fix ?? \"Check the error message and try again\",\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorUnexpected as C, errorTargetMigrationNotSupported as S, errorMigrationCliInvalidConfigArg as _, errorConfigVersionMarkerMissing as a, errorOutputFormatMutex as b, errorContractValidationFailed as c, errorEnumCodecNotInPackStack as d, errorFamilyReadMarkerSqlRequired as f, errorMigrationCliConfigNotFound as g, errorJsonFormatNotSupported as h, errorConfigValidation as i, errorDatabaseConnectionRequired as l, errorInvalidOutputFormat as m, errorConfigEvaluationFailed as n, errorContractConfigMissing as o, errorFileNotFound as p, errorConfigFileNotFound as r, errorContractMissingExtensions as s, CliStructuredError as t, errorDriverRequired as u, errorMigrationCliUnknownFlag as v, UPGRADE_GUIDES_URL as w, errorQueryRunnerFactoryRequired as x, errorMigrationPlanningFailed as y };\n\n//# sourceMappingURL=control-MllEQmML.mjs.map"],"mappings":";;;;;;AAMA,MAAM,qBAAqB;;AAE3B,MAAM,yBAAyB,GAAG,mBAAmB;;;;;;;;;;;;AAcrD,IAAI,qBAAqB,cAAc,MAAM;CAC5C;CACA;CACA,YAAY,MAAM,SAAS,SAAS;EACnC,MAAM,SAAS,SAAS,UAAU,KAAK,IAAI,EAAE,OAAO,QAAQ,MAAM,IAAI,KAAK,CAAC;EAC5E,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,WAAW,SAAS,YAAY;EACrC,MAAM,MAAM,SAAS,QAAQ,SAAS,MAAM,KAAK,IAAI,SAAS;EAC9D,MAAM,QAAQ,SAAS,QAAQ;GAC9B,GAAG,UAAU,QAAQ,QAAQ,MAAM,IAAI;GACvC,GAAG,UAAU,QAAQ,QAAQ,MAAM,IAAI;EACxC,IAAI,KAAK;EACT,OAAO,OAAO,MAAM;GACnB,GAAG,UAAU,OAAO,SAAS,GAAG;GAChC,GAAG,UAAU,OAAO,GAAG;GACvB,GAAG,UAAU,eAAe,SAAS,WAAW;GAChD,GAAG,UAAU,eAAe,SAAS,WAAW;GAChD,GAAG,UAAU,SAAS,KAAK;GAC3B,GAAG,UAAU,QAAQ,SAAS,IAAI;GAClC,GAAG,UAAU,WAAW,SAAS,OAAO;EACzC,CAAC;CACF;;;;;;;CAOA,aAAa;EACZ,OAAO;GACN,IAAI;GACJ,MAAM,KAAK;GACX,UAAU,KAAK;GACf,SAAS,KAAK;GACd,GAAG,UAAU,OAAO,KAAK,GAAG;GAC5B,GAAG,UAAU,OAA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,IAAI,CAAC;EAClE;CACD,CAAC;AACF;;;;;;;AAOA,SAAS,6BAA6B,SAAS;CAC9C,OAAO,IAAI,mBAAmB,yCAAyC,eAAe,QAAQ,QAAQ,6CAA6C;EAClJ,KAAK,uBAAuB,QAAQ,QAAQ;EAC5C,KAAK;EACL,MAAM,EAAE,SAAS,QAAQ,QAAQ;CAClC,CAAC;AACF;;;;AAIA,SAAS,gBAAgB,SAAS,SAAS;CAC1C,OAAO,IAAI,mBAAmB,kBAAkB,oBAAoB;EACnE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
1
+ {"version":3,"file":"control-MllEQmML-aKdJLwRB.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-MllEQmML.mjs"],"sourcesContent":["import { migrationStatementJson } from \"@internal/framework-components/control\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { docsUrlFor } from \"@internal/utils/structured-error\";\n//#region src/upgrade-guides.ts\n/** Where the upgrade instructions of every release are published, as a skill. */\nconst UPGRADE_GUIDES_URL = \"https://github.com/prisma/orm/tree/main/skills/prisma-8/upgrading\";\n/** The upgrade instructions for an application, as opposed to an extension. */\nconst APP_UPGRADE_GUIDES_URL = `${UPGRADE_GUIDES_URL}/app`;\n//#endregion\n//#region src/control.ts\n/**\n* Structured CLI error that contains all information needed for error envelopes.\n* Call sites throw these errors with full context.\n*\n* A `CliStructuredError` is a `StructuredError` (see\n* `@internal/utils/structured-error`): `code` is a dotted\n* `NAMESPACE.SUBCODE` string, and the namespace prefix is the error's\n* category — there is no separate `domain` field. See\n* [ADR 239](../../../../../docs/architecture%20docs/adrs/ADR%20239%20-%20Errors%20are%20structural%20envelopes%20with%20dotted%20namespace%20codes.md)\n* for the namespace taxonomy.\n*/\nvar CliStructuredError = class extends Error {\n\tcode;\n\tseverity;\n\tconstructor(code, summary, options) {\n\t\tsuper(summary, options?.cause !== void 0 ? { cause: options.cause } : void 0);\n\t\tthis.name = \"CliStructuredError\";\n\t\tthis.code = code;\n\t\tthis.severity = options?.severity ?? \"error\";\n\t\tconst fix = options?.fix === options?.why ? void 0 : options?.fix;\n\t\tconst where = options?.where ? {\n\t\t\t...ifDefined(\"path\", options.where.path),\n\t\t\t...ifDefined(\"line\", options.where.line)\n\t\t} : void 0;\n\t\tObject.assign(this, {\n\t\t\t...ifDefined(\"why\", options?.why),\n\t\t\t...ifDefined(\"fix\", fix),\n\t\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t\t...ifDefined(\"where\", where),\n\t\t\t...ifDefined(\"meta\", options?.meta),\n\t\t\t...ifDefined(\"docsUrl\", options?.docsUrl)\n\t\t});\n\t}\n\t/**\n\t* Converts this error to a CLI error envelope for output formatting.\n\t*\n\t* This is the boundary that emits the envelope, so it is where a missing\n\t* `nextActions` becomes `[]`.\n\t*/\n\ttoEnvelope() {\n\t\treturn {\n\t\t\tok: false,\n\t\t\tcode: this.code,\n\t\t\tseverity: this.severity,\n\t\t\tsummary: this.message,\n\t\t\t...ifDefined(\"why\", this.why),\n\t\t\t...ifDefined(\"fix\", this.fix),\n\t\t\tnextActions: this.nextActions ?? [],\n\t\t\t...ifDefined(\"diagnostics\", this.diagnostics),\n\t\t\t...ifDefined(\"where\", this.where),\n\t\t\t...ifDefined(\"meta\", this.meta),\n\t\t\t...ifDefined(\"docsUrl\", this.docsUrl)\n\t\t};\n\t}\n\t/**\n\t* Type guard to check if an error is a CliStructuredError.\n\t* Uses duck-typing to work across module boundaries where instanceof may fail.\n\t*/\n\tstatic is(error) {\n\t\tif (!(error instanceof Error)) return false;\n\t\tconst candidate = error;\n\t\treturn candidate.name === \"CliStructuredError\" && typeof candidate.code === \"string\" && typeof candidate.toEnvelope === \"function\";\n\t}\n};\n/**\n* Config file not found or missing.\n*/\nfunction errorConfigFileNotFound(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.FILE_NOT_FOUND\", \"Config file not found\", {\n\t\t...options?.why ? { why: options.why } : { why: \"Config file not found\" },\n\t\tfix: \"Run '{bin} orm init' to create a config file\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Create a config file\",\n\t\t\tcommand: \"{bin} orm init\"\n\t\t}],\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FILE_NOT_FOUND\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Config module failed to evaluate (syntax error, module threw during import).\n*/\nfunction errorConfigEvaluationFailed(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.EVALUATION_FAILED\", \"Config file could not be evaluated\", {\n\t\twhy: options.why,\n\t\tfix: \"Fix the error in your prisma.config.ts so the module evaluates, then rerun the command\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.EVALUATION_FAILED\"),\n\t\t...configPath ? { where: { path: configPath } } : {},\n\t\t...options.cause !== void 0 ? { cause: options.cause } : {}\n\t});\n}\n/**\n* Config module evaluated, but its export does not carry the definePrismaConfig\n* version marker (plain object export, or a config produced by a different\n* defineConfig such as classic Prisma's).\n*/\nfunction errorConfigVersionMarkerMissing(configPath) {\n\treturn new CliStructuredError(\"CONFIG.VERSION_MARKER_MISSING\", \"Config is not a definePrismaConfig result\", {\n\t\twhy: \"The config module evaluated, but its default export was not created by a current definePrismaConfig\",\n\t\tfix: \"Create the config with definePrismaConfig from '@prisma/cli-engine', nest your settings under its `orm` section, and export its return value directly\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VERSION_MARKER_MISSING\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Contract configuration missing from config.\n*/\nfunction errorContractConfigMissing(options) {\n\treturn new CliStructuredError(\"CONFIG.CONTRACT_MISSING\", \"Contract configuration missing\", {\n\t\twhy: options?.why ?? \"The contract configuration is required for emit\",\n\t\tfix: \"Add contract configuration to your prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.CONTRACT_MISSING\")\n\t});\n}\n/**\n* Contract validation failed.\n*/\nfunction errorContractValidationFailed(reason, options) {\n\treturn new CliStructuredError(\"CONTRACT.VALIDATION_FAILED\", \"Contract validation failed\", {\n\t\twhy: reason,\n\t\tfix: `If an earlier release emitted this contract, follow the app upgrade instructions of each release since, which rewrite the contract and its migration snapshots: ${APP_UPGRADE_GUIDES_URL}. If this release emitted it, re-run \\`{bin} contract emit\\`, or fix the contract file if you edited it, and try again`,\n\t\tnextActions: [\n\t\t\t{\n\t\t\t\tkind: \"open-url\",\n\t\t\t\tlabel: \"If an earlier release emitted the contract, follow the app upgrade instructions\",\n\t\t\t\turl: APP_UPGRADE_GUIDES_URL\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"If this release emitted the contract, re-emit it\",\n\t\t\t\tcommand: \"{bin} contract emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"edit-file\",\n\t\t\t\tlabel: \"Fix the contract file, then re-run the command\",\n\t\t\t\treason\n\t\t\t}\n\t\t],\n\t\tdocsUrl: docsUrlFor(\"CONTRACT.VALIDATION_FAILED\"),\n\t\t...options?.where ? { where: options.where } : {},\n\t\t...ifDefined(\"cause\", options?.cause),\n\t\t...ifDefined(\"meta\", options?.meta)\n\t});\n}\n/**\n* File not found.\n*/\nfunction errorFileNotFound(filePath, options) {\n\treturn new CliStructuredError(\"CLI.FILE_NOT_FOUND\", \"File not found\", {\n\t\twhy: options?.why ?? `File not found: ${filePath}`,\n\t\tfix: options?.fix ?? \"Check that the file path is correct\",\n\t\twhere: { path: filePath },\n\t\t...options?.docsUrl ? { docsUrl: options.docsUrl } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Database connection is required but not provided.\n*/\nfunction errorDatabaseConnectionRequired(options) {\n\tconst runHint = options?.retryCommand ? `Run \\`${options.retryCommand}\\`` : options?.commandName ? `Run \\`{bin} ${options.commandName} --db <url>\\`` : \"Provide `--db <url>`\";\n\treturn new CliStructuredError(\"CONFIG.DB_CONNECTION_REQUIRED\", \"Database connection is required\", {\n\t\twhy: options?.why ?? \"Database connection is required for this command\",\n\t\tfix: `${runHint}, or set \\`db: { connection: \"postgres://…\" }\\` in prisma.config.ts`,\n\t\t...options?.missingFlags !== void 0 ? { meta: { missingFlags: [...options.missingFlags] } } : {}\n\t});\n}\n/**\n* Query runner factory is required but not provided in config.\n*/\nfunction errorQueryRunnerFactoryRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\", \"Query runner factory is required\", {\n\t\twhy: options?.why ?? \"Config.db.queryRunnerFactory is required for db verify\",\n\t\tfix: \"Add db.queryRunnerFactory to prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\")\n\t});\n}\n/**\n* Family verify.readMarker is required but not provided.\n*/\nfunction errorFamilyReadMarkerSqlRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\", \"Family readMarker() is required\", {\n\t\twhy: options?.why ?? \"Family verify.readMarker is required for db verify\",\n\t\tfix: \"Ensure family.verify.readMarker() is exported by your family package\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\")\n\t});\n}\n/**\n* JSON output format not supported.\n*/\nfunction errorJsonFormatNotSupported(options) {\n\treturn new CliStructuredError(\"CLI.JSON_FORMAT_UNSUPPORTED\", \"Unsupported JSON format\", {\n\t\twhy: `The ${options.command} command does not support --json ${options.format}`,\n\t\tfix: `Use --json ${options.supportedFormats.join(\" or \")}, or omit --json for human output`,\n\t\tmeta: {\n\t\t\tcommand: options.command,\n\t\t\tformat: options.format,\n\t\t\tsupportedFormats: options.supportedFormats\n\t\t}\n\t});\n}\n/**\n* Driver is required for DB-connected commands but not provided.\n*/\nfunction errorDriverRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.DRIVER_REQUIRED\", \"Driver is required for DB-connected commands\", {\n\t\twhy: options?.why ?? \"Config.driver is required for DB-connected commands\",\n\t\tfix: \"Add a control-plane driver to prisma.config.ts (e.g. import a driver descriptor and set `driver: postgresDriver`)\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.DRIVER_REQUIRED\")\n\t});\n}\n/**\n* Contract requires extension packs that are not provided by config descriptors.\n*/\nfunction errorContractMissingExtensions(options) {\n\tconst missing = [...options.missingExtensions].sort();\n\treturn new CliStructuredError(\"CONFIG.MISSING_EXTENSION_PACKS\", \"Missing extension packs in config\", {\n\t\twhy: missing.length === 1 ? `Contract requires extension pack '${missing[0]}', but CLI config does not provide a matching descriptor.` : `Contract requires extension packs ${missing.map((p) => `'${p}'`).join(\", \")}, but CLI config does not provide matching descriptors.`,\n\t\tfix: \"Add the missing extension descriptors to `extensions` in prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.MISSING_EXTENSION_PACKS\"),\n\t\tmeta: {\n\t\t\tmissingExtensions: missing,\n\t\t\tprovidedComponentIds: [...options.providedComponentIds].sort()\n\t\t}\n\t});\n}\nfunction locationJson(location) {\n\tif (location.namespaceId !== UNBOUND_NAMESPACE_ID) return location;\n\tconst { namespaceId: _unbound, ...rest } = location;\n\treturn rest;\n}\nfunction conflictJson(conflict) {\n\treturn {\n\t\t...conflict,\n\t\t...conflict.location === void 0 ? {} : { location: locationJson(conflict.location) },\n\t\t...conflict.refusedStatement === void 0 ? {} : { refusedStatement: migrationStatementJson(conflict.refusedStatement) },\n\t\t...conflict.leaveOut === void 0 ? {} : { leaveOut: conflict.leaveOut.map(migrationStatementJson) }\n\t};\n}\n/**\n* Migration planning failed due to conflicts.\n*/\nfunction errorMigrationPlanningFailed(options) {\n\tconst conflictSummaries = options.conflicts.map((c) => c.summary);\n\tconst computedWhy = options.why ?? conflictSummaries.join(\"\\n\");\n\tconst conflictFixes = options.conflicts.map((c) => c.why).filter((why) => typeof why === \"string\");\n\tconst error = new CliStructuredError(\"MIGRATION.PLANNING_FAILED\", \"Migration planning failed\", {\n\t\twhy: computedWhy,\n\t\tfix: conflictFixes.length > 0 ? conflictFixes.join(\"\\n\") : \"Use `db verify --schema-only` to inspect conflicts, or ensure the database is empty\",\n\t\tmeta: { conflicts: options.conflicts.map(conflictJson) },\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.PLANNING_FAILED\")\n\t});\n\treturn Object.assign(error, { why: computedWhy });\n}\n/**\n* Target does not support migrations (missing createPlanner/createRunner).\n*/\nfunction errorTargetMigrationNotSupported(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_UNSUPPORTED\", \"Target does not support migrations\", {\n\t\twhy: options?.why ?? \"The configured target does not provide migration planner/runner\",\n\t\tfix: \"Select a target that provides migrations (it must export `target.migrations` for db init)\",\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.TARGET_UNSUPPORTED\")\n\t});\n}\n/**\n* Without `--config`, the migration-file CLI found no config whose migrations directory holds the migration.\n*/\nfunction errorMigrationCliConfigNotFound(options) {\n\tconst rule = `Without --config, a migration.ts uses the prisma.config.ts whose migrations directory holds it: the nearest one above ${options.migrationDir}, else the one in the working directory.`;\n\tconst found = options.checked.map(({ configPath, migrationsDir, loadFailure }) => loadFailure === void 0 ? `${configPath} keeps migrations in ${migrationsDir}` : `${configPath} failed to load (${loadFailure})`);\n\treturn new CliStructuredError(\"CLI.MIGRATION_CONFIG_NOT_FOUND\", \"No config found for this migration\", {\n\t\twhy: found.length === 0 ? `${rule} There is neither.` : `${rule} None of them does: ${found.join(\"; \")}.`,\n\t\tfix: \"Run it again with `--config <path to the config of the project this migration belongs to>`.\",\n\t\tmeta: {\n\t\t\tmigrationDir: options.migrationDir,\n\t\t\tchecked: options.checked.map(({ configPath }) => configPath)\n\t\t}\n\t});\n}\n/**\n* The migration-file CLI received `--config` without a path argument (either\n* a bare trailing `--config`, or `--config` followed by another flag like\n* `--config --dry-run`). Surfacing this as a structured error fails fast\n* rather than silently consuming the next flag as the config path or\n* falling back to default discovery against the wrong project.\n*/\nfunction errorMigrationCliInvalidConfigArg(options) {\n\treturn new CliStructuredError(\"CLI.CONFIG_ARG_MISSING_PATH\", \"--config flag requires a path argument\", {\n\t\twhy: options?.nextToken !== void 0 ? `\\`--config\\` was followed by another flag (\\`${options.nextToken}\\`) instead of a path argument.` : \"`--config` was passed without a following path argument.\",\n\t\tfix: \"Pass a config path: `--config <path>` or `--config=<path>`.\",\n\t\tmeta: options?.nextToken !== void 0 ? { nextToken: options.nextToken } : {}\n\t});\n}\n/**\n* The migration-file CLI received a flag it does not recognise. Surfaced as a\n* structured error so consumers can render their own \"did you mean\"\n* suggestions from `meta.knownFlags` rather than parsing the message.\n*\n* Designed to wrap clipanion's `UnknownSyntaxError` at the parser boundary:\n* pass the offending token as `flag` and the option declarations as\n* `knownFlags`.\n*/\nfunction errorMigrationCliUnknownFlag(options) {\n\tconst knownList = options.knownFlags.join(\", \");\n\treturn new CliStructuredError(\"CLI.UNKNOWN_FLAG\", \"Unknown migration CLI flag\", {\n\t\twhy: `Unknown flag \\`${options.flag}\\`.`,\n\t\tfix: `Known flags: ${knownList}. Run with \\`--help\\` to see the full list.`,\n\t\tmeta: {\n\t\t\tflag: options.flag,\n\t\t\tknownFlags: options.knownFlags\n\t\t}\n\t});\n}\n/**\n* The main CLI received an unsupported `--format` value.\n*/\nfunction errorInvalidOutputFormat(value) {\n\treturn new CliStructuredError(\"CLI.INVALID_OUTPUT_FORMAT\", `Invalid --format value \"${value}\". Allowed values: pretty, json.`, { meta: {\n\t\tvalue,\n\t\tallowed: [\"pretty\", \"json\"]\n\t} });\n}\n/**\n* The main CLI received mutually exclusive output format flags\n* (`--format pretty` together with `--json`).\n*/\nfunction errorOutputFormatMutex() {\n\treturn new CliStructuredError(\"CLI.OUTPUT_FORMAT_CONFLICT\", \"Cannot use --format pretty together with --json. Use --format json or --json alone for JSON output.\");\n}\n/**\n* Config validation error (missing required fields).\n*/\nfunction errorConfigValidation(field, options) {\n\treturn new CliStructuredError(\"CONFIG.VALIDATION_FAILED\", \"Config validation error\", {\n\t\twhy: options?.why ?? `Config must have a \"${field}\" field`,\n\t\tfix: \"Check your prisma.config.ts and ensure all required fields are provided\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VALIDATION_FAILED\"),\n\t\tmeta: {\n\t\t\tfield,\n\t\t\t...options?.section !== void 0 ? { section: options.section } : {}\n\t\t}\n\t});\n}\n/**\n* An enum declares a codecId that no component in the contract's pack stack provides,\n* so its member values cannot be encoded. Thrown by both authoring paths (TS `defineContract`\n* and PSL interpretation) when the codec lookup built from the contract's packs has no\n* descriptor for the codecId.\n*/\nfunction errorEnumCodecNotInPackStack(options) {\n\treturn new CliStructuredError(\"CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK\", `Enum codec \"${options.codecId}\" is not part of the contract's pack stack`, {\n\t\twhy: `An enum uses codec \"${options.codecId}\", but no family, target, or extension pack in the contract provides it.`,\n\t\tfix: \"Use a codec provided by the contract's target/extension packs, or add the pack that supplies this codec.\",\n\t\tmeta: { codecId: options.codecId }\n\t});\n}\n/**\n* Generic unexpected error.\n*/\nfunction errorUnexpected(message, options) {\n\treturn new CliStructuredError(\"CLI.UNEXPECTED\", \"Unexpected error\", {\n\t\twhy: options?.why ?? message,\n\t\tfix: options?.fix ?? \"Check the error message and try again\",\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorUnexpected as C, errorTargetMigrationNotSupported as S, errorMigrationCliInvalidConfigArg as _, errorConfigVersionMarkerMissing as a, errorOutputFormatMutex as b, errorContractValidationFailed as c, errorEnumCodecNotInPackStack as d, errorFamilyReadMarkerSqlRequired as f, errorMigrationCliConfigNotFound as g, errorJsonFormatNotSupported as h, errorConfigValidation as i, errorDatabaseConnectionRequired as l, errorInvalidOutputFormat as m, errorConfigEvaluationFailed as n, errorContractConfigMissing as o, errorFileNotFound as p, errorConfigFileNotFound as r, errorContractMissingExtensions as s, CliStructuredError as t, errorDriverRequired as u, errorMigrationCliUnknownFlag as v, UPGRADE_GUIDES_URL as w, errorQueryRunnerFactoryRequired as x, errorMigrationPlanningFailed as y };\n\n//# sourceMappingURL=control-MllEQmML.mjs.map"],"mappings":";;;;;;AAMA,MAAM,qBAAqB;;AAE3B,MAAM,yBAAyB,GAAG,mBAAmB;;;;;;;;;;;;AAcrD,IAAI,qBAAqB,cAAc,MAAM;CAC5C;CACA;CACA,YAAY,MAAM,SAAS,SAAS;EACnC,MAAM,SAAS,SAAS,UAAU,KAAK,IAAI,EAAE,OAAO,QAAQ,MAAM,IAAI,KAAK,CAAC;EAC5E,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,WAAW,SAAS,YAAY;EACrC,MAAM,MAAM,SAAS,QAAQ,SAAS,MAAM,KAAK,IAAI,SAAS;EAC9D,MAAM,QAAQ,SAAS,QAAQ;GAC9B,GAAG,UAAU,QAAQ,QAAQ,MAAM,IAAI;GACvC,GAAG,UAAU,QAAQ,QAAQ,MAAM,IAAI;EACxC,IAAI,KAAK;EACT,OAAO,OAAO,MAAM;GACnB,GAAG,UAAU,OAAO,SAAS,GAAG;GAChC,GAAG,UAAU,OAAO,GAAG;GACvB,GAAG,UAAU,eAAe,SAAS,WAAW;GAChD,GAAG,UAAU,eAAe,SAAS,WAAW;GAChD,GAAG,UAAU,SAAS,KAAK;GAC3B,GAAG,UAAU,QAAQ,SAAS,IAAI;GAClC,GAAG,UAAU,WAAW,SAAS,OAAO;EACzC,CAAC;CACF;;;;;;;CAOA,aAAa;EACZ,OAAO;GACN,IAAI;GACJ,MAAM,KAAK;GACX,UAAU,KAAK;GACf,SAAS,KAAK;GACd,GAAG,UAAU,OAAO,KAAK,GAAG;GAC5B,GAAG,UAAU,OAAO,KAAK,GAAG;GAC5B,aAAa,K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;AACF;;;;;;;AAOA,SAAS,6BAA6B,SAAS;CAC9C,OAAO,IAAI,mBAAmB,yCAAyC,eAAe,QAAQ,QAAQ,6CAA6C;EAClJ,KAAK,uBAAuB,QAAQ,QAAQ;EAC5C,KAAK;EACL,MAAM,EAAE,SAAS,QAAQ,QAAQ;CAClC,CAAC;AACF;;;;AAIA,SAAS,gBAAgB,SAAS,SAAS;CAC1C,OAAO,IAAI,mBAAmB,kBAAkB,oBAAoB;EACnE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
@@ -8,10 +8,10 @@ import { n as ContributedHelper } from "./temporal-type-aliases-D5QWPhYa-BNKiNvm
8
8
  import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-Bkh243Hv-BI9m5WFL.mjs";
9
9
  import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
10
10
  import { a as ComponentMetadata, b as TargetDescriptor, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as SessionSettings, x as TargetInstance, y as TargetBoundComponentDescriptor } from "./framework-components-GBAmsfWO-DUJQpMpU.mjs";
11
- import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-bX2HmNSC-vaRddb1_.mjs";
11
+ import { t as ImportRequirement } from "./index-MU-ksXsh.mjs";
12
+ import { t as EmissionSpi } from "./emission-types-BuZVDb1i-BnSb9rsQ.mjs";
12
13
  import { f as PslDocumentAst } from "./psl-ast-B4ZxpQdr-DT9LRqBC.mjs";
13
14
  import { a as StructuredError } from "./structured-error-Cc7AIRsp.mjs";
14
- import { t as ImportRequirement } from "./index-MU-ksXsh.mjs";
15
15
  import { n as JsonObject } from "./json-Dkqr3say.mjs";
16
16
  import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-BIS6ONYT-VttZI7M4.mjs";
17
17
  //#region ../../../1-framework/1-core/framework-components/dist/control.d.mts
@@ -394,113 +394,6 @@ type SpaceMarkerConflict = SpaceMarkerHashConflict | SpaceDatabasePoliciesConfli
394
394
  /** What signing did to one contract space's marker. */
395
395
  type SpaceSignature = SpaceSigned | SpaceMarkerConflict;
396
396
  //#endregion
397
- //#region src/control/control-instances.d.ts
398
- interface ControlFamilyInstance<TFamilyId extends string, TSchemaIR> extends FamilyInstance<TFamilyId> {
399
- /**
400
- * The family seam-of-record for on-disk contract reads. Structurally
401
- * validates the JSON envelope and hydrates IR-class instances via the
402
- * per-target ContractSerializer. The single named entry point every
403
- * CLI on-disk read crosses (TML-2536) — `as Contract` casts in
404
- * production package sources are a serializer-bypass smell guarded by
405
- * `pnpm lint:no-contract-cast`.
406
- */
407
- deserializeContract(contractJson: unknown): Contract;
408
- /** The name the database knows the object an operation acts on by. */
409
- storageNameOf(operation: MigrationPlanOperation): string;
410
- /** Where the database keeps the contract markers, as messages name it to the user, such as `prisma_contract.marker`. The control adapter names it. */
411
- readonly markerLocation: string;
412
- verify(options: {
413
- readonly driver: ControlDriverInstance<TFamilyId, string>;
414
- readonly contract: unknown;
415
- readonly expectedTargetId: string;
416
- readonly contractPath: string;
417
- readonly configPath?: string;
418
- }): Promise<VerifyDatabaseResult>;
419
- /**
420
- * Verify a contract against an already-introspected schema.
421
- *
422
- * Callers that need to verify against the live database compose
423
- * {@link introspect} + `verifySchema` directly. The aggregate verifier
424
- * verifies each member against the full introspected schema and scopes the
425
- * result to that member's contract space afterwards — it never prunes the
426
- * schema up front.
427
- *
428
- * Synchronous — no I/O. Idempotent.
429
- */
430
- verifySchema(options: {
431
- readonly contract: unknown;
432
- readonly schema: TSchemaIR;
433
- readonly strict: boolean;
434
- readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, string>>;
435
- }): VerifyDatabaseSchemaResult;
436
- /**
437
- * Writes the marker of every space in `spaces` with its contract's hashes. Does not check the schema: callers verify each space first. A space whose marker no longer holds `expected`, when it is read or when it is written, is reported as a conflict and its marker is left as it was. A family whose database can write every marker in one transaction takes the migration runner's marker lock and does so, so a failed write leaves every marker as it was. A family that cannot writes the markers one by one, so a failed write can leave earlier markers written; running the command again finishes the job.
438
- */
439
- signSpaces(options: {
440
- readonly driver: ControlDriverInstance<TFamilyId, string>;
441
- readonly spaces: readonly SpaceToSign[];
442
- /**
443
- * The database's policies as the caller read them when it checked the signature. The family compares them with the application space's marker before it writes any marker, under its lock where it has one, and writes the application space's marker only while it still records them. When they no longer hold it returns a `databasePolicies` conflict for the application space and signs nothing further.
444
- */
445
- readonly expectedDatabasePolicies?: DatabasePolicies;
446
- }): Promise<readonly SpaceSignature[]>;
447
- /**
448
- * Reads the contract marker for `space` from the database, returning
449
- * `null` if no marker row exists for that space (or if the marker
450
- * table itself is missing).
451
- *
452
- * `space` is required at every call site so the type system surfaces
453
- * every place that needs to thread the value: callers in app-only
454
- * paths pass {@link import('./control-spaces').APP_SPACE_ID}
455
- * (`'app'`); per-extension callers pass the extension's space id.
456
- * Defaulting at the family-interface level was a silent bug door —
457
- * it let callers forget to pass `space` and collapse onto the app's
458
- * marker row.
459
- *
460
- * Families whose underlying storage doesn't yet support per-space
461
- * markers (Mongo, today) accept `space` for interface conformance and
462
- * reject any non-`APP_SPACE_ID` value rather than silently ignoring
463
- * it; see the family-specific implementation for details.
464
- */
465
- readMarker(options: {
466
- readonly driver: ControlDriverInstance<TFamilyId, string>;
467
- readonly space: string;
468
- }): Promise<ContractMarkerRecord | null>;
469
- /**
470
- * Reads every marker row keyed by `space`. Used by the per-space
471
- * verifier to detect orphan marker rows and marker-vs-on-disk drift.
472
- * Returns an empty map when the marker table does not yet exist.
473
- */
474
- readAllMarkers(options: {
475
- readonly driver: ControlDriverInstance<TFamilyId, string>;
476
- }): Promise<ReadonlyMap<string, ContractMarkerRecord>>;
477
- /**
478
- * Reads the per-migration ledger journal in apply order. When `space` is
479
- * omitted, returns rows for every space. Returns an empty array when the
480
- * ledger store does not yet exist or has no matching rows.
481
- */
482
- readLedger(options: {
483
- readonly driver: ControlDriverInstance<TFamilyId, string>;
484
- readonly space?: string;
485
- }): Promise<readonly LedgerEntryRecord[]>;
486
- introspect(options: {
487
- readonly driver: ControlDriverInstance<TFamilyId, string>;
488
- readonly contract?: unknown;
489
- }): Promise<TSchemaIR>;
490
- }
491
- interface ControlTargetInstance<TFamilyId extends string, TTargetId extends string> extends TargetInstance<TFamilyId, TTargetId> {}
492
- interface ControlAdapterInstance<TFamilyId extends string, TTargetId extends string> extends AdapterInstance<TFamilyId, TTargetId> {}
493
- interface ControlDriverInstance<TFamilyId extends string, TTargetId extends string> extends DriverInstance<TFamilyId, TTargetId> {
494
- close(): Promise<void>;
495
- /**
496
- * Name of the database this connection is bound to, when the target names
497
- * one. `db update` asks the user to type it before applying destructive
498
- * operations, so it names where the data would be lost.
499
- */
500
- databaseName?(): Promise<string | undefined>;
501
- }
502
- interface ControlExtensionInstance<TFamilyId extends string, TTargetId extends string> extends ExtensionInstance<TFamilyId, TTargetId> {}
503
- //#endregion
504
397
  //#region src/control/migration-statements.d.ts
505
398
  /** A model: its namespace and its name as the contract source writes it, never a table name. */
506
399
  interface ModelCoordinate {
@@ -794,6 +687,117 @@ declare function migrationSubjectJson(subject: MigrationSubject): MigrationSubje
794
687
  */
795
688
  declare function describeMigrationStatement(statement: ResolvedMigrationStatement, fromContract: ContractWithDomain, contract: ContractWithDomain): string;
796
689
  //#endregion
690
+ //#region src/control/control-instances.d.ts
691
+ interface ControlFamilyInstance<TFamilyId extends string, TSchemaIR> extends FamilyInstance<TFamilyId> {
692
+ /**
693
+ * The family seam-of-record for on-disk contract reads. Structurally
694
+ * validates the JSON envelope and hydrates IR-class instances via the
695
+ * per-target ContractSerializer. The single named entry point every
696
+ * CLI on-disk read crosses (TML-2536) — `as Contract` casts in
697
+ * production package sources are a serializer-bypass smell guarded by
698
+ * `pnpm lint:no-contract-cast`.
699
+ */
700
+ deserializeContract(contractJson: unknown): Contract;
701
+ /** The name the database knows the object an operation acts on by. */
702
+ storageNameOf(operation: MigrationPlanOperation): string;
703
+ /**
704
+ * The operations of one recorded migration that change who can read or write data, each by its position in `operations`. Pass one migration's operations at a time: whether an operation changes access can depend on the rest of its migration. Recognised from each operation's structure, never its label. An operation whose effect the family cannot read, such as one its author wrote by hand, is not listed.
705
+ */
706
+ accessChangesOf(operations: readonly MigrationPlanOperation[]): readonly MigrationAccessChange[];
707
+ /** Where the database keeps the contract markers, as messages name it to the user, such as `prisma_contract.marker`. The control adapter names it. */
708
+ readonly markerLocation: string;
709
+ verify(options: {
710
+ readonly driver: ControlDriverInstance<TFamilyId, string>;
711
+ readonly contract: unknown;
712
+ readonly expectedTargetId: string;
713
+ readonly contractPath: string;
714
+ readonly configPath?: string;
715
+ }): Promise<VerifyDatabaseResult>;
716
+ /**
717
+ * Verify a contract against an already-introspected schema.
718
+ *
719
+ * Callers that need to verify against the live database compose
720
+ * {@link introspect} + `verifySchema` directly. The aggregate verifier
721
+ * verifies each member against the full introspected schema and scopes the
722
+ * result to that member's contract space afterwards — it never prunes the
723
+ * schema up front.
724
+ *
725
+ * Synchronous — no I/O. Idempotent.
726
+ */
727
+ verifySchema(options: {
728
+ readonly contract: unknown;
729
+ readonly schema: TSchemaIR;
730
+ readonly strict: boolean;
731
+ readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, string>>;
732
+ }): VerifyDatabaseSchemaResult;
733
+ /**
734
+ * Writes the marker of every space in `spaces` with its contract's hashes. Does not check the schema: callers verify each space first. A space whose marker no longer holds `expected`, when it is read or when it is written, is reported as a conflict and its marker is left as it was. A family whose database can write every marker in one transaction takes the migration runner's marker lock and does so, so a failed write leaves every marker as it was. A family that cannot writes the markers one by one, so a failed write can leave earlier markers written; running the command again finishes the job.
735
+ */
736
+ signSpaces(options: {
737
+ readonly driver: ControlDriverInstance<TFamilyId, string>;
738
+ readonly spaces: readonly SpaceToSign[];
739
+ /**
740
+ * The database's policies as the caller read them when it checked the signature. The family compares them with the application space's marker before it writes any marker, under its lock where it has one, and writes the application space's marker only while it still records them. When they no longer hold it returns a `databasePolicies` conflict for the application space and signs nothing further.
741
+ */
742
+ readonly expectedDatabasePolicies?: DatabasePolicies;
743
+ }): Promise<readonly SpaceSignature[]>;
744
+ /**
745
+ * Reads the contract marker for `space` from the database, returning
746
+ * `null` if no marker row exists for that space (or if the marker
747
+ * table itself is missing).
748
+ *
749
+ * `space` is required at every call site so the type system surfaces
750
+ * every place that needs to thread the value: callers in app-only
751
+ * paths pass {@link import('./control-spaces').APP_SPACE_ID}
752
+ * (`'app'`); per-extension callers pass the extension's space id.
753
+ * Defaulting at the family-interface level was a silent bug door —
754
+ * it let callers forget to pass `space` and collapse onto the app's
755
+ * marker row.
756
+ *
757
+ * Families whose underlying storage doesn't yet support per-space
758
+ * markers (Mongo, today) accept `space` for interface conformance and
759
+ * reject any non-`APP_SPACE_ID` value rather than silently ignoring
760
+ * it; see the family-specific implementation for details.
761
+ */
762
+ readMarker(options: {
763
+ readonly driver: ControlDriverInstance<TFamilyId, string>;
764
+ readonly space: string;
765
+ }): Promise<ContractMarkerRecord | null>;
766
+ /**
767
+ * Reads every marker row keyed by `space`. Used by the per-space
768
+ * verifier to detect orphan marker rows and marker-vs-on-disk drift.
769
+ * Returns an empty map when the marker table does not yet exist.
770
+ */
771
+ readAllMarkers(options: {
772
+ readonly driver: ControlDriverInstance<TFamilyId, string>;
773
+ }): Promise<ReadonlyMap<string, ContractMarkerRecord>>;
774
+ /**
775
+ * Reads the per-migration ledger journal in apply order. When `space` is
776
+ * omitted, returns rows for every space. Returns an empty array when the
777
+ * ledger store does not yet exist or has no matching rows.
778
+ */
779
+ readLedger(options: {
780
+ readonly driver: ControlDriverInstance<TFamilyId, string>;
781
+ readonly space?: string;
782
+ }): Promise<readonly LedgerEntryRecord[]>;
783
+ introspect(options: {
784
+ readonly driver: ControlDriverInstance<TFamilyId, string>;
785
+ readonly contract?: unknown;
786
+ }): Promise<TSchemaIR>;
787
+ }
788
+ interface ControlTargetInstance<TFamilyId extends string, TTargetId extends string> extends TargetInstance<TFamilyId, TTargetId> {}
789
+ interface ControlAdapterInstance<TFamilyId extends string, TTargetId extends string> extends AdapterInstance<TFamilyId, TTargetId> {}
790
+ interface ControlDriverInstance<TFamilyId extends string, TTargetId extends string> extends DriverInstance<TFamilyId, TTargetId> {
791
+ close(): Promise<void>;
792
+ /**
793
+ * Name of the database this connection is bound to, when the target names
794
+ * one. `db update` asks the user to type it before applying destructive
795
+ * operations, so it names where the data would be lost.
796
+ */
797
+ databaseName?(): Promise<string | undefined>;
798
+ }
799
+ interface ControlExtensionInstance<TFamilyId extends string, TTargetId extends string> extends ExtensionInstance<TFamilyId, TTargetId> {}
800
+ //#endregion
797
801
  //#region src/control/control-migration-types.d.ts
798
802
  /**
799
803
  * In-memory migration metadata envelope. Every migration is
@@ -1011,18 +1015,9 @@ interface MigrationPlanWithAuthoringSurface extends MigrationPlan {
1011
1015
  * `migration.ts`. Output may start with a shebang; when it does, the caller
1012
1016
  * should make the resulting file executable.
1013
1017
  *
1014
- * `resolveImportSpecifier` rewrites every package name the rendered file
1015
- * imports for the import root the consuming application installed (ADR
1016
- * 242), exactly as the same resolver does for `contract.d.ts` — a
1017
- * scaffolded migration is a file the application keeps, so every name in
1018
- * it has to be one the application can resolve. The caller supplies it
1019
- * rather than the plan capturing it, because the project a plan is
1020
- * rendered into is known at the render call and not at planning time: `db
1021
- * init` and `db update` build plans they never render. Pass
1022
- * {@link import('../shared/import-specifier-resolver').keepInternalSpecifiers}
1023
- * to emit workspace names unchanged.
1018
+ * `migrationModule` is the module the rendered file imports its base class, its CLI entrypoint and every operation helper from: the config's `migrations.module`. The caller supplies it rather than the plan capturing it, because `db init` and `db update` build plans they never render.
1024
1019
  */
1025
- renderTypeScript(resolveImportSpecifier: ImportSpecifierResolver): string;
1020
+ renderTypeScript(migrationModule: string): string;
1026
1021
  }
1027
1022
  /**
1028
1023
  * A conflict detected during migration planning.
@@ -2155,4 +2150,4 @@ type VerifierIssueCategory = 'declaredMissing' | 'declaredIncompatible' | 'value
2155
2150
  declare function dispositionForCategory(controlPolicy: ControlPolicy, category: VerifierIssueCategory): VerifierOutcome;
2156
2151
  //#endregion
2157
2152
  export { MarkerDatabasePoliciesComparison as $, databasePolicyDifferences as $n, ResolvedMigrationStatement as $t, DATA_LOSS_LEVELS as A, SpaceToSign as An, migrationSubjectJson as Ar, MigrationScaffoldContext as At, EmitContractResult as B, VerifierOutcome as Bn, schemaIssuesWhy as Br, OperationContext as Bt, ControlStack as C, SchemaViewCapable as Cn, hasSchemaView as Cr, MigrationRunnerExecutionChecks as Ct, CreateControlStackInput as D, SpaceMarkerHashConflict as Dn, issueOutcome as Dr, MigrationRunnerPerSpaceSuccessValue as Dt, CoreSchemaView as E, SpaceMarkerConflict as En, issueLabel as Er, MigrationRunnerPerSpaceOptions as Et, DatabasePolicyDifference as F, VERIFY_CODE_TARGET_MISMATCH as Fn, orderIssuesByDependencies as Fr, MismatchCause as Ft, FailedCheck as G, assertUniqueCodecOwner as Gn, withDeclaredDatabasePolicies as Gr, PslContractBuildCapable as Gt, EnumValueCoordinateJson as H, VerifyDatabaseSchemaResult as Hn, storedDatabasePolicies as Hr, OperationPreviewCapable as Ht, DeclaredDatabasePolicies as I, ValueObjectFieldCoordinate as In, parseDeclaredDatabasePolicies as Ir, MismatchExplanation as It, FieldCoordinate as J, contractSnapshotJsonSpecifier as Jn, PslSourceSettings as Jt, FailedConversion as K, buildExtensionLoadOrder as Kn, withFailingSpace as Kr, PslContractDocument as Kt, DeclaredDatabasePoliciesIssue as L, ValueObjectFieldCoordinateJson as Ln, planOriginOf as Lr, ModelCoordinate as Lt, DEFAULT_DATABASE_POLICIES as M, VERIFY_CODE_HASH_MISMATCH as Mn, modelDisplayName as Mr, MigrationSubject as Mt, DataLossLevel as N, VERIFY_CODE_MARKER_MISSING as Nn, modelStatementText as Nr, MigrationSubjectJson as Nt, DATABASE_POLICIES_KEYS as O, SpaceSignature as On, migrationRunnerFailure as Or, MigrationRunnerResult as Ot, DatabasePolicies as P, VERIFY_CODE_SCHEMA_FAILURE as Pn, movedDatabasePoliciesWhy as Pr, MigrationTemporaryValue as Pt, KeepDataEdit as Q, databasePoliciesOf as Qn, ResolvedFieldRenameStatement as Qt, DiffSubjectGranularity as R, VerificationStatus as Rn, sameMarkerHashes as Rr, ModelCoordinateJson as Rt, ControlFamilyInstance as S, SchemaVerifyResult as Sn, hasSchemaSubjectClassifier as Sr, MigrationRunner as St, ControlTargetInstance as T, SpaceDatabasePoliciesConflict as Tn, isStorageHashHex as Tr, MigrationRunnerFailureMeta as Tt, ExpectationFailureReason as U, assembleAuthoringContributions as Un, valueObjectFieldStatementText as Ur, OperationPreviewStatement as Ut, EnumValueCoordinate as V, VerifyDatabaseResult as Vn, storageHashHex as Vr, OperationPreview as Vt, FailedCast as W, assembleControlMutationDefaults as Wn, withDatabaseUnchanged as Wr, PlanOrigin as Wt, HelperCodecInvariantInput as X, createControlStack as Xn, ResolvedFieldBackfillStatement as Xt, FieldCoordinateJson as Y, contractSnapshotTypesSpecifier as Yn, ResolvedEnumValueRenameStatement as Yt, IntrospectSchemaResult as Z, databasePoliciesMovedFailure as Zn, ResolvedFieldConvertStatement as Zt, ControlDriverDescriptor as _, SchemaTreeNode as _n, fieldStatementText as _r, MigrationPlanner as _t, AssembledAuthoringContributions as a, ResolvedVariantConvertStatement as an, enumValueCoordinateFromJson as ar, MigrationDataLoss as at, ControlExtensionInstance as b, SchemaVerifier as bn, hasPslContractBuild as br, MigrationPlannerResult as bt, CONTRACT_SNAPSHOTS_DIRNAME as c, RowsWithoutValue as cn, expectAbsent as cr, MigrationOperationClass as ct, ContractSerializer as d, SchemaEntityCoordinate as dn, extractCodecTypeImports as dr, MigrationPackage as dt, ResolvedModelRenameStatement as en, databasePolicyValueText as er, MarkerDestination as et, ContractSpace as f, SchemaLabelPart as fn, extractComponentIds as fr, MigrationPlan as ft, ControlDriverConnectOptions as g, SchemaSubjectClassifierCapable as gn, failedPrecheckWhy as gr, MigrationPlanWithAuthoringSurface as gt, ControlAdapterInstance as h, SchemaOwnership as hn, failedPostcheckWhy as hr, MigrationPlanSubjects as ht, AppliedMigrationStatement as i, ResolvedValueObjectFieldRenameStatement as in, enforceHelperCodecInvariants as ir, MigrationAccessChange as it, DATA_PROTECTION_KEYS as j, TargetMigrationsCapability as jn, migrationSubjectKey as jr, MigrationStatementJson as jt, DATABASE_POLICIES_META_KEY as k, SpaceSigned as kn, migrationStatementJson as kr, MigrationRunnerSuccessValue as kt, ChangeStrategy as l, SchemaDiff as ln, expectPresent as lr, MigrationOperationPolicy as lt, ControlAdapterDescriptor as m, SchemaNodeRef as mn, extractQueryOperationTypeImports as mr, MigrationPlanOperation as mt, APP_SPACE_ID as n, ResolvedRenameStatement as nn, diffSchemas as nr, MarkerInsert as nt, BlockingObject as o, RowsFailingCheck as on, enumValueCoordinateJson as or, MigrationDataLossKind as ot, ContractSpaceHeadRef as p, SchemaLabelPartRole as pn, extractParameterizedOutputTypeImports as pr, MigrationPlanNamespaces as pt, FailedTypeChange as q, compareMarkerDatabasePolicies as qn, PslContractInferCapable as qt, AccessWideningLevel as r, ResolvedValueObjectFieldBackfillStatement as rn, dispositionForCategory as rr, MigratableTargetDescriptor as rt, CHANGE_STRATEGIES as s, RowsHoldingValue as sn, enumValueStatementText as sr, MigrationMetadata as st, ACCESS_WIDENING_LEVELS as t, ResolvedNamespaceRenameStatement as tn, describeMigrationStatement as tr, MarkerHashes as tt, CheckExpectation as u, SchemaDiffIssue as un, extractCodecLookup as ur, MigrationOperationSubject as ut, ControlDriverInstance as v, SchemaTreeNodeOptions as vn, hasMigrations as vr, MigrationPlannerConflict as vt, ControlTargetDescriptor as w, SchemaViewNodeKind as wn, isRenameStatement as wr, MigrationRunnerFailure as wt, ControlFamilyDescriptor as x, SchemaVerifyOptions as xn, hasPslContractInfer as xr, MigrationPlannerSuccessResult as xt, ControlExtensionDescriptor as y, SchemaTreeVisitor as yn, hasOperationPreview as yr, MigrationPlannerFailureResult as yt, DiffableNode as z, VerifierIssueCategory as zn, schemaCheckWhy as zr, OpFactoryCall as zt };
2158
- //# sourceMappingURL=control-B3QHYJcv.d.mts.map
2153
+ //# sourceMappingURL=control-rzZBO0wp.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-rzZBO0wp.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;cAec;cACA;cACA;;KAET,yBAAyB;KACzB,wBAAwB;KACxB,8BAA8B;;UAEzB;WACC,iBAAiB;WACjB;aACE,UAAU;aACV,gBAAgB;;;;UAInB;WACC,kBAAkB;WAClB;aACE,WAAW;aACX,iBAAiB;;;;cAIhB;;cAEA;;cAEA;cACA,2BAA2B;;iBAExB,6BAA6B,SAAS,kBAAkB,UAAU,2BAA2B;;UAEpG;WACC;WACA;;;iBAGM,8BAA8B,iBAAiB,OAAO,mCAAmC;;UAEhG;WACC;;;;;;iBAMM,mBAAmB,QAAQ,0CAA0C,OAAO,kBAAkB;;KAE1G;WACM;WACA,mBAAmB;WACnB,kBAAkB;;WAElB;WACA,UAAU;WACV,SAAS;;WAET;WACA,UAAU;WACV,SAAS;;;iBAGH,0BAA0B,UAAU,0BAA0B,SAAS,4BAA4B;;KAE/G;WACM;;WAEA;WACA,OAAO;;WAEP;WACA;;;;;;iBAMM,8BAA8B,QAAQ,yCAAyC,SAAS,mBAAmB;;iBAE3G,wBAAwB,OAAO;;iBAE/B,yBAAyB,eAAe,SAAS,kBAAkB,OAAO;;;;;iBAK1E,6BAA6B,SAAS,kBAAkB,OAAO,mBAAmB;WACxF;;;UAGD;WACC,QAAQ;WACR;aACE,UAAU;aACV,gBAAgB;;;iBAGZ,uBAAuB,UAAU,mBAAmB;;;;;;;;;;KAUhE;WACM;WACA;;UAED,gBAAgB,cAAc,eAA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,iBAAiB;;iBAEhC,kBAAkB,OAAO;;iBAEzB,mBAAmB,OAAO;;;;;;;;;;;;;;;;;;UAkBjC,eAAe,WAAW;EAClC,aAAa,SAAS,oBAAoB,WAAW,WAAW;;;;;;;;UAQxD,oBAAoB,WAAW;WAC9B,UAAU;WACV,QAAQ;;;;;;;;UAQT;WACC;WACA,iBAAiB;;;;KAIvB;KACA,kBAAkB;;;;;;;;;;;;;;;;;KAiBlB;;;;;;;;;;iBAUY,uBAAuB,eAAe,eAAe,UAAU,wBAAwB"}
@@ -0,0 +1,49 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/decimal.mjs
2
+ const DECIMAL_TEXT = /^-?\d+(?:\.\d+)?$/;
3
+ const DECIMAL_TEXT_WITH_EXPONENT = /^(-?)(\d+)(?:\.(\d+))?(?:E([+-]\d+))?$/;
4
+ /** Whether `text` is a decimal numeral without an exponent: an optional minus sign, digits, and an optional fraction, as in `-12.50`. */
5
+ function isDecimalText(text) {
6
+ return DECIMAL_TEXT.test(text);
7
+ }
8
+ /** Decimal text without the leading zeros of its whole part; the sign of zero and trailing zeros stay, as in `-0.10` for `-00.10`. */
9
+ function decimalTextWithoutLeadingZeros(text) {
10
+ return text.replace(/^(-?)0+(?=\d)/, "$1");
11
+ }
12
+ /** Decimal text without a minus sign on zero, as in `0.00` for `-0.00`. */
13
+ function decimalTextWithoutSignOfZero(text) {
14
+ return /^-[0.]+$/.test(text) ? text.slice(1) : text;
15
+ }
16
+ /** Decimal text in the form a database prints it: no leading zeros and no minus sign on zero. Trailing zeros stay, because they are the scale the value was written with. */
17
+ function printedDecimalText(text) {
18
+ return decimalTextWithoutSignOfZero(decimalTextWithoutLeadingZeros(text));
19
+ }
20
+ /**
21
+ * Decimal text that may carry an exponent, such as `1E+3` or `1.23E-5`, written without one: the point moves to where the exponent puts it, trailing zeros stay, and the sign of zero goes. `NaN`, `Infinity` and `-Infinity` are returned as they are. Returns `undefined` for any other text.
22
+ */
23
+ function decimalTextWithoutExponent(text) {
24
+ if (text === "NaN" || text === "Infinity" || text === "-Infinity") return text;
25
+ const match = DECIMAL_TEXT_WITH_EXPONENT.exec(text);
26
+ if (match === null) return void 0;
27
+ const [, sign = "", whole = "", fraction = "", exponent = "0"] = match;
28
+ const digits = `${whole}${fraction}`;
29
+ const point = whole.length + Number(exponent);
30
+ let integerPart;
31
+ let fractionPart;
32
+ if (point <= 0) {
33
+ integerPart = "0";
34
+ fractionPart = `${"0".repeat(-point)}${digits}`;
35
+ } else if (point >= digits.length) {
36
+ integerPart = `${digits}${"0".repeat(point - digits.length)}`;
37
+ fractionPart = "";
38
+ } else {
39
+ integerPart = digits.slice(0, point);
40
+ fractionPart = digits.slice(point);
41
+ }
42
+ const trimmedInteger = integerPart.replace(/^0+(?=\d)/, "");
43
+ const unsigned = fractionPart === "" ? trimmedInteger : `${trimmedInteger}.${fractionPart}`;
44
+ return /^[0.]+$/.test(unsigned) ? unsigned : `${sign}${unsigned}`;
45
+ }
46
+ //#endregion
47
+ export { printedDecimalText as i, decimalTextWithoutLeadingZeros as n, isDecimalText as r, decimalTextWithoutExponent as t };
48
+
49
+ //# sourceMappingURL=decimal-CetFpCr5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimal-CetFpCr5.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/decimal.mjs"],"sourcesContent":["//#region src/decimal.ts\nconst DECIMAL_TEXT = /^-?\\d+(?:\\.\\d+)?$/;\nconst DECIMAL_TEXT_WITH_EXPONENT = /^(-?)(\\d+)(?:\\.(\\d+))?(?:E([+-]\\d+))?$/;\n/** Whether `text` is a decimal numeral without an exponent: an optional minus sign, digits, and an optional fraction, as in `-12.50`. */\nfunction isDecimalText(text) {\n\treturn DECIMAL_TEXT.test(text);\n}\n/** Decimal text without the leading zeros of its whole part; the sign of zero and trailing zeros stay, as in `-0.10` for `-00.10`. */\nfunction decimalTextWithoutLeadingZeros(text) {\n\treturn text.replace(/^(-?)0+(?=\\d)/, \"$1\");\n}\n/** Decimal text without a minus sign on zero, as in `0.00` for `-0.00`. */\nfunction decimalTextWithoutSignOfZero(text) {\n\treturn /^-[0.]+$/.test(text) ? text.slice(1) : text;\n}\n/** Decimal text in the form a database prints it: no leading zeros and no minus sign on zero. Trailing zeros stay, because they are the scale the value was written with. */\nfunction printedDecimalText(text) {\n\treturn decimalTextWithoutSignOfZero(decimalTextWithoutLeadingZeros(text));\n}\n/**\n* Decimal text that may carry an exponent, such as `1E+3` or `1.23E-5`, written without one: the point moves to where the exponent puts it, trailing zeros stay, and the sign of zero goes. `NaN`, `Infinity` and `-Infinity` are returned as they are. Returns `undefined` for any other text.\n*/\nfunction decimalTextWithoutExponent(text) {\n\tif (text === \"NaN\" || text === \"Infinity\" || text === \"-Infinity\") return text;\n\tconst match = DECIMAL_TEXT_WITH_EXPONENT.exec(text);\n\tif (match === null) return void 0;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\", exponent = \"0\"] = match;\n\tconst digits = `${whole}${fraction}`;\n\tconst point = whole.length + Number(exponent);\n\tlet integerPart;\n\tlet fractionPart;\n\tif (point <= 0) {\n\t\tintegerPart = \"0\";\n\t\tfractionPart = `${\"0\".repeat(-point)}${digits}`;\n\t} else if (point >= digits.length) {\n\t\tintegerPart = `${digits}${\"0\".repeat(point - digits.length)}`;\n\t\tfractionPart = \"\";\n\t} else {\n\t\tintegerPart = digits.slice(0, point);\n\t\tfractionPart = digits.slice(point);\n\t}\n\tconst trimmedInteger = integerPart.replace(/^0+(?=\\d)/, \"\");\n\tconst unsigned = fractionPart === \"\" ? trimmedInteger : `${trimmedInteger}.${fractionPart}`;\n\treturn /^[0.]+$/.test(unsigned) ? unsigned : `${sign}${unsigned}`;\n}\n//#endregion\nexport { decimalTextWithoutExponent, decimalTextWithoutLeadingZeros, isDecimalText, printedDecimalText };\n\n//# sourceMappingURL=decimal.mjs.map"],"mappings":";AACA,MAAM,eAAe;AACrB,MAAM,6BAA6B;;AAEnC,SAAS,cAAc,MAAM;CAC5B,OAAO,aAAa,KAAK,IAAI;AAC9B;;AAEA,SAAS,+BAA+B,MAAM;CAC7C,OAAO,KAAK,QAAQ,iBAAiB,IAAI;AAC1C;;AAEA,SAAS,6BAA6B,MAAM;CAC3C,OAAO,WAAW,KAAK,IAAI,IAAI,KAAK,MAAM,CAAC,IAAI;AAChD;;AAEA,SAAS,mBAAmB,MAAM;CACjC,OAAO,6BAA6B,+BAA+B,IAAI,CAAC;AACzE;;;;AAIA,SAAS,2BAA2B,MAAM;CACzC,IAAI,SAAS,SAAS,SAAS,cAAc,SAAS,aAAa,OAAO;CAC1E,MAAM,QAAQ,2BAA2B,KAAK,IAAI;CAClD,IAAI,UAAU,MAAM,OAAO,KAAK;CAChC,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,WAAW,IAAI,WAAW,OAAO;CACjE,MAAM,SAAS,GAAG,QAAQ;CAC1B,MAAM,QAAQ,MAAM,SAAS,OAAO,QAAQ;CAC5C,IAAI;CACJ,IAAI;CACJ,IAAI,SAAS,GAAG;EACf,cAAc;EACd,eAAe,GAAG,IAAI,OAAO,CAAC,KAAK,IAAI;CACxC,OAAO,IAAI,SAAS,OAAO,QAAQ;EAClC,cAAc,GAAG,SAAS,IAAI,OAAO,QAAQ,OAAO,MAAM;EAC1D,eAAe;CAChB,OAAO;EACN,cAAc,OAAO,MAAM,GAAG,KAAK;EACnC,eAAe,OAAO,MAAM,KAAK;CAClC;CACA,MAAM,iBAAiB,YAAY,QAAQ,aAAa,EAAE;CAC1D,MAAM,WAAW,iBAAiB,KAAK,iBAAiB,GAAG,eAAe,GAAG;CAC7E,OAAO,UAAU,KAAK,QAAQ,IAAI,WAAW,GAAG,OAAO;AACxD"}
@@ -0,0 +1,15 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/decimal.d.mts
2
+ //#region src/decimal.d.ts
3
+ /** Whether `text` is a decimal numeral without an exponent: an optional minus sign, digits, and an optional fraction, as in `-12.50`. */
4
+ declare function isDecimalText(text: string): boolean;
5
+ /** Decimal text without the leading zeros of its whole part; the sign of zero and trailing zeros stay, as in `-0.10` for `-00.10`. */
6
+ declare function decimalTextWithoutLeadingZeros(text: string): string;
7
+ /** Decimal text in the form a database prints it: no leading zeros and no minus sign on zero. Trailing zeros stay, because they are the scale the value was written with. */
8
+ declare function printedDecimalText(text: string): string;
9
+ /**
10
+ * Decimal text that may carry an exponent, such as `1E+3` or `1.23E-5`, written without one: the point moves to where the exponent puts it, trailing zeros stay, and the sign of zero goes. `NaN`, `Infinity` and `-Infinity` are returned as they are. Returns `undefined` for any other text.
11
+ */
12
+ declare function decimalTextWithoutExponent(text: string): string | undefined;
13
+ //#endregion
14
+ export { printedDecimalText as i, decimalTextWithoutLeadingZeros as n, isDecimalText as r, decimalTextWithoutExponent as t };
15
+ //# sourceMappingURL=decimal-DpMh1SwW.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimal-DpMh1SwW.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/decimal.d.mts"],"mappings":";;;iBAEiB,cAAc;;iBAEd,+BAA+B;;iBAE/B,mBAAmB;;;;iBAInB,2BAA2B"}
@@ -1,4 +1,4 @@
1
- import { S as findFirstChild, _ as castExpression, a as IdentifierAst, b as filterChildren, f as SyntaxNode, n as AttributeArgAst, p as SyntaxToken, u as QualifiedNameAst, w as readDocComment, x as findChildToken } from "./expressions-BlhT51Ib-CQCMuQD8.mjs";
1
+ import { S as findFirstChild, _ as castExpression, a as IdentifierAst, b as filterChildren, f as SyntaxNode, n as AttributeArgAst, p as SyntaxToken, u as QualifiedNameAst, w as readDocComment, x as findChildToken } from "./expressions-BlhT51Ib-DfkeWOwr.mjs";
2
2
  //#region ../../../1-framework/2-authoring/psl-parser/dist/declarations-8CRDqUTt.mjs
3
3
  var AttributeArgListAst = class AttributeArgListAst {
4
4
  syntax;
@@ -456,4 +456,4 @@ var NamedTypeDeclarationAst = class NamedTypeDeclarationAst {
456
456
  //#endregion
457
457
  export { isTriviaKind as _, FieldDeclarationAst as a, MixinDeclarationAst as c, ModelDeclarationAst as d, NamedTypeDeclarationAst as f, isTrivia as g, TypesBlockAst as h, FieldAttributeAst as i, MixinInclusionAst as l, TypeAnnotationAst as m, CompositeTypeDeclarationAst as n, GenericBlockDeclarationAst as o, NamespaceDeclarationAst as p, DocumentAst as r, KeyValuePairAst as s, AttributeArgListAst as t, ModelAttributeAst as u, nonTriviaSibling as v, skipTriviaToken as y };
458
458
 
459
- //# sourceMappingURL=declarations-8CRDqUTt-B0YG2lqY.mjs.map
459
+ //# sourceMappingURL=declarations-8CRDqUTt-BZ6aspIz.mjs.map