@elaraai/east 1.0.80 → 1.0.81
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/src/builtins.d.ts +1 -1
- package/dist/src/builtins.d.ts.map +1 -1
- package/dist/src/builtins.js +19 -0
- package/dist/src/builtins.js.map +1 -1
- package/dist/src/codegen/spellings.d.ts.map +1 -1
- package/dist/src/codegen/spellings.js +3 -0
- package/dist/src/codegen/spellings.js.map +1 -1
- package/dist/src/comparison.d.ts +54 -0
- package/dist/src/comparison.d.ts.map +1 -1
- package/dist/src/comparison.equivalent.spec.d.ts +6 -0
- package/dist/src/comparison.equivalent.spec.d.ts.map +1 -0
- package/dist/src/comparison.equivalent.spec.js +130 -0
- package/dist/src/comparison.equivalent.spec.js.map +1 -0
- package/dist/src/comparison.js +93 -20
- package/dist/src/comparison.js.map +1 -1
- package/dist/src/compile/builtins/array.d.ts +2 -1
- package/dist/src/compile/builtins/array.d.ts.map +1 -1
- package/dist/src/compile/builtins/array.js +35 -0
- package/dist/src/compile/builtins/array.js.map +1 -1
- package/dist/src/compile/builtins/dict.d.ts +1 -0
- package/dist/src/compile/builtins/dict.d.ts.map +1 -1
- package/dist/src/compile/builtins/dict.js +25 -0
- package/dist/src/compile/builtins/dict.js.map +1 -1
- package/dist/src/compile/builtins/set.d.ts +1 -0
- package/dist/src/compile/builtins/set.d.ts.map +1 -1
- package/dist/src/compile/builtins/set.js +25 -0
- package/dist/src/compile/builtins/set.js.map +1 -1
- package/dist/src/compile/builtins/tree.d.ts +32 -0
- package/dist/src/compile/builtins/tree.d.ts.map +1 -0
- package/dist/src/compile/builtins/tree.js +108 -0
- package/dist/src/compile/builtins/tree.js.map +1 -0
- package/dist/src/compile/functions.d.ts.map +1 -1
- package/dist/src/compile/functions.js +4 -4
- package/dist/src/compile/functions.js.map +1 -1
- package/dist/src/compile/runtime.d.ts +12 -15
- package/dist/src/compile/runtime.d.ts.map +1 -1
- package/dist/src/compile/runtime.js +19 -16
- package/dist/src/compile/runtime.js.map +1 -1
- package/dist/src/compile.signature.spec.d.ts +6 -0
- package/dist/src/compile.signature.spec.d.ts.map +1 -0
- package/dist/src/compile.signature.spec.js +53 -0
- package/dist/src/compile.signature.spec.js.map +1 -0
- package/dist/src/expr/array.d.ts +158 -81
- package/dist/src/expr/array.d.ts.map +1 -1
- package/dist/src/expr/array.js +68 -51
- package/dist/src/expr/array.js.map +1 -1
- package/dist/src/expr/ast.d.ts.map +1 -1
- package/dist/src/expr/ast.js +13 -0
- package/dist/src/expr/ast.js.map +1 -1
- package/dist/src/expr/blob.d.ts +8 -8
- package/dist/src/expr/blob.js +8 -8
- package/dist/src/expr/block.d.ts +18 -5
- package/dist/src/expr/block.d.ts.map +1 -1
- package/dist/src/expr/block.js +19 -0
- package/dist/src/expr/block.js.map +1 -1
- package/dist/src/expr/boolean.d.ts +10 -10
- package/dist/src/expr/boolean.js +10 -10
- package/dist/src/expr/datetime.d.ts +28 -28
- package/dist/src/expr/datetime.js +28 -28
- package/dist/src/expr/dict.d.ts +101 -51
- package/dist/src/expr/dict.d.ts.map +1 -1
- package/dist/src/expr/dict.js +97 -36
- package/dist/src/expr/dict.js.map +1 -1
- package/dist/src/expr/float.d.ts +23 -23
- package/dist/src/expr/float.js +23 -23
- package/dist/src/expr/integer.d.ts +17 -17
- package/dist/src/expr/integer.js +11 -11
- package/dist/src/expr/libs/array.d.ts +6 -6
- package/dist/src/expr/libs/array.js +6 -6
- package/dist/src/expr/libs/blob.d.ts +2 -2
- package/dist/src/expr/libs/blob.js +2 -2
- package/dist/src/expr/libs/datetime.d.ts +25 -25
- package/dist/src/expr/libs/datetime.js +25 -25
- package/dist/src/expr/libs/dict.d.ts +2 -2
- package/dist/src/expr/libs/dict.js +2 -2
- package/dist/src/expr/libs/float.d.ts +15 -15
- package/dist/src/expr/libs/float.js +15 -15
- package/dist/src/expr/libs/integer.d.ts +12 -12
- package/dist/src/expr/libs/integer.js +12 -12
- package/dist/src/expr/libs/set.d.ts +2 -2
- package/dist/src/expr/libs/set.js +2 -2
- package/dist/src/expr/libs/string.d.ts +4 -4
- package/dist/src/expr/libs/string.js +4 -4
- package/dist/src/expr/recursive.d.ts +22 -5
- package/dist/src/expr/recursive.d.ts.map +1 -1
- package/dist/src/expr/recursive.js +22 -5
- package/dist/src/expr/recursive.js.map +1 -1
- package/dist/src/expr/ref.d.ts +5 -5
- package/dist/src/expr/ref.js +5 -5
- package/dist/src/expr/set.d.ts +96 -51
- package/dist/src/expr/set.d.ts.map +1 -1
- package/dist/src/expr/set.js +85 -29
- package/dist/src/expr/set.js.map +1 -1
- package/dist/src/expr/string.d.ts +28 -28
- package/dist/src/expr/string.js +28 -28
- package/dist/src/expr/struct.d.ts.map +1 -1
- package/dist/src/expr/struct.js +2 -2
- package/dist/src/expr/variant.d.ts +12 -12
- package/dist/src/expr/variant.js +7 -7
- package/dist/src/function_symbols.d.ts +28 -0
- package/dist/src/function_symbols.d.ts.map +1 -0
- package/dist/src/function_symbols.js +28 -0
- package/dist/src/function_symbols.js.map +1 -0
- package/dist/src/location.d.ts +32 -0
- package/dist/src/location.d.ts.map +1 -1
- package/dist/src/location.js +38 -0
- package/dist/src/location.js.map +1 -1
- package/dist/src/location.spec.js +89 -1
- package/dist/src/location.spec.js.map +1 -1
- package/dist/src/runner_protocol.d.ts +46 -5
- package/dist/src/runner_protocol.d.ts.map +1 -1
- package/dist/src/runner_protocol.js +24 -5
- package/dist/src/runner_protocol.js.map +1 -1
- package/dist/src/serialization/beast2/index.d.ts +1 -0
- package/dist/src/serialization/beast2/index.d.ts.map +1 -1
- package/dist/src/serialization/beast2/index.js +1 -0
- package/dist/src/serialization/beast2/index.js.map +1 -1
- package/dist/src/serialization/beast2/v5/canonical.d.ts +101 -0
- package/dist/src/serialization/beast2/v5/canonical.d.ts.map +1 -0
- package/dist/src/serialization/beast2/v5/canonical.js +436 -0
- package/dist/src/serialization/beast2/v5/canonical.js.map +1 -0
- package/dist/src/serialization/beast2/v5/canonical.spec.d.ts +6 -0
- package/dist/src/serialization/beast2/v5/canonical.spec.d.ts.map +1 -0
- package/dist/src/serialization/beast2/v5/canonical.spec.js +124 -0
- package/dist/src/serialization/beast2/v5/canonical.spec.js.map +1 -0
- package/dist/src/serialization/beast2/v5/elements.d.ts +3 -1
- package/dist/src/serialization/beast2/v5/elements.d.ts.map +1 -1
- package/dist/src/serialization/beast2/v5/elements.js +7 -2
- package/dist/src/serialization/beast2/v5/elements.js.map +1 -1
- package/dist/src/serialization/beast2/v5/elements.spec.js +1 -1
- package/dist/src/serialization/beast2/v5/elements.spec.js.map +1 -1
- package/dist/src/serialization/beast2/v5/intake.d.ts +98 -0
- package/dist/src/serialization/beast2/v5/intake.d.ts.map +1 -0
- package/dist/src/serialization/beast2/v5/intake.js +462 -0
- package/dist/src/serialization/beast2/v5/intake.js.map +1 -0
- package/dist/src/serialization/beast2/v5/intake.spec.d.ts +6 -0
- package/dist/src/serialization/beast2/v5/intake.spec.d.ts.map +1 -0
- package/dist/src/serialization/beast2/v5/intake.spec.js +202 -0
- package/dist/src/serialization/beast2/v5/intake.spec.js.map +1 -0
- package/dist/src/serialization/index.d.ts +1 -1
- package/dist/src/serialization/index.d.ts.map +1 -1
- package/dist/src/serialization/index.js +1 -1
- package/dist/src/serialization/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The intake, held to the Writer: a delivery comes out as the directory the
|
|
7
|
+
* Writer writes for the value it holds, however it was cut, framed or encoded,
|
|
8
|
+
* and a delivery no reader reads is refused in the words every runner uses.
|
|
9
|
+
*/
|
|
10
|
+
import { describe, test } from "node:test";
|
|
11
|
+
import assert from "node:assert/strict";
|
|
12
|
+
import { ArrayType, DictType, FloatType, FunctionType, IntegerType, SetType, StringType } from "../../../types.js";
|
|
13
|
+
import { toEastTypeValue } from "../../../type_of_type.js";
|
|
14
|
+
import { SortedMap } from "../../../containers/sortedmap.js";
|
|
15
|
+
import { SortedSet } from "../../../containers/sortedset.js";
|
|
16
|
+
import { compareFor } from "../../../comparison.js";
|
|
17
|
+
import { BufferWriter } from "../../binary-utils.js";
|
|
18
|
+
import { encodeBeast2For } from "../index.js";
|
|
19
|
+
import { writeIndexAndFooter } from "./codec.js";
|
|
20
|
+
import { writeFrame } from "./frames.js";
|
|
21
|
+
import { TAG_OR_TERMINATOR_FRAME } from "./range.js";
|
|
22
|
+
import { readBeast2Extents } from "./geometry.js";
|
|
23
|
+
import { Beast2ElementWriter, elementEncoderFor, encodeBeast2PagedFor, encodeBeast2SegmentsFor } from "./stream.js";
|
|
24
|
+
import { Beast2ManifestWriter } from "./manifest-writer.js";
|
|
25
|
+
import { decodeCollectionManifest } from "./manifest.js";
|
|
26
|
+
import { RUN_MAX_BYTES } from "./runs.js";
|
|
27
|
+
import { Beast2IntakeError, intakeBeast2For } from "./intake.js";
|
|
28
|
+
/** The directory the Writer writes for a collection's elements. */
|
|
29
|
+
function writersDirectory(type, elements) {
|
|
30
|
+
const directory = { manifest: null, objects: new Map() };
|
|
31
|
+
const writer = new Beast2ManifestWriter(type, {
|
|
32
|
+
object: (hash, bytes) => { directory.objects.set(hash, bytes); },
|
|
33
|
+
manifest: (bytes) => { directory.manifest = bytes; },
|
|
34
|
+
});
|
|
35
|
+
for (const element of elements)
|
|
36
|
+
writer.add(element);
|
|
37
|
+
writer.finish();
|
|
38
|
+
return directory;
|
|
39
|
+
}
|
|
40
|
+
/** A delivery taken in: its directory and what the intake came to. */
|
|
41
|
+
function take(type, delivery, options) {
|
|
42
|
+
const directory = { manifest: null, objects: new Map() };
|
|
43
|
+
const stats = intakeBeast2For(type)({ size: delivery.length, read: (offset, length) => delivery.subarray(offset, offset + length) }, {
|
|
44
|
+
object: (hash, bytes) => { directory.objects.set(hash, bytes); },
|
|
45
|
+
manifest: (bytes) => { directory.manifest = bytes; },
|
|
46
|
+
}, options);
|
|
47
|
+
return { ...directory, ...stats };
|
|
48
|
+
}
|
|
49
|
+
/** Asserts a delivery is refused with exactly `message`, having written no
|
|
50
|
+
* manifest. */
|
|
51
|
+
function refused(type, delivery, message, options) {
|
|
52
|
+
let manifest = null;
|
|
53
|
+
assert.throws(() => intakeBeast2For(type)({ size: delivery.length, read: (offset, length) => delivery.subarray(offset, offset + length) }, {
|
|
54
|
+
object: () => { },
|
|
55
|
+
manifest: (bytes) => { manifest = bytes; },
|
|
56
|
+
}, options), (err) => err instanceof Beast2IntakeError && err.message === message);
|
|
57
|
+
assert.equal(manifest, null, "a refused delivery writes no manifest");
|
|
58
|
+
}
|
|
59
|
+
/** A collection's elements, each in its canonical bytes. */
|
|
60
|
+
function rowsOf(type, elements) {
|
|
61
|
+
const encode = elementEncoderFor(toEastTypeValue(type), null);
|
|
62
|
+
const writer = new BufferWriter();
|
|
63
|
+
return [...elements].map((element) => {
|
|
64
|
+
writer.pop();
|
|
65
|
+
encode(element, writer);
|
|
66
|
+
return writer.toUint8Array().slice();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/** Bytes written with a writer's own calls. */
|
|
70
|
+
function bytesOf(write) {
|
|
71
|
+
const writer = new BufferWriter();
|
|
72
|
+
write(writer);
|
|
73
|
+
return writer.toUint8Array().slice();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A v5 blob of `type` whose segments hold the given rows as bytes — the
|
|
77
|
+
* Writer's or not — each segment its own uncompressed frame, under the
|
|
78
|
+
* Writer's header, with an index.
|
|
79
|
+
*/
|
|
80
|
+
function blobOf(type, segments) {
|
|
81
|
+
const out = new BufferWriter();
|
|
82
|
+
out.writeBytes(new Beast2ElementWriter(type, { segment: () => { } }).header);
|
|
83
|
+
const index = [];
|
|
84
|
+
for (const rows of segments) {
|
|
85
|
+
const logical = new BufferWriter();
|
|
86
|
+
logical.writeVarint(rows.length);
|
|
87
|
+
for (const row of rows)
|
|
88
|
+
logical.writeBytes(row);
|
|
89
|
+
index.push({ offset: out.size, count: rows.length });
|
|
90
|
+
writeFrame(out, logical.toUint8Array(), "none");
|
|
91
|
+
}
|
|
92
|
+
out.writeBytes(TAG_OR_TERMINATOR_FRAME);
|
|
93
|
+
writeIndexAndFooter(out, index, true);
|
|
94
|
+
return out.toUint8Array().slice();
|
|
95
|
+
}
|
|
96
|
+
const Table = DictType(StringType, IntegerType);
|
|
97
|
+
const table = new SortedMap(Array.from({ length: 20_000 }, (_, i) => [`k${String(i).padStart(7, "0")}`, BigInt(i)]), compareFor(StringType));
|
|
98
|
+
describe("intakeBeast2For", () => {
|
|
99
|
+
test("takes a delivery the Writer wrote in as the Writer's directory, carrying every row", () => {
|
|
100
|
+
const taken = take(Table, encodeBeast2PagedFor(Table)(table));
|
|
101
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Table, table.entries()));
|
|
102
|
+
assert.equal(taken.rows, table.size);
|
|
103
|
+
assert.equal(taken.rewritten, 0, "no segment is read and written again");
|
|
104
|
+
});
|
|
105
|
+
test("cuts a delivery batched by count where the rule cuts it", () => {
|
|
106
|
+
const Wide = ArrayType(StringType);
|
|
107
|
+
const rows = Array.from({ length: 6_000 }, (_, i) => `${i}:`.padEnd(900, "x"));
|
|
108
|
+
const batches = Array.from({ length: 6 }, (_, b) => rows.slice(b * 1_000, (b + 1) * 1_000));
|
|
109
|
+
const taken = take(Wide, encodeBeast2SegmentsFor(Wide)(batches));
|
|
110
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Wide, rows));
|
|
111
|
+
assert.equal(taken.segments, 6);
|
|
112
|
+
assert.equal(taken.rewritten, 0);
|
|
113
|
+
assert.notDeepEqual(decodeCollectionManifest(taken.manifest).entries.map((entry) => Number(entry.count)), batches.map((batch) => batch.length), "the rule cuts elsewhere than the batches");
|
|
114
|
+
});
|
|
115
|
+
test("reads a segment the Writer would write otherwise and writes it again, carrying the rest", () => {
|
|
116
|
+
const Nested = ArrayType(ArrayType(IntegerType));
|
|
117
|
+
const canonical = rowsOf(Nested, [[1n, 2n], [3n]]);
|
|
118
|
+
const loose = [
|
|
119
|
+
// [1, 2] in two runs.
|
|
120
|
+
new Uint8Array([0x00, 0x01, 0x02, 0x01, 0x04, 0x00]),
|
|
121
|
+
// An alias to the row before: [1, 2] again.
|
|
122
|
+
new Uint8Array([0x01, 0x01]),
|
|
123
|
+
// [3], its length padded.
|
|
124
|
+
new Uint8Array([0x00, 0x81, 0x00, 0x06, 0x00]),
|
|
125
|
+
];
|
|
126
|
+
const taken = take(Nested, blobOf(Nested, [canonical, loose]));
|
|
127
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Nested, [[1n, 2n], [3n], [1n, 2n], [1n, 2n], [3n]]));
|
|
128
|
+
assert.equal(taken.segments, 2);
|
|
129
|
+
assert.equal(taken.rewritten, 1, "only the second segment is written again");
|
|
130
|
+
});
|
|
131
|
+
test("writes the negative NaN the decoder reads as the NaN the Writer writes", () => {
|
|
132
|
+
const Floats = ArrayType(FloatType);
|
|
133
|
+
const taken = take(Floats, blobOf(Floats, [[new Uint8Array([0, 0, 0, 0, 0, 0, 0xf8, 0xff])]]));
|
|
134
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Floats, [NaN]));
|
|
135
|
+
});
|
|
136
|
+
test("takes a piece of a delivery by its index", () => {
|
|
137
|
+
const blob = encodeBeast2PagedFor(Table)(table);
|
|
138
|
+
const extents = readBeast2Extents(blob);
|
|
139
|
+
assert.ok(extents.offsets.length >= 4, "the delivery has segments to piece");
|
|
140
|
+
const entries = [...table.entries()];
|
|
141
|
+
const starts = [0, ...extents.counts.map((_, i) => extents.counts.slice(0, i + 1).reduce((a, b) => a + b, 0))];
|
|
142
|
+
for (const [from, to] of [[0, 2], [2, extents.offsets.length], [1, 2]]) {
|
|
143
|
+
const taken = take(Table, blob, { segments: { from, to } });
|
|
144
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Table, entries.slice(starts[from], starts[to])), `segments [${from}, ${to})`);
|
|
145
|
+
assert.equal(taken.segments, to - from);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
test("takes a version 4 delivery in whole", () => {
|
|
149
|
+
const Names = SetType(StringType);
|
|
150
|
+
const names = new SortedSet(["pear", "apple", "fig"], compareFor(StringType));
|
|
151
|
+
const taken = take(Names, encodeBeast2For(Names, { version: 4 })(names));
|
|
152
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Names, names));
|
|
153
|
+
assert.equal(taken.rewritten, 1);
|
|
154
|
+
});
|
|
155
|
+
test("takes an empty delivery in as the empty collection", () => {
|
|
156
|
+
const empty = new SortedMap(undefined, compareFor(StringType));
|
|
157
|
+
for (const blob of [encodeBeast2PagedFor(Table)(empty), encodeBeast2For(Table)(empty)]) {
|
|
158
|
+
const taken = take(Table, blob);
|
|
159
|
+
assert.deepEqual({ manifest: taken.manifest, objects: taken.objects }, writersDirectory(Table, []));
|
|
160
|
+
assert.equal(taken.rows, 0);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
test("refuses keys that do not ascend, within a segment and across segments", () => {
|
|
164
|
+
const Names = SetType(StringType);
|
|
165
|
+
refused(Names, blobOf(Names, [rowsOf(Names, ["b"]), rowsOf(Names, ["a"])]), `intake: the delivery's Set elements must ascend strictly in East order, and "a" follows "b"`);
|
|
166
|
+
refused(Table, blobOf(Table, [rowsOf(Table, [["a", 1n], ["a", 2n]])]), `intake: the delivery's Dict keys must ascend strictly in East order, and "a" follows "a"`);
|
|
167
|
+
});
|
|
168
|
+
test("refuses a segment with a row that does not decode, naming what is wrong with it", () => {
|
|
169
|
+
const Names = ArrayType(StringType);
|
|
170
|
+
refused(Names, blobOf(Names, [rowsOf(Names, ["ok"]), [new Uint8Array([0x01, 0x80])]]), "intake: segment 1 of the delivery holds a row that does not decode: a String is not well-formed UTF-8");
|
|
171
|
+
refused(ArrayType(ArrayType(IntegerType)), blobOf(ArrayType(ArrayType(IntegerType)), [[new Uint8Array([0x01, 0x01])]]), "intake: segment 0 of the delivery holds a row that does not decode: a container alias reaches outside its segment");
|
|
172
|
+
});
|
|
173
|
+
test("refuses a segment larger than one is read in, before reading it", () => {
|
|
174
|
+
const Names = ArrayType(StringType);
|
|
175
|
+
const head = new Beast2ElementWriter(Names, { segment: () => { } }).header;
|
|
176
|
+
const blob = new Uint8Array([...head, ...bytesOf((w) => { w.writeVarint(1); w.writeVarint(RUN_MAX_BYTES + 1); w.writeVarint(1); w.writeUint8(0); })]);
|
|
177
|
+
refused(Names, blob, `intake: segment 0 of the delivery, at offset ${head.length}, holds ${RUN_MAX_BYTES + 1} bytes, more than the ${RUN_MAX_BYTES} a segment is read in — ` +
|
|
178
|
+
"write it again with a current Writer, whose segments stay under 8388608 bytes: it was encoded whole, or cut by an older Writer that bounded a segment by its element count alone");
|
|
179
|
+
});
|
|
180
|
+
test("refuses a delivery that is not a collection of the declared type", () => {
|
|
181
|
+
refused(Table, new Uint8Array([1, 2, 3]), "intake: the delivery is not a beast2 blob of version 4 or 5");
|
|
182
|
+
const other = encodeBeast2PagedFor(ArrayType(IntegerType))([1n, 2n]);
|
|
183
|
+
assert.throws(() => take(ArrayType(StringType), other), (err) => err instanceof Beast2IntakeError && /^intake: the delivery holds .*, not .*$/.test(err.message));
|
|
184
|
+
const paged = encodeBeast2PagedFor(Table)(table);
|
|
185
|
+
const cut = Math.floor(paged.length / 2);
|
|
186
|
+
const extents = readBeast2Extents(paged);
|
|
187
|
+
const torn = extents.offsets.findIndex((_, i) => (i + 1 < extents.offsets.length ? extents.offsets[i + 1] : extents.segmentsEnd) > cut);
|
|
188
|
+
refused(Table, paged.subarray(0, cut), `intake: segment ${torn} of the delivery is malformed: its frame runs past the end of the delivery`);
|
|
189
|
+
});
|
|
190
|
+
test("refuses a range it cannot take", () => {
|
|
191
|
+
const paged = encodeBeast2PagedFor(Table)(table);
|
|
192
|
+
const segments = readBeast2Extents(paged).offsets.length;
|
|
193
|
+
refused(Table, paged, `intake: segments [0, ${segments + 1}) are not a range of the delivery's ${segments}`, { segments: { from: 0, to: segments + 1 } });
|
|
194
|
+
refused(Table, encodeBeast2For(Table)(table), "intake: the delivery has no index, so it has no segments to take a range of", { segments: { from: 0, to: 1 } });
|
|
195
|
+
refused(Table, encodeBeast2For(Table, { version: 4 })(table), "intake: the delivery is a version 4 blob, which has no segments to take a range of", { segments: { from: 0, to: 1 } });
|
|
196
|
+
});
|
|
197
|
+
test("refuses a declared type no delivery is", () => {
|
|
198
|
+
assert.throws(() => intakeBeast2For(IntegerType), (err) => err instanceof Beast2IntakeError && err.message === "intake: a delivery is an Array, Set or Dict, not Integer");
|
|
199
|
+
assert.throws(() => intakeBeast2For(ArrayType(FunctionType([], IntegerType))), (err) => err instanceof Beast2IntakeError && err.message === "intake: the declared type holds a function, which a delivery does not carry");
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
//# sourceMappingURL=intake.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intake.spec.js","sourceRoot":"","sources":["../../../../../src/serialization/beast2/v5/intake.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAiB,MAAM,mBAAmB,CAAC;AAClI,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;A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E,EAAE,CAAC,CAAC;IACxL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAClD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,WAAoB,CAAC,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,GAAG,YAAY,iBAAiB,IAAI,GAAG,CAAC,OAAO,KAAK,0DAA0D,CAAC,CAAC;QAC7L,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,EAC3E,CAAC,GAAY,EAAE,EAAE,CAAC,GAAG,YAAY,iBAAiB,IAAI,GAAG,CAAC,OAAO,KAAK,6EAA6E,CAAC,CAAC;IACzJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export * from "./east.js";
|
|
6
6
|
export * from "./binary-utils.js";
|
|
7
7
|
export * from "./beast.js";
|
|
8
|
-
export { encodeBeast2For, decodeBeast2For, decodeBeast2ForAsync, decodeBeast2, compileFunctionIR, compileAsyncFunctionIR, encodeEastIR, decodeEastIR, decodeAsyncEastIR, Beast2Writer, Beast2ElementWriter, encodeBeast2SegmentsFor, encodeBeast2PagedFor, iterBeast2SegmentsFor, Beast2Pages, openBeast2PagesFor, beast2HasIndex, readBeast2Type, readBeast2HeaderType, readBeast2Extents, readBeast2SegmentLogicalBytes, carveBeast2, spliceBeast2, rebuildBeast2, openBeast2LazyFor, isBeast2LazySafe, readBeast2ExtentsRanged, readBeast2ExtentsSync, isBeast2SyncRangeReader, carveBeast2Ranged, spliceBeast2Tail, spliceBeast2Segments, RUN_MAX_COUNT, RUN_MAX_BYTES, Beast2RunSorter, mergeBeast2For, recutBeast2For, decodeBeast2ElementsFor, type Beast2RunSink, type Beast2RunSorterOptions, type Beast2MergeSource, type Beast2MergeOptions, type Beast2MergeStats, type Beast2Segment, type Beast2SegmentSink, type Beast2SegmentRef, type Beast2RecutPiece, type Beast2RecutSink, type Beast2RecutOptions, type Beast2RecutStats, BEAST2_WRITE_VERSION, BEAST2_READ_VERSIONS, SEGMENT_MIN_COUNT, SEGMENT_TARGET_COUNT, SEGMENT_MAX_COUNT, SEGMENT_MIN_BYTES, SEGMENT_TARGET_BYTES, SEGMENT_MAX_BYTES, SEGMENT_RULE_KEYED, SEGMENT_RULE_ARRAY, SegmentCutter, fnv1a64, segmentBoundaryHash, isSegmentBoundary, startsSegmentAfter, segmentRuleFor, segmentKeyTypeOf, encodeBeast2FenceFor, decodeBeast2FenceFor, COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEntryType, type CollectionManifest, type CollectionManifestEntry, type Beast2ManifestSource, isCollectionManifestType, isCollectionManifest, isBeast2ManifestSource, encodeCollectionManifest, decodeCollectionManifest, readBeast2Manifest, manifestElementCount, manifestByteSize, Beast2ManifestWriter, type Beast2ManifestSink, sha256Hex, configureFramePool, type FramePoolSettings, type Beast2EncodeOptions, type Beast2DecodeOptions, type Beast2WriterOptions, type Beast2ElementWriterOptions, type Beast2ElementOf, type Beast2PagedEncodeOptions, type Beast2Codec, type Beast2Version, type Beast2Extents, type RebuildBeast2Options, type Beast2LazySafeOptions, type Beast2RangeReader, type Beast2SyncRangeReader, type Beast2RangedExtents, type ReadBeast2ExtentsRangedOptions, } from "./beast2/index.js";
|
|
8
|
+
export { encodeBeast2For, decodeBeast2For, decodeBeast2ForAsync, decodeBeast2, compileFunctionIR, compileAsyncFunctionIR, encodeEastIR, decodeEastIR, decodeAsyncEastIR, Beast2Writer, Beast2ElementWriter, encodeBeast2SegmentsFor, encodeBeast2PagedFor, iterBeast2SegmentsFor, Beast2Pages, openBeast2PagesFor, beast2HasIndex, readBeast2Type, readBeast2HeaderType, readBeast2Extents, readBeast2SegmentLogicalBytes, carveBeast2, spliceBeast2, rebuildBeast2, openBeast2LazyFor, isBeast2LazySafe, readBeast2ExtentsRanged, readBeast2ExtentsSync, isBeast2SyncRangeReader, carveBeast2Ranged, spliceBeast2Tail, spliceBeast2Segments, RUN_MAX_COUNT, RUN_MAX_BYTES, Beast2RunSorter, mergeBeast2For, recutBeast2For, decodeBeast2ElementsFor, intakeBeast2For, Beast2IntakeError, type Beast2IntakeOptions, type Beast2IntakeStats, type Beast2RunSink, type Beast2RunSorterOptions, type Beast2MergeSource, type Beast2MergeOptions, type Beast2MergeStats, type Beast2Segment, type Beast2SegmentSink, type Beast2SegmentRef, type Beast2RecutPiece, type Beast2RecutSink, type Beast2RecutOptions, type Beast2RecutStats, BEAST2_WRITE_VERSION, BEAST2_READ_VERSIONS, SEGMENT_MIN_COUNT, SEGMENT_TARGET_COUNT, SEGMENT_MAX_COUNT, SEGMENT_MIN_BYTES, SEGMENT_TARGET_BYTES, SEGMENT_MAX_BYTES, SEGMENT_RULE_KEYED, SEGMENT_RULE_ARRAY, SegmentCutter, fnv1a64, segmentBoundaryHash, isSegmentBoundary, startsSegmentAfter, segmentRuleFor, segmentKeyTypeOf, encodeBeast2FenceFor, decodeBeast2FenceFor, COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEntryType, type CollectionManifest, type CollectionManifestEntry, type Beast2ManifestSource, isCollectionManifestType, isCollectionManifest, isBeast2ManifestSource, encodeCollectionManifest, decodeCollectionManifest, readBeast2Manifest, manifestElementCount, manifestByteSize, Beast2ManifestWriter, type Beast2ManifestSink, sha256Hex, configureFramePool, type FramePoolSettings, type Beast2EncodeOptions, type Beast2DecodeOptions, type Beast2WriterOptions, type Beast2ElementWriterOptions, type Beast2ElementOf, type Beast2PagedEncodeOptions, type Beast2Codec, type Beast2Version, type Beast2Extents, type RebuildBeast2Options, type Beast2LazySafeOptions, type Beast2RangeReader, type Beast2SyncRangeReader, type Beast2RangedExtents, type ReadBeast2ExtentsRangedOptions, } from "./beast2/index.js";
|
|
9
9
|
export * from "./json.js";
|
|
10
10
|
export * from "./json_schema.js";
|
|
11
11
|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AAK,aAAa,EACnE,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EACzE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,KAAK,8BAA8B,GAClH,MAAM,mBAAmB,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export * from "./east.js";
|
|
6
6
|
export * from "./binary-utils.js";
|
|
7
7
|
export * from "./beast.js";
|
|
8
|
-
export { encodeBeast2For, decodeBeast2For, decodeBeast2ForAsync, decodeBeast2, compileFunctionIR, compileAsyncFunctionIR, encodeEastIR, decodeEastIR, decodeAsyncEastIR, Beast2Writer, Beast2ElementWriter, encodeBeast2SegmentsFor, encodeBeast2PagedFor, iterBeast2SegmentsFor, Beast2Pages, openBeast2PagesFor, beast2HasIndex, readBeast2Type, readBeast2HeaderType, readBeast2Extents, readBeast2SegmentLogicalBytes, carveBeast2, spliceBeast2, rebuildBeast2, openBeast2LazyFor, isBeast2LazySafe, readBeast2ExtentsRanged, readBeast2ExtentsSync, isBeast2SyncRangeReader, carveBeast2Ranged, spliceBeast2Tail, spliceBeast2Segments, RUN_MAX_COUNT, RUN_MAX_BYTES, Beast2RunSorter, mergeBeast2For, recutBeast2For, decodeBeast2ElementsFor, BEAST2_WRITE_VERSION, BEAST2_READ_VERSIONS, SEGMENT_MIN_COUNT, SEGMENT_TARGET_COUNT, SEGMENT_MAX_COUNT, SEGMENT_MIN_BYTES, SEGMENT_TARGET_BYTES, SEGMENT_MAX_BYTES, SEGMENT_RULE_KEYED, SEGMENT_RULE_ARRAY, SegmentCutter, fnv1a64, segmentBoundaryHash, isSegmentBoundary, startsSegmentAfter, segmentRuleFor, segmentKeyTypeOf, encodeBeast2FenceFor, decodeBeast2FenceFor, COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEntryType, isCollectionManifestType, isCollectionManifest, isBeast2ManifestSource, encodeCollectionManifest, decodeCollectionManifest, readBeast2Manifest, manifestElementCount, manifestByteSize, Beast2ManifestWriter, sha256Hex, configureFramePool, } from "./beast2/index.js";
|
|
8
|
+
export { encodeBeast2For, decodeBeast2For, decodeBeast2ForAsync, decodeBeast2, compileFunctionIR, compileAsyncFunctionIR, encodeEastIR, decodeEastIR, decodeAsyncEastIR, Beast2Writer, Beast2ElementWriter, encodeBeast2SegmentsFor, encodeBeast2PagedFor, iterBeast2SegmentsFor, Beast2Pages, openBeast2PagesFor, beast2HasIndex, readBeast2Type, readBeast2HeaderType, readBeast2Extents, readBeast2SegmentLogicalBytes, carveBeast2, spliceBeast2, rebuildBeast2, openBeast2LazyFor, isBeast2LazySafe, readBeast2ExtentsRanged, readBeast2ExtentsSync, isBeast2SyncRangeReader, carveBeast2Ranged, spliceBeast2Tail, spliceBeast2Segments, RUN_MAX_COUNT, RUN_MAX_BYTES, Beast2RunSorter, mergeBeast2For, recutBeast2For, decodeBeast2ElementsFor, intakeBeast2For, Beast2IntakeError, BEAST2_WRITE_VERSION, BEAST2_READ_VERSIONS, SEGMENT_MIN_COUNT, SEGMENT_TARGET_COUNT, SEGMENT_MAX_COUNT, SEGMENT_MIN_BYTES, SEGMENT_TARGET_BYTES, SEGMENT_MAX_BYTES, SEGMENT_RULE_KEYED, SEGMENT_RULE_ARRAY, SegmentCutter, fnv1a64, segmentBoundaryHash, isSegmentBoundary, startsSegmentAfter, segmentRuleFor, segmentKeyTypeOf, encodeBeast2FenceFor, decodeBeast2FenceFor, COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEntryType, isCollectionManifestType, isCollectionManifest, isBeast2ManifestSource, encodeCollectionManifest, decodeCollectionManifest, readBeast2Manifest, manifestElementCount, manifestByteSize, Beast2ManifestWriter, sha256Hex, configureFramePool, } from "./beast2/index.js";
|
|
9
9
|
export * from "./json.js";
|
|
10
10
|
export * from "./json_schema.js";
|
|
11
11
|
export * from "./json_schema_to_type.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/serialization/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,eAAe,EAAE,eAAe,EAAE,oBAAoB,EAAE,YAAY,EACpE,iBAAiB,EAAE,sBAAsB,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EACxF,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAC9L,iBAAiB,EAAE,6BAA6B,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAC/H,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,oBAAoB,EAClI,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/serialization/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,eAAe,EAAE,eAAe,EAAE,oBAAoB,EAAE,YAAY,EACpE,iBAAiB,EAAE,sBAAsB,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EACxF,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAC9L,iBAAiB,EAAE,6BAA6B,EAAE,WAAW,EAAE,YAA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