@prisma/orm-framework 0.17.0-dev.1 → 0.17.0-dev.10
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/authoring-ljy8m56O.d.mts +1 -0
- package/dist/capabilities-D_lE1L0x-x4Dq0wCx.mjs +119 -0
- package/dist/capabilities-D_lE1L0x-x4Dq0wCx.mjs.map +1 -0
- package/dist/{codec-Cly9VPoA.mjs → codec-D6TctTla.mjs} +6 -21
- package/dist/codec-D6TctTla.mjs.map +1 -0
- package/dist/{codec-D3GVAkR_.d.mts → codec-LWTqo1GG.d.mts} +3 -7
- package/dist/{codec-D3GVAkR_.d.mts.map → codec-LWTqo1GG.d.mts.map} +1 -1
- package/dist/{codec-types-XJO6eC9U-B_K2q0zm.d.mts → codec-types-720XoDZ0-Br-QaYK3.d.mts} +5 -3
- package/dist/{codec-types-XJO6eC9U-B_K2q0zm.d.mts.map → codec-types-720XoDZ0-Br-QaYK3.d.mts.map} +1 -1
- package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs +30 -0
- package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs.map +1 -0
- package/dist/components-D7bixOE0.d.mts +50 -0
- package/dist/components-D7bixOE0.d.mts.map +1 -0
- package/dist/components-ifbUGzY-.mjs +88 -0
- package/dist/components-ifbUGzY-.mjs.map +1 -0
- package/dist/components.d.mts +16 -16
- package/dist/components.mjs +6 -4
- package/dist/components__authoring.d.mts +2 -2
- package/dist/components__codec.d.mts +2 -2
- package/dist/components__codec.mjs +2 -1
- package/dist/components__components.d.mts +4 -3
- package/dist/components__components.mjs +3 -2
- package/dist/components__control.d.mts +3 -3
- package/dist/components__control.mjs +1 -1
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/config-types-DzIlP4Ue.d.mts +1 -0
- package/dist/{config-types-W-87vhZ4-BgYaH8YO.d.mts → config-types-W-87vhZ4-xE_-BXZD.d.mts} +6 -6
- package/dist/{config-types-W-87vhZ4-BgYaH8YO.d.mts.map → config-types-W-87vhZ4-xE_-BXZD.d.mts.map} +1 -1
- package/dist/{config-validation-DXggMTZf.d.mts → config-validation-B9uJhjX7.d.mts} +2 -2
- package/dist/{config-validation-DXggMTZf.d.mts.map → config-validation-B9uJhjX7.d.mts.map} +1 -1
- package/dist/config.d.mts +3 -3
- package/dist/config__config-types.d.mts +2 -2
- package/dist/config__config-validation.d.mts +1 -1
- package/dist/contract-authoring.d.mts +3 -3
- package/dist/{control-DTouE89s.mjs → control-Clpi3725.mjs} +41 -2
- package/dist/control-Clpi3725.mjs.map +1 -0
- package/dist/{control-CBvTj7Ia.d.mts → control-DavL9i47.d.mts} +12 -8
- package/dist/{control-CBvTj7Ia.d.mts.map → control-DavL9i47.d.mts.map} +1 -1
- package/dist/dist-DFakQfiQ.mjs +252 -0
- package/dist/dist-DFakQfiQ.mjs.map +1 -0
- package/dist/emission-PUUc-DK4.d.mts +2 -0
- package/dist/{emission-types-hfRVB_Yw-DpQ3hISB.d.mts → emission-types-6jLF1pS8-BZlRi3Ma.d.mts} +9 -4
- package/dist/emission-types-6jLF1pS8-BZlRi3Ma.d.mts.map +1 -0
- package/dist/errors.d.mts +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/{execution-MOde1lmD.d.mts → execution-4sAWQx8X.d.mts} +2 -2
- package/dist/{execution-MOde1lmD.d.mts.map → execution-4sAWQx8X.d.mts.map} +1 -1
- package/dist/{execution-Bo5Bu2Ys.d.mts → execution-BZIwXeq-.d.mts} +2 -2
- package/dist/{execution-Bo5Bu2Ys.d.mts.map → execution-BZIwXeq-.d.mts.map} +1 -1
- package/dist/{framework-authoring-7YMP9TwM-C9P-N6_a.d.mts → framework-authoring--R1ZGWs1-C5F11Vhx.d.mts} +3 -3
- package/dist/{framework-authoring-7YMP9TwM-C9P-N6_a.d.mts.map → framework-authoring--R1ZGWs1-C5F11Vhx.d.mts.map} +1 -1
- package/dist/{framework-components-MFoo0sYx-G_6k9jt4.d.mts → framework-components-BQ_fYHtC-Co52pfO-.d.mts} +9 -5
- package/dist/framework-components-BQ_fYHtC-Co52pfO-.d.mts.map +1 -0
- package/dist/ids.d.mts +1 -1
- package/dist/{index-GY2oGH9L.d.mts → index-CDk9yEbw.d.mts} +17 -2
- package/dist/{index-GY2oGH9L.d.mts.map → index-CDk9yEbw.d.mts.map} +1 -1
- package/dist/{parse-0ZJjj_2N-WZZ1nlrv.d.mts → parse-0ZJjj_2N-CGZMQABI.d.mts} +3 -3
- package/dist/{parse-0ZJjj_2N-WZZ1nlrv.d.mts.map → parse-0ZJjj_2N-CGZMQABI.d.mts.map} +1 -1
- package/dist/{psl-ast-Chgi8e4o-rSlBk1UV.d.mts → psl-ast-C4IAv2T_-CO0jh_VK.d.mts} +4 -4
- package/dist/{psl-ast-Chgi8e4o-rSlBk1UV.d.mts.map → psl-ast-C4IAv2T_-CO0jh_VK.d.mts.map} +1 -1
- package/dist/{psl-ast-BEwO80EH.d.mts → psl-ast-DAMpjVOP.d.mts} +4 -4
- package/dist/{psl-ast-BEwO80EH.d.mts.map → psl-ast-DAMpjVOP.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +8 -8
- package/dist/psl-parser__interpret.d.mts +4 -4
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-printer.d.mts +6 -6
- package/dist/{runtime--RZXG1zP.d.mts → runtime-Cne6hBaG.d.mts} +2 -2
- package/dist/{runtime--RZXG1zP.d.mts.map → runtime-Cne6hBaG.d.mts.map} +1 -1
- package/dist/{symbol-table-CZ7EVCTL-oYQtrmzq.d.mts → symbol-table-CZ7EVCTL-CqkpG3a_.d.mts} +5 -5
- package/dist/{symbol-table-CZ7EVCTL-oYQtrmzq.d.mts.map → symbol-table-CZ7EVCTL-CqkpG3a_.d.mts.map} +1 -1
- package/dist/ts-render.d.mts +2 -2
- package/dist/ts-render.mjs +2 -240
- package/dist/types-import-spec-B4hKOPE9-BwQGG38j.d.mts +104 -0
- package/dist/types-import-spec-B4hKOPE9-BwQGG38j.d.mts.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-Dd7p6pTS.d.mts +0 -1
- package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs +0 -64
- package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs.map +0 -1
- package/dist/codec-Cly9VPoA.mjs.map +0 -1
- package/dist/components-CawuxTia.d.mts +0 -1
- package/dist/config-types-zrHI32Om.d.mts +0 -1
- package/dist/control-DTouE89s.mjs.map +0 -1
- package/dist/emission-DeoQufVd.d.mts +0 -1
- package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts.map +0 -1
- package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts.map +0 -1
- package/dist/ts-render.mjs.map +0 -1
- package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts +0 -14
- package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts.map +0 -1
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { a as structuredError } from "./structured-error-H6WU9Kjt.mjs";
|
|
2
|
+
import { t as InternalError } from "./internal-error-BIc-ehme-ouBQPoEL.mjs";
|
|
3
|
+
//#region ../../../1-framework/1-core/ts-render/dist/index.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Renders a string as a TypeScript source-text literal.
|
|
6
|
+
*
|
|
7
|
+
* `JSON.stringify` already escapes quotes, backslashes, and control characters
|
|
8
|
+
* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy
|
|
9
|
+
* parsers treat as line terminators, so those are escaped explicitly.
|
|
10
|
+
*
|
|
11
|
+
* Used for both value literals (`jsonToTsSource`) and type-level literals /
|
|
12
|
+
* property keys (the contract emitter), so a physical name that a store admits
|
|
13
|
+
* as a quoted identifier but TypeScript does not admit bare renders the same
|
|
14
|
+
* way everywhere.
|
|
15
|
+
*/
|
|
16
|
+
function tsStringLiteral(value) {
|
|
17
|
+
return JSON.stringify(value).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Pure JSON-to-TypeScript-source printer.
|
|
21
|
+
*
|
|
22
|
+
* This module is the second stage of the codec → TS pipeline:
|
|
23
|
+
*
|
|
24
|
+
* jsValue → codec.encodeJson → JsonValue → jsonToTsSource → TS source text
|
|
25
|
+
*
|
|
26
|
+
* Stage 1 (`codec.encodeJson`) is a codec responsibility — date serialization,
|
|
27
|
+
* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2
|
|
28
|
+
* (this module) is a pure JSON-to-TS printer that must never grow type-specific
|
|
29
|
+
* branches.
|
|
30
|
+
*
|
|
31
|
+
* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it
|
|
32
|
+
* through the relevant codec's `encodeJson` first. Adding special cases to
|
|
33
|
+
* this file is not the answer — that's what codecs are for.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Render a JSON-compatible value as a TypeScript source-text literal.
|
|
37
|
+
*
|
|
38
|
+
* Accepts `unknown` for ergonomics with structural types (e.g. `ColumnSpec`,
|
|
39
|
+
* `ForeignKeySpec`) whose fields are all JSON-compatible but whose interfaces
|
|
40
|
+
* lack the index signature TypeScript requires for `JsonObject` assignability.
|
|
41
|
+
* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.
|
|
42
|
+
*/
|
|
43
|
+
function jsonToTsSource(value) {
|
|
44
|
+
if (value === void 0) return "undefined";
|
|
45
|
+
if (value === null) return "null";
|
|
46
|
+
if (typeof value === "string") return tsStringLiteral(value);
|
|
47
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
48
|
+
if (Array.isArray(value)) {
|
|
49
|
+
if (value.length === 0) return "[]";
|
|
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
|
+
}
|
|
63
|
+
throw new InternalError(`jsonToTsSource: unsupported value type "${typeof value}"`);
|
|
64
|
+
}
|
|
65
|
+
function renderKey(key) {
|
|
66
|
+
if (key === "__proto__") return tsStringLiteral(key);
|
|
67
|
+
return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);
|
|
68
|
+
}
|
|
69
|
+
function contractError(code, message, options) {
|
|
70
|
+
return structuredError(code, message, options);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Render an aggregated `import` block from a flat list of
|
|
74
|
+
* `ImportRequirement`s. Each target's migration renderer collects
|
|
75
|
+
* requirements polymorphically from its call nodes and pipes them here.
|
|
76
|
+
*
|
|
77
|
+
* The emitter invariants:
|
|
78
|
+
*
|
|
79
|
+
* - **Usually one line per module specifier.** Named imports are aggregated
|
|
80
|
+
* and emitted sorted; a single default symbol is combined onto the same
|
|
81
|
+
* line when attributes agree (`import def, { a, b } from "m";`). Aliased
|
|
82
|
+
* symbols render `symbol as alias`. When every symbol for a module is
|
|
83
|
+
* `typeOnly`, the statement collapses to `import type { … }`; a module
|
|
84
|
+
* mixing value and type symbols prefixes the type-only ones
|
|
85
|
+
* (`import { type T, v }`). Exceptions that split into multiple lines: a
|
|
86
|
+
* fully type-only statement with both a default and one or more named
|
|
87
|
+
* bindings (`import type D from "m";` then `import type { N } from "m";`,
|
|
88
|
+
* because TypeScript rejects `import type D, { N } from "m"` — TS1363),
|
|
89
|
+
* and multiple distinct default symbols (see below).
|
|
90
|
+
* - **Multiple distinct default symbols per module are allowed.** JS permits
|
|
91
|
+
* re-importing the same specifier under different default-binding names
|
|
92
|
+
* (`import a from 'm'; import b from 'm';`), so each distinct default
|
|
93
|
+
* symbol renders its own `import` line, sorted alphabetically; a repeated
|
|
94
|
+
* requirement for the same symbol still collapses into one binding,
|
|
95
|
+
* merging `typeOnly` by AND.
|
|
96
|
+
* - **Attribute unanimity per module.** All requirements for the same
|
|
97
|
+
* module specifier must carry the same (or no) `attributes` map.
|
|
98
|
+
* Divergent attribute maps throw — they can't collapse to one line
|
|
99
|
+
* and there's no user-resolvable recovery at this layer.
|
|
100
|
+
* - **Distinct (symbol, alias) pairs are distinct bindings.** TypeScript
|
|
101
|
+
* permits importing the same export under multiple local names, so
|
|
102
|
+
* `{ A }` + `{ A as B }` renders as `import { A, A as B } from "m"` and
|
|
103
|
+
* `{ A as B }` + `{ A as C }` renders as `import { A as B, A as C } from "m"`.
|
|
104
|
+
* Truly identical `(symbol, alias)` pairs still collapse to one binding,
|
|
105
|
+
* merging `typeOnly` by AND.
|
|
106
|
+
* - **Deterministic ordering.** Modules are emitted sorted by specifier;
|
|
107
|
+
* within a module, named bindings are emitted sorted by `(symbol, alias)`
|
|
108
|
+
* using JavaScript code-unit comparison, with the un-aliased form (no
|
|
109
|
+
* alias) treated as alias `""` so it sorts before any aliased form of the
|
|
110
|
+
* same symbol.
|
|
111
|
+
*
|
|
112
|
+
* Returns a string containing one or more import lines per module (see the
|
|
113
|
+
* splitting exceptions above), joined by `\n` (no trailing newline). An
|
|
114
|
+
* empty requirement list returns `""`.
|
|
115
|
+
*/
|
|
116
|
+
function renderImports(requirements) {
|
|
117
|
+
return [...aggregateByModule(requirements).entries()].sort(([a], [b]) => a.localeCompare(b)).map(([moduleSpecifier, group]) => renderModuleImport(moduleSpecifier, group)).join("\n");
|
|
118
|
+
}
|
|
119
|
+
function aggregateByModule(requirements) {
|
|
120
|
+
const byModule = /* @__PURE__ */ new Map();
|
|
121
|
+
for (const req of requirements) {
|
|
122
|
+
let group = byModule.get(req.moduleSpecifier);
|
|
123
|
+
if (!group) {
|
|
124
|
+
group = {
|
|
125
|
+
named: /* @__PURE__ */ new Map(),
|
|
126
|
+
defaults: /* @__PURE__ */ new Map(),
|
|
127
|
+
attributes: null,
|
|
128
|
+
attributesSet: false
|
|
129
|
+
};
|
|
130
|
+
byModule.set(req.moduleSpecifier, group);
|
|
131
|
+
}
|
|
132
|
+
mergeRequirementIntoGroup(req, group);
|
|
133
|
+
}
|
|
134
|
+
return byModule;
|
|
135
|
+
}
|
|
136
|
+
function mergeRequirementIntoGroup(req, group) {
|
|
137
|
+
const kind = req.kind ?? "named";
|
|
138
|
+
const typeOnly = req.typeOnly === true;
|
|
139
|
+
if (kind === "default") {
|
|
140
|
+
const existingTypeOnly = group.defaults.get(req.symbol);
|
|
141
|
+
group.defaults.set(req.symbol, existingTypeOnly === void 0 ? typeOnly : existingTypeOnly && typeOnly);
|
|
142
|
+
} else {
|
|
143
|
+
const alias = req.alias && req.alias !== req.symbol ? req.alias : null;
|
|
144
|
+
const key = namedBindingKey(req.symbol, alias);
|
|
145
|
+
const existing = group.named.get(key);
|
|
146
|
+
if (existing) existing.typeOnly = existing.typeOnly && typeOnly;
|
|
147
|
+
else group.named.set(key, {
|
|
148
|
+
symbol: req.symbol,
|
|
149
|
+
alias,
|
|
150
|
+
typeOnly
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
mergeAttributes(req, group);
|
|
154
|
+
}
|
|
155
|
+
function mergeAttributes(req, group) {
|
|
156
|
+
const incoming = req.attributes ?? null;
|
|
157
|
+
if (!group.attributesSet) {
|
|
158
|
+
group.attributes = incoming;
|
|
159
|
+
group.attributesSet = true;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
if (!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 } });
|
|
163
|
+
}
|
|
164
|
+
function attributesEqual(a, b) {
|
|
165
|
+
if (a === b) return true;
|
|
166
|
+
if (a === null || b === null) return false;
|
|
167
|
+
const aKeys = Object.keys(a).sort();
|
|
168
|
+
const bKeys = Object.keys(b).sort();
|
|
169
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
170
|
+
for (let i = 0; i < aKeys.length; i++) {
|
|
171
|
+
const key = aKeys[i];
|
|
172
|
+
if (key !== bKeys[i]) return false;
|
|
173
|
+
if (a[key] !== b[key]) return false;
|
|
174
|
+
}
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
function stringifyAttributes(attrs) {
|
|
178
|
+
if (attrs === null) return "(none)";
|
|
179
|
+
return `{ ${Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join(", ")} }`;
|
|
180
|
+
}
|
|
181
|
+
function renderModuleImport(moduleSpecifier, group) {
|
|
182
|
+
const attrs = buildAttributesClause(group.attributes);
|
|
183
|
+
const defaultEntries = [...group.defaults.entries()].sort(([a], [b]) => a.localeCompare(b));
|
|
184
|
+
const hasNamed = group.named.size > 0;
|
|
185
|
+
if (defaultEntries.length > 1) {
|
|
186
|
+
const defaultLines = defaultEntries.map(([symbol, typeOnly]) => `import ${typeOnly ? "type " : ""}${symbol} from '${moduleSpecifier}'${attrs};`);
|
|
187
|
+
if (!hasNamed) return defaultLines.join("\n");
|
|
188
|
+
return [...defaultLines, renderNamedOnlyStatement(moduleSpecifier, group, attrs)].join("\n");
|
|
189
|
+
}
|
|
190
|
+
const defaultEntry = defaultEntries[0];
|
|
191
|
+
const hasDefault = defaultEntry !== void 0;
|
|
192
|
+
const [defaultSymbol, defaultTypeOnly] = defaultEntry ?? [null, true];
|
|
193
|
+
const typeOnlyStatement = isStatementTypeOnly(hasDefault, defaultTypeOnly, group);
|
|
194
|
+
if (typeOnlyStatement && hasDefault && hasNamed) return `${`import type ${defaultSymbol} from '${moduleSpecifier}'${attrs};`}\n${`import type { ${renderNamedBindingsList(group, true)} } from '${moduleSpecifier}'${attrs};`}`;
|
|
195
|
+
return `${typeOnlyStatement ? "import type" : "import"} ${buildImportClause(defaultSymbol, group, typeOnlyStatement)} from '${moduleSpecifier}'${attrs};`;
|
|
196
|
+
}
|
|
197
|
+
function renderNamedOnlyStatement(moduleSpecifier, group, attrs) {
|
|
198
|
+
const typeOnlyStatement = [...group.named.values()].every((binding) => binding.typeOnly);
|
|
199
|
+
return `${typeOnlyStatement ? "import type" : "import"} { ${renderNamedBindingsList(group, typeOnlyStatement)} } from '${moduleSpecifier}'${attrs};`;
|
|
200
|
+
}
|
|
201
|
+
function isStatementTypeOnly(hasDefault, defaultTypeOnly, group) {
|
|
202
|
+
const hasNamed = group.named.size > 0;
|
|
203
|
+
if (!hasDefault && !hasNamed) return false;
|
|
204
|
+
if (hasDefault && !defaultTypeOnly) return false;
|
|
205
|
+
for (const binding of group.named.values()) if (!binding.typeOnly) return false;
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
function buildImportClause(defaultSymbol, group, statementTypeOnly) {
|
|
209
|
+
const hasNamed = group.named.size > 0;
|
|
210
|
+
const hasDefault = defaultSymbol !== null;
|
|
211
|
+
const namedClause = hasNamed ? renderNamedBindingsList(group, statementTypeOnly) : "";
|
|
212
|
+
if (hasDefault && hasNamed) return `${defaultSymbol}, { ${namedClause} }`;
|
|
213
|
+
if (hasDefault) return defaultSymbol;
|
|
214
|
+
return `{ ${namedClause} }`;
|
|
215
|
+
}
|
|
216
|
+
function renderNamedBindingsList(group, statementTypeOnly) {
|
|
217
|
+
return [...group.named.values()].sort(compareNamedBindings).map((binding) => renderNamedBinding(binding, statementTypeOnly)).join(", ");
|
|
218
|
+
}
|
|
219
|
+
function compareNamedBindings(a, b) {
|
|
220
|
+
if (a.symbol !== b.symbol) return a.symbol < b.symbol ? -1 : 1;
|
|
221
|
+
const aAlias = a.alias ?? "";
|
|
222
|
+
const bAlias = b.alias ?? "";
|
|
223
|
+
if (aAlias === bAlias) return 0;
|
|
224
|
+
return aAlias < bAlias ? -1 : 1;
|
|
225
|
+
}
|
|
226
|
+
function namedBindingKey(symbol, alias) {
|
|
227
|
+
return `${symbol}\x00${alias ?? ""}`;
|
|
228
|
+
}
|
|
229
|
+
function renderNamedBinding(binding, statementTypeOnly) {
|
|
230
|
+
const prefix = !statementTypeOnly && binding.typeOnly ? "type " : "";
|
|
231
|
+
const aliasClause = binding.alias !== null ? ` as ${binding.alias}` : "";
|
|
232
|
+
return `${prefix}${binding.symbol}${aliasClause}`;
|
|
233
|
+
}
|
|
234
|
+
function buildAttributesClause(attrs) {
|
|
235
|
+
if (attrs === null) return "";
|
|
236
|
+
const entries = Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`);
|
|
237
|
+
if (entries.length === 0) return "";
|
|
238
|
+
return ` with { ${entries.join(", ")} }`;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Abstract base class for any IR node that can be emitted as a TypeScript
|
|
242
|
+
* expression and declare its own import requirements.
|
|
243
|
+
*
|
|
244
|
+
* A top-level renderer walks an array of these polymorphically, concatenates
|
|
245
|
+
* `renderTypeScript()` results, and aggregates `importRequirements()` into a
|
|
246
|
+
* deduplicated import block.
|
|
247
|
+
*/
|
|
248
|
+
var TsExpression = class {};
|
|
249
|
+
//#endregion
|
|
250
|
+
export { tsStringLiteral as i, jsonToTsSource as n, renderImports as r, TsExpression as t };
|
|
251
|
+
|
|
252
|
+
//# sourceMappingURL=dist-DFakQfiQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-DFakQfiQ.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;CA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I,EAAE;AACtC;;;;;;;;;AAWA,IAAI,eAAe,MAAM,CAAC"}
|
package/dist/{emission-types-hfRVB_Yw-DpQ3hISB.d.mts → emission-types-6jLF1pS8-BZlRi3Ma.d.mts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as ContractModelBase, z as JsonValue } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
|
|
2
2
|
import { t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
|
|
3
|
-
import { c as CodecLookup } from "./codec-types-
|
|
4
|
-
import {
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/emission-types-
|
|
3
|
+
import { c as CodecLookup, t as AnyCodecDescriptor } from "./codec-types-720XoDZ0-Br-QaYK3.mjs";
|
|
4
|
+
import { c as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-B4hKOPE9-BwQGG38j.mjs";
|
|
5
|
+
//#region ../../../1-framework/1-core/framework-components/dist/emission-types-6jLF1pS8.d.mts
|
|
6
6
|
//#region src/shared/import-specifier-resolver.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Rewrites one module specifier for the import root a generated file is being
|
|
@@ -39,6 +39,11 @@ declare function resolveRequirementSpecifiers<T extends {
|
|
|
39
39
|
//#region src/control/emission-types.d.ts
|
|
40
40
|
interface GenerateContractTypesOptions {
|
|
41
41
|
readonly queryOperationTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
42
|
+
/**
|
|
43
|
+
* The aggregate overloads the composed stack contributes, and the codec descriptors they are settled against. A family emits result types from these — the same declarations its runtime registry resolves against, so emitted types and decoded results cannot disagree.
|
|
44
|
+
*/
|
|
45
|
+
readonly aggregateDescriptors?: ReadonlyArray<AggregateDescriptor>;
|
|
46
|
+
readonly codecDescriptors?: ReadonlyArray<AnyCodecDescriptor>;
|
|
42
47
|
}
|
|
43
48
|
interface ValidationContext {
|
|
44
49
|
readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
@@ -72,4 +77,4 @@ interface EmissionSpi {
|
|
|
72
77
|
}
|
|
73
78
|
//#endregion
|
|
74
79
|
export { keepInternalSpecifiers as a, ValidationContext as i, GenerateContractTypesOptions as n, resolveRequirementSpecifiers as o, ImportSpecifierResolver as r, EmissionSpi as t };
|
|
75
|
-
//# sourceMappingURL=emission-types-
|
|
80
|
+
//# sourceMappingURL=emission-types-6jLF1pS8-BZlRi3Ma.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emission-types-6jLF1pS8-BZlRi3Ma.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/emission-types-6jLF1pS8.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAcK,2BAA2B;;;;;;cAMlB,wBAAwB;;;;;;;;;;iBAUrB,6BAA6B;WACnC;GACR,uBAAuB,KAAK,UAAU,0BAA0B,MAAM,KAAK;WACnE;;;;UAID;WACC,4BAA4B,cAAc;;;;WAI1C,uBAAuB,cAAc;WACrC,mBAAmB,cAAc;;UAElC;WACC,mBAAmB,cAAc;WACjC,eAAe;;UAEhB;WACC;EACT,oBAAoB,UAAU,UAAU;EACxC,yBAAyB,mBAAmB,OAAO;;;;;;EAMnD,iBAAiB,wBAAwB;EACzC,qBAAqB,UAAU;EAC/B;EACA,mBAAmB,0BAA0B;EAC7C,wBAAwB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU,WAAW;;;;;;;EAO7G,sBAAsB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU;aACrF,wBAAwB;aACxB;;EAEX,uBAAuB,UAAU,UAAU,cAAc"}
|
package/dist/errors.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { S as errorUnexpected, _ as errorMigrationCliUnknownFlag, a as errorConfigValidation, b as errorQueryRunnerFactoryRequired, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliInvalidConfigArg, h as errorJsonFormatNotSupported, i as errorConfigFileNotFound, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as CliErrorEnvelope, o as errorContractConfigMissing, p as errorFileNotFound, r as CliStructuredError, s as errorContractMissingExtensions, t as CliErrorConflict, u as errorDriverRequired, v as errorMigrationPlanningFailed, x as errorTargetMigrationNotSupported, y as errorOutputFormatMutex } from "./control-B87KWI_K-C_R8WfEr.mjs";
|
|
2
|
-
import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-
|
|
2
|
+
import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-4sAWQx8X.mjs";
|
|
3
3
|
import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-DKbDzBwy.mjs";
|
|
4
4
|
export { type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDestructiveChanges, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, withMarkerReadErrorHandling };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-
|
|
1
|
+
import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-4sAWQx8X.mjs";
|
|
2
2
|
export { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SchemaDiffIssue, St as VerifyDatabaseSchemaResult } from "./control-
|
|
1
|
+
import { $ as SchemaDiffIssue, St as VerifyDatabaseSchemaResult } from "./control-DavL9i47.mjs";
|
|
2
2
|
import { r as CliStructuredError } from "./control-B87KWI_K-C_R8WfEr.mjs";
|
|
3
3
|
//#region ../../../1-framework/1-core/errors/dist/execution.d.mts
|
|
4
4
|
//#region src/execution.d.ts
|
|
@@ -95,4 +95,4 @@ declare function errorRuntime(summary: string, options?: {
|
|
|
95
95
|
}): CliStructuredError;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { errorMarkerReadFailed as a, errorRunnerFailed as c, errorTargetMismatch as d, parseMarkerRowSafely as f, errorMarkerMissing as i, errorRuntime as l, withMarkerReadErrorHandling as m, errorDestructiveChanges as n, errorMarkerRequired as o, rethrowMarkerReadError as p, errorHashMismatch as r, errorMarkerRowCorrupt as s, ERROR_CODE_DESTRUCTIVE_CHANGES as t, errorSchemaVerificationFailed as u };
|
|
98
|
-
//# sourceMappingURL=execution-
|
|
98
|
+
//# sourceMappingURL=execution-4sAWQx8X.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-4sAWQx8X.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.d.mts"],"mappings":";;;;;;;iBAMiB,mBAAmB;WACzB;IACP;;;;iBAIa,kBAAkB;WACxB;WACA;WACA;IACP;;;;iBAIa,oBAAoB,kBAAkB,gBAAgB;WAC5D;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;IACP;;;;iBAIa,sBAAsB;WAC5B;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;IACP;;;;;iBAKa,8BAA8B;WACpC;WACA,oBAAoB;WACpB,kBAAkB;IACzB;;;;iBAIa,kBAAkB,iBAAiB;WACzC;WACA;WACA,OAAO;IACd;;cAEU;;;;iBAIG,wBAAwB,iBAAiB;WAC/C;WACA;WACA,OAAO;IACd;;;;iBAIa,aAAa,iBAAiB;WACpC;WACA;WACA,OAAO;IACd"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as TargetDescriptor, f as DriverDescriptor, g as ExtensionInstance, h as ExtensionDescriptor, k as TargetInstance, n as AdapterInstance, p as DriverInstance, t as AdapterDescriptor, v as FamilyDescriptor, y as FamilyInstance } from "./framework-components-
|
|
1
|
+
import { O as TargetDescriptor, f as DriverDescriptor, g as ExtensionInstance, h as ExtensionDescriptor, k as TargetInstance, n as AdapterInstance, p as DriverInstance, t as AdapterDescriptor, v as FamilyDescriptor, y as FamilyInstance } from "./framework-components-BQ_fYHtC-Co52pfO-.mjs";
|
|
2
2
|
//#region ../../../1-framework/1-core/framework-components/dist/execution.d.mts
|
|
3
3
|
//#region src/execution/execution-instances.d.ts
|
|
4
4
|
interface RuntimeFamilyInstance<TFamilyId extends string> extends FamilyInstance<TFamilyId> {}
|
|
@@ -76,4 +76,4 @@ declare function assertRuntimeContractRequirementsSatisfied<TFamilyId extends st
|
|
|
76
76
|
}): void;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { RuntimeDriverDescriptor as a, RuntimeExtensionInstance as c, RuntimeTargetDescriptor as d, RuntimeTargetInstance as f, instantiateExecutionStack as h, RuntimeAdapterInstance as i, RuntimeFamilyDescriptor as l, createExecutionStack as m, ExecutionStackInstance as n, RuntimeDriverInstance as o, assertRuntimeContractRequirementsSatisfied as p, RuntimeAdapterDescriptor as r, RuntimeExtensionDescriptor as s, ExecutionStack as t, RuntimeFamilyInstance as u };
|
|
79
|
-
//# sourceMappingURL=execution-
|
|
79
|
+
//# sourceMappingURL=execution-BZIwXeq-.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-BZIwXeq-.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/execution.d.mts"],"mappings":";;;UAEU,sBAAsB,kCAAkC,eAAe;UACvE,sBAAsB,0BAA0B,kCAAkC,eAAe,WAAW;UAC5G,uBAAuB,0BAA0B,kCAAkC,gBAAgB,WAAW;UAC9G,sBAAsB,0BAA0B,kCAAkC,eAAe,WAAW;UAC5G,yBAAyB,0BAA0B,kCAAkC,kBAAkB,WAAW;;;UAGlH,eAAe,0BAA0B,0BAA0B,yBAAyB,uBAAuB,WAAW,aAAa,uBAAuB,WAAW,YAAY,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW;WAC3Z,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW,WAAW;WACxD,QAAQ,wBAAwB,WAAW,oBAAoB;WAC/D,qBAAqB,2BAA2B,WAAW,WAAW;;UAEvE,uBAAuB,0BAA0B,0BAA0B,yBAAyB,uBAAuB,WAAW,aAAa,uBAAuB,WAAW,YAAY,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW;WACna,OAAO,eAAe,WAAW,WAAW,kBAAkB,iBAAiB;WAC/E,QAAQ,sBAAsB,WAAW;WACzC,SAAS;WACT,QAAQ;WACR,qBAAqB;;iBAEf,qBAAqB,0BAA0B,0BAA0B,wBAAwB,sBAAsB,WAAW,YAAY,0BAA0B,wBAAwB,WAAW,WAAW,kBAAkB,yBAAyB,uBAAuB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,WAAW,mBAAmB,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,0BAA0B,wBAAwB,WAAW,oBAAoB,0CAA0C,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW,YAAY,6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,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,qBAAqB,2BAA2B,WAAW"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as ExecutionMutationDefaultPhases, a as ColumnDefault } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
|
|
2
|
-
import { c as CodecLookup } from "./codec-types-
|
|
2
|
+
import { c as CodecLookup } from "./codec-types-720XoDZ0-Br-QaYK3.mjs";
|
|
3
3
|
import { Type } from "arktype";
|
|
4
|
-
//#region ../../../1-framework/1-core/framework-components/dist/framework-authoring
|
|
4
|
+
//#region ../../../1-framework/1-core/framework-components/dist/framework-authoring--R1ZGWs1.d.mts
|
|
5
5
|
//#region src/shared/option-descriptor.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* An enumerated-value parameter: the author supplies one of `values`, spelled
|
|
@@ -774,4 +774,4 @@ declare function instantiateAuthoringFieldPreset(descriptor: AuthoringFieldPrese
|
|
|
774
774
|
};
|
|
775
775
|
//#endregion
|
|
776
776
|
export { hasRegisteredFieldNamespace as $, PslBlockParam as A, PslExtensionBlockParamList as B, AuthoringTemplateValue as C, AuthoringWarning as D, AuthoringTypeNamespace as E, PslDiagnosticCode as F, PslPosition as G, PslExtensionBlockParamRef as H, PslExtensionBlock as I, assertNoCrossRegistryCollisions as J, PslSpan as K, PslExtensionBlockAttribute as L, PslBlockParamOption as M, PslBlockParamRef as N, AuthoringWarningSink as O, PslBlockParamValue as P, flushAuthoringWarnings as Q, PslExtensionBlockAttributeArg as R, AuthoringStorageTypeTemplate as S, AuthoringTypeConstructorEntityRef as T, PslExtensionBlockParamScalarValue as U, PslExtensionBlockParamOption as V, PslExtensionBlockParamValue as W, classifyEnumMemberType as X, assertResolvableTypeConstructorTemplates as Y, collectScalarTypeConstructors as Z, AuthoringModelAttributeLoweringOutput as _, AuthoringDiagnosticSink as a, isAuthoringFieldPresetDescriptor as at, AuthoringPslBlockDescriptorNamespace as b, AuthoringEntityTypeFactoryOutput as c, isAuthoringTypeConstructorDescriptor as ct, AuthoringFieldNamespace as d, resolveEnumCodecId as dt, instantiateAuthoringEntityType as et, AuthoringFieldPresetDescriptor as f, validateAuthoringHelperArguments as ft, AuthoringModelAttributeDescriptorNamespace as g, AuthoringModelAttributeDescriptor as h, AuthoringContributions as i, isAuthoringEntityTypeDescriptor as it, PslBlockParamList as j, ContributedPslDiagnosticCode as k, AuthoringEntityTypeNamespace as l, mergeAuthoringNamespaces as lt, AuthoringModelAttributeContext as m, AuthoringArgumentDescriptor as n, instantiateAuthoringTypeConstructor as nt, AuthoringEntityContext as o, isAuthoringModelAttributeDescriptor as ot, AuthoringFieldPresetOutput as p, ScalarTypeConstructorOutput as q, AuthoringColumnDefaultTemplate as r, isAuthoringArgRef as rt, AuthoringEntityTypeDescriptor as s, isAuthoringPslBlockDescriptor as st, AuthoringArgRef as t, instantiateAuthoringFieldPreset as tt, AuthoringEntityTypeTemplateOutput as u, resolveAuthoringTemplateValue as ut, AuthoringOption as v, AuthoringTypeConstructorDescriptor as w, AuthoringSelectRef as x, AuthoringPslBlockDescriptor as y, PslExtensionBlockParamBare as z };
|
|
777
|
-
//# sourceMappingURL=framework-authoring-
|
|
777
|
+
//# sourceMappingURL=framework-authoring--R1ZGWs1-C5F11Vhx.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-authoring-
|
|
1
|
+
{"version":3,"file":"framework-authoring--R1ZGWs1-C5F11Vhx.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-authoring--R1ZGWs1.d.mts"],"mappings":";;;;;;;;;;;;UAWU;WACC;WACA;;;;UAID;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;KAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0FA;;;;;;;;;;;;;KAaA,gBAAgB,mBAAmB,qBAAqB,sBAA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4BAA4B,eAAe,oCAAoC;;;;;;;;;;;;;;;;;;;;iBAoB/E,yBAAyB,QAAQ,yBAAyB,QAAQ,yBAAyB,yBAAyB,wBAAwB;UACnJ;WACC;WACA;WACA,aAAa;;;;;;;;;;;;;;;;;iBAiBP,8BAA8B,WAAW,yBAAyB,oBAAoB;;;;;;;;;;iBAUtF,yCAAyC,WAAW,wBAAwB,uBAAuB;iBACnG,gCAAgC,eAAe,wBAAwB,gBAAgB,yBAAyB,sBAAsB,8BAA8B,oBAAoB,sCAAsC,0BAA0B;iBACxP,8BAA8B,UAAU,oCAAoC;iBAC5E,iCAAiC,oBAAoB,sBAAsB,2CAA2C;iBACtH,oCAAoC,YAAY,oCAAoC;WAC1F;WACA;WACA,aAAa;;iBAEP,+BAA+B,mBAAmB,oBAAoB,YAAY,+BAA+B,0BAA0B,KAAK,yBAAyB;iBACzK,gCAAgC,YAAY,gCAAgC;WAClF;aACE;aACA;aACA,aAAa;;WAEf;WACA,UAAU;WACV,oBAAoB;WACpB;WACA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { M as ExecutionMutationDefaultPhases, N as ExecutionMutationDefaultValue, a as ColumnDefault } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
|
|
2
|
-
import { t as AnyCodecDescriptor } from "./codec-types-
|
|
3
|
-
import { i as AuthoringContributions } from "./framework-authoring-
|
|
4
|
-
import {
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/framework-components-
|
|
2
|
+
import { t as AnyCodecDescriptor } from "./codec-types-720XoDZ0-Br-QaYK3.mjs";
|
|
3
|
+
import { i as AuthoringContributions } from "./framework-authoring--R1ZGWs1-C5F11Vhx.mjs";
|
|
4
|
+
import { c as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-B4hKOPE9-BwQGG38j.mjs";
|
|
5
|
+
//#region ../../../1-framework/1-core/framework-components/dist/framework-components-BQ_fYHtC.d.mts
|
|
6
6
|
//#region src/shared/mutation-default-types.d.ts
|
|
7
7
|
interface SourcePosition {
|
|
8
8
|
readonly offset: number;
|
|
@@ -116,6 +116,10 @@ interface ComponentMetadata {
|
|
|
116
116
|
*/
|
|
117
117
|
readonly codecDescriptors?: ReadonlyArray<AnyCodecDescriptor>;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Aggregate descriptors contributed by this component — a sibling of `codecTypes`, not a member: an aggregate descriptor relates an operation, a target, and an input codec, which is why it is modeled apart from codecs. Source of truth for the result codec, nullability, and (family-side) lowering of each `(aggregate operation, input codec)` overload; each overload has exactly one contributor across the composed stack.
|
|
121
|
+
*/
|
|
122
|
+
readonly aggregateDescriptors?: ReadonlyArray<AggregateDescriptor>;
|
|
119
123
|
readonly queryOperationTypes?: {
|
|
120
124
|
readonly import: TypesImportSpec;
|
|
121
125
|
};
|
|
@@ -385,4 +389,4 @@ interface ExtensionInstance<TFamilyId extends string, TTargetId extends string>
|
|
|
385
389
|
}
|
|
386
390
|
//#endregion
|
|
387
391
|
export { TargetPackRef as A, MutationDefaultGeneratorDescriptor as C, TargetBoundComponentDescriptor as D, SourceSpan as E, checkContractComponentRequirements as M, TargetDescriptor as O, LoweredDefaultValue as S, SourceDiagnostic as T, ExtensionPackRef as _, ComponentMetadata as a, FamilyPackRef as b, ControlMutationDefaultEntry as c, DefaultFunctionLoweringContext as d, DriverDescriptor as f, ExtensionInstance as g, ExtensionDescriptor as h, ComponentDescriptor as i, TypedDefaultFunctionCall as j, TargetInstance as k, ControlMutationDefaultRegistry as l, DriverPackRef as m, AdapterInstance as n, ContractComponentRequirementsCheckInput as o, DriverInstance as p, AdapterPackRef as r, ContractComponentRequirementsCheckResult as s, AdapterDescriptor as t, ControlMutationDefaults as u, FamilyDescriptor as v, PackRefBase as w, LoweredDefaultResult as x, FamilyInstance as y };
|
|
388
|
-
//# sourceMappingURL=framework-components-
|
|
392
|
+
//# sourceMappingURL=framework-components-BQ_fYHtC-Co52pfO-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-components-BQ_fYHtC-Co52pfO-.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-BQ_fYHtC.d.mts"],"mappings":";;;;;;UAKU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;WACP,OAAO,SAAS;;UAEjB;WACC;WACA;WACA;WACA;;KAEN;WACM;WACA,cAAc;;WAEd;WACA,WAAW;;KAEjB;WACM;WACA,OAAO;;WAEP;WACA,YAAY;;UAEb;WACC;;;;;;;;;;WAUA;;;;;;;WAOA,eAAe,OAAO,4BAA4B;;UAEnD;WACC;WACA,MAAM;WACN,MAAM,SAAS;;UAEhB;WACC;WACA,QAAQ;aACN,MAAM;aACN,SAAS;QACd;WACG;;KAEN,iCAAiC,oBAAoB;UAChD;WACC,yBAAyB;WACzB,+BAA+B;;;;;;;UAOhC;;WAEC;;;;;;WAMA,eAAe;;WAEf;aACE;;;;eAIE,SAAS;;;;;;;;eAQT,cAAc,cAAc;;;;eAI5B,oBAAoB;;;;eAIpB,mBAAmB,cAAc;;;;;aAKnC,uBAAuB,cAAc;aACrC;eACE,QAAQ;;aAEV,UAAU;eACR;eACA;eACA;eACA;;;;;;;;WAQJ,YAAY;;;;WAIZ,0BAA0B;;;;;;;;;;;;;;;;;UAiB3B,oBAAoB,6BAA6B;;WAEhD,MAAM;;WAEN;;UAED;WACC;aACE;aACA;aACA,aAAa;;WAEf;WACA;WACA,sBAAsB;;UAEvB;WACC;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;iBAEM,mCAAmC,OAAO,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;UA0B3F,iBAAiB,kCAAkC;;WAElD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2BX,iBAAiB,0BAA0B,kCAAkC;;WAE5E,UAAU;;WAEV,UAAU;;;;;UAKX,YAAY,qBAAqB,kCAAkC;WAClE,MAAM;WACN;WACA,UAAU;WACV;WACA,YAAY;;KAElB,cAAc,qCAAqC,sBAAsB;KACzE,cAAc,mCAAmC,qCAAqC,sBAAsB;WACtG,UAAU;;WAEV;;KAEN,eAAe,mCAAmC,qCAAqC,uBAAuB;WACxG,UAAU;;KAEhB,iBAAiB,mCAAmC,qCAAqC,yBAAyB;WAC5G,UAAU;;KAEhB,cAAc,mCAAmC,qCAAqC,sBAAsB;WACtG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BX,kBAAkB,0BAA0B,kCAAkC;;WAE7E,UAAU;;WAEV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6BX,iBAAiB,0BAA0B,kCAAkC;;WAE5E,UAAU;;WAEV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BX,oBAAoB,0BAA0B,kCAAkC;;WAE/E,UAAU;;WAEV,UAAU;;;KAGhB,+BAA+B,0BAA0B,4BAA4B,iBAAiB,WAAW,aAAa,kBAAkB,WAAW,aAAa,iBAAiB,WAAW,aAAa,oBAAoB,WAAW;UAC3O,eAAe;WACd,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,gBAAgB,0BAA0B;WACzC,UAAU;WACV,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,kBAAkB,0BAA0B;WAC3C,UAAU;WACV,UAAU"}
|
package/dist/ids.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as ExecutionMutationDefaultValue } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
|
|
2
|
-
import { a as ColumnTypeDescriptor } from "./codec-
|
|
2
|
+
import { a as ColumnTypeDescriptor } from "./codec-LWTqo1GG.mjs";
|
|
3
3
|
import { cuid2 as cuid2$1 } from "uniku/cuid2";
|
|
4
4
|
import { ksuid as ksuid$1 } from "uniku/ksuid";
|
|
5
5
|
import { nanoid as nanoid$1 } from "uniku/nanoid";
|
|
@@ -116,5 +116,20 @@ declare abstract class TsExpression {
|
|
|
116
116
|
*/
|
|
117
117
|
declare function renderImports(requirements: readonly ImportRequirement[]): string;
|
|
118
118
|
//#endregion
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
//#region src/ts-string-literal.d.ts
|
|
120
|
+
/**
|
|
121
|
+
* Renders a string as a TypeScript source-text literal.
|
|
122
|
+
*
|
|
123
|
+
* `JSON.stringify` already escapes quotes, backslashes, and control characters
|
|
124
|
+
* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy
|
|
125
|
+
* parsers treat as line terminators, so those are escaped explicitly.
|
|
126
|
+
*
|
|
127
|
+
* Used for both value literals (`jsonToTsSource`) and type-level literals /
|
|
128
|
+
* property keys (the contract emitter), so a physical name that a store admits
|
|
129
|
+
* as a quoted identifier but TypeScript does not admit bare renders the same
|
|
130
|
+
* way everywhere.
|
|
131
|
+
*/
|
|
132
|
+
declare function tsStringLiteral(value: string): string;
|
|
133
|
+
//#endregion
|
|
134
|
+
export { jsonToTsSource as a, TsExpression as i, JsonObject as n, renderImports as o, JsonValue as r, tsStringLiteral as s, ImportRequirement as t };
|
|
135
|
+
//# sourceMappingURL=index-CDk9yEbw.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CDk9yEbw.d.mts","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;KAiBK,wDAAwD,cAAc;KACtE;YACO,cAAc;;;;;;;;;;iBAUT,eAAe;;;;;;;;;;;;;;;;;;;;UAoBtB;WACC;WACA;WACA;WACA,aAAa,SAAS;WACtB;WACA;;;;;;;;;;uBAUY;WACZ;WACA,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgDzB,cAAc,uBAAuB;;;;;;;;;;;;;;;iBAerC,gBAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as PslDiagnosticCode } from "./framework-authoring-
|
|
2
|
-
import "./psl-ast-
|
|
1
|
+
import { F as PslDiagnosticCode } from "./framework-authoring--R1ZGWs1-C5F11Vhx.mjs";
|
|
2
|
+
import "./psl-ast-DAMpjVOP.mjs";
|
|
3
3
|
import { n as TokenKind, t as Token } from "./tokenizer-DcYI0Xrq-C-nNE9mE.mjs";
|
|
4
4
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/parse-0ZJjj_2N.d.mts
|
|
5
5
|
//#region src/source-file.d.ts
|
|
@@ -424,4 +424,4 @@ interface ParseResult {
|
|
|
424
424
|
declare function parse(source: string): ParseResult;
|
|
425
425
|
//#endregion
|
|
426
426
|
export { parse as $, ObjectLiteralExprAst as A, SyntaxNode as B, ModelAttributeAst as C, NamespaceMemberAst as D, NamespaceDeclarationAst as E, Range as F, any as G, TokenAtOffset as H, SourceFile as I, filterChildren as J, castExpression as K, StringLiteralExprAst as L, ParseResult as M, Position as N, NumberLiteralExprAst as O, QualifiedNameAst as P, greenToken as Q, SyntaxElement as R, KeyValuePairAst as S, NamedTypeDeclarationAst as T, TypeAnnotationAst as U, SyntaxToken as V, TypesBlockAst as W, findFirstChild as X, findChildToken as Y, greenNode as Z, GenericBlockMemberAst as _, AttributeAst as a, GreenToken as b, BracedBlock as c, DocumentAst as d, printSyntax as et, ExpressionAst as f, GenericBlockDeclarationAst as g, FunctionCallAst as h, AttributeArgListAst as i, ParseDiagnostic as j, ObjectFieldAst as k, CompositeTypeDeclarationAst as l, FieldDeclarationAst as m, AstNode as n, BlockMemberAst as o, FieldAttributeAst as p, createSyntaxTree as q, AttributeArgAst as r, BooleanLiteralExprAst as s, ArrayLiteralAst as t, DeclarationAst as u, GreenElement as v, ModelDeclarationAst as w, IdentifierAst as x, GreenNode as y, SyntaxKind as z };
|
|
427
|
-
//# sourceMappingURL=parse-0ZJjj_2N-
|
|
427
|
+
//# sourceMappingURL=parse-0ZJjj_2N-CGZMQABI.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-0ZJjj_2N-
|
|
1
|
+
{"version":3,"file":"parse-0ZJjj_2N-CGZMQABI.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/parse-0ZJjj_2N.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;;UAED;WACC,OAAO;WACP,KAAK;;cAEF;;EAEZ,YAAY;MACR;MACA;MACA;EACJ;EACA,gBAAgB;EAChB,cAAc;EACd,WAAW,iBAAiB;EAC5B,SAAS,UAAU;;;;KAIhB;;;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;;;;;;;;;;cAUvE,uBAAuB;WAC1B,OAAO;WACP,MAAM;WACN;WACA;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,YAAY,gBAAgB,QAAQ,YAAY;MAC/D;MACA;;EAEJ,SAAS;EACT,UAAU;;MAEN,sBAAsB;;MAEtB,sBAAsB;;MAEtB,aAAa;;MAEb,aAAa;;KAEd,gBAAgB,aAAa;cACpB;;UAEJ;SACD,QAAQ;SACR,OAAO,OAAO,cAAc;SAC5B,QAAQ,MAAM,aAAa,OAAO,cAAc;MACnD;MACA;EACJ,cAAc;EACd,eAAe;;cAEH;WACH,OAAO;WACP;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,WAAW,gBAAgB,QAAQ,wBAAwB;MAC1E,QAAQ;MACR;MACA;;EAEJ,SAAS;EACT,UAAU;MACN,cAAc;MACd,aAAa;MACb,eAAe;MACf,eAAe;;MAEf,sBAAsB;;MAEtB,sBAAsB;;MAEtB,cAAc;;MAEd,aAAa;EACjB,YAAY,SAAS;EACrB,cAAc,SAAS;EACvB,aAAa,SAAS;;EAEtB,aAAa,GAAG,OAAO,MAAM,eAAe,gBAAg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|
|
1
|
-
import { c as CodecLookup } from "./codec-types-
|
|
2
|
-
import { F as PslDiagnosticCode, I as PslExtensionBlock, K as PslSpan, b as AuthoringPslBlockDescriptorNamespace, k as ContributedPslDiagnosticCode } from "./framework-authoring-
|
|
3
|
-
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast-
|
|
1
|
+
import { c as CodecLookup } from "./codec-types-720XoDZ0-Br-QaYK3.mjs";
|
|
2
|
+
import { F as PslDiagnosticCode, I as PslExtensionBlock, K as PslSpan, b as AuthoringPslBlockDescriptorNamespace, k as ContributedPslDiagnosticCode } from "./framework-authoring--R1ZGWs1-C5F11Vhx.mjs";
|
|
3
|
+
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast-C4IAv2T_.d.mts
|
|
4
4
|
//#region src/control/psl-ast.d.ts
|
|
5
5
|
interface PslDiagnostic {
|
|
6
6
|
/**
|
|
@@ -256,4 +256,4 @@ interface ParsePslDocumentResult {
|
|
|
256
256
|
}
|
|
257
257
|
//#endregion
|
|
258
258
|
export { makePslNamespace as A, PslReferentialAction as C, UNSPECIFIED_PSL_NAMESPACE_ID as D, PslUniqueConstraint as E, namespacePslExtensionBlocks as M, flatPslCompositeTypes as O, PslNamespaceEntry as S, PslTypesBlock as T, PslIndexConstraint as _, PslAttributeArgument as a, PslNamedTypeDeclaration as b, PslAttributeTarget as c, PslDefaultLiteralValue as d, PslDefaultValue as f, PslFieldAttribute as g, PslField as h, PslAttribute as i, makePslNamespaceEntries as j, flatPslModels as k, PslCompositeType as l, PslDocumentAst as m, ParsePslDocumentInput as n, PslAttributeNamedArgument as o, PslDiagnostic as p, ParsePslDocumentResult as r, PslAttributePositionalArgument as s, BUILTIN_PSL_KIND_KEYS as t, PslDefaultFunctionValue as u, PslModel as v, PslTypeConstructorCall as w, PslNamespace as x, PslModelAttribute as y };
|
|
259
|
-
//# sourceMappingURL=psl-ast-
|
|
259
|
+
//# sourceMappingURL=psl-ast-C4IAv2T_-CO0jh_VK.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"psl-ast-
|
|
1
|
+
{"version":3,"file":"psl-ast-C4IAv2T_-CO0jh_VK.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/psl-ast-C4IAv2T_.d.mts"],"mappings":";;;;UAGU;;;;;;;;;;;WAWC,MAAM,oBAAoB;WAC1B;WACA;WACA,MAAM;;UAEP;WACC;WACA;;UAED;WACC;WACA;;KAEN,kBAAkB,0BAA0B;KAC5C;UACK;WACC;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA;WACA,MAAM;;KAEZ,uBAAuB,iCAAiC;UACnD;WACC;WACA;WACA,eAAe;WACf,MAAM;;UAEP;WACC;WACA,QAAQ;WACR;WACA,eAAe;WACf,MAAM;;KAEZ;KACA,oBAAoB;UACf;WACC;WACA;;WAEA;;WAEA;;;;;;;;;WASA;WACA,kBAAkB;WAClB;WACA;WACA;WACA,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA,MAAM;;KAEZ,oBAAoB;UACf;WACC;WACA;WACA,iBAAiB;WACjB,qBAAqB;WACrB,MAAM;;;;;;;;WAQN;;;;;;;UAOD;WACC;WACA;WACA,iBAAiB;WACjB,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA;;;;;;WAMA;WACA,kBAAkB;WAClB,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA,uBAAuB;WACvB,MAAM;;;;;;;;;;;;;;cAcH;;KAET,oBAAoB,WAAW,mBAAmB;;;;;;;;;;;;UAY7C;WACC;WACA;;WAEA,SAAS,SAAS,eAAe,SAAS,eAAe;;WAEzD,iBAAiB;;WAEjB,yBAAyB;WACzB,MAAM;;;iBAGA,iBAAiB;WACvB;WACA;WACA,SAAS,SAAS,eAAe,SAAS,eAAe;WACzD,MAAM;IACb;;;;;;iBAMa,wBAAwB,iBAAiB,YAAY,yBAAyB,oBAAoB,0BAA0B,sBAAsB,SAAS,eAAe,SAAS,eAAe;UACzM;WACC;WACA;WACA,qBAAqB;WACrB,QAAQ;WACR,MAAM;;;;;;iBAMA,cAAc,KAAK,0BAA0B;;;;iBAI7C,sBAAsB,KAAK,0BAA0B;;;;;;;;;;;cAWxD,uBAAuB;;;;;;;;;iBASpB,4BAA4B,IAAI,wBAAwB;UAC/D;WACC;WACA;;;;;;;;;;;;;;;;WAgBA,sBAAsB;;;;;;;;;WAStB,cAAc;;UAEf;WACC,KAAK;WACL,sBAAsB;WACtB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as CodecLookup } from "./codec-types-
|
|
2
|
-
import { I as PslExtensionBlock, y as AuthoringPslBlockDescriptor } from "./framework-authoring-
|
|
3
|
-
import { p as PslDiagnostic, x as PslNamespace } from "./psl-ast-
|
|
1
|
+
import { c as CodecLookup } from "./codec-types-720XoDZ0-Br-QaYK3.mjs";
|
|
2
|
+
import { I as PslExtensionBlock, y as AuthoringPslBlockDescriptor } from "./framework-authoring--R1ZGWs1-C5F11Vhx.mjs";
|
|
3
|
+
import { p as PslDiagnostic, x as PslNamespace } from "./psl-ast-C4IAv2T_-CO0jh_VK.mjs";
|
|
4
4
|
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast.d.mts
|
|
5
5
|
//#region src/control/psl-extension-block-validator.d.ts
|
|
6
6
|
/**
|
|
@@ -34,4 +34,4 @@ interface ExtensionBlockRefResolutionContext {
|
|
|
34
34
|
declare function validateExtensionBlock(node: PslExtensionBlock, descriptor: AuthoringPslBlockDescriptor, sourceId: string, codecLookup: CodecLookup, refCtx?: ExtensionBlockRefResolutionContext): readonly PslDiagnostic[];
|
|
35
35
|
//#endregion
|
|
36
36
|
export { validateExtensionBlock as n, ExtensionBlockRefResolutionContext as t };
|
|
37
|
-
//# sourceMappingURL=psl-ast-
|
|
37
|
+
//# sourceMappingURL=psl-ast-DAMpjVOP.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"psl-ast-
|
|
1
|
+
{"version":3,"file":"psl-ast-DAMpjVOP.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/psl-ast.d.mts"],"mappings":";;;;;;;;;;;;;UAYU;WACC,gBAAgB;WAChB,wBAAwB;;;;;;;;;;;;;;;;;;iBAkBlB,uBAAuB,MAAM,mBAAmB,YAAY,6BAA6B,kBAAkB,aAAa,aAAa,SAAS,8CAA8C"}
|