@sparkelf/dsh-plus 0.2.9-alpha.71 → 0.2.9-alpha.73

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "@deepseek-ai/dsh-web-search-exa": "0.1.6-alpha.1",
9
9
  "@sparkelf/dsh-image-hoist": ">=0.1.3",
10
10
  "@sparkelf/dsh-plugin-backup": ">=0.2.1-alpha.1",
11
- "@sparkelf/dsh-plugin-mcp-credentials": ">=0.2.1-alpha.53",
11
+ "@sparkelf/dsh-plugin-mcp-credentials": ">=0.2.1-alpha.54",
12
12
  "dshmarket": ">=1.66.7",
13
13
  "semver": ">=7.7.3",
14
14
  "yaml": ">=2.9.0"
@@ -553,6 +553,21 @@
553
553
  ]
554
554
  }
555
555
  },
556
+ {
557
+ "dsh": ">=0.2.2-alpha.2",
558
+ "file": "./patches/sidebar-right-tab-menu.patch",
559
+ "id": "sidebar-right-tab-menu",
560
+ "retireWhen": "官方 dsh-client-ui-sidebar-right 去掉 tab 右键菜单里的关闭/关闭其他/关闭右侧三项后退役",
561
+ "target": {
562
+ "kind": "dsh-source",
563
+ "packages": [
564
+ "@deepseek-ai/dsh-client-ui-sidebar-right"
565
+ ],
566
+ "paths": [
567
+ "packages/client/ui-sidebar-right/"
568
+ ]
569
+ }
570
+ },
556
571
  {
557
572
  "dsh": ">=0.2.2-alpha.2",
558
573
  "file": "./patches/state-dot-brand-blue.patch",
@@ -752,7 +767,7 @@
752
767
  "@sparkelf/dsh-client-ui-skill-center": "0.2.2-alpha.2.5",
753
768
  "@sparkelf/dsh-credential-manager": "0.1.3",
754
769
  "@sparkelf/dsh-dataops-account": "0.2.0",
755
- "@sparkelf/dsh-dataops-managed": "0.3.45",
770
+ "@sparkelf/dsh-dataops-managed": "0.3.46",
756
771
  "@sparkelf/dsh-genui": "0.15.0-sparkelf.3",
757
772
  "@sparkelf/dsh-group-chat": "0.5.10",
758
773
  "@sparkelf/dsh-kb-citation": "0.1.3",
@@ -825,5 +840,5 @@
825
840
  },
826
841
  "type": "module",
827
842
  "types": "lib/types/index.d.ts",
828
- "version": "0.2.9-alpha.71"
843
+ "version": "0.2.9-alpha.73"
829
844
  }
