@lmzhen/dsh-memory-files 0.3.62 → 0.3.64
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/lib/index.js +4 -2
- package/lib/types/index.d.ts +5 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -14,9 +14,10 @@ const Config = z.object({
|
|
|
14
14
|
userCharLimit: z.number().min(1).default(DEFAULT_USER_CHAR_LIMIT),
|
|
15
15
|
addDatePrefix: z.boolean().default(false),
|
|
16
16
|
root: z.string().default(""),
|
|
17
|
-
maxConsolidationFailures: z.number().min(1).default(DEFAULT_CONSOLIDATION_FAILURES)
|
|
17
|
+
maxConsolidationFailures: z.number().min(1).default(DEFAULT_CONSOLIDATION_FAILURES),
|
|
18
|
+
threatExemptLabels: z.array(z.string()).default([])
|
|
18
19
|
});
|
|
19
|
-
function apply(ctx, rawConfig) {
|
|
20
|
+
function apply(ctx, rawConfig = {}) {
|
|
20
21
|
const clamped = [];
|
|
21
22
|
const field = (name, value, fallback) => {
|
|
22
23
|
const result = clampedNumber(value, fallback, { min: 1 });
|
|
@@ -37,6 +38,7 @@ function apply(ctx, rawConfig) {
|
|
|
37
38
|
userCharLimit: config.userCharLimit,
|
|
38
39
|
addDatePrefix: config.addDatePrefix,
|
|
39
40
|
maxConsolidationFailures: config.maxConsolidationFailures,
|
|
41
|
+
threatExemptLabels: config.threatExemptLabels,
|
|
40
42
|
...resolvedRoot !== "" ? { root: resolvedRoot } : {},
|
|
41
43
|
io
|
|
42
44
|
});
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14,7 +14,11 @@ export interface Config {
|
|
|
14
14
|
root?: string;
|
|
15
15
|
/** How many consolidation failures one turn tolerates before the tool tells the model to stop retrying. */
|
|
16
16
|
maxConsolidationFailures?: number;
|
|
17
|
+
/** F-2 (v18): deployment-declared benign threat labels for the MEMORY store.
|
|
18
|
+
* The skill/guard channels already read this option; without it the
|
|
19
|
+
* README's "MemoryStore store option" exemption was unreachable. */
|
|
20
|
+
threatExemptLabels?: string[];
|
|
17
21
|
}
|
|
18
22
|
export declare const Config: z<Config>;
|
|
19
|
-
export declare function apply(ctx: Context, rawConfig
|
|
23
|
+
export declare function apply(ctx: Context, rawConfig?: Config): void;
|
|
20
24
|
//# sourceMappingURL=index.d.ts.map
|
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.64",
|
|
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.
|
|
34
|
+
"@lmzhen/dsh-evolution-core": "^0.3.64"
|
|
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.
|
|
40
|
-
"@lmzhen/dsh-memory": "^0.3.
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.3.64",
|
|
40
|
+
"@lmzhen/dsh-memory": "^0.3.64"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
44
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
45
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
46
|
-
"@lmzhen/dsh-memory": "^0.3.
|
|
44
|
+
"@lmzhen/dsh-evolution-core": "^0.3.64",
|
|
45
|
+
"@lmzhen/dsh-evolution-io": "^0.3.64",
|
|
46
|
+
"@lmzhen/dsh-memory": "^0.3.64"
|
|
47
47
|
}
|
|
48
48
|
}
|