@lmzhen/dsh-memory-files 0.3.73 → 0.3.76
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 +2 -0
- package/lib/index.js +3 -2
- package/package.json +7 -13
- package/lib/invariant.js +0 -8
- package/lib/types/invariant.d.ts +0 -5
package/README.md
CHANGED
|
@@ -22,3 +22,5 @@ Independent of request-prefix construction. This package does not alter the asse
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
- `providerName` (default `files`) is the name this provider registers under. Nothing selects it implicitly: `memory.provider` pins the registry to one name (V27 G6.3), and with the pin empty the FIRST registered provider serves every read/write — so with two providers mounted, set the pin or the choice is row order.
|
|
25
|
+
|
|
26
|
+
**Runtime invariant:** No companion is published. The platform auto-assembles nothing and the family mounts no `<pkg>/invariant` cordis row, so a companion here would never execute (v37 S2.1 / I-3).
|
package/lib/index.js
CHANGED
|
@@ -24,9 +24,10 @@ function apply(ctx, rawConfig = {}) {
|
|
|
24
24
|
if (value !== void 0 && result !== value) clamped.push(name);
|
|
25
25
|
return result;
|
|
26
26
|
};
|
|
27
|
+
const floorLimit = (value) => Math.floor(value);
|
|
27
28
|
const config = Object.assign({}, rawConfig, {
|
|
28
|
-
memoryCharLimit: field("memoryCharLimit", rawConfig.memoryCharLimit, DEFAULT_MEMORY_CHAR_LIMIT),
|
|
29
|
-
userCharLimit: field("userCharLimit", rawConfig.userCharLimit, DEFAULT_USER_CHAR_LIMIT),
|
|
29
|
+
memoryCharLimit: floorLimit(field("memoryCharLimit", rawConfig.memoryCharLimit, DEFAULT_MEMORY_CHAR_LIMIT)),
|
|
30
|
+
userCharLimit: floorLimit(field("userCharLimit", rawConfig.userCharLimit, DEFAULT_USER_CHAR_LIMIT)),
|
|
30
31
|
maxConsolidationFailures: field("maxConsolidationFailures", rawConfig.maxConsolidationFailures, DEFAULT_CONSOLIDATION_FAILURES)
|
|
31
32
|
});
|
|
32
33
|
if (clamped.length > 0) ctx.logger.warn(`memory-files: ${clamped.join(", ")} provided an invalid value; falling back to the default`);
|
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.
|
|
4
|
+
"version": "0.3.76",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"types": "./lib/types/index.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./invariant": {
|
|
22
|
-
"types": "./lib/types/invariant.d.ts",
|
|
23
|
-
"default": "./lib/invariant.js"
|
|
24
|
-
},
|
|
25
21
|
"./package.json": "./package.json"
|
|
26
22
|
},
|
|
27
23
|
"files": [
|
|
@@ -31,18 +27,16 @@
|
|
|
31
27
|
"license": "MIT",
|
|
32
28
|
"dependencies": {
|
|
33
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.3.76"
|
|
35
31
|
},
|
|
36
32
|
"peerDependencies": {
|
|
37
33
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
|
-
"@
|
|
39
|
-
"@lmzhen/dsh-
|
|
40
|
-
"@lmzhen/dsh-memory": "^0.3.73"
|
|
34
|
+
"@lmzhen/dsh-evolution-io": "^0.3.76",
|
|
35
|
+
"@lmzhen/dsh-memory": "^0.3.76"
|
|
41
36
|
},
|
|
42
37
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@lmzhen/dsh-evolution-
|
|
45
|
-
"@lmzhen/dsh-
|
|
46
|
-
"@lmzhen/dsh-memory": "^0.3.73"
|
|
38
|
+
"@lmzhen/dsh-evolution-core": "^0.3.76",
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.3.76",
|
|
40
|
+
"@lmzhen/dsh-memory": "^0.3.76"
|
|
47
41
|
}
|
|
48
42
|
}
|
package/lib/invariant.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region lib/types/invariant.js
|
|
2
|
-
const PACKAGE_NAME = "@lmzhen/dsh-memory-files";
|
|
3
|
-
const name = "memory-files-invariant";
|
|
4
|
-
const inject = ["invariants"];
|
|
5
|
-
const install = () => {};
|
|
6
|
-
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
7
|
-
//#endregion
|
|
8
|
-
export { apply, inject, name };
|
package/lib/types/invariant.d.ts
DELETED