dsh-agent-team-playbook 1.37.0 → 1.37.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/CHANGELOG.md +7 -0
- package/lib/dshgo.js +49 -37
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
## 插件包
|
|
6
6
|
|
|
7
|
+
### 1.37.1
|
|
8
|
+
|
|
9
|
+
- 修原生「处理同名文件」面板状态不更新:桥接会缓存 `data` 的结果(Feed),`refresh` 只重取视图,
|
|
10
|
+
文件变化后面板仍显示旧状态(实测:注入差异后仍显示"已安装且一致")。
|
|
11
|
+
现在面板打开期间每 4 秒重扫并 emit,关闭时(cleanup)停止轮询
|
|
12
|
+
- 本地实测:干净安装 → 「已安装且一致」;注入差异 → 4 秒内变「共 1 项冲突」;关闭后不再 emit
|
|
13
|
+
|
|
7
14
|
### 1.37.0
|
|
8
15
|
|
|
9
16
|
- **原生界面并入主包**:`package.json` 增加顶层 `dshGo` 清单,桥接代码移到 `lib/dshgo.js`
|
package/lib/dshgo.js
CHANGED
|
@@ -172,46 +172,58 @@ export function attachDshGo(ctx, { playbookDir }) {
|
|
|
172
172
|
],
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
|
-
data:
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
data: (scope, emit) => {
|
|
176
|
+
// 桥接会缓存 data 的结果(Feed),refresh 只重取视图;文件变化必须靠再次 emit。
|
|
177
|
+
// 面板打开期间每 4 秒重扫一次,关闭时(cleanup)停掉。
|
|
178
|
+
let stopped = false
|
|
179
|
+
const render = async () => {
|
|
180
|
+
if (stopped) return
|
|
181
|
+
const got = await readState(scope)
|
|
182
|
+
if (stopped) return
|
|
183
|
+
if (got.state !== 'ok') {
|
|
184
|
+
emit({
|
|
185
|
+
headline:
|
|
186
|
+
got.state === 'no-workspace'
|
|
187
|
+
? '拿不到当前工作区:请在这个对话里打开一个项目'
|
|
188
|
+
: `扫描失败:${got.message ?? ''}`,
|
|
189
|
+
dir: '—',
|
|
190
|
+
remaining: '—',
|
|
191
|
+
current: '—',
|
|
192
|
+
reason: '',
|
|
193
|
+
hint: '也可以直接用命令:/atp install',
|
|
194
|
+
})
|
|
195
|
+
return
|
|
196
|
+
}
|
|
197
|
+
const key = got.conflicts.map((c) => c.rel).join('|')
|
|
198
|
+
const entry = decisionState(scope, key)
|
|
199
|
+
const total = got.conflicts.length
|
|
200
|
+
const pending = got.conflicts.map((c, i) => ({ ...c, index: i })).filter((c) => !entry.map.has(c.index))
|
|
201
|
+
const current = pending[0]
|
|
202
|
+
const notInstalled = total === 0 && got.installed === false
|
|
203
|
+
const installedClean = total === 0 && got.installed === true
|
|
178
204
|
emit({
|
|
179
|
-
headline:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
205
|
+
headline: notInstalled
|
|
206
|
+
? '未安装:点「安装到工作区」即可写入。'
|
|
207
|
+
: installedClean
|
|
208
|
+
? '已安装,且内容与当前版本一致——重复安装不会改动任何文件。'
|
|
209
|
+
: `共 ${total} 项冲突,已决定 ${total - pending.length} 项`,
|
|
210
|
+
dir: got.dir,
|
|
211
|
+
remaining: `${pending.length} / ${total}`,
|
|
212
|
+
current: current === undefined ? '—' : `${current.index + 1}. ${current.rel}`,
|
|
213
|
+
reason: current?.reason ?? '',
|
|
214
|
+
hint: notInstalled
|
|
215
|
+
? '回到「协作规程」面板点「安装到工作区」。'
|
|
216
|
+
: installedClean
|
|
217
|
+
? '想把文件强制刷成当前版本,用「协作规程」里的「覆盖式安装」。'
|
|
218
|
+
: '每点一项即定案;全部定案后自动执行 /atp apply。要改名请用命令:/atp apply 1=改名:新名字',
|
|
188
219
|
})
|
|
189
|
-
return () => {}
|
|
190
220
|
}
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const installedClean = total === 0 && got.installed === true
|
|
198
|
-
emit({
|
|
199
|
-
headline: notInstalled
|
|
200
|
-
? '未安装:点「安装到工作区」即可写入。'
|
|
201
|
-
: installedClean
|
|
202
|
-
? '已安装,且内容与当前版本一致——重复安装不会改动任何文件。'
|
|
203
|
-
: `共 ${total} 项冲突,已决定 ${total - pending.length} 项`,
|
|
204
|
-
dir: got.dir,
|
|
205
|
-
remaining: `${pending.length} / ${total}`,
|
|
206
|
-
current: current === undefined ? '—' : `${current.index + 1}. ${current.rel}`,
|
|
207
|
-
reason: current?.reason ?? '',
|
|
208
|
-
hint: notInstalled
|
|
209
|
-
? '回到「协作规程」面板点「安装到工作区」。'
|
|
210
|
-
: installedClean
|
|
211
|
-
? '想把文件强制刷成当前版本,用「协作规程」里的「覆盖式安装」。'
|
|
212
|
-
: '每点一项即定案;全部定案后自动执行 /atp apply。要改名请用命令:/atp apply 1=改名:新名字',
|
|
213
|
-
})
|
|
214
|
-
return () => {}
|
|
221
|
+
void render()
|
|
222
|
+
const timer = setInterval(() => void render(), 4000)
|
|
223
|
+
return () => {
|
|
224
|
+
stopped = true
|
|
225
|
+
clearInterval(timer)
|
|
226
|
+
}
|
|
215
227
|
},
|
|
216
228
|
actions: {
|
|
217
229
|
reload: () => ({ refresh: true }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agent-team-playbook",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.1",
|
|
4
4
|
"description": "DeepSeek Harness plugin that brings an executable multi-agent collaboration workflow (charter, triage tiers, six-stage pipeline, audit gates, experience library): a read-only /agent-team command plus a collision-aware installer for the documents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|