{"version":3,"file":"runtime.mjs","names":[],"sources":["../src/exports/runtime.ts"],"sourcesContent":["import type {\n  RuntimeTargetDescriptor,\n  RuntimeTargetInstance,\n} from '@prisma-next/framework-components/execution';\nimport { type MongoCodecRegistry, newMongoCodecRegistry } from '@prisma-next/mongo-codec';\nimport { mongoTargetDescriptorMeta } from '../core/descriptor-meta';\n\nexport interface MongoRuntimeTargetInstance extends RuntimeTargetInstance<'mongo', 'mongo'> {}\n\n/**\n * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor` from `@prisma-next/mongo-runtime`. The target package is a control-plane residence and must not pull the Mongo execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`\n * consumers narrow to at composition time.\n */\nconst mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<\n  'mongo',\n  'mongo',\n  MongoRuntimeTargetInstance\n> & {\n  readonly codecs: () => MongoCodecRegistry;\n} = {\n  ...mongoTargetDescriptorMeta,\n  // The target descriptor itself contributes no codecs — the standard set lives on the adapter descriptor (see `@prisma-next/adapter-mongo/runtime`).\n  codecs: () => newMongoCodecRegistry(),\n  create(): MongoRuntimeTargetInstance {\n    return {\n      familyId: 'mongo',\n      targetId: 'mongo',\n    };\n  },\n};\n\nexport default mongoRuntimeTargetDescriptor;\n"],"mappings":";;;;;;;AAaA,MAAM,+BAMF;CACF,GAAG;CAEH,cAAc,sBAAsB;CACpC,SAAqC;EACnC,OAAO;GACL,UAAU;GACV,UAAU;EACZ;CACF;AACF"}