@@ -0,0 +1,117 @@
1
+ diff --git a/packages/client/ui-sidebar-right/src/client/index.ts b/packages/client/ui-sidebar-right/src/client/index.ts
2
+ --- a/packages/client/ui-sidebar-right/src/client/index.ts
3
+ +++ b/packages/client/ui-sidebar-right/src/client/index.ts
4
+ @@ -1,5 +1,4 @@
5
+ import { IconCloseOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
6
+ -import type { ShortcutCommandId } from '@deepseek-ai/dsh-client-shortcuts/client'
7
+ import { TabMenuContent } from './shell/TabMenuContent.tsx'
8
+ import type {} from '@deepseek-ai/dsh-client-ui-context-menu/client'
9
+ /**
10
+ @@ -138,24 +137,6 @@
11
+ ctx.effect(() => ctx.slots.inject('contextMenu.icon', () => ctx.slots.register({
12
+ name: 'contextMenu.icon', key: 'sidebar.close',
13
+ }, IconCloseOutlineRegular)), 'sidebar: menu icon')
14
+ - ctx.effect(() => ctx.contextMenus.register({
15
+ - id: 'sidebar.close', target: 'tab', order: 100,
16
+ - resolve: ({ sessionId, paneId, tab }) => {
17
+ - const tabId = tab.id
18
+ - const tabs = controller.menuTabs(sessionId, paneId, tabId)
19
+ - if (!tabs.close && tabs.all.length === 0) return []
20
+ - const closeMany = (ids: readonly TabId[]) => {
21
+ - for (const id of ids) {
22
+ - if (controller.menuTabs(sessionId, paneId, tabId).all.includes(id)) controller.closeIn(sessionId, id)
23
+ - }
24
+ - }
25
+ - return [
26
+ - { 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) } },
27
+ - { id: 'others', label: t('menu.closeOthers'), disabled: tabs.all.length === 0, run: () => { closeMany(tabs.all) } },
28
+ - ...tabs.right.length === 0 ? [] : [{ id: 'right', label: t('menu.closeRight'), run: () => { closeMany(tabs.right) } }],
29
+ - ]
30
+ - },
31
+ - }), 'sidebar: menu actions')
32
+ ctx.effect(() => ctx.slots.inject('contextMenu.content', () => ctx.slots.register({
33
+ name: 'contextMenu.content', key: 'tab',
34
+ children: { 'sidebar.right.tab.menu.item': { kind: 'list', scope: 'session' } },
35
+ diff --git a/packages/client/ui-sidebar-right/src/client/locales.ts b/packages/client/ui-sidebar-right/src/client/locales.ts
36
+ --- a/packages/client/ui-sidebar-right/src/client/locales.ts
37
+ +++ b/packages/client/ui-sidebar-right/src/client/locales.ts
38
+ @@ -8,9 +8,6 @@
39
+
40
+ /** Simplified Chinese dictionary and key-set source of truth. */
41
+ export const zh = {
42
+ - 'menu.close': '关闭',
43
+ - 'menu.closeOthers': '关闭其他标签页',
44
+ - 'menu.closeRight': '关闭右侧标签页',
45
+ 'command.close': '关闭当前页面/窗口',
46
+ 'command.refresh': '刷新当前页面',
47
+ 'command.noRefresh': '当前页面不支持刷新',
48
+ @@ -53,9 +50,6 @@
49
+
50
+ /** English dictionary, checked against the Chinese key set. */
51
+ export const en = {
52
+ - 'menu.close': 'Close',
53
+ - 'menu.closeOthers': 'Close Other Tabs',
54
+ - 'menu.closeRight': 'Close Tabs to the Right',
55
+ 'command.close': 'Close current page or window',
56
+ 'command.refresh': 'Refresh current page',
57
+ 'command.noRefresh': 'This page cannot be refreshed',
58
+ @@ -95,9 +89,6 @@
59
+
60
+ /** Japanese copy, checked against the English keys. */
61
+ export const ja = {
62
+ - 'menu.close': '閉じる',
63
+ - 'menu.closeOthers': '他のタブを閉じる',
64
+ - 'menu.closeRight': '右側のタブを閉じる',
65
+ 'command.close': '現在のページまたはウィンドウを閉じる',
66
+ 'command.refresh': '現在のページを更新',
67
+ 'command.noRefresh': 'このページは更新できません',
68
+ @@ -137,9 +128,6 @@
69
+
70
+ /** Spanish dictionary, checked against the English keys. */
71
+ export const es = {
72
+ - 'menu.close': 'Cerrar',
73
+ - 'menu.closeOthers': 'Cerrar otras pestañas',
74
+ - 'menu.closeRight': 'Cerrar pestañas a la derecha',
75
+ 'command.close': 'Cerrar la página o ventana actual',
76
+ 'command.refresh': 'Actualizar la página actual',
77
+ 'command.noRefresh': 'Esta página no se puede actualizar',
78
+ @@ -179,9 +167,6 @@
79
+
80
+ /** French dictionary, checked against the English keys. */
81
+ export const fr = {
82
+ - 'menu.close': 'Fermer',
83
+ - 'menu.closeOthers': 'Fermer les autres onglets',
84
+ - 'menu.closeRight': 'Fermer les onglets à droite',
85
+ 'command.close': 'Fermer la page ou la fenêtre actuelle',
86
+ 'command.refresh': 'Actualiser la page actuelle',
87
+ 'command.noRefresh': 'Cette page ne peut pas être actualisée',
88
+ @@ -221,9 +206,6 @@
89
+
90
+ /** German dictionary, checked against the English keys. */
91
+ export const de = {
92
+ - 'menu.close': 'Schließen',
93
+ - 'menu.closeOthers': 'Andere Tabs schließen',
94
+ - 'menu.closeRight': 'Tabs rechts schließen',
95
+ 'command.close': 'Aktuelle Seite oder Fenster schließen',
96
+ 'command.refresh': 'Aktuelle Seite aktualisieren',
97
+ 'command.noRefresh': 'Diese Seite kann nicht aktualisiert werden',
98
+ @@ -263,9 +245,6 @@
99
+
100
+ /** Russian dictionary, checked against the English keys. */
101
+ export const ru = {
102
+ - 'menu.close': 'Закрыть',
103
+ - 'menu.closeOthers': 'Закрыть другие вкладки',
104
+ - 'menu.closeRight': 'Закрыть вкладки справа',
105
+ 'command.close': 'Закрыть текущую страницу или окно',
106
+ 'command.refresh': 'Обновить текущую страницу',
107
+ 'command.noRefresh': 'Эту страницу невозможно обновить',
108
+ @@ -305,9 +284,6 @@
109
+
110
+ /** Portuguese dictionary, checked against the English keys. */
111
+ export const pt = {
112
+ - 'menu.close': 'Fechar',
113
+ - 'menu.closeOthers': 'Fechar outras abas',
114
+ - 'menu.closeRight': 'Fechar abas à direita',
115
+ 'command.close': 'Fechar a página ou janela atual',
116
+ 'command.refresh': 'Atualizar página atual',
117
+ 'command.noRefresh': 'Esta página não pode ser atualizada',