@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.
@@ -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
- if (mem.retention_versions !== undefined) cfg.memory = { retentionVersions: mem.retention_versions };
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) {