@theokit/sdk-memory 0.3.3 → 0.5.0
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 +45 -0
- package/dist/index.cjs +165 -344
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +52 -326
- package/dist/index.js.map +1 -1
- package/dist/internal/active-memory/active-memory.d.ts.map +1 -1
- package/dist/internal/dreaming/dreaming-diary.d.ts +6 -61
- package/dist/internal/dreaming/dreaming-diary.d.ts.map +1 -1
- package/dist/internal/index/index-db.d.ts +0 -7
- package/dist/internal/index/index-db.d.ts.map +1 -1
- package/dist/internal/index/index-manager.d.ts +9 -1
- package/dist/internal/index/index-manager.d.ts.map +1 -1
- package/dist/internal/index/lance-index.d.ts +3 -6
- package/dist/internal/index/lance-index.d.ts.map +1 -1
- package/dist/internal/index/migrate-sqlite-to-lance.d.ts +5 -0
- package/dist/internal/index/migrate-sqlite-to-lance.d.ts.map +1 -1
- package/dist/internal/store/markdown-store.d.ts +24 -32
- package/dist/internal/store/markdown-store.d.ts.map +1 -1
- package/dist/internal/store/session-loader.d.ts +3 -27
- package/dist/internal/store/session-loader.d.ts.map +1 -1
- package/dist/internal/store/session-summary-writer.d.ts +6 -53
- package/dist/internal/store/session-summary-writer.d.ts.map +1 -1
- package/dist/internal/store/transcript-store.d.ts +3 -45
- package/dist/internal/store/transcript-store.d.ts.map +1 -1
- package/dist/internal/store/wiki-loader.d.ts +3 -32
- package/dist/internal/store/wiki-loader.d.ts.map +1 -1
- package/dist/internal/tools.d.ts +3 -1
- package/dist/internal/tools.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog — @theokit/sdk-memory
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6410e27: The satellite follows the SDK's single memory-root resolver (#463).
|
|
8
|
+
|
|
9
|
+
`Memory.runDreamingSweep` routes through this package whenever it is installed, so a satellite that
|
|
10
|
+
kept deriving `<cwd>/.theokit/memory` on its own would have reverted `memory.directory` to the
|
|
11
|
+
default for exactly the consumers who installed it — the failure this package's own store shim was
|
|
12
|
+
written to end, one release later.
|
|
13
|
+
|
|
14
|
+
Its path helpers now take a resolved `MemoryRoot` like the SDK's: `sessionsDir`, `wikiDir`,
|
|
15
|
+
`diaryPath`, `defaultIndexPath`, `lanceStoragePath`, `collectMarkdownFiles`, `discoverSessionFiles`,
|
|
16
|
+
`discoverWikiFiles`, `persistActiveMemoryTranscript` and `createMemoryGetTool` (`cwd` → `root`).
|
|
17
|
+
`SessionSummaryInput.cwd` becomes `memoryRoot`. `memoryDir` and `memoryWriteDir` are gone from the
|
|
18
|
+
re-export; `resolveMemoryRoot`, `projectMemoryDir`, `memoryReadRoots`, `asMemoryRoot` and
|
|
19
|
+
`MemoryRoot` replace them. `migrateSqliteToLance` and the Lance index accept the root.
|
|
20
|
+
|
|
21
|
+
Two more copies of the layout literal were found the same way the SDK's were — by the type error,
|
|
22
|
+
not by a search: `index-db.ts` and `lance-index.ts` each spelled `.theokit/memory` out again
|
|
23
|
+
instead of calling the shared helper.
|
|
24
|
+
|
|
25
|
+
## 0.4.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- 4aa19d1: Installing this package no longer makes the memory store unreadable.
|
|
30
|
+
|
|
31
|
+
`Memory.runDreamingSweep` in `@theokit/sdk` replaces its own store with this package's whenever this
|
|
32
|
+
package is installed. This package carried a full copy, and the copy stayed on the layout that
|
|
33
|
+
predates the file-per-memory format — so it could not read anything the SDK had written. The sweep
|
|
34
|
+
reported `factsBefore: 0`, a number indistinguishable from an empty store (#430). Nothing threw.
|
|
35
|
+
|
|
36
|
+
The store is now imported from `@theokit/sdk/internal/memory-store` rather than copied, which is why
|
|
37
|
+
the `@theokit/sdk` peer floor rises to `>=4.60.0`: that is the version the sub-path first ships in,
|
|
38
|
+
and importing a path an admitted version does not export is a load-time crash, not a type error.
|
|
39
|
+
|
|
40
|
+
The exported signatures are supersets of what this package exposed before — the added parameters are
|
|
41
|
+
optional — so existing calls are unaffected. What changes is that `appendFactToMarkdown` now writes a
|
|
42
|
+
file per memory with `MEMORY.md` as its index, instead of a bullet under `## Facts`. Bullets written
|
|
43
|
+
by earlier versions are still read.
|
|
44
|
+
|
|
45
|
+
The promise this broke — _"the fallback is not a degraded mode"_ — now has a test. It had none, which
|
|
46
|
+
is why the two copies drifted for two format changes without anything going red.
|
|
47
|
+
|
|
3
48
|
## 0.3.3
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|