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 +1 -1
- package/lib/client.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
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("
|
|
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: "
|
|
154
|
-
react.createElement("option", { value: "
|
|
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.
|
|
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",
|