dsh-manual-compact-plugin 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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## 功能
8
8
 
9
- - **保留最近 N 条**:5 / 10(推荐)/ 20 / 30 / 50 / 自定义
9
+ - **保留最近 N 条**:1 / 3 / 5(推荐)/ 10 / 20 / 50 / 自定义
10
10
  - **处理方式**:
11
11
  - 完成一批后停止
12
12
  - 分批处理直到完成
package/lib/client.js CHANGED
@@ -97,7 +97,7 @@ window.__ModuleLoader__.load({
97
97
  function CompactControls(props) {
98
98
  var state = useNamespaceSnapshot(props.scope);
99
99
  var value = state.value || {};
100
- var [keep, setKeep] = useState("10");
100
+ var [keep, setKeep] = useState("5");
101
101
  var [customKeep, setCustomKeep] = useState("");
102
102
  var [mode, setMode] = useState("stop");
103
103
  var [localError, setLocalError] = useState("");
@@ -150,10 +150,11 @@ window.__ModuleLoader__.load({
150
150
  react.createElement(
151
151
  "select",
152
152
  { value: keep, disabled: busy, onChange: function (e) { setKeep(e.target.value); } },
153
- react.createElement("option", { value: "5" }, "5 条"),
154
- react.createElement("option", { value: "10" }, "10 条(推荐)"),
153
+ react.createElement("option", { value: "1" }, "1 条"),
154
+ react.createElement("option", { value: "3" }, "3 "),
155
+ react.createElement("option", { value: "5" }, "5 条(推荐)"),
156
+ react.createElement("option", { value: "10" }, "10 条"),
155
157
  react.createElement("option", { value: "20" }, "20 条"),
156
- react.createElement("option", { value: "30" }, "30 条"),
157
158
  react.createElement("option", { value: "50" }, "50 条"),
158
159
  react.createElement("option", { value: "custom" }, "自定义")
159
160
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-manual-compact-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Manual context compaction for DeepSeek Harness: keep the latest N conversation items with stop or batch mode and a per-session compaction archive — embedded in the context meter popup when the meter panel slot exists, or a composer button otherwise.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",