@sparkelf/dsh-patch-session-log-trajectory-toolbar 0.1.0-rc.14 → 0.1.0-rc.26
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +3 -3
- package/patches/session-log-trajectory-toolbar.patch +42 -40
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write patches/npm/session-log-trajectory-toolbar/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: e165609e181a157365db75268cc40a3e84ec2812
|
|
6
|
+
README.zh.md: f0236fdb80dec3b58b223a8d30ce7e5d021fda63
|
package/README.md
CHANGED
|
@@ -6,6 +6,6 @@ This data-only package places the official Session-log download action immediate
|
|
|
6
6
|
|
|
7
7
|
The payload adds one typed Trajectory toolbar utility slot and registers a second presentation of the existing Session-log action into it. Both presentations use the same download controller, request, state, and dialog; the package does not add another export path or archive implementation.
|
|
8
8
|
|
|
9
|
-
The target is exact official source revision `
|
|
9
|
+
The target is exact official source revision `fb2c4b9e698e30edb738bca4cf0618587db7d203`. The payload is applied before that source tree is built. The package has no JavaScript entry, lifecycle script, Cordis plugin, compatibility adapter, or alternate variant.
|
|
10
10
|
|
|
11
11
|
Retire this package when official DSH exposes an equivalent Trajectory toolbar utility slot and places Session export before search on desktop while retaining the Header action on phones.
|
package/README.zh.md
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
payload增加一个typed Trajectory toolbar utility slot,并把既有会话日志操作的第二个presentation注册进该slot。两个presentation共用同一个download controller、request、state与dialog;本package不增加第二条export path或archive implementation。
|
|
8
8
|
|
|
9
|
-
target是exact official source revision `
|
|
9
|
+
target是exact official source revision `fb2c4b9e698e30edb738bca4cf0618587db7d203`,payload在该source tree build前应用。本package没有JavaScript entry、lifecycle script、Cordis plugin、compatibility adapter或alternate variant。
|
|
10
10
|
|
|
11
11
|
official DSH暴露等价Trajectory toolbar utility slot,并在桌面端把Session export放到搜索框前、同时在手机上保留Header操作后,retire本package。
|
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"formatVersion": 1,
|
|
5
5
|
"variants": [
|
|
6
6
|
{
|
|
7
|
-
"dsh": ">=0.1.
|
|
7
|
+
"dsh": ">=0.1.5-rc.2",
|
|
8
8
|
"file": "./patches/session-log-trajectory-toolbar.patch",
|
|
9
9
|
"id": "session-log-desktop-trajectory-toolbar",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "fb2c4b9e698e30edb738bca4cf0618587db7d203",
|
|
12
12
|
"kind": "dsh-source",
|
|
13
13
|
"paths": [
|
|
14
14
|
"packages/client/ui-trajectory/",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
|
|
33
33
|
},
|
|
34
34
|
"type": "module",
|
|
35
|
-
"version": "0.1.0-rc.
|
|
35
|
+
"version": "0.1.0-rc.26"
|
|
36
36
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
|
2
|
+
index c286665666..66365f0adc 100644
|
|
3
3
|
--- a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css
|
|
4
4
|
+++ b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -165,13 +165,19 @@
|
|
6
6
|
font: 14px/14px var(--ds-font-family-code);
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -22,9 +22,9 @@ index aa386504113dbb6db3afd3d3eb72d51b4a8ad71f..6f6c5343b115bb39845bbf774ad52a87
|
|
|
22
22
|
- margin-left: auto;
|
|
23
23
|
padding: 0 6px;
|
|
24
24
|
gap: 4px;
|
|
25
|
-
border:
|
|
25
|
+
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
26
26
|
diff --git a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx
|
|
27
|
-
index
|
|
27
|
+
index 92d7ce9ab0..dfbc88f1e3 100644
|
|
28
28
|
--- a/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx
|
|
29
29
|
+++ b/packages/client/ui-trajectory/src/client/TrajectoryToolbar.tsx
|
|
30
30
|
@@ -1,5 +1,6 @@
|
|
@@ -62,10 +62,10 @@ index 92d7ce9ab07211d6a58c24e20a428381b7c4b61d..dfbc88f1e3aeb0e1e08fed4c79471506
|
|
|
62
62
|
<input
|
|
63
63
|
type="search"
|
|
64
64
|
diff --git a/packages/client/ui-trajectory/src/client/TrajectoryView.tsx b/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
|
|
65
|
-
index
|
|
65
|
+
index 4f8bc63d9c..cedf2511ea 100644
|
|
66
66
|
--- a/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
|
|
67
67
|
+++ b/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
|
|
68
|
-
@@ -
|
|
68
|
+
@@ -130,7 +130,9 @@ export function TrajectoryView({
|
|
69
69
|
useSession, useTrajectory, useDuration, loadOlder, loadImage, setActualDuration,
|
|
70
70
|
viewRequest, completeViewRequest, renderSlot, t,
|
|
71
71
|
}: ConvViewProps
|
|
@@ -76,7 +76,7 @@ index 2ac0d5ddf124714e459c72a99d7eb699fa62d3bd..ace4e584fb8b3922378c9e297ec58c64
|
|
|
76
76
|
& InjectFace<TrajectoryViewInjected>
|
|
77
77
|
& PropsLocale<'trajectory'>) {
|
|
78
78
|
const [collapsedTurns, setCollapsedTurns] = useState<ReadonlySet<number>>(EMPTY_TURN_IDS)
|
|
79
|
-
@@ -
|
|
79
|
+
@@ -523,6 +525,7 @@ export function TrajectoryView({
|
|
80
80
|
onToggleAllAssistants={toggleAllAssistants}
|
|
81
81
|
searchQuery={searchQuery}
|
|
82
82
|
onSearchQueryChange={setSearchQuery}
|
|
@@ -85,7 +85,7 @@ index 2ac0d5ddf124714e459c72a99d7eb699fa62d3bd..ace4e584fb8b3922378c9e297ec58c64
|
|
|
85
85
|
/>
|
|
86
86
|
<TrajectoryTimeline
|
|
87
87
|
diff --git a/packages/client/ui-trajectory/src/client/index.ts b/packages/client/ui-trajectory/src/client/index.ts
|
|
88
|
-
index
|
|
88
|
+
index 118f3b2c28..a8c71cf9ee 100644
|
|
89
89
|
--- a/packages/client/ui-trajectory/src/client/index.ts
|
|
90
90
|
+++ b/packages/client/ui-trajectory/src/client/index.ts
|
|
91
91
|
@@ -36,6 +36,13 @@ export type {
|
|
@@ -111,18 +111,18 @@ index 118f3b2c288730018fba6b97add0bf078b64062f..a8c71cf9ee2662870567355b4f44738f
|
|
|
111
111
|
inject: (sessionId: SessionId): TrajectoryViewInjected => {
|
|
112
112
|
const session = ctx.sessions.binding(sessionId)?.session
|
|
113
113
|
diff --git a/packages/session-query/session-log-export/package.json b/packages/session-query/session-log-export/package.json
|
|
114
|
-
index
|
|
114
|
+
index 8992ab79e9..7d9f7763f9 100644
|
|
115
115
|
--- a/packages/session-query/session-log-export/package.json
|
|
116
116
|
+++ b/packages/session-query/session-log-export/package.json
|
|
117
|
-
@@ -
|
|
118
|
-
"@deepseek-ai/dsh-client-ui-
|
|
117
|
+
@@ -59,6 +59,7 @@
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-primitives": "workspace:^",
|
|
119
119
|
"@deepseek-ai/dsh-client-ui-renderer": "workspace:^",
|
|
120
120
|
"@deepseek-ai/dsh-client-ui-session": "workspace:^",
|
|
121
121
|
+ "@deepseek-ai/dsh-client-ui-trajectory": "workspace:^",
|
|
122
|
-
"@deepseek-ai/dsh-client-ui-primitives": "workspace:^",
|
|
123
122
|
"@deepseek-ai/dsh-client-ui-slots": "workspace:^",
|
|
124
123
|
"@deepseek-ai/dsh-commands": "workspace:^",
|
|
125
|
-
|
|
124
|
+
"@deepseek-ai/dsh-session": "workspace:^",
|
|
125
|
+
@@ -74,7 +75,8 @@
|
|
126
126
|
"@deepseek-ai/dsh-client-ui-commands",
|
|
127
127
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
128
128
|
"@deepseek-ai/dsh-client-ui-renderer",
|
|
@@ -133,12 +133,12 @@ index 60cba7ebdd3fbff86223db0f482380f198ff83e1..a717c25ae3af88e2286afe7d58f43d4f
|
|
|
133
133
|
"platform": "web"
|
|
134
134
|
}
|
|
135
135
|
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
|
|
136
|
-
index
|
|
136
|
+
index cc13d3f49d..1d22e64cfd 100644
|
|
137
137
|
--- a/packages/session-query/session-log-export/src/client/HeaderAction.module.css
|
|
138
138
|
+++ b/packages/session-query/session-log-export/src/client/HeaderAction.module.css
|
|
139
|
-
@@ -
|
|
140
|
-
.
|
|
141
|
-
|
|
139
|
+
@@ -23,3 +23,44 @@
|
|
140
|
+
.moreButton:hover {
|
|
141
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
142
142
|
}
|
|
143
143
|
+
|
|
144
144
|
+.trajectoryButton {
|
|
@@ -172,34 +172,27 @@ index 288e7f9bae4b7b103c5ce52dfbc4292437fa7d83..8007563465a27cfd556f185a5042aa88
|
|
|
172
172
|
+}
|
|
173
173
|
+
|
|
174
174
|
+.trajectoryButton span,
|
|
175
|
-
+.trajectoryButton svg {
|
|
176
|
-
|
|
177
|
-
+}
|
|
178
|
-
+
|
|
179
|
-
+.trajectoryButton span {
|
|
180
|
-
+ white-space: nowrap;
|
|
181
|
-
+}
|
|
175
|
+
+.trajectoryButton svg { flex: none; }
|
|
176
|
+
+.trajectoryButton span { white-space: nowrap; }
|
|
182
177
|
+
|
|
178
|
+
+/* Wider layouts replace the Header action with the compact Trajectory one. */
|
|
183
179
|
+@media (min-width: 768px) {
|
|
184
|
-
+ .
|
|
185
|
-
+ display: none;
|
|
186
|
-
+ }
|
|
180
|
+
+ .moreButton { display: none; }
|
|
187
181
|
+
|
|
188
|
-
+ .trajectoryButton {
|
|
189
|
-
+ display: inline-flex;
|
|
190
|
-
+ }
|
|
182
|
+
+ .trajectoryButton { display: inline-flex; }
|
|
191
183
|
+}
|
|
192
184
|
diff --git a/packages/session-query/session-log-export/src/client/HeaderAction.tsx b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
193
|
-
index
|
|
185
|
+
index cb20cb9f9d..6f5eefab95 100644
|
|
194
186
|
--- a/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
195
187
|
+++ b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
196
|
-
@@ -1,
|
|
188
|
+
@@ -1,9 +1,16 @@
|
|
189
|
+
import { useState } from 'react'
|
|
197
190
|
import type { ReactNode } from 'react'
|
|
198
|
-
import { IconDownloadOutline16 } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
191
|
+
import { IconDownloadOutline16, IconEllipsisOutline16, Menu } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
192
|
+
-import { SessionLogDownloadDialog, type SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
199
193
|
+import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
|
|
200
|
-
import { SessionLogDownloadDialog, type SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
201
|
-
+import type { SessionLogDownloadDialogInjected } from './Dialog.tsx'
|
|
202
194
|
+import { NS } from './locales.ts'
|
|
195
|
+
+import { SessionLogDownloadDialog, type SessionLogDownloadDialogInjected, type SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
203
196
|
import css from './HeaderAction.module.css'
|
|
204
197
|
|
|
205
198
|
+type SessionLogDownloadToolbarActionProps =
|
|
@@ -208,9 +201,17 @@ index 7adc40aa5cde8d3b25e2168ea49b630e2fe6af83..3a6dd6fa9bcd82418184dda0938f377b
|
|
|
208
201
|
+ & InjectFace<SessionLogDownloadDialogInjected>
|
|
209
202
|
+
|
|
210
203
|
/**
|
|
211
|
-
* Render the Session Header
|
|
212
|
-
* @param props - Session runtime, download controller, and localized
|
|
213
|
-
@@ -
|
|
204
|
+
* Render the Session Header more-actions icon button, its download menu, and the shared result dialog.
|
|
205
|
+
* @param props - Session runtime, download controller, and localized copy.
|
|
206
|
+
@@ -31,6 +38,7 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadDialogPr
|
|
207
|
+
<button
|
|
208
|
+
type="button"
|
|
209
|
+
className={css.moreButton}
|
|
210
|
+
+ data-session-log-header
|
|
211
|
+
aria-label={t('header.more')}
|
|
212
|
+
aria-haspopup="menu"
|
|
213
|
+
aria-expanded={open}
|
|
214
|
+
@@ -45,3 +53,31 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadDialogPr
|
|
214
215
|
</>
|
|
215
216
|
)
|
|
216
217
|
}
|
|
@@ -231,6 +232,7 @@ index 7adc40aa5cde8d3b25e2168ea49b630e2fe6af83..3a6dd6fa9bcd82418184dda0938f377b
|
|
|
231
232
|
+ <button
|
|
232
233
|
+ type="button"
|
|
233
234
|
+ className={css.trajectoryButton}
|
|
235
|
+
+ data-session-log-toolbar
|
|
234
236
|
+ disabled={busy}
|
|
235
237
|
+ aria-busy={busy}
|
|
236
238
|
+ title={t('header.action')}
|
|
@@ -242,7 +244,7 @@ index 7adc40aa5cde8d3b25e2168ea49b630e2fe6af83..3a6dd6fa9bcd82418184dda0938f377b
|
|
|
242
244
|
+ )
|
|
243
245
|
+}
|
|
244
246
|
diff --git a/packages/session-query/session-log-export/src/client/index.ts b/packages/session-query/session-log-export/src/client/index.ts
|
|
245
|
-
index
|
|
247
|
+
index 97187311fa..a6ca23e3b3 100644
|
|
246
248
|
--- a/packages/session-query/session-log-export/src/client/index.ts
|
|
247
249
|
+++ b/packages/session-query/session-log-export/src/client/index.ts
|
|
248
250
|
@@ -7,9 +7,12 @@ import type {} from '@deepseek-ai/dsh-client-ui-commands/client'
|
|
@@ -292,7 +294,7 @@ index 97187311fad4ab6f021fc298b8205dd529b9af37..a6ca23e3b3ec1ded2a21d3428990261f
|
|
|
292
294
|
|
|
293
295
|
export type { SessionLogDownloadDialogInjected, SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
294
296
|
diff --git a/packages/session-query/session-log-export/tsconfig.client.json b/packages/session-query/session-log-export/tsconfig.client.json
|
|
295
|
-
index
|
|
297
|
+
index 6e3e746c4c..c5e2c7b69c 100644
|
|
296
298
|
--- a/packages/session-query/session-log-export/tsconfig.client.json
|
|
297
299
|
+++ b/packages/session-query/session-log-export/tsconfig.client.json
|
|
298
300
|
@@ -23,6 +23,7 @@
|