@theokit/sdk-memory 0.6.1 → 0.6.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog — @theokit/sdk-memory
2
2
 
3
+ ## 0.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1158](https://github.com/usetheokit/theokit-sdk/pull/1158) [`0cda41a`](https://github.com/usetheokit/theokit-sdk/commit/0cda41a9448e28188f66ff56fd4a1b03a20c860d) Thanks [@usetheodev](https://github.com/usetheodev)! - Memory search no longer comes back empty when the FTS query fails with this package installed. `IndexManager` here was an older copy of the one in `@theokit/sdk` and answered a failed FTS query with no hits; it is now the SDK's class, which falls back to a LIKE scan and reports the fallback on the diagnostics sink when the query is not CJK. `Memory.openIndex` therefore searches the same way with or without this package.
8
+
9
+ The backend dispatch, `LanceIndex`, `migrateSqliteToLance` and `migrateLegacyJson` are re-exported from the SDK as well, and behave as they do there:
10
+
11
+ - `sync()` results carry `supported`, and `status()` carries `countsExact`.
12
+ - `LanceMemoryAdapter` extends the SDK's adapter and adds only `unwrap()`. Its `search()` blends the vector score with a term-overlap text score through `vectorWeight` and `textWeight`, so `score` is no longer the bare vector score, and its `sync()` reports `supported: false`. An index opened with `IndexManager.open({ backend: "lance" })` is the SDK's adapter, which has no `unwrap()`.
13
+ - `migrateSqliteToLance` refuses a `batchSize` that is not a whole number of at least 1 (`invalid_batch_size`).
14
+ - `migrateLegacyJson` reports on the diagnostics sink instead of writing to stderr, and shares one per-process set of migrated keys with the SDK.
15
+
3
16
  ## 0.6.1
4
17
 
5
18
  ### Patch Changes