dsh-context-fold 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/locale/en.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "meta": {
3
+ "title": "Context Fold (dsh-context-fold)",
4
+ "description": "Stage-boundary folding of completed tool results and historical reasoning: conclusions stay in the window, full text moves to a spill file, and /context-fold reports savings and re-reads."
5
+ },
6
+ "tab": {
7
+ "contextFold": "Context fold"
8
+ }
9
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "meta": {
3
+ "title": "上下文折叠 (dsh-context-fold)",
4
+ "description": "阶段边界的 tool 结果与历史 reasoning 折叠:结论留在窗口里,正文落到 spill 文件,用 /context-fold 报告折叠量与被重读次数。"
5
+ },
6
+ "tab": {
7
+ "contextFold": "上下文折叠"
8
+ }
9
+ }
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
- {
2
- "name": "dsh-context-fold",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "dsh-context-fold",
3
+ "version": "0.1.0",
4
+ "description": "dsh-context-fold: stage-boundary folding of completed tool results into a conclusion plus a spill path, deterministic and replay-safe.",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./client": "./lib/client.js",
14
+ "./package.json": "./package.json",
15
+ "./locale/*.json": "./locale/*.json"
16
+ },
17
+ "files": [
18
+ "lib",
19
+ "cordis.patch.yml",
20
+ "locale/*.json",
21
+ "icon.svg",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "scripts": {
26
+ "build": "tsdown",
27
+ "typecheck": "tsc --noEmit",
28
+ "test": "vitest run",
29
+ "check": "tsc --noEmit && vitest run && tsdown"
30
+ },
31
+ "engines": {
32
+ "node": "^22.19.0 || >=24.0.0",
33
+ "dsh": ">=0.2.1-rc.2 || >=0.2.2-rc.1"
34
+ },
35
+ "dsh": {
36
+ "bundle": {
37
+ "patch": "./cordis.patch.yml"
38
+ }
39
+ },
40
+ "peerDependencies": {
41
+ "@deepseek-ai/cordis": "^4.0.4",
42
+ "@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
43
+ "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
44
+ "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
45
+ "@deepseek-ai/dsh-spill": "^0.2.1-rc.2",
46
+ "@deepseek-ai/dsh-token-meter": "^0.2.1-rc.2",
47
+ "@deepseek-ai/schemastery": "^3.18.2"
48
+ },
49
+ "devDependencies": {
50
+ "@deepseek-ai/cordis": "4.1.0",
51
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
52
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.1",
53
+ "@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
54
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
55
+ "@deepseek-ai/dsh-session": "0.2.2-rc.1",
56
+ "@deepseek-ai/dsh-spill": "0.2.2-rc.1",
57
+ "@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
58
+ "@deepseek-ai/schemastery": "3.19.0",
59
+ "@types/node": "22.20.0",
60
+ "tsdown": "0.22.14",
61
+ "typescript": "6.0.3",
62
+ "vitest": "4.1.8"
63
+ },
64
+ "icon": "icon.svg"
65
+ }