dsh-agent-team-playbook 1.31.1 → 1.31.2

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.
Files changed (2) hide show
  1. package/client.js +35 -10
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -116,9 +116,26 @@ div:has(> .atp-wrap){ margin-left: 0 !important; }
116
116
  )
117
117
  }
118
118
 
119
- function LinkButton({ onClick, children }) {
120
- if (typeof Button === 'function') return h(Button, { onClick, variant: 'secondary' }, children)
121
- return h('button', { type: 'button', onClick }, children)
119
+ /** 文字链式按钮(无边框),hover 出淡底;primary 用主色加粗。 */
120
+ function LinkButton({ onClick, children, primary = false }) {
121
+ const [hover, setHover] = React.useState(false)
122
+ return h('button', {
123
+ type: 'button',
124
+ style: {
125
+ border: 0,
126
+ borderRadius: 6,
127
+ background: hover ? 'var(--dsw-alias-interactive-bg-hover, rgba(127,127,127,.18))' : 'none',
128
+ color: primary ? 'var(--dsw-alias-label-primary, inherit)' : 'var(--dsw-alias-label-secondary, #98a2b3)',
129
+ font: 'inherit',
130
+ fontSize: 13,
131
+ fontWeight: primary ? 600 : 400,
132
+ padding: '4px 8px',
133
+ cursor: 'pointer',
134
+ },
135
+ onMouseEnter: () => setHover(true),
136
+ onMouseLeave: () => setHover(false),
137
+ onClick,
138
+ }, children)
122
139
  }
123
140
 
124
141
  /** 解析"当前会话"的 cwd 与 sessionId(客户端 sessions 快照)。 */
@@ -177,10 +194,13 @@ div:has(> .atp-wrap){ margin-left: 0 !important; }
177
194
  const [renaming, setRenaming] = React.useState(false)
178
195
  const [name, setName] = React.useState('')
179
196
 
197
+ const [hoverKey, setHoverKey] = React.useState('')
180
198
  const pill = (text, onClick, key) => h('button', {
181
199
  key,
182
200
  type: 'button',
183
- style: S.pill,
201
+ style: { ...S.pill, ...(hoverKey === key ? S.pillHover : null) },
202
+ onMouseEnter: () => setHoverKey(key),
203
+ onMouseLeave: () => setHoverKey(''),
184
204
  onClick,
185
205
  }, text)
186
206
 
@@ -207,7 +227,9 @@ div:has(> .atp-wrap){ margin-left: 0 !important; }
207
227
  shortName(conflict.rel)),
208
228
  h('div', { style: S.actions },
209
229
  pill('覆盖', () => onDecide(index, 'overwrite'), 'ow'),
230
+ h('span', { key: 's1', style: S.sep }, '·'),
210
231
  pill('备份', () => onDecide(index, 'backup'), 'bk'),
232
+ h('span', { key: 's2', style: S.sep }, '·'),
211
233
  pill('改名', () => setRenaming(true), 'rn')))
212
234
  }
213
235
 
@@ -290,8 +312,8 @@ div:has(> .atp-wrap){ margin-left: 0 !important; }
290
312
  const body = [
291
313
  h('div', { key: 'bar', style: S.toolbar },
292
314
  h('span', { style: S.muted }, `还剩 ${remaining} 项`),
293
- h('button', { type: 'button', style: S.pill, onClick: () => decideAll('overwrite') }, '全部覆盖'),
294
- h('button', { type: 'button', style: S.pill, onClick: () => decideAll('backup') }, '全部备份')),
315
+ h('button', { type: 'button', style: { ...S.pill, color: 'var(--dsw-alias-label-primary, inherit)' }, onClick: () => decideAll('overwrite') }, '全部覆盖'),
316
+ h('button', { type: 'button', style: { ...S.pill, color: 'var(--dsw-alias-label-primary, inherit)' }, onClick: () => decideAll('backup') }, '全部备份')),
295
317
  h('div', { key: 'list', style: S.dialogBody },
296
318
  rows.length > 0 ? rows : h('div', { style: S.muted }, '已全部决定,正在执行…')),
297
319
  error ? h('div', { key: 'err', style: { color: 'var(--dsw-alias-label-danger, #e06c5a)', marginTop: 8, fontSize: 12 } }, error) : null,
@@ -338,11 +360,14 @@ div:has(> .atp-wrap){ margin-left: 0 !important; }
338
360
  },
339
361
  fileName: { flex: '1 1 auto', minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: 13 },
340
362
  actions: { flex: 'none', display: 'flex', gap: 4 },
363
+ // 极简文字操作:默认只是灰色小字,悬停才出淡底(无边框、无灰块)
341
364
  pill: {
342
- minHeight: 24, padding: '0 8px', borderRadius: 'var(--dsw-radius-sm, 8px)',
343
- border: '1px solid rgba(127,127,127,.32)', background: 'none', color: 'inherit',
344
- font: 'inherit', fontSize: 12, cursor: 'pointer', lineHeight: '22px', whiteSpace: 'nowrap',
365
+ minHeight: 22, padding: '0 6px', borderRadius: 6, border: 0, background: 'none',
366
+ color: 'var(--dsw-alias-label-secondary, #98a2b3)', font: 'inherit', fontSize: 12,
367
+ cursor: 'pointer', lineHeight: '22px', whiteSpace: 'nowrap',
345
368
  },
369
+ pillHover: { background: 'var(--dsw-alias-interactive-bg-hover, rgba(127,127,127,.18))', color: 'var(--dsw-alias-label-primary, inherit)' },
370
+ sep: { opacity: 0.28, fontSize: 12, userSelect: 'none' },
346
371
  muted: { fontSize: 12, opacity: 0.6 },
347
372
  }
348
373
 
@@ -569,7 +594,7 @@ div:has(> .atp-wrap){ margin-left: 0 !important; }
569
594
 
570
595
  children.push(
571
596
  h('div', { key: 'actions', style: { marginTop: 10, display: 'flex', gap: 8, flexWrap: 'wrap' } },
572
- h(LinkButton, { onClick: () => void install() }, '安装到工作区'),
597
+ h(LinkButton, { onClick: () => void install(), primary: true }, '安装到工作区'),
573
598
  h(LinkButton, { onClick: () => void refresh() }, '重新检测'),
574
599
  h(LinkButton, { onClick: () => void copy('/atp install') }, copied === '/atp install' ? '已复制 ✓' : '复制 /atp install')),
575
600
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agent-team-playbook",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
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",