@deepseek-ai/dsh-session-log-export 0.1.7-alpha.2 → 0.1.7-rc.2
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 +72 -5
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/client.js +3 -3
- package/package.json +21 -21
package/README.i18n.yaml
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
|
-
# Bilingual-pair consistency record (docs/i18n/README.md):
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/session-query/session-log-export/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: 3b67077a6dfacd19
|
|
7
|
+
zh: e5b78d039d310dc2
|
|
8
|
+
/deepseek-ai-dsh-session-log-export:
|
|
9
|
+
en: eea87f5da57ff494
|
|
10
|
+
zh: db388203522b840f
|
|
11
|
+
/deepseek-ai-dsh-session-log-export/summary:
|
|
12
|
+
en: 26be400b3e9f7bb7
|
|
13
|
+
zh: b6e78f1f417a0e4e
|
|
14
|
+
/deepseek-ai-dsh-session-log-export/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/deepseek-ai-dsh-session-log-export/use-this-package:
|
|
18
|
+
en: 1135b03eb3423c74
|
|
19
|
+
zh: 2fd2a18d503df70c
|
|
20
|
+
/deepseek-ai-dsh-session-log-export/use-this-package/when-to-choose-it:
|
|
21
|
+
en: 2b9dbec4877d332e
|
|
22
|
+
zh: dcf6638938eedb01
|
|
23
|
+
/deepseek-ai-dsh-session-log-export/use-this-package/composition:
|
|
24
|
+
en: 2fef1fe4411cc5da
|
|
25
|
+
zh: cff5dbcc4901402b
|
|
26
|
+
/deepseek-ai-dsh-session-log-export/use-this-package/configuration:
|
|
27
|
+
en: 377a0d8860c46f63
|
|
28
|
+
zh: 9eb7698f813b2fa3
|
|
29
|
+
/deepseek-ai-dsh-session-log-export/use-this-package/command-contract:
|
|
30
|
+
en: 26329688b9a924a7
|
|
31
|
+
zh: 94e21c10fdcfc1ac
|
|
32
|
+
/deepseek-ai-dsh-session-log-export/use-this-package/what-to-expect:
|
|
33
|
+
en: 44be1f1d1903d12a
|
|
34
|
+
zh: c8f1eb5b92b71a30
|
|
35
|
+
/deepseek-ai-dsh-session-log-export/use-this-package/failures:
|
|
36
|
+
en: 3fc8985946d67024
|
|
37
|
+
zh: 5bb40a4b531d68f4
|
|
38
|
+
/deepseek-ai-dsh-session-log-export/understand-the-implementation:
|
|
39
|
+
en: 7cb82a6851405f95
|
|
40
|
+
zh: b8c525170d19dc6c
|
|
41
|
+
/deepseek-ai-dsh-session-log-export/understand-the-implementation/design-split:
|
|
42
|
+
en: d135d90a02c6d829
|
|
43
|
+
zh: 587d7ff2d17b056b
|
|
44
|
+
/deepseek-ai-dsh-session-log-export/understand-the-implementation/download-flow:
|
|
45
|
+
en: 028ea3bff05250ba
|
|
46
|
+
zh: 63250c4d3369ebbd
|
|
47
|
+
/deepseek-ai-dsh-session-log-export/further-exploration:
|
|
48
|
+
en: 8eef7e6c58c9f962
|
|
49
|
+
zh: 6c720c91c7f26299
|
|
50
|
+
/deepseek-ai-dsh-session-log-export/model-experience:
|
|
51
|
+
en: 215e7ba838619b7b
|
|
52
|
+
zh: a311da3843709f90
|
|
53
|
+
/deepseek-ai-dsh-session-log-export/model-experience/human-export-control:
|
|
54
|
+
en: 55c1a61a041a2aeb
|
|
55
|
+
zh: 48e05043cc42304f
|
|
56
|
+
/deepseek-ai-dsh-session-log-export/model-experience/human-export-control/what-the-model-sees:
|
|
57
|
+
en: 6b3c3cfc5d68d5f9
|
|
58
|
+
zh: b1689c57ee3b4ccb
|
|
59
|
+
/deepseek-ai-dsh-session-log-export/model-experience/human-export-control/token-effect:
|
|
60
|
+
en: 380535e564a4ea2c
|
|
61
|
+
zh: 2672eac76afd90f5
|
|
62
|
+
/deepseek-ai-dsh-session-log-export/model-experience/human-export-control/kv-cache-effect:
|
|
63
|
+
en: 78163c30fdf0b43d
|
|
64
|
+
zh: 165043e307b38cb3
|
|
65
|
+
/deepseek-ai-dsh-session-log-export/known-limitations-and-deferred-work:
|
|
66
|
+
en: 9978d234cbfe7e73
|
|
67
|
+
zh: 9ba0b12300ff4d38
|
|
68
|
+
/deepseek-ai-dsh-session-log-export/known-limitations-and-deferred-work/dev-note:
|
|
69
|
+
en: 4ee4d24c26c127bf
|
|
70
|
+
zh: 1facdfbfa3ccefbc
|
|
71
|
+
/deepseek-ai-dsh-session-log-export/known-limitations-and-deferred-work/dev-note/future-export-destinations-beyond-the-browser:
|
|
72
|
+
en: 226726899a479680
|
|
73
|
+
zh: 26f72519513d4782
|
package/README.md
CHANGED
|
@@ -79,6 +79,8 @@ This section explains how the package wires the export control and points at the
|
|
|
79
79
|
|
|
80
80
|
The package has two halves. The Host half ([`src/index.ts`](src/index.ts)) registers the `/export` command and contributes the exact `GET`/`HEAD /api/session.export` Fetch route to Connection; [`src/archive.ts`](src/archive.ts) builds the bounded ZIP stream. The browser half ([`src/client/index.ts`](src/client/index.ts)) provides the shared download controller and UI, and observes `command/executed` so only the submitting browser starts a download.
|
|
81
81
|
|
|
82
|
+
The Header’s More action uses the shared compact Button, with a 28px square target and the same radius and hover fill as the right-sidebar expand control.
|
|
83
|
+
|
|
82
84
|
### Download flow
|
|
83
85
|
|
|
84
86
|
Both entry paths issue a `HEAD` preflight to the document-relative `api/session.export?...`, then hand the GET route to the browser download manager without buffering the ZIP in JavaScript. One controller owns one in-flight download per session, collapses concurrent gestures into that operation, and cancels the preflight on plugin disposal. Modal state lives in a snapshot store keyed by session, so the button and the command share one dialog per session.
|
package/README.zh.md
CHANGED
|
@@ -79,6 +79,8 @@ Web bundle 将本包与 Connection、`dsh-commands`、`dsh-client-ui-commands`
|
|
|
79
79
|
|
|
80
80
|
本包分为两部分。Host 半包([`src/index.ts`](src/index.ts))注册 `/export` 命令,并向 Connection 贡献精确的 `GET`/`HEAD /api/session.export` Fetch 路由;[`src/archive.ts`](src/archive.ts) 构建有界 ZIP 流。浏览器半包([`src/client/index.ts`](src/client/index.ts))提供共享下载控制器和 UI,并观察 `command/executed`,因此只有提交命令的浏览器会启动下载。
|
|
81
81
|
|
|
82
|
+
Header 的更多操作入口使用公共紧凑 Button,点击区域为 28px 正方形,与右侧栏展开控件共用圆角和 hover 底色。
|
|
83
|
+
|
|
82
84
|
### 下载流程
|
|
83
85
|
|
|
84
86
|
两条入口都会先向文档相对的 `api/session.export?...` 发出 `HEAD` 预检请求,然后把 GET 路由交给浏览器下载管理器,JavaScript 不缓冲 ZIP。一个控制器按会话持有一项进行中的下载,把并发操作折叠进该任务,并在插件释放时取消预检。弹窗状态存放在按会话键控的快照存储中,因此按钮与命令按会话共享一个弹窗。
|
package/lib/client.js
CHANGED
|
@@ -170,7 +170,7 @@ window.__ModuleLoader__.load({
|
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/session-query/session-log-export/src/client/HeaderAction.module.css.mjs
|
|
173
|
-
const css = ".nL4_yW_moreButton{width:28px;
|
|
173
|
+
const css = ".nL4_yW_moreButton{width:28px;color:var(--dsw-alias-label-secondary);flex:none;padding:0}.nL4_yW_moreButton svg{width:15px;height:15px}";
|
|
174
174
|
const tagId = "@deepseek-ai/dsh-session-log-export/HeaderAction.module.css";
|
|
175
175
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
176
176
|
const tag = document.createElement("style");
|
|
@@ -214,8 +214,8 @@ window.__ModuleLoader__.load({
|
|
|
214
214
|
if (id === "feedback") openFeedback(sessionId);
|
|
215
215
|
else request(sessionId);
|
|
216
216
|
},
|
|
217
|
-
anchor: (0, react_jsx_runtime.jsx)(
|
|
218
|
-
|
|
217
|
+
anchor: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
218
|
+
size: "sm",
|
|
219
219
|
className: HeaderAction_module_css_default.moreButton,
|
|
220
220
|
"aria-label": t("header.more"),
|
|
221
221
|
"aria-haspopup": "menu",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-log-export",
|
|
3
3
|
"description": "Web Session-log export command and shared download dialog",
|
|
4
|
-
"version": "0.1.7-
|
|
4
|
+
"version": "0.1.7-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,36 +33,36 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"fflate": "^0.8.2",
|
|
36
|
-
"@deepseek-ai/dsh-session-format": "0.1.7-
|
|
36
|
+
"@deepseek-ai/dsh-session-format": "0.1.7-rc.2",
|
|
37
37
|
"@deepseek-ai/schemastery": "~3.18.4",
|
|
38
|
-
"@deepseek-ai/dsh-brand": "0.1.7-
|
|
38
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
42
|
-
"@deepseek-ai/dsh-session
|
|
43
|
-
"@deepseek-ai/dsh-session": "0.1.7-
|
|
42
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
43
|
+
"@deepseek-ai/dsh-session-persistence": "0.1.7-rc.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/react": "~18.3.1",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
49
49
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
50
|
-
"@deepseek-ai/dsh-agent": "0.1.7-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/dsh-client-
|
|
53
|
-
"@deepseek-ai/dsh-client-store": "0.1.7-
|
|
54
|
-
"@deepseek-ai/dsh-client-
|
|
55
|
-
"@deepseek-ai/dsh-client-ui-
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-
|
|
61
|
-
"@deepseek-ai/dsh-
|
|
62
|
-
"@deepseek-ai/dsh-session
|
|
63
|
-
"@deepseek-ai/dsh-session-
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-
|
|
50
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-client-connection": "0.1.7-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-client-store": "0.1.7-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-client-ui-commands": "0.1.7-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-message-feedback": "0.1.7-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-attachment": "0.1.7-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-commands": "0.1.7-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-session-persistence": "0.1.7-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-session-query": "0.1.7-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2"
|
|
66
66
|
},
|
|
67
67
|
"dsh": {
|
|
68
68
|
"client": {
|