@dreamlake/dreamdb 0.5.2 → 0.5.4
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 +7 -0
- package/browser/dreamdb.d.ts +101 -3
- package/browser/dreamdb.js +1 -1
- package/browser/dreamdb_bg.js +337 -5
- package/browser/dreamdb_bg.wasm +0 -0
- package/browser/dreamdb_bg.wasm.d.ts +22 -0
- package/index.d.ts +121 -7
- package/node/dreamdb.cjs +360 -7
- package/node/dreamdb.d.cts +121 -7
- package/node/dreamdb_bg.wasm +0 -0
- package/node/dreamdb_bg.wasm.d.ts +27 -1
- package/node.mjs +5 -4
- package/package.json +1 -1
- package/web/dreamdb.d.ts +123 -3
- package/web/dreamdb.js +337 -5
- package/web/dreamdb_bg.wasm +0 -0
- package/web/dreamdb_bg.wasm.d.ts +22 -0
package/browser/dreamdb_bg.js
CHANGED
|
@@ -1,3 +1,64 @@
|
|
|
1
|
+
export class GeometryReader {
|
|
2
|
+
static __wrap(ptr) {
|
|
3
|
+
const obj = Object.create(GeometryReader.prototype);
|
|
4
|
+
obj.__wbg_ptr = ptr;
|
|
5
|
+
GeometryReaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
6
|
+
return obj;
|
|
7
|
+
}
|
|
8
|
+
__destroy_into_raw() {
|
|
9
|
+
const ptr = this.__wbg_ptr;
|
|
10
|
+
this.__wbg_ptr = 0;
|
|
11
|
+
GeometryReaderFinalization.unregister(this);
|
|
12
|
+
return ptr;
|
|
13
|
+
}
|
|
14
|
+
free() {
|
|
15
|
+
const ptr = this.__destroy_into_raw();
|
|
16
|
+
wasm.__wbg_geometryreader_free(ptr, 0);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns only the new suffix at this total logical byte budget.
|
|
20
|
+
* @param {any} key
|
|
21
|
+
* @param {any} budget
|
|
22
|
+
* @returns {Promise<Uint8Array>}
|
|
23
|
+
*/
|
|
24
|
+
extendCellPrefix(key, budget) {
|
|
25
|
+
const ret = wasm.geometryreader_extendCellPrefix(this.__wbg_ptr, key, budget);
|
|
26
|
+
return ret;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Declaration plus cells/LODs; no payload transfer. u64 values are BigInt.
|
|
30
|
+
* @returns {any}
|
|
31
|
+
*/
|
|
32
|
+
metadata() {
|
|
33
|
+
const ret = wasm.geometryreader_metadata(this.__wbg_ptr);
|
|
34
|
+
if (ret[2]) {
|
|
35
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
36
|
+
}
|
|
37
|
+
return takeFromExternrefTable0(ret[0]);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @param {any} level
|
|
41
|
+
* @returns {Promise<Uint8Array>}
|
|
42
|
+
*/
|
|
43
|
+
readMeshLod(level) {
|
|
44
|
+
const ret = wasm.geometryreader_readMeshLod(this.__wbg_ptr, level);
|
|
45
|
+
return ret;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @param {any} min
|
|
49
|
+
* @param {any} max
|
|
50
|
+
* @returns {Array<any>}
|
|
51
|
+
*/
|
|
52
|
+
selectCells(min, max) {
|
|
53
|
+
const ret = wasm.geometryreader_selectCells(this.__wbg_ptr, min, max);
|
|
54
|
+
if (ret[2]) {
|
|
55
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
56
|
+
}
|
|
57
|
+
return takeFromExternrefTable0(ret[0]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (Symbol.dispose) GeometryReader.prototype[Symbol.dispose] = GeometryReader.prototype.free;
|
|
61
|
+
|
|
1
62
|
/**
|
|
2
63
|
* A `fetch`-backed backend rooted at a base URL.
|
|
3
64
|
*/
|
|
@@ -86,6 +147,29 @@ export class Space {
|
|
|
86
147
|
const ptr = this.__destroy_into_raw();
|
|
87
148
|
wasm.__wbg_space_free(ptr, 0);
|
|
88
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Validate all referenced Items, including tombstoned payloads.
|
|
152
|
+
* @param {string} field
|
|
153
|
+
* @returns {Promise<bigint>}
|
|
154
|
+
*/
|
|
155
|
+
auditArrayField(field) {
|
|
156
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
157
|
+
const len0 = WASM_VECTOR_LEN;
|
|
158
|
+
const ret = wasm.space_auditArrayField(this.__wbg_ptr, ptr0, len0);
|
|
159
|
+
return ret;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Validate all graph pages and, when declared, exact-source correspondence.
|
|
163
|
+
* The returned count is exactly representable (GraphIndex node_count is u32).
|
|
164
|
+
* @param {string} field
|
|
165
|
+
* @returns {Promise<number>}
|
|
166
|
+
*/
|
|
167
|
+
auditGraphIndex(field) {
|
|
168
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
169
|
+
const len0 = WASM_VECTOR_LEN;
|
|
170
|
+
const ret = wasm.space_auditGraphIndex(this.__wbg_ptr, ptr0, len0);
|
|
171
|
+
return ret;
|
|
172
|
+
}
|
|
89
173
|
/**
|
|
90
174
|
* The base URL objects are fetched relative to (consumers build their own
|
|
91
175
|
* object URLs from this — e.g. `dreamdb-demo`'s track readers).
|
|
@@ -149,6 +233,17 @@ export class Space {
|
|
|
149
233
|
const ret = wasm.space_fromUri(ptr0, len0, backend);
|
|
150
234
|
return ret;
|
|
151
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Read at this pinned Manifest. Returns null for never-created keys;
|
|
238
|
+
* deleted keys retain metadata with sample=null. Integer keys and anchors
|
|
239
|
+
* are BigInt; sample values use the Writer's tagged field shapes.
|
|
240
|
+
* @param {any} key
|
|
241
|
+
* @returns {Promise<any>}
|
|
242
|
+
*/
|
|
243
|
+
getEntity(key) {
|
|
244
|
+
const ret = wasm.space_getEntity(this.__wbg_ptr, key);
|
|
245
|
+
return ret;
|
|
246
|
+
}
|
|
152
247
|
/**
|
|
153
248
|
* Walk the manifest DAG from HEAD, up to `max_depth` entries. Each entry:
|
|
154
249
|
* `{ manifestHash, ts, writer, tracks: [{modality, address}] }`.
|
|
@@ -175,6 +270,18 @@ export class Space {
|
|
|
175
270
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
176
271
|
}
|
|
177
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Open one pinned geometry Item. Missing/deleted anchors return undefined.
|
|
275
|
+
* @param {string} field
|
|
276
|
+
* @param {any} anchor
|
|
277
|
+
* @returns {Promise<GeometryReader | undefined>}
|
|
278
|
+
*/
|
|
279
|
+
openGeometryItem(field, anchor) {
|
|
280
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len0 = WASM_VECTOR_LEN;
|
|
282
|
+
const ret = wasm.space_openGeometryItem(this.__wbg_ptr, ptr0, len0, anchor);
|
|
283
|
+
return ret;
|
|
284
|
+
}
|
|
178
285
|
/**
|
|
179
286
|
* Hybrid search fusing a lexical (BM25) sub-query and a dense (vector)
|
|
180
287
|
* sub-query per spec/0015 §5/§6. Returns the fused `[{ anchor, score }]`
|
|
@@ -197,8 +304,8 @@ export class Space {
|
|
|
197
304
|
* ```
|
|
198
305
|
*
|
|
199
306
|
* Delegates to the real (tested) `dreamdb-dataset::Dataset::query_hybrid`.
|
|
200
|
-
*
|
|
201
|
-
* scalar
|
|
307
|
+
* Optional `scalarField` / `scalarOp` / `scalarValue` properties select
|
|
308
|
+
* the same scalar pre/post-filter planner used by the native API.
|
|
202
309
|
* @param {Float32Array} vector
|
|
203
310
|
* @param {any} opts
|
|
204
311
|
* @returns {Promise<Array<any>>}
|
|
@@ -209,6 +316,21 @@ export class Space {
|
|
|
209
316
|
const ret = wasm.space_queryHybrid(this.__wbg_ptr, ptr0, len0, opts);
|
|
210
317
|
return ret;
|
|
211
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Hybrid query with an observable `{hits, trace}` result. `opts` accepts
|
|
321
|
+
* `maxLatencyMs`, `costModel`, and the optional scalar triple
|
|
322
|
+
* `scalarField`/`scalarOp`/`scalarValue` in addition to `queryHybrid`'s
|
|
323
|
+
* existing properties.
|
|
324
|
+
* @param {Float32Array} vector
|
|
325
|
+
* @param {any} opts
|
|
326
|
+
* @returns {Promise<any>}
|
|
327
|
+
*/
|
|
328
|
+
queryHybridPlanned(vector, opts) {
|
|
329
|
+
const ptr0 = passArrayF32ToWasm0(vector, wasm.__wbindgen_malloc);
|
|
330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
331
|
+
const ret = wasm.space_queryHybridPlanned(this.__wbg_ptr, ptr0, len0, opts);
|
|
332
|
+
return ret;
|
|
333
|
+
}
|
|
212
334
|
/**
|
|
213
335
|
* Scalar-index lookup: every anchor whose `field` satisfies `op value`
|
|
214
336
|
* (spec/0011). Returns a `BigUint64Array`-style `Array` of anchors,
|
|
@@ -264,7 +386,11 @@ export class Space {
|
|
|
264
386
|
}
|
|
265
387
|
/**
|
|
266
388
|
* Top-K cosine vector search over an embedding `field`. `opts` may be a
|
|
267
|
-
* number (topK) or `{ topK?, probeCount
|
|
389
|
+
* number (topK) or `{ topK?, probeCount?, specId?, rerankPoolSize?, rerankMode? }`.
|
|
390
|
+
* The optional pool must be a positive integer at least topK; it changes
|
|
391
|
+
* neither probe coverage nor Schema exactness. rerankMode explicitly selects
|
|
392
|
+
* inherit (default), approximate or exact. Graphs reject explicit overrides.
|
|
393
|
+
* Returns `[{ anchor, score }]`
|
|
268
394
|
* sorted by score descending — the shape dreamdb-ts's `queryVector` yields.
|
|
269
395
|
*
|
|
270
396
|
* Delegates to the real (tested) `dreamdb-dataset` query path: ADC cull +
|
|
@@ -306,6 +432,19 @@ export class Space {
|
|
|
306
432
|
const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
|
|
307
433
|
return ret;
|
|
308
434
|
}
|
|
435
|
+
/**
|
|
436
|
+
* Point read; full-u64 BigInt anchors are supported. Returned components
|
|
437
|
+
* are owned typed arrays (one Item's bytes), never unaligned aliases.
|
|
438
|
+
* @param {string} field
|
|
439
|
+
* @param {any} anchor
|
|
440
|
+
* @returns {Promise<any>}
|
|
441
|
+
*/
|
|
442
|
+
readArrayItem(field, anchor) {
|
|
443
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
|
+
const len0 = WASM_VECTOR_LEN;
|
|
445
|
+
const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
|
|
446
|
+
return ret;
|
|
447
|
+
}
|
|
309
448
|
/**
|
|
310
449
|
* Read a scalar track as a `Map<anchorString, value>`. Single-anchor
|
|
311
450
|
* entries resolve from the track index; multi-anchor entries fetch (and
|
|
@@ -475,6 +614,17 @@ export class Writer {
|
|
|
475
614
|
const ptr = this.__destroy_into_raw();
|
|
476
615
|
wasm.__wbg_writer_free(ptr, 0);
|
|
477
616
|
}
|
|
617
|
+
/**
|
|
618
|
+
* Atomically hot-append a complete Sample batch. Embeddings retain v1;
|
|
619
|
+
* scalar/text values use v2. Identified embeddings require embeddingSpecs.
|
|
620
|
+
* @param {Array<any>} samples
|
|
621
|
+
* @param {object | null} [embedding_specs]
|
|
622
|
+
* @returns {Promise<number>}
|
|
623
|
+
*/
|
|
624
|
+
appendHot(samples, embedding_specs) {
|
|
625
|
+
const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
626
|
+
return ret;
|
|
627
|
+
}
|
|
478
628
|
/**
|
|
479
629
|
* Append records and commit in one call.
|
|
480
630
|
*
|
|
@@ -493,6 +643,17 @@ export class Writer {
|
|
|
493
643
|
const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
|
|
494
644
|
return ret;
|
|
495
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* Append records with a field-to-`spec_id` map for identified embeddings.
|
|
648
|
+
* Values are full canonical base32 multihashes.
|
|
649
|
+
* @param {Array<any>} samples
|
|
650
|
+
* @param {object} embedding_specs
|
|
651
|
+
* @returns {Promise<number>}
|
|
652
|
+
*/
|
|
653
|
+
appendManyWithSpecs(samples, embedding_specs) {
|
|
654
|
+
const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
|
|
655
|
+
return ret;
|
|
656
|
+
}
|
|
496
657
|
/**
|
|
497
658
|
* Flush staged entries and publish a new manifest.
|
|
498
659
|
*
|
|
@@ -506,6 +667,38 @@ export class Writer {
|
|
|
506
667
|
const ret = wasm.writer_commit(this.__wbg_ptr);
|
|
507
668
|
return ret;
|
|
508
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* Producer policy only: TTL is evaluated on append, not by a timer.
|
|
672
|
+
* @param {number} flush_threshold
|
|
673
|
+
* @param {number} ttl_seconds
|
|
674
|
+
*/
|
|
675
|
+
configureHotShard(flush_threshold, ttl_seconds) {
|
|
676
|
+
const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
|
|
677
|
+
if (ret[1]) {
|
|
678
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
|
|
683
|
+
* @param {any} key
|
|
684
|
+
* @param {object} sample
|
|
685
|
+
* @param {object | null} [embedding_specs]
|
|
686
|
+
* @returns {Promise<object>}
|
|
687
|
+
*/
|
|
688
|
+
createEntity(key, sample, embedding_specs) {
|
|
689
|
+
const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
690
|
+
return ret;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Delete exactly a live revision, retaining its key and stable identity.
|
|
694
|
+
* @param {any} key
|
|
695
|
+
* @param {Uint8Array} expected
|
|
696
|
+
* @returns {Promise<object>}
|
|
697
|
+
*/
|
|
698
|
+
deleteEntity(key, expected) {
|
|
699
|
+
const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
|
|
700
|
+
return ret;
|
|
701
|
+
}
|
|
509
702
|
/**
|
|
510
703
|
* Tombstone records by anchor. Returns the new manifest hash.
|
|
511
704
|
* @param {BigUint64Array} anchors
|
|
@@ -520,6 +713,25 @@ export class Writer {
|
|
|
520
713
|
const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
521
714
|
return ret;
|
|
522
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* Enable one exact typed entity namespace: string, bytes or int.
|
|
718
|
+
* @param {string} key_kind
|
|
719
|
+
* @returns {Promise<void>}
|
|
720
|
+
*/
|
|
721
|
+
enableEntityKeys(key_kind) {
|
|
722
|
+
const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
723
|
+
const len0 = WASM_VECTOR_LEN;
|
|
724
|
+
const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
|
|
725
|
+
return ret;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Explicitly fold every pending hot field into cold Tracks in one publish.
|
|
729
|
+
* @returns {Promise<void>}
|
|
730
|
+
*/
|
|
731
|
+
flushHot() {
|
|
732
|
+
const ret = wasm.writer_flushHot(this.__wbg_ptr);
|
|
733
|
+
return ret;
|
|
734
|
+
}
|
|
523
735
|
/**
|
|
524
736
|
* Current manifest hash, base32.
|
|
525
737
|
* @returns {string}
|
|
@@ -564,6 +776,36 @@ export class Writer {
|
|
|
564
776
|
const ret = wasm.writer_open(ptr0, len0, backend);
|
|
565
777
|
return ret;
|
|
566
778
|
}
|
|
779
|
+
/**
|
|
780
|
+
* Publish prequantized fixed-stride records. Coordinates is
|
|
781
|
+
* {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
|
|
782
|
+
* @param {string} field
|
|
783
|
+
* @param {any} anchor
|
|
784
|
+
* @param {any} coordinates
|
|
785
|
+
* @param {any} depth
|
|
786
|
+
* @param {Uint8Array} records
|
|
787
|
+
* @returns {Promise<string>}
|
|
788
|
+
*/
|
|
789
|
+
publishGeometryCells(field, anchor, coordinates, depth, records) {
|
|
790
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
|
+
const len0 = WASM_VECTOR_LEN;
|
|
792
|
+
const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
|
|
793
|
+
return ret;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
|
|
797
|
+
* @param {string} field
|
|
798
|
+
* @param {any} anchor
|
|
799
|
+
* @param {any} coordinates
|
|
800
|
+
* @param {Array<any>} levels
|
|
801
|
+
* @returns {Promise<string>}
|
|
802
|
+
*/
|
|
803
|
+
publishGeometryMesh(field, anchor, coordinates, levels) {
|
|
804
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
805
|
+
const len0 = WASM_VECTOR_LEN;
|
|
806
|
+
const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
|
|
807
|
+
return ret;
|
|
808
|
+
}
|
|
567
809
|
/**
|
|
568
810
|
* The ref this writer advances.
|
|
569
811
|
* @returns {string}
|
|
@@ -591,6 +833,30 @@ export class Writer {
|
|
|
591
833
|
const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
|
|
592
834
|
return ret;
|
|
593
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* Replace only a live revision, atomically hiding its old physical row.
|
|
838
|
+
* @param {any} key
|
|
839
|
+
* @param {object} sample
|
|
840
|
+
* @param {Uint8Array} expected
|
|
841
|
+
* @param {object | null} [embedding_specs]
|
|
842
|
+
* @returns {Promise<object>}
|
|
843
|
+
*/
|
|
844
|
+
supersedeEntity(key, sample, expected, embedding_specs) {
|
|
845
|
+
const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
846
|
+
return ret;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Create with no expected token, or replace/restore exactly that revision.
|
|
850
|
+
* @param {any} key
|
|
851
|
+
* @param {object} sample
|
|
852
|
+
* @param {Uint8Array | null} [expected]
|
|
853
|
+
* @param {object | null} [embedding_specs]
|
|
854
|
+
* @returns {Promise<object>}
|
|
855
|
+
*/
|
|
856
|
+
upsertEntity(key, sample, expected, embedding_specs) {
|
|
857
|
+
const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
858
|
+
return ret;
|
|
859
|
+
}
|
|
594
860
|
}
|
|
595
861
|
if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
|
|
596
862
|
|
|
@@ -1001,6 +1267,10 @@ export function __wbg___wbindgen_is_object_b4593df85baada48(arg0) {
|
|
|
1001
1267
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1002
1268
|
return ret;
|
|
1003
1269
|
}
|
|
1270
|
+
export function __wbg___wbindgen_is_string_dde0fd9020db4434(arg0) {
|
|
1271
|
+
const ret = typeof(arg0) === 'string';
|
|
1272
|
+
return ret;
|
|
1273
|
+
}
|
|
1004
1274
|
export function __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5(arg0) {
|
|
1005
1275
|
const ret = arg0 === undefined;
|
|
1006
1276
|
return ret;
|
|
@@ -1057,6 +1327,10 @@ export function __wbg_call_faa0a261f288f846() { return handleError(function (arg
|
|
|
1057
1327
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1058
1328
|
return ret;
|
|
1059
1329
|
}, arguments); }
|
|
1330
|
+
export function __wbg_crypto_38df2bab126b63dc(arg0) {
|
|
1331
|
+
const ret = arg0.crypto;
|
|
1332
|
+
return ret;
|
|
1333
|
+
}
|
|
1060
1334
|
export function __wbg_done_54b8da57023b7ed2(arg0) {
|
|
1061
1335
|
const ret = arg0.done;
|
|
1062
1336
|
return ret;
|
|
@@ -1068,6 +1342,17 @@ export function __wbg_entries_564a7e8b1e54ede5(arg0) {
|
|
|
1068
1342
|
export function __wbg_error_f085d7e62279b703(arg0) {
|
|
1069
1343
|
console.error(arg0);
|
|
1070
1344
|
}
|
|
1345
|
+
export function __wbg_from_fa561fa561dc8031(arg0) {
|
|
1346
|
+
const ret = Array.from(arg0);
|
|
1347
|
+
return ret;
|
|
1348
|
+
}
|
|
1349
|
+
export function __wbg_geometryreader_new(arg0) {
|
|
1350
|
+
const ret = GeometryReader.__wrap(arg0);
|
|
1351
|
+
return ret;
|
|
1352
|
+
}
|
|
1353
|
+
export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
|
|
1354
|
+
arg0.getRandomValues(arg1);
|
|
1355
|
+
}, arguments); }
|
|
1071
1356
|
export function __wbg_getReader_c8a7370df46b86f6(arg0) {
|
|
1072
1357
|
const ret = arg0.getReader();
|
|
1073
1358
|
return ret;
|
|
@@ -1195,6 +1480,10 @@ export function __wbg_iterator_1441b47f341dc34f() {
|
|
|
1195
1480
|
const ret = Symbol.iterator;
|
|
1196
1481
|
return ret;
|
|
1197
1482
|
}
|
|
1483
|
+
export function __wbg_keys_682010b680c9b1f8(arg0) {
|
|
1484
|
+
const ret = Object.keys(arg0);
|
|
1485
|
+
return ret;
|
|
1486
|
+
}
|
|
1198
1487
|
export function __wbg_length_0adf2f3c5da33087(arg0) {
|
|
1199
1488
|
const ret = arg0.length;
|
|
1200
1489
|
return ret;
|
|
@@ -1239,6 +1528,10 @@ export function __wbg_length_efe2271ed86b56cc(arg0) {
|
|
|
1239
1528
|
const ret = arg0.length;
|
|
1240
1529
|
return ret;
|
|
1241
1530
|
}
|
|
1531
|
+
export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
|
|
1532
|
+
const ret = arg0.msCrypto;
|
|
1533
|
+
return ret;
|
|
1534
|
+
}
|
|
1242
1535
|
export function __wbg_new_02d162bc6cf02f60() {
|
|
1243
1536
|
const ret = new Object();
|
|
1244
1537
|
return ret;
|
|
@@ -1259,6 +1552,10 @@ export function __wbg_new_from_slice_269e35316ed2d061(arg0, arg1) {
|
|
|
1259
1552
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1260
1553
|
return ret;
|
|
1261
1554
|
}
|
|
1555
|
+
export function __wbg_new_from_slice_7a419f18ea6472bf(arg0, arg1) {
|
|
1556
|
+
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
1557
|
+
return ret;
|
|
1558
|
+
}
|
|
1262
1559
|
export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
|
|
1263
1560
|
try {
|
|
1264
1561
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1305,6 +1602,10 @@ export function __wbg_new_with_length_96785292f4aab914(arg0) {
|
|
|
1305
1602
|
const ret = new Int8Array(arg0 >>> 0);
|
|
1306
1603
|
return ret;
|
|
1307
1604
|
}
|
|
1605
|
+
export function __wbg_new_with_length_99887c91eae4abab(arg0) {
|
|
1606
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1607
|
+
return ret;
|
|
1608
|
+
}
|
|
1308
1609
|
export function __wbg_new_with_length_bab0ddb25b1a2cc7(arg0) {
|
|
1309
1610
|
const ret = new Int16Array(arg0 >>> 0);
|
|
1310
1611
|
return ret;
|
|
@@ -1325,6 +1626,10 @@ export function __wbg_next_6429a146bf756f93() { return handleError(function (arg
|
|
|
1325
1626
|
const ret = arg0.next();
|
|
1326
1627
|
return ret;
|
|
1327
1628
|
}, arguments); }
|
|
1629
|
+
export function __wbg_node_84ea875411254db1(arg0) {
|
|
1630
|
+
const ret = arg0.node;
|
|
1631
|
+
return ret;
|
|
1632
|
+
}
|
|
1328
1633
|
export function __wbg_now_81363d44c96dd239() {
|
|
1329
1634
|
const ret = Date.now();
|
|
1330
1635
|
return ret;
|
|
@@ -1333,6 +1638,10 @@ export function __wbg_ok_556a55299dd238ba(arg0) {
|
|
|
1333
1638
|
const ret = arg0.ok;
|
|
1334
1639
|
return ret;
|
|
1335
1640
|
}
|
|
1641
|
+
export function __wbg_process_44c7a14e11e9f69e(arg0) {
|
|
1642
|
+
const ret = arg0.process;
|
|
1643
|
+
return ret;
|
|
1644
|
+
}
|
|
1336
1645
|
export function __wbg_prototypesetcall_5f9bdc8d75e07276(arg0, arg1, arg2) {
|
|
1337
1646
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1338
1647
|
}
|
|
@@ -1350,6 +1659,13 @@ export function __wbg_queueMicrotask_78d584b53af520f5(arg0) {
|
|
|
1350
1659
|
export function __wbg_queueMicrotask_b39ea83c7f01971a(arg0) {
|
|
1351
1660
|
queueMicrotask(arg0);
|
|
1352
1661
|
}
|
|
1662
|
+
export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
|
|
1663
|
+
arg0.randomFillSync(arg1);
|
|
1664
|
+
}, arguments); }
|
|
1665
|
+
export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
|
|
1666
|
+
const ret = module.require;
|
|
1667
|
+
return ret;
|
|
1668
|
+
}, arguments); }
|
|
1353
1669
|
export function __wbg_resolve_d17db9352f5a220e(arg0) {
|
|
1354
1670
|
const ret = Promise.resolve(arg0);
|
|
1355
1671
|
return ret;
|
|
@@ -1416,6 +1732,10 @@ export function __wbg_status_0853c9f5752c7ee2(arg0) {
|
|
|
1416
1732
|
const ret = arg0.status;
|
|
1417
1733
|
return ret;
|
|
1418
1734
|
}
|
|
1735
|
+
export function __wbg_subarray_7c6a0da8f3b4a1ba(arg0, arg1, arg2) {
|
|
1736
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1737
|
+
return ret;
|
|
1738
|
+
}
|
|
1419
1739
|
export function __wbg_then_837494e384b37459(arg0, arg1) {
|
|
1420
1740
|
const ret = arg0.then(arg1);
|
|
1421
1741
|
return ret;
|
|
@@ -1428,12 +1748,16 @@ export function __wbg_value_9cc0518af87a489c(arg0) {
|
|
|
1428
1748
|
const ret = arg0.value;
|
|
1429
1749
|
return ret;
|
|
1430
1750
|
}
|
|
1751
|
+
export function __wbg_versions_276b2795b1c6a219(arg0) {
|
|
1752
|
+
const ret = arg0.versions;
|
|
1753
|
+
return ret;
|
|
1754
|
+
}
|
|
1431
1755
|
export function __wbg_writer_new(arg0) {
|
|
1432
1756
|
const ret = Writer.__wrap(arg0);
|
|
1433
1757
|
return ret;
|
|
1434
1758
|
}
|
|
1435
1759
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1436
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1760
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 819, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1437
1761
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
|
|
1438
1762
|
return ret;
|
|
1439
1763
|
}
|
|
@@ -1453,11 +1777,16 @@ export function __wbindgen_cast_0000000000000004(arg0) {
|
|
|
1453
1777
|
return ret;
|
|
1454
1778
|
}
|
|
1455
1779
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1780
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1781
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1782
|
+
return ret;
|
|
1783
|
+
}
|
|
1784
|
+
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
1456
1785
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1457
1786
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1458
1787
|
return ret;
|
|
1459
1788
|
}
|
|
1460
|
-
export function
|
|
1789
|
+
export function __wbindgen_cast_0000000000000007(arg0) {
|
|
1461
1790
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1462
1791
|
const ret = BigInt.asUintN(64, arg0);
|
|
1463
1792
|
return ret;
|
|
@@ -1482,6 +1811,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
|
|
|
1482
1811
|
wasm.wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1483
1812
|
}
|
|
1484
1813
|
|
|
1814
|
+
const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1815
|
+
? { register: () => {}, unregister: () => {} }
|
|
1816
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
|
|
1485
1817
|
const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1486
1818
|
? { register: () => {}, unregister: () => {} }
|
|
1487
1819
|
: new FinalizationRegistry(ptr => wasm.__wbg_s3backend_free(ptr, 1));
|
package/browser/dreamdb_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_geometryreader_free: (a: number, b: number) => void;
|
|
4
5
|
export const __wbg_s3backend_free: (a: number, b: number) => void;
|
|
5
6
|
export const __wbg_space_free: (a: number, b: number) => void;
|
|
6
7
|
export const __wbg_writer_free: (a: number, b: number) => void;
|
|
@@ -9,6 +10,10 @@ export const addressVariant: (a: number, b: number) => [number, number, number,
|
|
|
9
10
|
export const bytesToBase32: (a: number, b: number) => [number, number];
|
|
10
11
|
export const decodeCbor: (a: number, b: number) => [number, number, number];
|
|
11
12
|
export const encodeCbor: (a: any) => [number, number, number, number];
|
|
13
|
+
export const geometryreader_extendCellPrefix: (a: number, b: any, c: any) => any;
|
|
14
|
+
export const geometryreader_metadata: (a: number) => [number, number, number];
|
|
15
|
+
export const geometryreader_readMeshLod: (a: number, b: any) => any;
|
|
16
|
+
export const geometryreader_selectCells: (a: number, b: any, c: any) => [number, number, number];
|
|
12
17
|
export const modalityParse: (a: number, b: number) => [number, number, number];
|
|
13
18
|
export const multihashBase32: (a: number, b: number) => [number, number];
|
|
14
19
|
export const multihashHex: (a: number, b: number) => [number, number];
|
|
@@ -17,17 +22,23 @@ export const s3backend_get: (a: number, b: number, c: number, d: any) => any;
|
|
|
17
22
|
export const s3backend_getStream: (a: number, b: number, c: number) => any;
|
|
18
23
|
export const s3backend_list: (a: number, b: number, c: number) => any;
|
|
19
24
|
export const s3backend_new: (a: number, b: number) => number;
|
|
25
|
+
export const space_auditArrayField: (a: number, b: number, c: number) => any;
|
|
26
|
+
export const space_auditGraphIndex: (a: number, b: number, c: number) => any;
|
|
20
27
|
export const space_connectorBase: (a: number) => [number, number];
|
|
21
28
|
export const space_description: (a: number) => any;
|
|
22
29
|
export const space_fromUri: (a: number, b: number, c: any) => any;
|
|
30
|
+
export const space_getEntity: (a: number, b: any) => any;
|
|
23
31
|
export const space_history: (a: number, b: number) => any;
|
|
24
32
|
export const space_manifestHash: (a: number) => [number, number];
|
|
33
|
+
export const space_openGeometryItem: (a: number, b: number, c: number, d: any) => any;
|
|
25
34
|
export const space_queryHybrid: (a: number, b: number, c: number, d: any) => any;
|
|
35
|
+
export const space_queryHybridPlanned: (a: number, b: number, c: number, d: any) => any;
|
|
26
36
|
export const space_queryScalar: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
27
37
|
export const space_queryText: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
28
38
|
export const space_queryVector: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
29
39
|
export const space_readArrayColumn: (a: number, b: number, c: number) => any;
|
|
30
40
|
export const space_readArrayConstant: (a: number, b: number, c: number) => any;
|
|
41
|
+
export const space_readArrayItem: (a: number, b: number, c: number, d: any) => any;
|
|
31
42
|
export const space_readScalarColumn: (a: number, b: any, c: any) => any;
|
|
32
43
|
export const space_readVideoItemRange: (a: number, b: number, c: number, d: any, e: any, f: any) => any;
|
|
33
44
|
export const space_resolveObjectIndex: (a: number, b: any) => any;
|
|
@@ -45,13 +56,24 @@ export const timeAnchorHex: (a: bigint) => [number, number];
|
|
|
45
56
|
export const timeBucket: (a: bigint, b: number, c: number) => [bigint, number, number];
|
|
46
57
|
export const typedArrayDecode: (a: any, b: number, c: number) => [number, number, number];
|
|
47
58
|
export const version: () => [number, number];
|
|
59
|
+
export const writer_appendHot: (a: number, b: any, c: number) => any;
|
|
48
60
|
export const writer_appendMany: (a: number, b: any) => any;
|
|
61
|
+
export const writer_appendManyWithSpecs: (a: number, b: any, c: any) => any;
|
|
49
62
|
export const writer_commit: (a: number) => any;
|
|
63
|
+
export const writer_configureHotShard: (a: number, b: number, c: number) => [number, number];
|
|
64
|
+
export const writer_createEntity: (a: number, b: any, c: any, d: number) => any;
|
|
65
|
+
export const writer_deleteEntity: (a: number, b: any, c: any) => any;
|
|
50
66
|
export const writer_deleteRecords: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
67
|
+
export const writer_enableEntityKeys: (a: number, b: number, c: number) => any;
|
|
68
|
+
export const writer_flushHot: (a: number) => any;
|
|
51
69
|
export const writer_manifestHash: (a: number) => [number, number, number, number];
|
|
52
70
|
export const writer_open: (a: number, b: number, c: any) => any;
|
|
71
|
+
export const writer_publishGeometryCells: (a: number, b: number, c: number, d: any, e: any, f: any, g: any) => any;
|
|
72
|
+
export const writer_publishGeometryMesh: (a: number, b: number, c: number, d: any, e: any, f: any) => any;
|
|
53
73
|
export const writer_refName: (a: number) => [number, number];
|
|
54
74
|
export const writer_snapshot: (a: number, b: number, c: number) => any;
|
|
75
|
+
export const writer_supersedeEntity: (a: number, b: any, c: any, d: any, e: number) => any;
|
|
76
|
+
export const writer_upsertEntity: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
55
77
|
export const zeroSpatialKey: () => [number, number];
|
|
56
78
|
export const __wasm_init: () => void;
|
|
57
79
|
export const wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_: (a: number, b: number, c: any) => [number, number];
|