dsh-reasoning-distill 0.1.8 → 0.1.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  本插件的版本变更记录。
4
4
 
5
+ ## 0.1.9
6
+
7
+ - README 开头补充「适用场景」说明:本插件只在单轮次、多步工具调用的超长单轮对话里划算;多轮问答中每轮步骤少、压缩收益有限,且 DeepSeek 的 API 默认不会参考之前轮次的 `reasoning_content`(仅请求携带 tools 时拼接进上下文),改写还会让缓存前缀失效、后续请求按未命中计费,整体往往难以抵消。插件面向「说完任务就不管」的许愿式编程,在根据用户反馈反复精修的阶段建议关闭。
8
+ - 本次没有代码改动。
9
+
5
10
  ## 0.1.8
6
11
 
7
12
  - **调整初始配置**:刚安装时默认规则里的「对可续接子代理启用」「附带工具调用结果」「压缩最终回答轮」现在默认关闭。新建的逐模型规则同样以一个全关的初始层开始(三种会话类型全关,上述三项也显式关闭),不会因为现有默认规则把它们开着而自动继承为开。
package/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  把过长的模型思考压缩成核心内容,之后每次请求都重放压缩版,省下重复发送的 token;同时给出每个会话的开销与节省报告。
4
4
 
5
+ > **⚠️ 适用场景**
6
+ >
7
+ > 本插件只在 **「单轮次、多步工具调用的超长单轮对话」** 里划算。模型连续调用很多步工具时,同一段历史在每一步都要重新发送,压缩后的思考会在同一轮里被反复重放,省下的输入 token 才能累积到超过蒸馏开销。
8
+ >
9
+ > **「多轮问答」** 中每轮通常只有少量步骤,压缩省下的 token 有限。更关键的是,**DeepSeek 的 API 在多轮对话中不会参考之前轮次的 `reasoning_content`**(只有请求携带 tools 时才会拼接进上下文),压缩后的思考通常不会被模型读到;改写却会改变历史内容,而上下文缓存按前缀精确匹配,改写点之后的内容会变成未命中输入,再加上每次蒸馏的费用,整体往往难以抵消。
10
+ >
11
+ > 可以说这个插件的设计目标就是 **「说完任务就什么都不管了」的「许愿式编程」** ,也就是一次说清任务、让 agent 自行跑完很长的工具调用链。在 **「根据用户反馈反复精修」** 的阶段,对话形态是多轮问答,**建议关闭插件**(关掉设置里的总开关即可)。
12
+
5
13
  > 插件**默认关闭**,装好后需要在「设置 → 思考压缩」里选中一个改写后端并手动打开总开关。
6
14
 
7
15
  > **版本与安装方式(先看这里)**
