dsh-progress-union 0.8.3 → 0.8.4
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 +12 -0
- package/README.md +3 -3
- package/client.js +28 -22
- package/dsh.plugin.json +1 -1
- package/package.json +1 -1
- package/test/client.test.mjs +8 -0
- package/test/settings.test.mjs +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
本项目的所有值得记录的变更都写在这里。版本号遵循语义化版本。
|
|
4
4
|
|
|
5
|
+
## 0.8.4 (2026-12-04)
|
|
6
|
+
|
|
7
|
+
**fix(settings):路由链卡提到设置页第一张;辅助 LLM 的 provider 占位符不再指向不存在的键,未填全时直接告。**
|
|
8
|
+
|
|
9
|
+
0.8.3 取消折叠后用户仍拿 prime-memory 对比说「差远了」——因为卡虽展开但排在第 4 张,不滚就看不到。同时本轮排查中我自己也被一个占位符误了一次,顺带查出配置面的真问题。
|
|
10
|
+
|
|
11
|
+
- **卡片排序**:「LLM 操作与队列提醒」整块上提为第一张(原顺序 ops 在第 4)。本次主要交付不应要求用户先滚到页底。
|
|
12
|
+
- **占位符修正**:辅助 LLM 的提供方输入框 placeholder 原写的是 `local-35b` —— 宿主注册的键是 `local-35`,`local-35b` 在配置里根本不存在。灰色占位被当成已存值看了两轮(包括我),现改为真实存在的 `deepseek-account` 风格示例(README 同一处错例一并改)。
|
|
13
|
+
- **未填全直接告**:`assistantReady()` 在 `mode=registered` 且 provider 或 model 为空时返回 false,观察者/审查整条静默不跑(L2087/L3308 都是早退)—— 而表单看上去像配好了。现在这种情况在提供方行下方给一条警示(新文案 `setAssistantIncomplete`,zh/en 成对),样式沿用本文件已有的琥珀档位,不发明新令牌。
|
|
14
|
+
- **回归闸**:`test/settings.test.mjs` 新增「路由链卡排第一 + 占位符不误导 + 未填全要给警示」;`test/client.test.mjs` 新增新文案 zh/en 成对闸。测试 268/268。
|
|
15
|
+
- 配置项、路由面、链编辑器行为均无变动;本次只动展示层与文档示例。
|
|
16
|
+
|
|
5
17
|
## 0.8.3 (2026-12-04)
|
|
6
18
|
|
|
7
19
|
**fix(ops):路由链卡不再默认折叠 —— 上一版的链编辑器事实上看不见。**
|
package/README.md
CHANGED
|
@@ -202,13 +202,13 @@ observer:
|
|
|
202
202
|
|
|
203
203
|
观察者默认是**规则版(零 LLM 费用)**。可选的辅助模型会把"清单 + 最近输出 + 最近动作 + 最近改动"交给一个小模型做审查:
|
|
204
204
|
|
|
205
|
-
**配置位置:设置 →
|
|
205
|
+
**配置位置:设置 → 进度板**(或插件详情页的同名卡片)。卡片从上到下依次是:**LLM 操作与队列提醒**(默认展开,模型路由链就在第一张卡里)、辅助 LLM(监控/审查)、观察者(监控)—— 这三张默认展开;下载感知与工序、官方 todo 同步、只读 API 默认折叠,点头部展开即可。观察者的滞后阈值在「观察者」卡里。
|
|
206
206
|
|
|
207
207
|
```yaml
|
|
208
208
|
assistant:
|
|
209
209
|
mode: '' # '' 关(默认)| 'registered' | 'direct'
|
|
210
|
-
provider:
|
|
211
|
-
model:
|
|
210
|
+
provider: deepseek-account # registered:Settings→模型 里的 provider 名(走宿主 llm.stream,免密钥)
|
|
211
|
+
model: deepseek-v4-pro # registered/direct 共用的模型 id
|
|
212
212
|
baseUrl: http://127.0.0.1:8000/v1 # direct 专用
|
|
213
213
|
apiKey: '' # direct 专用;快照只回布尔 hasApiKey
|
|
214
214
|
authority: both # slots | rounds | both
|
package/client.js
CHANGED
|
@@ -24,7 +24,7 @@ window.__ModuleLoader__.load({
|
|
|
24
24
|
var REPO_URL = "https://github.com/drscrewdriver/dsh-progress-union";
|
|
25
25
|
var STAR_NS = "progress-union";
|
|
26
26
|
var STAR_GEN = "v4"; /* ladder:gen */
|
|
27
|
-
var STAR_VERSION = "0.8.
|
|
27
|
+
var STAR_VERSION = "0.8.4"; /* ladder:ver */
|
|
28
28
|
var LANGS = ["zh", "en", "ja", "ko", "fr", "de", "it", "ru", "es", "pt"];
|
|
29
29
|
|
|
30
30
|
// 三代共享:GitHub 单色 mark(octicon 轮廓,fill 随 currentColor)。
|
|
@@ -456,6 +456,7 @@ window.__ModuleLoader__.load({
|
|
|
456
456
|
setModeDirect: '直连端点',
|
|
457
457
|
setProvider: '提供方',
|
|
458
458
|
setProviderHint: 'Settings→模型 里的 provider 名(registered 必填)',
|
|
459
|
+
setAssistantIncomplete: '提供方或模型还没填:观察者与审查都不会调用模型 —— 界面看着像已配好,实际没有生效。',
|
|
459
460
|
setModel: '模型',
|
|
460
461
|
setBaseUrl: '端点地址',
|
|
461
462
|
setApiKey: 'API 密钥',
|
|
@@ -696,6 +697,7 @@ window.__ModuleLoader__.load({
|
|
|
696
697
|
setModeDirect: 'Direct endpoint',
|
|
697
698
|
setProvider: 'Provider',
|
|
698
699
|
setProviderHint: 'Provider name under Settings → Models (required for registered)',
|
|
700
|
+
setAssistantIncomplete: 'Provider or model is still empty: neither the observer nor the audit will call a model. The form looks configured but nothing runs.',
|
|
699
701
|
setModel: 'Model',
|
|
700
702
|
setBaseUrl: 'Endpoint URL',
|
|
701
703
|
setApiKey: 'API key',
|
|
@@ -2473,6 +2475,7 @@ window.__ModuleLoader__.load({
|
|
|
2473
2475
|
.dsu-topline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
2474
2476
|
.dsu-chip { font-size: 11px; line-height: 1.6; padding: 1px 9px; border-radius: 999px; background: rgba(47,111,237,.12); color: #2f6fed; white-space: nowrap; }
|
|
2475
2477
|
.dsu-chip-warn { background: rgba(217,119,6,.14); color: #b45309; }
|
|
2478
|
+
.dsu-warn-line { font-size: 12px; line-height: 1.6; padding: 6px 8px; border-radius: 8px; background: rgba(217,119,6,.10); color: #b45309; }
|
|
2476
2479
|
.dsu-card { border: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.22)); border-radius: 12px; background: var(--dsw-alias-bg-layer-1, rgba(128,128,128,.04)); overflow: hidden; }
|
|
2477
2480
|
.dsu-card-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; user-select: none; }
|
|
2478
2481
|
.dsu-card-head:hover { background: rgba(128,128,128,.06); }
|
|
@@ -3038,13 +3041,36 @@ window.__ModuleLoader__.load({
|
|
|
3038
3041
|
h('span', { className: writable ? 'dsu-chip' : 'dsu-chip dsu-chip-warn' }, writable ? t('setLive') : t('setReadOnly')),
|
|
3039
3042
|
h('span', { className: 'dsu-hint' }, writable ? t('setTopHint') : t('setNoScope')),
|
|
3040
3043
|
),
|
|
3044
|
+
h(
|
|
3045
|
+
SettingsCard,
|
|
3046
|
+
{ title: t('setOpsGroup'), badge: t('setOpsBadge'), hint: t('setOpsHint') },
|
|
3047
|
+
h(SettingsRow, { label: t('setOpsEnabled') }, switchInput('ops', ops, 'enabled', true)),
|
|
3048
|
+
h(SettingsRow, { label: t('setOpsChain'), hint: t('setOpsChainHint') },
|
|
3049
|
+
h(SettingsChainEditor, {
|
|
3050
|
+
t,
|
|
3051
|
+
ops,
|
|
3052
|
+
writable,
|
|
3053
|
+
busy,
|
|
3054
|
+
onSubmit: commitChain,
|
|
3055
|
+
})),
|
|
3056
|
+
h(SettingsRow, { label: t('setOpsPreferLocal'), hint: t('setOpsPreferLocalHint') }, switchInput('ops', ops, 'preferLocal', true)),
|
|
3057
|
+
h(SettingsRow, { label: t('setNotifyMajor'), hint: t('setNotifyMajorHint') },
|
|
3058
|
+
h(SettingsSwitch, {
|
|
3059
|
+
checked: Object.prototype.hasOwnProperty.call(draft, 'notifyMajorChanges') ? draft.notifyMajorChanges : value.notifyMajorChanges !== false,
|
|
3060
|
+
disabled: !writable || busy,
|
|
3061
|
+
onChange: (v) => { setDraft((prev) => ({ ...prev, notifyMajorChanges: v })); void commit('notifyMajorChanges', v) },
|
|
3062
|
+
})),
|
|
3063
|
+
),
|
|
3041
3064
|
h(
|
|
3042
3065
|
SettingsCard,
|
|
3043
3066
|
{ title: t('setLlmGroup'), badge: t('setLlmBadge'), hint: t('setLlmHint') },
|
|
3044
3067
|
h(SettingsRow, { label: t('setMode') },
|
|
3045
3068
|
segmentInput('assistant', assistant, 'mode', '', [['', t('setModeOff')], ['registered', t('setModeRegistered')], ['direct', t('setModeDirect')]])),
|
|
3046
3069
|
mode === 'registered'
|
|
3047
|
-
? h(SettingsRow, { label: t('setProvider'), hint: t('setProviderHint') }, textInput('assistant', 'provider', '', 'local-
|
|
3070
|
+
? h(SettingsRow, { label: t('setProvider'), hint: t('setProviderHint') }, textInput('assistant', 'provider', '', 'local-35'))
|
|
3071
|
+
: null,
|
|
3072
|
+
mode === 'registered' && (!String(readField('assistant', 'provider', '')).trim() || !String(readField('assistant', 'model', '')).trim())
|
|
3073
|
+
? h('div', { className: 'dsu-warn-line' }, t('setAssistantIncomplete'))
|
|
3048
3074
|
: null,
|
|
3049
3075
|
h(SettingsRow, { label: t('setModel') }, textInput('assistant', 'model', '', mode === 'direct' ? 'qwen2.5-3b' : 'Qwen3.6-35B-A3B')),
|
|
3050
3076
|
mode === 'direct' ? h(SettingsRow, { label: t('setBaseUrl') }, textInput('assistant', 'baseUrl', '', 'http://127.0.0.1:8000/v1')) : null,
|
|
@@ -3077,26 +3103,6 @@ window.__ModuleLoader__.load({
|
|
|
3077
3103
|
h(SettingsRow, { label: t('setGlossNarrate') }, switchInput('toolGloss', toolGloss, 'softNarrate', true)),
|
|
3078
3104
|
h(SettingsRow, { label: t('setGlossMaxLen') }, numberInput('toolGloss', 'maxLen', 46, 1, '')),
|
|
3079
3105
|
),
|
|
3080
|
-
h(
|
|
3081
|
-
SettingsCard,
|
|
3082
|
-
{ title: t('setOpsGroup'), badge: t('setOpsBadge'), hint: t('setOpsHint') },
|
|
3083
|
-
h(SettingsRow, { label: t('setOpsEnabled') }, switchInput('ops', ops, 'enabled', true)),
|
|
3084
|
-
h(SettingsRow, { label: t('setOpsChain'), hint: t('setOpsChainHint') },
|
|
3085
|
-
h(SettingsChainEditor, {
|
|
3086
|
-
t,
|
|
3087
|
-
ops,
|
|
3088
|
-
writable,
|
|
3089
|
-
busy,
|
|
3090
|
-
onSubmit: commitChain,
|
|
3091
|
-
})),
|
|
3092
|
-
h(SettingsRow, { label: t('setOpsPreferLocal'), hint: t('setOpsPreferLocalHint') }, switchInput('ops', ops, 'preferLocal', true)),
|
|
3093
|
-
h(SettingsRow, { label: t('setNotifyMajor'), hint: t('setNotifyMajorHint') },
|
|
3094
|
-
h(SettingsSwitch, {
|
|
3095
|
-
checked: Object.prototype.hasOwnProperty.call(draft, 'notifyMajorChanges') ? draft.notifyMajorChanges : value.notifyMajorChanges !== false,
|
|
3096
|
-
disabled: !writable || busy,
|
|
3097
|
-
onChange: (v) => { setDraft((prev) => ({ ...prev, notifyMajorChanges: v })); void commit('notifyMajorChanges', v) },
|
|
3098
|
-
})),
|
|
3099
|
-
),
|
|
3100
3106
|
h(
|
|
3101
3107
|
SettingsCard,
|
|
3102
3108
|
{ title: t('setTodoGroup'), badge: t('setTodoSync'), hint: t('setTodoHint'), defaultOpen: false },
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-progress-union",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"description": "进度结合原型:board 槽位真相源(用户可编辑、diff+ack 增量同步、staleness nudge)× 鲸程时间引擎(step 计数、ETA 三档 board>todo>local>prior、悬浮迷你条),向压缩插件暴露只读三层进度锚点 progressAnchor(board 语义锚 + time 时间锚 + userEdits 未确认改动,service 与 HTTP 双平面),并在 0.6.0 起每回合落一版会话归档(handoff 规则摘要 + 重启注入一次)。",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-progress-union",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "进度结合原型:dsh-progress-board 槽位真相源 × 鲸程 widget 时间/ETA 引擎;向压缩插件暴露只读三层进度锚点(service + HTTP 双平面);0.6.0 起每回合落一版会话归档(handoff + 重启注入一次)。基于 l3j3y3/dsh-progress-board (MIT) 与 uuhihj/task-progress-bar dsh-progress-widget (MIT)。",
|
|
6
6
|
"license": "MIT",
|
package/test/client.test.mjs
CHANGED
|
@@ -443,6 +443,14 @@ test('v0.8.1:链编辑器文案 zh/en 成对', () => {
|
|
|
443
443
|
assert.match(src, /setOpsChainMax: 'Chain capped at N rows/, 'en 链长上限文案要带 N 占位')
|
|
444
444
|
})
|
|
445
445
|
|
|
446
|
+
// v0.8.4:registered 模式下 provider/model 未填时的警示行文案。
|
|
447
|
+
// 这一行专门用来防「界面看着像配好了、实际 assistantReady() 为 false」的误读。
|
|
448
|
+
test('v0.8.4:辅助 LLM 未填全的警示行文案 zh/en 成对', () => {
|
|
449
|
+
const src = fs.readFileSync(clientFile, 'utf8').replace(/\r\n/g, '\n')
|
|
450
|
+
const hits = src.match(/\n\s+setAssistantIncomplete: '[^']+',/g) || []
|
|
451
|
+
assert.equal(hits.length, 2, `setAssistantIncomplete 必须在 zh/en 各出现一次(实得 ${hits.length})`)
|
|
452
|
+
})
|
|
453
|
+
|
|
446
454
|
test('0.7.0:新增任务 wake 与 R4 落队列互斥,同一次改板队列里只留一条', () => {
|
|
447
455
|
const src = fs.readFileSync(clientFile, 'utf8').replace(/\r\n/g, '\n')
|
|
448
456
|
// 真机偏差:面板加两项后 input-traffic 出现两条同文排队条目——客户端 wake 与
|
package/test/settings.test.mjs
CHANGED
|
@@ -195,6 +195,25 @@ test('v0.8.1:路由链编辑器的写面与降级形态', () => {
|
|
|
195
195
|
assert.ok(!/setOpsGroup'[^}]*defaultOpen: false/.test(src), 'ops 卡不得再默认折叠,主+fallback 要一眼可见')
|
|
196
196
|
})
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* v0.8.4 真机回灌:取消折叠只是第一步——卡仍在第 4 张,不滚就看不到;
|
|
200
|
+
* 而 provider 输入框的占位符写的是宿主并不存在的 `local-35b`,用户会把
|
|
201
|
+
* 灰色占位当已存值(本轮我就误判过一次),而 registered + 空 provider
|
|
202
|
+
* 会让 assistantReady() 直接返回 false,观察者静默不跑。
|
|
203
|
+
*/
|
|
204
|
+
test('设置页:路由链卡排第一,且占位符不误导、未填全要给警示', () => {
|
|
205
|
+
const file = fileURLToPath(new URL('../client.js', import.meta.url))
|
|
206
|
+
const src = fs.readFileSync(file, 'utf8').replace(/\r\n/g, '\n')
|
|
207
|
+
const iOps = src.indexOf("title: t('setOpsGroup')")
|
|
208
|
+
const iLlm = src.indexOf("title: t('setLlmGroup')")
|
|
209
|
+
const iObs = src.indexOf("title: t('setObserverGroup')")
|
|
210
|
+
assert.ok(iOps > 0 && iOps < iLlm && iLlm < iObs, `渲染顺序必须是 ops→LLM→观察者(实得 ops=${iOps} llm=${iLlm} obs=${iObs})`)
|
|
211
|
+
assert.ok(!src.includes("'local-35b'"), 'provider 占位符不得写宿主不存在的 local-35b')
|
|
212
|
+
assert.match(src, /textInput\('assistant', 'provider', '', 'local-35'\)/, '占位符要用宿主真实注册键 local-35')
|
|
213
|
+
assert.match(src, /mode === 'registered' && \(!String\(readField\('assistant', 'provider', ''\)\)\.trim\(\)/, 'registered 但 provider/model 未填全时必须给警示行')
|
|
214
|
+
assert.match(src, /className: 'dsu-warn-line'/, '警示行要有独立样式(沿用既有琥珀档位,不发明令牌)')
|
|
215
|
+
})
|
|
216
|
+
|
|
198
217
|
/**
|
|
199
218
|
* v0.7.7 真机回灌:0.7.6 修好写面后,页脚出现「已保存」与「有未保存的改动」并存
|
|
200
219
|
* —— 开关拨完即落盘,但乐观草稿仍按「键存在」计脏。脏位必须按值比对。
|