@aiwayds/dsh-dcp 0.1.2 → 0.2.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.
Files changed (2) hide show
  1. package/cordis.patch.yml +16 -0
  2. package/package.json +8 -2
@@ -0,0 +1,16 @@
1
+ # dsh-dcp bundle patch: mounts dsh-dcp as the compaction backend.
2
+ #
3
+ # Adding this package to a profile's bundles (dsh plugin add @aiwayds/dsh-dcp,
4
+ # or listing it under dsh.profile.bundles) applies this patch automatically —
5
+ # the default LLM summarizer (compaction-basic) is disabled and dsh-dcp is
6
+ # inserted alongside it. Standalone use therefore needs NO manual
7
+ # cordis.patch.yml editing.
8
+
9
+ - id: compaction-basic
10
+ disabled: true
11
+ - insert:
12
+ - id: dsh-dcp
13
+ name: '@aiwayds/dsh-dcp'
14
+ config:
15
+ thresholdRatio: 0.7
16
+ language: zh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-dcp",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Deterministic context-pruning compaction backend for dsh (DeepSeek Harness) — zero-LLM summaries, /dcp command, works out of the box. Design references Opencode-DCP/opencode-dynamic-context-pruning.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14,7 +14,8 @@
14
14
  "lib",
15
15
  "README.md",
16
16
  "LICENSE",
17
- "cordis.patch.example.yml"
17
+ "cordis.patch.example.yml",
18
+ "cordis.patch.yml"
18
19
  ],
19
20
  "scripts": {
20
21
  "test": "node --test"
@@ -63,5 +64,10 @@
63
64
  "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
64
65
  "@deepseek-ai/dsh-session": "0.1.0-rc.6",
65
66
  "@deepseek-ai/dsh-token-meter": "0.1.0-rc.6"
67
+ },
68
+ "dsh": {
69
+ "bundle": {
70
+ "patch": "./cordis.patch.yml"
71
+ }
66
72
  }
67
73
  }