@suifei/dsh-ai-team 0.4.167 → 0.4.169
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 +8 -0
- package/README.md +20 -17
- package/client.js +72 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.169 - 2026-12-05
|
|
4
|
+
|
|
5
|
+
- 浏览式工作目录选择器支持通过 DSH 宿主新建一个子目录并回填项目表单。同名或权限错误会保留目录名称,等待用户修改。感谢 @yuwanbushiwanzi 提出从项目表单直接新建目录的场景(#145)。
|
|
6
|
+
|
|
7
|
+
## 0.4.168 - 2026-12-04
|
|
8
|
+
|
|
9
|
+
- 项目主对话支持 Enter 发送讨论、Shift+Enter 换行。中文输入法选字和 @成员选择优先处理,任务模式仍使用 Ctrl/⌘+Enter。发送按钮移到输入框左侧,避开宿主右下角悬浮层。感谢 @yuwanbushiwanzi 提供开工引导和桌宠遮挡的复现场景(#145)。
|
|
10
|
+
|
|
3
11
|
## 0.4.167 - 2026-12-04
|
|
4
12
|
|
|
5
13
|
- 项目侧栏和团队管理页支持点击成员行打开 DSH 会话,移除单独的箭头图标。右侧「⋯」打开成员资料。
|
package/README.md
CHANGED
|
@@ -35,8 +35,27 @@
|
|
|
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&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @idontlikefruit</a>、
|
|
42
|
+
<a href="https://github.com/buger-gif"><img src="https://avatar.onrpc.com/v1/buger-gif.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @buger-gif</a>、
|
|
43
|
+
<a href="https://github.com/Estelle00"><img src="https://avatar.onrpc.com/v1/Estelle00.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @Estelle00</a>、
|
|
44
|
+
<a href="https://github.com/phm101299-ui"><img src="https://avatar.onrpc.com/v1/phm101299-ui.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @phm101299-ui</a>、
|
|
45
|
+
<a href="https://github.com/godfay-g"><img src="https://avatar.onrpc.com/v1/godfay-g.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @godfay-g</a>、
|
|
46
|
+
<a href="https://github.com/qq958691165"><img src="https://avatar.onrpc.com/v1/qq958691165.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @qq958691165</a>、
|
|
47
|
+
<a href="https://github.com/Arnoldnuo"><img src="https://avatar.onrpc.com/v1/Arnoldnuo.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @Arnoldnuo</a>、
|
|
48
|
+
<a href="https://github.com/Lamooner"><img src="https://avatar.onrpc.com/v1/Lamooner.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @Lamooner</a>、
|
|
49
|
+
<a href="https://github.com/ljyzww"><img src="https://avatar.onrpc.com/v1/ljyzww.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @ljyzww</a>、
|
|
50
|
+
<a href="https://github.com/xiuchuan666"><img src="https://avatar.onrpc.com/v1/xiuchuan666.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @xiuchuan666</a>、
|
|
51
|
+
<a href="https://github.com/TardisBooo"><img src="https://avatar.onrpc.com/v1/TardisBooo.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @TardisBooo</a>、
|
|
52
|
+
<a href="https://github.com/yuwanbushiwanzi"><img src="https://avatar.onrpc.com/v1/yuwanbushiwanzi.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @yuwanbushiwanzi</a>
|
|
53
|
+
</p>
|
|
54
|
+
|
|
38
55
|
## 最近更新
|
|
39
56
|
|
|
57
|
+
- **新建工作目录**(0.4.169)。在浏览式目录选择器中创建子目录后,路径直接回填当前项目表单。
|
|
58
|
+
- **项目讨论发送**(0.4.168)。`Enter` 发送,`Shift+Enter` 换行。发送按钮移到输入框左侧的工具栏,避开右下角悬浮层。
|
|
40
59
|
- **点击成员行打开会话**(0.4.167)。项目侧栏和团队管理页都可直接点击成员行,右侧「⋯」打开成员资料。
|
|
41
60
|
- **待验收按本轮提交计时**(0.4.166)。更换负责人后,编制巡检仍按本轮提交时间计算等待时长,并据此判断是否需要补位。
|
|
42
61
|
- **巡检连续窗口精确对账**(0.4.165)。连续采样按两次账本水位之间的新增记录统计提交、验收和退回。巡检在首次启动及采样中断后标出新的起点。
|
|
@@ -258,7 +277,7 @@ dsh --profile web --no-open --port 33271
|
|
|
258
277
|
|
|
259
278
|
第一次进入 Project 先设置 **工作目录**:工作目录编辑器会自动弹出,并预填宿主给出的建议值——配置项 `defaultWorkspace` → 当前进程目录 → **`~/works`**(Windows 为 `%USERPROFILE%\works`,Linux/macOS 为 `~/works`;不存在时自动创建)。点「选择目录」或用输入框改成任意已存在的目录即可;**新建项目必须填工作目录**(服务端强制,空目录会被 400 拒绝)。每个 Project 独立一个目录,成员只在这个目录里执行 Task。
|
|
260
279
|
|
|
261
|
-
|
|
280
|
+
「选择目录」会使用宿主的原生对话框或在文渊阁内浏览宿主目录。浏览式选择器支持在当前目录下「新建目录」。选中或创建目录后,路径先回填表单,保存或创建项目时生效。
|
|
262
281
|
|
|
263
282
|
### 打开文渊阁后提示 503
|
|
264
283
|
|
|
@@ -460,19 +479,3 @@ round-19 DeepSeek + Zhipu 双 provider
|
|
|
460
479
|
|
|
461
480
|
MIT。
|
|
462
481
|
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&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @idontlikefruit</a>、
|
|
468
|
-
<a href="https://github.com/buger-gif"><img src="https://avatar.onrpc.com/v1/buger-gif.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @buger-gif</a>、
|
|
469
|
-
<a href="https://github.com/Estelle00"><img src="https://avatar.onrpc.com/v1/Estelle00.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @Estelle00</a>、
|
|
470
|
-
<a href="https://github.com/phm101299-ui"><img src="https://avatar.onrpc.com/v1/phm101299-ui.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @phm101299-ui</a>、
|
|
471
|
-
<a href="https://github.com/godfay-g"><img src="https://avatar.onrpc.com/v1/godfay-g.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @godfay-g</a>、
|
|
472
|
-
<a href="https://github.com/qq958691165"><img src="https://avatar.onrpc.com/v1/qq958691165.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @qq958691165</a>、
|
|
473
|
-
<a href="https://github.com/Arnoldnuo"><img src="https://avatar.onrpc.com/v1/Arnoldnuo.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @Arnoldnuo</a>、
|
|
474
|
-
<a href="https://github.com/Lamooner"><img src="https://avatar.onrpc.com/v1/Lamooner.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @Lamooner</a>、
|
|
475
|
-
<a href="https://github.com/ljyzww"><img src="https://avatar.onrpc.com/v1/ljyzww.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @ljyzww</a>、
|
|
476
|
-
<a href="https://github.com/xiuchuan666"><img src="https://avatar.onrpc.com/v1/xiuchuan666.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @xiuchuan666</a>、
|
|
477
|
-
<a href="https://github.com/TardisBooo"><img src="https://avatar.onrpc.com/v1/TardisBooo.svg?size=48&fp=0&anim=0" width="24" height="24" alt="" align="absmiddle" /> @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 会话',
|
|
@@ -306,6 +307,11 @@ window.__ModuleLoader__.load({
|
|
|
306
307
|
workspaceBrowseEmpty: '此目录没有子目录。',
|
|
307
308
|
workspaceBrowseTruncated: '仅显示宿主返回的部分目录。',
|
|
308
309
|
workspaceBrowseError: '未能读取目录。{message}',
|
|
310
|
+
workspaceNewFolder: '新建目录',
|
|
311
|
+
workspaceFolderName: '目录名称',
|
|
312
|
+
workspaceCreateFolder: '创建并使用',
|
|
313
|
+
workspaceCancelFolder: '取消新建',
|
|
314
|
+
workspaceCreateFolderError: '未能创建目录。{message}',
|
|
309
315
|
workspaceSave: '保存目录',
|
|
310
316
|
projectCreate: '创建项目',
|
|
311
317
|
projectCreated: '已创建项目 {name}。',
|
|
@@ -570,6 +576,7 @@ window.__ModuleLoader__.load({
|
|
|
570
576
|
send: 'Send',
|
|
571
577
|
createTask: 'Create task',
|
|
572
578
|
enterHint: 'Ctrl/⌘ + Enter to send',
|
|
579
|
+
discussEnterHint: 'Enter to send · Shift+Enter for a new line',
|
|
573
580
|
thread: 'Task record',
|
|
574
581
|
closeThread: 'Close task record',
|
|
575
582
|
threadChat: 'Agent session',
|
|
@@ -823,6 +830,11 @@ window.__ModuleLoader__.load({
|
|
|
823
830
|
workspaceBrowseEmpty: 'This directory has no subdirectories.',
|
|
824
831
|
workspaceBrowseTruncated: 'Only some directories were returned by the host.',
|
|
825
832
|
workspaceBrowseError: 'Could not read the directory. {message}',
|
|
833
|
+
workspaceNewFolder: 'New folder',
|
|
834
|
+
workspaceFolderName: 'Folder name',
|
|
835
|
+
workspaceCreateFolder: 'Create and use',
|
|
836
|
+
workspaceCancelFolder: 'Cancel creation',
|
|
837
|
+
workspaceCreateFolderError: 'Could not create the folder. {message}',
|
|
826
838
|
workspaceSave: 'Save directory',
|
|
827
839
|
projectCreate: 'Create project',
|
|
828
840
|
projectCreated: 'Created project {name}.',
|
|
@@ -1443,7 +1455,7 @@ window.__ModuleLoader__.load({
|
|
|
1443
1455
|
.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
1456
|
.at-mode button[aria-pressed="true"] { background: var(--dsw-alias-button-ghost-active-fill); color: var(--dsw-alias-label-primary); }
|
|
1445
1457
|
.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 {
|
|
1458
|
+
.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
1459
|
.at-send:hover { background: var(--dsw-alias-button-primary-hover); }
|
|
1448
1460
|
.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
1461
|
.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 +1789,6 @@ window.__ModuleLoader__.load({
|
|
|
1777
1789
|
@container at-wb (max-width: 420px) {
|
|
1778
1790
|
.at-rh { flex-basis: 100%; }
|
|
1779
1791
|
.at-rhead { flex-wrap: wrap; }
|
|
1780
|
-
.at-hint { display: none; }
|
|
1781
|
-
.at-send { margin-left: auto; }
|
|
1782
1792
|
}
|
|
1783
1793
|
@media (prefers-reduced-motion: reduce) {
|
|
1784
1794
|
.at-session-board svg, .at-session-board[data-running]::after { animation: none; transition: none; }
|
|
@@ -2127,11 +2137,18 @@ window.__ModuleLoader__.load({
|
|
|
2127
2137
|
const [listing, setListing] = React.useState(null);
|
|
2128
2138
|
const [error, setError] = React.useState('');
|
|
2129
2139
|
const [loading, setLoading] = React.useState(true);
|
|
2140
|
+
const [folderName, setFolderName] = React.useState(null);
|
|
2141
|
+
const [folderError, setFolderError] = React.useState('');
|
|
2142
|
+
const [creating, setCreating] = React.useState(false);
|
|
2130
2143
|
const closeButton = React.useRef(null);
|
|
2144
|
+
const pendingFolder = React.useRef(null);
|
|
2131
2145
|
React.useEffect(() => {
|
|
2132
2146
|
const previous = document.activeElement;
|
|
2133
2147
|
closeButton.current?.focus({ preventScroll: true });
|
|
2134
|
-
return () =>
|
|
2148
|
+
return () => {
|
|
2149
|
+
pendingFolder.current = null;
|
|
2150
|
+
previous?.focus?.({ preventScroll: true });
|
|
2151
|
+
};
|
|
2135
2152
|
}, []);
|
|
2136
2153
|
React.useEffect(() => {
|
|
2137
2154
|
const controller = new AbortController();
|
|
@@ -2152,24 +2169,61 @@ window.__ModuleLoader__.load({
|
|
|
2152
2169
|
const browse = (path) => {
|
|
2153
2170
|
setLoading(true);
|
|
2154
2171
|
setError('');
|
|
2172
|
+
setFolderName(null);
|
|
2173
|
+
setFolderError('');
|
|
2155
2174
|
setRequest({ path });
|
|
2156
2175
|
};
|
|
2176
|
+
const canCreate = typeof service.createDirectory === 'function' && Boolean(listing?.path) && !loading && !error;
|
|
2177
|
+
const busy = loading || creating;
|
|
2178
|
+
const close = () => { if (!pendingFolder.current) onClose(); };
|
|
2179
|
+
const cancelFolder = () => {
|
|
2180
|
+
setFolderName(null);
|
|
2181
|
+
setFolderError('');
|
|
2182
|
+
};
|
|
2183
|
+
async function createFolder(event) {
|
|
2184
|
+
event.preventDefault();
|
|
2185
|
+
const name = folderName?.trim();
|
|
2186
|
+
if (!canCreate || !name || pendingFolder.current) return;
|
|
2187
|
+
const pending = {};
|
|
2188
|
+
pendingFolder.current = pending;
|
|
2189
|
+
setCreating(true);
|
|
2190
|
+
setFolderError('');
|
|
2191
|
+
try {
|
|
2192
|
+
const path = await service.createDirectory(listing.path, name);
|
|
2193
|
+
if (pendingFolder.current === pending) onPick(path);
|
|
2194
|
+
} catch (cause) {
|
|
2195
|
+
if (pendingFolder.current === pending) setFolderError(cause?.message ?? String(cause));
|
|
2196
|
+
} finally {
|
|
2197
|
+
if (pendingFolder.current === pending) {
|
|
2198
|
+
pendingFolder.current = null;
|
|
2199
|
+
setCreating(false);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2157
2203
|
const parentPath = listing?.crumbs?.at(-2)?.path;
|
|
2158
|
-
return h(ModalBack, { onClose },
|
|
2204
|
+
return h(ModalBack, { onClose: close },
|
|
2159
2205
|
h('div', { className: 'at-modal at-directory-picker', role: 'dialog', 'aria-modal': 'true', 'aria-label': t('workspaceBrowseTitle') },
|
|
2160
2206
|
h('h2', { className: 'at-modaltitle' }, t('workspaceBrowseTitle')),
|
|
2161
2207
|
h('div', { className: 'at-modalactions' },
|
|
2162
|
-
h('button', { ref: closeButton, className: 'at-btn', type: 'button', onClick:
|
|
2163
|
-
h('button', { className: 'at-btn at-btn-primary', type: 'button', disabled:
|
|
2208
|
+
h('button', { ref: closeButton, className: 'at-btn', type: 'button', disabled: creating, onClick: close }, t('cancel')),
|
|
2209
|
+
h('button', { className: 'at-btn at-btn-primary', type: 'button', disabled: busy || !listing?.path || Boolean(error), onClick: () => onPick(listing.path) }, t('workspaceBrowseChoose'))),
|
|
2164
2210
|
h('div', { className: 'at-directory-nav' },
|
|
2165
|
-
h('button', { className: 'at-btn', type: 'button', disabled:
|
|
2166
|
-
h('button', { className: 'at-btn', type: 'button', disabled:
|
|
2211
|
+
h('button', { className: 'at-btn', type: 'button', disabled: busy, onClick: () => browse(undefined) }, t('workspaceBrowseHome')),
|
|
2212
|
+
h('button', { className: 'at-btn', type: 'button', disabled: busy || !parentPath, onClick: () => browse(parentPath) }, t('workspaceBrowseParent')),
|
|
2213
|
+
canCreate && folderName === null ? h('button', { className: 'at-btn', type: 'button', onClick: () => setFolderName('') }, t('workspaceNewFolder')) : null),
|
|
2167
2214
|
listing?.path ? h('div', { className: 'at-modalmeta at-directory-path' }, listing.path) : null,
|
|
2168
2215
|
loading ? h('div', { className: 'at-modalmeta', role: 'status' }, t('loading')) : null,
|
|
2169
2216
|
error ? h('div', { className: 'at-modalerror at-directory-path', role: 'alert' }, tf(t, 'workspaceBrowseError', { message: error })) : null,
|
|
2217
|
+
canCreate && folderName !== null ? h('form', { className: 'at-field', onSubmit: createFolder, 'aria-busy': creating },
|
|
2218
|
+
h('label', { className: 'at-field' }, t('workspaceFolderName'),
|
|
2219
|
+
h('input', { autoFocus: true, value: folderName, disabled: creating, onChange: (event) => setFolderName(event.target.value) })),
|
|
2220
|
+
folderError ? h('div', { className: 'at-modalerror at-directory-path', role: 'alert' }, tf(t, 'workspaceCreateFolderError', { message: folderError })) : null,
|
|
2221
|
+
h('div', { className: 'at-modalactions' },
|
|
2222
|
+
h('button', { className: 'at-btn', type: 'button', disabled: creating, onClick: cancelFolder }, t('workspaceCancelFolder')),
|
|
2223
|
+
h('button', { className: 'at-btn at-btn-primary', type: 'submit', disabled: creating || !folderName.trim() }, t('workspaceCreateFolder')))) : null,
|
|
2170
2224
|
h('div', { className: 'at-directory-list', 'aria-busy': loading },
|
|
2171
2225
|
(listing?.entries ?? []).map(({ name, path }) =>
|
|
2172
|
-
h('button', { className: 'at-btn', key: path, title: name, type: 'button', disabled:
|
|
2226
|
+
h('button', { className: 'at-btn', key: path, title: name, type: 'button', disabled: busy, onClick: () => browse(path) }, name))),
|
|
2173
2227
|
!loading && !error && listing?.entries?.length === 0 ? h('p', { className: 'at-modalmeta' }, t('workspaceBrowseEmpty')) : null,
|
|
2174
2228
|
listing?.truncated ? h('p', { className: 'at-modalmeta' }, t('workspaceBrowseTruncated')) : null));
|
|
2175
2229
|
}
|
|
@@ -3171,6 +3225,7 @@ window.__ModuleLoader__.load({
|
|
|
3171
3225
|
disabled,
|
|
3172
3226
|
placeholder: mode === 'task' ? t('taskPlaceholder') : t('composer'),
|
|
3173
3227
|
'aria-label': t('composerAria'),
|
|
3228
|
+
'aria-describedby': 'at-composer-keyboard-hint',
|
|
3174
3229
|
onChange: (event) => { onDraft(event.target.value); track(event.target); },
|
|
3175
3230
|
onClick: (event) => track(event.currentTarget),
|
|
3176
3231
|
onBlur: () => setMention(null),
|
|
@@ -3179,6 +3234,9 @@ window.__ModuleLoader__.load({
|
|
|
3179
3234
|
if (files.length > 0 && discuss) { event.preventDefault(); attach(files); }
|
|
3180
3235
|
},
|
|
3181
3236
|
onKeyDown: (event) => {
|
|
3237
|
+
if (event.nativeEvent?.isComposing || event.keyCode === 229) return;
|
|
3238
|
+
const modified = event.metaKey || event.ctrlKey;
|
|
3239
|
+
const plainEnter = event.key === 'Enter' && !modified && !event.shiftKey && !event.altKey;
|
|
3182
3240
|
if (candidates.length > 0) {
|
|
3183
3241
|
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
|
3184
3242
|
event.preventDefault();
|
|
@@ -3186,14 +3244,14 @@ window.__ModuleLoader__.load({
|
|
|
3186
3244
|
setMention({ ...mention, index: (mention.index + step) % candidates.length });
|
|
3187
3245
|
return;
|
|
3188
3246
|
}
|
|
3189
|
-
if (
|
|
3247
|
+
if (plainEnter || event.key === 'Tab') {
|
|
3190
3248
|
event.preventDefault();
|
|
3191
3249
|
pick(candidates[mention.index] ?? candidates[0]);
|
|
3192
3250
|
return;
|
|
3193
3251
|
}
|
|
3194
3252
|
if (event.key === 'Escape') { event.preventDefault(); setMention(null); return; }
|
|
3195
3253
|
}
|
|
3196
|
-
if ((
|
|
3254
|
+
if ((modified && event.key === 'Enter') || (discuss && plainEnter)) {
|
|
3197
3255
|
event.preventDefault();
|
|
3198
3256
|
send();
|
|
3199
3257
|
}
|
|
@@ -3229,6 +3287,7 @@ window.__ModuleLoader__.load({
|
|
|
3229
3287
|
onChange: (event) => onQaChecklist(event.target.value),
|
|
3230
3288
|
}) : null) : null,
|
|
3231
3289
|
h('div', { className: 'at-barrow' },
|
|
3290
|
+
h('button', { className: 'at-send', type: 'button', disabled: !canSend, onClick: send }, discuss ? t('send') : t('createTask')),
|
|
3232
3291
|
onMode ? h('div', { className: 'at-mode', role: 'group', 'aria-label': t('modeAria') },
|
|
3233
3292
|
h('button', { type: 'button', 'aria-pressed': mode === 'discuss', onClick: () => onMode('discuss') }, t('discuss')),
|
|
3234
3293
|
h('button', { type: 'button', 'aria-pressed': mode === 'task', onClick: () => onMode('task') }, t('taskMode'))) : null,
|
|
@@ -3237,8 +3296,7 @@ window.__ModuleLoader__.load({
|
|
|
3237
3296
|
mode === 'task' ? h('label', { className: 'at-qacheck' },
|
|
3238
3297
|
h('input', { type: 'checkbox', checked: qaRequired, onChange: (event) => onQaRequired(event.target.checked) }),
|
|
3239
3298
|
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'))))));
|
|
3299
|
+
h('span', { id: 'at-composer-keyboard-hint', className: 'at-hint' }, t(discuss ? 'discussEnterHint' : 'enterHint'))))));
|
|
3242
3300
|
}
|
|
3243
3301
|
|
|
3244
3302
|
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.
|
|
3
|
+
"version": "0.4.169",
|
|
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",
|