@snylonue/dsh-context-policy 0.1.0 → 0.1.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/locale/en.json +1 -1
- package/locale/zh.json +2 -2
- package/package.json +93 -92
package/locale/en.json
CHANGED
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,93 +1,94 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
2
|
+
"name": "@snylonue/dsh-context-policy",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Percentage-only compaction and model-configurable GPT and DeepSeek token counting for DSH",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"dsh-plugin"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "github:snylonue/dsh-context-policy"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=24",
|
|
19
|
+
"dsh": "0.2.0-rc.2"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/token-meter.d.ts",
|
|
24
|
+
"default": "./dist/token-meter.js"
|
|
25
|
+
},
|
|
26
|
+
"./token-meter": {
|
|
27
|
+
"types": "./dist/token-meter.d.ts",
|
|
28
|
+
"default": "./dist/token-meter.js"
|
|
29
|
+
},
|
|
30
|
+
"./compaction": {
|
|
31
|
+
"types": "./dist/compaction.d.ts",
|
|
32
|
+
"default": "./dist/compaction.js"
|
|
33
|
+
},
|
|
34
|
+
"./tokenizers": {
|
|
35
|
+
"types": "./dist/tokenizers.d.ts",
|
|
36
|
+
"default": "./dist/tokenizers.js"
|
|
37
|
+
},
|
|
38
|
+
"./core": {
|
|
39
|
+
"types": "./dist/core.d.ts",
|
|
40
|
+
"default": "./dist/core.js"
|
|
41
|
+
},
|
|
42
|
+
"./locale/*.json": "./locale/*.json",
|
|
43
|
+
"./package.json": "./package.json"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist",
|
|
47
|
+
"src",
|
|
48
|
+
"assets",
|
|
49
|
+
"cordis.patch.yml",
|
|
50
|
+
"locale/*.json",
|
|
51
|
+
"README.md",
|
|
52
|
+
"LICENSE",
|
|
53
|
+
"UPSTREAM.md",
|
|
54
|
+
"examples",
|
|
55
|
+
"tsconfig.json",
|
|
56
|
+
"scripts",
|
|
57
|
+
"tsconfig.check.json",
|
|
58
|
+
"tests"
|
|
59
|
+
],
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@huggingface/tokenizers": "0.2.0"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
65
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-util-values": "0.2.0-rc.2",
|
|
72
|
+
"@deepseek-ai/schemastery": "~3.18.4",
|
|
73
|
+
"zod": "^4.4.3"
|
|
74
|
+
},
|
|
75
|
+
"dsh": {
|
|
76
|
+
"manifestVersion": 1,
|
|
77
|
+
"bundle": {
|
|
78
|
+
"patch": "./cordis.patch.yml"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@biomejs/biome": "2",
|
|
83
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
84
|
+
"@types/node": "24.19.0",
|
|
85
|
+
"typescript": "5.9.3"
|
|
86
|
+
},
|
|
87
|
+
"scripts": {
|
|
88
|
+
"build": "tsc -p tsconfig.json",
|
|
89
|
+
"test": "node --test tests/*.test.ts",
|
|
90
|
+
"check": "node scripts/check.ts",
|
|
91
|
+
"format": "biome format --write .",
|
|
92
|
+
"lint": "biome lint ."
|
|
93
|
+
}
|
|
94
|
+
}
|