@sparkelf/dsh-plus 0.2.9-alpha.73 → 0.2.9-alpha.75
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 +550 -533
- package/patches/ui-schedule-plaza-tab.patch +98 -19
- package/LICENSE +0 -21
|
@@ -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;
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 DeepSeek
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|