@soulcraft/cor 3.0.15 → 3.0.16
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/graph/NativeGraphAdjacencyIndex.d.ts +7 -0
- package/dist/graph/NativeGraphAdjacencyIndex.js +57 -7
- package/dist/hnsw/NativeDiskAnnWrapper.d.ts +41 -1
- package/dist/hnsw/NativeDiskAnnWrapper.js +251 -2
- package/dist/native/types.d.ts +7 -0
- package/dist/utils/NativeColumnStore.d.ts +6 -0
- package/dist/utils/NativeColumnStore.js +61 -11
- package/dist/utils/NativeMetadataIndex.d.ts +30 -0
- package/dist/utils/NativeMetadataIndex.js +248 -8
- package/dist/utils/derivedFamilies.d.ts +48 -0
- package/dist/utils/derivedFamilies.js +128 -0
- package/dist/utils/invariantReport.d.ts +29 -0
- package/dist/utils/invariantReport.js +62 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/native/brainy-native.node +0 -0
- package/native/index.d.ts +23 -1
- package/package.json +2 -2
package/dist/version.d.ts
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* `check:brainy`-style drift between the two fails the release.
|
|
12
12
|
*/
|
|
13
13
|
/** The @soulcraft/cor version this build was cut from. */
|
|
14
|
-
export declare const COR_VERSION = "3.0.
|
|
14
|
+
export declare const COR_VERSION = "3.0.16";
|
|
15
15
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
Binary file
|
package/native/index.d.ts
CHANGED
|
@@ -364,7 +364,6 @@ export declare class NativeColumnStore {
|
|
|
364
364
|
distinctValues(field: string): Array<string>
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
/** Napi-exposed DiskANN index. */
|
|
368
367
|
export declare class NativeDiskAnn {
|
|
369
368
|
/** Construct via static factories. */
|
|
370
369
|
constructor()
|
|
@@ -1751,6 +1750,20 @@ export declare class NativeMetadataIndex {
|
|
|
1751
1750
|
* brains; preferred by brainy 8.0 consumers.
|
|
1752
1751
|
*/
|
|
1753
1752
|
uuidToIntBig(uuid: string): bigint | null
|
|
1753
|
+
/**
|
|
1754
|
+
* Resolve an entity's integer id, ASSIGNING a fresh one through the
|
|
1755
|
+
* canonical allocator when unmapped — the same allocator
|
|
1756
|
+
* `add_to_index` uses, so a later `add_to_index` for this UUID
|
|
1757
|
+
* reuses the id and the assignment persists through the mapper's
|
|
1758
|
+
* own durability (delta log). Exists for the boot-heal vector
|
|
1759
|
+
* rebuild (CORTEX-RESTART-STRAND, 2026-07-13): a canonical entity
|
|
1760
|
+
* whose index ops were lost (canonical committed, postings absent)
|
|
1761
|
+
* has no int at cold-rebuild time — the rebuild must be able to
|
|
1762
|
+
* mint one instead of aborting the whole heal. The entity's missing
|
|
1763
|
+
* METADATA postings stay visible to `validateInvariants()`'s
|
|
1764
|
+
* posted-count-floor check; this method never masks that gap.
|
|
1765
|
+
*/
|
|
1766
|
+
getOrAssignInt(uuid: string): bigint
|
|
1754
1767
|
/**
|
|
1755
1768
|
* Resolve a UUID from an entity's integer id. Backs `getIdMapper().getUuid`
|
|
1756
1769
|
* for the `orderBy` path. O(1).
|
|
@@ -2614,6 +2627,15 @@ export declare function euclideanDistance(a: Array<number>, b: Array<number>): n
|
|
|
2614
2627
|
/** Batch euclidean distance: compute distances from a query to multiple vectors. */
|
|
2615
2628
|
export declare function euclideanDistanceBatch(query: Array<number>, vectors: Array<Array<number>>): Array<number>
|
|
2616
2629
|
|
|
2630
|
+
/**
|
|
2631
|
+
* Napi-exposed DiskANN index.
|
|
2632
|
+
* ADR-004 §7 capability probe: TRUE on binaries whose publish path
|
|
2633
|
+
* writes the `main.familygen` stamp and swaps the vector family
|
|
2634
|
+
* atomically (3.0.16+). TS code and the test suite gate stamp-dependent
|
|
2635
|
+
* behavior on this instead of guessing from version strings.
|
|
2636
|
+
*/
|
|
2637
|
+
export declare function familygenSupported(): boolean
|
|
2638
|
+
|
|
2617
2639
|
/**
|
|
2618
2640
|
* Outcome of raising the open-file limit. Field names cross to JS as
|
|
2619
2641
|
* camelCase (`softBefore`, `softAfter`, `hard`, `raised`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/cor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.16",
|
|
4
4
|
"description": "Native Rust acceleration for Brainy — SIMD distance, vector quantization, zero-copy mmap, native embeddings. Free tier for storage, Pro license for compute acceleration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@napi-rs/cli": "^3.0.0",
|
|
85
|
-
"@soulcraft/brainy": "8.
|
|
85
|
+
"@soulcraft/brainy": "8.3.0",
|
|
86
86
|
"@types/node": "^22.0.0",
|
|
87
87
|
"pg": "^8.21.0",
|
|
88
88
|
"tsx": "^4.21.0",
|