dsh-lightweightcontext 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 shawenbin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ 本包改编自 billion-context(Copyright (c) 2026 ranxianglei,MIT)与
26
+ @deepseek-ai/dsh-compaction-basic(Copyright (c) 2026 DeepSeek,MIT)。
27
+ 上游的完整许可原文与附加署名条款见同目录下的 许可与来源.md。
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: context
3
+ name: dsh-lightweightcontext
package/package.json CHANGED
@@ -1,6 +1,161 @@
1
1
  {
2
2
  "name": "dsh-lightweightcontext",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "上下文:完全内置于 DeepSeek Harness 的模型驱动分层上下文管理插件。较早历史折叠为摘要,原文仍保留在会话日志中可检索恢复;无代理、无端口、无网络拦截。改编自 billion-context 与 acp-kernel。",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./产物/入口.js",
8
+ "./client": "./客户端.js",
9
+ "./icon": "./图标.svg",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "files": [
13
+ "产物",
14
+ "客户端.js",
15
+ "cordis.patch.yml",
16
+ "技能",
17
+ "读我.md",
18
+ "LICENSE",
19
+ "验收报告.md",
20
+ "许可与来源.md",
21
+ "图标.svg"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsup --config 构建配置.ts",
25
+ "check": "tsc --noEmit --project 类型配置.json",
26
+ "test": "node --import tsx --test 测试/*.test.ts",
27
+ "verify": "npm run check && npm run build && npm test",
28
+ "prepack": "npm run build"
29
+ },
30
+ "license": "MIT",
31
+ "author": "shawenbin",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/shawenbin/dsh-plugins.git",
35
+ "directory": "上下文"
36
+ },
37
+ "homepage": "https://github.com/shawenbin/dsh-plugins#readme",
38
+ "bugs": {
39
+ "url": "https://github.com/shawenbin/dsh-plugins/issues"
40
+ },
41
+ "keywords": [
42
+ "dsh",
43
+ "dsh-plugin",
44
+ "deepseek-harness",
45
+ "plugin",
46
+ "context",
47
+ "context-management",
48
+ "compaction",
49
+ "token-budget"
50
+ ],
51
+ "engines": {
52
+ "node": ">=22",
53
+ "dsh": "^0.2.2-rc.5"
54
+ },
55
+ "overrides": {
56
+ "zod": "4.6.6"
57
+ },
58
+ "dsh": {
59
+ "bundle": {
60
+ "patch": "./cordis.patch.yml"
61
+ },
62
+ "client": {
63
+ "platform": "web",
64
+ "immediately": true,
65
+ "inject": [
66
+ "@deepseek-ai/dsh-client-ui-conversation"
67
+ ]
68
+ }
69
+ },
70
+ "peerDependencies": {
71
+ "@deepseek-ai/cordis": "^4.1.0",
72
+ "@deepseek-ai/dsh-agent": "^0.2.2-rc.5",
73
+ "@deepseek-ai/dsh-commands": "^0.2.2-rc.5",
74
+ "@deepseek-ai/dsh-compaction": "^0.2.2-rc.5",
75
+ "@deepseek-ai/dsh-compaction-basic": "^0.2.2-rc.5",
76
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.5",
77
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.5",
78
+ "@deepseek-ai/dsh-session-projection": "^0.2.2-rc.5",
79
+ "@deepseek-ai/dsh-skill": "^0.2.2-rc.5",
80
+ "@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.5",
81
+ "@deepseek-ai/dsh-token-meter": "^0.2.2-rc.5",
82
+ "@deepseek-ai/dsh-tools": "^0.2.2-rc.5",
83
+ "@deepseek-ai/dsh-util-values": "^0.2.2-rc.5",
84
+ "@deepseek-ai/schemastery": "^3.19.0",
85
+ "zod": "^4.6.6"
86
+ },
87
+ "peerDependenciesMeta": {
88
+ "@deepseek-ai/cordis": {
89
+ "optional": true
90
+ },
91
+ "@deepseek-ai/dsh-agent": {
92
+ "optional": true
93
+ },
94
+ "@deepseek-ai/dsh-commands": {
95
+ "optional": true
96
+ },
97
+ "@deepseek-ai/dsh-compaction": {
98
+ "optional": true
99
+ },
100
+ "@deepseek-ai/dsh-compaction-basic": {
101
+ "optional": true
102
+ },
103
+ "@deepseek-ai/dsh-llm": {
104
+ "optional": true
105
+ },
106
+ "@deepseek-ai/dsh-session": {
107
+ "optional": true
108
+ },
109
+ "@deepseek-ai/dsh-session-projection": {
110
+ "optional": true
111
+ },
112
+ "@deepseek-ai/dsh-skill": {
113
+ "optional": true
114
+ },
115
+ "@deepseek-ai/dsh-system-prompt": {
116
+ "optional": true
117
+ },
118
+ "@deepseek-ai/dsh-token-meter": {
119
+ "optional": true
120
+ },
121
+ "@deepseek-ai/dsh-tools": {
122
+ "optional": true
123
+ },
124
+ "@deepseek-ai/dsh-util-values": {
125
+ "optional": true
126
+ },
127
+ "@deepseek-ai/schemastery": {
128
+ "optional": true
129
+ },
130
+ "zod": {
131
+ "optional": true
132
+ }
133
+ },
134
+ "devDependencies": {
135
+ "@deepseek-ai/cordis": "4.1.0",
136
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.5",
137
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-rc.5",
138
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.5",
139
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.5",
140
+ "@deepseek-ai/dsh-compaction": "0.2.2-rc.5",
141
+ "@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.5",
142
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.5",
143
+ "@deepseek-ai/dsh-session": "0.2.2-rc.5",
144
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.5",
145
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.5",
146
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.5",
147
+ "@deepseek-ai/dsh-token-meter": "0.2.2-rc.5",
148
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.5",
149
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-rc.5",
150
+ "@deepseek-ai/dsh-util-values": "0.2.2-rc.5",
151
+ "@deepseek-ai/schemastery": "3.19.0",
152
+ "@types/node": "^24.0.0",
153
+ "tsup": "^8.5.1",
154
+ "tsx": "^4.21.0",
155
+ "typescript": "^5.9.3",
156
+ "zod": "4.6.6"
157
+ },
158
+ "publishConfig": {
159
+ "access": "public"
160
+ }
6
161
  }