@lexwdex-org/opencode-dcp 3.2.3 → 3.3.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/README.md
CHANGED
|
@@ -117,11 +117,11 @@ Each level overrides the previous, so project settings take priority over global
|
|
|
117
117
|
// Soft upper threshold: above this, DCP keeps injecting strong
|
|
118
118
|
// compression nudges (based on nudgeFrequency), so compression is
|
|
119
119
|
// much more likely. Accepts: number or "X%" of model context window.
|
|
120
|
-
"maxContextLimit":
|
|
120
|
+
"maxContextLimit": "85%",
|
|
121
121
|
// Soft lower threshold for reminder nudges: below this, turn/iteration
|
|
122
122
|
// reminders are off (compression less likely). At/above this, reminders
|
|
123
123
|
// are on. Accepts: number or "X%" of model context window.
|
|
124
|
-
"minContextLimit":
|
|
124
|
+
"minContextLimit": "50%",
|
|
125
125
|
// Optional per-model override for maxContextLimit by providerID/modelID.
|
|
126
126
|
// If present, this wins over the global maxContextLimit.
|
|
127
127
|
// Accepts: number or "X%".
|
|
@@ -143,7 +143,7 @@ Each level overrides the previous, so project settings take priority over global
|
|
|
143
143
|
"iterationNudgeThreshold": 15,
|
|
144
144
|
// Controls how likely compression is after user messages
|
|
145
145
|
// ("strong" = more likely, "soft" = less likely)
|
|
146
|
-
"nudgeForce": "
|
|
146
|
+
"nudgeForce": "strong",
|
|
147
147
|
// Tool names whose completed outputs are appended to the compression
|
|
148
148
|
"protectedTools": [],
|
|
149
149
|
// Preserve text wrapped in <protect>...</protect> when compressed
|
package/dist/index.js
CHANGED
|
@@ -1335,11 +1335,11 @@ var defaultConfig = {
|
|
|
1335
1335
|
permission: "allow",
|
|
1336
1336
|
showCompression: false,
|
|
1337
1337
|
summaryBuffer: true,
|
|
1338
|
-
maxContextLimit:
|
|
1339
|
-
minContextLimit:
|
|
1338
|
+
maxContextLimit: "85%",
|
|
1339
|
+
minContextLimit: "50%",
|
|
1340
1340
|
nudgeFrequency: 2,
|
|
1341
1341
|
iterationNudgeThreshold: 15,
|
|
1342
|
-
nudgeForce: "
|
|
1342
|
+
nudgeForce: "strong",
|
|
1343
1343
|
protectedTools: [...COMPRESS_DEFAULT_PROTECTED_TOOLS],
|
|
1344
1344
|
protectTags: false,
|
|
1345
1345
|
protectUserMessages: false
|
|
@@ -5002,21 +5002,21 @@ var COMPRESS_MESSAGE = `\u5C06\u5BF9\u8BDD\u4E2D\u9009\u5B9A\u7684\u5355\u6761\u
|
|
|
5002
5002
|
|
|
5003
5003
|
// lib/prompts/context-limit-nudge.ts
|
|
5004
5004
|
var CONTEXT_LIMIT_NUDGE = `<dcp-system-reminder>
|
|
5005
|
-
|
|
5005
|
+
\u4E25\u91CD\u8B66\u544A\uFF1A\u5DF2\u8FBE\u5230\u6700\u5927\u4E0A\u4E0B\u6587\u9650\u5236
|
|
5006
5006
|
|
|
5007
|
-
|
|
5007
|
+
\u4F60\u5F53\u524D\u5904\u4E8E\u6216\u5DF2\u8D85\u8FC7\u914D\u7F6E\u7684\u6700\u5927\u4E0A\u4E0B\u6587\u9608\u503C\u3002\u8FD9\u662F\u7D27\u6025\u7684\u4E0A\u4E0B\u6587\u6062\u590D\u65F6\u523B\u3002
|
|
5008
5008
|
|
|
5009
|
-
|
|
5009
|
+
\u4F60\u5FC5\u987B\u7ACB\u5373\u4F7F\u7528 \`compress\` \u5DE5\u5177\u3002\u5728\u5B8C\u6210\u538B\u7F29\u4E4B\u524D\uFF0C\u4E0D\u8981\u7EE7\u7EED\u6B63\u5E38\u63A2\u7D22\u3002
|
|
5010
5010
|
|
|
5011
|
-
|
|
5011
|
+
\u5982\u679C\u4F60\u6B63\u5728\u8FDB\u884C\u5173\u952E\u7684\u539F\u5B50\u64CD\u4F5C\uFF0C\u5148\u5B8C\u6210\u8BE5\u539F\u5B50\u6B65\u9AA4\uFF0C\u7136\u540E\u7ACB\u5373\u538B\u7F29\u3002
|
|
5012
5012
|
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5013
|
+
\u9009\u62E9\u8FC7\u7A0B
|
|
5014
|
+
\u4ECE\u8F83\u65E9\u7684\u3001\u5DF2\u5B8C\u6210\u7684\u5386\u53F2\u5F00\u59CB\uFF0C\u5728\u4E00\u6B21\u64CD\u4F5C\u4E2D\u6355\u83B7\u5C3D\u53EF\u80FD\u591A\u7684\u8FC7\u65F6\u4E0A\u4E0B\u6587\u3002
|
|
5015
|
+
\u9664\u975E\u6700\u65B0\u7684\u5DE5\u4F5C\u6D88\u606F\u5DF2\u660E\u663E\u7ED3\u675F\uFF0C\u5426\u5219\u4E0D\u8981\u9009\u62E9\u5B83\u4EEC\u3002
|
|
5016
5016
|
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5017
|
+
\u6458\u8981\u8981\u6C42
|
|
5018
|
+
\u4F60\u7684\u6458\u8981\u5FC5\u987B\u8986\u76D6\u6240\u9009\u6D88\u606F\u4E2D\u7684\u6240\u6709\u5173\u952E\u7EC6\u8282\uFF0C\u4EE5\u786E\u4FDD\u5DE5\u4F5C\u53EF\u4EE5\u7EE7\u7EED\u3002
|
|
5019
|
+
\u5982\u679C\u538B\u7F29\u8303\u56F4\u5305\u542B\u7528\u6237\u6D88\u606F\uFF0C\u5B8C\u6574\u4FDD\u7559\u7528\u6237\u610F\u56FE\u3002\u5BF9\u4E8E\u8F83\u77ED\u7684\u7528\u6237\u6D88\u606F\uFF0C\u4F18\u5148\u4F7F\u7528\u76F4\u63A5\u5F15\u7528\u4EE5\u907F\u514D\u8BED\u4E49\u6F02\u79FB\u3002
|
|
5020
5020
|
</dcp-system-reminder>
|
|
5021
5021
|
`;
|
|
5022
5022
|
|