@sparkelf/dsh-plus 0.2.9-alpha.80 → 0.2.9-alpha.82

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.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/lib/apply-DycMqLJO.js +852 -0
  3. package/lib/apply.js +1 -1
  4. package/lib/bin.js +1 -1
  5. package/lib/types/apply.js +37 -2
  6. package/package.json +495 -516
  7. package/patches/approval-allow-policy.patch +3 -3
  8. package/patches/atomic-write-zombie-lock-holder.patch +1 -1
  9. package/patches/bootstrap-exempt-names.patch +6 -6
  10. package/patches/browser-auth-mode.patch +3 -3
  11. package/patches/composer-popover-boundaries.patch +33 -69
  12. package/patches/diagram-preview.patch +3 -3
  13. package/patches/image-offload-hoist-replay.patch +6 -6
  14. package/patches/input-trigger-source-label.patch +4 -4
  15. package/patches/legacy-code-preset.patch +5 -5
  16. package/patches/llm-pi-ai-transport-truncation.patch +4 -4
  17. package/patches/mobile-journal-generation.patch +2 -2
  18. package/patches/office-preview-stable-load.patch +1 -1
  19. package/patches/officecli-deliverables.patch +2 -2
  20. package/patches/ptc-mcp-schema-types.patch +3 -3
  21. package/patches/resource-ref-chip-mentions.patch +34 -32
  22. package/patches/responses-reasoning-status.patch +208 -49
  23. package/patches/session-controller-image-downgrade-and-tool-visibility.patch +16 -14
  24. package/patches/session-envelope-ignorable.patch +57 -28
  25. package/patches/session-export-chinese.patch +11 -11
  26. package/patches/session-format-legacy-restart.patch +1 -1
  27. package/patches/sidebar-right-tab-menu.patch +10 -8
  28. package/patches/state-dot-brand-blue.patch +2 -2
  29. package/patches/ui-schedule-plaza-tab.patch +1 -1
  30. package/patches/ui-settings-compact-phone.patch +2 -9
  31. package/patches/ui-sidebar-right-global-panel.patch +3 -3
  32. package/patches/visibility-filters.patch +10 -10
  33. package/patches/web-runtime-compat.patch +1 -1
  34. package/patches/workspace-hide-group-rooms.patch +2 -2
  35. package/patches/workspace-storage-restore.patch +5 -5
  36. package/patches/wsl-native-open.patch +8 -8
  37. package/patches/session-log-trajectory-toolbar.patch +0 -352
