@sparkelf/dsh-plus 0.2.9-alpha.73 → 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 +19 -2
- package/patches/ui-schedule-plaza-tab.patch +98 -19
package/package.json
CHANGED
|
@@ -694,6 +694,23 @@
|
|
|
694
694
|
"packages/skill/"
|
|
695
695
|
]
|
|
696
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
|
+
}
|
|
697
714
|
}
|
|
698
715
|
],
|
|
699
716
|
"formatVersion": 1
|
|
@@ -767,7 +784,7 @@
|
|
|
767
784
|
"@sparkelf/dsh-client-ui-skill-center": "0.2.2-alpha.2.5",
|
|
768
785
|
"@sparkelf/dsh-credential-manager": "0.1.3",
|
|
769
786
|
"@sparkelf/dsh-dataops-account": "0.2.0",
|
|
770
|
-
"@sparkelf/dsh-dataops-managed": "0.3.
|
|
787
|
+
"@sparkelf/dsh-dataops-managed": "0.3.47",
|
|
771
788
|
"@sparkelf/dsh-genui": "0.15.0-sparkelf.3",
|
|
772
789
|
"@sparkelf/dsh-group-chat": "0.5.10",
|
|
773
790
|
"@sparkelf/dsh-kb-citation": "0.1.3",
|
|
@@ -840,5 +857,5 @@
|
|
|
840
857
|
},
|
|
841
858
|
"type": "module",
|
|
842
859
|
"types": "lib/types/index.d.ts",
|
|
843
|
-
"version": "0.2.9-alpha.
|
|
860
|
+
"version": "0.2.9-alpha.74"
|
|
844
861
|
}
|
|
@@ -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..
|
|
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,
|
|
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
|
-
+ *
|
|
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 +
|
|
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;
|