@prisma/orm-framework 8.0.0-rc.14-dev.21 → 8.0.0-rc.14-dev.23
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.
- package/dist/{binder-CGmSEQPU-Bn32vwiq.d.mts → binder-CGmSEQPU-B7utUHdi.d.mts} +4 -4
- package/dist/{binder-CGmSEQPU-Bn32vwiq.d.mts.map → binder-CGmSEQPU-B7utUHdi.d.mts.map} +1 -1
- package/dist/{codec-DOPctnmd.mjs → codec-B3lumsVx.mjs} +2 -2
- package/dist/{codec-DOPctnmd.mjs.map → codec-B3lumsVx.mjs.map} +1 -1
- package/dist/components.d.mts +2 -2
- package/dist/components.mjs +1 -1
- package/dist/components__codec.mjs +1 -1
- package/dist/components__control.d.mts +2 -2
- package/dist/{config-types-DDNiQ3jk.d.mts → config-types-D5MpuJlm.d.mts} +2 -2
- package/dist/{config-types-DDNiQ3jk.d.mts.map → config-types-D5MpuJlm.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/{control-B059zyD4.d.mts → control-DgoyiMYQ.d.mts} +2 -2
- package/dist/{control-B059zyD4.d.mts.map → control-DgoyiMYQ.d.mts.map} +1 -1
- package/dist/{dist-DUlexZHp.mjs → dist-DtT9I2iL.mjs} +42 -19
- package/dist/dist-DtT9I2iL.mjs.map +1 -0
- package/dist/errors.d.mts +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/{execution-NKU9_mZ4.d.mts → execution-BbJTSuvJ.d.mts} +2 -2
- package/dist/{execution-NKU9_mZ4.d.mts.map → execution-BbJTSuvJ.d.mts.map} +1 -1
- package/dist/{index-CDk9yEbw.d.mts → index-DeSumOoq.d.mts} +18 -3
- package/dist/index-DeSumOoq.d.mts.map +1 -0
- package/dist/{parse-eSQ_clQv-Dd2RdJRb.d.mts → parse-eSQ_clQv-D2Mtj0WV.d.mts} +3 -3
- package/dist/{parse-eSQ_clQv-Dd2RdJRb.d.mts.map → parse-eSQ_clQv-D2Mtj0WV.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +3 -3
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__interpret.d.mts +3 -3
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/ts-render.d.mts +2 -2
- package/dist/ts-render.mjs +2 -2
- package/package.json +15 -15
- package/dist/dist-DUlexZHp.mjs.map +0 -1
- package/dist/index-CDk9yEbw.d.mts.map +0 -1
|
@@ -4,10 +4,10 @@ import { i as ControlMutationDefaults } from "./mutation-default-types-ZfKqVdmf-
|
|
|
4
4
|
import { o as TaggedLiteralCanonicalization } from "./temporal-presets-DKHiZVPP-DLAr--Pb.mjs";
|
|
5
5
|
import "./authoring-CQOFIHhF.mjs";
|
|
6
6
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
7
|
-
import "./control-
|
|
7
|
+
import "./control-DgoyiMYQ.mjs";
|
|
8
8
|
import "./psl-ast-DA_tKWiL.mjs";
|
|
9
|
-
import { n as ContractSourceContext } from "./config-types-
|
|
10
|
-
import { D as NamedTypeDeclarationAst, E as ModelDeclarationAst, L as PslDiagnostic, N as ParseDiagnostic, O as NamespaceDeclarationAst, T as ModelAttributeAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, q as SyntaxNode, z as PslSources } from "./parse-eSQ_clQv-
|
|
9
|
+
import { n as ContractSourceContext } from "./config-types-D5MpuJlm.mjs";
|
|
10
|
+
import { D as NamedTypeDeclarationAst, E as ModelDeclarationAst, L as PslDiagnostic, N as ParseDiagnostic, O as NamespaceDeclarationAst, T as ModelAttributeAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, q as SyntaxNode, z as PslSources } from "./parse-eSQ_clQv-D2Mtj0WV.mjs";
|
|
11
11
|
import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
|
|
12
12
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-CGmSEQPU.d.mts
|
|
13
13
|
//#region src/resolve.d.ts
|
|
@@ -452,4 +452,4 @@ declare function contributedTypeOf(resolution: Resolution | undefined, binder: B
|
|
|
452
452
|
declare function createBinder(input: CreateBinderInput): BinderResult;
|
|
453
453
|
//#endregion
|
|
454
454
|
export { NullArgType as $, EntityDeclaration as A, UnrestrictedNumArgType as At, FuncCallSig as B, memberEntries as Bt, ContributedTypeScope as C, SymbolTable as Ct, DeclarationFor as D, TypedFuncCall as Dt, CtxOf as E, TopLevelScope as Et, FieldSymbol as F, createBinder as Ft, JsonArgType as G, typeReferenceNode as Gt, InferAttr as H, readResolvedAttribute as Ht, FixedIdentifierArgType as I, entityReference as It, ModelAttributeCtx as J, JsonValueArgType as K, FixedNumArgType as L, isNamespaceLike as Lt, EntitySelector as M, UnsupportedAttribute as Mt, FieldAttributeCtx as N, buildSymbolTable as Nt, DescribeUnresolvedType as O, UnresolvedTypeReference as Ot, FieldRefArgType as P, contributedTypeOf as Pt, NamespaceSymbol as Q, FixedStrArgType as R, keywordPslSpan as Rt, ContributedTypeNamespace as S, ScopeResolution as St, CreateBinderInput as T, TaggedLiteralArgType as Tt, InspectableArgType as U, readResolvedAttributes as Ut, IdentifierArgType as V, nodePslSpan as Vt, IntArgType as W, readResolvedConstructorCall as Wt, NamedOut as X, ModelSymbol as Y, NamedTypeSymbol as Z, CompositeTypeSymbol as _, ResolvedAttributeArg as _t, AttributeLevel as a, PSL_UNRESOLVED_REFERENCE as at, ContributedNamespaceSymbol as b, ResolvedTypeConstructorCall as bt, AttributeSymbol as c, PosOut as ct, BinderResult as d, RecordArgType as dt, NumLiteral as et, BlockAttributeCtx as f, ReferencedFieldRefArgType as ft, BuildSymbolTableOptions as g, ResolvedAttribute as gt, BoundSpec as h, Resolution as ht, AttributeCtx as i, OutOf as it, EntityRefArgType as j, UnrestrictedStrArgType as jt, DescribeUnsupportedAttribute as k, UnrestrictedIdentifierArgType as kt, Binder as l, PositionalParam as lt, BoolArgType as m, RequiredContextFor as mt, ArgType as n, OneOfArgType as nt, AttributeOut as o, Param as ot, BlockSymbol as p, RejectingArgType as pt, ListArgType as q, ArgTypeKind as r, OptionalArgType as rt, AttributeSpec as s, ParsedTaggedLiteral as st, AnyArgType as t, NumLiteralArgType as tt, BinderContext as u, PslSymbol as ut, ContextForRequirement as v, ResolvedEntityReference as vt, ContributedTypeSymbol as w, SymbolTableResult as wt, ContributedTypeDescriptor as x, Scope as xt, ContributedMember as y, ResolvedNamedTypeBinding as yt, FuncCallArgType as z, matchesSelector as zt };
|
|
455
|
-
//# sourceMappingURL=binder-CGmSEQPU-
|
|
455
|
+
//# sourceMappingURL=binder-CGmSEQPU-B7utUHdi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binder-CGmSEQPU-
|
|
1
|
+
{"version":3,"file":"binder-CGmSEQPU-B7utUHdi.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/binder-CGmSEQPU.d.mts"],"mappings":";;;;;;;;;;;;;UASU;WACC;WACA;WACA;WACA,aAAa;WACb,MAAM;;UAEP,kBAAkB,cAAc,oBAAoB,oBAAoB,oBAAoB;WAC3F;WACA,eAAe;WACf,MAAM;WACN,MAAM;;UAEP;WACC;WACA,eAAe;WACf,MAAM;;iBAEA,sBAAsB,cAAc,oBAAoB,mBAAmB,WAAW,OAAO,SAAS,aAAa,kBAAkB;iBACrI,uBAAuB,cAAc,oBAAoB,mBAAmB,YAAY,SAAS,QAAQ,SAAS,sBAAsB,kBAAkB;iBAC1J,4BAA4B,YAAY,+BAA+B,SAAS,aAAa;iBAC7F,YAAY,MAAM,YAAY,SAAS,aAAa;;iBAEpD,eAAe,MAAM,YAAY,iBAAiB,SAAS,aAAa;;;UAG/E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Y;;WAEZ;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;uBAEI;qBACF,QAAQ;EAC3B,YAAY,QAAQ;WACX,OAAO,eAAe;qBACZ,YAAY;EAC/B,WAAW,2BAA2B;;iBAEvB,gBAAgB,YAAY,kBAAkB,cAAc,QAAQ;EACnF;;iBAEe,cAAc,WAAW,QAAQ;EAChD;KACG,2BAA2B;;;cAGlB;KACT,YAAY,qBAAqB,qBAAqB,qBAAqB;UACtE;WACC;WACA;WACA;WACA,MAAM;;KAEZ,YAAY,cAAc,sBAAsB,kBAAkB,cAAc,kBAAkB;KAClG,aAAa;WACP;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;;WAEA;WACA;;UAED;EACR,eAAe,MAAM,aAAa;EAClC,cAAc,MAAM,aAAa;EACjC,QAAQ,MAAM,aAAa;;UAEnB;WACC,WAAW;WACX;WACA,OAAO,cAAc;WACrB,OAAO;;KAEb,gCAAgC,aAAa,yBAAyB;UACjE;WACC,OAAO;WACP,OAAO,cAAc;WACrB;;KAEN,0BAA0B,YAAY;UACjC,sBAAsB,KAAK;WAC1B,yBAAyB,KAAK;;UAE/B;WACC,SAAS;WACT,aAAa;WACb,SAAS;;UAEV;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,kBAAkB,QAAQ,cAAc,kBAAkB;iBAC1D,kBAAkB,YAAY,wBAAwB,QAAQ,SAAS;iBACvE,aAAa,OAAO,oBAAoB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { s as tsStringLiteral } from "./dist-DtT9I2iL.mjs";
|
|
3
3
|
//#region ../../../1-framework/1-core/framework-components/dist/codec.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Abstract base class for concrete codec implementations.
|
|
@@ -152,4 +152,4 @@ function renderTsLiteral(value) {
|
|
|
152
152
|
//#endregion
|
|
153
153
|
export { isNonFiniteText as _, INT64_RANGE as a, column as c, decodeJsonInteger as d, decodeJsonIntegerText as f, isIntegerIn as g, encodeJsonFloat as h, INT32_RANGE as i, decodeJsonBoolean as l, decodeJsonString as m, CodecDescriptorTemplateImpl as n, SAFE_INTEGER_BIGINT_RANGE as o, decodeJsonMatching as p, CodecImpl as r, SAFE_INTEGER_RANGE as s, CodecDescriptorImpl as t, decodeJsonFloat as u, refuseJsonValue as v, renderTsLiteral as y };
|
|
154
154
|
|
|
155
|
-
//# sourceMappingURL=codec-
|
|
155
|
+
//# sourceMappingURL=codec-B3lumsVx.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-DOPctnmd.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.mjs"],"sourcesContent":["import { t as emptyCodecLookup } from \"./codec-types-CMqWkP1t.mjs\";\nimport { a as resolveCodecDescriptorOrThrow, c as dataType, i as materializeCodec, l as dataTypeId, o as validateCodecTypeParams, r as codecForRef, s as createDataTypeLookup, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from \"./resolve-codec-CxRICgbr.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { tsStringLiteral } from \"@internal/ts-render\";\n//#region src/shared/codec.ts\n/**\n* Abstract base class for concrete codec implementations.\n*\n* Codec authors extend this class with their typed `Id`, `TTraits`, `TWire`, `TInput` and override all four abstract conversion methods: `encode`, `decode`, `encodeJson`, and `decodeJson`. The runtime instance carries only its `id` (proxied through the descriptor so alias subclasses inherit the descriptor's id automatically) and the conversion methods — static metadata lives on the {@link CodecDescriptor}.\n*/\nvar CodecImpl = class {\n\tdescriptor;\n\t/**\n\t* Variance-erased descriptor reference. Concrete codec subclasses receive the typed descriptor in their own constructors and forward it via `super(descriptor)`; the variance erasure lives at this base because the abstract surface can't carry the concrete `TParams`.\n\t*/\n\tconstructor(descriptor) {\n\t\tthis.descriptor = descriptor;\n\t}\n\tget id() {\n\t\treturn this.descriptor.codecId;\n\t}\n};\n//#endregion\n//#region src/shared/codec-descriptor.ts\n/**\n* Abstract base class for concrete codec descriptors.\n*\n* Codec authors extend this class with their typed `TParams` and declare `codecId`, `traits`, `targetTypes`, `paramsSchema`, the curried `factory(params)`, and (optionally) `renderOutputType`.\n*\n* Implements the {@link CodecDescriptor} interface so a concrete subclass instance is directly usable wherever the framework expects a `CodecDescriptor<P>`.\n*/\nvar CodecDescriptorTemplateImpl = class {\n\tget isParameterized() {\n\t\treturn this.paramsSchema !== void 0;\n\t}\n};\n/**\n* Abstract base for a concrete codec descriptor: a {@link CodecDescriptorTemplateImpl} that also\n* names the data type its codec represents.\n*\n* A codec whose data type depends on the target that adopts it extends\n* {@link CodecDescriptorTemplateImpl} instead, and the target names the type when it adapts the\n* template.\n*/\nvar CodecDescriptorImpl = class extends CodecDescriptorTemplateImpl {};\n//#endregion\n//#region src/shared/column-spec.ts\n/**\n* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.\n*\n* `nativeType` is the column's database-native type spelling — the value the postgres adapter's migration planner, the SQL renderer's cast policy, and the emitted contract's column `nativeType` slot read. Per-codec helpers pass the literal native-type string for their codec (e.g. `'text'`, `'int4'`, `'character varying'`); for codecs whose native-type spelling depends on parameters (none today; reserved for future shapes), the helper computes the rendered string before calling `column`. The framework does not derive the value from `codecId` — that mapping is target-specific and lives at the helper.\n*/\nfunction column(codecFactory, codecId, typeParams, nativeType) {\n\treturn {\n\t\tcodecFactory,\n\t\tcodecId,\n\t\ttypeParams,\n\t\tnativeType\n\t};\n}\n//#endregion\n//#region src/shared/decode-json.ts\n/**\n* Readers for the JSON forms codecs share, each built as {@link Codec.decodeJson} requires: it returns the application value for a stored form of the codec's type and refuses anything else with {@link refuseJsonValue}.\n*/\nconst RECEIVED_PREVIEW_LIMIT = 100;\n/** The value a refusal names: its JSON text, or its digits for a number JSON cannot write, cut to 100 characters. */\nfunction receivedPreview(json) {\n\treturn (typeof json === \"number\" ? String(json) : JSON.stringify(json)).slice(0, RECEIVED_PREVIEW_LIMIT);\n}\n/**\n* The refusal every `decodeJson` raises: `RUNTIME.DECODE_FAILED`, `<codecId> JSON value must be <expected>`, with `meta.codecId` and `meta.received`, the value it was given as JSON text, cut to 100 characters.\n*/\nfunction refuseJsonValue(codecId, expected, json) {\n\tthrow structuredError(\"RUNTIME.DECODE_FAILED\", `${codecId} JSON value must be ${expected}`, { meta: {\n\t\tcodecId,\n\t\treceived: receivedPreview(json)\n\t} });\n}\nfunction decodeJsonString(codecId, json) {\n\tif (typeof json !== \"string\") return refuseJsonValue(codecId, \"a string\", json);\n\treturn json;\n}\n/** Reads a JSON string that matches `pattern`; `form` names what the pattern accepts, for the refusal. */\nfunction decodeJsonMatching(codecId, json, pattern, form) {\n\tif (typeof json !== \"string\" || !pattern.test(json)) return refuseJsonValue(codecId, form, json);\n\treturn json;\n}\nfunction decodeJsonBoolean(codecId, json) {\n\tif (typeof json !== \"boolean\") return refuseJsonValue(codecId, \"a boolean\", json);\n\treturn json;\n}\n/** Whether `value` is an integer within `range`, its ends included. */\nfunction isIntegerIn(value, range) {\n\treturn typeof value === \"number\" && Number.isInteger(value) && value >= range.min && value <= range.max;\n}\n/** The integers a JavaScript `number` holds exactly. */\nconst SAFE_INTEGER_RANGE = {\n\tmin: Number.MIN_SAFE_INTEGER,\n\tmax: Number.MAX_SAFE_INTEGER\n};\n/** The integers a signed 32-bit integer holds. */\nconst INT32_RANGE = {\n\tmin: -(2 ** 31),\n\tmax: 2 ** 31 - 1\n};\nfunction decodeJsonInteger(codecId, json, range) {\n\tif (!isIntegerIn(json, range)) return refuseJsonValue(codecId, `an integer from ${range.min} to ${range.max}`, json);\n\treturn json;\n}\n/** The integers a signed 64-bit integer holds. */\nconst INT64_RANGE = {\n\tmin: -(2n ** 63n),\n\tmax: 2n ** 63n - 1n\n};\n/** The integers a JavaScript `number` holds exactly, as a `bigint` range. */\nconst SAFE_INTEGER_BIGINT_RANGE = {\n\tmin: BigInt(Number.MIN_SAFE_INTEGER),\n\tmax: BigInt(Number.MAX_SAFE_INTEGER)\n};\nconst DECIMAL_INTEGER_TEXT = /^-?\\d+$/;\n/** Reads an integer a codec writes as decimal text, because a JSON number cannot hold every value of its type. */\nfunction decodeJsonIntegerText(codecId, json, range) {\n\tconst expected = range === void 0 ? \"a decimal integer string\" : `a decimal integer string from ${range.min} to ${range.max}`;\n\tconst value = BigInt(decodeJsonMatching(codecId, json, DECIMAL_INTEGER_TEXT, expected));\n\tif (range !== void 0 && (value < range.min || value > range.max)) return refuseJsonValue(codecId, expected, json);\n\treturn value;\n}\nconst NON_FINITE_TEXT = /* @__PURE__ */ new Set([\n\t\"NaN\",\n\t\"Infinity\",\n\t\"-Infinity\"\n]);\n/** Whether `text` is `NaN`, `Infinity` or `-Infinity`, the text a float's JSON form writes for a value JSON has no number for. */\nfunction isNonFiniteText(text) {\n\treturn NON_FINITE_TEXT.has(text);\n}\n/** JSON has no number for NaN or an infinity, so a float's JSON form writes them as the text `NaN`, `Infinity` and `-Infinity`. */\nfunction encodeJsonFloat(value) {\n\treturn Number.isFinite(value) ? value : String(value);\n}\nfunction decodeJsonFloat(codecId, json) {\n\tif (typeof json === \"number\" && Number.isFinite(json)) return json;\n\tif (typeof json === \"string\" && isNonFiniteText(json)) return Number(json);\n\treturn refuseJsonValue(codecId, \"a finite number or the text NaN, Infinity or -Infinity\", json);\n}\n//#endregion\n//#region src/shared/render-ts-literal.ts\n/**\n* Renders a codec-encoded value as a TypeScript literal (e.g. `\"low\"`, `1`, `true`), or `undefined`\n* when the value isn't literal-expressible (objects, arrays, null).\n*\n* Valid **only for identity codecs** whose `encodeJson` output equals their decoded output type\n* (text, int, float, bool). A non-identity codec (e.g. one that encodes to an int but decodes to a\n* string literal) must NOT use this: it has to `decodeJson` first, then render, in its own\n* `renderValueLiteral`.\n*/\nfunction renderTsLiteral(value) {\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n}\n//#endregion\nexport { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, refuseJsonValue, renderTsLiteral, resolveCodecDescriptorOrThrow, validateCodecTypeParams };\n\n//# sourceMappingURL=codec.mjs.map"],"mappings":";;;;;;;;AAUA,IAAI,YAAY,MAAM;CACrB;;;;CAIA,YAAY,YAAY;EACvB,KAAK,aAAa;CACnB;CACA,IAAI,KAAK;EACR,OAAO,KAAK,WAAW;CACxB;AACD;;;;;;;;AAUA,IAAI,8BAA8B,MAAM;CACvC,IAAI,kBAAkB;EACrB,OAAO,KAAK,iBAAiB,KAAK;CACnC;AACD;;;;;;;;;AASA,IAAI,sBAAsB,cAAc,4BAA4B,CAAC;;;;;;AAQrE,SAAS,OAAO,cAAc,SAAS,YAAY,YAAY;CAC9D,OAAO;EACN;EACA;EACA;EACA;CACD;AACD;;;;AAMA,MAAM,yBAAyB;;AAE/B,SAAS,gBAAgB,MAAM;CAC9B,QAAQ,OAAO,SAAS,WAAW,OAAO,IAAI,IAAI,KAAK,UAAU,IAAI,EAAA,CAAG,MAAM,GAAG,sBAAsB;AACxG;;;;AAIA,SAAS,gBAAgB,SAAS,UAAU,MAAM;CACjD,MAAM,gBAAgB,yBAAyB,GAAG,QAAQ,sBAAsB,YAAY,EAAE,MAAM;EACnG;EACA,UAAU,gBAAgB,IAAI;CAC/B,EAAE,CAAC;AACJ;AACA,SAAS,iBAAiB,SAAS,MAAM;CACxC,IAAI,OAAO,SAAS,UAAU,OAAO,gBAAgB,SAAS,YAAY,IAAI;CAC9E,OAA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ACD,CAAC;;AAED,SAAS,gBAAgB,MAAM;CAC9B,OAAO,gBAAgB,IAAI,IAAI;AAChC;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,OAAO,SAAS,KAAK,IAAI,QAAQ,OAAO,KAAK;AACrD;AACA,SAAS,gBAAgB,SAAS,MAAM;CACvC,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS,IAAI,GAAG,OAAO;CAC9D,IAAI,OAAO,SAAS,YAAY,gBAAgB,IAAI,GAAG,OAAO,OAAO,IAAI;CACzE,OAAO,gBAAgB,SAAS,0DAA0D,IAAI;AAC/F;;;;;;;;;;AAYA,SAAS,gBAAgB,OAAO;CAC/B,IAAI,OAAO,UAAU,UAAU,OAAO,gBAAgB,KAAK;CAC3D,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW,OAAO,OAAO,KAAK;AACjF"}
|
|
1
|
+
{"version":3,"file":"codec-B3lumsVx.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.mjs"],"sourcesContent":["import { t as emptyCodecLookup } from \"./codec-types-CMqWkP1t.mjs\";\nimport { a as resolveCodecDescriptorOrThrow, c as dataType, i as materializeCodec, l as dataTypeId, o as validateCodecTypeParams, r as codecForRef, s as createDataTypeLookup, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from \"./resolve-codec-CxRICgbr.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { tsStringLiteral } from \"@internal/ts-render\";\n//#region src/shared/codec.ts\n/**\n* Abstract base class for concrete codec implementations.\n*\n* Codec authors extend this class with their typed `Id`, `TTraits`, `TWire`, `TInput` and override all four abstract conversion methods: `encode`, `decode`, `encodeJson`, and `decodeJson`. The runtime instance carries only its `id` (proxied through the descriptor so alias subclasses inherit the descriptor's id automatically) and the conversion methods — static metadata lives on the {@link CodecDescriptor}.\n*/\nvar CodecImpl = class {\n\tdescriptor;\n\t/**\n\t* Variance-erased descriptor reference. Concrete codec subclasses receive the typed descriptor in their own constructors and forward it via `super(descriptor)`; the variance erasure lives at this base because the abstract surface can't carry the concrete `TParams`.\n\t*/\n\tconstructor(descriptor) {\n\t\tthis.descriptor = descriptor;\n\t}\n\tget id() {\n\t\treturn this.descriptor.codecId;\n\t}\n};\n//#endregion\n//#region src/shared/codec-descriptor.ts\n/**\n* Abstract base class for concrete codec descriptors.\n*\n* Codec authors extend this class with their typed `TParams` and declare `codecId`, `traits`, `targetTypes`, `paramsSchema`, the curried `factory(params)`, and (optionally) `renderOutputType`.\n*\n* Implements the {@link CodecDescriptor} interface so a concrete subclass instance is directly usable wherever the framework expects a `CodecDescriptor<P>`.\n*/\nvar CodecDescriptorTemplateImpl = class {\n\tget isParameterized() {\n\t\treturn this.paramsSchema !== void 0;\n\t}\n};\n/**\n* Abstract base for a concrete codec descriptor: a {@link CodecDescriptorTemplateImpl} that also\n* names the data type its codec represents.\n*\n* A codec whose data type depends on the target that adopts it extends\n* {@link CodecDescriptorTemplateImpl} instead, and the target names the type when it adapts the\n* template.\n*/\nvar CodecDescriptorImpl = class extends CodecDescriptorTemplateImpl {};\n//#endregion\n//#region src/shared/column-spec.ts\n/**\n* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.\n*\n* `nativeType` is the column's database-native type spelling — the value the postgres adapter's migration planner, the SQL renderer's cast policy, and the emitted contract's column `nativeType` slot read. Per-codec helpers pass the literal native-type string for their codec (e.g. `'text'`, `'int4'`, `'character varying'`); for codecs whose native-type spelling depends on parameters (none today; reserved for future shapes), the helper computes the rendered string before calling `column`. The framework does not derive the value from `codecId` — that mapping is target-specific and lives at the helper.\n*/\nfunction column(codecFactory, codecId, typeParams, nativeType) {\n\treturn {\n\t\tcodecFactory,\n\t\tcodecId,\n\t\ttypeParams,\n\t\tnativeType\n\t};\n}\n//#endregion\n//#region src/shared/decode-json.ts\n/**\n* Readers for the JSON forms codecs share, each built as {@link Codec.decodeJson} requires: it returns the application value for a stored form of the codec's type and refuses anything else with {@link refuseJsonValue}.\n*/\nconst RECEIVED_PREVIEW_LIMIT = 100;\n/** The value a refusal names: its JSON text, or its digits for a number JSON cannot write, cut to 100 characters. */\nfunction receivedPreview(json) {\n\treturn (typeof json === \"number\" ? String(json) : JSON.stringify(json)).slice(0, RECEIVED_PREVIEW_LIMIT);\n}\n/**\n* The refusal every `decodeJson` raises: `RUNTIME.DECODE_FAILED`, `<codecId> JSON value must be <expected>`, with `meta.codecId` and `meta.received`, the value it was given as JSON text, cut to 100 characters.\n*/\nfunction refuseJsonValue(codecId, expected, json) {\n\tthrow structuredError(\"RUNTIME.DECODE_FAILED\", `${codecId} JSON value must be ${expected}`, { meta: {\n\t\tcodecId,\n\t\treceived: receivedPreview(json)\n\t} });\n}\nfunction decodeJsonString(codecId, json) {\n\tif (typeof json !== \"string\") return refuseJsonValue(codecId, \"a string\", json);\n\treturn json;\n}\n/** Reads a JSON string that matches `pattern`; `form` names what the pattern accepts, for the refusal. */\nfunction decodeJsonMatching(codecId, json, pattern, form) {\n\tif (typeof json !== \"string\" || !pattern.test(json)) return refuseJsonValue(codecId, form, json);\n\treturn json;\n}\nfunction decodeJsonBoolean(codecId, json) {\n\tif (typeof json !== \"boolean\") return refuseJsonValue(codecId, \"a boolean\", json);\n\treturn json;\n}\n/** Whether `value` is an integer within `range`, its ends included. */\nfunction isIntegerIn(value, range) {\n\treturn typeof value === \"number\" && Number.isInteger(value) && value >= range.min && value <= range.max;\n}\n/** The integers a JavaScript `number` holds exactly. */\nconst SAFE_INTEGER_RANGE = {\n\tmin: Number.MIN_SAFE_INTEGER,\n\tmax: Number.MAX_SAFE_INTEGER\n};\n/** The integers a signed 32-bit integer holds. */\nconst INT32_RANGE = {\n\tmin: -(2 ** 31),\n\tmax: 2 ** 31 - 1\n};\nfunction decodeJsonInteger(codecId, json, range) {\n\tif (!isIntegerIn(json, range)) return refuseJsonValue(codecId, `an integer from ${range.min} to ${range.max}`, json);\n\treturn json;\n}\n/** The integers a signed 64-bit integer holds. */\nconst INT64_RANGE = {\n\tmin: -(2n ** 63n),\n\tmax: 2n ** 63n - 1n\n};\n/** The integers a JavaScript `number` holds exactly, as a `bigint` range. */\nconst SAFE_INTEGER_BIGINT_RANGE = {\n\tmin: BigInt(Number.MIN_SAFE_INTEGER),\n\tmax: BigInt(Number.MAX_SAFE_INTEGER)\n};\nconst DECIMAL_INTEGER_TEXT = /^-?\\d+$/;\n/** Reads an integer a codec writes as decimal text, because a JSON number cannot hold every value of its type. */\nfunction decodeJsonIntegerText(codecId, json, range) {\n\tconst expected = range === void 0 ? \"a decimal integer string\" : `a decimal integer string from ${range.min} to ${range.max}`;\n\tconst value = BigInt(decodeJsonMatching(codecId, json, DECIMAL_INTEGER_TEXT, expected));\n\tif (range !== void 0 && (value < range.min || value > range.max)) return refuseJsonValue(codecId, expected, json);\n\treturn value;\n}\nconst NON_FINITE_TEXT = /* @__PURE__ */ new Set([\n\t\"NaN\",\n\t\"Infinity\",\n\t\"-Infinity\"\n]);\n/** Whether `text` is `NaN`, `Infinity` or `-Infinity`, the text a float's JSON form writes for a value JSON has no number for. */\nfunction isNonFiniteText(text) {\n\treturn NON_FINITE_TEXT.has(text);\n}\n/** JSON has no number for NaN or an infinity, so a float's JSON form writes them as the text `NaN`, `Infinity` and `-Infinity`. */\nfunction encodeJsonFloat(value) {\n\treturn Number.isFinite(value) ? value : String(value);\n}\nfunction decodeJsonFloat(codecId, json) {\n\tif (typeof json === \"number\" && Number.isFinite(json)) return json;\n\tif (typeof json === \"string\" && isNonFiniteText(json)) return Number(json);\n\treturn refuseJsonValue(codecId, \"a finite number or the text NaN, Infinity or -Infinity\", json);\n}\n//#endregion\n//#region src/shared/render-ts-literal.ts\n/**\n* Renders a codec-encoded value as a TypeScript literal (e.g. `\"low\"`, `1`, `true`), or `undefined`\n* when the value isn't literal-expressible (objects, arrays, null).\n*\n* Valid **only for identity codecs** whose `encodeJson` output equals their decoded output type\n* (text, int, float, bool). A non-identity codec (e.g. one that encodes to an int but decodes to a\n* string literal) must NOT use this: it has to `decodeJson` first, then render, in its own\n* `renderValueLiteral`.\n*/\nfunction renderTsLiteral(value) {\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n}\n//#endregion\nexport { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, refuseJsonValue, renderTsLiteral, resolveCodecDescriptorOrThrow, validateCodecTypeParams };\n\n//# sourceMappingURL=codec.mjs.map"],"mappings":";;;;;;;;AAUA,IAAI,YAAY,MAAM;CACrB;;;;CAIA,YAAY,YAAY;EACvB,KAAK,aAAa;CACnB;CACA,IAAI,KAAK;EACR,OAAO,KAAK,WAAW;CACxB;AACD;;;;;;;;AAUA,IAAI,8BAA8B,MAAM;CACvC,IAAI,kBAAkB;EACrB,OAAO,KAAK,iBAAiB,KAAK;CACnC;AACD;;;;;;;;;AASA,IAAI,sBAAsB,cAAc,4BAA4B,CAAC;;;;;;AAQrE,SAAS,OAAO,cAAc,SAAS,YAAY,YAAY;CAC9D,OAAO;EACN;EACA;EACA;EACA;CACD;AACD;;;;AAMA,MAAM,yBAAyB;;AAE/B,SAAS,gBAAgB,MAAM;CAC9B,QAAQ,OAAO,SAAS,WAAW,OAAO,IAAI,IAAI,KAAK,UAAU,IAAI,EAAA,CAAG,MAAM,GAAG,sBAAsB;AACxG;;;;AAIA,SAAS,gBAAgB,SAAS,UAAU,MAAM;CACjD,MAAM,gBAAgB,yBAAyB,GAAG,QAAQ,sBAAsB,YAAY,EAAE,MAAM;E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AAI,UAAU,KAAK,MAAM,QAAQ,MAAM,OAAO,QAAQ,MAAM,MAAM,OAAO,gBAAgB,SAAS,UAAU,IAAI;CAChH,OAAO;AACR;AACA,MAAM,kCAAkC,IAAI,IAAI;CAC/C;CACA;CACA;AACD,CAAC;;AAED,SAAS,gBAAgB,MAAM;CAC9B,OAAO,gBAAgB,IAAI,IAAI;AAChC;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,OAAO,SAAS,KAAK,IAAI,QAAQ,OAAO,KAAK;AACrD;AACA,SAAS,gBAAgB,SAAS,MAAM;CACvC,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS,IAAI,GAAG,OAAO;CAC9D,IAAI,OAAO,SAAS,YAAY,gBAAgB,IAAI,GAAG,OAAO,OAAO,IAAI;CACzE,OAAO,gBAAgB,SAAS,0DAA0D,IAAI;AAC/F;;;;;;;;;;AAYA,SAAS,gBAAgB,OAAO;CAC/B,IAAI,OAAO,UAAU,UAAU,OAAO,gBAAgB,KAAK;CAC3D,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW,OAAO,OAAO,KAAK;AACjF"}
|
package/dist/components.d.mts
CHANGED
|
@@ -11,8 +11,8 @@ import { n as isRuntimeError, r as runtimeError, t as RuntimeErrorEnvelope } fro
|
|
|
11
11
|
import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-DFA65tWf.mjs";
|
|
12
12
|
import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-CND9Xi8O-DKnaAGFS.mjs";
|
|
13
13
|
import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-CPxYIxM1-XHoHPgRO.mjs";
|
|
14
|
-
import { t as ImportRequirement } from "./index-
|
|
15
|
-
import { $ as PslContractDocument, A as MigrationPackage, At as assembleDataTypes, B as MigrationRunnerExecutionChecks, Bt as extractCodecTypeImports, C as EmitContractResult, Ct as VerifierIssueCategory, D as MigrationMetadata, Dt as assembleAuthoringContributions, E as MigratableTargetDescriptor, Et as VerifyDatabaseSchemaResult, F as MigrationPlannerConflict, Ft as createControlStack, G as MigrationRunnerSuccessValue, Gt as hasPslContractBuild, H as MigrationRunnerPerSpaceOptions, Ht as extractQueryOperationTypeImports, I as MigrationPlannerFailureResult, It as diffSchemas, J as OperationContext, Jt as hasSchemaView, K as MigrationScaffoldContext, Kt as hasPslContractInfer, L as MigrationPlannerResult, Lt as dispositionForCategory, M as MigrationPlanOperation, Mt as buildExtensionLoadOrder, N as MigrationPlanWithAuthoringSurface, Nt as contractSnapshotJsonSpecifier, O as MigrationOperationClass, Ot as assembleAuthoringDataTypes, P as MigrationPlanner, Pt as contractSnapshotTypesSpecifier, Q as PslContractBuildCapable, R as MigrationPlannerSuccessResult, Rt as enforceDataTypeInvariants, S as DiffableNode, St as VerificationStatus, T as IntrospectSchemaResult, Tt as VerifyDatabaseResult, U as MigrationRunnerPerSpaceSuccessValue, Ut as hasMigrations, V as MigrationRunnerFailure, Vt as extractComponentIds, W as MigrationRunnerResult, Wt as hasOperationPreview, X as OperationPreviewCapable, Xt as orderIssuesByDependencies, Y as OperationPreview, Yt as issueOutcome, Z as OperationPreviewStatement, Zt as storageHashHex, _ as ControlTargetInstance, _t as TargetMigrationsCapability, a as ContractSpace, at as SchemaNodeRef, b as DataTypeInvariantInput, bt as VERIFY_CODE_SCHEMA_FAILURE, c as ControlAdapterInstance, ct as SchemaTreeNode, d as ControlExtensionDescriptor, dt as SchemaVerifier, et as PslContractInferCapable, f as ControlExtensionInstance, ft as SchemaVerifyOptions, g as ControlTargetDescriptor, gt as SignDatabaseResult, h as ControlStack, ht as SchemaViewNodeKind, i as ContractSerializer, it as SchemaEntityCoordinate, j as MigrationPlan, jt as assertUniqueCodecOwner, k as MigrationOperationPolicy, kt as assembleControlMutationDefaults, l as ControlDriverDescriptor, lt as SchemaTreeNodeOptions, m as ControlFamilyInstance, mt as SchemaViewCapable, n as AssembledAuthoringContributions, nt as SchemaDiff, o as ContractSpaceHeadRef, ot as SchemaOwnership, p as ControlFamilyDescriptor, pt as SchemaVerifyResult, q as OpFactoryCall, qt as hasSchemaSubjectClassifier, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiffIssue, s as ControlAdapterDescriptor, st as SchemaSubjectClassifierCapable, t as APP_SPACE_ID, tt as PslSourceSettings, u as ControlDriverInstance, ut as SchemaTreeVisitor, v as CoreSchemaView, vt as VERIFY_CODE_HASH_MISMATCH, w as ExpectationFailureReason, wt as VerifierOutcome, x as DiffSubjectGranularity, xt as VERIFY_CODE_TARGET_MISMATCH, y as CreateControlStackInput, yt as VERIFY_CODE_MARKER_MISSING, z as MigrationRunner, zt as extractCodecLookup } from "./control-
|
|
14
|
+
import { t as ImportRequirement } from "./index-DeSumOoq.mjs";
|
|
15
|
+
import { $ as PslContractDocument, A as MigrationPackage, At as assembleDataTypes, B as MigrationRunnerExecutionChecks, Bt as extractCodecTypeImports, C as EmitContractResult, Ct as VerifierIssueCategory, D as MigrationMetadata, Dt as assembleAuthoringContributions, E as MigratableTargetDescriptor, Et as VerifyDatabaseSchemaResult, F as MigrationPlannerConflict, Ft as createControlStack, G as MigrationRunnerSuccessValue, Gt as hasPslContractBuild, H as MigrationRunnerPerSpaceOptions, Ht as extractQueryOperationTypeImports, I as MigrationPlannerFailureResult, It as diffSchemas, J as OperationContext, Jt as hasSchemaView, K as MigrationScaffoldContext, Kt as hasPslContractInfer, L as MigrationPlannerResult, Lt as dispositionForCategory, M as MigrationPlanOperation, Mt as buildExtensionLoadOrder, N as MigrationPlanWithAuthoringSurface, Nt as contractSnapshotJsonSpecifier, O as MigrationOperationClass, Ot as assembleAuthoringDataTypes, P as MigrationPlanner, Pt as contractSnapshotTypesSpecifier, Q as PslContractBuildCapable, R as MigrationPlannerSuccessResult, Rt as enforceDataTypeInvariants, S as DiffableNode, St as VerificationStatus, T as IntrospectSchemaResult, Tt as VerifyDatabaseResult, U as MigrationRunnerPerSpaceSuccessValue, Ut as hasMigrations, V as MigrationRunnerFailure, Vt as extractComponentIds, W as MigrationRunnerResult, Wt as hasOperationPreview, X as OperationPreviewCapable, Xt as orderIssuesByDependencies, Y as OperationPreview, Yt as issueOutcome, Z as OperationPreviewStatement, Zt as storageHashHex, _ as ControlTargetInstance, _t as TargetMigrationsCapability, a as ContractSpace, at as SchemaNodeRef, b as DataTypeInvariantInput, bt as VERIFY_CODE_SCHEMA_FAILURE, c as ControlAdapterInstance, ct as SchemaTreeNode, d as ControlExtensionDescriptor, dt as SchemaVerifier, et as PslContractInferCapable, f as ControlExtensionInstance, ft as SchemaVerifyOptions, g as ControlTargetDescriptor, gt as SignDatabaseResult, h as ControlStack, ht as SchemaViewNodeKind, i as ContractSerializer, it as SchemaEntityCoordinate, j as MigrationPlan, jt as assertUniqueCodecOwner, k as MigrationOperationPolicy, kt as assembleControlMutationDefaults, l as ControlDriverDescriptor, lt as SchemaTreeNodeOptions, m as ControlFamilyInstance, mt as SchemaViewCapable, n as AssembledAuthoringContributions, nt as SchemaDiff, o as ContractSpaceHeadRef, ot as SchemaOwnership, p as ControlFamilyDescriptor, pt as SchemaVerifyResult, q as OpFactoryCall, qt as hasSchemaSubjectClassifier, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiffIssue, s as ControlAdapterDescriptor, st as SchemaSubjectClassifierCapable, t as APP_SPACE_ID, tt as PslSourceSettings, u as ControlDriverInstance, ut as SchemaTreeVisitor, v as CoreSchemaView, vt as VERIFY_CODE_HASH_MISMATCH, w as ExpectationFailureReason, wt as VerifierOutcome, x as DiffSubjectGranularity, xt as VERIFY_CODE_TARGET_MISMATCH, y as CreateControlStackInput, yt as VERIFY_CODE_MARKER_MISSING, z as MigrationRunner, zt as extractCodecLookup } from "./control-DgoyiMYQ.mjs";
|
|
16
16
|
import "./emission-jG88SNeC.mjs";
|
|
17
17
|
import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-D5L9gHoo.mjs";
|
|
18
18
|
import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
|
package/dist/components.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { A as temporalAuthoringPresets, D as resolveEnumCodecId, E as resolveAut
|
|
|
5
5
|
import { i as readEnumBlockMembers, n as findAuthoringTypeConstructorCall, r as getAuthoringFieldPreset, t as fieldPresetSpellings } from "./authoring-C8hxYYQI.mjs";
|
|
6
6
|
import { t as emptyCodecLookup } from "./codec-types-CMqWkP1t-CjK8Cwfr.mjs";
|
|
7
7
|
import { a as dataType, c as resolveCodecDescriptorOrThrow, i as createDataTypeLookup, l as validateCodecTypeParams, o as dataTypeId, r as codecForRef, s as materializeCodec, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from "./resolve-codec-CxRICgbr-BLdoRYJc.mjs";
|
|
8
|
-
import { _ as isNonFiniteText, a as INT64_RANGE, c as column, d as decodeJsonInteger, f as decodeJsonIntegerText, g as isIntegerIn, h as encodeJsonFloat, i as INT32_RANGE, l as decodeJsonBoolean, m as decodeJsonString, n as CodecDescriptorTemplateImpl, o as SAFE_INTEGER_BIGINT_RANGE, p as decodeJsonMatching, r as CodecImpl, s as SAFE_INTEGER_RANGE, t as CodecDescriptorImpl, u as decodeJsonFloat, v as refuseJsonValue, y as renderTsLiteral } from "./codec-
|
|
8
|
+
import { _ as isNonFiniteText, a as INT64_RANGE, c as column, d as decodeJsonInteger, f as decodeJsonIntegerText, g as isIntegerIn, h as encodeJsonFloat, i as INT32_RANGE, l as decodeJsonBoolean, m as decodeJsonString, n as CodecDescriptorTemplateImpl, o as SAFE_INTEGER_BIGINT_RANGE, p as decodeJsonMatching, r as CodecImpl, s as SAFE_INTEGER_RANGE, t as CodecDescriptorImpl, u as decodeJsonFloat, v as refuseJsonValue, y as renderTsLiteral } from "./codec-B3lumsVx.mjs";
|
|
9
9
|
import { a as mergeCapabilityMatrices, i as isNoInputAggregateDescriptor, n as isAggregateDescriptor, r as isAnyInputAggregateDescriptor, t as aggregateDescriptorKey } from "./capabilities-M-lvaPSE-BMffxZqu.mjs";
|
|
10
10
|
import { t as checkContractComponentRequirements } from "./framework-components-D6j4Y5K7-RW9H184y.mjs";
|
|
11
11
|
import { t as settleAggregateOverloads } from "./components-0Tccse_E.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as emptyCodecLookup } from "./codec-types-CMqWkP1t-CjK8Cwfr.mjs";
|
|
2
2
|
import { a as dataType, c as resolveCodecDescriptorOrThrow, i as createDataTypeLookup, l as validateCodecTypeParams, o as dataTypeId, r as codecForRef, s as materializeCodec, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from "./resolve-codec-CxRICgbr-BLdoRYJc.mjs";
|
|
3
|
-
import { _ as isNonFiniteText, a as INT64_RANGE, c as column, d as decodeJsonInteger, f as decodeJsonIntegerText, g as isIntegerIn, h as encodeJsonFloat, i as INT32_RANGE, l as decodeJsonBoolean, m as decodeJsonString, n as CodecDescriptorTemplateImpl, o as SAFE_INTEGER_BIGINT_RANGE, p as decodeJsonMatching, r as CodecImpl, s as SAFE_INTEGER_RANGE, t as CodecDescriptorImpl, u as decodeJsonFloat, v as refuseJsonValue, y as renderTsLiteral } from "./codec-
|
|
3
|
+
import { _ as isNonFiniteText, a as INT64_RANGE, c as column, d as decodeJsonInteger, f as decodeJsonIntegerText, g as isIntegerIn, h as encodeJsonFloat, i as INT32_RANGE, l as decodeJsonBoolean, m as decodeJsonString, n as CodecDescriptorTemplateImpl, o as SAFE_INTEGER_BIGINT_RANGE, p as decodeJsonMatching, r as CodecImpl, s as SAFE_INTEGER_RANGE, t as CodecDescriptorImpl, u as decodeJsonFloat, v as refuseJsonValue, y as renderTsLiteral } from "./codec-B3lumsVx.mjs";
|
|
4
4
|
export { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, refuseJsonValue, renderTsLiteral, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as DefaultFunctionLoweringContext, c as MutationDefaultGeneratorDescriptor, d as TypedDefaultFunctionCall, i as ControlMutationDefaults, l as SourceDiagnostic, n as ControlMutationDefaultEntry, o as LoweredDefaultResult, r as ControlMutationDefaultRegistry, s as LoweredDefaultValue, t as ControlDefaultRegistries, u as SourceSpan } from "./mutation-default-types-ZfKqVdmf-DATmLFpQ.mjs";
|
|
2
2
|
import { c as describeTaggedLiteralFailure, d as resolveTemplateTagEscapes, h as timestampNowControlDescriptor, n as TAGGED_LITERAL_MAX_BYTES, o as TaggedLiteralCanonicalization, s as canonicalizeTaggedLiteralBody, u as resolvePslBacktickEscapes } from "./temporal-presets-DKHiZVPP-DLAr--Pb.mjs";
|
|
3
|
-
import { t as ImportRequirement } from "./index-
|
|
4
|
-
import { $ as PslContractDocument, A as MigrationPackage, At as assembleDataTypes, B as MigrationRunnerExecutionChecks, Bt as extractCodecTypeImports, C as EmitContractResult, Ct as VerifierIssueCategory, D as MigrationMetadata, Dt as assembleAuthoringContributions, E as MigratableTargetDescriptor, Et as VerifyDatabaseSchemaResult, F as MigrationPlannerConflict, Ft as createControlStack, G as MigrationRunnerSuccessValue, Gt as hasPslContractBuild, H as MigrationRunnerPerSpaceOptions, Ht as extractQueryOperationTypeImports, I as MigrationPlannerFailureResult, It as diffSchemas, J as OperationContext, Jt as hasSchemaView, K as MigrationScaffoldContext, Kt as hasPslContractInfer, L as MigrationPlannerResult, Lt as dispositionForCategory, M as MigrationPlanOperation, Mt as buildExtensionLoadOrder, N as MigrationPlanWithAuthoringSurface, Nt as contractSnapshotJsonSpecifier, O as MigrationOperationClass, Ot as assembleAuthoringDataTypes, P as MigrationPlanner, Pt as contractSnapshotTypesSpecifier, Q as PslContractBuildCapable, R as MigrationPlannerSuccessResult, Rt as enforceDataTypeInvariants, S as DiffableNode, St as VerificationStatus, T as IntrospectSchemaResult, Tt as VerifyDatabaseResult, U as MigrationRunnerPerSpaceSuccessValue, Ut as hasMigrations, V as MigrationRunnerFailure, Vt as extractComponentIds, W as MigrationRunnerResult, Wt as hasOperationPreview, X as OperationPreviewCapable, Xt as orderIssuesByDependencies, Y as OperationPreview, Yt as issueOutcome, Z as OperationPreviewStatement, Zt as storageHashHex, _ as ControlTargetInstance, _t as TargetMigrationsCapability, a as ContractSpace, at as SchemaNodeRef, b as DataTypeInvariantInput, bt as VERIFY_CODE_SCHEMA_FAILURE, c as ControlAdapterInstance, ct as SchemaTreeNode, d as ControlExtensionDescriptor, dt as SchemaVerifier, et as PslContractInferCapable, f as ControlExtensionInstance, ft as SchemaVerifyOptions, g as ControlTargetDescriptor, gt as SignDatabaseResult, h as ControlStack, ht as SchemaViewNodeKind, i as ContractSerializer, it as SchemaEntityCoordinate, j as MigrationPlan, jt as assertUniqueCodecOwner, k as MigrationOperationPolicy, kt as assembleControlMutationDefaults, l as ControlDriverDescriptor, lt as SchemaTreeNodeOptions, m as ControlFamilyInstance, mt as SchemaViewCapable, n as AssembledAuthoringContributions, nt as SchemaDiff, o as ContractSpaceHeadRef, ot as SchemaOwnership, p as ControlFamilyDescriptor, pt as SchemaVerifyResult, q as OpFactoryCall, qt as hasSchemaSubjectClassifier, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiffIssue, s as ControlAdapterDescriptor, st as SchemaSubjectClassifierCapable, t as APP_SPACE_ID, tt as PslSourceSettings, u as ControlDriverInstance, ut as SchemaTreeVisitor, v as CoreSchemaView, vt as VERIFY_CODE_HASH_MISMATCH, w as ExpectationFailureReason, wt as VerifierOutcome, x as DiffSubjectGranularity, xt as VERIFY_CODE_TARGET_MISMATCH, y as CreateControlStackInput, yt as VERIFY_CODE_MARKER_MISSING, z as MigrationRunner, zt as extractCodecLookup } from "./control-
|
|
3
|
+
import { t as ImportRequirement } from "./index-DeSumOoq.mjs";
|
|
4
|
+
import { $ as PslContractDocument, A as MigrationPackage, At as assembleDataTypes, B as MigrationRunnerExecutionChecks, Bt as extractCodecTypeImports, C as EmitContractResult, Ct as VerifierIssueCategory, D as MigrationMetadata, Dt as assembleAuthoringContributions, E as MigratableTargetDescriptor, Et as VerifyDatabaseSchemaResult, F as MigrationPlannerConflict, Ft as createControlStack, G as MigrationRunnerSuccessValue, Gt as hasPslContractBuild, H as MigrationRunnerPerSpaceOptions, Ht as extractQueryOperationTypeImports, I as MigrationPlannerFailureResult, It as diffSchemas, J as OperationContext, Jt as hasSchemaView, K as MigrationScaffoldContext, Kt as hasPslContractInfer, L as MigrationPlannerResult, Lt as dispositionForCategory, M as MigrationPlanOperation, Mt as buildExtensionLoadOrder, N as MigrationPlanWithAuthoringSurface, Nt as contractSnapshotJsonSpecifier, O as MigrationOperationClass, Ot as assembleAuthoringDataTypes, P as MigrationPlanner, Pt as contractSnapshotTypesSpecifier, Q as PslContractBuildCapable, R as MigrationPlannerSuccessResult, Rt as enforceDataTypeInvariants, S as DiffableNode, St as VerificationStatus, T as IntrospectSchemaResult, Tt as VerifyDatabaseResult, U as MigrationRunnerPerSpaceSuccessValue, Ut as hasMigrations, V as MigrationRunnerFailure, Vt as extractComponentIds, W as MigrationRunnerResult, Wt as hasOperationPreview, X as OperationPreviewCapable, Xt as orderIssuesByDependencies, Y as OperationPreview, Yt as issueOutcome, Z as OperationPreviewStatement, Zt as storageHashHex, _ as ControlTargetInstance, _t as TargetMigrationsCapability, a as ContractSpace, at as SchemaNodeRef, b as DataTypeInvariantInput, bt as VERIFY_CODE_SCHEMA_FAILURE, c as ControlAdapterInstance, ct as SchemaTreeNode, d as ControlExtensionDescriptor, dt as SchemaVerifier, et as PslContractInferCapable, f as ControlExtensionInstance, ft as SchemaVerifyOptions, g as ControlTargetDescriptor, gt as SignDatabaseResult, h as ControlStack, ht as SchemaViewNodeKind, i as ContractSerializer, it as SchemaEntityCoordinate, j as MigrationPlan, jt as assertUniqueCodecOwner, k as MigrationOperationPolicy, kt as assembleControlMutationDefaults, l as ControlDriverDescriptor, lt as SchemaTreeNodeOptions, m as ControlFamilyInstance, mt as SchemaViewCapable, n as AssembledAuthoringContributions, nt as SchemaDiff, o as ContractSpaceHeadRef, ot as SchemaOwnership, p as ControlFamilyDescriptor, pt as SchemaVerifyResult, q as OpFactoryCall, qt as hasSchemaSubjectClassifier, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiffIssue, s as ControlAdapterDescriptor, st as SchemaSubjectClassifierCapable, t as APP_SPACE_ID, tt as PslSourceSettings, u as ControlDriverInstance, ut as SchemaTreeVisitor, v as CoreSchemaView, vt as VERIFY_CODE_HASH_MISMATCH, w as ExpectationFailureReason, wt as VerifierOutcome, x as DiffSubjectGranularity, xt as VERIFY_CODE_TARGET_MISMATCH, y as CreateControlStackInput, yt as VERIFY_CODE_MARKER_MISSING, z as MigrationRunner, zt as extractCodecLookup } from "./control-DgoyiMYQ.mjs";
|
|
5
5
|
export { APP_SPACE_ID, type AssembledAuthoringContributions, CONTRACT_SNAPSHOTS_DIRNAME, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type DataTypeInvariantInput, type DefaultFunctionLoweringContext, type DiffSubjectGranularity, type DiffableNode, type EmitContractResult, type ExpectationFailureReason, type ImportRequirement, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MigratableTargetDescriptor, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, type PslSourceSettings, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SignDatabaseResult, type SourceDiagnostic, type SourceSpan, TAGGED_LITERAL_MAX_BYTES, type TaggedLiteralCanonicalization, type TargetMigrationsCapability, type TypedDefaultFunctionCall, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertUniqueCodecOwner, buildExtensionLoadOrder, canonicalizeTaggedLiteralBody, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, issueOutcome, orderIssuesByDependencies, resolvePslBacktickEscapes, resolveTemplateTagEscapes, storageHashHex, timestampNowControlDescriptor };
|
|
@@ -5,7 +5,7 @@ import "./codec-DFvi9jo5.mjs";
|
|
|
5
5
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
6
6
|
import "./components-DFA65tWf.mjs";
|
|
7
7
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
8
|
-
import { d as ControlExtensionDescriptor, g as ControlTargetDescriptor, l as ControlDriverDescriptor, n as AssembledAuthoringContributions, p as ControlFamilyDescriptor, s as ControlAdapterDescriptor, u as ControlDriverInstance } from "./control-
|
|
8
|
+
import { d as ControlExtensionDescriptor, g as ControlTargetDescriptor, l as ControlDriverDescriptor, n as AssembledAuthoringContributions, p as ControlFamilyDescriptor, s as ControlAdapterDescriptor, u as ControlDriverInstance } from "./control-DgoyiMYQ.mjs";
|
|
9
9
|
//#region ../../../1-framework/1-core/config/dist/config-types.d.mts
|
|
10
10
|
//#region src/contract-source-types.d.ts
|
|
11
11
|
interface ContractSourceDiagnosticPosition {
|
|
@@ -201,4 +201,4 @@ declare function defineConfig<TFamilyId extends string = string, TTargetId exten
|
|
|
201
201
|
declare function defaultContractOutputPath(contractPath: string): string;
|
|
202
202
|
//#endregion
|
|
203
203
|
export { defaultContractOutputPath as _, ContractSourceDiagnosticSpan as a, ContractSourceProvider as c, FormatterConfig as d, PrismaNextConfig as f, TypeScriptContractSourceProvider as g, PslParserOptions as h, ContractSourceDiagnosticPosition as i, ContractSourceProviderBase as l, PslGrammar as m, ContractSourceContext as n, ContractSourceDiagnostics as o, PslContractSourceProvider as p, ContractSourceDiagnostic as r, ContractSourceFormat as s, ContractConfig as t, DEFAULT_CONTRACT_SOURCE_DIR as u, defineConfig as v, normalizeContractConfig as y };
|
|
204
|
-
//# sourceMappingURL=config-types-
|
|
204
|
+
//# sourceMappingURL=config-types-D5MpuJlm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-D5MpuJlm.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,gBAAgB;WAChB,yBAAyB;;;;;;;WAOzB;WACA,cAAc;;;;WAId,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-D5MpuJlm.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-D5MpuJlm.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -9,7 +9,7 @@ import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
|
9
9
|
import { a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, y as TargetDescriptor } from "./framework-components-CwclBqDh-CBGrY3Ry.mjs";
|
|
10
10
|
import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-CND9Xi8O-DKnaAGFS.mjs";
|
|
11
11
|
import { f as PslDocumentAst } from "./psl-ast-CPxYIxM1-XHoHPgRO.mjs";
|
|
12
|
-
import { t as ImportRequirement } from "./index-
|
|
12
|
+
import { t as ImportRequirement } from "./index-DeSumOoq.mjs";
|
|
13
13
|
import { n as JsonObject } from "./json-Dkqr3say.mjs";
|
|
14
14
|
import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-DufIiCLc-D8HOry-O.mjs";
|
|
15
15
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
@@ -1496,4 +1496,4 @@ type VerifierIssueCategory = 'declaredMissing' | 'declaredIncompatible' | 'value
|
|
|
1496
1496
|
declare function dispositionForCategory(controlPolicy: ControlPolicy, category: VerifierIssueCategory): VerifierOutcome;
|
|
1497
1497
|
//#endregion
|
|
1498
1498
|
export { PslContractDocument as $, MigrationPackage as A, assembleDataTypes as At, MigrationRunnerExecutionChecks as B, extractCodecTypeImports as Bt, EmitContractResult as C, VerifierIssueCategory as Ct, MigrationMetadata as D, assembleAuthoringContributions as Dt, MigratableTargetDescriptor as E, VerifyDatabaseSchemaResult as Et, MigrationPlannerConflict as F, createControlStack as Ft, MigrationRunnerSuccessValue as G, hasPslContractBuild as Gt, MigrationRunnerPerSpaceOptions as H, extractQueryOperationTypeImports as Ht, MigrationPlannerFailureResult as I, diffSchemas as It, OperationContext as J, hasSchemaView as Jt, MigrationScaffoldContext as K, hasPslContractInfer as Kt, MigrationPlannerResult as L, dispositionForCategory as Lt, MigrationPlanOperation as M, buildExtensionLoadOrder as Mt, MigrationPlanWithAuthoringSurface as N, contractSnapshotJsonSpecifier as Nt, MigrationOperationClass as O, assembleAuthoringDataTypes as Ot, MigrationPlanner as P, contractSnapshotTypesSpecifier as Pt, PslContractBuildCapable as Q, MigrationPlannerSuccessResult as R, enforceDataTypeInvariants as Rt, DiffableNode as S, VerificationStatus as St, IntrospectSchemaResult as T, VerifyDatabaseResult as Tt, MigrationRunnerPerSpaceSuccessValue as U, hasMigrations as Ut, MigrationRunnerFailure as V, extractComponentIds as Vt, MigrationRunnerResult as W, hasOperationPreview as Wt, OperationPreviewCapable as X, orderIssuesByDependencies as Xt, OperationPreview as Y, issueOutcome as Yt, OperationPreviewStatement as Z, storageHashHex as Zt, ControlTargetInstance as _, TargetMigrationsCapability as _t, ContractSpace as a, SchemaNodeRef as at, DataTypeInvariantInput as b, VERIFY_CODE_SCHEMA_FAILURE as bt, ControlAdapterInstance as c, SchemaTreeNode as ct, ControlExtensionDescriptor as d, SchemaVerifier as dt, PslContractInferCapable as et, ControlExtensionInstance as f, SchemaVerifyOptions as ft, ControlTargetDescriptor as g, SignDatabaseResult as gt, ControlStack as h, SchemaViewNodeKind as ht, ContractSerializer as i, SchemaEntityCoordinate as it, MigrationPlan as j, assertUniqueCodecOwner as jt, MigrationOperationPolicy as k, assembleControlMutationDefaults as kt, ControlDriverDescriptor as l, SchemaTreeNodeOptions as lt, ControlFamilyInstance as m, SchemaViewCapable as mt, AssembledAuthoringContributions as n, SchemaDiff as nt, ContractSpaceHeadRef as o, SchemaOwnership as ot, ControlFamilyDescriptor as p, SchemaVerifyResult as pt, OpFactoryCall as q, hasSchemaSubjectClassifier as qt, CONTRACT_SNAPSHOTS_DIRNAME as r, SchemaDiffIssue as rt, ControlAdapterDescriptor as s, SchemaSubjectClassifierCapable as st, APP_SPACE_ID as t, PslSourceSettings as tt, ControlDriverInstance as u, SchemaTreeVisitor as ut, CoreSchemaView as v, VERIFY_CODE_HASH_MISMATCH as vt, ExpectationFailureReason as w, VerifierOutcome as wt, DiffSubjectGranularity as x, VERIFY_CODE_TARGET_MISMATCH as xt, CreateControlStackInput as y, VERIFY_CODE_MARKER_MISSING as yt, MigrationRunner as z, extractCodecLookup as zt };
|
|
1499
|
-
//# sourceMappingURL=control-
|
|
1499
|
+
//# sourceMappingURL=control-DgoyiMYQ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-
|
|
1
|
+
{"version":3,"file":"control-DgoyiMYQ.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA+BU,mBAAmB;;;;;;;;;;;;EAY3B,oBAAoB,UAAU,YAAY,WAAW,gBAAgB;;;;;;;;;;EAUrE,kBAAkB,UAAU,YAAY;;;;;;;;WAQ/B,sBAAsB;;;;;;;;WAQtB,cAAc;;;;;;;;;;;;;;;WAed;aACE,sBAAsB;aACtB,cAAc;;;;;cAKb;;iBAEG,eAAe;;iBAEf,8BAA8B,6BAA6B;;iBAE3D,+BAA+B,6BAA6B;;;;;;;;;;KAUxE;WACM;WACA;;UAED,gBAAgB,cAAc,eAAe;;WAE5C;;WAEA,WAAW;;WAEX,SAAS;;;;;;;;WAQT;;WAEA;;;;;;;;;;;;;;;;KAgBN;;;;;;;iBAOY,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,WAAW,WAAW;;;;;;;;UAQxD,oBAAoB,WAAW;WAC9B,UAAU;WACV,QAAQ;;;;;;;;UAQT;WACC;WACA,iBAAiB;;;;KAIvB;KACA,kBAAkB;;;;;;;;;;;;;;;;;KAiBlB;;;;;;;;;;iBAUY,uBAAuB,eAAe,eAAe,UAAU,wBAAwB"}
|
|
@@ -6,7 +6,8 @@ import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
|
6
6
|
*
|
|
7
7
|
* `JSON.stringify` already escapes quotes, backslashes, and control characters
|
|
8
8
|
* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy
|
|
9
|
-
* parsers treat as line terminators,
|
|
9
|
+
* parsers treat as line terminators, and DEL (U+007F), which is invisible, so
|
|
10
|
+
* those are escaped explicitly.
|
|
10
11
|
*
|
|
11
12
|
* Used for both value literals (`jsonToTsSource`) and type-level literals /
|
|
12
13
|
* property keys (the contract emitter), so a physical name that a store admits
|
|
@@ -14,7 +15,23 @@ import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
|
14
15
|
* way everywhere.
|
|
15
16
|
*/
|
|
16
17
|
function tsStringLiteral(value) {
|
|
17
|
-
return JSON.stringify(value).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
18
|
+
return JSON.stringify(value).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u007f/g, "\\x7f");
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote
|
|
22
|
+
* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,
|
|
23
|
+
* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.
|
|
24
|
+
*/
|
|
25
|
+
function tsQuotedTextSource(text) {
|
|
26
|
+
if (!(text.includes("'") && text.includes("\"")) || needsEscapeSequence(text)) return tsStringLiteral(text);
|
|
27
|
+
return `\`${text.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${")}\``;
|
|
28
|
+
}
|
|
29
|
+
function needsEscapeSequence(text) {
|
|
30
|
+
for (const char of text) {
|
|
31
|
+
const code = char.codePointAt(0) ?? 0;
|
|
32
|
+
if (code < 32 || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
18
35
|
}
|
|
19
36
|
/**
|
|
20
37
|
* Pure JSON-to-TypeScript-source printer.
|
|
@@ -31,6 +48,10 @@ function tsStringLiteral(value) {
|
|
|
31
48
|
* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it
|
|
32
49
|
* through the relevant codec's `encodeJson` first. Adding special cases to
|
|
33
50
|
* this file is not the answer — that's what codecs are for.
|
|
51
|
+
*
|
|
52
|
+
* The file also exports `tsObjectSource` and `tsArraySource`, the object and
|
|
53
|
+
* array layouts `jsonToTsSource` uses, for callers that render some values
|
|
54
|
+
* themselves.
|
|
34
55
|
*/
|
|
35
56
|
/**
|
|
36
57
|
* Render a JSON-compatible value as a TypeScript source-text literal.
|
|
@@ -45,23 +66,25 @@ function jsonToTsSource(value) {
|
|
|
45
66
|
if (value === null) return "null";
|
|
46
67
|
if (typeof value === "string") return tsStringLiteral(value);
|
|
47
68
|
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
48
|
-
if (Array.isArray(value))
|
|
49
|
-
|
|
50
|
-
const items = value.map((v) => jsonToTsSource(v));
|
|
51
|
-
const singleLine = `[${items.join(", ")}]`;
|
|
52
|
-
if (singleLine.length <= 80) return singleLine;
|
|
53
|
-
return `[\n${items.map((i) => ` ${i}`).join(",\n")},\n]`;
|
|
54
|
-
}
|
|
55
|
-
if (typeof value === "object") {
|
|
56
|
-
const entries = Object.entries(value).filter(([, v]) => v !== void 0);
|
|
57
|
-
if (entries.length === 0) return "{}";
|
|
58
|
-
const items = entries.map(([k, v]) => `${renderKey(k)}: ${jsonToTsSource(v)}`);
|
|
59
|
-
const singleLine = `{ ${items.join(", ")} }`;
|
|
60
|
-
if (singleLine.length <= 80) return singleLine;
|
|
61
|
-
return `{\n${items.map((i) => ` ${i}`).join(",\n")},\n}`;
|
|
62
|
-
}
|
|
69
|
+
if (Array.isArray(value)) return tsArraySource(value.map((v) => jsonToTsSource(v)));
|
|
70
|
+
if (typeof value === "object") return tsObjectSource(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, jsonToTsSource(v)]));
|
|
63
71
|
throw new InternalError(`jsonToTsSource: unsupported value type "${typeof value}"`);
|
|
64
72
|
}
|
|
73
|
+
/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */
|
|
74
|
+
function tsObjectSource(entries) {
|
|
75
|
+
if (entries.length === 0) return "{}";
|
|
76
|
+
const items = entries.map(([key, source]) => `${renderKey(key)}: ${source}`);
|
|
77
|
+
const singleLine = `{ ${items.join(", ")} }`;
|
|
78
|
+
if (singleLine.length <= 80 && !singleLine.includes("\n")) return singleLine;
|
|
79
|
+
return `{\n${items.map((i) => ` ${i}`).join(",\n")},\n}`;
|
|
80
|
+
}
|
|
81
|
+
/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */
|
|
82
|
+
function tsArraySource(items) {
|
|
83
|
+
if (items.length === 0) return "[]";
|
|
84
|
+
const singleLine = `[${items.join(", ")}]`;
|
|
85
|
+
if (singleLine.length <= 80 && !singleLine.includes("\n")) return singleLine;
|
|
86
|
+
return `[\n${items.map((i) => ` ${i}`).join(",\n")},\n]`;
|
|
87
|
+
}
|
|
65
88
|
function renderKey(key) {
|
|
66
89
|
if (key === "__proto__") return tsStringLiteral(key);
|
|
67
90
|
return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);
|
|
@@ -247,6 +270,6 @@ function buildAttributesClause(attrs) {
|
|
|
247
270
|
*/
|
|
248
271
|
var TsExpression = class {};
|
|
249
272
|
//#endregion
|
|
250
|
-
export {
|
|
273
|
+
export { tsObjectSource as a, tsArraySource as i, jsonToTsSource as n, tsQuotedTextSource as o, renderImports as r, tsStringLiteral as s, TsExpression as t };
|
|
251
274
|
|
|
252
|
-
//# sourceMappingURL=dist-
|
|
275
|
+
//# sourceMappingURL=dist-DtT9I2iL.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-DtT9I2iL.mjs","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.mjs"],"sourcesContent":["import { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/ts-string-literal.ts\n/**\n* Renders a string as a TypeScript source-text literal.\n*\n* `JSON.stringify` already escapes quotes, backslashes, and control characters\n* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy\n* parsers treat as line terminators, and DEL (U+007F), which is invisible, so\n* those are escaped explicitly.\n*\n* Used for both value literals (`jsonToTsSource`) and type-level literals /\n* property keys (the contract emitter), so a physical name that a store admits\n* as a quoted identifier but TypeScript does not admit bare renders the same\n* way everywhere.\n*/\nfunction tsStringLiteral(value) {\n\treturn JSON.stringify(value).replace(/\\u2028/g, \"\\\\u2028\").replace(/\\u2029/g, \"\\\\u2029\").replace(/\\u007f/g, \"\\\\x7f\");\n}\n/**\n* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote\n* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,\n* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.\n*/\nfunction tsQuotedTextSource(text) {\n\tif (!(text.includes(\"'\") && text.includes(\"\\\"\")) || needsEscapeSequence(text)) return tsStringLiteral(text);\n\treturn `\\`${text.replace(/\\\\/g, \"\\\\\\\\\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}\\``;\n}\nfunction needsEscapeSequence(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/json-to-ts-source.ts\n/**\n* Pure JSON-to-TypeScript-source printer.\n*\n* This module is the second stage of the codec → TS pipeline:\n*\n* jsValue → codec.encodeJson → JsonValue → jsonToTsSource → TS source text\n*\n* Stage 1 (`codec.encodeJson`) is a codec responsibility — date serialization,\n* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2\n* (this module) is a pure JSON-to-TS printer that must never grow type-specific\n* branches.\n*\n* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it\n* through the relevant codec's `encodeJson` first. Adding special cases to\n* this file is not the answer — that's what codecs are for.\n*\n* The file also exports `tsObjectSource` and `tsArraySource`, the object and\n* array layouts `jsonToTsSource` uses, for callers that render some values\n* themselves.\n*/\n/**\n* Render a JSON-compatible value as a TypeScript source-text literal.\n*\n* Accepts `unknown` for ergonomics with structural types (e.g. `ColumnSpec`,\n* `ForeignKeySpec`) whose fields are all JSON-compatible but whose interfaces\n* lack the index signature TypeScript requires for `JsonObject` assignability.\n* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.\n*/\nfunction jsonToTsSource(value) {\n\tif (value === void 0) return \"undefined\";\n\tif (value === null) return \"null\";\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n\tif (Array.isArray(value)) return tsArraySource(value.map((v) => jsonToTsSource(v)));\n\tif (typeof value === \"object\") return tsObjectSource(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, jsonToTsSource(v)]));\n\tthrow new InternalError(`jsonToTsSource: unsupported value type \"${typeof value}\"`);\n}\n/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */\nfunction tsObjectSource(entries) {\n\tif (entries.length === 0) return \"{}\";\n\tconst items = entries.map(([key, source]) => `${renderKey(key)}: ${source}`);\n\tconst singleLine = `{ ${items.join(\", \")} }`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `{\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n}`;\n}\n/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */\nfunction tsArraySource(items) {\n\tif (items.length === 0) return \"[]\";\n\tconst singleLine = `[${items.join(\", \")}]`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `[\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n]`;\n}\nfunction renderKey(key) {\n\tif (key === \"__proto__\") return tsStringLiteral(key);\n\treturn /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/render-imports.ts\n/**\n* Render an aggregated `import` block from a flat list of\n* `ImportRequirement`s. Each target's migration renderer collects\n* requirements polymorphically from its call nodes and pipes them here.\n*\n* The emitter invariants:\n*\n* - **Usually one line per module specifier.** Named imports are aggregated\n* and emitted sorted; a single default symbol is combined onto the same\n* line when attributes agree (`import def, { a, b } from \"m\";`). Aliased\n* symbols render `symbol as alias`. When every symbol for a module is\n* `typeOnly`, the statement collapses to `import type { … }`; a module\n* mixing value and type symbols prefixes the type-only ones\n* (`import { type T, v }`). Exceptions that split into multiple lines: a\n* fully type-only statement with both a default and one or more named\n* bindings (`import type D from \"m\";` then `import type { N } from \"m\";`,\n* because TypeScript rejects `import type D, { N } from \"m\"` — TS1363),\n* and multiple distinct default symbols (see below).\n* - **Multiple distinct default symbols per module are allowed.** JS permits\n* re-importing the same specifier under different default-binding names\n* (`import a from 'm'; import b from 'm';`), so each distinct default\n* symbol renders its own `import` line, sorted alphabetically; a repeated\n* requirement for the same symbol still collapses into one binding,\n* merging `typeOnly` by AND.\n* - **Attribute unanimity per module.** All requirements for the same\n* module specifier must carry the same (or no) `attributes` map.\n* Divergent attribute maps throw — they can't collapse to one line\n* and there's no user-resolvable recovery at this layer.\n* - **Distinct (symbol, alias) pairs are distinct bindings.** TypeScript\n* permits importing the same export under multiple local names, so\n* `{ A }` + `{ A as B }` renders as `import { A, A as B } from \"m\"` and\n* `{ A as B }` + `{ A as C }` renders as `import { A as B, A as C } from \"m\"`.\n* Truly identical `(symbol, alias)` pairs still collapse to one binding,\n* merging `typeOnly` by AND.\n* - **Deterministic ordering.** Modules are emitted sorted by specifier;\n* within a module, named bindings are emitted sorted by `(symbol, alias)`\n* using JavaScript code-unit comparison, with the un-aliased form (no\n* alias) treated as alias `\"\"` so it sorts before any aliased form of the\n* same symbol.\n*\n* Returns a string containing one or more import lines per module (see the\n* splitting exceptions above), joined by `\\n` (no trailing newline). An\n* empty requirement list returns `\"\"`.\n*/\nfunction renderImports(requirements) {\n\treturn [...aggregateByModule(requirements).entries()].sort(([a], [b]) => a.localeCompare(b)).map(([moduleSpecifier, group]) => renderModuleImport(moduleSpecifier, group)).join(\"\\n\");\n}\nfunction aggregateByModule(requirements) {\n\tconst byModule = /* @__PURE__ */ new Map();\n\tfor (const req of requirements) {\n\t\tlet group = byModule.get(req.moduleSpecifier);\n\t\tif (!group) {\n\t\t\tgroup = {\n\t\t\t\tnamed: /* @__PURE__ */ new Map(),\n\t\t\t\tdefaults: /* @__PURE__ */ new Map(),\n\t\t\t\tattributes: null,\n\t\t\t\tattributesSet: false\n\t\t\t};\n\t\t\tbyModule.set(req.moduleSpecifier, group);\n\t\t}\n\t\tmergeRequirementIntoGroup(req, group);\n\t}\n\treturn byModule;\n}\nfunction mergeRequirementIntoGroup(req, group) {\n\tconst kind = req.kind ?? \"named\";\n\tconst typeOnly = req.typeOnly === true;\n\tif (kind === \"default\") {\n\t\tconst existingTypeOnly = group.defaults.get(req.symbol);\n\t\tgroup.defaults.set(req.symbol, existingTypeOnly === void 0 ? typeOnly : existingTypeOnly && typeOnly);\n\t} else {\n\t\tconst alias = req.alias && req.alias !== req.symbol ? req.alias : null;\n\t\tconst key = namedBindingKey(req.symbol, alias);\n\t\tconst existing = group.named.get(key);\n\t\tif (existing) existing.typeOnly = existing.typeOnly && typeOnly;\n\t\telse group.named.set(key, {\n\t\t\tsymbol: req.symbol,\n\t\t\talias,\n\t\t\ttypeOnly\n\t\t});\n\t}\n\tmergeAttributes(req, group);\n}\nfunction mergeAttributes(req, group) {\n\tconst incoming = req.attributes ?? null;\n\tif (!group.attributesSet) {\n\t\tgroup.attributes = incoming;\n\t\tgroup.attributesSet = true;\n\t\treturn;\n\t}\n\tif (!attributesEqual(group.attributes, incoming)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Conflicting import attributes for module \"${req.moduleSpecifier}\": ${stringifyAttributes(group.attributes)} vs ${stringifyAttributes(incoming)}.`, { meta: { moduleSpecifier: req.moduleSpecifier } });\n}\nfunction attributesEqual(a, b) {\n\tif (a === b) return true;\n\tif (a === null || b === null) return false;\n\tconst aKeys = Object.keys(a).sort();\n\tconst bKeys = Object.keys(b).sort();\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i++) {\n\t\tconst key = aKeys[i];\n\t\tif (key !== bKeys[i]) return false;\n\t\tif (a[key] !== b[key]) return false;\n\t}\n\treturn true;\n}\nfunction stringifyAttributes(attrs) {\n\tif (attrs === null) return \"(none)\";\n\treturn `{ ${Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join(\", \")} }`;\n}\nfunction renderModuleImport(moduleSpecifier, group) {\n\tconst attrs = buildAttributesClause(group.attributes);\n\tconst defaultEntries = [...group.defaults.entries()].sort(([a], [b]) => a.localeCompare(b));\n\tconst hasNamed = group.named.size > 0;\n\tif (defaultEntries.length > 1) {\n\t\tconst defaultLines = defaultEntries.map(([symbol, typeOnly]) => `import ${typeOnly ? \"type \" : \"\"}${symbol} from '${moduleSpecifier}'${attrs};`);\n\t\tif (!hasNamed) return defaultLines.join(\"\\n\");\n\t\treturn [...defaultLines, renderNamedOnlyStatement(moduleSpecifier, group, attrs)].join(\"\\n\");\n\t}\n\tconst defaultEntry = defaultEntries[0];\n\tconst hasDefault = defaultEntry !== void 0;\n\tconst [defaultSymbol, defaultTypeOnly] = defaultEntry ?? [null, true];\n\tconst typeOnlyStatement = isStatementTypeOnly(hasDefault, defaultTypeOnly, group);\n\tif (typeOnlyStatement && hasDefault && hasNamed) return `${`import type ${defaultSymbol} from '${moduleSpecifier}'${attrs};`}\\n${`import type { ${renderNamedBindingsList(group, true)} } from '${moduleSpecifier}'${attrs};`}`;\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} ${buildImportClause(defaultSymbol, group, typeOnlyStatement)} from '${moduleSpecifier}'${attrs};`;\n}\nfunction renderNamedOnlyStatement(moduleSpecifier, group, attrs) {\n\tconst typeOnlyStatement = [...group.named.values()].every((binding) => binding.typeOnly);\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} { ${renderNamedBindingsList(group, typeOnlyStatement)} } from '${moduleSpecifier}'${attrs};`;\n}\nfunction isStatementTypeOnly(hasDefault, defaultTypeOnly, group) {\n\tconst hasNamed = group.named.size > 0;\n\tif (!hasDefault && !hasNamed) return false;\n\tif (hasDefault && !defaultTypeOnly) return false;\n\tfor (const binding of group.named.values()) if (!binding.typeOnly) return false;\n\treturn true;\n}\nfunction buildImportClause(defaultSymbol, group, statementTypeOnly) {\n\tconst hasNamed = group.named.size > 0;\n\tconst hasDefault = defaultSymbol !== null;\n\tconst namedClause = hasNamed ? renderNamedBindingsList(group, statementTypeOnly) : \"\";\n\tif (hasDefault && hasNamed) return `${defaultSymbol}, { ${namedClause} }`;\n\tif (hasDefault) return defaultSymbol;\n\treturn `{ ${namedClause} }`;\n}\nfunction renderNamedBindingsList(group, statementTypeOnly) {\n\treturn [...group.named.values()].sort(compareNamedBindings).map((binding) => renderNamedBinding(binding, statementTypeOnly)).join(\", \");\n}\nfunction compareNamedBindings(a, b) {\n\tif (a.symbol !== b.symbol) return a.symbol < b.symbol ? -1 : 1;\n\tconst aAlias = a.alias ?? \"\";\n\tconst bAlias = b.alias ?? \"\";\n\tif (aAlias === bAlias) return 0;\n\treturn aAlias < bAlias ? -1 : 1;\n}\nfunction namedBindingKey(symbol, alias) {\n\treturn `${symbol}\\x00${alias ?? \"\"}`;\n}\nfunction renderNamedBinding(binding, statementTypeOnly) {\n\tconst prefix = !statementTypeOnly && binding.typeOnly ? \"type \" : \"\";\n\tconst aliasClause = binding.alias !== null ? ` as ${binding.alias}` : \"\";\n\treturn `${prefix}${binding.symbol}${aliasClause}`;\n}\nfunction buildAttributesClause(attrs) {\n\tif (attrs === null) return \"\";\n\tconst entries = Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`);\n\tif (entries.length === 0) return \"\";\n\treturn ` with { ${entries.join(\", \")} }`;\n}\n//#endregion\n//#region src/ts-expression.ts\n/**\n* Abstract base class for any IR node that can be emitted as a TypeScript\n* expression and declare its own import requirements.\n*\n* A top-level renderer walks an array of these polymorphically, concatenates\n* `renderTypeScript()` results, and aggregates `importRequirements()` into a\n* deduplicated import block.\n*/\nvar TsExpression = class {};\n//#endregion\nexport { TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,KAAK,UAAU,KAAK,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,OAAO;AACpH;;;;;;AAMA,SAAS,mBAAmB,MAAM;CACjC,IAAI,EAAE,KAAK,SAAS,GAAG,KAAK,KAAK,SAAS,IAAI,MAAM,oBAAoB,IAAI,GAAG,OAAO,gBAAgB,IAAI;CAC1G,OAAO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,SAAS,SAAS,KAAK;AAC/B;AACA,SAAS,gBAAgB,QAAQ,OAAO;CACvC,OAAO,GAAG,OAAO,MAAM,SAAS;AACjC;AACA,SAAS,mBAAmB,SAAS,mBAAmB;CACvD,MAAM,SAAS,CAAC,qBAAqB,QAAQ,WAAW,UAAU;CAClE,MAAM,cAAc,QAAQ,UAAU,OAAO,OAAO,QAAQ,UAAU;CACtE,OAAO,GAAG,SAAS,QAAQ,SAAS;AACrC;AACA,SAAS,sBAAsB,OAAO;CACrC,IAAI,UAAU,MAAM,OAAO;CAC3B,MAAM,UAAU,OAAO,QAAQ,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,EAAE,IAAI,KAAK,UAAU,CAAC,GAAG;CACzH,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,OAAO,WAAW,QAAQ,KAAK,IAAI,EAAE;AACtC;;;;;;;;;AAWA,IAAI,eAAe,MAAM,CAAC"}
|
package/dist/errors.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { C as errorTargetMigrationNotSupported, S as errorQueryRunnerFactoryRequired, _ as errorJsonFormatNotSupported, a as errorConfigFileNotFound, b as errorMigrationPlanningFailed, c as errorContractConfigMissing, d as errorDatabaseConnectionRequired, f as errorDriverRequired, g as errorInvalidOutputFormat, h as errorFileNotFound, i as errorConfigEvaluationFailed, l as errorContractMissingExtensions, m as errorFamilyReadMarkerSqlRequired, n as CliErrorEnvelope, o as errorConfigValidation, p as errorEnumCodecNotInPackStack, r as CliStructuredError, s as errorConfigVersionMarkerMissing, t as CliErrorConflict, u as errorContractValidationFailed, v as errorMigrationCliInvalidConfigArg, w as errorUnexpected, x as errorOutputFormatMutex, y as errorMigrationCliUnknownFlag } from "./control-CJlRO0fS-DW9k9mRB.mjs";
|
|
2
|
-
import { a as errorHashMismatch, c as errorMarkerRequired, d as errorRuntime, f as errorSchemaVerificationFailed, g as withMarkerReadErrorHandling, h as rethrowMarkerReadError, i as errorDestructiveChanges, l as errorMarkerRowCorrupt, m as parseMarkerRowSafely, n as ERROR_CODE_DESTRUCTIVE_CHANGES, o as errorMarkerMissing, p as errorTargetMismatch, r as errorConsentPlanMismatch, s as errorMarkerReadFailed, t as ERROR_CODE_CONSENT_PLAN_MISMATCH, u as errorRunnerFailed } from "./execution-
|
|
2
|
+
import { a as errorHashMismatch, c as errorMarkerRequired, d as errorRuntime, f as errorSchemaVerificationFailed, g as withMarkerReadErrorHandling, h as rethrowMarkerReadError, i as errorDestructiveChanges, l as errorMarkerRowCorrupt, m as parseMarkerRowSafely, n as ERROR_CODE_DESTRUCTIVE_CHANGES, o as errorMarkerMissing, p as errorTargetMismatch, r as errorConsentPlanMismatch, s as errorMarkerReadFailed, t as ERROR_CODE_CONSENT_PLAN_MISMATCH, u as errorRunnerFailed } from "./execution-BbJTSuvJ.mjs";
|
|
3
3
|
import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-o0OGRAcI.mjs";
|
|
4
4
|
export { type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, ERROR_CODE_CONSENT_PLAN_MISMATCH, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorConsentPlanMismatch, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDestructiveChanges, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, withMarkerReadErrorHandling };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as errorHashMismatch, c as errorMarkerRequired, d as errorRuntime, f as errorSchemaVerificationFailed, g as withMarkerReadErrorHandling, h as rethrowMarkerReadError, i as errorDestructiveChanges, l as errorMarkerRowCorrupt, m as parseMarkerRowSafely, n as ERROR_CODE_DESTRUCTIVE_CHANGES, o as errorMarkerMissing, p as errorTargetMismatch, r as errorConsentPlanMismatch, s as errorMarkerReadFailed, t as ERROR_CODE_CONSENT_PLAN_MISMATCH, u as errorRunnerFailed } from "./execution-
|
|
1
|
+
import { a as errorHashMismatch, c as errorMarkerRequired, d as errorRuntime, f as errorSchemaVerificationFailed, g as withMarkerReadErrorHandling, h as rethrowMarkerReadError, i as errorDestructiveChanges, l as errorMarkerRowCorrupt, m as parseMarkerRowSafely, n as ERROR_CODE_DESTRUCTIVE_CHANGES, o as errorMarkerMissing, p as errorTargetMismatch, r as errorConsentPlanMismatch, s as errorMarkerReadFailed, t as ERROR_CODE_CONSENT_PLAN_MISMATCH, u as errorRunnerFailed } from "./execution-BbJTSuvJ.mjs";
|
|
2
2
|
export { ERROR_CODE_CONSENT_PLAN_MISMATCH, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConsentPlanMismatch, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as VerifyDatabaseSchemaResult, rt as SchemaDiffIssue } from "./control-
|
|
1
|
+
import { Et as VerifyDatabaseSchemaResult, rt as SchemaDiffIssue } from "./control-DgoyiMYQ.mjs";
|
|
2
2
|
import { i as NextAction, r as Diagnostic } from "./structured-error-Cc7AIRsp.mjs";
|
|
3
3
|
import { r as CliStructuredError } from "./control-CJlRO0fS-DW9k9mRB.mjs";
|
|
4
4
|
//#region ../../../1-framework/1-core/errors/dist/execution.d.mts
|
|
@@ -113,4 +113,4 @@ declare function errorRuntime(code: `${string}.${string}`, summary: string, opti
|
|
|
113
113
|
}): CliStructuredError;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { errorHashMismatch as a, errorMarkerRequired as c, errorRuntime as d, errorSchemaVerificationFailed as f, withMarkerReadErrorHandling as g, rethrowMarkerReadError as h, errorDestructiveChanges as i, errorMarkerRowCorrupt as l, parseMarkerRowSafely as m, ERROR_CODE_DESTRUCTIVE_CHANGES as n, errorMarkerMissing as o, errorTargetMismatch as p, errorConsentPlanMismatch as r, errorMarkerReadFailed as s, ERROR_CODE_CONSENT_PLAN_MISMATCH as t, errorRunnerFailed as u };
|
|
116
|
-
//# sourceMappingURL=execution-
|
|
116
|
+
//# sourceMappingURL=execution-BbJTSuvJ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-BbJTSuvJ.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.d.mts"],"mappings":";;;;;;;;iBAOiB,mBAAmB;WACzB;IACP;;;;iBAIa,kBAAkB;WACxB;WACA;WACA;IACP;;;;iBAIa,oBAAoB,kBAAkB,gBAAgB;WAC5D;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;iBACa,uBAAuB,cAAc;WAC3C;WACA;;iBAEM,4BAA4B,GAAG,iBAAiB,QAAQ,IAAI;WAClE;WACA;IACP,QAAQ;iBACK,qBAAqB,GAAG,cAAc,QAAQ,mBAAmB,GAAG;WAC1E;WACA;IACP;;;;;iBAKa,oBAAoB;WAC1B;WACA;WACA,uBAAuB;IAC9B;;;;;iBAKa,8BAA8B;WACpC;WACA,oBAAoB;WACpB,kBAAkB;IACzB;;;;iBAIa,kBAAkB,iBAAiB;WACzC;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP;;cAEU;;;;iBAIG,wBAAwB,iBAAiB;WAC/C;WACA;WACA,OAAO;IACd;cACU;;;;;iBAKG,yBAAyB;WAC/B;WACA;WACA;IACP;;;;iBAIa,aAAa,6BAA6B,iBAAiB;WACjE;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP"}
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it
|
|
16
16
|
* through the relevant codec's `encodeJson` first. Adding special cases to
|
|
17
17
|
* this file is not the answer — that's what codecs are for.
|
|
18
|
+
*
|
|
19
|
+
* The file also exports `tsObjectSource` and `tsArraySource`, the object and
|
|
20
|
+
* array layouts `jsonToTsSource` uses, for callers that render some values
|
|
21
|
+
* themselves.
|
|
18
22
|
*/
|
|
19
23
|
type JsonValue = string | number | boolean | null | readonly JsonValue[] | JsonObject;
|
|
20
24
|
type JsonObject = {
|
|
@@ -29,6 +33,10 @@ type JsonObject = {
|
|
|
29
33
|
* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.
|
|
30
34
|
*/
|
|
31
35
|
declare function jsonToTsSource(value: unknown): string;
|
|
36
|
+
/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */
|
|
37
|
+
declare function tsObjectSource(entries: readonly (readonly [key: string, source: string])[]): string;
|
|
38
|
+
/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */
|
|
39
|
+
declare function tsArraySource(items: readonly string[]): string;
|
|
32
40
|
//#endregion
|
|
33
41
|
//#region src/ts-expression.d.ts
|
|
34
42
|
/**
|
|
@@ -122,7 +130,8 @@ declare function renderImports(requirements: readonly ImportRequirement[]): stri
|
|
|
122
130
|
*
|
|
123
131
|
* `JSON.stringify` already escapes quotes, backslashes, and control characters
|
|
124
132
|
* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy
|
|
125
|
-
* parsers treat as line terminators,
|
|
133
|
+
* parsers treat as line terminators, and DEL (U+007F), which is invisible, so
|
|
134
|
+
* those are escaped explicitly.
|
|
126
135
|
*
|
|
127
136
|
* Used for both value literals (`jsonToTsSource`) and type-level literals /
|
|
128
137
|
* property keys (the contract emitter), so a physical name that a store admits
|
|
@@ -130,6 +139,12 @@ declare function renderImports(requirements: readonly ImportRequirement[]): stri
|
|
|
130
139
|
* way everywhere.
|
|
131
140
|
*/
|
|
132
141
|
declare function tsStringLiteral(value: string): string;
|
|
142
|
+
/**
|
|
143
|
+
* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote
|
|
144
|
+
* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,
|
|
145
|
+
* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.
|
|
146
|
+
*/
|
|
147
|
+
declare function tsQuotedTextSource(text: string): string;
|
|
133
148
|
//#endregion
|
|
134
|
-
export { jsonToTsSource as a, TsExpression as i, JsonObject as n, renderImports as o, JsonValue as r,
|
|
135
|
-
//# sourceMappingURL=index-
|
|
149
|
+
export { jsonToTsSource as a, tsObjectSource as c, TsExpression as i, tsQuotedTextSource as l, JsonObject as n, renderImports as o, JsonValue as r, tsArraySource as s, ImportRequirement as t, tsStringLiteral as u };
|
|
150
|
+
//# sourceMappingURL=index-DeSumOoq.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DeSumOoq.d.mts","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAqBK,wDAAwD,cAAc;KACtE;YACO,cAAc;;;;;;;;;;iBAUT,eAAe;;iBAEf,eAAe,6BAA6B,aAAa;;iBAEzD,cAAc;;;;;;;;;;;;;;;;;;;;UAoBrB;WACC;WACA;WACA;WACA,aAAa,SAAS;WACtB;WACA;;;;;;;;;;uBAUY;WACZ;WACA,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgDzB,cAAc,uBAAuB;;;;;;;;;;;;;;;;iBAgBrC,gBAAgB;;;;;;iBAMhB,mBAAmB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { U as PslSpan } from "./framework-authoring-BLXTNi9g-CcRc8u9I.mjs";
|
|
2
2
|
import { o as TaggedLiteralCanonicalization } from "./temporal-presets-DKHiZVPP-DLAr--Pb.mjs";
|
|
3
|
-
import "./control-
|
|
3
|
+
import "./control-DgoyiMYQ.mjs";
|
|
4
4
|
import "./psl-ast-DA_tKWiL.mjs";
|
|
5
|
-
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-
|
|
5
|
+
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-D5MpuJlm.mjs";
|
|
6
6
|
import { n as TokenKind, t as Token } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
|
|
7
7
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/parse-eSQ_clQv.d.mts
|
|
8
8
|
//#region src/syntax/syntax-kind.d.ts
|
|
@@ -525,4 +525,4 @@ interface ParseResult {
|
|
|
525
525
|
declare function parse(source: string, filename: string, options?: PslParserOptions): ParseResult;
|
|
526
526
|
//#endregion
|
|
527
527
|
export { any as $, NumberLiteralExprAst as A, QualifiedNameAst as B, IdentifierAst as C, NamedTypeDeclarationAst as D, ModelDeclarationAst as E, PathExprAst as F, SyntaxElement as G, SourceFile as H, Position as I, SyntaxToken as J, SyntaxKind as K, PslDiagnostic as L, ObjectLiteralExprAst as M, ParseDiagnostic as N, NamespaceDeclarationAst as O, ParseResult as P, TypesBlockAst as Q, PslDiagnosticCollector as R, HasDocComment as S, ModelAttributeAst as T, StringLiteralExprAst as U, Range as V, StringLiteralQuote as W, TokenAtOffset as X, TaggedLiteralExprAst as Y, TypeAnnotationAst as Z, GenericBlockDeclarationAst as _, AttributeAst as a, dottedPathsIn as at, GreenNode as b, BracedBlock as c, findFirstChild as ct, DiagnosticSource as d, mapPslDiagnostics as dt, castExpression as et, DocumentAst as f, parse as ft, FunctionCallAst as g, FieldDeclarationAst as h, AttributeArgListAst as i, diagnosticSource as it, ObjectFieldAst as j, NamespaceMemberAst as k, CompositeTypeDeclarationAst as l, greenNode as lt, FieldAttributeAst as m, AstNode as n, createSyntaxTree as nt, BlockMemberAst as o, filterChildren as ot, ExpressionAst as p, printSyntax as pt, SyntaxNode as q, AttributeArgAst as r, diagnosticFromSpan as rt, BooleanLiteralExprAst as s, findChildToken as st, ArrayLiteralAst as t, createPslDiagnosticCollector as tt, DeclarationAst as u, greenToken as ut, GenericBlockMemberAst as v, KeyValuePairAst as w, GreenToken as x, GreenElement as y, PslSources as z };
|
|
528
|
-
//# sourceMappingURL=parse-eSQ_clQv-
|
|
528
|
+
//# sourceMappingURL=parse-eSQ_clQv-D2Mtj0WV.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-eSQ_clQv-
|
|
1
|
+
{"version":3,"file":"parse-eSQ_clQv-D2Mtj0WV.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/parse-eSQ_clQv.d.mts"],"mappings":";;;;;;;;KAKK;;;UAGK;WACC;WACA,MAAM;WACN;;UAED;WACC;WACA,MAAM;WACN,UAAU,cAAc;WACxB;;KAEN,eAAe,YAAY;iBACf,WAAW,MAAM,WAAW,eAAe;iBAC3C,UAAU,MAAM,YAAY,UAAU,cAAc,gBAAgB;;;;;;;;;;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,QAAQ;EACpB,WAAW;EACX,QAAQ;EACR,UAAU;EACV,UAAU;EACV,WAAW,SAAS;;EAEpB,UAAU,SAAS;EACnB,cAAc,SAAS;EACvB,WAAW,SAAS;EACpB;SACO,KAAK,MAAM,aAAa;;cAEnB,2BAA2B;WAC9B,QAAQ;EACjB,YAAY,QAAQ;EACpB,OAAO;EACP,UAAU;EACV,SAAS;;EAET,cAAc,SAAS;SAChB,KAAK,MAAM,aAAa;;cAEnB,+BAA+B,SAAS;WAC3C,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,kBAAkB;EAClB,cAAc,SAAS;EACvB;SACO,KAAK,MAAM,aAAa;;cAEnB,mCAAmC,SAAS;WAC/C,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,UAAU;EACV,kBAAkB;EAClB,cAAc,SAAS;EACvB;SACO,KAAK,MAAM,aAAa;;;;KAI5B,kBAAkB;UACb;WACC,UAAU;WACV,sBAAsB;WACtB,SAAS;;;;;;iBAMH,MAAM,gBAAgB,kBAAkB,UAAU,mBAAmB"}
|
package/dist/psl-parser.d.mts
CHANGED
|
@@ -3,11 +3,11 @@ import { t as ControlDefaultRegistries } from "./mutation-default-types-ZfKqVdmf
|
|
|
3
3
|
import "./authoring-CQOFIHhF.mjs";
|
|
4
4
|
import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-CPxYIxM1-XHoHPgRO.mjs";
|
|
5
5
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
6
|
-
import { n as AssembledAuthoringContributions } from "./control-
|
|
6
|
+
import { n as AssembledAuthoringContributions } from "./control-DgoyiMYQ.mjs";
|
|
7
7
|
import "./psl-ast-DA_tKWiL.mjs";
|
|
8
8
|
import { i as isPslIdentifier } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
|
|
9
|
-
import { L as PslDiagnostic, R as PslDiagnosticCollector, T as ModelAttributeAst, d as DiagnosticSource, dt as mapPslDiagnostics, it as diagnosticSource, m as FieldAttributeAst, n as AstNode, q as SyntaxNode, r as AttributeArgAst, rt as diagnosticFromSpan, tt as createPslDiagnosticCollector, z as PslSources } from "./parse-eSQ_clQv-
|
|
10
|
-
import { $ as NullArgType, A as EntityDeclaration, At as UnrestrictedNumArgType, B as FuncCallSig, Bt as memberEntries, C as ContributedTypeScope, Ct as SymbolTable, D as DeclarationFor, Dt as TypedFuncCall, E as CtxOf, Et as TopLevelScope, F as FieldSymbol, Ft as createBinder, G as JsonArgType, Gt as typeReferenceNode, H as InferAttr, Ht as readResolvedAttribute, I as FixedIdentifierArgType, It as entityReference, J as ModelAttributeCtx, K as JsonValueArgType, L as FixedNumArgType, Lt as isNamespaceLike, M as EntitySelector, Mt as UnsupportedAttribute, N as FieldAttributeCtx, Nt as buildSymbolTable, O as DescribeUnresolvedType, Ot as UnresolvedTypeReference, P as FieldRefArgType, Pt as contributedTypeOf, Q as NamespaceSymbol, R as FixedStrArgType, Rt as keywordPslSpan, S as ContributedTypeNamespace, St as ScopeResolution, T as CreateBinderInput, Tt as TaggedLiteralArgType, U as InspectableArgType, Ut as readResolvedAttributes, V as IdentifierArgType, Vt as nodePslSpan, W as IntArgType, Wt as readResolvedConstructorCall, X as NamedOut, Y as ModelSymbol, Z as NamedTypeSymbol, _ as CompositeTypeSymbol, _t as ResolvedAttributeArg, a as AttributeLevel, at as PSL_UNRESOLVED_REFERENCE, b as ContributedNamespaceSymbol, bt as ResolvedTypeConstructorCall, c as AttributeSymbol, ct as PosOut, d as BinderResult, dt as RecordArgType, et as NumLiteral, f as BlockAttributeCtx, ft as ReferencedFieldRefArgType, g as BuildSymbolTableOptions, gt as ResolvedAttribute, h as BoundSpec, ht as Resolution, i as AttributeCtx, it as OutOf, j as EntityRefArgType, jt as UnrestrictedStrArgType, k as DescribeUnsupportedAttribute, kt as UnrestrictedIdentifierArgType, l as Binder, lt as PositionalParam, m as BoolArgType, mt as RequiredContextFor, n as ArgType, nt as OneOfArgType, o as AttributeOut, ot as Param, p as BlockSymbol, pt as RejectingArgType, q as ListArgType, r as ArgTypeKind, rt as OptionalArgType, s as AttributeSpec, st as ParsedTaggedLiteral, t as AnyArgType, tt as NumLiteralArgType, u as BinderContext, ut as PslSymbol, v as ContextForRequirement, vt as ResolvedEntityReference, w as ContributedTypeSymbol, wt as SymbolTableResult, x as ContributedTypeDescriptor, xt as Scope, y as ContributedMember, yt as ResolvedNamedTypeBinding, z as FuncCallArgType, zt as matchesSelector } from "./binder-CGmSEQPU-
|
|
9
|
+
import { L as PslDiagnostic, R as PslDiagnosticCollector, T as ModelAttributeAst, d as DiagnosticSource, dt as mapPslDiagnostics, it as diagnosticSource, m as FieldAttributeAst, n as AstNode, q as SyntaxNode, r as AttributeArgAst, rt as diagnosticFromSpan, tt as createPslDiagnosticCollector, z as PslSources } from "./parse-eSQ_clQv-D2Mtj0WV.mjs";
|
|
10
|
+
import { $ as NullArgType, A as EntityDeclaration, At as UnrestrictedNumArgType, B as FuncCallSig, Bt as memberEntries, C as ContributedTypeScope, Ct as SymbolTable, D as DeclarationFor, Dt as TypedFuncCall, E as CtxOf, Et as TopLevelScope, F as FieldSymbol, Ft as createBinder, G as JsonArgType, Gt as typeReferenceNode, H as InferAttr, Ht as readResolvedAttribute, I as FixedIdentifierArgType, It as entityReference, J as ModelAttributeCtx, K as JsonValueArgType, L as FixedNumArgType, Lt as isNamespaceLike, M as EntitySelector, Mt as UnsupportedAttribute, N as FieldAttributeCtx, Nt as buildSymbolTable, O as DescribeUnresolvedType, Ot as UnresolvedTypeReference, P as FieldRefArgType, Pt as contributedTypeOf, Q as NamespaceSymbol, R as FixedStrArgType, Rt as keywordPslSpan, S as ContributedTypeNamespace, St as ScopeResolution, T as CreateBinderInput, Tt as TaggedLiteralArgType, U as InspectableArgType, Ut as readResolvedAttributes, V as IdentifierArgType, Vt as nodePslSpan, W as IntArgType, Wt as readResolvedConstructorCall, X as NamedOut, Y as ModelSymbol, Z as NamedTypeSymbol, _ as CompositeTypeSymbol, _t as ResolvedAttributeArg, a as AttributeLevel, at as PSL_UNRESOLVED_REFERENCE, b as ContributedNamespaceSymbol, bt as ResolvedTypeConstructorCall, c as AttributeSymbol, ct as PosOut, d as BinderResult, dt as RecordArgType, et as NumLiteral, f as BlockAttributeCtx, ft as ReferencedFieldRefArgType, g as BuildSymbolTableOptions, gt as ResolvedAttribute, h as BoundSpec, ht as Resolution, i as AttributeCtx, it as OutOf, j as EntityRefArgType, jt as UnrestrictedStrArgType, k as DescribeUnsupportedAttribute, kt as UnrestrictedIdentifierArgType, l as Binder, lt as PositionalParam, m as BoolArgType, mt as RequiredContextFor, n as ArgType, nt as OneOfArgType, o as AttributeOut, ot as Param, p as BlockSymbol, pt as RejectingArgType, q as ListArgType, r as ArgTypeKind, rt as OptionalArgType, s as AttributeSpec, st as ParsedTaggedLiteral, t as AnyArgType, tt as NumLiteralArgType, u as BinderContext, ut as PslSymbol, v as ContextForRequirement, vt as ResolvedEntityReference, w as ContributedTypeSymbol, wt as SymbolTableResult, x as ContributedTypeDescriptor, xt as Scope, y as ContributedMember, yt as ResolvedNamedTypeBinding, z as FuncCallArgType, zt as matchesSelector } from "./binder-CGmSEQPU-B7utUHdi.mjs";
|
|
11
11
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
|
|
12
12
|
//#region src/attribute-helpers.d.ts
|
|
13
13
|
declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PslParserOptions } from "./config-types-
|
|
1
|
+
import { h as PslParserOptions } from "./config-types-D5MpuJlm.mjs";
|
|
2
2
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/format.d.mts
|
|
3
3
|
//#region src/format/options.d.ts
|
|
4
4
|
interface FormatOptions {
|
|
@@ -3,9 +3,9 @@ import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructo
|
|
|
3
3
|
import "./authoring-CQOFIHhF.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
5
|
import "./psl-ast-DA_tKWiL.mjs";
|
|
6
|
-
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-
|
|
7
|
-
import { L as PslDiagnostic, R as PslDiagnosticCollector, d as DiagnosticSource, f as DocumentAst, z as PslSources } from "./parse-eSQ_clQv-
|
|
8
|
-
import { Ct as SymbolTable, F as FieldSymbol, _t as ResolvedAttributeArg, bt as ResolvedTypeConstructorCall, l as Binder, p as BlockSymbol } from "./binder-CGmSEQPU-
|
|
6
|
+
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-D5MpuJlm.mjs";
|
|
7
|
+
import { L as PslDiagnostic, R as PslDiagnosticCollector, d as DiagnosticSource, f as DocumentAst, z as PslSources } from "./parse-eSQ_clQv-D2Mtj0WV.mjs";
|
|
8
|
+
import { Ct as SymbolTable, F as FieldSymbol, _t as ResolvedAttributeArg, bt as ResolvedTypeConstructorCall, l as Binder, p as BlockSymbol } from "./binder-CGmSEQPU-B7utUHdi.mjs";
|
|
9
9
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/interpret.d.mts
|
|
10
10
|
//#region src/authoring-arguments.d.ts
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as TokenKind } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
|
|
2
|
-
import { $ as any, A as NumberLiteralExprAst, B as QualifiedNameAst, C as IdentifierAst, D as NamedTypeDeclarationAst, E as ModelDeclarationAst, F as PathExprAst, G as SyntaxElement, H as SourceFile, I as Position, J as SyntaxToken, K as SyntaxKind, M as ObjectLiteralExprAst, N as ParseDiagnostic, O as NamespaceDeclarationAst, P as ParseResult, Q as TypesBlockAst, S as HasDocComment, T as ModelAttributeAst, U as StringLiteralExprAst, V as Range, W as StringLiteralQuote, X as TokenAtOffset, Y as TaggedLiteralExprAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, a as AttributeAst, at as dottedPathsIn, b as GreenNode, c as BracedBlock, ct as findFirstChild, et as castExpression, f as DocumentAst, ft as parse, g as FunctionCallAst, h as FieldDeclarationAst, i as AttributeArgListAst, j as ObjectFieldAst, k as NamespaceMemberAst, l as CompositeTypeDeclarationAst, lt as greenNode, m as FieldAttributeAst, n as AstNode, nt as createSyntaxTree, o as BlockMemberAst, ot as filterChildren, p as ExpressionAst, pt as printSyntax, q as SyntaxNode, r as AttributeArgAst, s as BooleanLiteralExprAst, st as findChildToken, t as ArrayLiteralAst, u as DeclarationAst, ut as greenToken, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement, z as PslSources } from "./parse-eSQ_clQv-
|
|
2
|
+
import { $ as any, A as NumberLiteralExprAst, B as QualifiedNameAst, C as IdentifierAst, D as NamedTypeDeclarationAst, E as ModelDeclarationAst, F as PathExprAst, G as SyntaxElement, H as SourceFile, I as Position, J as SyntaxToken, K as SyntaxKind, M as ObjectLiteralExprAst, N as ParseDiagnostic, O as NamespaceDeclarationAst, P as ParseResult, Q as TypesBlockAst, S as HasDocComment, T as ModelAttributeAst, U as StringLiteralExprAst, V as Range, W as StringLiteralQuote, X as TokenAtOffset, Y as TaggedLiteralExprAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, a as AttributeAst, at as dottedPathsIn, b as GreenNode, c as BracedBlock, ct as findFirstChild, et as castExpression, f as DocumentAst, ft as parse, g as FunctionCallAst, h as FieldDeclarationAst, i as AttributeArgListAst, j as ObjectFieldAst, k as NamespaceMemberAst, l as CompositeTypeDeclarationAst, lt as greenNode, m as FieldAttributeAst, n as AstNode, nt as createSyntaxTree, o as BlockMemberAst, ot as filterChildren, p as ExpressionAst, pt as printSyntax, q as SyntaxNode, r as AttributeArgAst, s as BooleanLiteralExprAst, st as findChildToken, t as ArrayLiteralAst, u as DeclarationAst, ut as greenToken, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement, z as PslSources } from "./parse-eSQ_clQv-D2Mtj0WV.mjs";
|
|
3
3
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/syntax.d.mts
|
|
4
4
|
//#region src/syntax/green-builder.d.ts
|
|
5
5
|
declare class GreenNodeBuilder {
|
package/dist/ts-render.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsonToTsSource, i as TsExpression, n as JsonObject, o as renderImports, r as JsonValue, s as
|
|
2
|
-
export { type ImportRequirement, type JsonObject, type JsonValue, TsExpression, jsonToTsSource, renderImports, tsStringLiteral };
|
|
1
|
+
import { a as jsonToTsSource, c as tsObjectSource, i as TsExpression, l as tsQuotedTextSource, n as JsonObject, o as renderImports, r as JsonValue, s as tsArraySource, t as ImportRequirement, u as tsStringLiteral } from "./index-DeSumOoq.mjs";
|
|
2
|
+
export { type ImportRequirement, type JsonObject, type JsonValue, TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral };
|
package/dist/ts-render.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
export { TsExpression, jsonToTsSource, renderImports, tsStringLiteral };
|
|
1
|
+
import { a as tsObjectSource, i as tsArraySource, n as jsonToTsSource, o as tsQuotedTextSource, r as renderImports, s as tsStringLiteral, t as TsExpression } from "./dist-DtT9I2iL.mjs";
|
|
2
|
+
export { TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.14-dev.
|
|
3
|
+
"version": "8.0.0-rc.14-dev.23",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"uniku": "^0.5.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/config": "8.0.0-rc.14-dev.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.14-dev.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.14-dev.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.14-dev.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.14-dev.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.14-dev.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.14-dev.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.14-dev.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.14-dev.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.14-dev.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.14-dev.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.14-dev.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.14-dev.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.14-dev.
|
|
19
|
+
"@internal/config": "8.0.0-rc.14-dev.23",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.14-dev.23",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.14-dev.23",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.14-dev.23",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.14-dev.23",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.14-dev.23",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.14-dev.23",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.14-dev.23",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.14-dev.23",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.14-dev.23",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.14-dev.23",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.14-dev.23",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.14-dev.23",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.14-dev.23",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dist-DUlexZHp.mjs","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.mjs"],"sourcesContent":["import { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/ts-string-literal.ts\n/**\n* Renders a string as a TypeScript source-text literal.\n*\n* `JSON.stringify` already escapes quotes, backslashes, and control characters\n* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy\n* parsers treat as line terminators, so those are escaped explicitly.\n*\n* Used for both value literals (`jsonToTsSource`) and type-level literals /\n* property keys (the contract emitter), so a physical name that a store admits\n* as a quoted identifier but TypeScript does not admit bare renders the same\n* way everywhere.\n*/\nfunction tsStringLiteral(value) {\n\treturn JSON.stringify(value).replace(/\\u2028/g, \"\\\\u2028\").replace(/\\u2029/g, \"\\\\u2029\");\n}\n//#endregion\n//#region src/json-to-ts-source.ts\n/**\n* Pure JSON-to-TypeScript-source printer.\n*\n* This module is the second stage of the codec → TS pipeline:\n*\n* jsValue → codec.encodeJson → JsonValue → jsonToTsSource → TS source text\n*\n* Stage 1 (`codec.encodeJson`) is a codec responsibility — date serialization,\n* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2\n* (this module) is a pure JSON-to-TS printer that must never grow type-specific\n* branches.\n*\n* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it\n* through the relevant codec's `encodeJson` first. Adding special cases to\n* this file is not the answer — that's what codecs are for.\n*/\n/**\n* Render a JSON-compatible value as a TypeScript source-text literal.\n*\n* Accepts `unknown` for ergonomics with structural types (e.g. `ColumnSpec`,\n* `ForeignKeySpec`) whose fields are all JSON-compatible but whose interfaces\n* lack the index signature TypeScript requires for `JsonObject` assignability.\n* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.\n*/\nfunction jsonToTsSource(value) {\n\tif (value === void 0) return \"undefined\";\n\tif (value === null) return \"null\";\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n\tif (Array.isArray(value)) {\n\t\tif (value.length === 0) return \"[]\";\n\t\tconst items = value.map((v) => jsonToTsSource(v));\n\t\tconst singleLine = `[${items.join(\", \")}]`;\n\t\tif (singleLine.length <= 80) return singleLine;\n\t\treturn `[\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n]`;\n\t}\n\tif (typeof value === \"object\") {\n\t\tconst entries = Object.entries(value).filter(([, v]) => v !== void 0);\n\t\tif (entries.length === 0) return \"{}\";\n\t\tconst items = entries.map(([k, v]) => `${renderKey(k)}: ${jsonToTsSource(v)}`);\n\t\tconst singleLine = `{ ${items.join(\", \")} }`;\n\t\tif (singleLine.length <= 80) return singleLine;\n\t\treturn `{\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n}`;\n\t}\n\tthrow new InternalError(`jsonToTsSource: unsupported value type \"${typeof value}\"`);\n}\nfunction renderKey(key) {\n\tif (key === \"__proto__\") return tsStringLiteral(key);\n\treturn /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/render-imports.ts\n/**\n* Render an aggregated `import` block from a flat list of\n* `ImportRequirement`s. Each target's migration renderer collects\n* requirements polymorphically from its call nodes and pipes them here.\n*\n* The emitter invariants:\n*\n* - **Usually one line per module specifier.** Named imports are aggregated\n* and emitted sorted; a single default symbol is combined onto the same\n* line when attributes agree (`import def, { a, b } from \"m\";`). Aliased\n* symbols render `symbol as alias`. When every symbol for a module is\n* `typeOnly`, the statement collapses to `import type { … }`; a module\n* mixing value and type symbols prefixes the type-only ones\n* (`import { type T, v }`). Exceptions that split into multiple lines: a\n* fully type-only statement with both a default and one or more named\n* bindings (`import type D from \"m\";` then `import type { N } from \"m\";`,\n* because TypeScript rejects `import type D, { N } from \"m\"` — TS1363),\n* and multiple distinct default symbols (see below).\n* - **Multiple distinct default symbols per module are allowed.** JS permits\n* re-importing the same specifier under different default-binding names\n* (`import a from 'm'; import b from 'm';`), so each distinct default\n* symbol renders its own `import` line, sorted alphabetically; a repeated\n* requirement for the same symbol still collapses into one binding,\n* merging `typeOnly` by AND.\n* - **Attribute unanimity per module.** All requirements for the same\n* module specifier must carry the same (or no) `attributes` map.\n* Divergent attribute maps throw — they can't collapse to one line\n* and there's no user-resolvable recovery at this layer.\n* - **Distinct (symbol, alias) pairs are distinct bindings.** TypeScript\n* permits importing the same export under multiple local names, so\n* `{ A }` + `{ A as B }` renders as `import { A, A as B } from \"m\"` and\n* `{ A as B }` + `{ A as C }` renders as `import { A as B, A as C } from \"m\"`.\n* Truly identical `(symbol, alias)` pairs still collapse to one binding,\n* merging `typeOnly` by AND.\n* - **Deterministic ordering.** Modules are emitted sorted by specifier;\n* within a module, named bindings are emitted sorted by `(symbol, alias)`\n* using JavaScript code-unit comparison, with the un-aliased form (no\n* alias) treated as alias `\"\"` so it sorts before any aliased form of the\n* same symbol.\n*\n* Returns a string containing one or more import lines per module (see the\n* splitting exceptions above), joined by `\\n` (no trailing newline). An\n* empty requirement list returns `\"\"`.\n*/\nfunction renderImports(requirements) {\n\treturn [...aggregateByModule(requirements).entries()].sort(([a], [b]) => a.localeCompare(b)).map(([moduleSpecifier, group]) => renderModuleImport(moduleSpecifier, group)).join(\"\\n\");\n}\nfunction aggregateByModule(requirements) {\n\tconst byModule = /* @__PURE__ */ new Map();\n\tfor (const req of requirements) {\n\t\tlet group = byModule.get(req.moduleSpecifier);\n\t\tif (!group) {\n\t\t\tgroup = {\n\t\t\t\tnamed: /* @__PURE__ */ new Map(),\n\t\t\t\tdefaults: /* @__PURE__ */ new Map(),\n\t\t\t\tattributes: null,\n\t\t\t\tattributesSet: false\n\t\t\t};\n\t\t\tbyModule.set(req.moduleSpecifier, group);\n\t\t}\n\t\tmergeRequirementIntoGroup(req, group);\n\t}\n\treturn byModule;\n}\nfunction mergeRequirementIntoGroup(req, group) {\n\tconst kind = req.kind ?? \"named\";\n\tconst typeOnly = req.typeOnly === true;\n\tif (kind === \"default\") {\n\t\tconst existingTypeOnly = group.defaults.get(req.symbol);\n\t\tgroup.defaults.set(req.symbol, existingTypeOnly === void 0 ? typeOnly : existingTypeOnly && typeOnly);\n\t} else {\n\t\tconst alias = req.alias && req.alias !== req.symbol ? req.alias : null;\n\t\tconst key = namedBindingKey(req.symbol, alias);\n\t\tconst existing = group.named.get(key);\n\t\tif (existing) existing.typeOnly = existing.typeOnly && typeOnly;\n\t\telse group.named.set(key, {\n\t\t\tsymbol: req.symbol,\n\t\t\talias,\n\t\t\ttypeOnly\n\t\t});\n\t}\n\tmergeAttributes(req, group);\n}\nfunction mergeAttributes(req, group) {\n\tconst incoming = req.attributes ?? null;\n\tif (!group.attributesSet) {\n\t\tgroup.attributes = incoming;\n\t\tgroup.attributesSet = true;\n\t\treturn;\n\t}\n\tif (!attributesEqual(group.attributes, incoming)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Conflicting import attributes for module \"${req.moduleSpecifier}\": ${stringifyAttributes(group.attributes)} vs ${stringifyAttributes(incoming)}.`, { meta: { moduleSpecifier: req.moduleSpecifier } });\n}\nfunction attributesEqual(a, b) {\n\tif (a === b) return true;\n\tif (a === null || b === null) return false;\n\tconst aKeys = Object.keys(a).sort();\n\tconst bKeys = Object.keys(b).sort();\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i++) {\n\t\tconst key = aKeys[i];\n\t\tif (key !== bKeys[i]) return false;\n\t\tif (a[key] !== b[key]) return false;\n\t}\n\treturn true;\n}\nfunction stringifyAttributes(attrs) {\n\tif (attrs === null) return \"(none)\";\n\treturn `{ ${Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join(\", \")} }`;\n}\nfunction renderModuleImport(moduleSpecifier, group) {\n\tconst attrs = buildAttributesClause(group.attributes);\n\tconst defaultEntries = [...group.defaults.entries()].sort(([a], [b]) => a.localeCompare(b));\n\tconst hasNamed = group.named.size > 0;\n\tif (defaultEntries.length > 1) {\n\t\tconst defaultLines = defaultEntries.map(([symbol, typeOnly]) => `import ${typeOnly ? \"type \" : \"\"}${symbol} from '${moduleSpecifier}'${attrs};`);\n\t\tif (!hasNamed) return defaultLines.join(\"\\n\");\n\t\treturn [...defaultLines, renderNamedOnlyStatement(moduleSpecifier, group, attrs)].join(\"\\n\");\n\t}\n\tconst defaultEntry = defaultEntries[0];\n\tconst hasDefault = defaultEntry !== void 0;\n\tconst [defaultSymbol, defaultTypeOnly] = defaultEntry ?? [null, true];\n\tconst typeOnlyStatement = isStatementTypeOnly(hasDefault, defaultTypeOnly, group);\n\tif (typeOnlyStatement && hasDefault && hasNamed) return `${`import type ${defaultSymbol} from '${moduleSpecifier}'${attrs};`}\\n${`import type { ${renderNamedBindingsList(group, true)} } from '${moduleSpecifier}'${attrs};`}`;\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} ${buildImportClause(defaultSymbol, group, typeOnlyStatement)} from '${moduleSpecifier}'${attrs};`;\n}\nfunction renderNamedOnlyStatement(moduleSpecifier, group, attrs) {\n\tconst typeOnlyStatement = [...group.named.values()].every((binding) => binding.typeOnly);\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} { ${renderNamedBindingsList(group, typeOnlyStatement)} } from '${moduleSpecifier}'${attrs};`;\n}\nfunction isStatementTypeOnly(hasDefault, defaultTypeOnly, group) {\n\tconst hasNamed = group.named.size > 0;\n\tif (!hasDefault && !hasNamed) return false;\n\tif (hasDefault && !defaultTypeOnly) return false;\n\tfor (const binding of group.named.values()) if (!binding.typeOnly) return false;\n\treturn true;\n}\nfunction buildImportClause(defaultSymbol, group, statementTypeOnly) {\n\tconst hasNamed = group.named.size > 0;\n\tconst hasDefault = defaultSymbol !== null;\n\tconst namedClause = hasNamed ? renderNamedBindingsList(group, statementTypeOnly) : \"\";\n\tif (hasDefault && hasNamed) return `${defaultSymbol}, { ${namedClause} }`;\n\tif (hasDefault) return defaultSymbol;\n\treturn `{ ${namedClause} }`;\n}\nfunction renderNamedBindingsList(group, statementTypeOnly) {\n\treturn [...group.named.values()].sort(compareNamedBindings).map((binding) => renderNamedBinding(binding, statementTypeOnly)).join(\", \");\n}\nfunction compareNamedBindings(a, b) {\n\tif (a.symbol !== b.symbol) return a.symbol < b.symbol ? -1 : 1;\n\tconst aAlias = a.alias ?? \"\";\n\tconst bAlias = b.alias ?? \"\";\n\tif (aAlias === bAlias) return 0;\n\treturn aAlias < bAlias ? -1 : 1;\n}\nfunction namedBindingKey(symbol, alias) {\n\treturn `${symbol}\\x00${alias ?? \"\"}`;\n}\nfunction renderNamedBinding(binding, statementTypeOnly) {\n\tconst prefix = !statementTypeOnly && binding.typeOnly ? \"type \" : \"\";\n\tconst aliasClause = binding.alias !== null ? ` as ${binding.alias}` : \"\";\n\treturn `${prefix}${binding.symbol}${aliasClause}`;\n}\nfunction buildAttributesClause(attrs) {\n\tif (attrs === null) return \"\";\n\tconst entries = Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`);\n\tif (entries.length === 0) return \"\";\n\treturn ` with { ${entries.join(\", \")} }`;\n}\n//#endregion\n//#region src/ts-expression.ts\n/**\n* Abstract base class for any IR node that can be emitted as a TypeScript\n* expression and declare its own import requirements.\n*\n* A top-level renderer walks an array of these polymorphically, concatenates\n* `renderTypeScript()` results, and aggregates `importRequirements()` into a\n* deduplicated import block.\n*/\nvar TsExpression = class {};\n//#endregion\nexport { TsExpression, jsonToTsSource, renderImports, tsStringLiteral };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,KAAK,UAAU,KAAK,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,SAAS;AACxF;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,SAAS,eAAe,OAAO;CAC9B,IAAI,UAAU,KAAK,GAAG,OAAO;CAC7B,IAAI,UAAU,MAAM,OAAO;CAC3B,IAAI,OAAO,UAAU,UAAU,OAAO,gBAAgB,KAAK;CAC3D,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW,OAAO,OAAO,KAAK;CAChF,IAAI,MAAM,QAAQ,KAAK,GAAG;EACzB,IAAI,MAAM,WAAW,GAAG,OAAO;EAC/B,MAAM,QAAQ,MAAM,KAAK,MAAM,eAAe,CAAC,CAAC;EAChD,MAAM,aAAa,IAAI,MAAM,KAAK,IAAI,EAAE;EACxC,IAAI,WAAW,UAAU,IAAI,OAAO;EACpC,OAAO,MAAM,MAAM,KAAK,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,KAAK,EAAE;CACrD;CACA,IAAI,OAAO,UAAU,UAAU;EAC9B,MAAM,UAAU,OAAO,QAAQ,KAAK,CAAC,CAAC,QAAQ,GAAG,OAAO,MAAM,KAAK,CAAC;EACpE,IAAI,QAAQ,WAAW,GAAG,OAAO;EACjC,MAAM,QAAQ,QAAQ,KAAK,CAAC,GAAG,OAAO,GAAG,UAAU,CAAC,EAAE,IAAI,eAAe,CAAC,GAAG;EAC7E,MAAM,aAAa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