@prisma/orm-toolchain 8.0.0-rc.11-dev.51 → 8.0.0-rc.11-dev.53

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 (35) hide show
  1. package/dist/cli.mjs +1476 -269
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/cli__control-api.d.mts +17 -2
  4. package/dist/cli__control-api.d.mts.map +1 -1
  5. package/dist/cli__control-api.mjs +2 -2
  6. package/dist/cli__init-output.d.mts +11 -1
  7. package/dist/cli__init-output.d.mts.map +1 -1
  8. package/dist/cli__init-output.mjs +1 -1
  9. package/dist/cli__migration-cli.mjs +1 -1
  10. package/dist/config-loader.d.mts +2 -2
  11. package/dist/config-loader.mjs +2 -2
  12. package/dist/{exports-uepvbfMs.mjs → exports-BiGALu6k.mjs} +2 -2
  13. package/dist/{exports-uepvbfMs.mjs.map → exports-BiGALu6k.mjs.map} +1 -1
  14. package/dist/{exports-DJ4RhlW4.mjs → exports-ClG6amXs.mjs} +49 -13
  15. package/dist/exports-ClG6amXs.mjs.map +1 -0
  16. package/dist/{import-roots-CYGb9VeC.mjs → import-roots-CYpOz1XZ.mjs} +2 -2
  17. package/dist/{import-roots-CYGb9VeC.mjs.map → import-roots-CYpOz1XZ.mjs.map} +1 -1
  18. package/dist/{index-u5RdrumF.d.mts → index-CjMp0WzN.d.mts} +27 -2
  19. package/dist/index-CjMp0WzN.d.mts.map +1 -0
  20. package/dist/output-BcC8eB0h-C5bRd-aC.mjs +129 -0
  21. package/dist/output-BcC8eB0h-C5bRd-aC.mjs.map +1 -0
  22. package/dist/publish-surface.mjs +2 -2
  23. package/dist/publish-surface__import-roots.mjs +1 -1
  24. package/dist/publish-surface__shells.mjs +1 -1
  25. package/dist/quick-reference-prisma7.md +80 -0
  26. package/dist/{ref-g7LrevBG-DgO9ywms.mjs → ref-DL4C2p9T-B6EVNIhl.mjs} +83 -35
  27. package/dist/{ref-g7LrevBG-DgO9ywms.mjs.map → ref-DL4C2p9T-B6EVNIhl.mjs.map} +1 -1
  28. package/dist/{shells-C_vvtity.mjs → shells-DQaV4Fdt.mjs} +2 -1
  29. package/dist/{shells-C_vvtity.mjs.map → shells-DQaV4Fdt.mjs.map} +1 -1
  30. package/dist/vite-plugin-contract-emit.mjs +2 -2
  31. package/package.json +12 -12
  32. package/dist/exports-DJ4RhlW4.mjs.map +0 -1
  33. package/dist/index-u5RdrumF.d.mts.map +0 -1
  34. package/dist/output-D83nTTpC-XlvN30yS.mjs +0 -77
  35. package/dist/output-D83nTTpC-XlvN30yS.mjs.map +0 -1
