dsh-memu-memory 1.2.8 → 1.2.9
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 +472 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/backup.js +154 -25
- package/lib/binding-diagnostics.js +1 -2
- package/lib/budget.js +0 -9
- package/lib/client.js +221 -128
- package/lib/commitment.js +3 -3
- package/lib/consolidation-ledger.js +5 -2
- package/lib/curator-policy.js +23 -0
- package/lib/cycle.js +8 -4
- package/lib/embedding-download.js +168 -28
- package/lib/embedding-runtime.js +76 -17
- package/lib/engine.js +0 -6
- package/lib/freshness.js +2 -2
- package/lib/graph.js +139 -11
- package/lib/index.js +71 -20
- package/lib/inject.js +50 -7
- package/lib/lexicon.js +61 -16
- package/lib/local-vector-service.js +21 -1
- package/lib/media.js +49 -12
- package/lib/memory.js +662 -116
- package/lib/paths.js +0 -7
- package/lib/preset-scope.js +6 -1
- package/lib/private.js +45 -7
- package/lib/prompts.js +0 -7
- package/lib/rpc.js +95 -17
- package/lib/snippet.js +18 -2
- package/lib/state.js +109 -30
- package/lib/stats.js +2 -2
- package/lib/temporal.js +19 -0
- package/lib/text-retrieval.js +120 -44
- package/lib/text-similarity.js +205 -24
- package/lib/tokenizer-v2.js +0 -24
- package/lib/vector-migration.js +15 -0
- package/lib/vector-profile.js +81 -8
- package/lib/visibility.js +0 -4
- package/lib/webui/standalone.css +17 -22
- package/lib/webui/standalone.js +27 -9
- package/lib/webui.js +4 -4
- package/package.json +3 -2
- package/scripts/acceptance-local.mjs +2 -2
- package/scripts/check-all.mjs +3 -1
- package/scripts/check-i18n.mjs +35 -1
- package/scripts/migrate-visibility.mjs +3 -3
- package/scripts/prune-sessions.mjs +34 -0
- package/scripts/prune-vectors.mjs +24 -0
- package/tests/appendix-b.test.mjs +5 -4
- package/tests/audit-batch3.test.mjs +247 -0
- package/tests/audit-regression.test.mjs +2 -2
- package/tests/backup.test.mjs +83 -83
- package/tests/browser.test.mjs +6 -1
- package/tests/client-render.test.mjs +2 -2
- package/tests/curator-clusters.test.mjs +18 -0
- package/tests/curator-pairing.test.mjs +59 -16
- package/tests/dynamic-rrf.test.mjs +22 -19
- package/tests/dynamic-threshold.test.mjs +52 -0
- package/tests/fact-version.test.mjs +18 -0
- package/tests/fixtures/tokenizer-cases.mjs +27 -0
- package/tests/graph-cascade.test.mjs +29 -0
- package/tests/graph.test.mjs +45 -0
- package/tests/inject-conflict.test.mjs +18 -0
- package/tests/lexical-bm25.test.mjs +171 -0
- package/tests/lexicon-frequency.test.mjs +16 -0
- package/tests/lexicon-inject.test.mjs +21 -0
- package/tests/lexicon-perf.test.mjs +37 -9
- package/tests/lexicon-scope.test.mjs +2 -2
- package/tests/lexicon-ui.test.mjs +1 -1
- package/tests/managed-memory.test.mjs +19 -0
- package/tests/ops-hardening.test.mjs +209 -0
- package/tests/package-shipping.test.mjs +4 -0
- package/tests/recall-intent.test.mjs +23 -0
- package/tests/slot-similarity.test.mjs +153 -0
- package/tests/state-gc.test.mjs +34 -0
- package/tests/state.test.mjs +2 -2
- package/tests/tokenizer-v2.test.mjs +1 -1
- package/tests/vector-gc.test.mjs +37 -0
- package/tests/webui.test.mjs +27 -0
package/tests/webui.test.mjs
CHANGED
|
@@ -135,6 +135,33 @@ test('wall heartbeat retries failed paints, pauses hidden and shares the metadat
|
|
|
135
135
|
assert.match(source, /data\.type === "memory-write"/)
|
|
136
136
|
})
|
|
137
137
|
|
|
138
|
+
test('fullscreen wall avoids the WebView2 compositor traps that dropped cards', () => {
|
|
139
|
+
const client = fs.readFileSync(new URL('../lib/client.js', import.meta.url), 'utf8')
|
|
140
|
+
// The overlay is a full-viewport iframe over the host app. A backdrop-filter on
|
|
141
|
+
// that wrapper (and a transparent iframe background) made WebView2 re-blur the
|
|
142
|
+
// whole host on every repaint; at fullscreen it started dropping wall tiles.
|
|
143
|
+
const overlay = client.slice(client.indexOf('function toggleWebUiOverlay'), client.indexOf('function glyph'))
|
|
144
|
+
assert.ok(!/backdrop-filter\s*:/.test(overlay), 'the overlay wrapper must not blur the host behind the iframe')
|
|
145
|
+
assert.match(overlay, /background:var\(--dsw-alias-bg-base, #f4f5f9\)/, 'the iframe stays opaque while its page paints')
|
|
146
|
+
// Late replies must not repaint the wall/browser after a newer library was picked.
|
|
147
|
+
assert.match(client, /const requestId = \+\+browseRequest\.current/)
|
|
148
|
+
assert.match(client, /const requestId = \+\+browseLibraryRequest\.current/)
|
|
149
|
+
assert.match(client, /const requestId = \+\+statsRequest\.current/)
|
|
150
|
+
assert.match(client, /const requestId = \+\+reviewsRequest\.current/)
|
|
151
|
+
assert.match(client, /if \(!current\(\)\) return/, 'stale browseWall replies are dropped')
|
|
152
|
+
|
|
153
|
+
const css = fs.readFileSync(new URL('../lib/webui/standalone.css', import.meta.url), 'utf8')
|
|
154
|
+
const start = css.indexOf('html[data-standalone] .dshm-wall-item {')
|
|
155
|
+
const wall = css.slice(start, css.indexOf('html[data-standalone] .dshm-wall-item:hover'))
|
|
156
|
+
assert.ok(!/backdrop-filter\s*:/.test(wall), 'wall cards must not stack dozens of blur layers on screen')
|
|
157
|
+
assert.match(wall, /content-visibility: auto/, 'off-screen wall rows stay out of the paint path')
|
|
158
|
+
|
|
159
|
+
const standalone = fs.readFileSync(new URL('../lib/webui/standalone.js', import.meta.url), 'utf8')
|
|
160
|
+
assert.match(standalone, /var spot = document\.querySelector\('\.ambient-spot'\)/)
|
|
161
|
+
assert.match(standalone, /\(spot \|\| document\.documentElement\)\.style/, 'pointer moves only invalidate the spotlight element')
|
|
162
|
+
assert.match(standalone, /if \(!framed && !reduceMotion/, 'the iframe overlay does not repaint a full-screen spotlight')
|
|
163
|
+
})
|
|
164
|
+
|
|
138
165
|
test('single-library browseWall still carries global rows and F1/F2 metadata', async () => {
|
|
139
166
|
const library = state.createLibrary({ name: 'wall-global-merge', cwd: path.join(home, 'wall-global-merge') })
|
|
140
167
|
state.updatePrivateIndex(library.id, (index) => {
|