@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Context Policy",
4
- "description": "Percentage-based context compaction and model-configurable GPT and DeepSeek token counting."
4
+ "description": "Percentage-based context compaction and model-configurable token counting."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "上下文策略",
4
- "description": "按上下文窗口比例自动压缩,并支持按模型配置 GPT 和 DeepSeek 的 token 计数。"
3
+ "title": "Context Policy",
4
+ "description": "按上下文窗口比例自动压缩,并支持按模型配置的 token 计数。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,93 +1,94 @@
1
1
  {
2
- "name": "@snylonue/dsh-context-policy",
3
- "version": "0.1.0",
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": "github:snylonue/dsh-context-policy",
11
- "packageManager": "pnpm@12.3.4",
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "engines": {
16
- "node": ">=24",
17
- "dsh": "0.2.0-rc.2"
18
- },
19
- "exports": {
20
- ".": {
21
- "types": "./dist/token-meter.d.ts",
22
- "default": "./dist/token-meter.js"
23
- },
24
- "./token-meter": {
25
- "types": "./dist/token-meter.d.ts",
26
- "default": "./dist/token-meter.js"
27
- },
28
- "./compaction": {
29
- "types": "./dist/compaction.d.ts",
30
- "default": "./dist/compaction.js"
31
- },
32
- "./tokenizers": {
33
- "types": "./dist/tokenizers.d.ts",
34
- "default": "./dist/tokenizers.js"
35
- },
36
- "./core": {
37
- "types": "./dist/core.d.ts",
38
- "default": "./dist/core.js"
39
- },
40
- "./locale/*.json": "./locale/*.json",
41
- "./package.json": "./package.json"
42
- },
43
- "files": [
44
- "dist",
45
- "src",
46
- "assets",
47
- "cordis.patch.yml",
48
- "locale/*.json",
49
- "README.md",
50
- "LICENSE",
51
- "UPSTREAM.md",
52
- "examples",
53
- "tsconfig.json",
54
- "scripts",
55
- "tsconfig.check.json",
56
- "tests"
57
- ],
58
- "scripts": {
59
- "build": "tsc -p tsconfig.json",
60
- "test": "node --test tests/*.test.ts",
61
- "check": "node scripts/check.ts",
62
- "prepack": "node scripts/check.ts",
63
- "format": "biome format --write .",
64
- "lint": "biome lint ."
65
- },
66
- "dependencies": {
67
- "@huggingface/tokenizers": "0.2.0"
68
- },
69
- "peerDependencies": {
70
- "@deepseek-ai/cordis": "~4.0.4",
71
- "@deepseek-ai/schemastery": "~3.18.4",
72
- "@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
73
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
74
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
75
- "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
76
- "@deepseek-ai/dsh-util-values": "0.2.0-rc.2",
77
- "@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
78
- "zod": "^4.4.3",
79
- "@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2"
80
- },
81
- "dsh": {
82
- "manifestVersion": 1,
83
- "bundle": {
84
- "patch": "./cordis.patch.yml"
85
- }
86
- },
87
- "devDependencies": {
88
- "@biomejs/biome": "2",
89
- "typescript": "5.9.3",
90
- "@types/node": "24.19.0",
91
- "@deepseek-ai/dsh-app-boot": "0.2.0-rc.2"
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
+ }