@prisma/orm-framework 8.0.0-rc.24-dev.23 → 8.0.0-rc.24-dev.25

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 (48) hide show
  1. package/dist/{binder-CMy3WM5A-Dvz7iZ2w.d.mts → binder-CMy3WM5A-gjYNJqla.d.mts} +4 -4
  2. package/dist/{binder-CMy3WM5A-Dvz7iZ2w.d.mts.map → binder-CMy3WM5A-gjYNJqla.d.mts.map} +1 -1
  3. package/dist/components.d.mts +2 -2
  4. package/dist/components.mjs +2 -2
  5. package/dist/components__control.d.mts +2 -2
  6. package/dist/components__control.mjs +2 -2
  7. package/dist/{config-types-BkGoZZm6.d.mts → config-types-Ck3UXVIU.d.mts} +2 -2
  8. package/dist/{config-types-BkGoZZm6.d.mts.map → config-types-Ck3UXVIU.d.mts.map} +1 -1
  9. package/dist/config.d.mts +1 -1
  10. package/dist/config__config-types.d.mts +1 -1
  11. package/dist/contract-authoring.mjs +1 -1
  12. package/dist/{control-DzRwUDn-.mjs → control-B0KO727Y.mjs} +166 -2
  13. package/dist/control-B0KO727Y.mjs.map +1 -0
  14. package/dist/control-B0WmeKXX.d.mts +1 -0
  15. package/dist/{control-D1zV_XXw.d.mts → control-B3QHYJcv.d.mts} +142 -3
  16. package/dist/control-B3QHYJcv.d.mts.map +1 -0
  17. package/dist/{control-BeXOxtXA-DWrnvd6v.d.mts → control-BeXOxtXA-CoPQgVyR.d.mts} +2 -2
  18. package/dist/{control-BeXOxtXA-DWrnvd6v.d.mts.map → control-BeXOxtXA-CoPQgVyR.d.mts.map} +1 -1
  19. package/dist/{control-MllEQmML-7F84gYuT.mjs → control-MllEQmML-IlhSvGbE.mjs} +2 -2
  20. package/dist/{control-MllEQmML-7F84gYuT.mjs.map → control-MllEQmML-IlhSvGbE.mjs.map} +1 -1
  21. package/dist/errors.d.mts +5 -5
  22. package/dist/errors.mjs +4 -4
  23. package/dist/errors__control.d.mts +2 -2
  24. package/dist/errors__control.mjs +1 -1
  25. package/dist/errors__execution.d.mts +2 -2
  26. package/dist/errors__execution.mjs +2 -2
  27. package/dist/errors__migration.d.mts +1 -1
  28. package/dist/errors__migration.mjs +1 -1
  29. package/dist/{execution-Dv2tEKdY.mjs → execution-DE_55Rj3.mjs} +19 -3
  30. package/dist/execution-DE_55Rj3.mjs.map +1 -0
  31. package/dist/{execution-C0jDSNao.d.mts → execution-DLAnWNAh.d.mts} +12 -3
  32. package/dist/execution-DLAnWNAh.d.mts.map +1 -0
  33. package/dist/{migration-LeIoXCp5.d.mts → migration-KEyQBpKF.d.mts} +2 -2
  34. package/dist/{migration-LeIoXCp5.d.mts.map → migration-KEyQBpKF.d.mts.map} +1 -1
  35. package/dist/{migration-DyafDAAZ.mjs → migration-rWN1KSXH.mjs} +2 -2
  36. package/dist/{migration-DyafDAAZ.mjs.map → migration-rWN1KSXH.mjs.map} +1 -1
  37. package/dist/{parse-djL5wker-DneRlVFY.d.mts → parse-djL5wker-Bx0JH2c_.d.mts} +2 -2
  38. package/dist/{parse-djL5wker-DneRlVFY.d.mts.map → parse-djL5wker-Bx0JH2c_.d.mts.map} +1 -1
  39. package/dist/psl-parser.d.mts +3 -3
  40. package/dist/psl-parser__format.d.mts +1 -1
  41. package/dist/psl-parser__interpret.d.mts +3 -3
  42. package/dist/psl-parser__syntax.d.mts +1 -1
  43. package/package.json +16 -16
  44. package/dist/control-D1zV_XXw.d.mts.map +0 -1
  45. package/dist/control-Dx37wrOG.d.mts +0 -1
  46. package/dist/control-DzRwUDn-.mjs.map +0 -1
  47. package/dist/execution-C0jDSNao.d.mts.map +0 -1
  48. package/dist/execution-Dv2tEKdY.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-B0KO727Y.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.mjs"],"sourcesContent":["import { l as objectSchemaKeys } from \"./data-type-V6mcDhcG.mjs\";\nimport { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { n as codecDescriptorMissing, r as codecForRef } from \"./resolve-codec-qqMjZrmn.mjs\";\nimport { a as mergeCapabilityMatrices, n as assembleGeneratorFunctions, o as aggregateDescriptorKey, r as assembleGeneratorRegistrations, s as isAggregateDescriptor } from \"./generator-functions-CXbQfvYu.mjs\";\nimport { A as assertTypeAliasesValid, D as assertNoAuthoringFieldNamespace, E as AUTHORING_TYPE_DESCRIPTOR_KINDS, J as mergeAuthoringNamespaces, M as collectContributedDescriptorPaths, O as assertNoCrossRegistryCollisions, _ as collectScalarTypeConstructors, a as assembleDataTypeSupport, f as resolvePslBacktickEscapes, h as assertTypeChoicesValid, i as assembleAuthoringDataTypes, k as assertResolvableTypeConstructorTemplates, l as describeTaggedLiteralFailure, o as contributedHelpers, p as resolveTemplateTagEscapes, q as mergeAuthoringAttributeSpecs, r as timestampNowControlDescriptor, s as TAGGED_LITERAL_MAX_BYTES, z as isAuthoringArgRef } from \"./temporal-type-aliases-CFh3BW2a.mjs\";\nimport \"./namespace-VUH2dgnS.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { type } from \"arktype\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/control/check-expectation.ts\nfunction expectAbsent(object) {\n\treturn {\n\t\texpects: \"absent\",\n\t\tobject\n\t};\n}\nfunction expectPresent(object) {\n\treturn {\n\t\texpects: \"present\",\n\t\tobject\n\t};\n}\n//#endregion\n//#region src/control/contract-snapshot-layout.ts\nconst CONTRACT_SNAPSHOTS_DIRNAME = \"snapshots\";\nconst STORAGE_HASH_PATTERN = /^[0-9a-f]{64}$/;\n/** Whether the snapshot store can address `storageHash`. */\nfunction isStorageHashHex(storageHash) {\n\treturn STORAGE_HASH_PATTERN.test(storageHash);\n}\n/** Validate a storage hash for use as a directory name. */\nfunction storageHashHex(storageHash) {\n\tif (!isStorageHashHex(storageHash)) throw new InternalError(`Invalid storage hash \"${storageHash}\": expected 64 lowercase hex characters`);\n\treturn storageHash;\n}\n/** Module specifier for the store's `contract.json`, POSIX separators. */\nfunction contractSnapshotJsonSpecifier(snapshotsImportPath, storageHash) {\n\treturn `${snapshotsImportPath}/${storageHashHex(storageHash)}/contract.json`;\n}\n/** Type-only module specifier for the store's `contract.d.ts` (no extension). */\nfunction contractSnapshotTypesSpecifier(snapshotsImportPath, storageHash) {\n\treturn `${snapshotsImportPath}/${storageHashHex(storageHash)}/contract`;\n}\n//#endregion\n//#region src/control/control-capabilities.ts\nfunction hasMigrations(target) {\n\treturn \"migrations\" in target && !!target[\"migrations\"];\n}\nfunction hasSchemaView(instance) {\n\treturn \"toSchemaView\" in instance && typeof instance[\"toSchemaView\"] === \"function\";\n}\nfunction hasPslContractInfer(instance) {\n\treturn \"inferPslContract\" in instance && typeof instance[\"inferPslContract\"] === \"function\";\n}\nfunction hasPslContractBuild(instance) {\n\treturn \"buildPslContract\" in instance && typeof Reflect.get(instance, \"buildPslContract\") === \"function\";\n}\nfunction hasOperationPreview(instance) {\n\treturn \"toOperationPreview\" in instance && typeof instance[\"toOperationPreview\"] === \"function\";\n}\nfunction hasSchemaSubjectClassifier(instance) {\n\treturn \"classifySubjectGranularity\" in instance && typeof instance[\"classifySubjectGranularity\"] === \"function\" && \"classifyEntityKind\" in instance && typeof instance[\"classifyEntityKind\"] === \"function\";\n}\n//#endregion\n//#region src/control/control-migration-types.ts\n/** The origin a plan from `contract` asserts, or `null` when it starts from no contract. */\nfunction planOriginOf(contract) {\n\treturn contract === null ? null : { storageHash: contract.storage.storageHash };\n}\nfunction migrationRunnerFailure(code, message, options) {\n\tconst meta = options?.meta ?? {};\n\tconst error = structuredError(code, message, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\tmeta,\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n\treturn Object.assign(error, {\n\t\tcode,\n\t\tmeta\n\t});\n}\n/** The same failure, attributed to the space whose plan failed. */\nfunction withFailingSpace(failure, failingSpace) {\n\tconst attributed = migrationRunnerFailure(failure.code, failure.message, {\n\t\twhy: failure.why,\n\t\tmeta: {\n\t\t\t...failure.meta,\n\t\t\tfailingSpace\n\t\t},\n\t\t...ifDefined(\"cause\", failure.cause)\n\t});\n\tif (failure.stack !== void 0) attributed.stack = failure.stack;\n\treturn attributed;\n}\nfunction asSentence(text) {\n\tconst trimmed = text.trimEnd();\n\treturn /[.!?]$/.test(trimmed) ? trimmed : `${trimmed}.`;\n}\n/**\n* The same failure, saying whether the database is as it was before the failed apply, in its meta\n* and at the end of its why.\n*/\nfunction withDatabaseUnchanged(failure, databaseUnchanged) {\n\tconst outcome = databaseUnchanged ? \"The failed apply changed nothing.\" : \"The operations that ran before the failure stay applied.\";\n\tconst attributed = migrationRunnerFailure(failure.code, failure.message, {\n\t\twhy: failure.why === void 0 ? outcome : `${asSentence(failure.why)} ${outcome}`,\n\t\tmeta: {\n\t\t\t...failure.meta,\n\t\t\tdatabaseUnchanged\n\t\t},\n\t\t...ifDefined(\"cause\", failure.cause)\n\t});\n\tif (failure.stack !== void 0) attributed.stack = failure.stack;\n\treturn attributed;\n}\n//#endregion\n//#region src/control/control-operation-results.ts\nconst VERIFY_CODE_MARKER_MISSING = \"CONTRACT.MARKER_MISSING\";\nconst VERIFY_CODE_HASH_MISMATCH = \"CONTRACT.MARKER_MISMATCH\";\nconst VERIFY_CODE_TARGET_MISMATCH = \"CONTRACT.TARGET_MISMATCH\";\nconst VERIFY_CODE_SCHEMA_FAILURE = \"CONTRACT.SCHEMA_VERIFICATION_FAILED\";\n/** Whether two markers hold the same hashes, `null` standing for no marker. */\nfunction sameMarkerHashes(a, b) {\n\tif (a === null || b === null) return a === b;\n\treturn a.storageHash === b.storageHash && a.profileHash === b.profileHash;\n}\n//#endregion\n//#region src/control/control-schema-view.ts\nvar SchemaTreeNode = class {\n\tkind;\n\tid;\n\tlabel;\n\tlabelParts;\n\tmeta;\n\tchildren;\n\tconstructor(options) {\n\t\tthis.kind = options.kind;\n\t\tthis.id = options.id;\n\t\tthis.label = options.labelParts.map((part) => part.text).join(\"\");\n\t\tthis.labelParts = options.labelParts;\n\t\tif (options.meta !== void 0) this.meta = options.meta;\n\t\tif (options.children !== void 0) this.children = options.children;\n\t\tObject.freeze(this);\n\t}\n\taccept(visitor) {\n\t\treturn visitor.visit(this);\n\t}\n};\n//#endregion\n//#region src/control/control-spaces.ts\n/**\n* Canonical control-plane identifiers for contract spaces.\n*\n* A contract space is the disjoint `(contract.json, migration-graph)` unit\n* the per-space planner / runner / verifier (project: extension contract\n* spaces, TML-2397) operates on. The application owns one well-known\n* space — the value below — and each loaded extension that contributes\n* schema owns a uniquely-named space.\n*\n* Lives in `framework-components/control` so every layer that has to\n* reason about space identity (the migration tooling, the SQL runtime's\n* marker reader, target-side statement builders, target-side adapters)\n* can import a single value rather than duplicating the literal. Raw\n* `'app'` string literals in framework / target / runtime / adapter\n* source code are forbidden and policed by\n* `scripts/lint-app-space-id.mjs` (wired into `pnpm lint:deps`).\n*\n* @see specs/framework-mechanism.spec.md § 3 — Layout convention (γ).\n*/\nconst APP_SPACE_ID = \"app\";\n//#endregion\n//#region src/control/control-stack.ts\nfunction addUniqueId(ids, seen, id) {\n\tif (!seen.has(id)) {\n\t\tids.push(id);\n\t\tseen.add(id);\n\t}\n}\nfunction assertUniqueCodecOwner(options) {\n\tconst existingOwner = options.owners.get(options.codecId);\n\tif (existingOwner !== void 0) throw new InternalError(`Duplicate ${options.entityLabel} for codecId \"${options.codecId}\". Descriptor \"${options.descriptorId}\" conflicts with \"${existingOwner}\". Each codecId can only have one ${options.entityOwnershipLabel}.`);\n}\nfunction extractCodecTypeImports(descriptors) {\n\tconst imports = [];\n\tfor (const descriptor of descriptors) {\n\t\tconst codecTypes = descriptor.types?.codecTypes;\n\t\tif (codecTypes?.import) imports.push(codecTypes.import);\n\t\tif (codecTypes?.typeImports) imports.push(...codecTypes.typeImports);\n\t}\n\treturn imports;\n}\nfunction extractParameterizedOutputTypeImports(descriptors) {\n\treturn descriptors.flatMap((descriptor) => {\n\t\tconst typeFunction = descriptor.types?.codecTypes?.parameterizedOutputTypes;\n\t\treturn typeFunction === void 0 ? [] : [typeFunction];\n\t});\n}\nfunction extractQueryOperationTypeImports(descriptors) {\n\tconst imports = [];\n\tfor (const descriptor of descriptors) {\n\t\tconst queryOperationTypes = descriptor.types?.queryOperationTypes;\n\t\tif (queryOperationTypes?.import) imports.push(queryOperationTypes.import);\n\t}\n\treturn imports;\n}\nfunction extractComponentIds(family, target, adapter, extensions) {\n\tconst ids = [];\n\tconst seen = /* @__PURE__ */ new Set();\n\taddUniqueId(ids, seen, family.id);\n\taddUniqueId(ids, seen, target.id);\n\tif (adapter) addUniqueId(ids, seen, adapter.id);\n\tfor (const ext of extensions) addUniqueId(ids, seen, ext.id);\n\treturn ids;\n}\nfunction assembleAuthoringContributions(descriptors, dataTypes = assembleAuthoringDataTypes(descriptors)) {\n\tconst type = {};\n\tconst entityTypes = {};\n\tconst pslBlockDescriptors = {};\n\tconst modelAttributes = {};\n\tconst attributeSpecs = {\n\t\tmodel: {},\n\t\tfield: {}\n\t};\n\tconst attributeSpecOwners = /* @__PURE__ */ new Map();\n\tconst pathOwners = /* @__PURE__ */ new Map();\n\tconst claimContributedPaths = (namespace, descriptorKind, label, descriptorId) => {\n\t\tfor (const path of collectContributedDescriptorPaths(namespace, descriptorKind)) {\n\t\t\tconst key = `${label}:${path}`;\n\t\t\tconst existingOwner = pathOwners.get(key);\n\t\t\tif (existingOwner !== void 0) throw new InternalError(`Duplicate authoring ${label} helper \"${path}\". Descriptor \"${descriptorId}\" conflicts with \"${existingOwner}\".`);\n\t\t\tpathOwners.set(key, descriptorId);\n\t\t}\n\t};\n\tlet valueObjectStorageDeclaration;\n\tfor (const descriptor of descriptors) {\n\t\tconst descriptorId = descriptor.id ?? \"<unknown>\";\n\t\tassertNoAuthoringFieldNamespace(descriptorId, descriptor.authoring);\n\t\tconst declaredValueObjectStorageType = descriptor.authoring?.valueObjectStorageType;\n\t\tif (declaredValueObjectStorageType !== void 0) {\n\t\t\tif (valueObjectStorageDeclaration !== void 0) throw new InternalError(`Duplicate authoring valueObjectStorageType declaration. Descriptor \"${descriptorId}\" conflicts with \"${valueObjectStorageDeclaration.ownerId}\". Exactly one composed component may declare the value-object storage type.`);\n\t\t\tvalueObjectStorageDeclaration = {\n\t\t\t\tname: declaredValueObjectStorageType,\n\t\t\t\townerId: descriptorId\n\t\t\t};\n\t\t}\n\t\tif (descriptor.authoring?.type) {\n\t\t\tclaimContributedPaths(descriptor.authoring.type, AUTHORING_TYPE_DESCRIPTOR_KINDS, \"type\", descriptorId);\n\t\t\tassertResolvableTypeConstructorTemplates(descriptor.authoring.type, descriptorId);\n\t\t\tmergeAuthoringNamespaces(type, descriptor.authoring.type, [], AUTHORING_TYPE_DESCRIPTOR_KINDS, \"type\");\n\t\t}\n\t\tif (descriptor.authoring?.entityTypes) {\n\t\t\tclaimContributedPaths(descriptor.authoring.entityTypes, \"entity\", \"entity\", descriptorId);\n\t\t\tmergeAuthoringNamespaces(entityTypes, descriptor.authoring.entityTypes, [], \"entity\", \"entity\");\n\t\t}\n\t\tif (descriptor.authoring?.pslBlockDescriptors) {\n\t\t\tclaimContributedPaths(descriptor.authoring.pslBlockDescriptors, \"pslBlock\", \"pslBlock\", descriptorId);\n\t\t\tmergeAuthoringNamespaces(pslBlockDescriptors, descriptor.authoring.pslBlockDescriptors, [], \"pslBlock\", \"pslBlock\");\n\t\t}\n\t\tif (descriptor.authoring?.modelAttributes) mergeAuthoringNamespaces(modelAttributes, descriptor.authoring.modelAttributes, [], \"modelAttribute\", \"modelAttribute\");\n\t\tif (descriptor.authoring?.attributeSpecs) mergeAuthoringAttributeSpecs(attributeSpecs, descriptor.authoring.attributeSpecs, descriptorId, attributeSpecOwners);\n\t}\n\tconst typeNamespace = type;\n\tconst entityTypeNamespace = entityTypes;\n\tconst pslBlockDescriptorNamespace = blindCast(pslBlockDescriptors);\n\tconst modelAttributeNamespace = blindCast(modelAttributes);\n\tassertNoCrossRegistryCollisions(typeNamespace, entityTypeNamespace, pslBlockDescriptorNamespace, modelAttributeNamespace);\n\tfor (const descriptor of descriptors) {\n\t\tif (descriptor.authoring?.type === void 0) continue;\n\t\tassertTypeChoicesValid(descriptor.authoring.type, descriptor.id ?? \"<unknown>\");\n\t}\n\tif (valueObjectStorageDeclaration !== void 0 && !collectScalarTypeConstructors(typeNamespace).has(valueObjectStorageDeclaration.name)) throw new InternalError(`Invalid authoring valueObjectStorageType \"${valueObjectStorageDeclaration.name}\" declared by descriptor \"${valueObjectStorageDeclaration.ownerId}\". The name must be a top-level bare-eligible type constructor in the assembled authoring namespace.`);\n\treturn {\n\t\tdataTypes,\n\t\ttype: typeNamespace,\n\t\tentityTypes: entityTypeNamespace,\n\t\tpslBlockDescriptors: pslBlockDescriptorNamespace,\n\t\tmodelAttributes: modelAttributeNamespace,\n\t\tattributeSpecs,\n\t\t...valueObjectStorageDeclaration !== void 0 ? { valueObjectStorageType: valueObjectStorageDeclaration.name } : {}\n\t};\n}\nfunction argumentMappedKeys(descriptor) {\n\treturn Object.entries(descriptor.output.typeParams ?? {}).flatMap(([key, template]) => isAuthoringArgRef(template) ? [key] : []);\n}\n/**\n* The checks on type constructors that read the stack's codecs, each naming the component and the id at fault:\n*\n* 1. every type constructor names a registered codec;\n* 2. a type constructor maps its arguments only onto parameters its data type or codec declares;\n* 3. at most one type constructor per data type is marked inferred.\n*\n* {@link assembleDataTypeSupport} checks data types, their entries and casts, and the value arguments of type constructors.\n*/\nfunction enforceHelperCodecInvariants(input) {\n\tconst inferredBy = /* @__PURE__ */ new Map();\n\tfor (const contributed of input.helpers) {\n\t\tconst { path, descriptor, contributedBy } = contributed;\n\t\tconst codecId = descriptor.output.codecId;\n\t\tconst codec = input.codecDescriptorFor(codecId);\n\t\tif (codec === void 0) throw new InternalError(`Type constructor \"${path}\" contributed by \"${contributedBy}\" names codec \"${codecId}\", which no component registers.`);\n\t\tconst codecKeys = codec.paramsSchema === void 0 ? [] : objectSchemaKeys(codec.paramsSchema);\n\t\tif (codecKeys !== void 0) {\n\t\t\tconst declared = /* @__PURE__ */ new Set([...codecKeys, ...objectSchemaKeys(input.lookup.get(codec.dataType)?.params) ?? []]);\n\t\t\tfor (const key of argumentMappedKeys(descriptor)) if (!declared.has(key)) throw new InternalError(`Type constructor \"${path}\" contributed by \"${contributedBy}\" maps an argument onto the parameter \"${key}\", which neither data type \"${codec.dataType}\" nor codec \"${codecId}\" declares.`);\n\t\t}\n\t\tif (descriptor.inferred !== true) continue;\n\t\tconst existing = inferredBy.get(codec.dataType);\n\t\tif (existing !== void 0) throw new InternalError(`Type constructors \"${existing.path}\" contributed by \"${existing.contributedBy}\" and \"${path}\" contributed by \"${contributedBy}\" are both marked inferred for data type \"${codec.dataType}\"; a data type has at most one.`);\n\t\tinferredBy.set(codec.dataType, contributed);\n\t}\n}\nfunction assembleControlMutationDefaults(descriptors) {\n\tconst defaultFunctionRegistry = /* @__PURE__ */ new Map();\n\tconst functionOwners = /* @__PURE__ */ new Map();\n\tconst registered = assembleGeneratorRegistrations(descriptors);\n\tfor (const descriptor of descriptors) {\n\t\tconst contributions = descriptor.controlMutationDefaults;\n\t\tif (!contributions) continue;\n\t\tconst descriptorId = descriptor.id ?? \"<unknown>\";\n\t\tfor (const [functionName, handler] of contributions.defaultFunctionRegistry) {\n\t\t\tconst existingOwner = functionOwners.get(functionName);\n\t\t\tif (existingOwner !== void 0) throw new InternalError(`Duplicate mutation default function \"${functionName}\". Descriptor \"${descriptorId}\" conflicts with \"${existingOwner}\".`);\n\t\t\tdefaultFunctionRegistry.set(functionName, handler);\n\t\t\tfunctionOwners.set(functionName, descriptorId);\n\t\t}\n\t}\n\treturn {\n\t\tdefaultFunctionRegistry,\n\t\tgeneratorDescriptors: [...registered.values()].map(({ descriptor }) => descriptor),\n\t\tcomponentIdsByGenerator: new Map([...registered].map(([id, { componentId }]) => [id, componentId]))\n\t};\n}\n/**\n* Collect every contributed {@link AggregateDescriptor} across the composed components, rejecting malformed shapes and second claims on one `(operation, input)` overload.\n*\n* Both planes read the same contribution slot: emission derives result types from these descriptors, and family runtimes build their resolution registry from them. Rejections are user-facing — an extension author's bad contribution surfaces here first, during `contract emit` — so a malformed shape raises `CONTRACT.AGGREGATE_DESCRIPTOR_INVALID` and a second claim raises `CONTRACT.AGGREGATE_DESCRIPTOR_DUPLICATE`, each naming the contributing component.\n*/\nfunction collectAggregateDescriptors(descriptors) {\n\tconst collected = [];\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tconst descriptorId = descriptor.id ?? \"<unknown>\";\n\t\tfor (const contributed of descriptor.types?.aggregateDescriptors ?? []) {\n\t\t\tif (!isAggregateDescriptor(contributed)) throw runtimeError(\"CONTRACT.AGGREGATE_DESCRIPTOR_INVALID\", `Malformed aggregate descriptor contributed by \"${descriptorId}\". A descriptor declares a non-empty \\`operation\\`, an \\`input\\` match of kind \\`none\\`/\\`any\\`/\\`codec\\`/\\`trait\\`, an \\`output\\` of kind \\`self\\`/\\`codec\\`, and a boolean \\`nullable\\` — plus \\`emptyResultWire\\`, a wire value of the result codec, where \\`nullable\\` is false; a \\`self\\` output needs an input to reuse.`, {\n\t\t\t\tcontributedBy: descriptorId,\n\t\t\t\tdescriptor: contributed\n\t\t\t});\n\t\t\tconst key = aggregateDescriptorKey(contributed);\n\t\t\tconst existingOwner = owners.get(key);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.AGGREGATE_DESCRIPTOR_DUPLICATE\", `Duplicate aggregate descriptor for \"${key}\". Descriptor \"${descriptorId}\" conflicts with \"${existingOwner}\". Each operation/input pair can only have one provider.`, {\n\t\t\t\tkey,\n\t\t\t\tcontributedBy: descriptorId,\n\t\t\t\towner: existingOwner\n\t\t\t});\n\t\t\towners.set(key, descriptorId);\n\t\t\tcollected.push(contributed);\n\t\t}\n\t}\n\treturn collected;\n}\n/**\n* Flatten the codec descriptors the composed components contribute.\n*\n* A component may know a codec and still withhold it — an adapter that cannot name a codec's emitted type contributes the rest without it — so the contributed set is not always the set some component's own registry holds. Consumers whose output must agree with what the runtime resolves read this list rather than any one component's registry.\n*/\nfunction collectCodecDescriptors(descriptors) {\n\treturn descriptors.flatMap((descriptor) => descriptor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction extractCodecLookup(descriptors) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tconst descriptorsById = /* @__PURE__ */ new Map();\n\tconst renderersById = /* @__PURE__ */ new Map();\n\tconst inputRenderersById = /* @__PURE__ */ new Map();\n\tconst valueLiteralRenderersById = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tconst codecTypes = descriptor.types?.codecTypes;\n\t\tconst descriptorId = descriptor.id;\n\t\tfor (const codecDescriptor of codecTypes?.codecDescriptors ?? []) {\n\t\t\tassertUniqueCodecOwner({\n\t\t\t\tcodecId: codecDescriptor.codecId,\n\t\t\t\towners,\n\t\t\t\tdescriptorId,\n\t\t\t\tentityLabel: \"codec descriptor\",\n\t\t\t\tentityOwnershipLabel: \"codec descriptor provider\"\n\t\t\t});\n\t\t\towners.set(codecDescriptor.codecId, descriptorId);\n\t\t\tdescriptorsById.set(codecDescriptor.codecId, codecDescriptor);\n\t\t\tif (typeof codecDescriptor.renderOutputType === \"function\") renderersById.set(codecDescriptor.codecId, codecDescriptor.renderOutputType);\n\t\t\tif (typeof codecDescriptor.renderInputType === \"function\") inputRenderersById.set(codecDescriptor.codecId, codecDescriptor.renderInputType);\n\t\t\tif (typeof codecDescriptor.renderValueLiteral === \"function\") valueLiteralRenderersById.set(codecDescriptor.codecId, codecDescriptor.renderValueLiteral);\n\t\t\tif (!byId.has(codecDescriptor.codecId)) if (codecDescriptor.isParameterized) try {\n\t\t\t\tconst representative = codecDescriptor.factory({})({ name: `<lookup:${codecDescriptor.codecId}>` });\n\t\t\t\tbyId.set(codecDescriptor.codecId, representative);\n\t\t\t} catch (error) {\n\t\t\t\tif (isInternalError(error)) throw error;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconst representative = codecDescriptor.factory(void 0)({ name: `<lookup:${codecDescriptor.codecId}>` });\n\t\t\t\tbyId.set(codecDescriptor.codecId, representative);\n\t\t\t}\n\t\t}\n\t}\n\tconst registry = {\n\t\tget: (id) => byId.get(id),\n\t\tforCodecRef(ref) {\n\t\t\treturn codecForRef(registry, ref) ?? codecDescriptorMissing(ref, \"CONTRACT.CODEC_DESCRIPTOR_MISSING\");\n\t\t},\n\t\tforColumn: () => void 0,\n\t\trenderOutputTypeFor: (id, params) => renderersById.get(id)?.(params),\n\t\trenderInputTypeFor: (id, params) => inputRenderersById.get(id)?.(params),\n\t\trenderValueLiteralFor: (id, value, side) => valueLiteralRenderersById.get(id)?.(value, side),\n\t\tdescriptorFor: (id) => descriptorsById.get(id)\n\t};\n\treturn registry;\n}\nfunction assembleExtensionContracts(extensions) {\n\tconst result = /* @__PURE__ */ new Map();\n\tfor (const ext of extensions) {\n\t\tif (ext.contractSpace === void 0) continue;\n\t\tresult.set(ext.id, ext.contractSpace.contractJson);\n\t}\n\treturn result;\n}\nfunction readDeclaredDependencyIds(descriptor) {\n\tconst packs = descriptor.contractSpace?.contractJson?.extensions;\n\tif (packs === null || typeof packs !== \"object\") return [];\n\treturn Object.keys(packs);\n}\n/**\n* Builds a dependency-respecting load order for the given extension descriptors\n* using Kahn's topological sort algorithm. Dependencies (packs declared in\n* `contractSpace.contractJson.extensions`) are placed before the extensions\n* that depend on them.\n*\n* Throws if the dependency graph contains a cycle, with an error message that\n* names every extension involved in the cycle.\n*\n* Throws if any extension declares a dependency on a pack ID that is not present\n* in the provided list — add the missing pack to the `extensions` list to\n* resolve the error.\n*/\nfunction buildExtensionLoadOrder(extensions) {\n\tif (extensions.length === 0) return [];\n\tconst idSet = new Set(extensions.map((e) => e.id));\n\tconst inDegree = /* @__PURE__ */ new Map();\n\tconst dependents = /* @__PURE__ */ new Map();\n\tfor (const ext of extensions) {\n\t\tif (!inDegree.has(ext.id)) inDegree.set(ext.id, 0);\n\t\tif (!dependents.has(ext.id)) dependents.set(ext.id, []);\n\t}\n\tfor (const ext of extensions) for (const depId of readDeclaredDependencyIds(ext)) {\n\t\tif (!idSet.has(depId)) throw new InternalError(`Extension \"${ext.id}\" declares a dependency on \"${depId}\", but \"${depId}\" is not in the provided extension set. Add the missing space to extensions.`);\n\t\tinDegree.set(ext.id, (inDegree.get(ext.id) ?? 0) + 1);\n\t\tconst list = dependents.get(depId);\n\t\tif (list !== void 0) list.push(ext.id);\n\t}\n\tconst queue = [];\n\tfor (const [id, deg] of inDegree) if (deg === 0) queue.push(id);\n\tqueue.sort();\n\tconst result = [];\n\twhile (queue.length > 0) {\n\t\tconst id = queue.shift();\n\t\tif (id === void 0) break;\n\t\tresult.push(id);\n\t\tconst children = dependents.get(id) ?? [];\n\t\tchildren.sort();\n\t\tfor (const childId of children) {\n\t\t\tconst newDeg = (inDegree.get(childId) ?? 1) - 1;\n\t\t\tinDegree.set(childId, newDeg);\n\t\t\tif (newDeg === 0) queue.push(childId);\n\t\t}\n\t}\n\tif (result.length < extensions.length) throw new InternalError(`Extension dependency cycle detected. Cycle members: ${extensions.map((e) => e.id).filter((id) => !result.includes(id)).sort().map((id) => `\"${id}\"`).join(\", \")}.`);\n\treturn result;\n}\n/** The driver descriptor, connecting each driver with the session settings the target declares. */\nfunction withSessionSettings(driver, sessionSettings) {\n\tif (driver === void 0 || sessionSettings === void 0) return driver;\n\tconst create = driver.create.bind(driver);\n\treturn {\n\t\t...driver,\n\t\tcreate: (connection, options) => create(connection, {\n\t\t\t...options,\n\t\t\tsessionSettings\n\t\t})\n\t};\n}\nfunction createControlStack(input) {\n\tconst { family, target, adapter, driver, extensions = [] } = input;\n\tconst orderedIds = buildExtensionLoadOrder(extensions);\n\tconst extensionById = new Map(extensions.map((ext) => [ext.id, ext]));\n\tconst orderedExtensions = orderedIds.map((id) => extensionById.get(id)).filter((ext) => ext !== void 0);\n\tconst allDescriptors = [\n\t\tfamily,\n\t\ttarget,\n\t\t...adapter ? [adapter] : [],\n\t\t...orderedExtensions\n\t];\n\tconst codecLookup = extractCodecLookup(allDescriptors);\n\tconst dataTypes = assembleDataTypeSupport(allDescriptors, (codecId) => codecLookup.descriptorFor?.(codecId)?.dataType);\n\tconst authoringContributions = assembleAuthoringContributions(allDescriptors, dataTypes.support.entries);\n\tconst codecDescriptors = collectCodecDescriptors(allDescriptors);\n\tenforceHelperCodecInvariants({\n\t\tlookup: dataTypes.support.lookup,\n\t\thelpers: allDescriptors.flatMap(contributedHelpers),\n\t\tcodecDescriptorFor: (codecId) => codecLookup.descriptorFor?.(codecId)\n\t});\n\tconst controlMutationDefaults = assembleControlMutationDefaults(allDescriptors);\n\tconst generatorFunctions = assembleGeneratorFunctions(allDescriptors);\n\tassertTypeAliasesValid(authoringContributions.type, {\n\t\tgeneratorFunctions,\n\t\tparamsSchemaOf: (codecId) => codecLookup.descriptorFor(codecId)?.paramsSchema,\n\t\tfieldLength: (field) => family.fieldLength?.(field, dataTypes.support)\n\t});\n\treturn {\n\t\tfamily,\n\t\ttarget,\n\t\tadapter,\n\t\tdriver: withSessionSettings(driver, target.sessionSettings),\n\t\textensions: orderedExtensions,\n\t\textensionContracts: assembleExtensionContracts(orderedExtensions),\n\t\tcodecTypeImports: extractCodecTypeImports(allDescriptors),\n\t\tqueryOperationTypeImports: extractQueryOperationTypeImports(allDescriptors),\n\t\tparameterizedOutputTypeImports: extractParameterizedOutputTypeImports(allDescriptors),\n\t\textensionIds: extractComponentIds(family, target, adapter, orderedExtensions),\n\t\tcodecLookup,\n\t\tcodecDescriptors,\n\t\tdataTypes: dataTypes.support,\n\t\tdeclaredDataTypes: dataTypes.declared,\n\t\taggregateDescriptors: collectAggregateDescriptors(allDescriptors),\n\t\tauthoringContributions,\n\t\tscalarTypes: [...collectScalarTypeConstructors(authoringContributions.type).keys()],\n\t\tcontrolMutationDefaults,\n\t\tgeneratorFunctions,\n\t\tcapabilities: mergeCapabilityMatrices({}, [\n\t\t\ttarget,\n\t\t\t...adapter ? [adapter] : [],\n\t\t\t...orderedExtensions\n\t\t])\n\t};\n}\n//#endregion\n//#region src/control/database-policies.ts\nconst CHANGE_STRATEGIES = [\"migrate\", \"reconcile\"];\nconst DATA_LOSS_LEVELS = [\n\t\"data-loss-forbidden\",\n\t\"data-loss-with-consent\",\n\t\"data-loss-permitted\"\n];\nconst ACCESS_WIDENING_LEVELS = [\n\t\"access-widening-forbidden\",\n\t\"access-widening-with-consent\",\n\t\"access-widening-permitted\"\n];\n/** The keys a policy declaration may carry; any other key makes it invalid. */\nconst DATABASE_POLICIES_KEYS = [\"change\", \"dataProtection\"];\n/** The keys a policy declaration's `dataProtection` may carry; any other key makes it invalid. */\nconst DATA_PROTECTION_KEYS = [\"dataLoss\", \"accessWidening\"];\n/** The key of the marker's `meta` that holds the database's policies. */\nconst DATABASE_POLICIES_META_KEY = \"policies\";\nconst DEFAULT_DATABASE_POLICIES = {\n\tchange: [\"migrate\", \"reconcile\"],\n\tdataProtection: {\n\t\tdataLoss: \"data-loss-with-consent\",\n\t\taccessWidening: \"access-widening-with-consent\"\n\t}\n};\nconst changeSchema = type.enumerated(...CHANGE_STRATEGIES).array().atLeastLength(1);\nconst dataLossSchema = type.enumerated(...DATA_LOSS_LEVELS);\nconst accessWideningSchema = type.enumerated(...ACCESS_WIDENING_LEVELS);\nfunction notAList(data, ctx) {\n\treturn !Array.isArray(data) || ctx.mustBe(\"an object, not a list\");\n}\n/** Policies with any setting left out: what a ref declares, and what a marker may record. */\nconst PartialDatabasePoliciesSchema = type({\n\t\"+\": \"reject\",\n\t\"change?\": changeSchema,\n\t\"dataProtection?\": type({\n\t\t\"+\": \"reject\",\n\t\t\"dataLoss?\": dataLossSchema,\n\t\t\"accessWidening?\": accessWideningSchema\n\t}).narrow(notAList)\n}).narrow(notAList);\ntype({\n\t\"+\": \"reject\",\n\tchange: changeSchema,\n\tdataProtection: type({\n\t\t\"+\": \"reject\",\n\t\tdataLoss: dataLossSchema,\n\t\taccessWidening: accessWideningSchema\n\t}).narrow(notAList)\n}).narrow(notAList);\nfunction sortedStrategies(change) {\n\treturn [...new Set(change)].sort();\n}\n/** `inForce` with every setting `declared` carries laid over it. */\nfunction withDeclaredDatabasePolicies(inForce, declared) {\n\treturn {\n\t\tchange: sortedStrategies(declared.change ?? inForce.change),\n\t\tdataProtection: {\n\t\t\tdataLoss: declared.dataProtection?.dataLoss ?? inForce.dataProtection.dataLoss,\n\t\t\taccessWidening: declared.dataProtection?.accessWidening ?? inForce.dataProtection.accessWidening\n\t\t}\n\t};\n}\n/** What is wrong with a value, without its path, which arktype puts at the start of a union's problem. */\nfunction problemOf(error) {\n\tconst pathPrefix = `${error.propString} `;\n\treturn error.propString !== \"\" && error.problem.startsWith(pathPrefix) ? error.problem.slice(pathPrefix.length) : error.problem;\n}\n/** Reads a policy declaration, as a ref declares it and a marker records it, rejecting any value the declaration may not hold. */\nfunction parseDeclaredDatabasePolicies(value) {\n\tconst declared = PartialDatabasePoliciesSchema(value);\n\tif (declared instanceof type.errors) return notOk(declared.map((error) => ({\n\t\tpath: error.propString,\n\t\tproblem: problemOf(error)\n\t})));\n\treturn ok(declared);\n}\n/**\n* The policies in force on a database whose application space's marker is `marker`: what it\n* records, with every absent setting taken from {@link DEFAULT_DATABASE_POLICIES}.\n*/\nfunction databasePoliciesOf(marker) {\n\tconst recorded = marker?.meta[DATABASE_POLICIES_META_KEY];\n\tif (recorded === void 0) return ok(DEFAULT_DATABASE_POLICIES);\n\tconst declared = parseDeclaredDatabasePolicies(recorded);\n\tif (!declared.ok) {\n\t\tconst issues = declared.failure.map(({ path, problem }) => path === \"\" ? problem : `${path} ${problem}`).join(\"\\n\");\n\t\treturn notOk({ why: `The marker's meta.${DATABASE_POLICIES_META_KEY} is not a valid policy declaration: ${issues}` });\n\t}\n\treturn ok(withDeclaredDatabasePolicies(DEFAULT_DATABASE_POLICIES, declared.value));\n}\n/** The settings `declared` carries whose value differs from the one in force, in a fixed order. */\nfunction databasePolicyDifferences(declared, inForce) {\n\tconst differences = [];\n\tif (declared.change !== void 0) {\n\t\tconst declaredChange = sortedStrategies(declared.change);\n\t\tconst inForceChange = sortedStrategies(inForce.change);\n\t\tif (declaredChange.join(\",\") !== inForceChange.join(\",\")) differences.push({\n\t\t\tsetting: \"change\",\n\t\t\tdeclared: declaredChange,\n\t\t\tinForce: inForceChange\n\t\t});\n\t}\n\tconst { dataLoss, accessWidening } = declared.dataProtection ?? {};\n\tif (dataLoss !== void 0 && dataLoss !== inForce.dataProtection.dataLoss) differences.push({\n\t\tsetting: \"dataProtection.dataLoss\",\n\t\tdeclared: dataLoss,\n\t\tinForce: inForce.dataProtection.dataLoss\n\t});\n\tif (accessWidening !== void 0 && accessWidening !== inForce.dataProtection.accessWidening) differences.push({\n\t\tsetting: \"dataProtection.accessWidening\",\n\t\tdeclared: accessWidening,\n\t\tinForce: inForce.dataProtection.accessWidening\n\t});\n\treturn differences;\n}\n/**\n* Compares the policies `marker` records with `checked`, as a runner checks under its lock that the\n* policies a caller checked are still those in force.\n*/\nfunction compareMarkerDatabasePolicies(marker, checked) {\n\tconst inForce = databasePoliciesOf(marker);\n\tif (!inForce.ok) return {\n\t\tkind: \"unreadable\",\n\t\twhy: inForce.failure.why\n\t};\n\treturn databasePolicyDifferences(checked, inForce.value).length === 0 ? { kind: \"held\" } : {\n\t\tkind: \"moved\",\n\t\tfound: inForce.value\n\t};\n}\n/** A policy setting's value as messages print it: change strategies comma-separated. */\nfunction databasePolicyValueText(value) {\n\treturn typeof value === \"string\" ? value : value.join(\", \");\n}\n/** Why the policies `actor` checked no longer hold: each setting that moved, from the value checked to the value found. */\nfunction movedDatabasePoliciesWhy(actor, checked, found) {\n\treturn `The database's policies changed after ${actor} checked them: ${databasePolicyDifferences(checked, found).map(({ setting, declared: checkedValue, inForce: foundValue }) => `${setting} moved from ${databasePolicyValueText(checkedValue)} to ${databasePolicyValueText(foundValue)}`).join(\"; \")}.`;\n}\n/**\n* `MIGRATION.MARKER_CAS_FAILURE` for a run whose checked policies moved before it changed anything:\n* the meta carries the policies checked and found, not the marker's hashes.\n*/\nfunction databasePoliciesMovedFailure(checked, found) {\n\treturn migrationRunnerFailure(\"MIGRATION.MARKER_CAS_FAILURE\", \"The database's policies changed during the run\", {\n\t\twhy: `${movedDatabasePoliciesWhy(\"this run\", checked, found)} Run the command again to check them anew.`,\n\t\tmeta: {\n\t\t\treason: \"databasePolicies\",\n\t\t\tspace: \"app\",\n\t\t\tcheckedDatabasePolicies: checked,\n\t\t\tfoundDatabasePolicies: found\n\t\t}\n\t});\n}\nfunction storedDatabasePolicies(policies) {\n\treturn {\n\t\tchange: [...sortedStrategies(policies.change)],\n\t\tdataProtection: {\n\t\t\tdataLoss: policies.dataProtection.dataLoss,\n\t\t\taccessWidening: policies.dataProtection.accessWidening\n\t\t}\n\t};\n}\n//#endregion\n//#region src/control/migration-statements.ts\nfunction isRenameStatement(statement) {\n\treturn statement.kind === \"rename\";\n}\n/** A key that is equal for two subjects exactly when they name the same thing. */\nfunction migrationSubjectKey(subject) {\n\tswitch (subject.kind) {\n\t\tcase \"model\": return JSON.stringify([\n\t\t\t\"model\",\n\t\t\tsubject.namespaceId,\n\t\t\tsubject.model\n\t\t]);\n\t\tcase \"field\": return JSON.stringify([\n\t\t\t\"field\",\n\t\t\tsubject.namespaceId,\n\t\t\tsubject.model,\n\t\t\tsubject.field\n\t\t]);\n\t\tcase \"enumValue\": return JSON.stringify([\n\t\t\t\"enumValue\",\n\t\t\tsubject.namespaceId,\n\t\t\tsubject.enum,\n\t\t\tsubject.member\n\t\t]);\n\t\tcase \"valueObjectField\": return JSON.stringify([\n\t\t\t\"valueObjectField\",\n\t\t\tsubject.namespaceId,\n\t\t\tsubject.valueObject,\n\t\t\tsubject.field\n\t\t]);\n\t\tcase \"storage\": return JSON.stringify([\"storage\", subject.name]);\n\t}\n}\n/**\n* A model's name in messages: `namespace.Model`, or `Model` alone in the unbound namespace, whose\n* id is internal.\n*/\nfunction modelDisplayName(coordinate) {\n\treturn coordinate.namespaceId === \"__unbound__\" ? coordinate.model : `${coordinate.namespaceId}.${coordinate.model}`;\n}\n/** A model as a statement names it: with its namespace only when the contract has several. */\nfunction modelStatementText(contract, coordinate) {\n\treturn Object.keys(contract.domain.namespaces).length > 1 ? modelDisplayName(coordinate) : coordinate.model;\n}\n/** A field as a statement names it, through its model: `User.age`, or `app.User.age` when the contract has several namespaces. */\nfunction fieldStatementText(contract, field) {\n\treturn `${modelStatementText(contract, field)}.${field.field}`;\n}\n/** An enum member as a statement names it, through its enum: `Status.ARCHIVED`, or `app.Status.ARCHIVED` when the contract has several namespaces. */\nfunction enumValueStatementText(contract, value) {\n\treturn `${modelStatementText(contract, {\n\t\tnamespaceId: value.namespaceId,\n\t\tmodel: value.enum\n\t})}.${value.member}`;\n}\n/** A value object field as a statement names it, through its value object: `GeoPoint.lat`, or `app.GeoPoint.lat` when the contract has several namespaces. */\nfunction valueObjectFieldStatementText(contract, field) {\n\treturn `${modelStatementText(contract, {\n\t\tnamespaceId: field.namespaceId,\n\t\tmodel: field.valueObject\n\t})}.${field.field}`;\n}\n/** An enum value coordinate read from its JSON form, in which the unbound namespace is left out. */\nfunction enumValueCoordinateFromJson(json) {\n\treturn {\n\t\tnamespaceId: json.namespaceId ?? asNamespaceId(\"__unbound__\"),\n\t\tenum: json.enum,\n\t\tmember: json.member\n\t};\n}\n/** An enum value coordinate in its JSON form, which leaves out the unbound namespace. */\nfunction enumValueCoordinateJson(value) {\n\treturn coordinateJson(value);\n}\nfunction coordinateJson(coordinate) {\n\tif (coordinate.namespaceId !== \"__unbound__\") return coordinate;\n\tconst { namespaceId: _unbound, ...rest } = coordinate;\n\treturn rest;\n}\n/** The statement as JSON output writes it. */\nfunction migrationStatementJson(statement) {\n\tswitch (statement.kind) {\n\t\tcase \"convert\": return statement.entity === \"model\" ? {\n\t\t\t...statement,\n\t\t\tmodel: coordinateJson(statement.model)\n\t\t} : {\n\t\t\t...statement,\n\t\t\tfield: coordinateJson(statement.field)\n\t\t};\n\t\tcase \"backfill\": return statement.entity === \"field\" ? {\n\t\t\t...statement,\n\t\t\tfield: coordinateJson(statement.field)\n\t\t} : {\n\t\t\t...statement,\n\t\t\tfield: coordinateJson(statement.field)\n\t\t};\n\t\tcase \"rename\": return renameStatementJson(statement);\n\t}\n}\nfunction renameStatementJson(statement) {\n\tswitch (statement.entity) {\n\t\tcase \"namespace\": return {\n\t\t\t...statement,\n\t\t\tfrom: { namespaceId: statement.from },\n\t\t\tto: { namespaceId: statement.to }\n\t\t};\n\t\tcase \"model\": return {\n\t\t\t...statement,\n\t\t\tfrom: coordinateJson(statement.from),\n\t\t\tto: coordinateJson(statement.to)\n\t\t};\n\t\tcase \"field\": return {\n\t\t\t...statement,\n\t\t\tfrom: coordinateJson(statement.from),\n\t\t\tto: coordinateJson(statement.to)\n\t\t};\n\t\tcase \"enumValue\": return {\n\t\t\t...statement,\n\t\t\tfrom: coordinateJson(statement.from),\n\t\t\tto: coordinateJson(statement.to)\n\t\t};\n\t\tcase \"valueObjectField\": return {\n\t\t\t...statement,\n\t\t\tfrom: coordinateJson(statement.from),\n\t\t\tto: coordinateJson(statement.to)\n\t\t};\n\t}\n}\n/** The subject as JSON output writes it. */\nfunction migrationSubjectJson(subject) {\n\tswitch (subject.kind) {\n\t\tcase \"model\": return {\n\t\t\tkind: \"model\",\n\t\t\t...coordinateJson({\n\t\t\t\tnamespaceId: subject.namespaceId,\n\t\t\t\tmodel: subject.model\n\t\t\t})\n\t\t};\n\t\tcase \"field\": return {\n\t\t\tkind: \"field\",\n\t\t\t...coordinateJson({\n\t\t\t\tnamespaceId: subject.namespaceId,\n\t\t\t\tmodel: subject.model,\n\t\t\t\tfield: subject.field\n\t\t\t})\n\t\t};\n\t\tcase \"enumValue\": return {\n\t\t\tkind: \"enumValue\",\n\t\t\t...coordinateJson({\n\t\t\t\tnamespaceId: subject.namespaceId,\n\t\t\t\tenum: subject.enum,\n\t\t\t\tmember: subject.member\n\t\t\t})\n\t\t};\n\t\tcase \"valueObjectField\": return {\n\t\t\tkind: \"valueObjectField\",\n\t\t\t...coordinateJson({\n\t\t\t\tnamespaceId: subject.namespaceId,\n\t\t\t\tvalueObject: subject.valueObject,\n\t\t\t\tfield: subject.field\n\t\t\t})\n\t\t};\n\t\tcase \"storage\": return subject;\n\t}\n}\nfunction qualifiedModelText(coordinate) {\n\treturn coordinate.namespaceId === \"__unbound__\" ? coordinate.model : `${coordinate.namespaceId}.${coordinate.model}`;\n}\n/**\n* The text that reports a statement, in domain names: a model or field is named with its\n* namespace only when its contract has more than one, and a model moved to another namespace always\n* is. A renamed field is named through its model as\n* the destination contract names it, as the statement itself is written.\n*/\nfunction describeMigrationStatement(statement, fromContract, contract) {\n\tif (statement.kind !== \"rename\") return describeDataStatement(statement, contract);\n\tif (statement.entity === \"namespace\") return `rename namespace \"${statement.from}\" to \"${statement.to}\"`;\n\tif (statement.entity === \"enumValue\") return `rename enum value \"${enumValueStatementText(fromContract, statement.from)}\" to \"${enumValueStatementText(contract, statement.to)}\"`;\n\tif (statement.entity === \"valueObjectField\") return `rename value object field \"${valueObjectFieldStatementText(fromContract, statement.from)}\" to \"${valueObjectFieldStatementText(contract, statement.to)}\"`;\n\tif (statement.entity === \"model\") {\n\t\tconst { from, to } = statement;\n\t\tif (from.namespaceId === to.namespaceId) return `rename model \"${modelStatementText(fromContract, from)}\" to \"${modelStatementText(contract, to)}\"`;\n\t\tif (from.model === to.model) return `move model \"${qualifiedModelText(from)}\" to namespace \"${to.namespaceId}\"`;\n\t\treturn `rename model \"${qualifiedModelText(from)}\" to \"${qualifiedModelText(to)}\"`;\n\t}\n\tconst model = modelStatementText(contract, statement.to);\n\treturn `rename field \"${model}.${statement.from.field}\" to \"${model}.${statement.to.field}\"`;\n}\nfunction describeDataStatement(statement, contract) {\n\tif (statement.entity === \"field\") return `${statement.kind} field \"${fieldStatementText(contract, statement.field)}\"`;\n\tif (statement.entity === \"valueObjectField\") return `${statement.kind} value object field \"${valueObjectFieldStatementText(contract, statement.field)}\"`;\n\tif (statement.kind === \"convert\") return `convert variant \"${modelStatementText(contract, statement.model)}\"`;\n\treturn statement;\n}\n//#endregion\n//#region src/control/order-issues-by-dependencies.ts\nconst PATH_DELIMITER = \" \";\nfunction pathKey(path) {\n\treturn path.join(PATH_DELIMITER);\n}\n/**\n* Whether an issue's op builds its subject up (create or alter) rather than\n* only tearing it down. The differ sets `expected` on every create (`not-found`)\n* and alter (`not-equal`) issue and leaves it absent on a pure drop\n* (`not-expected`). This is the single signal the ordering law reads for edge\n* direction — never `reason`.\n*/\nfunction buildsUp(issue) {\n\treturn issue.expected !== void 0;\n}\n/**\n* The nearest strict-ancestor bucket of `path` — the surviving parent entity a\n* child is contained by. Walks the path's proper prefixes from longest to\n* shortest and returns the first prefix that maps to a bucket; a gap (a prefix\n* with no bucket) is skipped so containment always attaches to the closest real\n* parent.\n*\n* Returns a list because a path prefix can be shared by two siblings of\n* different `nodeKind` (a role and a namespace named alike); linking the child\n* to every candidate over-constrains safely (the extra edge points at a same-\n* direction op and never forms a cycle, since a parent never depends on its\n* child) rather than risk picking the wrong one.\n*/\nfunction nearestAncestors(path, byPath) {\n\tfor (let end = path.length - 1; end >= 1; end -= 1) {\n\t\tconst bucket = byPath.get(pathKey(path.slice(0, end)));\n\t\tif (bucket !== void 0) return bucket;\n\t}\n\treturn [];\n}\n/**\n* Orders schema-diff issues so that every dependency's op precedes its\n* dependent on the way up and follows it on the way down, breaking ties\n* deterministically by path.\n*\n* Edges come from two sources:\n* - **`dependsOn` cross-links** — the resolved issue-to-issue paths the differ\n* mirrors onto each issue (a node's declared structural prerequisites). A\n* path that resolves to no issue in this list is skipped (the dependency is\n* satisfied by reality); a path shared by two same-id/different-kind siblings\n* links to every match, over-constraining safely.\n* - **containment** — every issue depends on its nearest strict-ancestor issue\n* (a child entity on the parent entity that owns it). Subtree coalescing has\n* already removed the descendants of a whole create/drop, so this only links\n* the parent/child pairs that legitimately survive together.\n*\n* The ordering law reads each dependent's presence for direction: an issue that\n* builds up (`expected` present — a create or alter) needs its dependency\n* first; a pure drop needs its dependent removed first, so the edge reverses.\n* The graph is a DAG by construction (dependencies point from dependents to\n* their prerequisites, and prerequisites never point back), so a cycle is a\n* derivation or authoring bug: the topological sort asserts acyclicity and\n* throws, naming the issues it could not place.\n*/\nfunction orderIssuesByDependencies(issues) {\n\tif (issues.length <= 1) return issues;\n\tconst nodes = issues.map((issue) => ({\n\t\tissue,\n\t\tkey: pathKey(issue.path),\n\t\tbuildsUp: buildsUp(issue),\n\t\toutgoing: /* @__PURE__ */ new Set(),\n\t\tinDegree: 0\n\t}));\n\tconst nodesByPath = /* @__PURE__ */ new Map();\n\tfor (const node of nodes) {\n\t\tconst bucket = nodesByPath.get(node.key);\n\t\tif (bucket === void 0) nodesByPath.set(node.key, [node]);\n\t\telse bucket.push(node);\n\t}\n\tconst addEdge = (before, after) => {\n\t\tif (before.outgoing.has(after)) return;\n\t\tbefore.outgoing.add(after);\n\t\tafter.inDegree += 1;\n\t};\n\tconst addDependency = (dependent, dependency) => {\n\t\tif (dependent === dependency) return;\n\t\tif (dependent.buildsUp) addEdge(dependency, dependent);\n\t\telse addEdge(dependent, dependency);\n\t};\n\tfor (const node of nodes) {\n\t\tfor (const targetPath of node.issue.dependsOn ?? []) for (const target of nodesByPath.get(pathKey(targetPath)) ?? []) addDependency(node, target);\n\t\tfor (const ancestor of nearestAncestors(node.issue.path, nodesByPath)) addDependency(node, ancestor);\n\t}\n\tconst ready = nodes.filter((node) => node.inDegree === 0);\n\tconst order = [];\n\twhile (ready.length > 0) {\n\t\tlet best;\n\t\tfor (const candidate of ready) if (best === void 0 || candidate.key < best.key) best = candidate;\n\t\tif (best === void 0) break;\n\t\tready.splice(ready.indexOf(best), 1);\n\t\torder.push(best);\n\t\tfor (const next of best.outgoing) {\n\t\t\tnext.inDegree -= 1;\n\t\t\tif (next.inDegree === 0) ready.push(next);\n\t\t}\n\t}\n\tif (order.length !== nodes.length) {\n\t\tconst placed = new Set(order);\n\t\tthrow new InternalError(`orderIssuesByDependencies: dependency cycle among schema-diff issues (unresolved: ${nodes.filter((node) => !placed.has(node)).map((node) => node.issue.path.join(\"/\")).join(\", \")})`);\n\t}\n\treturn order.map((node) => node.issue);\n}\n//#endregion\n//#region src/control/schema-diff.ts\n/**\n* The outcome an issue represents, discriminated by presence rather than any\n* stored field — the single source of truth every consumer reads. An issue\n* always carries at least one side by construction; neither is a malformed\n* issue and throws.\n*/\nfunction issueOutcome(issue) {\n\tconst hasExpected = issue.expected !== void 0;\n\tconst hasActual = issue.actual !== void 0;\n\tif (hasExpected && hasActual) return \"not-equal\";\n\tif (hasExpected) return \"not-found\";\n\tif (hasActual) return \"not-expected\";\n\tthrow new InternalError(`issueOutcome: issue at \"${issue.path.join(\"/\")}\" carries neither an expected nor an actual node`);\n}\nfunction siblingKey(node) {\n\treturn JSON.stringify([node.nodeKind, node.id]);\n}\nfunction insertNode(map, node) {\n\tconst key = siblingKey(node);\n\tif (map.has(key)) throw new InternalError(`diffSchemas: duplicate id among siblings: ${node.nodeKind}/${node.id}`);\n\tmap.set(key, node);\n}\nfunction emitMissingSubtree(node, parentPath) {\n\tconst path = [...parentPath, node.id];\n\treturn [{\n\t\tpath,\n\t\texpected: node,\n\t\t...ifDefined(\"explanation\", node.explainMismatch?.(void 0))\n\t}, ...node.children().flatMap((c) => emitMissingSubtree(c, path))];\n}\nfunction emitExtraSubtree(node, parentPath) {\n\tconst path = [...parentPath, node.id];\n\treturn [{\n\t\tpath,\n\t\tactual: node\n\t}, ...node.children().flatMap((c) => emitExtraSubtree(c, path))];\n}\n/**\n* Diff two schema trees starting from their roots.\n*\n* The differ is **total**: every node-level difference is reported. An unmatched\n* non-leaf node emits its own issue and descends, emitting an issue for every\n* node in the missing/extra subtree. Coalescing a parent change over its\n* children is the planner's responsibility. Ownership filtering (dropping `extra`\n* issues in namespaces a contract doesn't own) is the caller's responsibility.\n*/\nfunction diffSchemas(expected, actual) {\n\treturn mirrorDependsOnOntoIssues(diffPair(expected, actual, []));\n}\nfunction schemaNodeRefKey(ref) {\n\treturn JSON.stringify(ref.map((step) => step.id));\n}\nfunction issuePathKey(path) {\n\treturn JSON.stringify(path);\n}\nfunction terminalNodeKind(issue) {\n\treturn (issue.expected ?? issue.actual)?.nodeKind;\n}\n/**\n* Copies each issue's node's `dependsOn` refs onto the issue itself, as\n* issue-to-issue path references. A ref is kept only when some emitted issue\n* sits at that exact path AND that issue's node `nodeKind` matches the ref's\n* last step — otherwise the ref is dropped (its target either didn't\n* change, or was never part of either tree; either way the dependency is\n* satisfied by reality, not by an operation this diff will produce).\n*\n* The path index is a multimap: two siblings may share an `id` under\n* different `nodeKind`s (a role and a namespace named alike), so an id-path\n* alone is ambiguous. The ref's terminal `nodeKind` disambiguates — the ref\n* resolves only against a same-path issue whose own node carries that kind.\n*/\nfunction mirrorDependsOnOntoIssues(issues) {\n\tconst issuesByPath = /* @__PURE__ */ new Map();\n\tfor (const issue of issues) {\n\t\tconst key = issuePathKey(issue.path);\n\t\tconst bucket = issuesByPath.get(key);\n\t\tif (bucket === void 0) issuesByPath.set(key, [issue]);\n\t\telse bucket.push(issue);\n\t}\n\treturn issues.map((issue) => {\n\t\tconst refs = (issue.expected ?? issue.actual)?.dependsOn;\n\t\tif (refs === void 0 || refs.length === 0) return issue;\n\t\tconst dependsOn = refs.flatMap((ref) => {\n\t\t\tconst lastStep = ref[ref.length - 1];\n\t\t\tif (lastStep === void 0) return [];\n\t\t\tif (!(issuesByPath.get(schemaNodeRefKey(ref)) ?? []).some((c) => terminalNodeKind(c) === lastStep.nodeKind)) return [];\n\t\t\treturn [ref.map((step) => step.id)];\n\t\t});\n\t\tif (dependsOn.length === 0) return issue;\n\t\treturn {\n\t\t\t...issue,\n\t\t\tdependsOn\n\t\t};\n\t});\n}\nfunction diffPair(expected, actual, parentPath) {\n\tconst path = [...parentPath, expected.id];\n\tconst issues = [];\n\tif (!expected.isEqualTo(actual)) issues.push({\n\t\tpath,\n\t\texpected,\n\t\tactual,\n\t\t...ifDefined(\"explanation\", expected.explainMismatch?.(actual))\n\t});\n\tissues.push(...diffChildren(expected.children(), actual.children(), path));\n\treturn issues;\n}\n/**\n* Align one level of nodes by `(nodeKind, id)`; emit issues in input order\n* and recurse.\n*\n* A missing node emits one issue for itself and one for every node in its\n* subtree (total descent). Same for extra nodes. A matched pair recurses via\n* `diffPair`.\n*/\nfunction diffChildren(expected, actual, parentPath) {\n\tconst expectedMap = /* @__PURE__ */ new Map();\n\tfor (const node of expected) insertNode(expectedMap, node);\n\tconst actualMap = /* @__PURE__ */ new Map();\n\tfor (const node of actual) insertNode(actualMap, node);\n\tconst issues = [];\n\tfor (const [key, expectedNode] of expectedMap) {\n\t\tconst actualNode = actualMap.get(key);\n\t\tif (actualNode === void 0) issues.push(...emitMissingSubtree(expectedNode, parentPath));\n\t\telse issues.push(...diffPair(expectedNode, actualNode, parentPath));\n\t}\n\tfor (const [key, actualNode] of actualMap) if (!expectedMap.has(key)) issues.push(...emitExtraSubtree(actualNode, parentPath));\n\treturn issues;\n}\n/**\n* The result of diffing a contract's expected schema against the introspected\n* actual schema: one node-typed issue list. Carries no verdict, verification\n* tree, or counts — those are the verifier's own presentation, built from the\n* same underlying comparison.\n*\n* `TNode` is the concrete schema-IR node the issues carry; it defaults to\n* `DiffableNode`, so this is purely additive — a caller that wants the\n* concrete node opts in (the Postgres planner uses the concrete node type),\n* everyone else keeps the default unchanged.\n*/\nvar SchemaDiff = class SchemaDiff {\n\tissues;\n\tconstructor(issues) {\n\t\tthis.issues = issues;\n\t}\n\t/** Returns a new `SchemaDiff` narrowed to the issues `keep` returns true for. */\n\tfilter(keep) {\n\t\treturn new SchemaDiff(this.issues.filter(keep));\n\t}\n};\n//#endregion\n//#region src/control/runner-failure-why.ts\nconst OUTCOME_LABEL = {\n\t\"not-found\": \"missing\",\n\t\"not-expected\": \"extra\",\n\t\"not-equal\": \"mismatch\"\n};\n/** What a diff issue says: its outcome, its path, and its explanation when it has one. */\nfunction issueLabel(issue) {\n\tconst label = `${OUTCOME_LABEL[issueOutcome(issue)]}: ${issue.path.join(\"/\")}`;\n\treturn issue.explanation === void 0 ? label : `${label}. ${issue.explanation.text}`;\n}\n/** The issues of a failed schema check, as one sentence after `opening`. */\nfunction schemaIssuesWhy(opening, issues) {\n\treturn `${opening}: ${issues.map((issue) => issueLabel(issue).replace(/\\.$/, \"\")).join(\"; \")}.`;\n}\n/** The why of a failed schema check after apply, listing its issues when it found any. */\nfunction schemaCheckWhy(issues) {\n\treturn issues.length === 0 ? \"The resulting database schema does not satisfy the destination contract.\" : schemaIssuesWhy(\"The schema check after apply found\", issues);\n}\n/** What a failed check before an operation means: the operation, the check description as written, and what the check's expectation says of the database when it has one. */\nfunction failedPrecheckWhy(check) {\n\tconst checked = `Before operation ${check.operationId} runs, it checks: ${check.description}.`;\n\tconst { expectation } = check;\n\tif (expectation === void 0) return `${checked} That check failed on this database.`;\n\treturn expectation.expects === \"absent\" ? `${checked} That check failed: the database already has ${expectation.object}.` : `${checked} That check failed: the database has no ${expectation.object}.`;\n}\n/** What a failed check after an operation means: the operation, the check description as written, and what the check's expectation says of the database when it has one. */\nfunction failedPostcheckWhy(check) {\n\tconst checked = `After operation ${check.operationId} ran, it checks: ${check.description}.`;\n\tconst { expectation } = check;\n\tif (expectation === void 0) return `${checked} That check failed on this database.`;\n\treturn expectation.expects === \"absent\" ? `${checked} That check failed: the database still has ${expectation.object}.` : `${checked} That check failed: the database has no ${expectation.object}.`;\n}\n//#endregion\n//#region src/control/verifier-disposition.ts\n/**\n* Grades a target-neutral issue category against a control policy.\n*\n* - `observed` warns on everything.\n* - `tolerated` suppresses only an extra nested element (everything else fails).\n* - `external` suppresses every extra category and value drift (existence and\n* declared-shape divergences still fail).\n* - `managed` (and any other) fails.\n*/\nfunction dispositionForCategory(controlPolicy, category) {\n\tif (controlPolicy === \"observed\") return \"warn\";\n\tif (controlPolicy === \"tolerated\" && category === \"extraNestedElement\") return \"suppress\";\n\tif (controlPolicy === \"external\") {\n\t\tif (category === \"extraNestedElement\" || category === \"extraAuxiliary\" || category === \"extraTopLevelObject\" || category === \"valueDrift\") return \"suppress\";\n\t}\n\treturn \"fail\";\n}\n//#endregion\nexport { ACCESS_WIDENING_LEVELS, APP_SPACE_ID, CHANGE_STRATEGIES, CONTRACT_SNAPSHOTS_DIRNAME, DATABASE_POLICIES_KEYS, DATABASE_POLICIES_META_KEY, DATA_LOSS_LEVELS, DATA_PROTECTION_KEYS, DEFAULT_DATABASE_POLICIES, SchemaDiff, SchemaTreeNode, TAGGED_LITERAL_MAX_BYTES, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, compareMarkerDatabasePolicies, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, databasePoliciesMovedFailure, databasePoliciesOf, databasePolicyDifferences, databasePolicyValueText, describeMigrationStatement, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceHelperCodecInvariants, enumValueCoordinateFromJson, enumValueCoordinateJson, enumValueStatementText, expectAbsent, expectPresent, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractParameterizedOutputTypeImports, extractQueryOperationTypeImports, failedPostcheckWhy, failedPrecheckWhy, fieldStatementText, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, isRenameStatement, isStorageHashHex, issueLabel, issueOutcome, migrationRunnerFailure, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, modelStatementText, movedDatabasePoliciesWhy, orderIssuesByDependencies, parseDeclaredDatabasePolicies, planOriginOf, resolvePslBacktickEscapes, resolveTemplateTagEscapes, sameMarkerHashes, schemaCheckWhy, schemaIssuesWhy, storageHashHex, storedDatabasePolicies, timestampNowControlDescriptor, valueObjectFieldStatementText, withDatabaseUnchanged, withDeclaredDatabasePolicies, withFailingSpace };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;;;;;;;AAcA,SAAS,aAAa,QAAQ;CAC7B,OAAO;EACN,SAAS;EACT;CACD;AACD;AACA,SAAS,cAAc,QAAQ;CAC9B,OAAO;EACN,SAAS;EACT;CACD;AACD;AAGA,MAAM,6BAA6B;AACnC,MAAM,uBAAuB;;AAE7B,SAAS,iBAAiB,aAAa;CACtC,OAAO,qBAAqB,KAAK,WAAW;AAC7C;;AAEA,SAAS,eAAe,aAAa;CACpC,IAAI,CAAC,iBAAiB,WAAW,GAAG,MAAM,IAAI,cAAc,yBAAyB,YAAY,wCAAwC;CACzI,OAAO;AACR;;AAEA,SAAS,8BAA8B,qBAAqB,aAAa;CACxE,OAAO,GAAG,oBAAoB,GAAG,eAAe,WAAW,EAAE;AAC9D;;AAEA,SAAS,+BAA+B,qBAAqB,aAAa;CACzE,OAAO,GAAG,oBAAoB,GAAG,eAAe,WAAW,EAAE;AAC9D;AAGA,SAAS,cAAc,QAAQ;CAC9B,OAAO,gBAAgB,UAAU,CAAC,CAAC,OAAO;AAC3C;AACA,SAAS,cAAc,UAAU;CAChC,OAAO,kBAAkB,YAAY,OAAO,SAAS,oBAAoB;AAC1E;AACA,SAAS,oBAAoB,UAAU;CACtC,OAAO,sBAAsB,YAAY,OAAO,SAAS,wBAAwB;AAClF;AACA,SAAS,oBAAoB,UAAU;CACtC,OAAO,sBAAsB,YAAY,OAAO,QAAQ,IAAI,UAAU,kBAAkB,MAAM;AAC/F;AACA,SAAS,oBAAoB,UAAU;CACtC,OAAO,wBAAwB,YAAY,OAAO,SAAS,0BAA0B;AACtF;AACA,SAAS,2BAA2B,UAAU;CAC7C,OAAO,gCAAgC,YAAY,OAAO,SAAS,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AAE;AAC9F;;AAEA,SAAS,eAAe,QAAQ;CAC/B,OAAO,OAAO,WAAW,IAAI,6EAA6E,gBAAgB,sCAAsC,MAAM;AACvK;;AAEA,SAAS,kBAAkB,OAAO;CACjC,MAAM,UAAU,oBAAoB,MAAM,YAAY,oBAAoB,MAAM,YAAY;CAC5F,MAAM,EAAE,gBAAgB;CACxB,IAAI,gBAAgB,KAAK,GAAG,OAAO,GAAG,QAAQ;CAC9C,OAAO,YAAY,YAAY,WAAW,GAAG,QAAQ,+CAA+C,YAAY,OAAO,KAAK,GAAG,QAAQ,0CAA0C,YAAY,OAAO;AACrM;;AAEA,SAAS,mBAAmB,OAAO;CAClC,MAAM,UAAU,mBAAmB,MAAM,YAAY,mBAAmB,MAAM,YAAY;CAC1F,MAAM,EAAE,gBAAgB;CACxB,IAAI,gBAAgB,KAAK,GAAG,OAAO,GAAG,QAAQ;CAC9C,OAAO,YAAY,YAAY,WAAW,GAAG,QAAQ,6CAA6C,YAAY,OAAO,KAAK,GAAG,QAAQ,0CAA0C,YAAY,OAAO;AACnM;;;;;;;;;;AAYA,SAAS,uBAAuB,eAAe,UAAU;CACxD,IAAI,kBAAkB,YAAY,OAAO;CACzC,IAAI,kBAAkB,eAAe,aAAa,sBAAsB,OAAO;CAC/E,IAAI,kBAAkB,YACjB;MAAA,aAAa,wBAAwB,aAAa,oBAAoB,aAAa,yBAAyB,aAAa,cAAc,OAAO;CAAA;CAEnJ,OAAO;AACR"}