@@ -1359,49 +1359,49 @@ window.__ModuleLoader__.load({
1359
1359
  document.head.appendChild(tag);
1360
1360
  }
1361
1361
  var Settings_module_css_default = {
1362
- "pickerList": "jP3NOa_pickerList",
1363
- "primary": "jP3NOa_primary",
1362
+ "logBox": "jP3NOa_logBox",
1363
+ "modalHead": "jP3NOa_modalHead",
1364
+ "holidayBox": "jP3NOa_holidayBox",
1365
+ "pickerItem": "jP3NOa_pickerItem",
1366
+ "section": "jP3NOa_section",
1367
+ "iconButton": "jP3NOa_iconButton",
1368
+ "peakBox": "jP3NOa_peakBox",
1369
+ "picker": "jP3NOa_picker",
1370
+ "muted": "jP3NOa_muted",
1364
1371
  "modalBackdrop": "jP3NOa_modalBackdrop",
1365
- "modal": "jP3NOa_modal",
1366
- "modalBody": "jP3NOa_modalBody",
1367
- "log": "jP3NOa_log",
1368
- "prompt": "jP3NOa_prompt",
1369
- "actions": "jP3NOa_actions",
1370
- "note": "jP3NOa_note",
1371
- "badge": "jP3NOa_badge",
1372
- "preview": "jP3NOa_preview",
1372
+ "checks": "jP3NOa_checks",
1373
+ "installProgress": "jP3NOa_installProgress",
1374
+ "itemBody": "jP3NOa_itemBody",
1375
+ "search": "jP3NOa_search",
1373
1376
  "error": "jP3NOa_error",
1374
- "pickerPanel": "jP3NOa_pickerPanel",
1375
- "pickerItem": "jP3NOa_pickerItem",
1376
- "installEntry": "jP3NOa_installEntry",
1377
- "modeCards": "jP3NOa_modeCards",
1377
+ "capBox": "jP3NOa_capBox",
1378
+ "item": "jP3NOa_item",
1379
+ "primary": "jP3NOa_primary",
1380
+ "secondary": "jP3NOa_secondary",
1381
+ "header": "jP3NOa_header",
1382
+ "installBlock": "jP3NOa_installBlock",
1378
1383
  "toggle": "jP3NOa_toggle",
1379
1384
  "modeCard": "jP3NOa_modeCard",
1385
+ "log": "jP3NOa_log",
1386
+ "installEntry": "jP3NOa_installEntry",
1387
+ "actions": "jP3NOa_actions",
1388
+ "pickerPanel": "jP3NOa_pickerPanel",
1389
+ "badge": "jP3NOa_badge",
1380
1390
  "sectionHeading": "jP3NOa_sectionHeading",
1381
- "itemBody": "jP3NOa_itemBody",
1382
- "installProgress": "jP3NOa_installProgress",
1383
- "muted": "jP3NOa_muted",
1384
- "header": "jP3NOa_header",
1385
- "section": "jP3NOa_section",
1386
- "page": "jP3NOa_page",
1387
- "checks": "jP3NOa_checks",
1388
- "iconButton": "jP3NOa_iconButton",
1389
1391
  "priceGrid": "jP3NOa_priceGrid",
1390
- "logBox": "jP3NOa_logBox",
1391
- "route": "jP3NOa_route",
1392
- "search": "jP3NOa_search",
1393
- "secondary": "jP3NOa_secondary",
1394
- "peakBox": "jP3NOa_peakBox",
1395
- "holidayBox": "jP3NOa_holidayBox",
1392
+ "field": "jP3NOa_field",
1393
+ "preview": "jP3NOa_preview",
1396
1394
  "backendOptions": "jP3NOa_backendOptions",
1397
1395
  "rule": "jP3NOa_rule",
1398
- "item": "jP3NOa_item",
1399
- "installBlock": "jP3NOa_installBlock",
1400
- "modalHead": "jP3NOa_modalHead",
1396
+ "modal": "jP3NOa_modal",
1397
+ "pickerList": "jP3NOa_pickerList",
1398
+ "modalBody": "jP3NOa_modalBody",
1401
1399
  "steps": "jP3NOa_steps",
1402
- "field": "jP3NOa_field",
1403
- "picker": "jP3NOa_picker",
1404
- "capBox": "jP3NOa_capBox"
1400
+ "note": "jP3NOa_note",
1401
+ "modeCards": "jP3NOa_modeCards",
1402
+ "prompt": "jP3NOa_prompt",
1403
+ "route": "jP3NOa_route",
1404
+ "page": "jP3NOa_page"
1405
1405
  };
1406
1406
  //#endregion
1407
1407
  //#region src/client/InstallBackend.tsx
@@ -2834,41 +2834,41 @@ window.__ModuleLoader__.load({
2834
2834
  document.head.appendChild(tag);
2835
2835
  }
2836
2836
  var View_module_css_default = {
2837
- "summary": "_7CZWHG_summary",
2838
- "textBlock": "_7CZWHG_textBlock",
2839
- "secondary": "_7CZWHG_secondary",
2840
2837
  "facts": "_7CZWHG_facts",
2841
- "positive": "_7CZWHG_positive",
2842
- "section": "_7CZWHG_section",
2843
- "activity": "_7CZWHG_activity",
2838
+ "popupHead": "_7CZWHG_popupHead",
2839
+ "header": "_7CZWHG_header",
2840
+ "entry": "_7CZWHG_entry",
2841
+ "actions": "_7CZWHG_actions",
2842
+ "blockedBanner": "_7CZWHG_blockedBanner",
2843
+ "popupFacts": "_7CZWHG_popupFacts",
2844
2844
  "metric": "_7CZWHG_metric",
2845
- "entryBody": "_7CZWHG_entryBody",
2846
- "negative": "_7CZWHG_negative",
2845
+ "iconButton": "_7CZWHG_iconButton",
2846
+ "activityDotBlocked": "_7CZWHG_activityDotBlocked",
2847
+ "secondary": "_7CZWHG_secondary",
2848
+ "note": "_7CZWHG_note",
2849
+ "popupList": "_7CZWHG_popupList",
2850
+ "summary": "_7CZWHG_summary",
2847
2851
  "activityDot": "_7CZWHG_activityDot",
2848
- "muted": "_7CZWHG_muted",
2852
+ "sessionInfo": "_7CZWHG_sessionInfo",
2849
2853
  "activityLabel": "_7CZWHG_activityLabel",
2850
- "popup": "_7CZWHG_popup",
2851
- "activeRow": "_7CZWHG_activeRow",
2852
- "note": "_7CZWHG_note",
2853
- "popupRow": "_7CZWHG_popupRow",
2854
- "activityDotBlocked": "_7CZWHG_activityDotBlocked",
2855
2854
  "activityWhy": "_7CZWHG_activityWhy",
2856
- "popupList": "_7CZWHG_popupList",
2857
- "popupFacts": "_7CZWHG_popupFacts",
2858
- "popupHead": "_7CZWHG_popupHead",
2859
- "blockedBanner": "_7CZWHG_blockedBanner",
2855
+ "error": "_7CZWHG_error",
2856
+ "positive": "_7CZWHG_positive",
2857
+ "section": "_7CZWHG_section",
2860
2858
  "rdPulse": "_7CZWHG_rdPulse",
2861
- "entry": "_7CZWHG_entry",
2862
- "sessionInfo": "_7CZWHG_sessionInfo",
2863
- "iconButton": "_7CZWHG_iconButton",
2864
- "header": "_7CZWHG_header",
2865
- "headerTrigger": "_7CZWHG_headerTrigger",
2866
- "entryTitle": "_7CZWHG_entryTitle",
2859
+ "entryBody": "_7CZWHG_entryBody",
2860
+ "muted": "_7CZWHG_muted",
2867
2861
  "page": "_7CZWHG_page",
2868
2862
  "sessionRow": "_7CZWHG_sessionRow",
2869
- "error": "_7CZWHG_error",
2863
+ "negative": "_7CZWHG_negative",
2864
+ "headerTrigger": "_7CZWHG_headerTrigger",
2865
+ "popup": "_7CZWHG_popup",
2866
+ "popupRow": "_7CZWHG_popupRow",
2870
2867
  "popupActions": "_7CZWHG_popupActions",
2871
- "actions": "_7CZWHG_actions"
2868
+ "textBlock": "_7CZWHG_textBlock",
2869
+ "entryTitle": "_7CZWHG_entryTitle",
2870
+ "activity": "_7CZWHG_activity",
2871
+ "activeRow": "_7CZWHG_activeRow"
2872
2872
  };
2873
2873
  //#endregion
2874
2874
  //#region src/client/ActivityChip.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-reasoning-distill",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "Distill over-long model reasoning into its useful core and replay the distilled version on every later request, with a per-session cost report.",
6
6
  "license": "MIT",