@lmzhen/dsh-memory-files 0.3.31 → 0.3.33

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -31,12 +31,13 @@ function apply(ctx, rawConfig) {
31
31
  if (clamped.length > 0) ctx.logger.warn(`memory-files: ${clamped.join(", ")} provided an invalid value; falling back to the default`);
32
32
  const io = evolutionIoAdapter(() => ctx.evolutionIo.provider());
33
33
  const serializedWrite = makeSerialQueue();
34
+ const resolvedRoot = (config.root || "").trim();
34
35
  const store = new MemoryStore({
35
36
  memoryCharLimit: config.memoryCharLimit,
36
37
  userCharLimit: config.userCharLimit,
37
38
  addDatePrefix: config.addDatePrefix,
38
39
  maxConsolidationFailures: config.maxConsolidationFailures,
39
- ...config.root ? { root: config.root } : {},
40
+ ...resolvedRoot !== "" ? { root: resolvedRoot } : {},
40
41
  io
41
42
  });
42
43
  const provider = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-memory-files",
3
3
  "description": "Local layered memory provider (community build)",
4
- "version": "0.3.31",
4
+ "version": "0.3.33",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,18 +31,18 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-core": "^0.3.31"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.33"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/cordis": "^4.0.1",
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
- "@lmzhen/dsh-evolution-io": "^0.3.31",
40
- "@lmzhen/dsh-memory": "^0.3.31"
39
+ "@lmzhen/dsh-evolution-io": "^0.3.33",
40
+ "@lmzhen/dsh-memory": "^0.3.33"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
44
- "@lmzhen/dsh-evolution-core": "^0.3.31",
45
- "@lmzhen/dsh-evolution-io": "^0.3.31",
46
- "@lmzhen/dsh-memory": "^0.3.31"
44
+ "@lmzhen/dsh-evolution-core": "^0.3.33",
45
+ "@lmzhen/dsh-evolution-io": "^0.3.33",
46
+ "@lmzhen/dsh-memory": "^0.3.33"
47
47
  }
48
48
  }