@polycode-projects/the-mechanical-code-talker 1.8.20 → 1.9.1
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/README.md +27 -6
- package/ROADMAP.md +1 -1
- package/bin/tmct.mjs +167 -20
- package/corpus/generated/README.md +2 -2
- package/corpus/namenet/LICENSE-NOTICE +68 -0
- package/corpus/namenet/generate.mjs +309 -0
- package/corpus/namenet/manifest.json +20 -0
- package/corpus/namenet/namenet.jsonl +7260 -0
- package/corpus/wordnet/LICENSE-NOTICE +49 -0
- package/corpus/wordnet/generate.mjs +333 -0
- package/corpus/wordnet/manifest.json +34 -0
- package/corpus/wordnet/wordnet-full.jsonl +192498 -0
- package/corpus/wordnet/wordnet-xl.jsonl +23805 -0
- package/package.json +6 -2
- package/src/ask-browser-entry.mjs +13 -2
- package/src/ask-browser.bundle.js +272 -19
- package/src/chat.mjs +229 -82
- package/src/cli-args.mjs +20 -1
- package/src/codegraph.mjs +306 -1
- package/src/corpus/conceptnet-map.toml +17 -12
- package/src/corpus/conceptnet.mjs +23 -1
- package/src/extensions.mjs +44 -1
- package/src/init.mjs +99 -46
- package/src/interpret/normalize.mjs +1 -3
- package/src/memory/core.mjs +191 -14
- package/src/memory/trust.mjs +27 -6
- package/src/memory-ask-browser-entry.mjs +36 -0
- package/src/memory-ask-browser.bundle.js +5544 -0
- package/src/toml-config.mjs +11 -1
- package/src/viz.mjs +548 -73
package/src/toml-config.mjs
CHANGED
|
@@ -160,8 +160,18 @@ export async function normalizeConfig(raw, { configDir } = {}) {
|
|
|
160
160
|
// from "set to the default" — the shipped default (5, memory/core.mjs's
|
|
161
161
|
// DEFAULT_RETENTION) is applied where the value is actually CONSUMED
|
|
162
162
|
// (snapshotMemory), not injected here.
|
|
163
|
+
//
|
|
164
|
+
// [memory] backend — the storage-backend seam (PLAN_SEED.md §6, createSession's
|
|
165
|
+
// `memoryBackend` option / TMCT_MEMORY_BACKEND env): "default" (the flat
|
|
166
|
+
// OWL-labelled JSON file under .tmct/memory/), "memory" (in-process only,
|
|
167
|
+
// nothing on disk), or "sqlite" (a local SQLite file). Written by `tmct init
|
|
168
|
+
// --memory-backend <...>`; read by chat.mjs's createSession at CLI-flag > env >
|
|
169
|
+
// tmct.toml > default precedence, same order as everything else in this file.
|
|
163
170
|
const mem = src.memory || {};
|
|
164
|
-
|
|
171
|
+
const memory = {};
|
|
172
|
+
if (mem.retention_versions !== undefined) memory.retentionVersions = mem.retention_versions;
|
|
173
|
+
if (mem.backend !== undefined) memory.backend = mem.backend;
|
|
174
|
+
if (Object.keys(memory).length) cfg.memory = memory;
|
|
165
175
|
|
|
166
176
|
const unwired = [];
|
|
167
177
|
for (const [a, b] of UNWIRED_KEYS) {
|