dsh-share-html 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +138 -2
- package/cordis.patch.yml +5 -0
- package/lib/client.js +614 -0
- package/lib/index.js +90 -0
- package/lib/kernel.js +2632 -0
- package/locale/en.json +33 -0
- package/locale/zh.json +33 -0
- package/package.json +70 -4
package/locale/en.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Share session as HTML",
|
|
4
|
+
"description": "Export a session as one self-contained HTML file that looks like the original conversation."
|
|
5
|
+
},
|
|
6
|
+
"share": {
|
|
7
|
+
"button": "Share",
|
|
8
|
+
"title": "Share this session",
|
|
9
|
+
"preset": {
|
|
10
|
+
"label": "Detail level",
|
|
11
|
+
"conversation": "Conversation",
|
|
12
|
+
"conversationHint": "Questions and final answers only",
|
|
13
|
+
"process": "Process",
|
|
14
|
+
"processHint": "Adds reasoning, tool calls and search",
|
|
15
|
+
"full": "Everything",
|
|
16
|
+
"fullHint": "Adds full tool output, files and model info"
|
|
17
|
+
},
|
|
18
|
+
"include": {
|
|
19
|
+
"reasoning": "Reasoning",
|
|
20
|
+
"retrieval": "Search results",
|
|
21
|
+
"toolCalls": "Tool calls",
|
|
22
|
+
"toolResults": "Tool output",
|
|
23
|
+
"files": "Attached files",
|
|
24
|
+
"deepResearch": "Deep research",
|
|
25
|
+
"modelMeta": "Model and timing"
|
|
26
|
+
},
|
|
27
|
+
"redact": "Redact secrets",
|
|
28
|
+
"redactOffConfirm": "Turning redaction off puts raw text into the file. API keys, emails and internal hosts will not be masked. Continue?",
|
|
29
|
+
"preview": "Preview",
|
|
30
|
+
"download": "Download .html",
|
|
31
|
+
"empty": "Nothing to export at this level."
|
|
32
|
+
}
|
|
33
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "导出会话为 HTML",
|
|
4
|
+
"description": "把会话导出成一个自包含的 HTML 文件,观感与原会话一致。"
|
|
5
|
+
},
|
|
6
|
+
"share": {
|
|
7
|
+
"button": "分享",
|
|
8
|
+
"title": "分享这次会话",
|
|
9
|
+
"preset": {
|
|
10
|
+
"label": "分享粒度",
|
|
11
|
+
"conversation": "对话",
|
|
12
|
+
"conversationHint": "只含提问与最终回复",
|
|
13
|
+
"process": "过程",
|
|
14
|
+
"processHint": "加上思考、工具调用与检索",
|
|
15
|
+
"full": "完整",
|
|
16
|
+
"fullHint": "加上工具结果全文、文件与模型信息"
|
|
17
|
+
},
|
|
18
|
+
"include": {
|
|
19
|
+
"reasoning": "思考过程",
|
|
20
|
+
"retrieval": "检索结果",
|
|
21
|
+
"toolCalls": "工具调用",
|
|
22
|
+
"toolResults": "工具结果",
|
|
23
|
+
"files": "附件",
|
|
24
|
+
"deepResearch": "深度研究",
|
|
25
|
+
"modelMeta": "模型与耗时"
|
|
26
|
+
},
|
|
27
|
+
"redact": "脱敏",
|
|
28
|
+
"redactOffConfirm": "关闭脱敏会把原始文本写进文件:API Key、邮箱、内网地址都不会被遮蔽。确定继续?",
|
|
29
|
+
"preview": "预览",
|
|
30
|
+
"download": "下载 .html",
|
|
31
|
+
"empty": "当前粒度下没有可导出的内容。"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-share-html",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Export a DSH session as one self-contained, offline HTML file that looks like the original conversation: three detail presets, per-block switches, built-in redaction, zero scripts and zero external requests.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "node --test --experimental-strip-types \"test/**/*.test.ts\"",
|
|
10
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
11
|
+
"snapshot:tokens": "node scripts/snapshot-tokens.mjs",
|
|
12
|
+
"fixture": "node --experimental-strip-types scripts/replay.ts",
|
|
13
|
+
"build": "node scripts/build.mjs",
|
|
14
|
+
"prepublishOnly": "npm run build && npm test"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib/index.js",
|
|
18
|
+
"lib/kernel.js",
|
|
19
|
+
"lib/client.js",
|
|
20
|
+
"cordis.patch.yml",
|
|
21
|
+
"locale/*.json"
|
|
22
|
+
],
|
|
23
|
+
"dsh": {
|
|
24
|
+
"bundle": {
|
|
25
|
+
"patch": "./cordis.patch.yml"
|
|
26
|
+
},
|
|
27
|
+
"client": {
|
|
28
|
+
"platform": "web"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"dsh": ">=0.2.0 <0.3.0"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"default": "./lib/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./client": {
|
|
39
|
+
"default": "./lib/client.js"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": "./package.json",
|
|
42
|
+
"./locale/*.json": "./locale/*.json"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/unknown3310v0/dsh-share-html.git"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/unknown3310v0/dsh-share-html/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/unknown3310v0/dsh-share-html#readme",
|
|
52
|
+
"keywords": [
|
|
53
|
+
"deepseek",
|
|
54
|
+
"harness",
|
|
55
|
+
"dsh",
|
|
56
|
+
"dsh-plugin",
|
|
57
|
+
"plugin",
|
|
58
|
+
"share",
|
|
59
|
+
"export",
|
|
60
|
+
"html",
|
|
61
|
+
"session",
|
|
62
|
+
"offline"
|
|
63
|
+
],
|
|
64
|
+
"author": "",
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=20"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"esbuild": "^0.24.0"
|
|
71
|
+
}
|
|
72
|
+
}
|