@@ -0,0 +1 @@
1
+ import "./control-BeXOxtXA-CoPQgVyR.mjs";
@@ -15,6 +15,107 @@ 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
18
+ //#region src/control/database-policies.d.ts
19
+ declare const CHANGE_STRATEGIES: readonly ["migrate", "reconcile"];
20
+ declare const DATA_LOSS_LEVELS: readonly ["data-loss-forbidden", "data-loss-with-consent", "data-loss-permitted"];
21
+ declare const ACCESS_WIDENING_LEVELS: readonly ["access-widening-forbidden", "access-widening-with-consent", "access-widening-permitted"];
22
+ /** How a database may change: through migrations (`migrate`), through `db update` (`reconcile`), or both. */
23
+ type ChangeStrategy = (typeof CHANGE_STRATEGIES)[number];
24
+ type DataLossLevel = (typeof DATA_LOSS_LEVELS)[number];
25
+ type AccessWideningLevel = (typeof ACCESS_WIDENING_LEVELS)[number];
26
+ /** The policies in force on a database, every setting filled. */
27
+ interface DatabasePolicies {
28
+ readonly change: readonly ChangeStrategy[];
29
+ readonly dataProtection: {
30
+ readonly dataLoss: DataLossLevel;
31
+ readonly accessWidening: AccessWideningLevel;
32
+ };
33
+ }
34
+ /** What a ref declares: every key optional; an absent key declares nothing. */
35
+ interface DeclaredDatabasePolicies {
36
+ readonly change?: readonly ChangeStrategy[];
37
+ readonly dataProtection?: {
38
+ readonly dataLoss?: DataLossLevel;
39
+ readonly accessWidening?: AccessWideningLevel;
40
+ };
41
+ }
42
+ /** The keys a policy declaration may carry; any other key makes it invalid. */
43
+ declare const DATABASE_POLICIES_KEYS: readonly ["change", "dataProtection"];
44
+ /** The keys a policy declaration's `dataProtection` may carry; any other key makes it invalid. */
45
+ declare const DATA_PROTECTION_KEYS: readonly ["dataLoss", "accessWidening"];
46
+ /** The key of the marker's `meta` that holds the database's policies. */
47
+ declare const DATABASE_POLICIES_META_KEY = "policies";
48
+ declare const DEFAULT_DATABASE_POLICIES: DatabasePolicies;
49
+ /** `inForce` with every setting `declared` carries laid over it. */
50
+ declare function withDeclaredDatabasePolicies(inForce: DatabasePolicies, declared: DeclaredDatabasePolicies): DatabasePolicies;
51
+ /** One way a policy declaration is invalid: the key path of the field, empty for the whole declaration, and what is wrong with it. */
52
+ interface DeclaredDatabasePoliciesIssue {
53
+ readonly path: string;
54
+ readonly problem: string;
55
+ }
56
+ /** Reads a policy declaration, as a ref declares it and a marker records it, rejecting any value the declaration may not hold. */
57
+ declare function parseDeclaredDatabasePolicies(value: unknown): Result<DeclaredDatabasePolicies, readonly DeclaredDatabasePoliciesIssue[]>;
58
+ /** Why a marker's recorded policies cannot be read. */
59
+ interface DatabasePoliciesUnreadable {
60
+ readonly why: string;
61
+ }
62
+ /**
63
+ * The policies in force on a database whose application space's marker is `marker`: what it
64
+ * records, with every absent setting taken from {@link DEFAULT_DATABASE_POLICIES}.
65
+ */
66
+ declare function databasePoliciesOf(marker: ContractMarkerRecord | null | undefined): Result<DatabasePolicies, DatabasePoliciesUnreadable>;
67
+ /** A setting whose value differs between two sets of policies, named by its key path in a ref's `policies`. */
68
+ type DatabasePolicyDifference = {
69
+ readonly setting: 'change';
70
+ readonly declared: readonly ChangeStrategy[];
71
+ readonly inForce: readonly ChangeStrategy[];
72
+ } | {
73
+ readonly setting: 'dataProtection.dataLoss';
74
+ readonly declared: DataLossLevel;
75
+ readonly inForce: DataLossLevel;
76
+ } | {
77
+ readonly setting: 'dataProtection.accessWidening';
78
+ readonly declared: AccessWideningLevel;
79
+ readonly inForce: AccessWideningLevel;
80
+ };
81
+ /** The settings `declared` carries whose value differs from the one in force, in a fixed order. */
82
+ declare function databasePolicyDifferences(declared: DeclaredDatabasePolicies, inForce: DatabasePolicies): readonly DatabasePolicyDifference[];
83
+ /** How the policies a marker records compare with those a caller checked. */
84
+ type MarkerDatabasePoliciesComparison = {
85
+ readonly kind: 'held';
86
+ } | {
87
+ readonly kind: 'moved';
88
+ readonly found: DatabasePolicies;
89
+ } | {
90
+ readonly kind: 'unreadable';
91
+ readonly why: string;
92
+ };
93
+ /**
94
+ * Compares the policies `marker` records with `checked`, as a runner checks under its lock that the
95
+ * policies a caller checked are still those in force.
96
+ */
97
+ declare function compareMarkerDatabasePolicies(marker: ContractMarkerRecord | null | undefined, checked: DatabasePolicies): MarkerDatabasePoliciesComparison;
98
+ /** A policy setting's value as messages print it: change strategies comma-separated. */
99
+ declare function databasePolicyValueText(value: DatabasePolicyDifference['declared']): string;
100
+ /** Why the policies `actor` checked no longer hold: each setting that moved, from the value checked to the value found. */
101
+ declare function movedDatabasePoliciesWhy(actor: string, checked: DatabasePolicies, found: DatabasePolicies): string;
102
+ /**
103
+ * `MIGRATION.MARKER_CAS_FAILURE` for a run whose checked policies moved before it changed anything:
104
+ * the meta carries the policies checked and found, not the marker's hashes.
105
+ */
106
+ declare function databasePoliciesMovedFailure(checked: DatabasePolicies, found: DatabasePolicies): MigrationRunnerFailure & {
107
+ readonly code: 'MIGRATION.MARKER_CAS_FAILURE';
108
+ };
109
+ /** The policies as a marker stores them under {@link DATABASE_POLICIES_META_KEY}: plain JSON. */
110
+ interface StoredDatabasePolicies {
111
+ readonly change: ChangeStrategy[];
112
+ readonly dataProtection: {
113
+ readonly dataLoss: DataLossLevel;
114
+ readonly accessWidening: AccessWideningLevel;
115
+ };
116
+ }
117
+ declare function storedDatabasePolicies(policies: DatabasePolicies): StoredDatabasePolicies;
118
+ //#endregion
18
119
  //#region src/control/schema-diff.d.ts
