@snylonue/dsh-context-policy 0.4.0 → 0.4.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/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/package.json +9 -9
- package/tests/current-host.test.ts +6 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ Percentage-based automatic compaction and model-configurable token accounting fo
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
7
|
- Node.js 24 or later.
|
|
8
|
-
- DSH 0.2.2-rc.2
|
|
8
|
+
- DSH 0.2.2-rc.2 or 0.2.2-rc.3; older hosts and untested later releases are not declared compatible.
|
|
9
9
|
|
|
10
|
-
The build, TypeScript checks, and full 39-test suite
|
|
10
|
+
The build, TypeScript checks, and full 39-test suite use the rc.2 build baseline, including plugin composition, token accounting, projection replay/checkpoints, and percentage compaction. Development dependencies are pinned to 0.2.2-rc.2.
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snylonue/dsh-context-policy",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Percentage-only compaction and model-configurable GPT and DeepSeek token counting for DSH",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=24",
|
|
17
|
-
"dsh": "0.2.2-rc.2"
|
|
17
|
+
"dsh": "0.2.2-rc.2 || 0.2.2-rc.3"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@deepseek-ai/cordis": "~4.1.0",
|
|
72
|
-
"@deepseek-ai/dsh-compaction": "0.2.2-rc.2",
|
|
73
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.2",
|
|
74
|
-
"@deepseek-ai/dsh-llm": "0.2.2-rc.2",
|
|
75
|
-
"@deepseek-ai/dsh-session": "0.2.2-rc.2",
|
|
76
|
-
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.2",
|
|
77
|
-
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.2",
|
|
78
|
-
"@deepseek-ai/dsh-util-values": "0.2.2-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
73
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
74
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
75
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
76
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
77
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
78
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-rc.2 || 0.2.2-rc.3",
|
|
79
79
|
"@deepseek-ai/schemastery": "~3.19.0",
|
|
80
80
|
"zod": "^4.6.6"
|
|
81
81
|
},
|
|
@@ -2,10 +2,10 @@ import assert from "node:assert/strict";
|
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { test } from "node:test";
|
|
4
4
|
|
|
5
|
-
const supportedHosts = "0.2.2-rc.2";
|
|
5
|
+
const supportedHosts = "0.2.2-rc.2 || 0.2.2-rc.3";
|
|
6
6
|
const testedHost = "0.2.2-rc.2";
|
|
7
7
|
|
|
8
|
-
test("declares
|
|
8
|
+
test("declares rc.2 and rc.3 support while keeping the rc.2 build SDK", () => {
|
|
9
9
|
const manifest = JSON.parse(
|
|
10
10
|
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
|
11
11
|
);
|
|
@@ -23,6 +23,9 @@ test("declares only the verified DSH 0.2.2-rc.2 host", () => {
|
|
|
23
23
|
"utf8",
|
|
24
24
|
),
|
|
25
25
|
);
|
|
26
|
-
assert.
|
|
26
|
+
assert.ok(
|
|
27
|
+
supportedHosts.split(" || ").includes(installed.version),
|
|
28
|
+
`${name} installed version`,
|
|
29
|
+
);
|
|
27
30
|
}
|
|
28
31
|
});
|