@@ -500,6 +500,7 @@ const publicShells = /* @__PURE__ */ new Map([
500
500
  "default-normalizer",
501
501
  "diff-database-schema",
502
502
  "errors",
503
+ "full-text",
503
504
  "issue-planner",
504
505
  "migration",
505
506
  "native-type-normalizer",
@@ -644,4 +645,4 @@ const excludedSubpaths = [/^\.\/test(\/|$)/];
644
645
  //#endregion
645
646
  export { publicShells as n, excludedSubpaths as t };
646
647
 
647
- //# sourceMappingURL=shells-C_vvtity.mjs.map
648
+ //# sourceMappingURL=shells-DQaV4Fdt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"shells-C_vvtity.mjs","names":[],"sources":["../../../../0-shared/publish-surface/dist/shells.mjs"],"sourcesContent":["//#region src/shells.ts\n/**\n* Surfaces every facade republishes regardless of family.\n*\n* An application depends on one facade and nothing else (ADR 242), so\n* everything it reaches — hand-written and generated alike — has to have a\n* name under the facade. These are the target-agnostic ones: the contract and\n* component surfaces emitted files import, the shared helpers, and the Vite\n* plugin.\n*\n* Entry names follow the name the platform shell gives the same package, so\n* one internal package reads the same way wherever it is reached from.\n*\n* A republished package brings its whole subpath surface with it unless the\n* entry lists `subpaths`, so the cost of an entry is its export count, not\n* one. Nothing goes in here that no application reaches.\n*\n* `migration-tools` is listed by subpath rather than whole. An application\n* does reach it — a project that checks its own migrations are intact, or\n* that stages an extension's pinned contract-space artifacts before `db\n* init`, reads and writes the on-disk migration format, and under a\n* facade-only install there is no other published name for it. But it is a\n* 17-subpath tooling package whose remaining surface (the graph, the\n* pathfinder, ref resolution, the ledger) is the CLI's own working material,\n* and publishing that would freeze it. The five listed here are what the\n* repository's own consumers reach.\n*/\nconst COMMON_FACADE_REEXPORTS = [\n\t{\n\t\tpackage: \"@internal/contract\",\n\t\tentry: \"contract\"\n\t},\n\t{\n\t\tpackage: \"@internal/framework-components\",\n\t\tentry: \"components\"\n\t},\n\t{\n\t\tpackage: \"@internal/utils\",\n\t\tentry: \"utils\"\n\t},\n\t{\n\t\tpackage: \"@internal/vite-plugin-contract-emit\",\n\t\tentry: \"vite-plugin-contract-emit\"\n\t},\n\t{\n\t\tpackage: \"@internal/migration-tools\",\n\t\tentry: \"migration-tools\",\n\t\tsubpaths: [\n\t\t\t\"aggregate\",\n\t\t\t\"contract-snapshot-store\",\n\t\t\t\"hash\",\n\t\t\t\"io\",\n\t\t\t\"spaces\"\n\t\t]\n\t}\n];\n/**\n* The per-database part of a facade's republished surface.\n*\n* `family` is the family's contract package (`@internal/sql-contract` or\n* `@internal/mongo-contract`) and `familyPack` its control-plane and IR\n* pack; `target` and `adapter` carry the codec and operation types emitted\n* contracts reference; `runtime` is the family runtime an application drives\n* queries through.\n*\n* `family-contract` and `family-runtime` take a qualified name because the\n* facade's own `contract` and `runtime` are different modules. `target` and\n* `familyPack` forward subpaths only, so that a facade which publishes its own\n* `./target` or `./family` pack keeps that name for its own module; where a\n* facade publishes neither, the plain name simply stays free.\n*\n* `driver` is carried by every facade. A facade wires its own driver, so the\n* only code that names one is code driving the migration planner or runner\n* itself — which the SQL facades were assumed not to have, until the SQL\n* migration-planner harnesses turned out to need the driver's control\n* descriptor to build a control stack by hand. Two subpaths per facade.\n*\n* `targetSubpaths` limits the target forward where the target package exports\n* something the facade's own code imports but no application does.\n*/\nfunction facadeReexports(options) {\n\treturn [\n\t\t...COMMON_FACADE_REEXPORTS,\n\t\t{\n\t\t\tpackage: options.family,\n\t\t\tentry: \"family-contract\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.familyPack,\n\t\t\tentry: \"family\",\n\t\t\troot: false\n\t\t},\n\t\t{\n\t\t\tpackage: options.runtime,\n\t\t\tentry: \"family-runtime\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.target,\n\t\t\tentry: \"target\",\n\t\t\troot: false,\n\t\t\t...options.targetSubpaths === void 0 ? {} : { subpaths: options.targetSubpaths }\n\t\t},\n\t\t{\n\t\t\tpackage: options.adapter,\n\t\t\tentry: \"adapter\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.driver,\n\t\t\tentry: \"driver\"\n\t\t},\n\t\t...options.queryBuilders\n\t];\n}\n/**\n* The SQL family's query surfaces, republished by both SQL facades.\n*\n* `schema-ir` carries one subpath. Code that authors a migration by hand, or\n* drives the planner itself, names `SqlSchemaIR` — it is the schema shape the\n* planner takes and returns. The package's other two subpaths are the IR's\n* construction and naming internals, which publishing would freeze.\n*/\nconst SQL_QUERY_REEXPORTS = [\n\t{\n\t\tpackage: \"@internal/sql-orm-client\",\n\t\tentry: \"orm-client\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-builder\",\n\t\tentry: \"builder\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-relational-core\",\n\t\tentry: \"relational-core\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-schema-ir\",\n\t\tentry: \"schema-ir\",\n\t\tsubpaths: [\"types\"]\n\t}\n];\nconst publicShells = /* @__PURE__ */ new Map([\n\t[\"@prisma/orm-framework\", {\n\t\tdir: \"packages/9-public/@prisma/orm-framework\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/0-foundation/contract\",\n\t\t\t\tname: \"@internal/contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/0-foundation/utils\",\n\t\t\t\tname: \"@internal/utils\",\n\t\t\t\tentry: \"utils\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/config\",\n\t\t\t\tname: \"@internal/config\",\n\t\t\t\tentry: \"config\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/errors\",\n\t\t\t\tname: \"@internal/errors\",\n\t\t\t\tentry: \"errors\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/framework-components\",\n\t\t\t\tname: \"@internal/framework-components\",\n\t\t\t\tentry: \"components\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/operations\",\n\t\t\t\tname: \"@internal/operations\",\n\t\t\t\tentry: \"operations\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/ts-render\",\n\t\t\t\tname: \"@internal/ts-render\",\n\t\t\t\tentry: \"ts-render\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/contract\",\n\t\t\t\tname: \"@internal/contract-authoring\",\n\t\t\t\tentry: \"contract-authoring\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/ids\",\n\t\t\t\tname: \"@internal/ids\",\n\t\t\t\tentry: \"ids\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/psl-parser\",\n\t\t\t\tname: \"@internal/psl-parser\",\n\t\t\t\tentry: \"psl-parser\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/psl-printer\",\n\t\t\t\tname: \"@internal/psl-printer\",\n\t\t\t\tentry: \"psl-printer\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-toolchain\", {\n\t\tdir: \"packages/9-public/@prisma/orm-toolchain\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/cli\",\n\t\t\t\tname: \"@internal/cli\",\n\t\t\t\tentry: \"cli\",\n\t\t\t\tsubpaths: [\n\t\t\t\t\t\".\",\n\t\t\t\t\t\"migration-cli\",\n\t\t\t\t\t\"control-api\",\n\t\t\t\t\t\"control-api/testing\",\n\t\t\t\t\t\"config-types\",\n\t\t\t\t\t\"init-output\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/cli-telemetry\",\n\t\t\t\tname: \"@internal/cli-telemetry\",\n\t\t\t\tentry: \"cli-telemetry\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/config-loader\",\n\t\t\t\tname: \"@internal/config-loader\",\n\t\t\t\tentry: \"config-loader\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/emitter\",\n\t\t\t\tentry: \"emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/language-server\",\n\t\t\t\tname: \"@internal/language-server\",\n\t\t\t\tentry: \"language-server\",\n\t\t\t\tpublished: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/migration\",\n\t\t\t\tname: \"@internal/migration-tools\",\n\t\t\t\tentry: \"migration-tools\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/vite-plugin-contract-emit\",\n\t\t\t\tname: \"@internal/vite-plugin-contract-emit\",\n\t\t\t\tentry: \"vite-plugin-contract-emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/0-shared/publish-surface\",\n\t\t\t\tname: \"@internal/publish-surface\",\n\t\t\t\tentry: \"publish-surface\"\n\t\t\t}\n\t\t],\n\t\tcopy: [\"packages/1-framework/3-tooling/cli/dist/*.md\"]\n\t}],\n\t[\"@prisma/orm-family-sql\", {\n\t\tdir: \"packages/9-public/@prisma/orm-family-sql\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/contract\",\n\t\t\t\tname: \"@internal/sql-contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/errors\",\n\t\t\t\tname: \"@internal/sql-errors\",\n\t\t\t\tentry: \"errors\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/operations\",\n\t\t\t\tname: \"@internal/sql-operations\",\n\t\t\t\tentry: \"operations\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/schema-ir\",\n\t\t\t\tname: \"@internal/sql-schema-ir\",\n\t\t\t\tentry: \"schema-ir\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-prisma7\",\n\t\t\t\tname: \"@internal/sql-contract-prisma7\",\n\t\t\t\tentry: \"contract-prisma7\",\n\t\t\t\tsubpaths: [\"provider\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-psl\",\n\t\t\t\tname: \"@internal/sql-contract-psl\",\n\t\t\t\tentry: \"contract-psl\",\n\t\t\t\tsubpaths: [\n\t\t\t\t\t\".\",\n\t\t\t\t\t\"attribute-specs\",\n\t\t\t\t\t\"default-table-name\",\n\t\t\t\t\t\"provider\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-ts\",\n\t\t\t\tname: \"@internal/sql-contract-ts\",\n\t\t\t\tentry: \"contract-ts\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/sql-contract-emitter\",\n\t\t\t\tentry: \"contract-emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/relational-core\",\n\t\t\t\tname: \"@internal/sql-relational-core\",\n\t\t\t\tentry: \"relational-core\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/sql-builder\",\n\t\t\t\tname: \"@internal/sql-builder\",\n\t\t\t\tentry: \"builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/5-runtime\",\n\t\t\t\tname: \"@internal/sql-runtime\",\n\t\t\t\tentry: \"runtime\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/9-family\",\n\t\t\t\tname: \"@internal/family-sql\",\n\t\t\t\tentry: \"family\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-extensions/sql-orm-client\",\n\t\t\t\tname: \"@internal/sql-orm-client\",\n\t\t\t\tentry: \"orm-client\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-family-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-family-mongo\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-codec\",\n\t\t\t\tname: \"@internal/mongo-codec\",\n\t\t\t\tentry: \"codec\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-contract\",\n\t\t\t\tname: \"@internal/mongo-contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-value\",\n\t\t\t\tname: \"@internal/mongo-value\",\n\t\t\t\tentry: \"value\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/2-authoring/contract-psl\",\n\t\t\t\tname: \"@internal/mongo-contract-psl\",\n\t\t\t\tentry: \"contract-psl\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/2-authoring/contract-ts\",\n\t\t\t\tname: \"@internal/mongo-contract-ts\",\n\t\t\t\tentry: \"contract-ts\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/mongo-emitter\",\n\t\t\t\tentry: \"emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/3-tooling/mongo-schema-ir\",\n\t\t\t\tname: \"@internal/mongo-schema-ir\",\n\t\t\t\tentry: \"schema-ir\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/4-query/query-ast\",\n\t\t\t\tname: \"@internal/mongo-query-ast\",\n\t\t\t\tentry: \"query-ast\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/5-query-builders/orm\",\n\t\t\t\tname: \"@internal/mongo-orm\",\n\t\t\t\tentry: \"orm\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/5-query-builders/query-builder\",\n\t\t\t\tname: \"@internal/mongo-query-builder\",\n\t\t\t\tentry: \"query-builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/6-transport/mongo-lowering\",\n\t\t\t\tname: \"@internal/mongo-lowering\",\n\t\t\t\tentry: \"lowering\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/6-transport/mongo-wire\",\n\t\t\t\tname: \"@internal/mongo-wire\",\n\t\t\t\tentry: \"wire\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/7-runtime\",\n\t\t\t\tname: \"@internal/mongo-runtime\",\n\t\t\t\tentry: \"runtime\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/9-family\",\n\t\t\t\tname: \"@internal/family-mongo\",\n\t\t\t\tentry: \"family\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-postgres\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-postgres\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/3-targets/postgres\",\n\t\t\t\tname: \"@internal/target-postgres\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/6-adapters/postgres\",\n\t\t\t\tname: \"@internal/adapter-postgres\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/7-drivers/postgres\",\n\t\t\t\tname: \"@internal/driver-postgres\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-sqlite\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-sqlite\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/3-targets/sqlite\",\n\t\t\t\tname: \"@internal/target-sqlite\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/6-adapters/sqlite\",\n\t\t\t\tname: \"@internal/adapter-sqlite\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/7-drivers/sqlite\",\n\t\t\t\tname: \"@internal/driver-sqlite\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-mongo\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/1-mongo-target\",\n\t\t\t\tname: \"@internal/target-mongo\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/2-mongo-adapter\",\n\t\t\t\tname: \"@internal/adapter-mongo\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/3-mongo-driver\",\n\t\t\t\tname: \"@internal/driver-mongo\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-postgres\", {\n\t\tdir: \"packages/9-public/@prisma/orm-postgres\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/postgres\",\n\t\t\tname: \"@internal/postgres\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/sql-contract\",\n\t\t\tfamilyPack: \"@internal/family-sql\",\n\t\t\truntime: \"@internal/sql-runtime\",\n\t\t\ttarget: \"@internal/target-postgres\",\n\t\t\ttargetSubpaths: [\n\t\t\t\t\"aggregates\",\n\t\t\t\t\"codec-descriptor\",\n\t\t\t\t\"codec-ids\",\n\t\t\t\t\"codec-types\",\n\t\t\t\t\"codecs\",\n\t\t\t\t\"contract-free\",\n\t\t\t\t\"control\",\n\t\t\t\t\"data-transform\",\n\t\t\t\t\"data-types\",\n\t\t\t\t\"ddl\",\n\t\t\t\t\"default-normalizer\",\n\t\t\t\t\"diff-database-schema\",\n\t\t\t\t\"errors\",\n\t\t\t\t\"issue-planner\",\n\t\t\t\t\"migration\",\n\t\t\t\t\"native-type-normalizer\",\n\t\t\t\t\"op-factory-call\",\n\t\t\t\t\"operation-types\",\n\t\t\t\t\"pack\",\n\t\t\t\t\"planner\",\n\t\t\t\t\"planner-ddl-builders\",\n\t\t\t\t\"planner-identity-values\",\n\t\t\t\t\"planner-produced-postgres-migration\",\n\t\t\t\t\"planner-schema-lookup\",\n\t\t\t\t\"planner-sql-checks\",\n\t\t\t\t\"planner-target-details\",\n\t\t\t\t\"render-ops\",\n\t\t\t\t\"render-typescript\",\n\t\t\t\t\"rls-canonicalize\",\n\t\t\t\t\"runtime\",\n\t\t\t\t\"schema-ir-annotations\",\n\t\t\t\t\"sql-utils\",\n\t\t\t\t\"types\"\n\t\t\t],\n\t\t\tadapter: \"@internal/adapter-postgres\",\n\t\t\tdriver: \"@internal/driver-postgres\",\n\t\t\tqueryBuilders: SQL_QUERY_REEXPORTS\n\t\t})\n\t}],\n\t[\"@prisma/orm-sqlite\", {\n\t\tdir: \"packages/9-public/@prisma/orm-sqlite\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/sqlite\",\n\t\t\tname: \"@internal/sqlite\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/sql-contract\",\n\t\t\tfamilyPack: \"@internal/family-sql\",\n\t\t\truntime: \"@internal/sql-runtime\",\n\t\t\ttarget: \"@internal/target-sqlite\",\n\t\t\tadapter: \"@internal/adapter-sqlite\",\n\t\t\tdriver: \"@internal/driver-sqlite\",\n\t\t\tqueryBuilders: SQL_QUERY_REEXPORTS\n\t\t})\n\t}],\n\t[\"@prisma/orm-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-mongo\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/mongo\",\n\t\t\tname: \"@internal/mongo\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/mongo-contract\",\n\t\t\tfamilyPack: \"@internal/family-mongo\",\n\t\t\truntime: \"@internal/mongo-runtime\",\n\t\t\ttarget: \"@internal/target-mongo\",\n\t\t\tadapter: \"@internal/adapter-mongo\",\n\t\t\tdriver: \"@internal/driver-mongo\",\n\t\t\tqueryBuilders: [\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-orm\",\n\t\t\t\t\tentry: \"orm\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-query-builder\",\n\t\t\t\t\tentry: \"query-builder\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-query-ast\",\n\t\t\t\t\tentry: \"query-ast\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-value\",\n\t\t\t\t\tentry: \"value\"\n\t\t\t\t}\n\t\t\t]\n\t\t})\n\t}],\n\t[\"@prisma/orm-extension-postgis\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-postgis\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/postgis\",\n\t\t\tname: \"@internal/extension-postgis\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-pgvector\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-pgvector\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/pgvector\",\n\t\t\tname: \"@internal/extension-pgvector\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-paradedb\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-paradedb\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/paradedb\",\n\t\t\tname: \"@internal/extension-paradedb\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-supabase\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-supabase\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/supabase\",\n\t\t\tname: \"@internal/extension-supabase\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-arktype-json\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-arktype-json\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/arktype-json\",\n\t\t\tname: \"@internal/extension-arktype-json\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-middleware-cache\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-middleware-cache\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/middleware-cache\",\n\t\t\tname: \"@internal/middleware-cache\",\n\t\t\tentry: \"\"\n\t\t}]\n\t}]\n]);\n/** Export subpaths that never ship in a shell (test-only surfaces). */\nconst excludedSubpaths = [/^\\.\\/test(\\/|$)/];\n//#endregion\nexport { excludedSubpaths, publicShells };\n\n//# sourceMappingURL=shells.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,0BAA0B;CAC/B;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;EACP,UAAU;GACT;GACA;GACA;GACA;GACA;EACD;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAS,gBAAgB,SAAS;CACjC,OAAO;EACN,GAAG;EACH;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;GACP,MAAM;EACP;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;GACP,MAAM;GACN,GAAG,QAAQ,mBAAmB,KAAK,IAAI,CAAC,IAAI,EAAE,UAAU,QAAQ,eAAe;EAChF;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA,GAAG,QAAQ;CACZ;AACD;;;;;;;;;AASA,MAAM,sBAAsB;CAC3B;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;EACP,UAAU,CAAC,OAAO;CACnB;AACD;AACA,MAAM,+BAA+B,IAAI,IAAI;CAC5C,CAAC,yBAAyB;EACzB,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,yBAAyB;EACzB,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU;KACT;KACA;KACA;KACA;KACA;KACA;IACD;GACD;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,WAAW;GACZ;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;EACA,MAAM,CAAC,8CAA8C;CACtD,CAAC;CACD,CAAC,0BAA0B;EAC1B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU,CAAC,UAAU;GACtB;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU;KACT;KACA;KACA;KACA;IACD;GACD;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,4BAA4B;EAC5B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,+BAA+B;EAC/B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,6BAA6B;EAC7B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,4BAA4B;EAC5B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,wBAAwB;EACxB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,gBAAgB;IACf;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACD;GACA,SAAS;GACT,QAAQ;GACR,eAAe;EAChB,CAAC;CACF,CAAC;CACD,CAAC,sBAAsB;EACtB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,eAAe;EAChB,CAAC;CACF,CAAC;CACD,CAAC,qBAAqB;EACrB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,eAAe;IACd;KACC,SAAS;KACT,OAAO;IACR;IACA;KACC,SAAS;KACT,OAAO;IACR;IACA;KACC,SAAS;KACT,OAAO;IACR;IACA;KACC,SAAS;KACT,OAAO;IACR;GACD;EACD,CAAC;CACF,CAAC;CACD,CAAC,iCAAiC;EACjC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,kCAAkC;EAClC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,kCAAkC;EAClC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,kCAAkC;EAClC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,sCAAsC;EACtC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,0CAA0C;EAC1C,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;CACF,CAAC;AACF,CAAC;;AAED,MAAM,mBAAmB,CAAC,iBAAiB"}
1
+ {"version":3,"file":"shells-DQaV4Fdt.mjs","names":[],"sources":["../../../../0-shared/publish-surface/dist/shells.mjs"],"sourcesContent":["//#region src/shells.ts\n/**\n* Surfaces every facade republishes regardless of family.\n*\n* An application depends on one facade and nothing else (ADR 242), so\n* everything it reaches — hand-written and generated alike — has to have a\n* name under the facade. These are the target-agnostic ones: the contract and\n* component surfaces emitted files import, the shared helpers, and the Vite\n* plugin.\n*\n* Entry names follow the name the platform shell gives the same package, so\n* one internal package reads the same way wherever it is reached from.\n*\n* A republished package brings its whole subpath surface with it unless the\n* entry lists `subpaths`, so the cost of an entry is its export count, not\n* one. Nothing goes in here that no application reaches.\n*\n* `migration-tools` is listed by subpath rather than whole. An application\n* does reach it — a project that checks its own migrations are intact, or\n* that stages an extension's pinned contract-space artifacts before `db\n* init`, reads and writes the on-disk migration format, and under a\n* facade-only install there is no other published name for it. But it is a\n* 17-subpath tooling package whose remaining surface (the graph, the\n* pathfinder, ref resolution, the ledger) is the CLI's own working material,\n* and publishing that would freeze it. The five listed here are what the\n* repository's own consumers reach.\n*/\nconst COMMON_FACADE_REEXPORTS = [\n\t{\n\t\tpackage: \"@internal/contract\",\n\t\tentry: \"contract\"\n\t},\n\t{\n\t\tpackage: \"@internal/framework-components\",\n\t\tentry: \"components\"\n\t},\n\t{\n\t\tpackage: \"@internal/utils\",\n\t\tentry: \"utils\"\n\t},\n\t{\n\t\tpackage: \"@internal/vite-plugin-contract-emit\",\n\t\tentry: \"vite-plugin-contract-emit\"\n\t},\n\t{\n\t\tpackage: \"@internal/migration-tools\",\n\t\tentry: \"migration-tools\",\n\t\tsubpaths: [\n\t\t\t\"aggregate\",\n\t\t\t\"contract-snapshot-store\",\n\t\t\t\"hash\",\n\t\t\t\"io\",\n\t\t\t\"spaces\"\n\t\t]\n\t}\n];\n/**\n* The per-database part of a facade's republished surface.\n*\n* `family` is the family's contract package (`@internal/sql-contract` or\n* `@internal/mongo-contract`) and `familyPack` its control-plane and IR\n* pack; `target` and `adapter` carry the codec and operation types emitted\n* contracts reference; `runtime` is the family runtime an application drives\n* queries through.\n*\n* `family-contract` and `family-runtime` take a qualified name because the\n* facade's own `contract` and `runtime` are different modules. `target` and\n* `familyPack` forward subpaths only, so that a facade which publishes its own\n* `./target` or `./family` pack keeps that name for its own module; where a\n* facade publishes neither, the plain name simply stays free.\n*\n* `driver` is carried by every facade. A facade wires its own driver, so the\n* only code that names one is code driving the migration planner or runner\n* itself — which the SQL facades were assumed not to have, until the SQL\n* migration-planner harnesses turned out to need the driver's control\n* descriptor to build a control stack by hand. Two subpaths per facade.\n*\n* `targetSubpaths` limits the target forward where the target package exports\n* something the facade's own code imports but no application does.\n*/\nfunction facadeReexports(options) {\n\treturn [\n\t\t...COMMON_FACADE_REEXPORTS,\n\t\t{\n\t\t\tpackage: options.family,\n\t\t\tentry: \"family-contract\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.familyPack,\n\t\t\tentry: \"family\",\n\t\t\troot: false\n\t\t},\n\t\t{\n\t\t\tpackage: options.runtime,\n\t\t\tentry: \"family-runtime\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.target,\n\t\t\tentry: \"target\",\n\t\t\troot: false,\n\t\t\t...options.targetSubpaths === void 0 ? {} : { subpaths: options.targetSubpaths }\n\t\t},\n\t\t{\n\t\t\tpackage: options.adapter,\n\t\t\tentry: \"adapter\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.driver,\n\t\t\tentry: \"driver\"\n\t\t},\n\t\t...options.queryBuilders\n\t];\n}\n/**\n* The SQL family's query surfaces, republished by both SQL facades.\n*\n* `schema-ir` carries one subpath. Code that authors a migration by hand, or\n* drives the planner itself, names `SqlSchemaIR` — it is the schema shape the\n* planner takes and returns. The package's other two subpaths are the IR's\n* construction and naming internals, which publishing would freeze.\n*/\nconst SQL_QUERY_REEXPORTS = [\n\t{\n\t\tpackage: \"@internal/sql-orm-client\",\n\t\tentry: \"orm-client\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-builder\",\n\t\tentry: \"builder\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-relational-core\",\n\t\tentry: \"relational-core\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-schema-ir\",\n\t\tentry: \"schema-ir\",\n\t\tsubpaths: [\"types\"]\n\t}\n];\nconst publicShells = /* @__PURE__ */ new Map([\n\t[\"@prisma/orm-framework\", {\n\t\tdir: \"packages/9-public/@prisma/orm-framework\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/0-foundation/contract\",\n\t\t\t\tname: \"@internal/contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/0-foundation/utils\",\n\t\t\t\tname: \"@internal/utils\",\n\t\t\t\tentry: \"utils\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/config\",\n\t\t\t\tname: \"@internal/config\",\n\t\t\t\tentry: \"config\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/errors\",\n\t\t\t\tname: \"@internal/errors\",\n\t\t\t\tentry: \"errors\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/framework-components\",\n\t\t\t\tname: \"@internal/framework-components\",\n\t\t\t\tentry: \"components\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/operations\",\n\t\t\t\tname: \"@internal/operations\",\n\t\t\t\tentry: \"operations\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/ts-render\",\n\t\t\t\tname: \"@internal/ts-render\",\n\t\t\t\tentry: \"ts-render\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/contract\",\n\t\t\t\tname: \"@internal/contract-authoring\",\n\t\t\t\tentry: \"contract-authoring\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/ids\",\n\t\t\t\tname: \"@internal/ids\",\n\t\t\t\tentry: \"ids\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/psl-parser\",\n\t\t\t\tname: \"@internal/psl-parser\",\n\t\t\t\tentry: \"psl-parser\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/psl-printer\",\n\t\t\t\tname: \"@internal/psl-printer\",\n\t\t\t\tentry: \"psl-printer\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-toolchain\", {\n\t\tdir: \"packages/9-public/@prisma/orm-toolchain\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/cli\",\n\t\t\t\tname: \"@internal/cli\",\n\t\t\t\tentry: \"cli\",\n\t\t\t\tsubpaths: [\n\t\t\t\t\t\".\",\n\t\t\t\t\t\"migration-cli\",\n\t\t\t\t\t\"control-api\",\n\t\t\t\t\t\"control-api/testing\",\n\t\t\t\t\t\"config-types\",\n\t\t\t\t\t\"init-output\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/cli-telemetry\",\n\t\t\t\tname: \"@internal/cli-telemetry\",\n\t\t\t\tentry: \"cli-telemetry\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/config-loader\",\n\t\t\t\tname: \"@internal/config-loader\",\n\t\t\t\tentry: \"config-loader\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/emitter\",\n\t\t\t\tentry: \"emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/language-server\",\n\t\t\t\tname: \"@internal/language-server\",\n\t\t\t\tentry: \"language-server\",\n\t\t\t\tpublished: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/migration\",\n\t\t\t\tname: \"@internal/migration-tools\",\n\t\t\t\tentry: \"migration-tools\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/vite-plugin-contract-emit\",\n\t\t\t\tname: \"@internal/vite-plugin-contract-emit\",\n\t\t\t\tentry: \"vite-plugin-contract-emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/0-shared/publish-surface\",\n\t\t\t\tname: \"@internal/publish-surface\",\n\t\t\t\tentry: \"publish-surface\"\n\t\t\t}\n\t\t],\n\t\tcopy: [\"packages/1-framework/3-tooling/cli/dist/*.md\"]\n\t}],\n\t[\"@prisma/orm-family-sql\", {\n\t\tdir: \"packages/9-public/@prisma/orm-family-sql\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/contract\",\n\t\t\t\tname: \"@internal/sql-contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/errors\",\n\t\t\t\tname: \"@internal/sql-errors\",\n\t\t\t\tentry: \"errors\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/operations\",\n\t\t\t\tname: \"@internal/sql-operations\",\n\t\t\t\tentry: \"operations\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/schema-ir\",\n\t\t\t\tname: \"@internal/sql-schema-ir\",\n\t\t\t\tentry: \"schema-ir\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-prisma7\",\n\t\t\t\tname: \"@internal/sql-contract-prisma7\",\n\t\t\t\tentry: \"contract-prisma7\",\n\t\t\t\tsubpaths: [\"provider\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-psl\",\n\t\t\t\tname: \"@internal/sql-contract-psl\",\n\t\t\t\tentry: \"contract-psl\",\n\t\t\t\tsubpaths: [\n\t\t\t\t\t\".\",\n\t\t\t\t\t\"attribute-specs\",\n\t\t\t\t\t\"default-table-name\",\n\t\t\t\t\t\"provider\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-ts\",\n\t\t\t\tname: \"@internal/sql-contract-ts\",\n\t\t\t\tentry: \"contract-ts\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/sql-contract-emitter\",\n\t\t\t\tentry: \"contract-emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/relational-core\",\n\t\t\t\tname: \"@internal/sql-relational-core\",\n\t\t\t\tentry: \"relational-core\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/sql-builder\",\n\t\t\t\tname: \"@internal/sql-builder\",\n\t\t\t\tentry: \"builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/5-runtime\",\n\t\t\t\tname: \"@internal/sql-runtime\",\n\t\t\t\tentry: \"runtime\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/9-family\",\n\t\t\t\tname: \"@internal/family-sql\",\n\t\t\t\tentry: \"family\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-extensions/sql-orm-client\",\n\t\t\t\tname: \"@internal/sql-orm-client\",\n\t\t\t\tentry: \"orm-client\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-family-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-family-mongo\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-codec\",\n\t\t\t\tname: \"@internal/mongo-codec\",\n\t\t\t\tentry: \"codec\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-contract\",\n\t\t\t\tname: \"@internal/mongo-contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-value\",\n\t\t\t\tname: \"@internal/mongo-value\",\n\t\t\t\tentry: \"value\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/2-authoring/contract-psl\",\n\t\t\t\tname: \"@internal/mongo-contract-psl\",\n\t\t\t\tentry: \"contract-psl\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/2-authoring/contract-ts\",\n\t\t\t\tname: \"@internal/mongo-contract-ts\",\n\t\t\t\tentry: \"contract-ts\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/mongo-emitter\",\n\t\t\t\tentry: \"emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/3-tooling/mongo-schema-ir\",\n\t\t\t\tname: \"@internal/mongo-schema-ir\",\n\t\t\t\tentry: \"schema-ir\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/4-query/query-ast\",\n\t\t\t\tname: \"@internal/mongo-query-ast\",\n\t\t\t\tentry: \"query-ast\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/5-query-builders/orm\",\n\t\t\t\tname: \"@internal/mongo-orm\",\n\t\t\t\tentry: \"orm\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/5-query-builders/query-builder\",\n\t\t\t\tname: \"@internal/mongo-query-builder\",\n\t\t\t\tentry: \"query-builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/6-transport/mongo-lowering\",\n\t\t\t\tname: \"@internal/mongo-lowering\",\n\t\t\t\tentry: \"lowering\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/6-transport/mongo-wire\",\n\t\t\t\tname: \"@internal/mongo-wire\",\n\t\t\t\tentry: \"wire\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/7-runtime\",\n\t\t\t\tname: \"@internal/mongo-runtime\",\n\t\t\t\tentry: \"runtime\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/9-family\",\n\t\t\t\tname: \"@internal/family-mongo\",\n\t\t\t\tentry: \"family\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-postgres\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-postgres\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/3-targets/postgres\",\n\t\t\t\tname: \"@internal/target-postgres\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/6-adapters/postgres\",\n\t\t\t\tname: \"@internal/adapter-postgres\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/7-drivers/postgres\",\n\t\t\t\tname: \"@internal/driver-postgres\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-sqlite\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-sqlite\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/3-targets/sqlite\",\n\t\t\t\tname: \"@internal/target-sqlite\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/6-adapters/sqlite\",\n\t\t\t\tname: \"@internal/adapter-sqlite\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/7-drivers/sqlite\",\n\t\t\t\tname: \"@internal/driver-sqlite\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-mongo\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/1-mongo-target\",\n\t\t\t\tname: \"@internal/target-mongo\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/2-mongo-adapter\",\n\t\t\t\tname: \"@internal/adapter-mongo\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/3-mongo-driver\",\n\t\t\t\tname: \"@internal/driver-mongo\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-postgres\", {\n\t\tdir: \"packages/9-public/@prisma/orm-postgres\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/postgres\",\n\t\t\tname: \"@internal/postgres\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/sql-contract\",\n\t\t\tfamilyPack: \"@internal/family-sql\",\n\t\t\truntime: \"@internal/sql-runtime\",\n\t\t\ttarget: \"@internal/target-postgres\",\n\t\t\ttargetSubpaths: [\n\t\t\t\t\"aggregates\",\n\t\t\t\t\"codec-descriptor\",\n\t\t\t\t\"codec-ids\",\n\t\t\t\t\"codec-types\",\n\t\t\t\t\"codecs\",\n\t\t\t\t\"contract-free\",\n\t\t\t\t\"control\",\n\t\t\t\t\"data-transform\",\n\t\t\t\t\"data-types\",\n\t\t\t\t\"ddl\",\n\t\t\t\t\"default-normalizer\",\n\t\t\t\t\"diff-database-schema\",\n\t\t\t\t\"errors\",\n\t\t\t\t\"full-text\",\n\t\t\t\t\"issue-planner\",\n\t\t\t\t\"migration\",\n\t\t\t\t\"native-type-normalizer\",\n\t\t\t\t\"op-factory-call\",\n\t\t\t\t\"operation-types\",\n\t\t\t\t\"pack\",\n\t\t\t\t\"planner\",\n\t\t\t\t\"planner-ddl-builders\",\n\t\t\t\t\"planner-identity-values\",\n\t\t\t\t\"planner-produced-postgres-migration\",\n\t\t\t\t\"planner-schema-lookup\",\n\t\t\t\t\"planner-sql-checks\",\n\t\t\t\t\"planner-target-details\",\n\t\t\t\t\"render-ops\",\n\t\t\t\t\"render-typescript\",\n\t\t\t\t\"rls-canonicalize\",\n\t\t\t\t\"runtime\",\n\t\t\t\t\"schema-ir-annotations\",\n\t\t\t\t\"sql-utils\",\n\t\t\t\t\"types\"\n\t\t\t],\n\t\t\tadapter: \"@internal/adapter-postgres\",\n\t\t\tdriver: \"@internal/driver-postgres\",\n\t\t\tqueryBuilders: SQL_QUERY_REEXPORTS\n\t\t})\n\t}],\n\t[\"@prisma/orm-sqlite\", {\n\t\tdir: \"packages/9-public/@prisma/orm-sqlite\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/sqlite\",\n\t\t\tname: \"@internal/sqlite\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/sql-contract\",\n\t\t\tfamilyPack: \"@internal/family-sql\",\n\t\t\truntime: \"@internal/sql-runtime\",\n\t\t\ttarget: \"@internal/target-sqlite\",\n\t\t\tadapter: \"@internal/adapter-sqlite\",\n\t\t\tdriver: \"@internal/driver-sqlite\",\n\t\t\tqueryBuilders: SQL_QUERY_REEXPORTS\n\t\t})\n\t}],\n\t[\"@prisma/orm-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-mongo\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/mongo\",\n\t\t\tname: \"@internal/mongo\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/mongo-contract\",\n\t\t\tfamilyPack: \"@internal/family-mongo\",\n\t\t\truntime: \"@internal/mongo-runtime\",\n\t\t\ttarget: \"@internal/target-mongo\",\n\t\t\tadapter: \"@internal/adapter-mongo\",\n\t\t\tdriver: \"@internal/driver-mongo\",\n\t\t\tqueryBuilders: [\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-orm\",\n\t\t\t\t\tentry: \"orm\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-query-builder\",\n\t\t\t\t\tentry: \"query-builder\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-query-ast\",\n\t\t\t\t\tentry: \"query-ast\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-value\",\n\t\t\t\t\tentry: \"value\"\n\t\t\t\t}\n\t\t\t]\n\t\t})\n\t}],\n\t[\"@prisma/orm-extension-postgis\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-postgis\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/postgis\",\n\t\t\tname: \"@internal/extension-postgis\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-pgvector\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-pgvector\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/pgvector\",\n\t\t\tname: \"@internal/extension-pgvector\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-paradedb\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-paradedb\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/paradedb\",\n\t\t\tname: \"@internal/extension-paradedb\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-supabase\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-supabase\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/supabase\",\n\t\t\tname: \"@internal/extension-supabase\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-arktype-json\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-arktype-json\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/arktype-json\",\n\t\t\tname: \"@internal/extension-arktype-json\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-middleware-cache\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-middleware-cache\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/middleware-cache\",\n\t\t\tname: \"@internal/middleware-cache\",\n\t\t\tentry: \"\"\n\t\t}]\n\t}]\n]);\n/** Export subpaths that never ship in a shell (test-only surfaces). */\nconst excludedSubpaths = [/^\\.\\/test(\\/|$)/];\n//#endregion\nexport { excludedSubpaths, publicShells };\n\n//# sourceMappingURL=shells.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,0BAA0B;CAC/B;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;EACP,UAAU;GACT;GACA;GACA;GACA;GACA;EACD;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAS,gBAAgB,SAAS;CACjC,OAAO;EACN,GAAG;EACH;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;GACP,MAAM;EACP;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;GACP,MAAM;GACN,GAAG,QAAQ,mBAAmB,KAAK,IAAI,CAAC,IAAI,EAAE,UAAU,QAAQ,eAAe;EAChF;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA,GAAG,QAAQ;CACZ;AACD;;;;;;;;;AASA,MAAM,sBAAsB;CAC3B;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;EACP,UAAU,CAAC,OAAO;CACnB;AACD;AACA,MAAM,+BAA+B,IAAI,IAAI;CAC5C,CAAC,yBAAyB;EACzB,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,yBAAyB;EACzB,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU;KACT;KACA;KACA;KACA;KACA;KACA;IACD;GACD;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,WAAW;GACZ;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;EACA,MAAM,CAAC,8CAA8C;CACtD,CAAC;CACD,CAAC,0BAA0B;EAC1B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU,CAAC,UAAU;GACtB;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU;KACT;KACA;KACA;KACA;IACD;GACD;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,4BAA4B;EAC5B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,+BAA+B;EAC/B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,6BAA6B;EAC7B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,4BAA4B;EAC5B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,wBAAwB;EACxB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,gBAAgB;IACf;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACD;GACA,SAAS;GACT,QAAQ;GACR,eAAe;EAChB,CAAC;CACF,CAAC;CACD,CAAC,sBAAsB;EACtB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,eAAe;EAChB,CAAC;CACF,CAAC;CACD,CAAC,qBAAqB;EACrB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,eAAe;IACd;KACC,SAAS;KACT,OAAO;IACR;IACA;KACC,SAAS;KACT,OAAO;IACR;IACA;KACC,SAAS;KACT,OAAO;IACR;IACA;KACC,SAAS;KACT,OAAO;IACR;GACD;EACD,CAAC;CACF,CAAC;CACD,CAAC,iCAAiC;EACjC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,kCAAkC;EAClC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,kCAAkC;EAClC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,kCAAkC;EAClC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,sCAAsC;EACtC,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,0CAA0C;EAC1C,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;CACF,CAAC;AACF,CAAC;;AAED,MAAM,mBAAmB,CAAC,iBAAiB"}
@@ -1,6 +1,6 @@
1
1
  import { r as getEmittedArtifactPaths } from "./exports-DI1kMms6--e9LdT9A.mjs";
2
- import { V as executeContractEmit, _ as disposeEmitQueue } from "./ref-g7LrevBG-DgO9ywms.mjs";
3
- import { a as loadConfigForSections } from "./exports-DJ4RhlW4.mjs";
2
+ import { V as executeContractEmit, _ as disposeEmitQueue } from "./ref-DL4C2p9T-B6EVNIhl.mjs";
3
+ import { s as loadConfigForSections } from "./exports-ClG6amXs.mjs";
4
4
  import { extname, resolve } from "pathe";
5
5
  //#region ../../../1-framework/3-tooling/vite-plugin-contract-emit/dist/index.mjs
6
6
  const PLUGIN_NAME = "prisma-vite-plugin-contract-emit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-toolchain",
3
- "version": "8.0.0-rc.11-dev.51",
3
+ "version": "8.0.0-rc.11-dev.53",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@prisma/orm-framework": "8.0.0-rc.11-dev.51",
12
+ "@prisma/orm-framework": "8.0.0-rc.11-dev.53",
13
13
  "@vercel/detect-agent": "^1.2.4",
14
14
  "arktype": "^2.2.2",
15
15
  "c12": "^3.3.4",
@@ -29,16 +29,16 @@
29
29
  "wrap-ansi": "^10.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@internal/cli": "8.0.0-rc.11-dev.51",
33
- "@internal/cli-telemetry": "8.0.0-rc.11-dev.51",
34
- "@internal/config-loader": "8.0.0-rc.11-dev.51",
35
- "@internal/emitter": "8.0.0-rc.11-dev.51",
36
- "@internal/language-server": "8.0.0-rc.11-dev.51",
37
- "@internal/migration-tools": "8.0.0-rc.11-dev.51",
38
- "@internal/publish-surface": "8.0.0-rc.11-dev.51",
39
- "@repo/tsconfig": "8.0.0-rc.11-dev.51",
40
- "@repo/tsdown": "8.0.0-rc.11-dev.51",
41
- "@internal/vite-plugin-contract-emit": "8.0.0-rc.11-dev.51",
32
+ "@internal/cli": "8.0.0-rc.11-dev.53",
33
+ "@internal/cli-telemetry": "8.0.0-rc.11-dev.53",
34
+ "@internal/config-loader": "8.0.0-rc.11-dev.53",
35
+ "@internal/emitter": "8.0.0-rc.11-dev.53",
36
+ "@internal/language-server": "8.0.0-rc.11-dev.53",
37
+ "@internal/migration-tools": "8.0.0-rc.11-dev.53",
38
+ "@internal/publish-surface": "8.0.0-rc.11-dev.53",
39
+ "@repo/tsconfig": "8.0.0-rc.11-dev.53",
40
+ "@repo/tsdown": "8.0.0-rc.11-dev.53",
41
+ "@internal/vite-plugin-contract-emit": "8.0.0-rc.11-dev.53",
42
42
  "tsdown": "0.22.14",
43
43
  "typescript": "5.9.3"
44
44
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"exports-DJ4RhlW4.mjs","names":[],"sources":["../../../../1-framework/3-tooling/config-loader/dist/exports/index.mjs"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { normalizeContractConfig } from \"@internal/config/config-types\";\nimport { dirname, join, resolve } from \"pathe\";\nimport { realpathSync } from \"node:fs\";\nimport { access } from \"node:fs/promises\";\nimport { pathToFileURL } from \"node:url\";\nimport { collectConfigIssues } from \"@internal/config/config-validation\";\nimport { getEmittedArtifactPaths } from \"@internal/emitter\";\nimport { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing } from \"@internal/errors/control\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\n//#region src/finalize-config.ts\nfunction finalizeContractSource(source, configDir) {\n\tconst resolvedInputs = source.inputs?.map((input) => resolve(configDir, input));\n\tif (resolvedInputs === void 0) return source;\n\treturn {\n\t\t...source,\n\t\tinputs: resolvedInputs\n\t};\n}\n/** Normalizes a contract section and resolves its paths against `configDir`. */\nfunction finalizeContractConfig(contract, configDir) {\n\tconst normalized = normalizeContractConfig(contract);\n\treturn {\n\t\t...normalized,\n\t\tsource: finalizeContractSource(normalized.source, configDir),\n\t\toutput: resolve(configDir, normalized.output)\n\t};\n}\nconst DEFAULT_MIGRATIONS_DIR = \"migrations\";\n/**\n* Resolves the migrations directory against `configDir`, which is what `migrations.dir` is\n* documented to be relative to. The default is applied here too, so no caller re-derives it\n* against a different base — a command run from one directory with `--config` naming a project in\n* another would otherwise read the wrong `migrations/`.\n*/\nfunction finalizeMigrationsConfig(migrations, configDir) {\n\treturn {\n\t\t...migrations,\n\t\tdir: resolve(configDir, migrations?.dir ?? DEFAULT_MIGRATIONS_DIR)\n\t};\n}\nfunction finalizeConfig(config, configDir) {\n\treturn {\n\t\t...config,\n\t\t...config.contract ? { contract: finalizeContractConfig(config.contract, configDir) } : void 0,\n\t\tmigrations: finalizeMigrationsConfig(config.migrations, configDir)\n\t};\n}\n//#endregion\n//#region src/load.ts\nconst CONFIG_FILENAME = \"prisma.config.ts\";\nasync function findNearestConfigPathForFile(filePath) {\n\tlet current = dirname(resolve(process.cwd(), filePath));\n\twhile (true) {\n\t\tconst candidate = join(current, CONFIG_FILENAME);\n\t\tif (await fileExists(candidate)) return candidate;\n\t\tconst parent = dirname(current);\n\t\tif (parent === current) return;\n\t\tcurrent = parent;\n\t}\n}\nasync function fileExists(path) {\n\ttry {\n\t\tawait access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction isRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction collectArtifactCollisionDiagnostics(contract) {\n\tconst inputs = contract.source.inputs;\n\tconst output = contract.output;\n\tif (inputs === void 0 || output === void 0) return [];\n\tlet emittedArtifactPaths;\n\ttry {\n\t\temittedArtifactPaths = getEmittedArtifactPaths(output);\n\t} catch (error) {\n\t\treturn [errorConfigValidation(\"contract.output\", {\n\t\t\t/* v8 ignore next -- getEmittedArtifactPaths only ever throws an Error */\n\t\t\twhy: error instanceof Error ? error.message : String(error),\n\t\t\tsection: \"contract\"\n\t\t})];\n\t}\n\tconst emittedPaths = /* @__PURE__ */ new Set([emittedArtifactPaths.jsonPath, emittedArtifactPaths.dtsPath]);\n\tif (inputs.some((input) => emittedPaths.has(input))) return [errorConfigValidation(\"contract.source.inputs[]\", {\n\t\twhy: \"Config.contract.source.inputs must not include emitted artifact paths derived from contract.output\",\n\t\tsection: \"contract\"\n\t})];\n\treturn [];\n}\nfunction buildLoadedConfig(rawConfig, configDir) {\n\tconst issues = collectConfigIssues(rawConfig);\n\tconst diagnostics = issues.map((issue) => errorConfigValidation(issue.field, {\n\t\twhy: issue.message,\n\t\tsection: issue.section\n\t}));\n\tconst raw = blindCast(rawConfig);\n\tconst config = issues.some((issue) => issue.section === \"migrations\") ? raw : {\n\t\t...raw,\n\t\tmigrations: finalizeMigrationsConfig(raw.migrations, configDir)\n\t};\n\tif (config.contract === void 0 || issues.some((issue) => issue.section === \"contract\")) return {\n\t\tconfig,\n\t\tdiagnostics\n\t};\n\tconst contract = finalizeContractConfig(config.contract, configDir);\n\tdiagnostics.push(...collectArtifactCollisionDiagnostics(contract));\n\treturn {\n\t\tconfig: {\n\t\t\t...config,\n\t\t\tcontract\n\t\t},\n\t\tdiagnostics\n\t};\n}\nfunction toConfigLoadFailure(error, configPath) {\n\tif (CliStructuredError.is(error)) return error;\n\tconst resolvedPath = configPath ? resolve(process.cwd(), configPath) : void 0;\n\tif (isStructuredError(error)) return new CliStructuredError(error.code, error.message, {\n\t\t...ifDefined(\"why\", error.why),\n\t\t...ifDefined(\"fix\", error.fix),\n\t\t...ifDefined(\"where\", error.where),\n\t\t...ifDefined(\"meta\", error.meta),\n\t\tcause: error\n\t});\n\tif (error instanceof Error) return errorConfigEvaluationFailed(resolvedPath, {\n\t\twhy: error.message,\n\t\tcause: error\n\t});\n\treturn errorConfigEvaluationFailed(resolvedPath, { why: String(error) });\n}\n/**\n* Loads and finalizes the Prisma 8 config.\n*\n* Failures that prevent evaluation entirely — missing file, module that does\n* not evaluate (`CONFIG.FILE_NOT_FOUND`, `CONFIG.EVALUATION_FAILED`) — are the\n* `Result` failure. Structural problems inside an evaluated config do not\n* fail the load: they are returned as section-tagged diagnostics so commands\n* fail only on the sections they read (via {@link requireConfigSections}).\n*/\n/**\n* c12 is resolved to its real on-disk entry before importing: jiti (inside\n* c12) resolves its own transitive imports from the importing file's location,\n* and a symlinked install (pnpm) would otherwise anchor them somewhere the\n* packages are not. Importing at the real location keeps every transitive\n* resolution working.\n*/\nasync function importC12() {\n\treturn await import(pathToFileURL(realpathSync(createRequire(import.meta.url).resolve(\"c12\"))).href);\n}\nasync function loadConfig(configPath, options) {\n\tconst cwd = options?.cwd ?? process.cwd();\n\tconst resolvedConfigPath = configPath ? resolve(cwd, configPath) : void 0;\n\tconst configCwd = resolvedConfigPath ? dirname(resolvedConfigPath) : cwd;\n\tlet result;\n\ttry {\n\t\tresult = await (await importC12()).loadConfig({\n\t\t\tname: \"prisma\",\n\t\t\t...ifDefined(\"configFile\", resolvedConfigPath),\n\t\t\tcwd: configCwd\n\t\t});\n\t} catch (error) {\n\t\treturn notOk(toConfigLoadFailure(error, configPath));\n\t}\n\tif (resolvedConfigPath && result.configFile !== resolvedConfigPath) return notOk(errorConfigFileNotFound(resolvedConfigPath));\n\tif (!result.config || Object.keys(result.config).length === 0) return notOk(errorConfigFileNotFound(result.configFile || resolvedConfigPath || configPath));\n\t/* v8 ignore next -- @preserve */\n\tconst loadedConfigDir = result.configFile ? dirname(result.configFile) : configCwd;\n\t/* v8 ignore next -- c12 always returns layers for a config it evaluated */\n\tconst [requestedLayer] = result.layers ?? [];\n\tconst layerConfig = requestedLayer?.config;\n\tconst engineMarker = isRecord(layerConfig) ? layerConfig[\"$prismaConfig\"] : void 0;\n\tif (engineMarker !== void 0) {\n\t\tif (engineMarker !== 1)\n /* v8 ignore next -- a config that evaluated always carries its resolved path */\n\t\treturn notOk(errorConfigVersionMarkerMissing(result.configFile ?? resolvedConfigPath));\n\t\tconst orm = result.config[\"orm\"];\n\t\tif (orm !== void 0 && !isRecord(orm)) return ok({\n\t\t\tconfig: buildLoadedConfig({}, loadedConfigDir).config,\n\t\t\tdiagnostics: [errorConfigValidation(\"orm\", { why: `The orm section of ${CONFIG_FILENAME} must be an object` })]\n\t\t});\n\t\treturn ok(buildLoadedConfig(orm ?? {}, loadedConfigDir));\n\t}\n\t/* v8 ignore next -- a config that evaluated always carries its resolved path */\n\treturn notOk(errorConfigVersionMarkerMissing(result.configFile ?? resolvedConfigPath));\n}\n/**\n* Narrows a {@link LoadedConfig} to the sections a command reads. Fails with\n* the first diagnostic concerning a required section; diagnostics on other\n* sections are ignored so unrelated commands keep working.\n*/\nfunction requireConfigSections(loaded, sections) {\n\tconst blocking = loaded.diagnostics.find((diagnostic) => {\n\t\tconst section = diagnostic.meta?.[\"section\"];\n\t\treturn typeof section !== \"string\" || sections.some((required) => required === section);\n\t});\n\treturn blocking ? notOk(blocking) : ok(loaded.config);\n}\n/**\n* Convenience composition of {@link loadConfig} and\n* {@link requireConfigSections} for commands that read a fixed set of\n* sections and have no use for diagnostics outside them.\n*/\nasync function loadConfigForSections(configPath, sections) {\n\tconst loaded = await loadConfig(configPath);\n\tif (!loaded.ok) return loaded;\n\treturn requireConfigSections(loaded.value, sections);\n}\nasync function loadConfigForFile(filePath) {\n\tconst configPath = await findNearestConfigPathForFile(filePath);\n\tif (configPath === void 0) return notOk(errorConfigFileNotFound(join(dirname(resolve(process.cwd(), filePath)), CONFIG_FILENAME)));\n\treturn loadConfig(configPath);\n}\n//#endregion\nexport { finalizeConfig, findNearestConfigPathForFile, loadConfig, loadConfigForFile, loadConfigForSections, requireConfigSections };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-u5RdrumF.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/config-loader/dist/exports/index.d.mts"],"mappings":";;;;;;iBAKiB,eAAe,QAAQ,kBAAoB,oBAAoB;;;;;;;;;;UAUtE;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,6BAA6B,mBAAmB;iBAChD,WAAW,qBAAqB;WACtC;IACP,QAAQ,OAAO,cAAc;;;;;;iBAMhB,sBAAsB,QAAQ,cAAc,mBAAmB,kBAAkB,OAAO,kBAAoB;;;;;;iBAM5G,sBAAsB,gCAAgC,mBAAmB,kBAAkB,QAAQ,OAAO,kBAAoB;iBAC9H,kBAAkB,mBAAmB,QAAQ,OAAO,cAAc"}
@@ -1,77 +0,0 @@
1
- import { type } from "arktype";
2
- //#region ../../../1-framework/3-tooling/cli/dist/output-D83nTTpC.mjs
3
- /**
4
- * arktype schema for the structured success document `init --json` writes
5
- * to stdout (FR1.5). The same shape backs the human-readable outro
6
- * renderer (FR10), so the two output modes carry identical information.
7
- *
8
- * `target` is normalised to the user-facing flag value (`mongodb` rather
9
- * than the internal `mongo`) so consumers can round-trip the document
10
- * straight into a follow-up `--target` invocation.
11
- *
12
- * The `ok: true` literal is the documented success/error discriminator —
13
- * see [Style Guide § JSON Semantics](../../../../../../../docs/CLI%20Style%20Guide.md#json-semantics).
14
- * Error envelopes (`CliErrorEnvelope`) carry `ok: false` so consumers can
15
- * branch with `if (doc.ok)` without inspecting the rest of the structure.
16
- */
17
- const InitOutputSchema = type({
18
- ok: "true",
19
- target: "'postgres'|'mongodb'",
20
- authoring: "'psl'|'typescript'",
21
- schemaPath: "string",
22
- filesWritten: "string[]",
23
- /**
24
- * FR9.1 — paths removed from disk during this run: contract artifacts
25
- * (`contract.json`, `contract.d.ts`, `ops.json`, `migration.json`) an
26
- * earlier run left behind, which only a re-init has, and the retired
27
- * agent-skill directories, which every run removes when it finds them.
28
- */
29
- filesDeleted: "string[]",
30
- /**
31
- * What became of the dependency install. `skipped` is the deliberate
32
- * `--skip-install`; `failed` is an install that ran and did not succeed,
33
- * which leaves a scaffolded project that cannot run yet. `deps` and
34
- * `devDeps` list what was installed, so both non-`installed` states
35
- * carry them empty.
36
- */
37
- packagesInstalled: {
38
- status: "'installed'|'skipped'|'failed'",
39
- deps: "string[]",
40
- devDeps: "string[]"
41
- },
42
- contractEmitted: "boolean",
43
- nextSteps: "string[]",
44
- warnings: "string[]"
45
- });
46
- /**
47
- * Builds the `nextSteps` array from the resolved scaffold state. Steps are
48
- * ordered by the workflow a user needs to follow: install what is missing →
49
- * configure connection → (emit if not yet done) → run a starter query →
50
- * docs / agent skill.
51
- *
52
- * The strings are stable and human-readable; agents wanting to act on them
53
- * should match on substrings (e.g. "DATABASE_URL") rather than exact text,
54
- * since copy may evolve.
55
- */
56
- function buildNextSteps(options) {
57
- const steps = [];
58
- let stepNumber = 1;
59
- const push = (text) => {
60
- steps.push(`${stepNumber}. ${text}`);
61
- stepNumber += 1;
62
- };
63
- if (options.packagesInstalled === "failed") push("Install the project dependencies with your package manager — the install this run attempted failed, so nothing else here will work yet.");
64
- if (options.packagesInstalled === "skipped") push("Install the project dependencies with your package manager (this run skipped them).");
65
- push("Set DATABASE_URL in your environment (export it or add it to .env).");
66
- if (!options.contractEmitted) {
67
- push(`Emit the contract: \`${options.emitCommand}\``);
68
- push(`Edit your schema at ${options.schemaPath}, then re-run the emit command.`);
69
- } else push(`Edit your schema at ${options.schemaPath}, then re-run \`${options.emitCommand}\`.`);
70
- push("Open prisma-8.md for a quick reference on how to write your first typed query.");
71
- push("Working with a coding agent? Run `prisma init` in this project to set up the Prisma agent skills.");
72
- return steps;
73
- }
74
- //#endregion
75
- export { buildNextSteps as n, InitOutputSchema as t };
76
-
77
- //# sourceMappingURL=output-D83nTTpC-XlvN30yS.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-D83nTTpC-XlvN30yS.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/output-D83nTTpC.mjs"],"sourcesContent":["import { type } from \"arktype\";\n//#region src/commands/init/output.ts\n/**\n* arktype schema for the structured success document `init --json` writes\n* to stdout (FR1.5). The same shape backs the human-readable outro\n* renderer (FR10), so the two output modes carry identical information.\n*\n* `target` is normalised to the user-facing flag value (`mongodb` rather\n* than the internal `mongo`) so consumers can round-trip the document\n* straight into a follow-up `--target` invocation.\n*\n* The `ok: true` literal is the documented success/error discriminator —\n* see [Style Guide § JSON Semantics](../../../../../../../docs/CLI%20Style%20Guide.md#json-semantics).\n* Error envelopes (`CliErrorEnvelope`) carry `ok: false` so consumers can\n* branch with `if (doc.ok)` without inspecting the rest of the structure.\n*/\nconst InitOutputSchema = type({\n\tok: \"true\",\n\ttarget: \"'postgres'|'mongodb'\",\n\tauthoring: \"'psl'|'typescript'\",\n\tschemaPath: \"string\",\n\tfilesWritten: \"string[]\",\n\t/**\n\t* FR9.1 — paths removed from disk during this run: contract artifacts\n\t* (`contract.json`, `contract.d.ts`, `ops.json`, `migration.json`) an\n\t* earlier run left behind, which only a re-init has, and the retired\n\t* agent-skill directories, which every run removes when it finds them.\n\t*/\n\tfilesDeleted: \"string[]\",\n\t/**\n\t* What became of the dependency install. `skipped` is the deliberate\n\t* `--skip-install`; `failed` is an install that ran and did not succeed,\n\t* which leaves a scaffolded project that cannot run yet. `deps` and\n\t* `devDeps` list what was installed, so both non-`installed` states\n\t* carry them empty.\n\t*/\n\tpackagesInstalled: {\n\t\tstatus: \"'installed'|'skipped'|'failed'\",\n\t\tdeps: \"string[]\",\n\t\tdevDeps: \"string[]\"\n\t},\n\tcontractEmitted: \"boolean\",\n\tnextSteps: \"string[]\",\n\twarnings: \"string[]\"\n});\n/**\n* Builds the `nextSteps` array from the resolved scaffold state. Steps are\n* ordered by the workflow a user needs to follow: install what is missing →\n* configure connection → (emit if not yet done) → run a starter query →\n* docs / agent skill.\n*\n* The strings are stable and human-readable; agents wanting to act on them\n* should match on substrings (e.g. \"DATABASE_URL\") rather than exact text,\n* since copy may evolve.\n*/\nfunction buildNextSteps(options) {\n\tconst steps = [];\n\tlet stepNumber = 1;\n\tconst push = (text) => {\n\t\tsteps.push(`${stepNumber}. ${text}`);\n\t\tstepNumber += 1;\n\t};\n\tif (options.packagesInstalled === \"failed\") push(\"Install the project dependencies with your package manager — the install this run attempted failed, so nothing else here will work yet.\");\n\tif (options.packagesInstalled === \"skipped\") push(\"Install the project dependencies with your package manager (this run skipped them).\");\n\tpush(\"Set DATABASE_URL in your environment (export it or add it to .env).\");\n\tif (!options.contractEmitted) {\n\t\tpush(`Emit the contract: \\`${options.emitCommand}\\``);\n\t\tpush(`Edit your schema at ${options.schemaPath}, then re-run the emit command.`);\n\t} else push(`Edit your schema at ${options.schemaPath}, then re-run \\`${options.emitCommand}\\`.`);\n\tpush(\"Open prisma-8.md for a quick reference on how to write your first typed query.\");\n\tpush(\"Working with a coding agent? Run `prisma init` in this project to set up the Prisma agent skills.\");\n\treturn steps;\n}\n//#endregion\nexport { buildNextSteps as n, InitOutputSchema as t };\n\n//# sourceMappingURL=output-D83nTTpC.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAM,mBAAmB,KAAK;CAC7B,IAAI;CACJ,QAAQ;CACR,WAAW;CACX,YAAY;CACZ,cAAc;;;;;;;CAOd,cAAc;;;;;;;;CAQd,mBAAmB;EAClB,QAAQ;EACR,MAAM;EACN,SAAS;CACV;CACA,iBAAiB;CACjB,WAAW;CACX,UAAU;AACX,CAAC;;;;;;;;;;;AAWD,SAAS,eAAe,SAAS;CAChC,MAAM,QAAQ,CAAC;CACf,IAAI,aAAa;CACjB,MAAM,QAAQ,SAAS;EACtB,MAAM,KAAK,GAAG,WAAW,IAAI,MAAM;EACnC,cAAc;CACf;CACA,IAAI,QAAQ,sBAAsB,UAAU,KAAK,yIAAyI;CAC1L,IAAI,QAAQ,sBAAsB,WAAW,KAAK,qFAAqF;CACvI,KAAK,qEAAqE;CAC1E,IAAI,CAAC,QAAQ,iBAAiB;EAC7B,KAAK,wBAAwB,QAAQ,YAAY,GAAG;EACpD,KAAK,uBAAuB,QAAQ,WAAW,gCAAgC;CAChF,OAAO,KAAK,uBAAuB,QAAQ,WAAW,kBAAkB,QAAQ,YAAY,IAAI;CAChG,KAAK,gFAAgF;CACrF,KAAK,mGAAmG;CACxG,OAAO;AACR"}