19
120
  /**
20
121
  * A root-anchored chain of `(nodeKind, id)` steps identifying a node in a
@@ -269,13 +370,27 @@ type SpaceSigned = {
269
370
  /**
270
371
  * A space whose marker did not hold `expected`, the hashes the caller read before it verified the space, when the family came to write it. `found` is what the marker held instead. The marker was left as it was.
271
372
  */
272
- interface SpaceMarkerConflict {
373
+ interface SpaceMarkerHashConflict {
273
374
  readonly status: 'conflict';
375
+ readonly reason: 'storageHash';
274
376
  readonly space: string;
275
377
  readonly contract: MarkerHashes;
276
378
  readonly expected: MarkerHashes | null;
277
379
  readonly found: MarkerHashes | null;
278
380
  }
381
+ /**
382
+ * The application space's marker no longer records the policies the caller checked: another process changed them, or they cannot be read. The family signs no space after it finds this, and leaves the marker as it was.
383
+ */
384
+ interface SpaceDatabasePoliciesConflict {
385
+ readonly status: 'conflict';
386
+ readonly reason: 'databasePolicies';
387
+ readonly space: string;
388
+ readonly checked: DatabasePolicies;
389
+ readonly comparison: Exclude<MarkerDatabasePoliciesComparison, {
390
+ readonly kind: 'held';
391
+ }>;
392
+ }
393
+ type SpaceMarkerConflict = SpaceMarkerHashConflict | SpaceDatabasePoliciesConflict;
279
394
  /** What signing did to one contract space's marker. */
280
395
  type SpaceSignature = SpaceSigned | SpaceMarkerConflict;
281
396
  //#endregion
@@ -324,6 +439,10 @@ interface ControlFamilyInstance<TFamilyId extends string, TSchemaIR> extends Fam
324
439
  signSpaces(options: {
325
440
  readonly driver: ControlDriverInstance<TFamilyId, string>;
326
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;
327
446
  }): Promise<readonly SpaceSignature[]>;
328
447
  /**
329
448
  * Reads the contract marker for `space` from the database, returning
@@ -1299,6 +1418,8 @@ interface MigrationRunnerPerSpaceOptions<TFamilyId extends string = string, TTar
1299
1418
  readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
1300
1419
  readonly destinationContract: unknown;
1301
1420
  readonly policy: MigrationOperationPolicy;
1421
+ /** When set, the marker update at the end of the run records these as the database's policies. */
1422
+ readonly databasePolicies?: DatabasePolicies;
1302
1423
  readonly executionChecks?: MigrationRunnerExecutionChecks;
1303
1424
  readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
1304
1425
  /**
@@ -1343,6 +1464,12 @@ interface MigrationRunner<TFamilyId extends string = string, TTargetId extends s
1343
1464
  execute(options: {
1344
1465
  readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
1345
1466
  readonly perSpaceOptions: ReadonlyArray<MigrationRunnerPerSpaceOptions<TFamilyId, TTargetId>>;
1467
+ /**
1468
+ * The database's policies as the caller saw them when it checked the run. Once it holds its
1469
+ * lock, and before it applies the first space, the runner compares them with the application
1470
+ * space's marker and fails the run as a concurrent change when they differ.
1471
+ */
1472
+ readonly expectedDatabasePolicies?: DatabasePolicies;
1346
1473
  }): Promise<MigrationRunnerResult>;
