@kenz1117/dsh-engram 0.11.6 → 0.13.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 +54 -1
- package/README.md +9 -12
- package/i18n/ru.txt +2 -0
- package/lib/client.js +3 -3
- package/lib/client.js.map +1 -1
- package/lib/index.js +1322 -171
- package/package.json +1 -1
- package/registry/schema.json +5 -1
- package/scripts/check-messages.mjs +13 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenz1117/dsh-engram",
|
|
3
3
|
"description": "Local-first cross-session long-term memory for DeepSeek Harness: dual-scope SQLite stores, hybrid FTS5 + local-vector retrieval with RRF, an evidence gate, provenance audit and SM-2 spaced repetition. 23 narrow tools, zero external services, zero API keys.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"logo": "icon-256.svg",
|
|
7
7
|
"publishConfig": {
|
package/registry/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
|
-
"schemaVersion":
|
|
3
|
+
"schemaVersion": 15,
|
|
4
4
|
"tables": {
|
|
5
5
|
"nodes": {
|
|
6
6
|
"role": "user",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"fields": {
|
|
14
14
|
"id": "TEXT",
|
|
15
|
+
"memory_id": "TEXT",
|
|
15
16
|
"scope": "TEXT",
|
|
16
17
|
"kind": "TEXT",
|
|
17
18
|
"content": "TEXT",
|
|
@@ -57,6 +58,9 @@
|
|
|
57
58
|
"last_validated_at": "INTEGER"
|
|
58
59
|
}
|
|
59
60
|
},
|
|
61
|
+
"injection_snapshots": {
|
|
62
|
+
"role": "service"
|
|
63
|
+
},
|
|
60
64
|
"nodes_fts": {
|
|
61
65
|
"role": "service"
|
|
62
66
|
},
|
|
@@ -212,11 +212,22 @@ if (throttleStart !== -1) {
|
|
|
212
212
|
const body = hookText.slice(throttleStart)
|
|
213
213
|
for (const literal of body.slice(0, body.indexOf('\n}')).matchAll(/'([a-z][a-z-]*)'/g)) produced.add(literal[1])
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
// SKIP_KEY переехал вместе с карточками обслуживания в views/system/SystemView.tsx:
|
|
216
|
+
// ищем по всему клиенту, а не по одному файлу — иначе проверка теряет опору при переносе.
|
|
217
|
+
function collectSources(dir) {
|
|
218
|
+
const out = []
|
|
219
|
+
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
220
|
+
const full = join(dir, entry.name)
|
|
221
|
+
if (entry.isDirectory()) out.push(...collectSources(full))
|
|
222
|
+
else if (entry.name.endsWith('.ts') || entry.name.endsWith('.tsx')) out.push(full)
|
|
223
|
+
}
|
|
224
|
+
return out
|
|
225
|
+
}
|
|
226
|
+
const panelText = collectSources(join(SRC, 'client')).map(file => readFileSync(file, 'utf8')).join('\n')
|
|
216
227
|
const mapStart = panelText.indexOf('const SKIP_KEY')
|
|
217
228
|
const mapEnd = mapStart === -1 ? -1 : panelText.indexOf('\n}', mapStart)
|
|
218
229
|
if (mapStart === -1 || mapEnd === -1) {
|
|
219
|
-
report('skip-key', 'не нашёл таблицу SKIP_KEY в src/client
|
|
230
|
+
report('skip-key', 'не нашёл таблицу SKIP_KEY в src/client — проверка потеряла опору')
|
|
220
231
|
} else {
|
|
221
232
|
const skipMap = panelText.slice(mapStart, mapEnd)
|
|
222
233
|
const mapped = new Set()
|