@prisma/orm-framework 8.0.0-rc.18-dev.29 → 8.0.0-rc.18-dev.30
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-CnjmWENY.d.mts → authoring-BY3RNM--.d.mts} +2 -2
- package/dist/{authoring-CnjmWENY.d.mts.map → authoring-BY3RNM--.d.mts.map} +1 -1
- package/dist/{authoring-Cj8fyHRX.mjs → authoring-D77CrCtb.mjs} +2 -2
- package/dist/authoring-D77CrCtb.mjs.map +1 -0
- package/dist/{binder-BfzoRtNz-BKfkevTT.d.mts → binder-Cm0N-oPu-deLbJ-j9.d.mts} +17 -20
- package/dist/binder-Cm0N-oPu-deLbJ-j9.d.mts.map +1 -0
- package/dist/{components-BtODGXHF.d.mts → components-BdXloTpj.d.mts} +36 -3
- package/dist/components-BdXloTpj.d.mts.map +1 -0
- package/dist/{components-Bji-LsWb.mjs → components-DJ5O7uwz.mjs} +26 -3
- package/dist/components-DJ5O7uwz.mjs.map +1 -0
- package/dist/components.d.mts +8 -8
- package/dist/components.mjs +6 -6
- package/dist/components__authoring.d.mts +3 -3
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__components.d.mts +4 -3
- package/dist/components__components.mjs +3 -3
- package/dist/components__control.d.mts +4 -4
- package/dist/components__control.mjs +2 -2
- package/dist/components__execution.d.mts +1 -1
- package/dist/{config-types-EWAkvPlg.d.mts → config-types-BXw8w6h9.d.mts} +9 -6
- package/dist/config-types-BXw8w6h9.d.mts.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +1 -1
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{control-xgQMivcm.mjs → control-BJypoZfu.mjs} +9 -27
- package/dist/control-BJypoZfu.mjs.map +1 -0
- package/dist/{control-Bv8UK63M-CQqlgvYt.mjs → control-Bv8UK63M-dBsEDbTP.mjs} +2 -2
- package/dist/{control-Bv8UK63M-CQqlgvYt.mjs.map → control-Bv8UK63M-dBsEDbTP.mjs.map} +1 -1
- package/dist/{control-C_zs63JQ-BjpDlKtD.d.mts → control-C_zs63JQ-BFg3u8U5.d.mts} +2 -2
- package/dist/{control-C_zs63JQ-BjpDlKtD.d.mts.map → control-C_zs63JQ-BFg3u8U5.d.mts.map} +1 -1
- package/dist/{control-B8VnqrE0.d.mts → control-D2f07K6R.d.mts} +5 -6
- package/dist/{control-B8VnqrE0.d.mts.map → control-D2f07K6R.d.mts.map} +1 -1
- package/dist/control-GrJDRvbD.d.mts +1 -0
- package/dist/{declarations-DuSbyF44-DXPe97O9.mjs → declarations-DuSbyF44-D-Q7-GRi.mjs} +2 -2
- package/dist/{declarations-DuSbyF44-DXPe97O9.mjs.map → declarations-DuSbyF44-D-Q7-GRi.mjs.map} +1 -1
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-DEujfQj7.d.mts → execution-B_f4fR5R.d.mts} +3 -3
- package/dist/{execution-DEujfQj7.d.mts.map → execution-B_f4fR5R.d.mts.map} +1 -1
- package/dist/{execution-kM8NRyxS.d.mts → execution-DbU_RTsu.d.mts} +2 -2
- package/dist/{execution-kM8NRyxS.d.mts.map → execution-DbU_RTsu.d.mts.map} +1 -1
- package/dist/{execution-Jca11rjy.mjs → execution-okmamhD2.mjs} +2 -2
- package/dist/{execution-Jca11rjy.mjs.map → execution-okmamhD2.mjs.map} +1 -1
- package/dist/{framework-components-sC9Bo0lq-DZlp3POU.d.mts → framework-components-CDiuJNYP-CwszHrSy.d.mts} +103 -5
- package/dist/framework-components-CDiuJNYP-CwszHrSy.d.mts.map +1 -0
- package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs +271 -0
- package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +1 -0
- package/dist/ids.d.mts +1 -5
- package/dist/ids.d.mts.map +1 -1
- package/dist/ids.mjs +7 -37
- package/dist/ids.mjs.map +1 -1
- package/dist/{migration-DIM1Hl3K.mjs → migration-BfUEEHWP.mjs} +2 -2
- package/dist/{migration-DIM1Hl3K.mjs.map → migration-BfUEEHWP.mjs.map} +1 -1
- package/dist/{migration-dimjwpNp.d.mts → migration-BmIe8pwt.d.mts} +2 -2
- package/dist/{migration-dimjwpNp.d.mts.map → migration-BmIe8pwt.d.mts.map} +1 -1
- package/dist/mutation-default-types-js6llINX-WGmpaAAL.d.mts +66 -0
- package/dist/mutation-default-types-js6llINX-WGmpaAAL.d.mts.map +1 -0
- package/dist/{parse-BxcaGLV1-DdAqqkvr.mjs → parse-BxcaGLV1-BxEIfxh3.mjs} +2 -2
- package/dist/{parse-BxcaGLV1-DdAqqkvr.mjs.map → parse-BxcaGLV1-BxEIfxh3.mjs.map} +1 -1
- package/dist/{parse-CJtBvEYy-CM5fFbro.d.mts → parse-CJtBvEYy-wRfXv1HQ.d.mts} +4 -4
- package/dist/{parse-CJtBvEYy-CM5fFbro.d.mts.map → parse-CJtBvEYy-wRfXv1HQ.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +18 -7
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +63 -6
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +2 -2
- package/dist/psl-parser__interpret.d.mts +4 -4
- package/dist/psl-parser__interpret.mjs +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +2 -2
- package/dist/psl-printer.d.mts +1 -1
- package/dist/psl-printer.mjs +1 -1
- package/dist/{temporal-presets-woCv6gic-CdzSAygr.mjs → temporal-presets-BcDyr_hK-CFplJNGz.mjs} +5 -103
- package/dist/temporal-presets-BcDyr_hK-CFplJNGz.mjs.map +1 -0
- package/dist/{written-value-B25FrTvM--oHAqWy0.d.mts → written-value-CQt_C72W-aKFkxVmA.d.mts} +6 -42
- package/dist/written-value-CQt_C72W-aKFkxVmA.d.mts.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-Cj8fyHRX.mjs.map +0 -1
- package/dist/binder-BfzoRtNz-BKfkevTT.d.mts.map +0 -1
- package/dist/capabilities-Cn-Kepnv-B8FOAyUu.mjs +0 -120
- package/dist/capabilities-Cn-Kepnv-B8FOAyUu.mjs.map +0 -1
- package/dist/components-Bji-LsWb.mjs.map +0 -1
- package/dist/components-BtODGXHF.d.mts.map +0 -1
- package/dist/config-types-EWAkvPlg.d.mts.map +0 -1
- package/dist/control-COKTlMDX.d.mts +0 -1
- package/dist/control-xgQMivcm.mjs.map +0 -1
- package/dist/framework-components-sC9Bo0lq-DZlp3POU.d.mts.map +0 -1
- package/dist/mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts +0 -96
- package/dist/mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts.map +0 -1
- package/dist/temporal-presets-woCv6gic-CdzSAygr.mjs.map +0 -1
- package/dist/written-value-B25FrTvM--oHAqWy0.d.mts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-B_f4fR5R.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;;;;iBAIa,aAAa,6BAA6B,iBAAiB;WACjE;WACA;WACA,uBAAuB;WACvB,OAAO;WACP;IACP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as TargetDescriptor, N as TargetInstance, _ as FamilyInstance, g as FamilyDescriptor, l as DriverDescriptor, m as ExtensionInstance, n as AdapterInstance, p as ExtensionDescriptor, t as AdapterDescriptor, u as DriverInstance } from "./framework-components-CDiuJNYP-CwszHrSy.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-DbU_RTsu.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":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C,qBAAqB,2BAA2B,WAAW"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
|
|
2
2
|
import { i as isStructuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
|
-
import { t as CliStructuredError } from "./control-Bv8UK63M-
|
|
3
|
+
import { t as CliStructuredError } from "./control-Bv8UK63M-dBsEDbTP.mjs";
|
|
4
4
|
//#region ../../../1-framework/1-core/errors/dist/execution.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Contract marker not found in database.
|
|
@@ -169,4 +169,4 @@ function errorRuntime(code, summary, options) {
|
|
|
169
169
|
//#endregion
|
|
170
170
|
export { errorMarkerRowCorrupt as a, errorSchemaVerificationFailed as c, rethrowMarkerReadError as d, withMarkerReadErrorHandling as f, errorMarkerRequired as i, errorTargetMismatch as l, errorMarkerMissing as n, errorRunnerFailed as o, errorMarkerReadFailed as r, errorRuntime as s, errorHashMismatch as t, parseMarkerRowSafely as u };
|
|
171
171
|
|
|
172
|
-
//# sourceMappingURL=execution-
|
|
172
|
+
//# sourceMappingURL=execution-okmamhD2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-okmamhD2.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-Bv8UK63M.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `{bin} db sign --db <url>` to sign the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db sign --db <url>\"\n\t\t}]\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`{bin} db sign --db <url>\\` to write a fresh marker.`,\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Write a fresh marker\",\n\t\t\tcommand: \"{bin} db sign --db <url>\",\n\t\t\treason: `Delete the invalid ${options.markerLocation} row for space \"${options.space}\" first — this command then writes a valid one.`\n\t\t}],\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction isDriverError(err) {\n\treturn isStructuredError(err) && err.code.startsWith(\"DRIVER.\");\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err) || isDriverError(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: err instanceof Error ? err.message : String(err),\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `{bin} db init` first to sign the database\",\n\t\tnextActions: options?.nextActions ?? [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db init\"\n\t\t}]\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `{bin} db update` to reconcile, or adjust your contract to match the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Reconcile the database\",\n\t\t\tcommand: \"{bin} db update\"\n\t\t}, {\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Adjust your contract to match the database\"\n\t\t}],\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Migration runner failed during execution.\n*/\nfunction errorRunnerFailed(summary, options) {\n\treturn new CliStructuredError(\"MIGRATION.RUNNER_FAILED\", summary, {\n\t\twhy: options?.why ?? \"Migration runner failed\",\n\t\tfix: options?.fix ?? \"Inspect the reported conflict and reconcile schema drift\",\n\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t...options?.meta ? { meta: options.meta } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Generic runtime error carrying a caller-provided dotted code.\n*/\nfunction errorRuntime(code, summary, options) {\n\treturn new CliStructuredError(code, summary, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\t...ifDefined(\"fix\", options?.fix),\n\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;EAC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AACF;;;;AAIA,SAAS,kBAAkB,SAAS,SAAS;CAC5C,OAAO,IAAI,mBAAmB,2BAA2B,SAAS;EACjE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,UAAU,eAAe,SAAS,WAAW;EAChD,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;EAC7C,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF;;;;AAIA,SAAS,aAAa,MAAM,SAAS,SAAS;CAC7C,OAAO,IAAI,mBAAmB,MAAM,SAAS;EAC5C,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,eAAe,SAAS,WAAW;EAChD,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
|
|
@@ -1,8 +1,102 @@
|
|
|
1
|
+
import { P as ExecutionMutationDefaultValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
1
2
|
import { _ as DataType, t as AnyCodecDescriptor } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
|
|
2
3
|
import { a as AuthoringContributions } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
|
|
3
|
-
import { i as ControlMutationDefaults } from "./mutation-default-types-
|
|
4
|
+
import { c as MutationDefaultGeneratorDescriptor, i as ControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
|
|
4
5
|
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-B2nK2jwW-DkF7t1NL.mjs";
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/framework-components-
|
|
6
|
+
//#region ../../../1-framework/1-core/framework-components/dist/framework-components-CDiuJNYP.d.mts
|
|
7
|
+
//#region src/shared/generator-functions.d.ts
|
|
8
|
+
/** The phase a client generator runs in: when a row is created, or every time it is updated. */
|
|
9
|
+
type GeneratorPhase = 'onCreate' | 'onUpdate';
|
|
10
|
+
/** The codec and type params of the field a generator fills: a column in SQL, a document field in Mongo. */
|
|
11
|
+
interface GeneratorFunctionField {
|
|
12
|
+
readonly codecId: string;
|
|
13
|
+
readonly typeParams: Readonly<Record<string, unknown>> | undefined;
|
|
14
|
+
}
|
|
15
|
+
/** A call of a generator function: what `@onCreate(fn(...))` and `gen.fn(...)` write, and what `contract print` writes back. */
|
|
16
|
+
interface GeneratorFunctionCall {
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
19
|
+
}
|
|
20
|
+
/** What one binding resolves a call to on a field: a generator, or a refusal with its reason. */
|
|
21
|
+
type BindingResolution = {
|
|
22
|
+
readonly ok: true;
|
|
23
|
+
readonly generator: ExecutionMutationDefaultValue;
|
|
24
|
+
} | {
|
|
25
|
+
readonly ok: false;
|
|
26
|
+
readonly message: string;
|
|
27
|
+
};
|
|
28
|
+
/** The arguments of a call, as values and as PSL text. */
|
|
29
|
+
interface PrintedArguments {
|
|
30
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
31
|
+
readonly text: string;
|
|
32
|
+
}
|
|
33
|
+
interface GeneratorFunctionBinding {
|
|
34
|
+
readonly codecIds: readonly string[];
|
|
35
|
+
/** Every generator id `resolve` can produce. */
|
|
36
|
+
readonly generatorIds: readonly string[];
|
|
37
|
+
readonly resolve: (input: {
|
|
38
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
39
|
+
readonly field: GeneratorFunctionField;
|
|
40
|
+
}) => BindingResolution;
|
|
41
|
+
/** The arguments that produce `generator` on `field`, or `undefined` when this binding never produces it. */
|
|
42
|
+
readonly printArguments: (generator: ExecutionMutationDefaultValue, field: GeneratorFunctionField) => PrintedArguments | undefined;
|
|
43
|
+
}
|
|
44
|
+
interface GeneratorFunctionContribution {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/** A `FuncCallSig`, typed `unknown` as `ControlMutationDefaultEntry.signature` is. Exactly one contribution per name sets it. */
|
|
47
|
+
readonly signature?: unknown;
|
|
48
|
+
readonly bindings: readonly GeneratorFunctionBinding[];
|
|
49
|
+
}
|
|
50
|
+
interface GeneratorFunctionSummary {
|
|
51
|
+
readonly name: string;
|
|
52
|
+
readonly signature: unknown;
|
|
53
|
+
}
|
|
54
|
+
type GeneratorFunctionResolution = {
|
|
55
|
+
readonly ok: true;
|
|
56
|
+
readonly generator: ExecutionMutationDefaultValue;
|
|
57
|
+
} | {
|
|
58
|
+
readonly ok: false;
|
|
59
|
+
readonly reason: 'refused';
|
|
60
|
+
readonly message: string;
|
|
61
|
+
} | {
|
|
62
|
+
readonly ok: false;
|
|
63
|
+
readonly reason: 'unknown-function' | 'not-bound';
|
|
64
|
+
readonly boundCodecIds: readonly string[];
|
|
65
|
+
};
|
|
66
|
+
/** The call that produces a stored generator, and its PSL text, such as `uuid(7)`. */
|
|
67
|
+
interface PrintedGeneratorCall {
|
|
68
|
+
readonly call: GeneratorFunctionCall;
|
|
69
|
+
readonly text: string;
|
|
70
|
+
}
|
|
71
|
+
interface GeneratorFunctionRegistry {
|
|
72
|
+
functionsFor(codecId: string): readonly GeneratorFunctionSummary[];
|
|
73
|
+
has(name: string): boolean;
|
|
74
|
+
resolve(call: GeneratorFunctionCall, field: GeneratorFunctionField): GeneratorFunctionResolution;
|
|
75
|
+
callFor(generator: ExecutionMutationDefaultValue, field: GeneratorFunctionField): PrintedGeneratorCall | undefined;
|
|
76
|
+
}
|
|
77
|
+
/** A component that contributes generator functions, generator descriptors, or both. */
|
|
78
|
+
interface GeneratorFunctionComponent {
|
|
79
|
+
readonly id?: string;
|
|
80
|
+
readonly generatorFunctions?: readonly GeneratorFunctionContribution[];
|
|
81
|
+
readonly controlMutationDefaults?: {
|
|
82
|
+
readonly generatorDescriptors: readonly MutationDefaultGeneratorDescriptor[];
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Assemble the generator functions of a composed stack: the control stack's components, or the pack refs of a TypeScript contract. Every generator a binding produces must be registered by a generator descriptor of one of the components.
|
|
87
|
+
*/
|
|
88
|
+
declare function assembleGeneratorFunctions(descriptors: ReadonlyArray<GeneratorFunctionComponent>): GeneratorFunctionRegistry;
|
|
89
|
+
/**
|
|
90
|
+
* A binding of a function that takes no arguments to one generator, with params read from the field's type params when `paramsFromField` gives any.
|
|
91
|
+
*/
|
|
92
|
+
declare function singleGeneratorBinding(input: {
|
|
93
|
+
readonly codecIds: readonly string[];
|
|
94
|
+
readonly generatorId: string;
|
|
95
|
+
readonly paramsFromField?: (field: GeneratorFunctionField) => Readonly<Record<string, unknown>> | undefined;
|
|
96
|
+
}): GeneratorFunctionBinding;
|
|
97
|
+
/** The generator functions of a stack that contributes none. */
|
|
98
|
+
declare const EMPTY_GENERATOR_FUNCTIONS: GeneratorFunctionRegistry;
|
|
99
|
+
//#endregion
|
|
6
100
|
//#region src/shared/framework-components.d.ts
|
|
7
101
|
/**
|
|
8
102
|
* Declarative fields that describe component metadata.
|
|
@@ -66,9 +160,13 @@ interface ComponentMetadata {
|
|
|
66
160
|
*/
|
|
67
161
|
readonly authoring?: AuthoringContributions;
|
|
68
162
|
/**
|
|
69
|
-
* Mutation default function handlers and generator descriptors contributed by this component.
|
|
163
|
+
* Mutation default function handlers and generator descriptors contributed by this component. `createControlStack` assembles both with duplicate detection. The generator descriptors are also read from pack refs: `assembleGeneratorFunctions`, which the control stack and the TypeScript builders both call, checks that every generator a binding produces is registered here by some component. A pack ref that contributes only descriptors gives an empty `defaultFunctionRegistry`.
|
|
70
164
|
*/
|
|
71
165
|
readonly controlMutationDefaults?: ControlMutationDefaults;
|
|
166
|
+
/**
|
|
167
|
+
* Generator functions this component declares or binds to its codecs, for `@onCreate(fn())`, `@onUpdate(fn())` and the TypeScript builder's `gen` calls. Assembled by `assembleGeneratorFunctions`.
|
|
168
|
+
*/
|
|
169
|
+
readonly generatorFunctions?: readonly GeneratorFunctionContribution[];
|
|
72
170
|
}
|
|
73
171
|
/**
|
|
74
172
|
* Base descriptor for any framework component.
|
|
@@ -320,5 +418,5 @@ interface ExtensionInstance<TFamilyId extends string, TTargetId extends string>
|
|
|
320
418
|
readonly targetId: TTargetId;
|
|
321
419
|
}
|
|
322
420
|
//#endregion
|
|
323
|
-
export { checkContractComponentRequirements as
|
|
324
|
-
//# sourceMappingURL=framework-components-
|
|
421
|
+
export { PrintedGeneratorCall as A, GeneratorFunctionField as C, GeneratorPhase as D, GeneratorFunctionSummary as E, assembleGeneratorFunctions as F, checkContractComponentRequirements as I, singleGeneratorBinding as L, TargetDescriptor as M, TargetInstance as N, PackRefBase as O, TargetPackRef as P, GeneratorFunctionContribution as S, GeneratorFunctionResolution as T, FamilyInstance as _, ComponentDescriptor as a, GeneratorFunctionCall as b, ContractComponentRequirementsCheckResult as c, DriverPackRef as d, EMPTY_GENERATOR_FUNCTIONS as f, FamilyDescriptor as g, ExtensionPackRef as h, BindingResolution as i, TargetBoundComponentDescriptor as j, PrintedArguments as k, DriverDescriptor as l, ExtensionInstance as m, AdapterInstance as n, ComponentMetadata as o, ExtensionDescriptor as p, AdapterPackRef as r, ContractComponentRequirementsCheckInput as s, AdapterDescriptor as t, DriverInstance as u, FamilyPackRef as v, GeneratorFunctionRegistry as w, GeneratorFunctionComponent as x, GeneratorFunctionBinding as y };
|
|
422
|
+
//# sourceMappingURL=framework-components-CDiuJNYP-CwszHrSy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-components-CDiuJNYP-CwszHrSy.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-CDiuJNYP.d.mts"],"mappings":";;;;;;;;KAOK;;UAEK;WACC;WACA,YAAY,SAAS;;;UAGtB;WACC;WACA,MAAM,SAAS;;;KAGrB;WACM;WACA,WAAW;;WAEX;WACA;;;UAGD;WACC,MAAM,SAAS;WACf;;UAED;WACC;;WAEA;WACA,UAAU;aACR,MAAM,SAAS;aACf,OAAO;QACZ;;W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AsB;KACzE,cAAc,mCAAmC,qCAAqC,sBAAsB;WACtG,UAAU;;WAEV;WACA;;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"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
|
+
import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
3
|
+
import { n as runtimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
|
|
4
|
+
import { n as isCodecTrait } from "./codec-types-BXLUbk-Y-DpGfKGK0.mjs";
|
|
5
|
+
//#region ../../../1-framework/1-core/framework-components/dist/generator-functions-CXbQfvYu.mjs
|
|
6
|
+
/**
|
|
7
|
+
* Ownership key of an `(operation, input)` pair. Two descriptors sharing a key are two contributors claiming one overload, which is a composition error.
|
|
8
|
+
*/
|
|
9
|
+
function aggregateDescriptorKey(descriptor) {
|
|
10
|
+
switch (descriptor.input.kind) {
|
|
11
|
+
case "none": return `${descriptor.operation}:none`;
|
|
12
|
+
case "any": return `${descriptor.operation}:any`;
|
|
13
|
+
case "codec": return `${descriptor.operation}:codec:${descriptor.input.codecId}`;
|
|
14
|
+
case "trait": return `${descriptor.operation}:trait:${descriptor.input.trait}`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** Whether `descriptor` is the overload of an operation that consumes no value — the case whose result always names a codec outright. */
|
|
18
|
+
function isNoInputAggregateDescriptor(descriptor) {
|
|
19
|
+
return descriptor.input.kind === "none";
|
|
20
|
+
}
|
|
21
|
+
/** Whether `descriptor` answers regardless of input — the fallback rung of resolution. */
|
|
22
|
+
function isAnyInputAggregateDescriptor(descriptor) {
|
|
23
|
+
return descriptor.input.kind === "any";
|
|
24
|
+
}
|
|
25
|
+
function isObjectLike(value) {
|
|
26
|
+
return typeof value === "object" && value !== null;
|
|
27
|
+
}
|
|
28
|
+
function isNonEmptyString(value) {
|
|
29
|
+
return typeof value === "string" && value.length > 0;
|
|
30
|
+
}
|
|
31
|
+
function isAggregateInputMatch(value) {
|
|
32
|
+
if (!isObjectLike(value) || !("kind" in value)) return false;
|
|
33
|
+
switch (value.kind) {
|
|
34
|
+
case "none":
|
|
35
|
+
case "any": return true;
|
|
36
|
+
case "codec": return "codecId" in value && isNonEmptyString(value.codecId);
|
|
37
|
+
case "trait": return "trait" in value && isCodecTrait(value.trait);
|
|
38
|
+
default: return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function isAggregateOutputCodec(value) {
|
|
42
|
+
if (!isObjectLike(value) || !("kind" in value)) return false;
|
|
43
|
+
switch (value.kind) {
|
|
44
|
+
case "self": return true;
|
|
45
|
+
case "codec": return "codecId" in value && isNonEmptyString(value.codecId) && (!("typeParams" in value) || value.typeParams === void 0 || typeof value.typeParams === "function");
|
|
46
|
+
default: return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Structural validation of a contributed descriptor. Components assembled from JavaScript reach the contribution slot unchecked, so composition validates the shape once and every later read is a plain lookup.
|
|
51
|
+
*/
|
|
52
|
+
function isAggregateDescriptor(value) {
|
|
53
|
+
if (!isObjectLike(value)) return false;
|
|
54
|
+
if (!("operation" in value) || !isNonEmptyString(value.operation)) return false;
|
|
55
|
+
if (!("nullable" in value) || typeof value.nullable !== "boolean") return false;
|
|
56
|
+
if (value.nullable === false && (!("emptyResultWire" in value) || value.emptyResultWire === void 0)) return false;
|
|
57
|
+
if (!("input" in value) || !isAggregateInputMatch(value.input)) return false;
|
|
58
|
+
if (!("output" in value) || !isAggregateOutputCodec(value.output)) return false;
|
|
59
|
+
return value.input.kind === "codec" || value.input.kind === "trait" || value.output.kind === "codec";
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Capability matrix merge primitive shared by emit-time and runtime stack composition.
|
|
63
|
+
*
|
|
64
|
+
* The CLI's `enrichContract` and the SQL runtime's `createExecutionContext` both need
|
|
65
|
+
* to fold a stack of component descriptors' `capabilities` declarations into a single
|
|
66
|
+
* matrix keyed by namespace. Keeping the primitive here lets both call sites stay
|
|
67
|
+
* byte-for-byte consistent without one depending on the other.
|
|
68
|
+
*/
|
|
69
|
+
function isPlainObject(value) {
|
|
70
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
71
|
+
}
|
|
72
|
+
function sortDeep(value) {
|
|
73
|
+
if (Array.isArray(value)) return value.map(sortDeep);
|
|
74
|
+
if (!isPlainObject(value)) return value;
|
|
75
|
+
const entries = Object.entries(value).sort(([a], [b]) => a.localeCompare(b));
|
|
76
|
+
const next = {};
|
|
77
|
+
for (const [key, child] of entries) next[key] = sortDeep(child);
|
|
78
|
+
return next;
|
|
79
|
+
}
|
|
80
|
+
function extractCapabilityMatrix(value) {
|
|
81
|
+
if (!isPlainObject(value)) return {};
|
|
82
|
+
const out = {};
|
|
83
|
+
for (const [namespace, maybeCaps] of Object.entries(value)) {
|
|
84
|
+
if (!isPlainObject(maybeCaps)) continue;
|
|
85
|
+
const caps = {};
|
|
86
|
+
for (const [key, flag] of Object.entries(maybeCaps)) if (typeof flag === "boolean") caps[key] = flag;
|
|
87
|
+
if (Object.keys(caps).length > 0) out[namespace] = caps;
|
|
88
|
+
}
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Merge an ordered list of contributor capability declarations into a base matrix.
|
|
93
|
+
*
|
|
94
|
+
* Behaviour:
|
|
95
|
+
* - `base` and each contributor's `capabilities` are filtered through the same
|
|
96
|
+
* structural extraction: non-plain-object namespace blocks are dropped,
|
|
97
|
+
* non-boolean leaves inside a namespace block are dropped, and a namespace
|
|
98
|
+
* block that ends up with zero boolean leaves is omitted entirely (so a
|
|
99
|
+
* later contributor with a malformed namespace cannot erase a namespace
|
|
100
|
+
* already present in `base`).
|
|
101
|
+
* - Non-plain-object `capabilities` on a contributor (including `undefined`,
|
|
102
|
+
* `null`, arrays, primitives) are skipped silently — the contributor
|
|
103
|
+
* contributes nothing.
|
|
104
|
+
* - Later contributors win on `(namespace, key)` collisions.
|
|
105
|
+
* - The returned object is fresh — neither `base` nor any contributor is mutated.
|
|
106
|
+
* - Output keys are sorted lexicographically at every plain-object level.
|
|
107
|
+
*/
|
|
108
|
+
function mergeCapabilityMatrices(base, contributors) {
|
|
109
|
+
const merged = extractCapabilityMatrix(base);
|
|
110
|
+
for (const contributor of contributors) {
|
|
111
|
+
const extracted = extractCapabilityMatrix(contributor.capabilities);
|
|
112
|
+
for (const [namespace, capabilities] of Object.entries(extracted)) merged[namespace] = {
|
|
113
|
+
...merged[namespace] ?? {},
|
|
114
|
+
...capabilities
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
return blindCast(sortDeep(merged));
|
|
118
|
+
}
|
|
119
|
+
function namedParametersOf(signature) {
|
|
120
|
+
if (typeof signature !== "object" || signature === null || !("named" in signature)) return [];
|
|
121
|
+
const named = signature.named;
|
|
122
|
+
return typeof named === "object" && named !== null ? Object.keys(named) : [];
|
|
123
|
+
}
|
|
124
|
+
function invalidContribution(message) {
|
|
125
|
+
return runtimeError("CONTRACT.PACK_CONTRIBUTION_INVALID", message);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The generators the components register, by id. A generator registered by two components is refused: the component that defines a generator registers it, once.
|
|
129
|
+
*/
|
|
130
|
+
function assembleGeneratorRegistrations(descriptors) {
|
|
131
|
+
const registered = /* @__PURE__ */ new Map();
|
|
132
|
+
for (const component of descriptors) for (const descriptor of component.controlMutationDefaults?.generatorDescriptors ?? []) {
|
|
133
|
+
const existing = registered.get(descriptor.id);
|
|
134
|
+
if (existing !== void 0) throw invalidContribution(`Generator "${descriptor.id}" is registered by both "${existing.componentId ?? "<unknown>"}" and "${component.id ?? "<unknown>"}". Register each generator once, in the component that defines it.`);
|
|
135
|
+
registered.set(descriptor.id, {
|
|
136
|
+
descriptor,
|
|
137
|
+
componentId: component.id
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return registered;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Assemble the generator functions of a composed stack: the control stack's components, or the pack refs of a TypeScript contract. Every generator a binding produces must be registered by a generator descriptor of one of the components.
|
|
144
|
+
*/
|
|
145
|
+
function assembleGeneratorFunctions(descriptors) {
|
|
146
|
+
const registered = assembleGeneratorRegistrations(descriptors);
|
|
147
|
+
const declared = /* @__PURE__ */ new Map();
|
|
148
|
+
const bindingsByCodec = /* @__PURE__ */ new Map();
|
|
149
|
+
const printersByCodecAndGenerator = /* @__PURE__ */ new Map();
|
|
150
|
+
const contributed = [];
|
|
151
|
+
for (const descriptor of descriptors) {
|
|
152
|
+
const contributedBy = descriptor.id ?? "<unknown>";
|
|
153
|
+
for (const contribution of descriptor.generatorFunctions ?? []) {
|
|
154
|
+
if (contribution.signature !== void 0) {
|
|
155
|
+
const [namedParameter] = namedParametersOf(contribution.signature);
|
|
156
|
+
if (namedParameter !== void 0) throw invalidContribution(`Generator function "${contribution.name}" from "${contributedBy}" declares the named parameter "${namedParameter}". A generator function takes positional parameters only, because a TypeScript gen call passes its arguments by position; declare it in positional.`);
|
|
157
|
+
const existing = declared.get(contribution.name);
|
|
158
|
+
if (existing !== void 0) throw invalidContribution(`Generator function "${contribution.name}" is declared by both "${existing.declaredBy}" and "${contributedBy}".`);
|
|
159
|
+
declared.set(contribution.name, {
|
|
160
|
+
signature: contribution.signature,
|
|
161
|
+
declaredBy: contributedBy
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
for (const binding of contribution.bindings) contributed.push({
|
|
165
|
+
name: contribution.name,
|
|
166
|
+
binding,
|
|
167
|
+
contributedBy
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
for (const owned of contributed) {
|
|
172
|
+
if (!declared.has(owned.name)) throw invalidContribution(`"${owned.contributedBy}" binds generator function "${owned.name}", which no component declares.`);
|
|
173
|
+
for (const codecId of owned.binding.codecIds) {
|
|
174
|
+
const forCodec = bindingsByCodec.get(codecId) ?? /* @__PURE__ */ new Map();
|
|
175
|
+
const existing = forCodec.get(owned.name);
|
|
176
|
+
if (existing !== void 0) throw invalidContribution(`Generator function "${owned.name}" is bound to codec "${codecId}" by both "${existing.contributedBy}" and "${owned.contributedBy}".`);
|
|
177
|
+
forCodec.set(owned.name, owned);
|
|
178
|
+
bindingsByCodec.set(codecId, forCodec);
|
|
179
|
+
for (const generatorId of owned.binding.generatorIds) {
|
|
180
|
+
const key = `${codecId}\u0000${generatorId}`;
|
|
181
|
+
const printer = printersByCodecAndGenerator.get(key);
|
|
182
|
+
if (printer !== void 0 && printer.name !== owned.name) throw invalidContribution(`Generator "${generatorId}" on codec "${codecId}" is written by both function "${printer.name}" from "${printer.contributedBy}" and function "${owned.name}" from "${owned.contributedBy}".`);
|
|
183
|
+
printersByCodecAndGenerator.set(key, owned);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
for (const generatorId of owned.binding.generatorIds) if (!registered.has(generatorId)) throw invalidContribution(`Generator function "${owned.name}" from "${owned.contributedBy}" produces generator "${generatorId}", which no generator descriptor in the stack registers.`);
|
|
187
|
+
}
|
|
188
|
+
function boundCodecIdsOf(name) {
|
|
189
|
+
return [...bindingsByCodec.entries()].filter(([, forCodec]) => forCodec.has(name)).map(([codecId]) => codecId).sort();
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
functionsFor(codecId) {
|
|
193
|
+
return [...bindingsByCodec.get(codecId)?.keys() ?? []].sort().map((name) => ({
|
|
194
|
+
name,
|
|
195
|
+
signature: declared.get(name)?.signature
|
|
196
|
+
}));
|
|
197
|
+
},
|
|
198
|
+
has(name) {
|
|
199
|
+
return declared.has(name);
|
|
200
|
+
},
|
|
201
|
+
resolve({ name, args }, field) {
|
|
202
|
+
if (!declared.has(name)) return {
|
|
203
|
+
ok: false,
|
|
204
|
+
reason: "unknown-function",
|
|
205
|
+
boundCodecIds: []
|
|
206
|
+
};
|
|
207
|
+
const owned = bindingsByCodec.get(field.codecId)?.get(name);
|
|
208
|
+
if (owned === void 0) return {
|
|
209
|
+
ok: false,
|
|
210
|
+
reason: "not-bound",
|
|
211
|
+
boundCodecIds: boundCodecIdsOf(name)
|
|
212
|
+
};
|
|
213
|
+
const resolution = owned.binding.resolve({
|
|
214
|
+
args,
|
|
215
|
+
field
|
|
216
|
+
});
|
|
217
|
+
if (!resolution.ok) return {
|
|
218
|
+
ok: false,
|
|
219
|
+
reason: "refused",
|
|
220
|
+
message: resolution.message
|
|
221
|
+
};
|
|
222
|
+
if (!owned.binding.generatorIds.includes(resolution.generator.id)) throw new InternalError(`Generator function "${name}" from "${owned.contributedBy}" resolved to generator "${resolution.generator.id}", which its binding does not declare in generatorIds.`);
|
|
223
|
+
return resolution;
|
|
224
|
+
},
|
|
225
|
+
callFor(generator, field) {
|
|
226
|
+
const owned = printersByCodecAndGenerator.get(`${field.codecId}\u0000${generator.id}`);
|
|
227
|
+
if (owned === void 0) return void 0;
|
|
228
|
+
const printed = owned.binding.printArguments(generator, field);
|
|
229
|
+
return printed === void 0 ? void 0 : {
|
|
230
|
+
call: {
|
|
231
|
+
name: owned.name,
|
|
232
|
+
args: printed.args
|
|
233
|
+
},
|
|
234
|
+
text: `${owned.name}(${printed.text})`
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* A binding of a function that takes no arguments to one generator, with params read from the field's type params when `paramsFromField` gives any.
|
|
241
|
+
*/
|
|
242
|
+
function singleGeneratorBinding(input) {
|
|
243
|
+
return {
|
|
244
|
+
codecIds: input.codecIds,
|
|
245
|
+
generatorIds: [input.generatorId],
|
|
246
|
+
resolve: ({ field }) => {
|
|
247
|
+
const params = input.paramsFromField?.(field);
|
|
248
|
+
return {
|
|
249
|
+
ok: true,
|
|
250
|
+
generator: params === void 0 ? {
|
|
251
|
+
kind: "generator",
|
|
252
|
+
id: input.generatorId
|
|
253
|
+
} : {
|
|
254
|
+
kind: "generator",
|
|
255
|
+
id: input.generatorId,
|
|
256
|
+
params
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
printArguments: (generator) => generator.id === input.generatorId ? {
|
|
261
|
+
args: {},
|
|
262
|
+
text: ""
|
|
263
|
+
} : void 0
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
/** The generator functions of a stack that contributes none. */
|
|
267
|
+
const EMPTY_GENERATOR_FUNCTIONS = assembleGeneratorFunctions([]);
|
|
268
|
+
//#endregion
|
|
269
|
+
export { isAggregateDescriptor as a, mergeCapabilityMatrices as c, assembleGeneratorRegistrations as i, singleGeneratorBinding as l, aggregateDescriptorKey as n, isAnyInputAggregateDescriptor as o, assembleGeneratorFunctions as r, isNoInputAggregateDescriptor as s, EMPTY_GENERATOR_FUNCTIONS as t };
|
|
270
|
+
|
|
271
|
+
//# sourceMappingURL=generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator-functions-CXbQfvYu-BIFU1Ryx.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/generator-functions-CXbQfvYu.mjs"],"sourcesContent":["import { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { n as isCodecTrait } from \"./codec-types-BXLUbk-Y.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/shared/aggregate-descriptor.ts\n/**\n* Ownership key of an `(operation, input)` pair. Two descriptors sharing a key are two contributors claiming one overload, which is a composition error.\n*/\nfunction aggregateDescriptorKey(descriptor) {\n\tswitch (descriptor.input.kind) {\n\t\tcase \"none\": return `${descriptor.operation}:none`;\n\t\tcase \"any\": return `${descriptor.operation}:any`;\n\t\tcase \"codec\": return `${descriptor.operation}:codec:${descriptor.input.codecId}`;\n\t\tcase \"trait\": return `${descriptor.operation}:trait:${descriptor.input.trait}`;\n\t}\n}\n/** Whether `descriptor` is the overload of an operation that consumes no value — the case whose result always names a codec outright. */\nfunction isNoInputAggregateDescriptor(descriptor) {\n\treturn descriptor.input.kind === \"none\";\n}\n/** Whether `descriptor` answers regardless of input — the fallback rung of resolution. */\nfunction isAnyInputAggregateDescriptor(descriptor) {\n\treturn descriptor.input.kind === \"any\";\n}\nfunction isObjectLike(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\nfunction isNonEmptyString(value) {\n\treturn typeof value === \"string\" && value.length > 0;\n}\nfunction isAggregateInputMatch(value) {\n\tif (!isObjectLike(value) || !(\"kind\" in value)) return false;\n\tswitch (value.kind) {\n\t\tcase \"none\":\n\t\tcase \"any\": return true;\n\t\tcase \"codec\": return \"codecId\" in value && isNonEmptyString(value.codecId);\n\t\tcase \"trait\": return \"trait\" in value && isCodecTrait(value.trait);\n\t\tdefault: return false;\n\t}\n}\nfunction isAggregateOutputCodec(value) {\n\tif (!isObjectLike(value) || !(\"kind\" in value)) return false;\n\tswitch (value.kind) {\n\t\tcase \"self\": return true;\n\t\tcase \"codec\": return \"codecId\" in value && isNonEmptyString(value.codecId) && (!(\"typeParams\" in value) || value.typeParams === void 0 || typeof value.typeParams === \"function\");\n\t\tdefault: return false;\n\t}\n}\n/**\n* Structural validation of a contributed descriptor. Components assembled from JavaScript reach the contribution slot unchecked, so composition validates the shape once and every later read is a plain lookup.\n*/\nfunction isAggregateDescriptor(value) {\n\tif (!isObjectLike(value)) return false;\n\tif (!(\"operation\" in value) || !isNonEmptyString(value.operation)) return false;\n\tif (!(\"nullable\" in value) || typeof value.nullable !== \"boolean\") return false;\n\tif (value.nullable === false && (!(\"emptyResultWire\" in value) || value.emptyResultWire === void 0)) return false;\n\tif (!(\"input\" in value) || !isAggregateInputMatch(value.input)) return false;\n\tif (!(\"output\" in value) || !isAggregateOutputCodec(value.output)) return false;\n\treturn value.input.kind === \"codec\" || value.input.kind === \"trait\" || value.output.kind === \"codec\";\n}\n//#endregion\n//#region src/shared/capabilities.ts\n/**\n* Capability matrix merge primitive shared by emit-time and runtime stack composition.\n*\n* The CLI's `enrichContract` and the SQL runtime's `createExecutionContext` both need\n* to fold a stack of component descriptors' `capabilities` declarations into a single\n* matrix keyed by namespace. Keeping the primitive here lets both call sites stay\n* byte-for-byte consistent without one depending on the other.\n*/\nfunction isPlainObject(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction sortDeep(value) {\n\tif (Array.isArray(value)) return value.map(sortDeep);\n\tif (!isPlainObject(value)) return value;\n\tconst entries = Object.entries(value).sort(([a], [b]) => a.localeCompare(b));\n\tconst next = {};\n\tfor (const [key, child] of entries) next[key] = sortDeep(child);\n\treturn next;\n}\nfunction extractCapabilityMatrix(value) {\n\tif (!isPlainObject(value)) return {};\n\tconst out = {};\n\tfor (const [namespace, maybeCaps] of Object.entries(value)) {\n\t\tif (!isPlainObject(maybeCaps)) continue;\n\t\tconst caps = {};\n\t\tfor (const [key, flag] of Object.entries(maybeCaps)) if (typeof flag === \"boolean\") caps[key] = flag;\n\t\tif (Object.keys(caps).length > 0) out[namespace] = caps;\n\t}\n\treturn out;\n}\n/**\n* Merge an ordered list of contributor capability declarations into a base matrix.\n*\n* Behaviour:\n* - `base` and each contributor's `capabilities` are filtered through the same\n* structural extraction: non-plain-object namespace blocks are dropped,\n* non-boolean leaves inside a namespace block are dropped, and a namespace\n* block that ends up with zero boolean leaves is omitted entirely (so a\n* later contributor with a malformed namespace cannot erase a namespace\n* already present in `base`).\n* - Non-plain-object `capabilities` on a contributor (including `undefined`,\n* `null`, arrays, primitives) are skipped silently — the contributor\n* contributes nothing.\n* - Later contributors win on `(namespace, key)` collisions.\n* - The returned object is fresh — neither `base` nor any contributor is mutated.\n* - Output keys are sorted lexicographically at every plain-object level.\n*/\nfunction mergeCapabilityMatrices(base, contributors) {\n\tconst merged = extractCapabilityMatrix(base);\n\tfor (const contributor of contributors) {\n\t\tconst extracted = extractCapabilityMatrix(contributor.capabilities);\n\t\tfor (const [namespace, capabilities] of Object.entries(extracted)) merged[namespace] = {\n\t\t\t...merged[namespace] ?? {},\n\t\t\t...capabilities\n\t\t};\n\t}\n\treturn blindCast(sortDeep(merged));\n}\n//#endregion\n//#region src/shared/generator-functions.ts\nfunction namedParametersOf(signature) {\n\tif (typeof signature !== \"object\" || signature === null || !(\"named\" in signature)) return [];\n\tconst named = signature.named;\n\treturn typeof named === \"object\" && named !== null ? Object.keys(named) : [];\n}\nfunction invalidContribution(message) {\n\treturn runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", message);\n}\n/**\n* The generators the components register, by id. A generator registered by two components is refused: the component that defines a generator registers it, once.\n*/\nfunction assembleGeneratorRegistrations(descriptors) {\n\tconst registered = /* @__PURE__ */ new Map();\n\tfor (const component of descriptors) for (const descriptor of component.controlMutationDefaults?.generatorDescriptors ?? []) {\n\t\tconst existing = registered.get(descriptor.id);\n\t\tif (existing !== void 0) throw invalidContribution(`Generator \"${descriptor.id}\" is registered by both \"${existing.componentId ?? \"<unknown>\"}\" and \"${component.id ?? \"<unknown>\"}\". Register each generator once, in the component that defines it.`);\n\t\tregistered.set(descriptor.id, {\n\t\t\tdescriptor,\n\t\t\tcomponentId: component.id\n\t\t});\n\t}\n\treturn registered;\n}\n/**\n* Assemble the generator functions of a composed stack: the control stack's components, or the pack refs of a TypeScript contract. Every generator a binding produces must be registered by a generator descriptor of one of the components.\n*/\nfunction assembleGeneratorFunctions(descriptors) {\n\tconst registered = assembleGeneratorRegistrations(descriptors);\n\tconst declared = /* @__PURE__ */ new Map();\n\tconst bindingsByCodec = /* @__PURE__ */ new Map();\n\tconst printersByCodecAndGenerator = /* @__PURE__ */ new Map();\n\tconst contributed = [];\n\tfor (const descriptor of descriptors) {\n\t\tconst contributedBy = descriptor.id ?? \"<unknown>\";\n\t\tfor (const contribution of descriptor.generatorFunctions ?? []) {\n\t\t\tif (contribution.signature !== void 0) {\n\t\t\t\tconst [namedParameter] = namedParametersOf(contribution.signature);\n\t\t\t\tif (namedParameter !== void 0) throw invalidContribution(`Generator function \"${contribution.name}\" from \"${contributedBy}\" declares the named parameter \"${namedParameter}\". A generator function takes positional parameters only, because a TypeScript gen call passes its arguments by position; declare it in positional.`);\n\t\t\t\tconst existing = declared.get(contribution.name);\n\t\t\t\tif (existing !== void 0) throw invalidContribution(`Generator function \"${contribution.name}\" is declared by both \"${existing.declaredBy}\" and \"${contributedBy}\".`);\n\t\t\t\tdeclared.set(contribution.name, {\n\t\t\t\t\tsignature: contribution.signature,\n\t\t\t\t\tdeclaredBy: contributedBy\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const binding of contribution.bindings) contributed.push({\n\t\t\t\tname: contribution.name,\n\t\t\t\tbinding,\n\t\t\t\tcontributedBy\n\t\t\t});\n\t\t}\n\t}\n\tfor (const owned of contributed) {\n\t\tif (!declared.has(owned.name)) throw invalidContribution(`\"${owned.contributedBy}\" binds generator function \"${owned.name}\", which no component declares.`);\n\t\tfor (const codecId of owned.binding.codecIds) {\n\t\t\tconst forCodec = bindingsByCodec.get(codecId) ?? /* @__PURE__ */ new Map();\n\t\t\tconst existing = forCodec.get(owned.name);\n\t\t\tif (existing !== void 0) throw invalidContribution(`Generator function \"${owned.name}\" is bound to codec \"${codecId}\" by both \"${existing.contributedBy}\" and \"${owned.contributedBy}\".`);\n\t\t\tforCodec.set(owned.name, owned);\n\t\t\tbindingsByCodec.set(codecId, forCodec);\n\t\t\tfor (const generatorId of owned.binding.generatorIds) {\n\t\t\t\tconst key = `${codecId}\\u0000${generatorId}`;\n\t\t\t\tconst printer = printersByCodecAndGenerator.get(key);\n\t\t\t\tif (printer !== void 0 && printer.name !== owned.name) throw invalidContribution(`Generator \"${generatorId}\" on codec \"${codecId}\" is written by both function \"${printer.name}\" from \"${printer.contributedBy}\" and function \"${owned.name}\" from \"${owned.contributedBy}\".`);\n\t\t\t\tprintersByCodecAndGenerator.set(key, owned);\n\t\t\t}\n\t\t}\n\t\tfor (const generatorId of owned.binding.generatorIds) if (!registered.has(generatorId)) throw invalidContribution(`Generator function \"${owned.name}\" from \"${owned.contributedBy}\" produces generator \"${generatorId}\", which no generator descriptor in the stack registers.`);\n\t}\n\tfunction boundCodecIdsOf(name) {\n\t\treturn [...bindingsByCodec.entries()].filter(([, forCodec]) => forCodec.has(name)).map(([codecId]) => codecId).sort();\n\t}\n\treturn {\n\t\tfunctionsFor(codecId) {\n\t\t\treturn [...bindingsByCodec.get(codecId)?.keys() ?? []].sort().map((name) => ({\n\t\t\t\tname,\n\t\t\t\tsignature: declared.get(name)?.signature\n\t\t\t}));\n\t\t},\n\t\thas(name) {\n\t\t\treturn declared.has(name);\n\t\t},\n\t\tresolve({ name, args }, field) {\n\t\t\tif (!declared.has(name)) return {\n\t\t\t\tok: false,\n\t\t\t\treason: \"unknown-function\",\n\t\t\t\tboundCodecIds: []\n\t\t\t};\n\t\t\tconst owned = bindingsByCodec.get(field.codecId)?.get(name);\n\t\t\tif (owned === void 0) return {\n\t\t\t\tok: false,\n\t\t\t\treason: \"not-bound\",\n\t\t\t\tboundCodecIds: boundCodecIdsOf(name)\n\t\t\t};\n\t\t\tconst resolution = owned.binding.resolve({\n\t\t\t\targs,\n\t\t\t\tfield\n\t\t\t});\n\t\t\tif (!resolution.ok) return {\n\t\t\t\tok: false,\n\t\t\t\treason: \"refused\",\n\t\t\t\tmessage: resolution.message\n\t\t\t};\n\t\t\tif (!owned.binding.generatorIds.includes(resolution.generator.id)) throw new InternalError(`Generator function \"${name}\" from \"${owned.contributedBy}\" resolved to generator \"${resolution.generator.id}\", which its binding does not declare in generatorIds.`);\n\t\t\treturn resolution;\n\t\t},\n\t\tcallFor(generator, field) {\n\t\t\tconst owned = printersByCodecAndGenerator.get(`${field.codecId}\\u0000${generator.id}`);\n\t\t\tif (owned === void 0) return void 0;\n\t\t\tconst printed = owned.binding.printArguments(generator, field);\n\t\t\treturn printed === void 0 ? void 0 : {\n\t\t\t\tcall: {\n\t\t\t\t\tname: owned.name,\n\t\t\t\t\targs: printed.args\n\t\t\t\t},\n\t\t\t\ttext: `${owned.name}(${printed.text})`\n\t\t\t};\n\t\t}\n\t};\n}\n/**\n* A binding of a function that takes no arguments to one generator, with params read from the field's type params when `paramsFromField` gives any.\n*/\nfunction singleGeneratorBinding(input) {\n\treturn {\n\t\tcodecIds: input.codecIds,\n\t\tgeneratorIds: [input.generatorId],\n\t\tresolve: ({ field }) => {\n\t\t\tconst params = input.paramsFromField?.(field);\n\t\t\treturn {\n\t\t\t\tok: true,\n\t\t\t\tgenerator: params === void 0 ? {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: input.generatorId\n\t\t\t\t} : {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: input.generatorId,\n\t\t\t\t\tparams\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\tprintArguments: (generator) => generator.id === input.generatorId ? {\n\t\t\targs: {},\n\t\t\ttext: \"\"\n\t\t} : void 0\n\t};\n}\n/** The generator functions of a stack that contributes none. */\nconst EMPTY_GENERATOR_FUNCTIONS = assembleGeneratorFunctions([]);\n//#endregion\nexport { mergeCapabilityMatrices as a, isAnyInputAggregateDescriptor as c, singleGeneratorBinding as i, isNoInputAggregateDescriptor as l, assembleGeneratorFunctions as n, aggregateDescriptorKey as o, assembleGeneratorRegistrations as r, isAggregateDescriptor as s, EMPTY_GENERATOR_FUNCTIONS as t };\n\n//# sourceMappingURL=generator-functions-CXbQfvYu.mjs.map"],"mappings":";;;;;;;;AAQA,SAAS,uBAAuB,YAAY;CAC3C,QAAQ,WAAW,MAAM,MAAzB;EACC,KAAK,QAAQ,OAAO,GAAG,WAAW,UAAU;EAC5C,KAAK,OAAO,OAAO,GAAG,WAAW,UAAU;EAC3C,KAAK,SAAS,OAAO,GAAG,WAAW,UAAU,SAAS,WAAW,MAAM;EACvE,KAAK,SAAS,OAAO,GAAG,WAAW,UAAU,SAAS,WAAW,MAAM;CACxE;AACD;;AAEA,SAAS,6BAA6B,YAAY;CACjD,OAAO,WAAW,MAAM,SAAS;AAClC;;AAEA,SAAS,8BAA8B,YAAY;CAClD,OAAO,WAAW,MAAM,SAAS;AAClC;AACA,SAAS,aAAa,OAAO;CAC5B,OAAO,OAAO,UAAU,YAAY,UAAU;AAC/C;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,MAAM,SAAS;AACpD;AACA,SAAS,sBAAsB,OAAO;CACrC,IAAI,CAAC,aAAa,KAAK,KAAK,EAAE,UAAU,QAAQ,OAAO;CACvD,QAAQ,MAAM,MAAd;EACC,KAAK;EACL,KAAK,OAAO,OAAO;EACnB,KAAK,SAAS,OAAO,aAAa,SAAS,iBAAiB,MAAM,OAAO;EACzE,KAAK,SAAS,OAAO,WAAW,SAAS,aAAa,MAAM,KAAK;EACjE,SAAS,OAAO;CACjB;AACD;AACA,SAAS,uBAAuB,OAAO;CAC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,OAAO,MAAM,cAAc;GACnE,MAAM,CAAC;GACP,MAAM;EACP,IAAI,KAAK;CACV;AACD;;AAEA,MAAM,4BAA4B,2BAA2B,CAAC,CAAC"}
|
package/dist/ids.d.mts
CHANGED
|
@@ -41,10 +41,6 @@ type GeneratedStorage<Length extends number = number> = {
|
|
|
41
41
|
};
|
|
42
42
|
declare const NANOID_DEFAULT_SIZE = 21;
|
|
43
43
|
type NanoidOptions = IdGeneratorOptionsById['nanoid'];
|
|
44
|
-
declare const builtinGeneratorRegistryMetadata: ReadonlyArray<{
|
|
45
|
-
readonly id: BuiltinGeneratorId;
|
|
46
|
-
readonly applicableCodecIds: readonly string[];
|
|
47
|
-
}>;
|
|
48
44
|
type GeneratedColumnSpec<TCodecId extends string = string> = {
|
|
49
45
|
readonly type: ColumnTypeDescriptor<TCodecId>;
|
|
50
46
|
readonly nullable?: false;
|
|
@@ -105,5 +101,5 @@ declare function nanoid<const Size extends number>(options: {
|
|
|
105
101
|
}): ReturnType<typeof createGeneratedSpec<'nanoid', Size>>;
|
|
106
102
|
declare function nanoid(options?: NanoidOptions): ReturnType<typeof createGeneratedSpec<'nanoid', number>>;
|
|
107
103
|
//#endregion
|
|
108
|
-
export { GeneratedColumnSpec, builtinGeneratorIds,
|
|
104
|
+
export { GeneratedColumnSpec, builtinGeneratorIds, cuid2, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
109
105
|
//# sourceMappingURL=ids.d.mts.map
|
package/dist/ids.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,6BAA6B;;;KAG7B,SAAS,aAAa,uBAAuB,YAAY,qBAAqB,+BAA+B;KAC7G;WACM,MAAM,gBAAgB;WACtB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,OAAO,gBAAgB;WACvB,OAAO,gBAAgB;;;;cAIpB;WACH;;;;;;;;;KASN,iBAAiB;WACX,MAAM,4BAA4B,oBAAoB;WACtD;aACE,QAAQ;;;cAGP;KACT,gBAAgB;
|
|
1
|
+
{"version":3,"file":"ids.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,6BAA6B;;;KAG7B,SAAS,aAAa,uBAAuB,YAAY,qBAAqB,+BAA+B;KAC7G;WACM,MAAM,gBAAgB;WACtB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,OAAO,gBAAgB;WACvB,OAAO,gBAAgB;;;;cAIpB;WACH;;;;;;;;;KASN,iBAAiB;WACX,MAAM,4BAA4B,oBAAoB;WACtD;aACE,QAAQ;;;cAGP;KACT,gBAAgB;KAChB,oBAAoB;WACd,MAAM,qBAAqB;WAC3B;WACA,aAAa;WACb,WAAW;;iBAEL,oBAAoB,YAAY,oBAAoB,uBAAuB,IAAI,KAAK,SAAS,iBAAiB,SAAS,SAAS,uBAAuB;WAC7J,MAAM;WACN;WACA;aACE,QAAQ;;WAEV,WAAW;;cAER,OAAO,UAAU;WACpB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,SAAS,UAAU;WACtB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,SAAS,UAAU;WACtB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,QAAQ,UAAU;WACrB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,QAAQ,UAAU;WACrB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;iBAEL,UAAU,kBAAkB,qCAAqC;iBACjE,aAAa,qBAAqB;WACxC,MAAM;IACb,kBAAkB,8BAA8B;iBACnC,OAAO,UAAU,gBAAgB,kBAAkB"}
|