1347
1474
  }
1348
1475
  /**
@@ -1905,6 +2032,18 @@ interface SchemaSubjectClassifierCapable {
1905
2032
  }
1906
2033
  declare function hasSchemaSubjectClassifier<TFamilyId extends string, TSchemaIR>(instance: ControlFamilyInstance<TFamilyId, TSchemaIR>): instance is ControlFamilyInstance<TFamilyId, TSchemaIR> & SchemaSubjectClassifierCapable;
1907
2034
  //#endregion
2035
+ //#region src/control/marker-destination.d.ts
2036
+ /** What a marker write records for a space. */
2037
+ interface MarkerDestination {
2038
+ readonly storageHash: string;
2039
+ readonly profileHash: string;
2040
+ /** Written verbatim when supplied, merged with the stored ones by an update; left as stored when omitted. */
2041
+ readonly invariants?: readonly string[];
2042
+ /** Recorded in `meta.policies` when supplied; the rest of `meta` is left as stored. */
2043
+ readonly databasePolicies?: DatabasePolicies;
2044
+ }
2045
+ type MarkerInsert = Pick<MarkerDestination, 'storageHash' | 'profileHash' | 'invariants'>;
2046
+ //#endregion
1908
2047
  //#region src/control/order-issues-by-dependencies.d.ts
