@sparkelf/dsh-patch-session-log-trajectory-toolbar 0.1.0-rc.13 → 0.1.0-rc.22
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 +48 -19
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: a41ecb4684336e2ff73752626184d9614ab20b9a
|
|
6
|
+
README.zh.md: 11da97f1daa1505ecb0fcc6809463e5c89cd2185
|
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 `d347e703908d0406b7a7ef80e3a0e594d86b2215`. 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 `d347e703908d0406b7a7ef80e3a0e594d86b2215`,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.3-alpha.1",
|
|
8
8
|
"file": "./patches/session-log-trajectory-toolbar.patch",
|
|
9
9
|
"id": "session-log-desktop-trajectory-toolbar",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "d347e703908d0406b7a7ef80e3a0e594d86b2215",
|
|
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.22"
|
|
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 a9f1df1b36..b7fbd52a80 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
|
+
@@ -522,6 +524,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 ce12787db0..2497520511 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,10 +133,10 @@ 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 ef6f6cfdf3..fb4ebe7221 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
|
-
@@ -34,3 +34,
|
|
139
|
+
@@ -34,3 +34,72 @@
|
|
140
140
|
.sessionLogButton span {
|
|
141
141
|
white-space: nowrap;
|
|
142
142
|
}
|
|
@@ -180,6 +180,26 @@ index 288e7f9bae4b7b103c5ce52dfbc4292437fa7d83..8007563465a27cfd556f185a5042aa88
|
|
|
180
180
|
+ white-space: nowrap;
|
|
181
181
|
+}
|
|
182
182
|
+
|
|
183
|
+
+@media (max-width: 800px) {
|
|
184
|
+
+ .sessionLogButton {
|
|
185
|
+
+ width: 28px;
|
|
186
|
+
+ min-width: 28px;
|
|
187
|
+
+ height: 28px;
|
|
188
|
+
+ padding: 0;
|
|
189
|
+
+ border: none;
|
|
190
|
+
+ border-radius: 50%;
|
|
191
|
+
+ }
|
|
192
|
+
+
|
|
193
|
+
+ .sessionLogButton span {
|
|
194
|
+
+ display: none;
|
|
195
|
+
+ }
|
|
196
|
+
+
|
|
197
|
+
+ .sessionLogButton svg {
|
|
198
|
+
+ width: 16px;
|
|
199
|
+
+ height: 16px;
|
|
200
|
+
+ }
|
|
201
|
+
+}
|
|
202
|
+
+
|
|
183
203
|
+@media (min-width: 768px) {
|
|
184
204
|
+ .sessionLogButton {
|
|
185
205
|
+ display: none;
|
|
@@ -190,7 +210,7 @@ index 288e7f9bae4b7b103c5ce52dfbc4292437fa7d83..8007563465a27cfd556f185a5042aa88
|
|
|
190
210
|
+ }
|
|
191
211
|
+}
|
|
192
212
|
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
|
|
213
|
+
index 7adc40aa5c..f0ebd2a71e 100644
|
|
194
214
|
--- a/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
195
215
|
+++ b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
196
216
|
@@ -1,8 +1,16 @@
|
|
@@ -210,7 +230,15 @@ index 7adc40aa5cde8d3b25e2168ea49b630e2fe6af83..3a6dd6fa9bcd82418184dda0938f377b
|
|
|
210
230
|
/**
|
|
211
231
|
* Render the Session Header export capsule and its shared result dialog.
|
|
212
232
|
* @param props - Session runtime, download controller, and localized dialog copy.
|
|
213
|
-
@@ -
|
|
233
|
+
@@ -18,6 +26,7 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadDialogPr
|
|
234
|
+
<button
|
|
235
|
+
type="button"
|
|
236
|
+
className={css.sessionLogButton}
|
|
237
|
+
+ data-session-log-header
|
|
238
|
+
disabled={busy}
|
|
239
|
+
aria-busy={busy}
|
|
240
|
+
onClick={() => { void request(sessionId) }}
|
|
241
|
+
@@ -29,3 +38,31 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadDialogPr
|
|
214
242
|
</>
|
|
215
243
|
)
|
|
216
244
|
}
|
|
@@ -231,6 +259,7 @@ index 7adc40aa5cde8d3b25e2168ea49b630e2fe6af83..3a6dd6fa9bcd82418184dda0938f377b
|
|
|
231
259
|
+ <button
|
|
232
260
|
+ type="button"
|
|
233
261
|
+ className={css.trajectoryButton}
|
|
262
|
+
+ data-session-log-toolbar
|
|
234
263
|
+ disabled={busy}
|
|
235
264
|
+ aria-busy={busy}
|
|
236
265
|
+ title={t('header.action')}
|
|
@@ -242,7 +271,7 @@ index 7adc40aa5cde8d3b25e2168ea49b630e2fe6af83..3a6dd6fa9bcd82418184dda0938f377b
|
|
|
242
271
|
+ )
|
|
243
272
|
+}
|
|
244
273
|
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
|
|
274
|
+
index 97187311fa..a6ca23e3b3 100644
|
|
246
275
|
--- a/packages/session-query/session-log-export/src/client/index.ts
|
|
247
276
|
+++ b/packages/session-query/session-log-export/src/client/index.ts
|
|
248
277
|
@@ -7,9 +7,12 @@ import type {} from '@deepseek-ai/dsh-client-ui-commands/client'
|
|
@@ -292,7 +321,7 @@ index 97187311fad4ab6f021fc298b8205dd529b9af37..a6ca23e3b3ec1ded2a21d3428990261f
|
|
|
292
321
|
|
|
293
322
|
export type { SessionLogDownloadDialogInjected, SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
294
323
|
diff --git a/packages/session-query/session-log-export/tsconfig.client.json b/packages/session-query/session-log-export/tsconfig.client.json
|
|
295
|
-
index
|
|
324
|
+
index 6e3e746c4c..c5e2c7b69c 100644
|
|
296
325
|
--- a/packages/session-query/session-log-export/tsconfig.client.json
|
|
297
326
|
+++ b/packages/session-query/session-log-export/tsconfig.client.json
|
|
298
327
|
@@ -23,6 +23,7 @@
|