dsh-go-token-diet 2.1.0 → 2.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/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| 输入框上方的胶囊 | `上下文 63%`(超过 60% 变黄,85% 变红;有超 8K 的工具输出会提前提醒) |
|
|
11
11
|
| 面板(对话详情页「插件」/ 全部功能) | 上下文进度条 + 缓存命中、按工具分的输出排行、超 8K 条目数、最近输入/输出/请求数、一句建议 |
|
|
12
12
|
| 每个回合的尾注 | `入 12K · 出 1.2K` |
|
|
13
|
-
| 面板按钮 |
|
|
13
|
+
| 面板按钮 | **压缩**(把压缩请求填进输入框)、**复制报告** |
|
|
14
14
|
|
|
15
15
|
## 它怎么算的
|
|
16
16
|
|
package/lib/index.js
CHANGED
|
@@ -264,7 +264,7 @@ function dataFor(report, zh) {
|
|
|
264
264
|
let adviceTone = 'info'
|
|
265
265
|
if (clamped !== null && clamped >= 80) {
|
|
266
266
|
advice = zh
|
|
267
|
-
? '上下文已到 ' + Math.round(clamped) + '
|
|
267
|
+
? '上下文已到 ' + Math.round(clamped) + '%,点「压缩」把请求填进输入框再发送。'
|
|
268
268
|
: 'Context at ' + Math.round(clamped) + '%, tap “Compact” to put the request in the composer.'
|
|
269
269
|
adviceTone = 'warn'
|
|
270
270
|
} else if (report.bigCount > 0) {
|
|
@@ -381,7 +381,7 @@ function panelView(zh) {
|
|
|
381
381
|
{
|
|
382
382
|
type: 'actions',
|
|
383
383
|
items: [
|
|
384
|
-
{ label: t('
|
|
384
|
+
{ label: t('压缩', 'Compact'), action: 'compact', icon: 'archive', style: 'primary' },
|
|
385
385
|
{ label: t('复制报告', 'Copy report'), action: 'copy', icon: 'copy' },
|
|
386
386
|
],
|
|
387
387
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-go-token-diet",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Token diet for dsh-go: see which tool results and turns are eating your context, then hand a compaction request to the agent with one tap.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|