@sparkelf/dsh-plus 0.2.9-alpha.72 → 0.2.9-alpha.74

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
@@ -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",
@@ -679,6 +694,23 @@
679
694
  "packages/skill/"
680
695
  ]
681
696
  }
697
+ },
698
+ {
699
+ "dsh": ">=0.2.2-rc.1",
700
+ "file": "./patches/ui-schedule-plaza-tab.patch",
701
+ "id": "ui-schedule-plaza-tab",
702
+ "retireWhen": "官方 automation 页提供稳定的 tab 扩展点后退役",
703
+ "target": {
704
+ "kind": "dsh-source",
705
+ "packages": [
706
+ "@deepseek-ai/dsh-client-ui-schedule"
707
+ ],
708
+ "paths": [
709
+ "packages/client/ui-schedule/"
710
+ ],
711
+ "reason": "@sparkelf/dsh-client-ui-schedule 没有 0.2.2-rc.1 发布;dsh-plus 在 profile 安装后把源码树里的 official workspace 软链进 profile(linkOfficialPackages),补丁实现由源码树提供,不需要 republish。",
712
+ "republish": false
713
+ }
682
714
  }
683
715
  ],
684
716
  "formatVersion": 1
@@ -752,7 +784,7 @@
752
784
  "@sparkelf/dsh-client-ui-skill-center": "0.2.2-alpha.2.5",
753
785
  "@sparkelf/dsh-credential-manager": "0.1.3",
754
786
  "@sparkelf/dsh-dataops-account": "0.2.0",
755
- "@sparkelf/dsh-dataops-managed": "0.3.46",
787
+ "@sparkelf/dsh-dataops-managed": "0.3.47",
756
788
  "@sparkelf/dsh-genui": "0.15.0-sparkelf.3",
757
789
  "@sparkelf/dsh-group-chat": "0.5.10",
758
790
  "@sparkelf/dsh-kb-citation": "0.1.3",
@@ -825,5 +857,5 @@
825
857
  },
826
858
  "type": "module",
827
859
  "types": "lib/types/index.d.ts",
828
- "version": "0.2.9-alpha.72"
860
+ "version": "0.2.9-alpha.74"
829
861
  }