@@ -1,352 +0,0 @@
1
- diff --git a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css
2
- index ca346565..98f68705 100644
3
- --- a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css
4
- +++ b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css
5
- @@ -178,13 +178,19 @@
6
- font: 14px/14px var(--ds-font-family-code);
7
- }
8
-
9
- +.utilities {
10
- + display: flex;
11
- + flex: none;
12
- + align-items: center;
13
- + margin-left: auto;
14
- +}
15
- +
16
- .search {
17
- display: flex;
18
- flex: 0 1 164px;
19
- align-items: center;
20
- min-width: 84px;
21
- height: 22px;
22
- - margin-left: auto;
23
- padding: 0 6px;
24
- gap: 4px;
25
- border: 0.5px solid var(--dsw-alias-border-l4);
26
- diff --git a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx
27
- index 98303805..3a1ad957 100644
28
- --- a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx
29
- +++ b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx
30
- @@ -1,5 +1,6 @@
31
- /** Trajectory toolbar: timeline and ledger fold controls. */
32
-
33
- +import type { ReactNode } from 'react'
34
- import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'
35
- import { IconSearchOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
36
- import type { NS } from './locales.ts'
37
- @@ -30,6 +31,8 @@ export interface TrajectoryToolbarProps {
38
- searchQuery: string
39
- /** Update the live ledger search query. */
40
- onSearchQueryChange: (query: string) => void
41
- + /** Session utilities contributed immediately before search. */
42
- + utilities: ReactNode
43
- /** Translate a toolbar dictionary key. */
44
- t: TranslateNS<typeof NS>
45
- }
46
- @@ -52,6 +55,7 @@ export function TrajectoryToolbar({
47
- onToggleAllSubCalls,
48
- searchQuery,
49
- onSearchQueryChange,
50
- + utilities,
51
- t,
52
- }: TrajectoryToolbarProps) {
53
- return (
54
- @@ -130,7 +134,8 @@ export function TrajectoryToolbar({
55
- {t('toolbar.subCalls')}
56
- </button>
57
- </div>
58
- - <div className={css.search}>
59
- + <div className={css.utilities} data-trajectory-toolbar-utilities="">{utilities}</div>
60
- + <div className={css.search} data-trajectory-search="">
61
- <IconSearchOutlineRegular size={11} className={css.searchIcon} />
62
- <input
63
- type="search"
64
- diff --git a/packages/client/ui-trajectory/src/client/TrajectoryView.tsx b/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
65
- index 3c70561d..e0095772 100644
66
- --- a/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
67
- +++ b/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
68
- @@ -135,7 +135,9 @@ export function TrajectoryView({
69
- useSession, useTrajectory, useDuration, watchToolResult, loadOlder, loadImage, setActualDuration,
70
- viewRequest, completeViewRequest, renderSlot, t, jsonStringWrapping,
71
- }: ConvViewProps
72
- - & Pick<PropsRenderSlots<'conversation.trajectory.images'>, 'renderSlot'>
73
- + & PropsRenderSlots<
74
- + 'conversation.trajectory.images' | 'conversation.trajectory.toolbar.utilities'
75
- + >
76
- & InjectFace<TrajectoryViewInjected>
77
- & PropsLocale<'trajectory'>) {
78
- const [collapsedTurns, setCollapsedTurns] = useState<ReadonlySet<number>>(EMPTY_TURN_IDS)
79
- @@ -562,6 +564,7 @@ export function TrajectoryView({
80
- onToggleAllSubCalls={toggleAllSubCalls}
81
- searchQuery={searchQuery}
82
- onSearchQueryChange={setSearchQuery}
83
- + utilities={renderSlot('conversation.trajectory.toolbar.utilities', {})}
84
- t={t}
85
- />
86
- <TrajectoryTimeline
87
- diff --git a/packages/client/ui-trajectory/src/client/index.ts b/packages/client/ui-trajectory/src/client/index.ts
88
- index 28bf045a..6e44cb96 100644
89
- --- a/packages/client/ui-trajectory/src/client/index.ts
90
- +++ b/packages/client/ui-trajectory/src/client/index.ts
91
- @@ -38,6 +38,13 @@ export type {
92
- UseTrajectory,
93
- } from './trajectory-contract.ts'
94
-
95
- +declare module '@deepseek-ai/dsh-client-ui-slots' {
96
- + interface SlotMap {
97
- + /** Compact Session utilities immediately before the Trajectory search field. */
98
- + 'conversation.trajectory.toolbar.utilities': { kind: 'list'; scope: 'session' }
99
- + }
100
- +}
101
- +
102
- /** Required services: the conversation slot, registries, ordinary Session paging, and the locale service. */
103
- export const inject = ['slots', 'sessions', 'uiSession', 'uiConversation', 'locale', 'remote', 'remote.toolResults']
104
-
105
- @@ -83,7 +90,10 @@ export function apply(ctx: Context): void {
106
- order: 10,
107
- locale: NS,
108
- label: () => t('view.trajectory'),
109
- - children: { 'conversation.trajectory.images': { kind: 'single', scope: 'session' } },
110
- + children: {
111
- + 'conversation.trajectory.images': { kind: 'single', scope: 'session' },
112
- + 'conversation.trajectory.toolbar.utilities': { kind: 'list', scope: 'session' },
113
- + },
114
- inject: (sessionId: SessionId): TrajectoryViewInjected => {
115
- const session = ctx.sessions.binding(sessionId)?.session
116
- if (session === undefined) {
117
- diff --git a/packages/client/ui-trajectory/tests/views.client.spec.tsx b/packages/client/ui-trajectory/tests/views.client.spec.tsx
118
- index 9b61aaef..d5933bad 100644
119
- --- a/packages/client/ui-trajectory/tests/views.client.spec.tsx
120
- +++ b/packages/client/ui-trajectory/tests/views.client.spec.tsx
121
- @@ -251,6 +251,9 @@ function standaloneProps(
122
- loadImage: () => Promise.reject(new Error('standalone views load no images')),
123
- // The locale seat the outlet would inject for the declared namespace.
124
- t: tZh,
125
- + // The rc.2 slot map widened this view to a session scope, so the
126
- + // standard kit the outlet would bake now includes the SessionProvider seat.
127
- + SessionProvider: ({ children }: { children: ReactNode }) => children,
128
- }
129
- }
130
-
131
- diff --git a/packages/session-query/session-log-export/package.json b/packages/session-query/session-log-export/package.json
132
- index 376163ed..81d87972 100644
133
- --- a/packages/session-query/session-log-export/package.json
134
- +++ b/packages/session-query/session-log-export/package.json
135
- @@ -49,8 +49,8 @@
136
- "@deepseek-ai/dsh-session-persistence": "workspace:*"
137
- },
138
- "devDependencies": {
139
- - "@deepseek-ai/cordis": "workspace:~",
140
- "@deepseek-ai/cordis-plugin-loader": "workspace:~",
141
- + "@deepseek-ai/cordis": "workspace:~",
142
- "@deepseek-ai/dsh-agent": "workspace:*",
143
- "@deepseek-ai/dsh-attachment": "workspace:*",
144
- "@deepseek-ai/dsh-client-connection": "workspace:*",
145
- @@ -64,11 +64,13 @@
146
- "@deepseek-ai/dsh-client-ui-renderer": "workspace:*",
147
- "@deepseek-ai/dsh-client-ui-session": "workspace:*",
148
- "@deepseek-ai/dsh-client-ui-slots": "workspace:*",
149
- + "@deepseek-ai/dsh-client-ui-trajectory": "workspace:*",
150
- "@deepseek-ai/dsh-commands": "workspace:*",
151
- "@deepseek-ai/dsh-session": "workspace:*",
152
- "@deepseek-ai/dsh-session-persistence": "workspace:*",
153
- "@deepseek-ai/dsh-session-query": "workspace:*",
154
- "@deepseek-ai/dsh-session-title": "workspace:*",
155
- + "@types/react": "~18.3.1",
156
- "react": "^18.2.0"
157
- },
158
- "dsh": {
159
- @@ -79,7 +81,8 @@
160
- "@deepseek-ai/dsh-client-ui-conversation",
161
- "@deepseek-ai/dsh-client-ui-layout",
162
- "@deepseek-ai/dsh-client-ui-renderer",
163
- - "@deepseek-ai/dsh-client-ui-session"
164
- + "@deepseek-ai/dsh-client-ui-session",
165
- + "@deepseek-ai/dsh-client-ui-trajectory"
166
- ],
167
- "platform": "web"
168
- }
169
- diff --git a/packages/session-query/session-log-export/src/client/HeaderAction.module.css b/packages/session-query/session-log-export/src/client/HeaderAction.module.css
170
- index 90ca1eed..aa22e45e 100644
171
- --- a/packages/session-query/session-log-export/src/client/HeaderAction.module.css
172
- +++ b/packages/session-query/session-log-export/src/client/HeaderAction.module.css
173
- @@ -10,3 +10,46 @@
174
- width: 15px;
175
- height: 15px;
176
- }
177
- +/* The Header action is the shared compact Button; the Trajectory action below
178
- + replaces it from 768px, where the header has room for a labelled control. */
179
- +
180
- +.trajectoryButton {
181
- + display: none;
182
- + flex: none;
183
- + align-items: center;
184
- + height: 22px;
185
- + padding: 0 6px;
186
- + gap: 4px;
187
- + border: 0;
188
- + border-radius: 3px;
189
- + color: var(--dsw-alias-label-tertiary);
190
- + background: transparent;
191
- + cursor: pointer;
192
- + font: var(--dsw-font-xxs-12);
193
- +}
194
- +
195
- +.trajectoryButton:hover:not(:disabled) {
196
- + color: var(--dsw-alias-label-primary);
197
- + background: var(--dsw-alias-interactive-bg-hover);
198
- +}
199
- +
200
- +.trajectoryButton:focus-visible {
201
- + outline: 1px solid var(--dsw-alias-state-business-primary);
202
- + outline-offset: 1px;
203
- +}
204
- +
205
- +.trajectoryButton:disabled {
206
- + color: var(--dsw-alias-label-dimmed);
207
- + cursor: wait;
208
- +}
209
- +
210
- +.trajectoryButton span,
211
- +.trajectoryButton svg { flex: none; }
212
- +.trajectoryButton span { white-space: nowrap; }
213
- +
214
- +/* Wider layouts replace the Header action with the compact Trajectory one. */
215
- +@media (min-width: 768px) {
216
- + .moreButton { display: none; }
217
- +
218
- + .trajectoryButton { display: inline-flex; }
219
- +}
220
- diff --git a/packages/session-query/session-log-export/src/client/HeaderAction.tsx b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
221
- index fcf0cfd8..74a8209f 100644
222
- --- a/packages/session-query/session-log-export/src/client/HeaderAction.tsx
223
- +++ b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
224
- @@ -1,12 +1,13 @@
225
- import { useState } from 'react'
226
- import type { ReactNode } from 'react'
227
- import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
228
- -import type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'
229
- +import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
230
- import type { SessionId } from '@deepseek-ai/dsh-session/types'
231
- import {
232
- Button, IconCopyOutlineRegular, IconDownloadOutlineRegular, IconEllipsisOutlineRegular,
233
- IconPaperPlaneOutlineRegular, Menu,
234
- } from '@deepseek-ai/dsh-client-ui-primitives'
235
- +import { NS } from './locales.ts'
236
- import { SessionLogDownloadDialog, type SessionLogDownloadDialogProps } from './Dialog.tsx'
237
- import type { SessionLogDownloadDialogInjected } from './Dialog.tsx'
238
- import type { SessionMarkdownCopyState } from './copy-controller.ts'
239
- @@ -38,6 +39,12 @@ export interface SessionLogDownloadHeaderInjected
240
- /** Session download props plus the optional feedback action. */
241
- export type SessionLogDownloadHeaderProps = SessionLogDownloadDialogProps & InjectFace<SessionLogDownloadHeaderInjected>
242
-
243
- +/** Trajectory toolbar presentation of the same download controller. */
244
- +type SessionLogDownloadToolbarActionProps =
245
- + PropsRuntime<'conversation.trajectory.toolbar.utilities'>
246
- + & PropsLocale<typeof NS>
247
- + & InjectFace<SessionLogDownloadDialogInjected>
248
- +
249
- /**
250
- * Render the Session Header menu with Markdown copy, download, and optional
251
- * feedback actions.
252
- @@ -77,6 +84,7 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadHeaderPr
253
- <Button
254
- size="sm"
255
- className={css.moreButton}
256
- + data-session-log-header
257
- aria-label={t('header.more')}
258
- aria-haspopup="menu"
259
- aria-expanded={open}
260
- @@ -91,3 +99,31 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadHeaderPr
261
- </>
262
- )
263
- }
264
- +
265
- +/**
266
- + * Render the desktop Session export action in the Trajectory toolbar.
267
- + * @param props - Session runtime, shared download controller, and localized copy.
268
- + * @returns the compact toolbar action.
269
- + */
270
- +export function SessionLogDownloadToolbarAction(
271
- + props: SessionLogDownloadToolbarActionProps,
272
- +): ReactNode {
273
- + const { sessionId, useSessionLogDownload, request, t } = props
274
- + const entry = useSessionLogDownload(state => state.bySession[String(sessionId)])
275
- + const busy = entry?.status === 'downloading'
276
- +
277
- + return (
278
- + <button
279
- + type="button"
280
- + className={css.trajectoryButton}
281
- + data-session-log-toolbar
282
- + disabled={busy}
283
- + aria-busy={busy}
284
- + title={t('header.action')}
285
- + onClick={() => { void request(sessionId) }}
286
- + >
287
- + <IconDownloadOutlineRegular size={11} />
288
- + <span>{t('header.action')}</span>
289
- + </button>
290
- + )
291
- +}
292
- diff --git a/packages/session-query/session-log-export/src/client/index.ts b/packages/session-query/session-log-export/src/client/index.ts
293
- index 74808d17..f3acaa07 100644
294
- --- a/packages/session-query/session-log-export/src/client/index.ts
295
- +++ b/packages/session-query/session-log-export/src/client/index.ts
296
- @@ -8,11 +8,16 @@ import type {} from '@deepseek-ai/dsh-client-ui-conversation/client'
297
- import type {} from '@deepseek-ai/dsh-client-ui-renderer/client'
298
- import type {} from '@deepseek-ai/dsh-client-ui-session/client'
299
- import type {} from '@deepseek-ai/dsh-client-ui-message-feedback/client'
300
- +import type {} from '@deepseek-ai/dsh-client-ui-trajectory/client'
301
- import { createSnapshotStore } from '@deepseek-ai/dsh-client-store'
302
- import { SessionLogDownloadController } from './controller.ts'
303
- import { SessionMarkdownCopyController } from './copy-controller.ts'
304
- import { SessionMarkdownCopyToast, type SessionMarkdownCopyToastInjected } from './CopyToast.tsx'
305
- -import { SessionLogDownloadHeaderAction, type SessionLogDownloadHeaderInjected } from './HeaderAction.tsx'
306
- +import type { SessionLogDownloadDialogInjected } from './Dialog.tsx'
307
- +import {
308
- + SessionLogDownloadHeaderAction, SessionLogDownloadToolbarAction,
309
- + type SessionLogDownloadHeaderInjected,
310
- +} from './HeaderAction.tsx'
311
- import { en, ja, es, fr, de, ru, pt, NS, zh, type SessionLogDownloadKey } from './locales.ts'
312
-
313
- declare module '@deepseek-ai/cordis' {
314
- @@ -39,6 +44,13 @@ export const inject = ['slots', 'locale']
315
- export function apply(ctx: ClientContext): void {
316
- const controller = new SessionLogDownloadController()
317
- const copyController = new SessionMarkdownCopyController()
318
- + // The Trajectory presentation is download-only and shares the same controller,
319
- + // request, and dismiss as the Header one.
320
- + const injectAction = (): SessionLogDownloadDialogInjected => ({
321
- + hooks: { sessionLogDownload: controller.store },
322
- + request: (sessionId: SessionId) => controller.download(sessionId),
323
- + dismiss: (sessionId: SessionId) => { controller.dismiss(sessionId) },
324
- + })
325
- ctx.provide('sessionLogDownload', controller)
326
- ctx.effect(() => async () => { await controller.dispose() }, 'session-log-download: browser download lifecycle')
327
- ctx.effect(() => async () => { await copyController.dispose() }, 'session-log-download: browser Markdown copy lifecycle')
328
- @@ -79,6 +91,12 @@ export function apply(ctx: ClientContext): void {
329
- openFeedback: (sessionId: SessionId) => { ctx.get('feedbackUi')?.openSession(sessionId) },
330
- }),
331
- }, SessionLogDownloadHeaderAction))
332
- + ctx.slots.inject('conversation.trajectory.toolbar.utilities', () => ctx.slots.register({
333
- + name: 'conversation.trajectory.toolbar.utilities',
334
- + id: 'session-log-download',
335
- + locale: NS,
336
- + inject: injectAction,
337
- + }, SessionLogDownloadToolbarAction))
338
- }
339
-
340
- export type { SessionLogDownloadDialogInjected, SessionLogDownloadDialogProps } from './Dialog.tsx'
341
- diff --git a/packages/session-query/session-log-export/tsconfig.client.json b/packages/session-query/session-log-export/tsconfig.client.json
342
- index c78dbf68..5e4fd918 100644
343
- --- a/packages/session-query/session-log-export/tsconfig.client.json
344
- +++ b/packages/session-query/session-log-export/tsconfig.client.json
345
- @@ -28,6 +28,7 @@
346
- { "path": "../../client/ui-renderer" },
347
- { "path": "../../client/ui-session" },
348
- { "path": "../../client/ui-slots" },
349
- + { "path": "../../client/ui-trajectory/tsconfig.client.json" },
350
- { "path": "../../core/session" }
351
- ]
352
- }