1909
2048
  /**
1910
2049
  * Orders schema-diff issues so that every dependency's op precedes its
@@ -2015,5 +2154,5 @@ type VerifierIssueCategory = 'declaredMissing' | 'declaredIncompatible' | 'value
2015
2154
  */
2016
2155
  declare function dispositionForCategory(controlPolicy: ControlPolicy, category: VerifierIssueCategory): VerifierOutcome;
2017
2156
  //#endregion
2018
- export { MigrationPlanWithAuthoringSurface as $, hasSchemaView as $n, SchemaSubjectClassifierCapable as $t, FailedCast as A, createControlStack as An, PslContractInferCapable as At, MigratableTargetDescriptor as B, extractCodecLookup as Bn, ResolvedValueObjectFieldBackfillStatement as Bt, CreateControlStackInput as C, VerifyDatabaseSchemaResult as Cn, OperationContext as Ct, EnumValueCoordinate as D, buildExtensionLoadOrder as Dn, PlanOrigin as Dt, EmitContractResult as E, assertUniqueCodecOwner as En, OperationPreviewStatement as Et, FieldCoordinateJson as F, enumValueCoordinateFromJson as Fn, ResolvedFieldRenameStatement as Ft, MigrationOperationClass as G, failedPostcheckWhy as Gn, RowsWithoutValue as Gt, MigrationDataLoss as H, extractComponentIds as Hn, ResolvedVariantConvertStatement as Ht, HelperCodecInvariantInput as I, enumValueCoordinateJson as In, ResolvedMigrationStatement as It, MigrationPackage as J, hasMigrations as Jn, SchemaEntityCoordinate as Jt, MigrationOperationPolicy as K, failedPrecheckWhy as Kn, SchemaDiff as Kt, IntrospectSchemaResult as L, enumValueStatementText as Ln, ResolvedModelRenameStatement as Lt, FailedConversion as M, diffSchemas as Mn, ResolvedEnumValueRenameStatement as Mt, FailedTypeChange as N, dispositionForCategory as Nn, ResolvedFieldBackfillStatement as Nt, EnumValueCoordinateJson as O, contractSnapshotJsonSpecifier as On, PslContractBuildCapable as Ot, FieldCoordinate as P, enforceHelperCodecInvariants as Pn, ResolvedFieldConvertStatement as Pt, MigrationPlanSubjects as Q, hasSchemaSubjectClassifier as Qn, SchemaOwnership as Qt, KeepDataEdit as R, expectAbsent as Rn, ResolvedNamespaceRenameStatement as Rt, CoreSchemaView as S, VerifyDatabaseResult as Sn, OpFactoryCall as St, DiffableNode as T, assembleControlMutationDefaults as Tn, OperationPreviewCapable as Tt, MigrationDataLossKind as U, extractParameterizedOutputTypeImports as Un, RowsFailingCheck as Ut, MigrationAccessChange as V, extractCodecTypeImports as Vn, ResolvedValueObjectFieldRenameStatement as Vt, MigrationMetadata as W, extractQueryOperationTypeImports as Wn, RowsHoldingValue as Wt, MigrationPlanNamespaces as X, hasPslContractBuild as Xn, SchemaLabelPartRole as Xt, MigrationPlan as Y, hasOperationPreview as Yn, SchemaLabelPart as Yt, MigrationPlanOperation as Z, hasPslContractInfer as Zn, SchemaNodeRef as Zt, ControlFamilyDescriptor as _, ValueObjectFieldCoordinate as _n, withDatabaseUnchanged as _r, MigrationTemporaryValue as _t, CONTRACT_SNAPSHOTS_DIRNAME as a, SchemaVerifyResult as an, migrationStatementJson as ar, MigrationRunner as at, ControlTargetDescriptor as b, VerifierIssueCategory as bn, ModelCoordinate as bt, ContractSpace as c, SpaceMarkerConflict as cn, modelDisplayName as cr, MigrationRunnerFailureMeta as ct, ControlAdapterInstance as d, SpaceToSign as dn, planOriginOf as dr, MigrationRunnerResult as dt, SchemaTreeNode as en, isRenameStatement as er, MigrationPlanner as et, ControlDriverConnectOptions as f, TargetMigrationsCapability as fn, sameMarkerHashes as fr, MigrationRunnerSuccessValue as ft, ControlExtensionInstance as g, VERIFY_CODE_TARGET_MISMATCH as gn, valueObjectFieldStatementText as gr, MigrationSubjectJson as gt, ControlExtensionDescriptor as h, VERIFY_CODE_SCHEMA_FAILURE as hn, storageHashHex as hr, MigrationSubject as ht, BlockingObject as i, SchemaVerifyOptions as in, migrationRunnerFailure as ir, MigrationPlannerSuccessResult as it, FailedCheck as j, describeMigrationStatement as jn, PslSourceSettings as jt, ExpectationFailureReason as k, contractSnapshotTypesSpecifier as kn, PslContractDocument as kt, ContractSpaceHeadRef as l, SpaceSignature as ln, modelStatementText as lr, MigrationRunnerPerSpaceOptions as lt, ControlDriverInstance as m, VERIFY_CODE_MARKER_MISSING as mn, schemaIssuesWhy as mr, MigrationStatementJson as mt, AppliedMigrationStatement as n, SchemaTreeVisitor as nn, issueLabel as nr, MigrationPlannerFailureResult as nt, CheckExpectation as o, SchemaViewCapable as on, migrationSubjectJson as or, MigrationRunnerExecutionChecks as ot, ControlDriverDescriptor as p, VERIFY_CODE_HASH_MISMATCH as pn, schemaCheckWhy as pr, MigrationScaffoldContext as pt, MigrationOperationSubject as q, fieldStatementText as qn, SchemaDiffIssue as qt, AssembledAuthoringContributions as r, SchemaVerifier as rn, issueOutcome as rr, MigrationPlannerResult as rt, ContractSerializer as s, SchemaViewNodeKind as sn, migrationSubjectKey as sr, MigrationRunnerFailure as st, APP_SPACE_ID as t, SchemaTreeNodeOptions as tn, isStorageHashHex as tr, MigrationPlannerConflict as tt, ControlAdapterDescriptor as u, SpaceSigned as un, orderIssuesByDependencies as ur, MigrationRunnerPerSpaceSuccessValue as ut, ControlFamilyInstance as v, ValueObjectFieldCoordinateJson as vn, withFailingSpace as vr, MismatchCause as vt, DiffSubjectGranularity as w, assembleAuthoringContributions as wn, OperationPreview as wt, ControlTargetInstance as x, VerifierOutcome as xn, ModelCoordinateJson as xt, ControlStack as y, VerificationStatus as yn, MismatchExplanation as yt, MarkerHashes as z, expectPresent as zn, ResolvedRenameStatement as zt };
2019
- //# sourceMappingURL=control-D1zV_XXw.d.mts.map
2157
+ 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-B3QHYJcv.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;;;UAG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Ae,cAAc,iBAAiB,gBAAgB,oBAAoB,gBAAgB;;;;iBAI1I,WAAW,OAAO;;iBAElB,gBAAgB,iBAAiB,iBAAiB;;iBAElD,eAAe,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"}
@@ -1,5 +1,5 @@
1
1
  import { a as StructuredError, i as NextAction, r as Diagnostic } from "./structured-error-Cc7AIRsp.mjs";