@@ -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',
@@ -1,8 +1,101 @@
1
+ diff --git a/packages/client/ui-schedule/src/client/TaskManagerPage.tsx b/packages/client/ui-schedule/src/client/TaskManagerPage.tsx
2
+ index 53a53fe9..b1f3e39c 100644
3
+ --- a/packages/client/ui-schedule/src/client/TaskManagerPage.tsx
4
+ +++ b/packages/client/ui-schedule/src/client/TaskManagerPage.tsx
5
+ @@ -6,7 +6,7 @@ import {
6
+ IconSearchOutlineRegular, IconTrashOutlineRegular, IconChevronDownOutlineRegular, IconEditOutlineRegular,
7
+ Input, Menu, MenuItemButton, Modal, ReferenceIconRegular, Tooltip,
8
+ } from '@deepseek-ai/dsh-client-ui-primitives'
9
+ -import type { HostObservable, InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
10
+ +import type { HostObservable, InjectFace, PropsLocale, PropsRenderSlots, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
11
+ import type {} from '@deepseek-ai/dsh-client-ui-layout/client'
12
+ import type { ScheduleId, ScheduleCatalogEntry, ScheduleCreateRequest } from '@deepseek-ai/dsh-schedule/client'
13
+ import type { TaskCreateOutcome } from './TaskDetail.tsx'
14
+ @@ -42,6 +42,14 @@ export interface TaskManagerInjected extends TaskDetailInjected {
15
+ readonly onClearEnded: () => Promise<void>
16
+ /** Create a task directly through the Host, without a model request. */
17
+ readonly onCreateTask: (request: ScheduleCreateRequest) => Promise<TaskCreateOutcome>
18
+ + /**
19
+ + * Whether a plugin currently contributes the page's runtime extension tab.
20
+ + *
21
+ + * Read while rendering, so a contributor that registers after this page mounted still makes its
22
+ + * tab appear on the next render; with no contributor the page keeps exactly its status tabs.
23
+ + * @returns true when the `schedule.manager.tabs` seat has an occupant.
24
+ + */
25
+ + readonly plazaAvailable?: () => boolean
26
+ }
27
+
28
+ /** Root-scoped task catalog props derived from the framework and injected actions. */
29
+ @@ -49,8 +57,11 @@ export type TaskManagerPageProps = PropsRuntime<'main'>
30
+ & InjectFace<TaskManagerInjected>
31
+ & TaskEditorStoreProps
32
+ & PropsLocale<'schedule.manager'>
33
+ + // Narrowed to the one seat this page declares; optional so a unit test can render the page
34
+ + // without a slot host, as every other page-level test does.
35
+ + & Partial<PropsRenderSlots<'schedule.manager.tabs'>>
36
+
37
+ -type StatusFilter = 'all' | ScheduleCatalogEntry['status']
38
+ +type StatusFilter = 'all' | ScheduleCatalogEntry['status'] | 'plaza'
39
+
40
+ /**
41
+ * Render retained tasks with manual creation, inline editing, and authoritative deletion.
42
+ @@ -58,7 +69,7 @@ type StatusFilter = 'all' | ScheduleCatalogEntry['status']
43
+ * @returns the searchable task list beside the selected task's detail.
44
+ */
45
+ export function TaskManagerPage(props: TaskManagerPageProps) {
46
+ - const { useCatalog, onNewTask, onClearEnded, onRetry, onCreateTask, t } = props
47
+ + const { useCatalog, onNewTask, onClearEnded, onRetry, onCreateTask, plazaAvailable, renderSlot, t } = props
48
+ const [createMenuOpen, setCreateMenuOpen] = useState(false)
49
+ const [manualOpen, setManualOpen] = useState(false)
50
+ const catalog = useCatalog(snapshot => snapshot)
51
+ @@ -96,7 +107,7 @@ export function TaskManagerPage(props: TaskManagerPageProps) {
52
+ const rows = useMemo(() => {
53
+ const query = search.trim().toLowerCase()
54
+ return records.filter(record => (
55
+ - (statusFilter === 'all' || record.status === statusFilter)
56
+ + (statusFilter === 'all' || (statusFilter !== 'plaza' && record.status === statusFilter))
57
+ && (record.prompt.toLowerCase().includes(query)
58
+ || (taskSessionId(record) ?? '').toLowerCase().includes(query)
59
+ || taskName(record).toLowerCase().includes(query))
60
+ @@ -232,6 +243,17 @@ export function TaskManagerPage(props: TaskManagerPageProps) {
61
+ {t(value === 'all' ? 'statusFilter.all' : `status.${value}`)}
62
+ </button>
63
+ ))}
64
+ + {plazaAvailable?.() === true && (
65
+ + <button
66
+ + type="button"
67
+ + className={clsx(css.filterTab, statusFilter === 'plaza' && css.filterTabActive)}
68
+ + aria-pressed={statusFilter === 'plaza'}
69
+ + data-testid="task-manager-plaza-tab"
70
+ + onClick={() => { setStatusFilter('plaza') }}
71
+ + >
72
+ + {t('statusFilter.plaza')}
73
+ + </button>
74
+ + )}
75
+ </div>
76
+ </div>
77
+ <div className={css.searchTools}>
78
+ @@ -279,7 +301,14 @@ export function TaskManagerPage(props: TaskManagerPageProps) {
79
+ </Tooltip>}
80
+ />}
81
+ </div>
82
+ - <div className={css.list}>
83
+ + {statusFilter === 'plaza' && plazaAvailable?.() === true
84
+ + ? (
85
+ + <div className={css.list} data-testid="task-manager-plaza-body">
86
+ + {renderSlot?.('schedule.manager.tabs', {})}
87
+ + </div>
88
+ + )
89
+ + : null}
90
+ + <div className={css.list} hidden={statusFilter === 'plaza'}>
91
+ {selected === undefined && <CatalogFeedback status={status} populated={rows.length > 0} onRetry={onRetry} t={t} />}
92
+ {status === 'ready' && rows.length === 0 && <div className={css.empty} role="status">
93
+ <ScheduleEmptyIllustration className={css.emptyIllustration} />
1
94
  diff --git a/packages/client/ui-schedule/src/client/index.ts b/packages/client/ui-schedule/src/client/index.ts
2
- index 5df35309..8ae6791e 100644
95
+ index 5df35309..9098ae50 100644
3
96
  --- a/packages/client/ui-schedule/src/client/index.ts
4
97
  +++ b/packages/client/ui-schedule/src/client/index.ts
5
- @@ -73,6 +73,21 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
98
+ @@ -73,6 +73,20 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
6
99
  /** Host task management page and task tab copy. */
7
100
  'schedule.manager': TaskManagerKey
8
101
  }
@@ -11,9 +104,8 @@ index 5df35309..8ae6791e 100644
11
104
  + * One extension body contributed at runtime to the automation-task page.
12
105
  + *
13
106
  + * The page renders the single occupant as an additional status tab and supplies no owner
14
- + * props: a contributor owns its own data and needs no identity from the page. The seat
15
- + * belongs to no Session, so opening the page never mounts a contributor against an arbitrary
16
- + * conversation.
107
+ + * props: a contributor owns its own data and needs no identity from the page. The seat belongs
108
+ + * to no Session, so opening the page never mounts a contributor against a conversation.
17
109
  + */
18
110
  + 'schedule.manager.tabs': {
19
111
  + kind: 'single'
@@ -24,7 +116,7 @@ index 5df35309..8ae6791e 100644
24
116
  }
25
117
 
26
118
  /** Required services for catalogs, ambient Session marks, the right Sidebar, Remote queries, linked-Session navigation, and access. */
27
- @@ -220,8 +235,13 @@ export function apply(ctx: ClientContext): void {
119
+ @@ -220,8 +234,13 @@ export function apply(ctx: ClientContext): void {
28
120
  key: PANEL_ID,
29
121
  locale: MANAGER_NS,
30
122
  store: createEditorStore(),
@@ -106,16 +198,3 @@ index 13ef7c90..b6b3a90e 100644
106
198
  'status.active': 'Habilitado',
107
199
  'detail.label': 'Detalhes da tarefa',
108
200
  'detail.close': 'Fechar detalhes',
109
- --- a/packages/client/ui-schedule/src/client/TaskManagerPage.tsx
110
- +++ b/packages/client/ui-schedule/src/client/TaskManagerPage.tsx
111
- @@ -31,6 +31,10 @@
112
- */
113
- readonly onNewTask: () => void
114
- /**
115
- + * Whether a plaza tab is mounted, so the page can show the plaza entry.
116
- + */
117
- + readonly plazaAvailable: () => boolean
118
- + /**
119
- * Remove every ended Host task, after this page has confirmed the action.
120
- *
121
- * The call requests no task ids, so the Host's ended set is the one removed;