@elaraai/e3 1.0.98 → 1.0.100
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/README.md +4 -5
- package/dist/src/browser.d.ts +2 -0
- package/dist/src/browser.d.ts.map +1 -1
- package/dist/src/browser.js +6 -0
- package/dist/src/browser.js.map +1 -1
- package/dist/src/environment-capture.d.ts +21 -0
- package/dist/src/environment-capture.d.ts.map +1 -1
- package/dist/src/environment-capture.js +48 -0
- package/dist/src/environment-capture.js.map +1 -1
- package/dist/src/export.d.ts +10 -5
- package/dist/src/export.d.ts.map +1 -1
- package/dist/src/export.js +31 -47
- package/dist/src/export.js.map +1 -1
- package/dist/src/export.spec.js +27 -16
- package/dist/src/export.spec.js.map +1 -1
- package/dist/src/function.d.ts.map +1 -1
- package/dist/src/function.js.map +1 -1
- package/dist/src/functions-cache.d.ts +60 -0
- package/dist/src/functions-cache.d.ts.map +1 -0
- package/dist/src/functions-cache.js +165 -0
- package/dist/src/functions-cache.js.map +1 -0
- package/dist/src/functions-link.spec.js +191 -12
- package/dist/src/functions-link.spec.js.map +1 -1
- package/dist/src/functions-resolve.d.ts +52 -23
- package/dist/src/functions-resolve.d.ts.map +1 -1
- package/dist/src/functions-resolve.js +244 -96
- package/dist/src/functions-resolve.js.map +1 -1
- package/dist/src/index.d.ts +8 -61
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +53 -0
- package/dist/src/internal.d.ts.map +1 -0
- package/dist/src/internal.js +29 -0
- package/dist/src/internal.js.map +1 -0
- package/dist/src/lazy-build.d.ts +25 -0
- package/dist/src/lazy-build.d.ts.map +1 -0
- package/dist/src/lazy-build.js +56 -0
- package/dist/src/lazy-build.js.map +1 -0
- package/dist/src/lazy-build.spec.d.ts +6 -0
- package/dist/src/lazy-build.spec.d.ts.map +1 -0
- package/dist/src/lazy-build.spec.js +153 -0
- package/dist/src/lazy-build.spec.js.map +1 -0
- package/dist/src/migration.d.ts +20 -163
- package/dist/src/migration.d.ts.map +1 -1
- package/dist/src/migration.js +37 -34
- package/dist/src/migration.js.map +1 -1
- package/dist/src/migration.spec.js +83 -78
- package/dist/src/migration.spec.js.map +1 -1
- package/dist/src/mutation-programs.spec.js +211 -118
- package/dist/src/mutation-programs.spec.js.map +1 -1
- package/dist/src/mutation.d.ts +37 -141
- package/dist/src/mutation.d.ts.map +1 -1
- package/dist/src/mutation.js +66 -28
- package/dist/src/mutation.js.map +1 -1
- package/dist/src/open-beast-link.spec.js +1 -1
- package/dist/src/open-beast-link.spec.js.map +1 -1
- package/dist/src/output.js.map +1 -1
- package/dist/src/package.d.ts +2 -38
- package/dist/src/package.d.ts.map +1 -1
- package/dist/src/package.js +42 -175
- package/dist/src/package.js.map +1 -1
- package/dist/src/record-area.d.ts +49 -37
- package/dist/src/record-area.d.ts.map +1 -1
- package/dist/src/record-area.js +211 -131
- package/dist/src/record-area.js.map +1 -1
- package/dist/src/record-area.spec.js +79 -62
- package/dist/src/record-area.spec.js.map +1 -1
- package/dist/src/record-arguments.d.ts +55 -0
- package/dist/src/record-arguments.d.ts.map +1 -0
- package/dist/src/record-arguments.js +72 -0
- package/dist/src/record-arguments.js.map +1 -0
- package/dist/src/record-builders.d.ts +547 -0
- package/dist/src/record-builders.d.ts.map +1 -0
- package/dist/src/record-builders.js +112 -0
- package/dist/src/record-builders.js.map +1 -0
- package/dist/src/record-declared.spec.d.ts +6 -0
- package/dist/src/record-declared.spec.d.ts.map +1 -0
- package/dist/src/record-declared.spec.js +251 -0
- package/dist/src/record-declared.spec.js.map +1 -0
- package/dist/src/record-guards.d.ts +114 -1
- package/dist/src/record-guards.d.ts.map +1 -1
- package/dist/src/record-guards.js +153 -2
- package/dist/src/record-guards.js.map +1 -1
- package/dist/src/record-index.d.ts +128 -350
- package/dist/src/record-index.d.ts.map +1 -1
- package/dist/src/record-index.js +44 -481
- package/dist/src/record-index.js.map +1 -1
- package/dist/src/record-index.spec.js +124 -90
- package/dist/src/record-index.spec.js.map +1 -1
- package/dist/src/record-interval.d.ts +57 -36
- package/dist/src/record-interval.d.ts.map +1 -1
- package/dist/src/record-interval.js +136 -94
- package/dist/src/record-interval.js.map +1 -1
- package/dist/src/record-interval.spec.js +48 -27
- package/dist/src/record-interval.spec.js.map +1 -1
- package/dist/src/record-keys.d.ts +146 -0
- package/dist/src/record-keys.d.ts.map +1 -0
- package/dist/src/record-keys.js +178 -0
- package/dist/src/record-keys.js.map +1 -0
- package/dist/src/record-nested-programs.d.ts +1457 -0
- package/dist/src/record-nested-programs.d.ts.map +1 -0
- package/dist/src/record-nested-programs.js +1974 -0
- package/dist/src/record-nested-programs.js.map +1 -0
- package/dist/src/record-nested.d.ts +284 -0
- package/dist/src/record-nested.d.ts.map +1 -0
- package/dist/src/record-nested.js +304 -0
- package/dist/src/record-nested.js.map +1 -0
- package/dist/src/record-nested.spec.d.ts +6 -0
- package/dist/src/record-nested.spec.d.ts.map +1 -0
- package/dist/src/record-nested.spec.js +1032 -0
- package/dist/src/record-nested.spec.js.map +1 -0
- package/dist/src/record-patches.d.ts +25 -0
- package/dist/src/record-patches.d.ts.map +1 -0
- package/dist/src/record-patches.js +27 -0
- package/dist/src/record-patches.js.map +1 -0
- package/dist/src/record-programs.d.ts +192 -26
- package/dist/src/record-programs.d.ts.map +1 -1
- package/dist/src/record-programs.js +858 -350
- package/dist/src/record-programs.js.map +1 -1
- package/dist/src/record-programs.spec.d.ts +6 -0
- package/dist/src/record-programs.spec.d.ts.map +1 -0
- package/dist/src/record-programs.spec.js +242 -0
- package/dist/src/record-programs.spec.js.map +1 -0
- package/dist/src/record-series.d.ts +101 -97
- package/dist/src/record-series.d.ts.map +1 -1
- package/dist/src/record-series.js +198 -149
- package/dist/src/record-series.js.map +1 -1
- package/dist/src/record-series.spec.js +241 -120
- package/dist/src/record-series.spec.js.map +1 -1
- package/dist/src/record-tiles.d.ts +328 -37
- package/dist/src/record-tiles.d.ts.map +1 -1
- package/dist/src/record-tiles.js +289 -100
- package/dist/src/record-tiles.js.map +1 -1
- package/dist/src/record.d.ts +66 -12
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/record.js +103 -34
- package/dist/src/record.js.map +1 -1
- package/dist/src/record.spec.js +48 -63
- package/dist/src/record.spec.js.map +1 -1
- package/dist/src/task.d.ts.map +1 -1
- package/dist/src/task.js +4 -1
- package/dist/src/task.js.map +1 -1
- package/dist/src/types.d.ts +103 -37
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { AsyncEastIR, EastTypeType, equalFor, toEastTypeValue, walkIR } from '@elaraai/east';
|
|
5
|
+
import { AsyncEastIR, EastTypeType, Expr, FunctionExpr, FunctionType, equalFor, printType, toEastTypeValue, walkIR } from '@elaraai/east';
|
|
6
|
+
import { DEFAULT_RUNNER, runnerToVariant } from './runner.js';
|
|
6
7
|
// Structural East-type equality, the same primitive the redeploy type-change
|
|
7
8
|
// guard uses (e3-core workspaces.ts): compare the encoded EastTypeValues.
|
|
8
9
|
const typeValueEqual = equalFor(EastTypeType);
|
|
@@ -25,7 +26,7 @@ export function sameEastType(a, b) {
|
|
|
25
26
|
* into nested closures, loop bodies and collection-op lambdas.
|
|
26
27
|
*
|
|
27
28
|
* @param subject - The function as the error names it, such as
|
|
28
|
-
* `e3.mutation.reduce 'place' body`
|
|
29
|
+
* `e3.record 'orders': mutation.reduce 'place' body`
|
|
29
30
|
* @param fn - The function
|
|
30
31
|
* @param why - Why the declaration refuses each, which ends its error
|
|
31
32
|
* @throws {Error} When the function is async, or calls a platform function.
|
|
@@ -41,4 +42,154 @@ export function checkPure(subject, fn, why) {
|
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
}
|
|
45
|
+
// ── An index's declaration ────────────────────────────────────────────────────
|
|
46
|
+
/** The index name reserved for the record's own collection wherever an index
|
|
47
|
+
* is selected — a page, a key search, an arm of the mutation delta. */
|
|
48
|
+
export const RESERVED_INDEX_NAME = 'primary';
|
|
49
|
+
/**
|
|
50
|
+
* The signature of a function a declaration gives — an index's, a mutation's,
|
|
51
|
+
* a migration's — as the guards see it.
|
|
52
|
+
*
|
|
53
|
+
* @param fn - The function
|
|
54
|
+
* @returns Its parameter types and its output type
|
|
55
|
+
* @throws {Error} When it is not an East function
|
|
56
|
+
*/
|
|
57
|
+
export function signatureOf(fn) {
|
|
58
|
+
const type = fn instanceof Expr ? Expr.type(fn) : undefined;
|
|
59
|
+
if (type?.type !== 'Function')
|
|
60
|
+
throw new Error('a declaration\'s function is an East function');
|
|
61
|
+
return { inputs: type.inputs, output: type.output };
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A declaration's function — an index's key, projection or merge, a migration's
|
|
65
|
+
* step, a mutation's body — as an East function of the signature its caller
|
|
66
|
+
* reads it at, checked to be exactly that. A definition keeps it as an
|
|
67
|
+
* expression ({@link IndexFunction}), whose signature only the run time knows.
|
|
68
|
+
*
|
|
69
|
+
* @param fn - The function
|
|
70
|
+
* @param inputs - Its parameter types
|
|
71
|
+
* @param output - Its output type
|
|
72
|
+
* @returns It, at that signature
|
|
73
|
+
* @throws {Error} When it is not an East function, or not of that signature
|
|
74
|
+
*/
|
|
75
|
+
export function functionAt(fn, inputs, output) {
|
|
76
|
+
if (!(fn instanceof FunctionExpr))
|
|
77
|
+
throw new Error('a declaration\'s function is an East function');
|
|
78
|
+
const declared = FunctionType(inputs, output);
|
|
79
|
+
if (!sameEastType(Expr.type(fn), declared)) {
|
|
80
|
+
throw new Error(`a function of type ${printType(Expr.type(fn))} is read as ${printType(declared)}`);
|
|
81
|
+
}
|
|
82
|
+
// Checked above: it was built at the signature asked for.
|
|
83
|
+
return fn;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A declaration's function as its IR bundle, which export links and encodes.
|
|
87
|
+
*
|
|
88
|
+
* @param fn - The function: an East function, as a declaration's guards have found it
|
|
89
|
+
* @returns Its IR bundle
|
|
90
|
+
* @throws {Error} When it is not an East function — an async one is refused before this
|
|
91
|
+
*/
|
|
92
|
+
export function bundleOf(fn) {
|
|
93
|
+
if (!(fn instanceof FunctionExpr))
|
|
94
|
+
throw new Error('a declaration\'s function is an East function');
|
|
95
|
+
return fn.toIR();
|
|
96
|
+
}
|
|
97
|
+
/** Why an index function may be neither async nor reach a platform function:
|
|
98
|
+
* either makes the index non-deterministic, and an index that does not equal
|
|
99
|
+
* its rebuild is worse than no index, since the view it serves is quietly
|
|
100
|
+
* wrong. */
|
|
101
|
+
export const INDEX_PURITY = {
|
|
102
|
+
async: 'an async function implies platform IO, and an index is rebuilt from the record whenever it is dropped or its declaration changes.',
|
|
103
|
+
platform: 'the index is maintained on every commit and rebuilt on demand, so a platform call makes the two disagree.',
|
|
104
|
+
};
|
|
105
|
+
/** Refuses an index function whose parameters are not the record's entry. */
|
|
106
|
+
export function checkEntryParams(constructor, name, role, keyType, valueType, inputs) {
|
|
107
|
+
if (inputs.length !== 2 || !sameEastType(keyType, inputs[0]) || !sameEastType(valueType, inputs[1])) {
|
|
108
|
+
const got = inputs.length === 0 ? 'no parameters' : inputs.map((t) => printType(t)).join(', ');
|
|
109
|
+
throw new Error(`${constructor} '${name}' ${role} must take the record's entry ` +
|
|
110
|
+
`(${printType(keyType)}, ${printType(valueType)}), but got ${got}.`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A record's entry types, once an index's name and its record pass: a name that
|
|
115
|
+
* is an identifier, never `primary`, declared once on the record, over a Dict
|
|
116
|
+
* record.
|
|
117
|
+
*
|
|
118
|
+
* Every guard here is a definition-time error rather than a deploy failure.
|
|
119
|
+
*
|
|
120
|
+
* @param constructor - The constructor, as a refusal names it
|
|
121
|
+
* @param name - The index
|
|
122
|
+
* @param rec - Its record
|
|
123
|
+
* @returns The record's key and row types
|
|
124
|
+
* @throws {Error} Naming what to change
|
|
125
|
+
*/
|
|
126
|
+
export function indexedEntry(constructor, name, rec) {
|
|
127
|
+
if (!name) {
|
|
128
|
+
throw new Error(`${constructor} requires a non-empty name`);
|
|
129
|
+
}
|
|
130
|
+
if (name === RESERVED_INDEX_NAME) {
|
|
131
|
+
throw new Error(`${constructor} cannot be named '${RESERVED_INDEX_NAME}' — that name is the ` +
|
|
132
|
+
`record's own collection wherever an index is selected.`);
|
|
133
|
+
}
|
|
134
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(name)) {
|
|
135
|
+
throw new Error(`${constructor} '${name}' must be an identifier — it names a query ` +
|
|
136
|
+
`selector in URLs and on the command line.`);
|
|
137
|
+
}
|
|
138
|
+
const recordType = rec.type;
|
|
139
|
+
if (recordType.type !== 'Dict') {
|
|
140
|
+
throw new Error(`${constructor} '${name}' indexes a Dict record — '${rec.name}' holds ` +
|
|
141
|
+
`${printType(rec.type)}, which has no (key, value) entry to index. A Set or ` +
|
|
142
|
+
`Array record is read in its own order only.`);
|
|
143
|
+
}
|
|
144
|
+
return { keyType: recordType.key, valueType: recordType.value };
|
|
145
|
+
}
|
|
146
|
+
/** Refuses an option a constructor does not take, naming those it does. */
|
|
147
|
+
export function onlyOptions(constructor, name, spec, options, instead) {
|
|
148
|
+
const extra = Object.keys(spec).filter((option) => !options.includes(option));
|
|
149
|
+
if (extra.length === 0)
|
|
150
|
+
return;
|
|
151
|
+
throw new Error(`${constructor} '${name}' takes ${options.join(', ')}, not ${extra.join(', ')}` + (instead === undefined ? '' : ` — ${instead}`));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* An index's runner: the one it declares, or the default, checked now so a bad
|
|
155
|
+
* runner fails at definition time, not at export.
|
|
156
|
+
*
|
|
157
|
+
* @param config - The declaration's runner selection
|
|
158
|
+
* @returns The runner
|
|
159
|
+
*/
|
|
160
|
+
export function indexRunner(config) {
|
|
161
|
+
const runner = config?.runner ?? DEFAULT_RUNNER;
|
|
162
|
+
runnerToVariant(runner);
|
|
163
|
+
return runner;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* An index's key and projection functions, checked as every constructor checks
|
|
167
|
+
* them: pure, over the record's entry, a `keys` function returning a Set.
|
|
168
|
+
*
|
|
169
|
+
* @returns The runner, and the index key and projection types the functions declare
|
|
170
|
+
*/
|
|
171
|
+
export function indexFunctions(constructor, name, keyType, valueType, keyFn, multi, valueFn, config) {
|
|
172
|
+
const runner = indexRunner(config);
|
|
173
|
+
checkPure(`${constructor} '${name}' ${multi ? "'keys' function" : "'key' function"}`, keyFn, INDEX_PURITY);
|
|
174
|
+
const keySig = signatureOf(keyFn);
|
|
175
|
+
checkEntryParams(constructor, name, multi ? "'keys' function" : "'key' function", keyType, valueType, keySig.inputs);
|
|
176
|
+
let indexKeyType = keySig.output;
|
|
177
|
+
if (multi) {
|
|
178
|
+
const returned = keySig.output;
|
|
179
|
+
if (returned.type !== 'Set') {
|
|
180
|
+
throw new Error(`${constructor} '${name}' declared with 'keys' must return a Set of index ` +
|
|
181
|
+
`keys — one entry per element — but returns ${printType(keySig.output)}. ` +
|
|
182
|
+
`For one entry per row use index.key.`);
|
|
183
|
+
}
|
|
184
|
+
indexKeyType = returned.key;
|
|
185
|
+
}
|
|
186
|
+
let projectionType;
|
|
187
|
+
if (valueFn !== undefined) {
|
|
188
|
+
checkPure(`${constructor} '${name}' 'value' projection`, valueFn, INDEX_PURITY);
|
|
189
|
+
const valueSig = signatureOf(valueFn);
|
|
190
|
+
checkEntryParams(constructor, name, "'value' projection", keyType, valueType, valueSig.inputs);
|
|
191
|
+
projectionType = valueSig.output;
|
|
192
|
+
}
|
|
193
|
+
return { runner, indexKeyType, projectionType };
|
|
194
|
+
}
|
|
44
195
|
//# sourceMappingURL=record-guards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-guards.js","sourceRoot":"","sources":["../../src/record-guards.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"record-guards.js","sourceRoot":"","sources":["../../src/record-guards.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1I,OAAO,EAAE,cAAc,EAAE,eAAe,EAAuB,MAAM,aAAa,CAAC;AAEnF,6EAA6E;AAC7E,0EAA0E;AAC1E,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,CAAW,EAAE,CAAW;IACnD,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,SAAS,CAAC,OAAe,EAAE,EAAuB,EAAE,GAAwC;IAC1G,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;IACrB,IAAI,EAAE,YAAY,WAAW,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,0CAA0C,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,CAAE,EAAoB,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;QACxC,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,6CAA6C,IAAI,CAAC,KAAK,CAAC,IAAI,QAAQ,GAAG,CAAC,QAAQ,EAAE,CAAC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