2
- import { It as ResolvedMigrationStatement } from "./control-D1zV_XXw.mjs";
2
+ import { $t as ResolvedMigrationStatement } from "./control-B3QHYJcv.mjs";
3
3
  //#region ../../../1-framework/1-core/errors/dist/control-BeXOxtXA.d.mts
4
4
  //#region src/control.d.ts
5
5
  /**
@@ -272,4 +272,4 @@ declare function errorUnexpected(message: string, options?: {
272
272
  }): CliStructuredError;
273
273
  //#endregion
274
274
  export { errorOutputFormatMutex as C, errorUnexpected as E, errorMigrationPlanningFailed as S, errorTargetMigrationNotSupported as T, errorInvalidOutputFormat as _, errorConfigEvaluationFailed as a, errorMigrationCliInvalidConfigArg as b, errorConfigVersionMarkerMissing as c, errorContractValidationFailed as d, errorDatabaseConnectionRequired as f, errorFileNotFound as g, errorFamilyReadMarkerSqlRequired as h, CliStructuredError as i, errorContractConfigMissing as l, errorEnumCodecNotInPackStack as m, CliErrorConflict as n, errorConfigFileNotFound as o, errorDriverRequired as p, CliErrorEnvelope as r, errorConfigValidation as s, CheckedMigrationConfig as t, errorContractMissingExtensions as u, errorJsonFormatNotSupported as v, errorQueryRunnerFactoryRequired as w, errorMigrationCliUnknownFlag as x, errorMigrationCliConfigNotFound as y };
275
- //# sourceMappingURL=control-BeXOxtXA-DWrnvd6v.d.mts.map
275
+ //# sourceMappingURL=control-BeXOxtXA-CoPQgVyR.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-BeXOxtXA-DWrnvd6v.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-BeXOxtXA.d.mts"],"mappings":";;;;;;;;;;;;;;;;UAeU;WACC;WACA;WACA;WACA;WACA;WACA;WACA,sBAAsB;WACtB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;WAEA,mBAAmB;;WAEnB,oBAAoB;;WAEpB,WAAW,SAAS;aAClB;;;;;;;;;;;;;;cAcC,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA,uBAAuB;WACvB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA,uBAAuB;aACvB,uBAAuB;aACvB;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;;;;EAQX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,4BAA4B,gCAAgC;WAClE;WACA;IACP;;;;;;iBAMa,gCAAgC,sBAAsB;;;;iBAItD,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;WAEF;;WAEA,OAAO;IACd;;;;iBAIa,kBAAkB,kBAAkB;WAC1C;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;iBAIa,4BAA4B;WAClC;WACA;WACA;IACP;;;;iBAIa,oBAAoB;WAC1B;IACP;;;;iBAIa,+BAA+B;WACrC;WACA;IACP;;;;iBAIa,6BAA6B;WACnC,oBAAoB;WACpB;IACP;WACO;;;;;iBAKM,iCAAiC;WACvC;IACP;;UAEM;WACC;WACA;WACA;;;;;iBAKM,gCAAgC;WACtC;WACA,kBAAkB;IACzB;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;WACA;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;WACA,OAAO;WACP;IACP"}
1
+ {"version":3,"file":"control-BeXOxtXA-CoPQgVyR.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-BeXOxtXA.d.mts"],"mappings":";;;;;;;;;;;;;;;;UAeU;WACC;WACA;WACA;WACA;WACA;WACA;WACA,sBAAsB;WACtB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;WAEA,mBAAmB;;WAEnB,oBAAoB;;WAEpB,WAAW,SAAS;aAClB;;;;;;;;;;;;;;cAcC,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA,uBAAuB;WACvB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA,uBAAuB;aACvB,uBAAuB;aACvB;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;;;;EAQX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,4BAA4B,gCAAgC;WAClE;WACA;IACP;;;;;;iBAMa,gCAAgC,sBAAsB;;;;iBAItD,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;WAEF;;WAEA,OAAO;IACd;;;;iBAIa,kBAAkB,kBAAkB;WAC1C;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;iBAIa,4BAA4B;WAClC;WACA;WACA;IACP;;;;iBAIa,oBAAoB;WAC1B;IACP;;;;iBAIa,+BAA+B;WACrC;WACA;IACP;;;;iBAIa,6BAA6B;WACnC,oBAAoB;WACpB;IACP;WACO;;;;;iBAKM,iCAAiC;WACvC;IACP;;UAEM;WACC;WACA;WACA;;;;;iBAKM,gCAAgC;WACtC;WACA,kBAAkB;IACzB;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;WACA;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;WACA,OAAO;WACP;IACP"}
@@ -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 { W as migrationStatementJson } from "./control-DzRwUDn-.mjs";
4
+ import { nt as migrationStatementJson } from "./control-B0KO727Y.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-7F84gYuT.mjs.map
382
+ //# sourceMappingURL=control-MllEQmML-IlhSvGbE.mjs.map