@suifei/dsh-ai-team 0.4.167 → 0.4.168

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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.168 - 2026-12-04
4
+
5
+ - 项目主对话支持 Enter 发送讨论、Shift+Enter 换行。中文输入法选字和 @成员选择优先处理,任务模式仍使用 Ctrl/⌘+Enter。发送按钮移到输入框左侧,避开宿主右下角悬浮层。感谢 @yuwanbushiwanzi 提供开工引导和桌宠遮挡的复现场景(#145)。
6
+
3
7
  ## 0.4.167 - 2026-12-04
4
8
 
5
9
  - 项目侧栏和团队管理页支持点击成员行打开 DSH 会话,移除单独的箭头图标。右侧「⋯」打开成员资料。
package/README.md CHANGED
@@ -35,8 +35,26 @@
35
35
 
36
36
  主理人只调度交付:产出只交给对应角色,主理人不看、不核对成果内容,只问负责人做全没有——没做全催继续,做全了交给下一位;内容对不对由验收人把关,主理人不能验收或退回别人的产出。
37
37
 
38
+ ## 致谢
39
+
40
+ <p>
41
+ <a href="https://github.com/idontlikefruit"><img src="https://avatar.onrpc.com/v1/idontlikefruit.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@idontlikefruit</a>、
42
+ <a href="https://github.com/buger-gif"><img src="https://avatar.onrpc.com/v1/buger-gif.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@buger-gif</a>、
43
+ <a href="https://github.com/Estelle00"><img src="https://avatar.onrpc.com/v1/Estelle00.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@Estelle00</a>、
44
+ <a href="https://github.com/phm101299-ui"><img src="https://avatar.onrpc.com/v1/phm101299-ui.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@phm101299-ui</a>、
45
+ <a href="https://github.com/godfay-g"><img src="https://avatar.onrpc.com/v1/godfay-g.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@godfay-g</a>、
46
+ <a href="https://github.com/qq958691165"><img src="https://avatar.onrpc.com/v1/qq958691165.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@qq958691165</a>、
47
+ <a href="https://github.com/Arnoldnuo"><img src="https://avatar.onrpc.com/v1/Arnoldnuo.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@Arnoldnuo</a>、
48
+ <a href="https://github.com/Lamooner"><img src="https://avatar.onrpc.com/v1/Lamooner.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@Lamooner</a>、
49
+ <a href="https://github.com/ljyzww"><img src="https://avatar.onrpc.com/v1/ljyzww.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@ljyzww</a>、
50
+ <a href="https://github.com/xiuchuan666"><img src="https://avatar.onrpc.com/v1/xiuchuan666.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@xiuchuan666</a>、
51
+ <a href="https://github.com/TardisBooo"><img src="https://avatar.onrpc.com/v1/TardisBooo.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@TardisBooo</a>、
52
+ <a href="https://github.com/yuwanbushiwanzi"><img src="https://avatar.onrpc.com/v1/yuwanbushiwanzi.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@yuwanbushiwanzi</a>
53
+ </p>
54
+
38
55
  ## 最近更新
39
56
 
57
+ - **项目讨论发送**(0.4.168)。`Enter` 发送,`Shift+Enter` 换行。发送按钮移到输入框左侧的工具栏,避开右下角悬浮层。
40
58
  - **点击成员行打开会话**(0.4.167)。项目侧栏和团队管理页都可直接点击成员行,右侧「⋯」打开成员资料。
41
59
  - **待验收按本轮提交计时**(0.4.166)。更换负责人后,编制巡检仍按本轮提交时间计算等待时长,并据此判断是否需要补位。
42
60
  - **巡检连续窗口精确对账**(0.4.165)。连续采样按两次账本水位之间的新增记录统计提交、验收和退回。巡检在首次启动及采样中断后标出新的起点。
@@ -460,19 +478,3 @@ round-19 DeepSeek + Zhipu 双 provider
460
478
 
461
479
  MIT。
462
480
  Bundled SkillOpt integration derives from [Microsoft SkillOpt](https://github.com/microsoft/SkillOpt) `plugins/dsh` (MIT); its license lives at `lib/vendor/skillopt/LICENSE`.
463
-
464
- ## 致谢
465
-
466
- <p>
467
- <a href="https://github.com/idontlikefruit"><img src="https://avatar.onrpc.com/v1/idontlikefruit.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@idontlikefruit</a>、
468
- <a href="https://github.com/buger-gif"><img src="https://avatar.onrpc.com/v1/buger-gif.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@buger-gif</a>、
469
- <a href="https://github.com/Estelle00"><img src="https://avatar.onrpc.com/v1/Estelle00.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@Estelle00</a>、
470
- <a href="https://github.com/phm101299-ui"><img src="https://avatar.onrpc.com/v1/phm101299-ui.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@phm101299-ui</a>、
471
- <a href="https://github.com/godfay-g"><img src="https://avatar.onrpc.com/v1/godfay-g.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@godfay-g</a>、
472
- <a href="https://github.com/qq958691165"><img src="https://avatar.onrpc.com/v1/qq958691165.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@qq958691165</a>、
473
- <a href="https://github.com/Arnoldnuo"><img src="https://avatar.onrpc.com/v1/Arnoldnuo.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@Arnoldnuo</a>、
474
- <a href="https://github.com/Lamooner"><img src="https://avatar.onrpc.com/v1/Lamooner.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@Lamooner</a>、
475
- <a href="https://github.com/ljyzww"><img src="https://avatar.onrpc.com/v1/ljyzww.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@ljyzww</a>、
476
- <a href="https://github.com/xiuchuan666"><img src="https://avatar.onrpc.com/v1/xiuchuan666.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@xiuchuan666</a>、
477
- <a href="https://github.com/TardisBooo"><img src="https://avatar.onrpc.com/v1/TardisBooo.svg?size=48&amp;fp=0&amp;anim=0" width="24" height="24" alt="" align="absmiddle" />&nbsp;@TardisBooo</a>
478
- </p>
package/client.js CHANGED
@@ -54,6 +54,7 @@ window.__ModuleLoader__.load({
54
54
  send: '发送',
55
55
  createTask: '创建 Task',
56
56
  enterHint: 'Ctrl/⌘ + Enter 发送',
57
+ discussEnterHint: 'Enter 发送 · Shift+Enter 换行',
57
58
  thread: '任务记录',
58
59
  closeThread: '关闭任务记录',
59
60
  threadChat: 'Agent 会话',
@@ -570,6 +571,7 @@ window.__ModuleLoader__.load({
570
571
  send: 'Send',
571
572
  createTask: 'Create task',
572
573
  enterHint: 'Ctrl/⌘ + Enter to send',
574
+ discussEnterHint: 'Enter to send · Shift+Enter for a new line',
573
575
  thread: 'Task record',
574
576
  closeThread: 'Close task record',
575
577
  threadChat: 'Agent session',
@@ -1443,7 +1445,7 @@ window.__ModuleLoader__.load({
1443
1445
  .at-mode button { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 8px; border: 0; background: transparent; color: var(--dsw-alias-label-tertiary); font: inherit; font-size: 11px; line-height: 16px; cursor: pointer; }
1444
1446
  .at-mode button[aria-pressed="true"] { background: var(--dsw-alias-button-ghost-active-fill); color: var(--dsw-alias-label-primary); }
1445
1447
  .at-hint { min-width: 0; color: var(--dsw-alias-label-caption); font-size: 10px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1446
- .at-send { margin-left: auto; min-height: 28px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--dsw-radius-sm); background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-inverted); font: inherit; font-size: 12px; line-height: 18px; cursor: pointer; white-space: nowrap; }
1448
+ .at-send { min-height: 28px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--dsw-radius-sm); background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-inverted); font: inherit; font-size: 12px; line-height: 18px; cursor: pointer; white-space: nowrap; }
1447
1449
  .at-send:hover { background: var(--dsw-alias-button-primary-hover); }
1448
1450
  .at-send:disabled { border-color: var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-module-platform); color: var(--dsw-alias-label-caption); cursor: not-allowed; }
1449
1451
  .at-boardwrap { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 18px 16px; scrollbar-width: thin; scrollbar-color: var(--dsw-alias-scrollbar-bg-l1) transparent; }
@@ -1777,8 +1779,6 @@ window.__ModuleLoader__.load({
1777
1779
  @container at-wb (max-width: 420px) {
1778
1780
  .at-rh { flex-basis: 100%; }
1779
1781
  .at-rhead { flex-wrap: wrap; }
1780
- .at-hint { display: none; }
1781
- .at-send { margin-left: auto; }
1782
1782
  }
1783
1783
  @media (prefers-reduced-motion: reduce) {
1784
1784
  .at-session-board svg, .at-session-board[data-running]::after { animation: none; transition: none; }
@@ -3171,6 +3171,7 @@ window.__ModuleLoader__.load({
3171
3171
  disabled,
3172
3172
  placeholder: mode === 'task' ? t('taskPlaceholder') : t('composer'),
3173
3173
  'aria-label': t('composerAria'),
3174
+ 'aria-describedby': 'at-composer-keyboard-hint',
3174
3175
  onChange: (event) => { onDraft(event.target.value); track(event.target); },
3175
3176
  onClick: (event) => track(event.currentTarget),
3176
3177
  onBlur: () => setMention(null),
@@ -3179,6 +3180,9 @@ window.__ModuleLoader__.load({
3179
3180
  if (files.length > 0 && discuss) { event.preventDefault(); attach(files); }
3180
3181
  },
3181
3182
  onKeyDown: (event) => {
3183
+ if (event.nativeEvent?.isComposing || event.keyCode === 229) return;
3184
+ const modified = event.metaKey || event.ctrlKey;
3185
+ const plainEnter = event.key === 'Enter' && !modified && !event.shiftKey && !event.altKey;
3182
3186
  if (candidates.length > 0) {
3183
3187
  if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
3184
3188
  event.preventDefault();
@@ -3186,14 +3190,14 @@ window.__ModuleLoader__.load({
3186
3190
  setMention({ ...mention, index: (mention.index + step) % candidates.length });
3187
3191
  return;
3188
3192
  }
3189
- if ((event.key === 'Enter' && !event.metaKey && !event.ctrlKey) || event.key === 'Tab') {
3193
+ if (plainEnter || event.key === 'Tab') {
3190
3194
  event.preventDefault();
3191
3195
  pick(candidates[mention.index] ?? candidates[0]);
3192
3196
  return;
3193
3197
  }
3194
3198
  if (event.key === 'Escape') { event.preventDefault(); setMention(null); return; }
3195
3199
  }
3196
- if ((event.metaKey || event.ctrlKey) && event.key === 'Enter') {
3200
+ if ((modified && event.key === 'Enter') || (discuss && plainEnter)) {
3197
3201
  event.preventDefault();
3198
3202
  send();
3199
3203
  }
@@ -3229,6 +3233,7 @@ window.__ModuleLoader__.load({
3229
3233
  onChange: (event) => onQaChecklist(event.target.value),
3230
3234
  }) : null) : null,
3231
3235
  h('div', { className: 'at-barrow' },
3236
+ h('button', { className: 'at-send', type: 'button', disabled: !canSend, onClick: send }, discuss ? t('send') : t('createTask')),
3232
3237
  onMode ? h('div', { className: 'at-mode', role: 'group', 'aria-label': t('modeAria') },
3233
3238
  h('button', { type: 'button', 'aria-pressed': mode === 'discuss', onClick: () => onMode('discuss') }, t('discuss')),
3234
3239
  h('button', { type: 'button', 'aria-pressed': mode === 'task', onClick: () => onMode('task') }, t('taskMode'))) : null,
@@ -3237,8 +3242,7 @@ window.__ModuleLoader__.load({
3237
3242
  mode === 'task' ? h('label', { className: 'at-qacheck' },
3238
3243
  h('input', { type: 'checkbox', checked: qaRequired, onChange: (event) => onQaRequired(event.target.checked) }),
3239
3244
  h('span', null, t('qaRequired'))) : null,
3240
- h('span', { className: 'at-hint' }, t('enterHint')),
3241
- h('button', { className: 'at-send', type: 'button', disabled: !canSend, onClick: send }, mode === 'task' ? t('createTask') : t('send'))))));
3245
+ h('span', { id: 'at-composer-keyboard-hint', className: 'at-hint' }, t(discuss ? 'discussEnterHint' : 'enterHint'))))));
3242
3246
  }
3243
3247
 
3244
3248
  function QuadrantCard({ t, meta, quadrant, tasks, items, count, onItem, onViewAll }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.167",
3
+ "version": "0.4.168",
4
4
  "type": "module",
5
5
  "description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
6
6
  "license": "MIT",