@sparkelf/dsh-plus 0.2.8-alpha.50 → 0.2.9-alpha.101
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/cordis.patch.yml +29 -7
- package/lib/{apply-DmICvIGh.js → apply-CvePS57c.js} +213 -43
- package/lib/{apply-08huHfLG.js → apply-DycMqLJO.js} +240 -53
- package/lib/apply-c_7SZFSh.js +1193 -0
- package/lib/apply.js +2 -2
- package/lib/bin.js +20 -319
- package/lib/types/apply.d.ts +14 -1
- package/lib/types/apply.js +275 -53
- package/lib/types/capabilities.js +25 -36
- package/lib/types/manifest.d.ts +24 -0
- package/lib/types/manifest.js +51 -0
- package/lib/types/profile.d.ts +1 -0
- package/lib/types/profile.js +14 -3
- package/package.json +531 -577
- package/patches/approval-allow-policy.patch +3 -3
- package/patches/atomic-write-zombie-lock-holder.patch +1 -1
- package/patches/bootstrap-exempt-names.patch +6 -6
- package/patches/composer-popover-boundaries.patch +41 -283
- package/patches/image-offload-hoist-replay.patch +34 -31
- package/patches/input-trigger-source-label.patch +63 -0
- package/patches/legacy-code-preset.patch +5 -5
- package/patches/llm-pi-ai-transport-truncation.patch +4 -4
- package/patches/mobile-journal-generation.patch +2 -2
- package/patches/office-preview-stable-load.patch +1 -1
- package/patches/officecli-deliverables.patch +2 -2
- package/patches/ptc-mcp-schema-types.patch +3 -3
- package/patches/responses-reasoning-status.patch +197 -48
- package/patches/session-controller-image-downgrade-and-tool-visibility.patch +16 -14
- package/patches/session-export-chinese.patch +11 -11
- package/patches/session-format-legacy-restart.patch +1 -1
- package/patches/sidebar-right-tab-menu.patch +119 -0
- package/patches/state-dot-brand-blue.patch +2 -2
- package/patches/ui-settings-compact-phone.patch +2 -9
- package/patches/ui-sidebar-right-global-panel.patch +3 -3
- package/patches/workspace-hide-group-rooms.patch +38 -0
- package/patches/workspace-storage-restore.patch +21 -5
- package/patches/wsl-native-open.patch +8 -8
- package/lib/apply-e0aMC4B4.js +0 -601
- package/lib/types/standalone-capabilities.d.ts +0 -139
- package/lib/types/standalone-capabilities.js +0 -688
- package/lib/types/standalone-cli.d.ts +0 -17
- package/lib/types/standalone-cli.js +0 -913
- package/lib/types/standalone-profile.d.ts +0 -258
- package/lib/types/standalone-profile.js +0 -747
- package/lib/types/standalone-server.d.ts +0 -70
- package/lib/types/standalone-server.js +0 -158
- package/patches/browser-auth-mode.patch +0 -127
- package/patches/diagram-preview.patch +0 -562
- package/patches/dsh-resource-ref-chip.patch +0 -40
- package/patches/session-envelope-ignorable.patch +0 -63
- package/patches/session-log-trajectory-toolbar.patch +0 -352
- package/patches/ui-schedule-plaza-tab.patch +0 -217
- package/patches/web-runtime-compat.patch +0 -83
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
diff --git a/packages/api/session-controller/src/commands.ts b/packages/api/session-controller/src/commands.ts
|
|
2
|
+
index 921d71cd..5e6d7938 100644
|
|
3
|
+
--- a/packages/api/session-controller/src/commands.ts
|
|
4
|
+
+++ b/packages/api/session-controller/src/commands.ts
|
|
5
|
+
@@ -86,6 +86,9 @@ function latestCompletedPrefixBoundary(events: readonly SessionEvent[]): Session
|
|
4
6
|
|
|
5
7
|
/** Implements Session business commands delegated by the Session Controller Remote service. */
|
|
6
8
|
export class SessionCommandController {
|
|
7
9
|
+ /** 每个 agent 当前生效的工具可见性限制的撤销函数(按模型能力同步)。 */
|
|
8
10
|
+ private readonly toolVisibility = new WeakMap<Agent, () => void>()
|
|
9
11
|
+
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@@ -
|
|
12
|
+
/** First-insertion facts cached per exact Session; the log remains the recovery source. */
|
|
13
|
+
private readonly promptReceipts = new WeakMap<Session, {
|
|
14
|
+
offset: SessionLogOffset
|
|
15
|
+
@@ -158,6 +161,31 @@ export class SessionCommandController {
|
|
16
|
+
return { sessionId, ...(created.agentPreset === undefined ? {} : { agentPreset: created.agentPreset }) }
|
|
14
17
|
}
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
+ /**
|
|
17
20
|
+ * 按当前模型的输入能力裁剪工具面。
|
|
18
21
|
+ *
|
|
19
22
|
+ * `read_image` 会把像素作为图像内容送进对话;纯文本模型即使被允许调用也消费不了,
|
|
@@ -38,11 +41,10 @@
|
|
|
38
41
|
+ }
|
|
39
42
|
+ }
|
|
40
43
|
+
|
|
41
|
-
|
|
44
|
+
/**
|
|
42
45
|
* Validate and record one Session model selection; save the default in the background.
|
|
43
46
|
* @param request - Session identity and requested model selection.
|
|
44
|
-
|
|
45
|
-
@@ -160,6 +188,7 @@
|
|
47
|
+
@@ -177,6 +205,7 @@ export class SessionCommandController {
|
|
46
48
|
}
|
|
47
49
|
await this.ctx.llm.resolveCallConfig(selected)
|
|
48
50
|
agent.model.select(selected)
|
|
@@ -50,10 +52,10 @@
|
|
|
50
52
|
void this.ctx.agentDefaultModel.saveSelection(selected).catch((error: unknown) => {
|
|
51
53
|
this.ctx.logger.warn(
|
|
52
54
|
`session-controller: model selection changed for the Session but the default was not saved: ${String(error)}`,
|
|
53
|
-
@@ -
|
|
54
|
-
const hasImage = admission.content.some(part => part.type === 'image')
|
|
55
|
+
@@ -346,20 +375,24 @@ export class SessionCommandController {
|
|
55
56
|
const admit = async (): Promise<SessionPromptValue> => {
|
|
56
57
|
try {
|
|
58
|
+
if (this.hasPromptRequest(agent.session, request.requestId)) return { accepted: true }
|
|
57
59
|
+ let promptContent = admission.content
|
|
58
60
|
if (hasImage) {
|
|
59
61
|
const current = agent.model.current()
|
|
@@ -78,6 +80,6 @@
|
|
|
78
80
|
}
|
|
79
81
|
- const content = await this.ctx.attachments.admitPromptContent(admission.content)
|
|
80
82
|
+ const content = await this.ctx.attachments.admitPromptContent(promptContent)
|
|
83
|
+
if (this.hasPromptRequest(agent.session, request.requestId)) return { accepted: true }
|
|
81
84
|
const message: UserMessage = createUserMessage({ content, source })
|
|
82
85
|
if (this.ctx.agents.get(agent.id) !== agent) {
|
|
83
|
-
throw new RemoteError(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
diff --git a/packages/session-query/session-log-export/src/client/locales.ts b/packages/session-query/session-log-export/src/client/locales.ts
|
|
2
|
-
index
|
|
2
|
+
index b1a6a528..4deeaa74 100644
|
|
3
3
|
--- a/packages/session-query/session-log-export/src/client/locales.ts
|
|
4
4
|
+++ b/packages/session-query/session-log-export/src/client/locales.ts
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -3,24 +3,26 @@ export const NS = 'session-log-download'
|
|
6
|
+
|
|
6
7
|
/** Simplified-Chinese Session export strings. */
|
|
7
8
|
export const zh = {
|
|
8
|
-
'header.more': '更多操作',
|
|
9
9
|
+ 'header.action': '会话日志',
|
|
10
10
|
'menu.copyMarkdown': '复制会话为 Markdown',
|
|
11
11
|
- 'menu.download': '下载 Session 日志',
|
|
@@ -14,8 +14,9 @@ index 516950f70c..def3d97fb4 100644
|
|
|
14
14
|
'toast.copied': 'Session 已复制为 Markdown',
|
|
15
15
|
'toast.preparationFailed': '无法读取 Session 进行复制,请重试',
|
|
16
16
|
'toast.clipboardFailed': '无法写入剪贴板,请检查剪贴板权限后重试',
|
|
17
|
+
'dialog.session': 'Session:{sessionId}',
|
|
17
18
|
- 'dialog.preparingTitle': '正在导出 Session',
|
|
18
|
-
- 'dialog.preparingDescription': '
|
|
19
|
+
- 'dialog.preparingDescription': '正在准备包含指定 Session、子 Session 和附件的 ZIP 文件',
|
|
19
20
|
- 'dialog.successTitle': 'Session 导出已开始下载',
|
|
20
21
|
- 'dialog.successDescription': '浏览器正在下载 Session ZIP 文件。',
|
|
21
22
|
+ 'dialog.preparingTitle': '正在导出会话',
|
|
@@ -30,7 +31,6 @@ index 516950f70c..def3d97fb4 100644
|
|
|
30
31
|
|
|
31
32
|
/** English Session export strings. */
|
|
32
33
|
export const en: Record<keyof typeof zh, string> = {
|
|
33
|
-
'header.more': 'More actions',
|
|
34
34
|
+ 'header.action': 'Session log',
|
|
35
35
|
'menu.copyMarkdown': 'Copy Session as Markdown',
|
|
36
36
|
'menu.download': 'Download session log',
|
|
@@ -40,46 +40,46 @@ index 516950f70c..def3d97fb4 100644
|
|
|
40
40
|
/** Japanese copy, checked against the English keys. */
|
|
41
41
|
export const ja = {
|
|
42
42
|
+ 'header.action': 'セッションログ',
|
|
43
|
-
'header.more': 'その他の操作',
|
|
44
43
|
'menu.copyMarkdown': 'セッションを Markdown としてコピー',
|
|
45
44
|
'menu.download': 'セッションログをダウンロード',
|
|
45
|
+
'menu.feedback': 'フィードバック',
|
|
46
46
|
@@ -60,6 +63,7 @@ export const ja = {
|
|
47
47
|
|
|
48
48
|
/** Spanish dictionary, checked against the English keys. */
|
|
49
49
|
export const es = {
|
|
50
50
|
+ 'header.action': 'Registro de sesión',
|
|
51
|
-
'header.more': 'Más acciones',
|
|
52
51
|
'menu.copyMarkdown': 'Copiar sesión como Markdown',
|
|
53
52
|
'menu.download': 'Descargar registro de sesión',
|
|
53
|
+
'menu.feedback': 'Comentarios',
|
|
54
54
|
@@ -78,6 +82,7 @@ export const es = {
|
|
55
55
|
|
|
56
56
|
/** French dictionary, checked against the English keys. */
|
|
57
57
|
export const fr = {
|
|
58
58
|
+ 'header.action': 'Journal de session',
|
|
59
|
-
'header.more': 'Autres actions',
|
|
60
59
|
'menu.copyMarkdown': 'Copier la session sous Markdown',
|
|
61
60
|
'menu.download': 'Télécharger le journal de session',
|
|
61
|
+
'menu.feedback': 'Commentaires',
|
|
62
62
|
@@ -96,6 +101,7 @@ export const fr = {
|
|
63
63
|
|
|
64
64
|
/** German dictionary, checked against the English keys. */
|
|
65
65
|
export const de = {
|
|
66
66
|
+ 'header.action': 'Sitzungsprotokoll',
|
|
67
|
-
'header.more': 'Weitere Aktionen',
|
|
68
67
|
'menu.copyMarkdown': 'Kopieren Sie die Sitzung als Markdown',
|
|
69
68
|
'menu.download': 'Sitzungsprotokoll herunterladen',
|
|
69
|
+
'menu.feedback': 'Rückmeldung',
|
|
70
70
|
@@ -114,6 +120,7 @@ export const de = {
|
|
71
71
|
|
|
72
72
|
/** Russian dictionary, checked against the English keys. */
|
|
73
73
|
export const ru = {
|
|
74
74
|
+ 'header.action': 'Журнал сеанса',
|
|
75
|
-
'header.more': 'Другие действия',
|
|
76
75
|
'menu.copyMarkdown': 'Скопировать сеанс как Markdown',
|
|
77
76
|
'menu.download': 'Скачать журнал сеанса',
|
|
77
|
+
'menu.feedback': 'Обратная связь',
|
|
78
78
|
@@ -132,6 +139,7 @@ export const ru = {
|
|
79
79
|
|
|
80
80
|
/** Portuguese dictionary, checked against the English keys. */
|
|
81
81
|
export const pt = {
|
|
82
82
|
+ 'header.action': 'Registro da sessão',
|
|
83
|
-
'header.more': 'Mais ações',
|
|
84
83
|
'menu.copyMarkdown': 'Copiar sessão como Markdown',
|
|
85
84
|
'menu.download': 'Baixar registro da sessão',
|
|
85
|
+
'menu.feedback': 'Comentários',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/packages/session/session-format-v0-to-v1/src/relationships.ts b/packages/session/session-format-v0-to-v1/src/relationships.ts
|
|
2
|
-
index
|
|
2
|
+
index ddd1a4b7..5cf0c7c0 100644
|
|
3
3
|
--- a/packages/session/session-format-v0-to-v1/src/relationships.ts
|
|
4
4
|
+++ b/packages/session/session-format-v0-to-v1/src/relationships.ts
|
|
5
5
|
@@ -35,7 +35,7 @@ export interface ReleasedRelationshipExtensions {
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
diff --git a/packages/client/ui-sidebar-right/src/client/index.ts b/packages/client/ui-sidebar-right/src/client/index.ts
|
|
2
|
+
index 1f3d3781..2c56ebc9 100644
|
|
3
|
+
--- a/packages/client/ui-sidebar-right/src/client/index.ts
|
|
4
|
+
+++ b/packages/client/ui-sidebar-right/src/client/index.ts
|
|
5
|
+
@@ -1,5 +1,4 @@
|
|
6
|
+
import { IconCloseOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
7
|
+
-import type { ShortcutCommandId } from '@deepseek-ai/dsh-client-shortcuts/client'
|
|
8
|
+
import { TabMenuContent } from './shell/TabMenuContent.tsx'
|
|
9
|
+
import type {} from '@deepseek-ai/dsh-client-ui-context-menu/client'
|
|
10
|
+
/**
|
|
11
|
+
@@ -138,24 +137,6 @@ export function apply(ctx: ClientContext): void {
|
|
12
|
+
ctx.effect(() => ctx.slots.inject('contextMenu.icon', () => ctx.slots.register({
|
|
13
|
+
name: 'contextMenu.icon', key: 'sidebar.close',
|
|
14
|
+
}, IconCloseOutlineRegular)), 'sidebar: menu icon')
|
|
15
|
+
- ctx.effect(() => ctx.contextMenus.register({
|
|
16
|
+
- id: 'sidebar.close', target: 'tab', order: 100,
|
|
17
|
+
- resolve: ({ sessionId, paneId, tab }) => {
|
|
18
|
+
- const tabId = tab.id
|
|
19
|
+
- const tabs = controller.menuTabs(sessionId, paneId, tabId)
|
|
20
|
+
- if (!tabs.close && tabs.all.length === 0) return []
|
|
21
|
+
- const closeMany = (ids: readonly TabId[]) => {
|
|
22
|
+
- for (const id of ids) {
|
|
23
|
+
- if (controller.menuTabs(sessionId, paneId, tabId).all.includes(id)) controller.closeIn(sessionId, id)
|
|
24
|
+
- }
|
|
25
|
+
- }
|
|
26
|
+
- return [
|
|
27
|
+
- { id: 'close', commandId: 'page.close' as ShortcutCommandId, icon: { key: 'sidebar.close' }, label: t('menu.close'), disabled: !tabs.close, run: () => { if (controller.menuTabs(sessionId, paneId, tabId).close) controller.closeIn(sessionId, tabId) } },
|
|
28
|
+
- { id: 'others', label: t('menu.closeOthers'), disabled: tabs.all.length === 0, run: () => { closeMany(tabs.all) } },
|
|
29
|
+
- ...tabs.right.length === 0 ? [] : [{ id: 'right', label: t('menu.closeRight'), run: () => { closeMany(tabs.right) } }],
|
|
30
|
+
- ]
|
|
31
|
+
- },
|
|
32
|
+
- }), 'sidebar: menu actions')
|
|
33
|
+
ctx.effect(() => ctx.slots.inject('contextMenu.content', () => ctx.slots.register({
|
|
34
|
+
name: 'contextMenu.content', key: 'tab',
|
|
35
|
+
children: { 'sidebar.right.tab.menu.item': { kind: 'list', scope: 'session' } },
|
|
36
|
+
diff --git a/packages/client/ui-sidebar-right/src/client/locales.ts b/packages/client/ui-sidebar-right/src/client/locales.ts
|
|
37
|
+
index 44b137b2..1f4b1904 100644
|
|
38
|
+
--- a/packages/client/ui-sidebar-right/src/client/locales.ts
|
|
39
|
+
+++ b/packages/client/ui-sidebar-right/src/client/locales.ts
|
|
40
|
+
@@ -8,9 +8,6 @@
|
|
41
|
+
|
|
42
|
+
/** Simplified Chinese dictionary and key-set source of truth. */
|
|
43
|
+
export const zh = {
|
|
44
|
+
- 'menu.close': '关闭',
|
|
45
|
+
- 'menu.closeOthers': '关闭其他标签页',
|
|
46
|
+
- 'menu.closeRight': '关闭右侧标签页',
|
|
47
|
+
'command.close': '关闭当前页面/窗口',
|
|
48
|
+
'command.refresh': '刷新当前页面',
|
|
49
|
+
'command.noRefresh': '当前页面不支持刷新',
|
|
50
|
+
@@ -53,9 +50,6 @@ export type SidebarRightKey = keyof typeof zh
|
|
51
|
+
|
|
52
|
+
/** English dictionary, checked against the Chinese key set. */
|
|
53
|
+
export const en = {
|
|
54
|
+
- 'menu.close': 'Close',
|
|
55
|
+
- 'menu.closeOthers': 'Close Other Tabs',
|
|
56
|
+
- 'menu.closeRight': 'Close Tabs to the Right',
|
|
57
|
+
'command.close': 'Close current page or window',
|
|
58
|
+
'command.refresh': 'Refresh current page',
|
|
59
|
+
'command.noRefresh': 'This page cannot be refreshed',
|
|
60
|
+
@@ -95,9 +89,6 @@ export const en = {
|
|
61
|
+
|
|
62
|
+
/** Japanese copy, checked against the English keys. */
|
|
63
|
+
export const ja = {
|
|
64
|
+
- 'menu.close': '閉じる',
|
|
65
|
+
- 'menu.closeOthers': '他のタブを閉じる',
|
|
66
|
+
- 'menu.closeRight': '右側のタブを閉じる',
|
|
67
|
+
'command.close': '現在のページまたはウィンドウを閉じる',
|
|
68
|
+
'command.refresh': '現在のページを更新',
|
|
69
|
+
'command.noRefresh': 'このページは更新できません',
|
|
70
|
+
@@ -137,9 +128,6 @@ export const ja = {
|
|
71
|
+
|
|
72
|
+
/** Spanish dictionary, checked against the English keys. */
|
|
73
|
+
export const es = {
|
|
74
|
+
- 'menu.close': 'Cerrar',
|
|
75
|
+
- 'menu.closeOthers': 'Cerrar otras pestañas',
|
|
76
|
+
- 'menu.closeRight': 'Cerrar pestañas a la derecha',
|
|
77
|
+
'command.close': 'Cerrar la página o ventana actual',
|
|
78
|
+
'command.refresh': 'Actualizar la página actual',
|
|
79
|
+
'command.noRefresh': 'Esta página no se puede actualizar',
|
|
80
|
+
@@ -179,9 +167,6 @@ export const es = {
|
|
81
|
+
|
|
82
|
+
/** French dictionary, checked against the English keys. */
|
|
83
|
+
export const fr = {
|
|
84
|
+
- 'menu.close': 'Fermer',
|
|
85
|
+
- 'menu.closeOthers': 'Fermer les autres onglets',
|
|
86
|
+
- 'menu.closeRight': 'Fermer les onglets à droite',
|
|
87
|
+
'command.close': 'Fermer la page ou la fenêtre actuelle',
|
|
88
|
+
'command.refresh': 'Actualiser la page actuelle',
|
|
89
|
+
'command.noRefresh': 'Cette page ne peut pas être actualisée',
|
|
90
|
+
@@ -221,9 +206,6 @@ export const fr = {
|
|
91
|
+
|
|
92
|
+
/** German dictionary, checked against the English keys. */
|
|
93
|
+
export const de = {
|
|
94
|
+
- 'menu.close': 'Schließen',
|
|
95
|
+
- 'menu.closeOthers': 'Andere Tabs schließen',
|
|
96
|
+
- 'menu.closeRight': 'Tabs rechts schließen',
|
|
97
|
+
'command.close': 'Aktuelle Seite oder Fenster schließen',
|
|
98
|
+
'command.refresh': 'Aktuelle Seite aktualisieren',
|
|
99
|
+
'command.noRefresh': 'Diese Seite kann nicht aktualisiert werden',
|
|
100
|
+
@@ -263,9 +245,6 @@ export const de = {
|
|
101
|
+
|
|
102
|
+
/** Russian dictionary, checked against the English keys. */
|
|
103
|
+
export const ru = {
|
|
104
|
+
- 'menu.close': 'Закрыть',
|
|
105
|
+
- 'menu.closeOthers': 'Закрыть другие вкладки',
|
|
106
|
+
- 'menu.closeRight': 'Закрыть вкладки справа',
|
|
107
|
+
'command.close': 'Закрыть текущую страницу или окно',
|
|
108
|
+
'command.refresh': 'Обновить текущую страницу',
|
|
109
|
+
'command.noRefresh': 'Эту страницу невозможно обновить',
|
|
110
|
+
@@ -305,9 +284,6 @@ export const ru = {
|
|
111
|
+
|
|
112
|
+
/** Portuguese dictionary, checked against the English keys. */
|
|
113
|
+
export const pt = {
|
|
114
|
+
- 'menu.close': 'Fechar',
|
|
115
|
+
- 'menu.closeOthers': 'Fechar outras abas',
|
|
116
|
+
- 'menu.closeRight': 'Fechar abas à direita',
|
|
117
|
+
'command.close': 'Fechar a página ou janela atual',
|
|
118
|
+
'command.refresh': 'Atualizar página atual',
|
|
119
|
+
'command.noRefresh': 'Esta página não pode ser atualizada',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/packages/client/ui-primitives/src/StateDot.module.css b/packages/client/ui-primitives/src/StateDot.module.css
|
|
2
|
-
index
|
|
2
|
+
index 1a692c68..3aa3186b 100644
|
|
3
3
|
--- a/packages/client/ui-primitives/src/StateDot.module.css
|
|
4
4
|
+++ b/packages/client/ui-primitives/src/StateDot.module.css
|
|
5
5
|
@@ -1,4 +1,12 @@
|
|
@@ -105,7 +105,7 @@ index 1a692c6..3aa3186 100644
|
|
|
105
105
|
+.step[data-state='warning'] { border-color: var(--dsw-alias-state-warn-primary); }
|
|
106
106
|
|
|
107
107
|
diff --git a/packages/client/ui-primitives/src/StateDot.tsx b/packages/client/ui-primitives/src/StateDot.tsx
|
|
108
|
-
index
|
|
108
|
+
index ec480c69..f54ebddf 100644
|
|
109
109
|
--- a/packages/client/ui-primitives/src/StateDot.tsx
|
|
110
110
|
+++ b/packages/client/ui-primitives/src/StateDot.tsx
|
|
111
111
|
@@ -3,35 +3,15 @@ import css from './StateDot.module.css'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
diff --git a/packages/client/ui-settings-general/src/client/SettingsRoot.module.css b/packages/client/ui-settings-general/src/client/SettingsRoot.module.css
|
|
2
|
+
index 29c3d52c..b4a456e9 100644
|
|
2
3
|
--- a/packages/client/ui-settings-general/src/client/SettingsRoot.module.css
|
|
3
4
|
+++ b/packages/client/ui-settings-general/src/client/SettingsRoot.module.css
|
|
4
|
-
@@ -
|
|
5
|
+
@@ -340,3 +340,64 @@
|
|
5
6
|
ui-web base.css's `body > :not(#root)` subtraction covers it wherever it
|
|
6
7
|
overlaps a chrome row's drag — including above every column, which an in-root
|
|
7
8
|
overlay could not promise once a chrome row declares drag itself. */
|
|
@@ -66,11 +67,3 @@ diff --git a/packages/client/ui-settings-general/src/client/SettingsRoot.module.
|
|
|
66
67
|
+
|
|
67
68
|
+ /* Takes the space the rail leaves and scrolls its own options. */
|
|
68
69
|
+ .content {
|
|
69
|
-
+ flex: 1;
|
|
70
|
-
+ min-height: 0;
|
|
71
|
-
+ }
|
|
72
|
-
+
|
|
73
|
-
+ .options {
|
|
74
|
-
+ padding-bottom: env(safe-area-inset-bottom);
|
|
75
|
-
+ }
|
|
76
|
-
+}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
diff --git a/packages/client/ui-sidebar-right/src/client/index.ts b/packages/client/ui-sidebar-right/src/client/index.ts
|
|
2
|
-
index
|
|
2
|
+
index 2c56ebc9..99a31883 100644
|
|
3
3
|
--- a/packages/client/ui-sidebar-right/src/client/index.ts
|
|
4
4
|
+++ b/packages/client/ui-sidebar-right/src/client/index.ts
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -149,7 +149,10 @@ export function apply(ctx: ClientContext): void {
|
|
6
6
|
ctx.effect(() => {
|
|
7
7
|
const sync = (): void => {
|
|
8
8
|
const selected = views.source.getSnapshot().find(view => view.selected)
|
|
@@ -15,7 +15,7 @@ index 99b800b6c8..9b317464e1 100644
|
|
|
15
15
|
const unsubscribeViews = views.source.subscribe(sync)
|
|
16
16
|
const unsubscribePanel = layout.panelInfo.subscribe(sync)
|
|
17
17
|
diff --git a/packages/client/ui-sidebar-right/src/client/shell/RightbarRoot.tsx b/packages/client/ui-sidebar-right/src/client/shell/RightbarRoot.tsx
|
|
18
|
-
index
|
|
18
|
+
index 26bedb1d..bebc7370 100644
|
|
19
19
|
--- a/packages/client/ui-sidebar-right/src/client/shell/RightbarRoot.tsx
|
|
20
20
|
+++ b/packages/client/ui-sidebar-right/src/client/shell/RightbarRoot.tsx
|
|
21
21
|
@@ -31,8 +31,12 @@ function SessionView({ view, visible, SessionProvider, renderSlot, mountView, wi
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
diff --git a/packages/client/ui-workspace/src/client/tree.ts b/packages/client/ui-workspace/src/client/tree.ts
|
|
2
|
+
index 054c584d..4c2bf0d7 100644
|
|
3
|
+
--- a/packages/client/ui-workspace/src/client/tree.ts
|
|
4
|
+
+++ b/packages/client/ui-workspace/src/client/tree.ts
|
|
5
|
+
@@ -17,6 +17,17 @@ import { workspaceTitleOf } from '@deepseek-ai/dsh-util-workspace-path'
|
|
6
|
+
/** Group key for Sessions outside every Workspace. */
|
|
7
|
+
export const UNGROUPED_KEY = ''
|
|
8
|
+
|
|
9
|
+
+/**
|
|
10
|
+
+ * Group-chat rooms own a Workspace and a Session only so the room stays selectable. Those rows
|
|
11
|
+
+ * belong to the group-chat section: the Workspace browser must not list them as folders or as
|
|
12
|
+
+ * sessions under any folder. Rooms are recognized by their directory and by the title prefix
|
|
13
|
+
+ * the plugin gives both the Workspace and the Session.
|
|
14
|
+
+ */
|
|
15
|
+
+const GROUP_ROOM_PATH_MARKER = '/group-chat/rooms/'
|
|
16
|
+
+const GROUP_ROOM_SESSION_PREFIX = '群聊·'
|
|
17
|
+
+const isGroupRoomWorkspace = (path: string | undefined, title: string): boolean =>
|
|
18
|
+
+ (typeof path === 'string' && path.includes(GROUP_ROOM_PATH_MARKER)) || title.startsWith(GROUP_ROOM_SESSION_PREFIX)
|
|
19
|
+
+
|
|
20
|
+
/**
|
|
21
|
+
* Resolve the Workspace browser group that owns one Session.
|
|
22
|
+
* @param workspaces - authoritative Workspace membership.
|
|
23
|
+
@@ -338,9 +349,15 @@ function groupByWorkspace(
|
|
24
|
+
const summary = list.byId[id]
|
|
25
|
+
if (summary === undefined) continue // account may lead the list pull; the row appears when the summary lands
|
|
26
|
+
accounted.add(id)
|
|
27
|
+
+ // A room Session stays accounted (so it never falls into Ungrouped) but is never a row of
|
|
28
|
+
+ // a Workspace group; the bottom group-chat section is its only listing.
|
|
29
|
+
+ if (sessionTitle(summary).startsWith(GROUP_ROOM_SESSION_PREFIX)) continue
|
|
30
|
+
if (!sessionVisible(summary, current, archived, archivedFilter)) continue
|
|
31
|
+
members.push(summary)
|
|
32
|
+
}
|
|
33
|
+
+ // A room Workspace still owns its Session (accounted above), but that Session belongs to
|
|
34
|
+
+ // the group-chat section rather than this browser's folder list.
|
|
35
|
+
+ if (isGroupRoomWorkspace(workspace.path, workspace.title)) continue
|
|
36
|
+
// The archived-only view lists archives, not the Workspace inventory, so
|
|
37
|
+
// a Workspace without archived Sessions contributes no group.
|
|
38
|
+
if (archivedFilter === 'only' && members.length === 0) continue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/packages/workspace/workspace/src/index.ts b/packages/workspace/workspace/src/index.ts
|
|
2
|
-
index
|
|
2
|
+
index 825cb049..e4dc7be7 100644
|
|
3
3
|
--- a/packages/workspace/workspace/src/index.ts
|
|
4
4
|
+++ b/packages/workspace/workspace/src/index.ts
|
|
5
5
|
@@ -10,7 +10,7 @@ import { mkdir, stat } from 'node:fs/promises'
|
|
@@ -11,7 +11,7 @@ index 00eaf0030c..b6e761e1cb 100644
|
|
|
11
11
|
import { WorkspaceEntity } from './entity.ts'
|
|
12
12
|
import type { WorkspaceEntityHost } from './entity.ts'
|
|
13
13
|
|
|
14
|
-
@@ -
|
|
14
|
+
@@ -186,6 +186,7 @@ const compareHeaders = (left: SessionHeader, right: SessionHeader): number =>
|
|
15
15
|
export class WorkspaceRegistry extends Service {
|
|
16
16
|
static inject = ['storageDomain', 'sessionPersistence']
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ index 00eaf0030c..b6e761e1cb 100644
|
|
|
19
19
|
private table?: KvTable<WorkspaceId, WorkspaceRecord>
|
|
20
20
|
private global?: DomainGlobal<WorkspaceDomainState>
|
|
21
21
|
private state?: WorkspaceDomainState
|
|
22
|
-
@@ -
|
|
22
|
+
@@ -213,8 +214,53 @@ export class WorkspaceRegistry extends Service {
|
|
23
23
|
|
|
24
24
|
/** Open the domain, finish bootstrap when required, and rebuild the ordered cache. */
|
|
25
25
|
protected async [Service.init](): Promise<void> {
|
|
@@ -75,10 +75,26 @@ index 00eaf0030c..b6e761e1cb 100644
|
|
|
75
75
|
this.global = domain.global
|
|
76
76
|
this.state = domain.global.get()
|
|
77
77
|
diff --git a/packages/workspace/workspace/tests/workspace.spec.ts b/packages/workspace/workspace/tests/workspace.spec.ts
|
|
78
|
-
index
|
|
78
|
+
index 427e533..9cb84da 100644
|
|
79
79
|
--- a/packages/workspace/workspace/tests/workspace.spec.ts
|
|
80
80
|
+++ b/packages/workspace/workspace/tests/workspace.spec.ts
|
|
81
|
-
@@ -
|
|
81
|
+
@@ -9,13 +9,13 @@ import Storage from '@deepseek-ai/dsh-storage'
|
|
82
|
+
import type { StorageBackend } from '@deepseek-ai/dsh-storage'
|
|
83
|
+
import { DomainFacility } from '@deepseek-ai/dsh-storage-domain'
|
|
84
|
+
import type { DomainChanged } from '@deepseek-ai/dsh-storage-domain'
|
|
85
|
+
-import SessionStore, { SESSION_FORMAT_VERSION, type SessionId } from '@deepseek-ai/dsh-session'
|
|
86
|
+
+import SessionStore, { SESSION_FORMAT_VERSION, SessionId } from '@deepseek-ai/dsh-session'
|
|
87
|
+
import type { SessionHeader } from '@deepseek-ai/dsh-session'
|
|
88
|
+
import type { SessionPersistenceRevision } from '@deepseek-ai/dsh-session-persistence'
|
|
89
|
+
import type { SessionPersistenceSnapshot } from '@deepseek-ai/dsh-session-persistence'
|
|
90
|
+
import { MemoryMediaPool, MemoryStorageBackend } from '../../../storage/storage-domain/tests/helpers/memory-backend.ts'
|
|
91
|
+
import WorkspaceRegistry, {
|
|
92
|
+
- type WorkspaceId,
|
|
93
|
+
+ WorkspaceId,
|
|
94
|
+
type workspaceDomainState,
|
|
95
|
+
WorkspaceMoveInvalidError,
|
|
96
|
+
WorkspaceOrderInvalidError,
|
|
97
|
+
@@ -1556,6 +1556,105 @@ describe('first-use Workspace preparation', () => {
|
|
82
98
|
})
|
|
83
99
|
})
|
|
84
100
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/packages/host/open-in-app/src/icons.ts b/packages/host/open-in-app/src/icons.ts
|
|
2
|
-
index
|
|
2
|
+
index 4b07441c..519ba134 100644
|
|
3
3
|
--- a/packages/host/open-in-app/src/icons.ts
|
|
4
4
|
+++ b/packages/host/open-in-app/src/icons.ts
|
|
5
5
|
@@ -98,6 +98,41 @@ const EXTRACT_ICON_PS1 = [
|
|
@@ -73,7 +73,7 @@ index 4b07441c8c..519ba1344b 100644
|
|
|
73
73
|
return desktopId === undefined ? null : extractLinuxIcon(desktopId, completed)
|
|
74
74
|
}
|
|
75
75
|
diff --git a/packages/host/open-in-app/src/resolver.ts b/packages/host/open-in-app/src/resolver.ts
|
|
76
|
-
index
|
|
76
|
+
index 8ad0cbec..6b3c75e0 100644
|
|
77
77
|
--- a/packages/host/open-in-app/src/resolver.ts
|
|
78
78
|
+++ b/packages/host/open-in-app/src/resolver.ts
|
|
79
79
|
@@ -14,10 +14,11 @@
|
|
@@ -165,11 +165,11 @@ index 970118e22a..ad8d176da4 100644
|
|
|
165
165
|
return found === null
|
|
166
166
|
? null
|
|
167
167
|
diff --git a/packages/util/native-command/src/index.ts b/packages/util/native-command/src/index.ts
|
|
168
|
-
index
|
|
168
|
+
index 0aa0125d..3890e445 100644
|
|
169
169
|
--- a/packages/util/native-command/src/index.ts
|
|
170
170
|
+++ b/packages/util/native-command/src/index.ts
|
|
171
|
-
@@ -
|
|
172
|
-
export {
|
|
171
|
+
@@ -8,6 +8,7 @@ export { isWsl } from './host-environment.ts'
|
|
172
|
+
export type { HostEnvironmentFacts } from './host-environment.ts'
|
|
173
173
|
export type { NativeCommandRunner } from './runner.ts'
|
|
174
174
|
export {
|
|
175
175
|
+ canOpenLinuxDesktop,
|
|
@@ -177,10 +177,10 @@ index 9ad8e0883c..3377ddcb6f 100644
|
|
|
177
177
|
nativeFileManager,
|
|
178
178
|
revealNativePath,
|
|
179
179
|
diff --git a/packages/util/native-command/src/path-opener.ts b/packages/util/native-command/src/path-opener.ts
|
|
180
|
-
index
|
|
180
|
+
index abd9bcba..4ddb2a13 100644
|
|
181
181
|
--- a/packages/util/native-command/src/path-opener.ts
|
|
182
182
|
+++ b/packages/util/native-command/src/path-opener.ts
|
|
183
|
-
@@ -
|
|
183
|
+
@@ -144,8 +144,55 @@ async function runExplorer(args: readonly string[], signal: AbortSignal, run: Pa
|
|
184
184
|
* @param signal - caller lifetime; abort terminates the command.
|
|
185
185
|
* @param run - shell-free command runner.
|
|
186
186
|
*/
|
|
@@ -237,7 +237,7 @@ index 67bbc35902..dd062cc003 100644
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
/** Translate a WSL path before handing it to the Windows desktop. */
|
|
240
|
-
@@ -
|
|
240
|
+
@@ -194,6 +241,25 @@ async function openNativePathWithIntent(
|
|
241
241
|
throw new Error(`native path opener is unsupported on ${platform}`)
|
|
242
242
|
}
|
|
243
243
|
|