@sparkelf/dsh-plus 0.2.9-alpha.92 → 0.2.9-alpha.93
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/cordis.patch.yml +5 -7
- package/package.json +493 -618
- package/patches/composer-popover-boundaries.patch +7 -8
- package/patches/image-offload-hoist-replay.patch +23 -29
- package/patches/responses-reasoning-status.patch +7 -17
- package/patches/browser-auth-mode.patch +0 -127
- package/patches/diagram-preview.patch +0 -562
- package/patches/office-system-soffice.patch +0 -492
- package/patches/resource-ref-chip-mentions.patch +0 -379
- package/patches/session-envelope-ignorable.patch +0 -92
- package/patches/ui-schedule-plaza-tab.patch +0 -200
- package/patches/visibility-filters.patch +0 -646
- package/patches/web-runtime-compat.patch +0 -83
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
diff --git a/packages/client/ui-schedule/src/client/TaskManagerPage.tsx b/packages/client/ui-schedule/src/client/TaskManagerPage.tsx
|
|
2
|
-
index 53a53fe9..ddb8d05f 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} />
|
|
94
|
-
diff --git a/packages/client/ui-schedule/src/client/index.ts b/packages/client/ui-schedule/src/client/index.ts
|
|
95
|
-
index 5df35309..9098ae50 100644
|
|
96
|
-
--- a/packages/client/ui-schedule/src/client/index.ts
|
|
97
|
-
+++ b/packages/client/ui-schedule/src/client/index.ts
|
|
98
|
-
@@ -73,6 +73,20 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
99
|
-
/** Host task management page and task tab copy. */
|
|
100
|
-
'schedule.manager': TaskManagerKey
|
|
101
|
-
}
|
|
102
|
-
+ interface SlotMap {
|
|
103
|
-
+ /**
|
|
104
|
-
+ * One extension body contributed at runtime to the automation-task page.
|
|
105
|
-
+ *
|
|
106
|
-
+ * The page renders the single occupant as an additional status tab and supplies no owner
|
|
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.
|
|
109
|
-
+ */
|
|
110
|
-
+ 'schedule.manager.tabs': {
|
|
111
|
-
+ kind: 'single'
|
|
112
|
-
+ scope: 'root'
|
|
113
|
-
+ owner: Record<string, never>
|
|
114
|
-
+ }
|
|
115
|
-
+ }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** Required services for catalogs, ambient Session marks, the right Sidebar, Remote queries, linked-Session navigation, and access. */
|
|
119
|
-
@@ -220,8 +234,13 @@ export function apply(ctx: ClientContext): void {
|
|
120
|
-
key: PANEL_ID,
|
|
121
|
-
locale: MANAGER_NS,
|
|
122
|
-
store: createEditorStore(),
|
|
123
|
-
+ // The automation page is the one first-level page that accepts a runtime extension tab.
|
|
124
|
-
+ // Declaring the seat here is what lets a plugin contribute a tab body without this package
|
|
125
|
-
+ // importing that plugin.
|
|
126
|
-
+ children: { 'schedule.manager.tabs': { kind: 'single', scope: 'root' } },
|
|
127
|
-
inject: (): TaskManagerInjected => ({
|
|
128
|
-
...detail,
|
|
129
|
-
+ plazaAvailable: () => ctx.slots.entriesOfSlot('schedule.manager.tabs').length > 0,
|
|
130
|
-
onNewTask: () => { ctx.uiWorkspace.startSession(undefined, { prompt: t('host.createPrompt'), whenDraftExists: 'append' }) },
|
|
131
|
-
onClearEnded: async () => {
|
|
132
|
-
const outcome = await clearEnded()
|
|
133
|
-
diff --git a/packages/client/ui-schedule/src/client/task-manager-locales.ts b/packages/client/ui-schedule/src/client/task-manager-locales.ts
|
|
134
|
-
index 13ef7c90..b6b3a90e 100644
|
|
135
|
-
--- a/packages/client/ui-schedule/src/client/task-manager-locales.ts
|
|
136
|
-
+++ b/packages/client/ui-schedule/src/client/task-manager-locales.ts
|
|
137
|
-
@@ -65,6 +65,7 @@ export const en = {
|
|
138
|
-
'empty.action': 'New automation task',
|
|
139
|
-
'statusFilter.label': 'Task status',
|
|
140
|
-
'statusFilter.all': 'All',
|
|
141
|
-
+ 'statusFilter.plaza': 'Workflow plaza',
|
|
142
|
-
'status.active': 'Enabled',
|
|
143
|
-
'detail.label': 'Task details',
|
|
144
|
-
'detail.close': 'Close details',
|
|
145
|
-
@@ -231,6 +232,7 @@ export const zh: Record<TaskManagerKey, string> = {
|
|
146
|
-
'empty.action': '新建自动化任务',
|
|
147
|
-
'statusFilter.label': '任务状态',
|
|
148
|
-
'statusFilter.all': '全部',
|
|
149
|
-
+ 'statusFilter.plaza': '工作流广场',
|
|
150
|
-
'status.active': '已开启',
|
|
151
|
-
'detail.label': '任务详情',
|
|
152
|
-
'detail.close': '关闭详情',
|
|
153
|
-
@@ -392,6 +394,7 @@ export const ja = {
|
|
154
|
-
'empty.action': '新規自動化タスク',
|
|
155
|
-
'statusFilter.label': 'タスクの状態',
|
|
156
|
-
'statusFilter.all': 'すべて',
|
|
157
|
-
+ 'statusFilter.plaza': 'ワークフロープラザ',
|
|
158
|
-
'status.active': '有効',
|
|
159
|
-
'detail.label': 'タスクの詳細',
|
|
160
|
-
'detail.close': '詳細を閉じる',
|
|
161
|
-
@@ -507,6 +510,7 @@ export const es = {
|
|
162
|
-
'empty.action': 'Nueva tarea de automatización',
|
|
163
|
-
'statusFilter.label': 'Estado de la tarea',
|
|
164
|
-
'statusFilter.all': 'Todos',
|
|
165
|
-
+ 'statusFilter.plaza': 'Plaza de flujos',
|
|
166
|
-
'status.active': 'Habilitado',
|
|
167
|
-
'detail.label': 'Detalles de la tarea',
|
|
168
|
-
'detail.close': 'Cerrar detalles',
|
|
169
|
-
@@ -668,6 +672,7 @@ export const fr = {
|
|
170
|
-
'empty.action': "Nouvelle tâche d'automatisation",
|
|
171
|
-
'statusFilter.label': 'Statut de la tâche',
|
|
172
|
-
'statusFilter.all': 'Tout',
|
|
173
|
-
+ 'statusFilter.plaza': 'Place des workflows',
|
|
174
|
-
'status.active': 'Activé',
|
|
175
|
-
'detail.label': 'Détails de la tâche',
|
|
176
|
-
'detail.close': 'Fermer les détails',
|
|
177
|
-
@@ -829,6 +834,7 @@ export const de = {
|
|
178
|
-
'empty.action': 'Neue Automatisierungsaufgabe',
|
|
179
|
-
'statusFilter.label': 'Aufgabenstatus',
|
|
180
|
-
'statusFilter.all': 'Alle',
|
|
181
|
-
+ 'statusFilter.plaza': 'Workflow-Plaza',
|
|
182
|
-
'status.active': 'Aktiviert',
|
|
183
|
-
'detail.label': 'Aufgabendetails',
|
|
184
|
-
'detail.close': 'Details schließen',
|
|
185
|
-
@@ -990,6 +996,7 @@ export const ru = {
|
|
186
|
-
'empty.action': 'Новая задача автоматизации',
|
|
187
|
-
'statusFilter.label': 'Статус задачи',
|
|
188
|
-
'statusFilter.all': 'Все',
|
|
189
|
-
+ 'statusFilter.plaza': 'Витрина сценариев',
|
|
190
|
-
'status.active': 'Включено',
|
|
191
|
-
'detail.label': 'Подробности задачи',
|
|
192
|
-
'detail.close': 'Закрыть детали',
|
|
193
|
-
@@ -1151,6 +1158,7 @@ export const pt = {
|
|
194
|
-
'empty.action': 'Nova tarefa de automação',
|
|
195
|
-
'statusFilter.label': 'Status da tarefa',
|
|
196
|
-
'statusFilter.all': 'Todos',
|
|
197
|
-
+ 'statusFilter.plaza': 'Praça de fluxos',
|
|
198
|
-
'status.active': 'Habilitado',
|
|
199
|
-
'detail.label': 'Detalhes da tarefa',
|
|
200
|
-
'detail.close': 'Fechar detalhes',
|