dsh-sidebar-suite 0.1.3 → 0.2.4
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/DETAIL.md +137 -64
- package/README.md +210 -90
- package/lib/client.js +2285 -1276
- package/lib/index.js +215 -158
- package/lib/temp-session-host.mjs +842 -0
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +64 -60
- package/temp-session-config.txt +53 -0
package/locale/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "侧栏布局大师 · Sidebar Suite",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、会话默认全展开、临时会话用完即删、设置与反馈都在本页,强实用性;界面沿用宿主原生配色、圆角与间距,只加属性不重构宿主结构,克制又好看。|A plugin dedicated to a better DSH sidebar: one-click layouts, always-expanded sessions, disposable temp sessions and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
|
|
5
5
|
"detail": "DETAIL.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "侧栏布局大师 · Sidebar Suite",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、会话默认全展开、临时会话用完即删、设置与反馈都在本页,强实用性;界面沿用宿主原生配色、圆角与间距,只加属性不重构宿主结构,克制又好看。|A plugin dedicated to a better DSH sidebar: one-click layouts, always-expanded sessions, disposable temp sessions and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
|
|
5
5
|
"detail": "DETAIL.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,60 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-sidebar-suite",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"author": "Yonan",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/YONAN1269/dsh-sidebar-suite.git"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/YONAN1269/dsh-sidebar-suite#readme",
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/YONAN1269/dsh-sidebar-suite/issues"
|
|
13
|
-
},
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
},
|
|
17
|
-
"description": "
|
|
18
|
-
"keywords": [
|
|
19
|
-
"dsh-plugin",
|
|
20
|
-
"dsh",
|
|
21
|
-
"deepseek-harness",
|
|
22
|
-
"sidebar",
|
|
23
|
-
"layout",
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"./
|
|
33
|
-
"./
|
|
34
|
-
"./
|
|
35
|
-
"./
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-sidebar-suite",
|
|
3
|
+
"version": "0.2.4",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Yonan",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/YONAN1269/dsh-sidebar-suite.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/YONAN1269/dsh-sidebar-suite#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/YONAN1269/dsh-sidebar-suite/issues"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、默认布局在详情页顶部直接设、会话列表默认全展开、「临时会话」开原生会话且退出 / 每天定时自动删除、详情页三种反馈入口 —— 强实用性;界面沿用宿主原生配色、圆角与间距,只加属性与一条控制栏、不重构宿主结构 —— 克制美观。|A plugin dedicated to the DSH sidebar experience: one-click layouts, always-expanded sessions, disposable native temp sessions and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"dsh-plugin",
|
|
20
|
+
"dsh",
|
|
21
|
+
"deepseek-harness",
|
|
22
|
+
"sidebar",
|
|
23
|
+
"layout",
|
|
24
|
+
"temp-session",
|
|
25
|
+
"privacy",
|
|
26
|
+
"plugin"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"main": "lib/index.js",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": "./lib/index.js",
|
|
32
|
+
"./client": "./lib/client.js",
|
|
33
|
+
"./package.json": "./package.json",
|
|
34
|
+
"./locale/*.json": "./locale/*.json",
|
|
35
|
+
"./icon": "./icon.svg",
|
|
36
|
+
"./DETAIL.md": "./DETAIL.md",
|
|
37
|
+
"./assets/*": "./assets/*"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"lib/index.js",
|
|
41
|
+
"lib/client.js",
|
|
42
|
+
"lib/temp-session-host.mjs",
|
|
43
|
+
"temp-session-config.txt",
|
|
44
|
+
"cordis.patch.yml",
|
|
45
|
+
"locale/*.json",
|
|
46
|
+
"icon.svg",
|
|
47
|
+
"README.md",
|
|
48
|
+
"DETAIL.md",
|
|
49
|
+
"LICENSE",
|
|
50
|
+
"assets/*.jpg",
|
|
51
|
+
"assets/*.png"
|
|
52
|
+
],
|
|
53
|
+
"dsh": {
|
|
54
|
+
"bundle": {
|
|
55
|
+
"patch": "./cordis.patch.yml"
|
|
56
|
+
},
|
|
57
|
+
"client": {
|
|
58
|
+
"platform": "web",
|
|
59
|
+
"inject": [
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-sidebar"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# 临时会话(0.2.0)· 用记事本改等号右边,保存后「完全退出并重开 DSH」才生效。
|
|
2
|
+
# Temporary session (0.2.0) · edit the values after =, then FULLY QUIT and reopen DSH.
|
|
3
|
+
# 等号左边和 # 开头的行不要动。Do not change the keys or the # lines.
|
|
4
|
+
#
|
|
5
|
+
# 说明:临时会话就是左侧栏里的一个真实 DSH 会话(用原生会话窗口),
|
|
6
|
+
# 退出 DSH 时删除。DELETE_ON_EXIT=off 时不再删除,它就变成普通会话。
|
|
7
|
+
# Notes: a temporary session is a REAL DSH session in the sidebar using the
|
|
8
|
+
# native conversation window, deleted when you quit. DELETE_ON_EXIT=off turns
|
|
9
|
+
# that off, and it becomes an ordinary session.
|
|
10
|
+
|
|
11
|
+
# 是否在「新会话」按钮旁边显示「临时」按钮 / Show the Temp button beside New Session
|
|
12
|
+
SHOW_TEMP_BUTTON=on
|
|
13
|
+
|
|
14
|
+
# 装了「dsh-deepseek-chat(CHAT / HARNESS 切换)」时,它在 CHAT 官网模式会接管
|
|
15
|
+
# 侧栏和主区域。hide = CHAT 模式自动隐藏「临时」按钮,切回 HARNESS 再出现(推荐);
|
|
16
|
+
# show = 两种模式都显示按钮。
|
|
17
|
+
# Coexistence with dsh-deepseek-chat: hide = hide the Temp button while that plugin
|
|
18
|
+
# is in CHAT (official website) mode, show = always show it.
|
|
19
|
+
TEMP_IN_CHAT_MODE=hide
|
|
20
|
+
|
|
21
|
+
# 「临时」按钮的摆法 / How the Temp button is laid out
|
|
22
|
+
# pair = 和「新会话」并排(默认,会把这行稍微缩窄)
|
|
23
|
+
# own = 自己单独占一行,完全不改「新会话」的宽度(别的插件把侧栏顶部挤乱时用这个)
|
|
24
|
+
# pair = beside New Session (default, narrows that row slightly)
|
|
25
|
+
# own = its own full-width row, leaves New Session untouched (use when another
|
|
26
|
+
# plugin's header row fights the pair layout)
|
|
27
|
+
TEMP_BUTTON_STYLE=pair
|
|
28
|
+
|
|
29
|
+
# 会话列表是否默认全部展开 / Always show every session in the sidebar
|
|
30
|
+
# on = 自动展开所有会话,并隐藏「展开其余 N 个会话」按钮(默认)
|
|
31
|
+
# off = 保持 DSH 原来的折叠行为,那个按钮照常显示
|
|
32
|
+
# on = expand every group and hide the "Show N more sessions" button (default)
|
|
33
|
+
# off = keep DSH's own folding and leave that button visible
|
|
34
|
+
EXPAND_ALL_SESSIONS=on
|
|
35
|
+
|
|
36
|
+
# 退出 DSH 时删除临时会话 / Delete temporary sessions when DSH quits
|
|
37
|
+
# on = 退出时删除(默认);off = 不删除,临时会话就变成普通会话
|
|
38
|
+
DELETE_ON_EXIT=on
|
|
39
|
+
|
|
40
|
+
# 每天定时清理(和上面那条互不影响,可以同时开)/ Daily cleanup
|
|
41
|
+
# on = 每天到 SCHEDULE_TIME 时把临时会话删掉(DSH 一直开着也不会越积越多)
|
|
42
|
+
# off = 不定时清理
|
|
43
|
+
# on = delete every temporary session at SCHEDULE_TIME; off = no daily cleanup
|
|
44
|
+
SCHEDULE_DELETE=off
|
|
45
|
+
|
|
46
|
+
# 定时清理的时间(24 小时制 HH:MM,本机时间)/ Cleanup time (24h HH:MM, local time)
|
|
47
|
+
# 例:03:00 = 每天凌晨 3 点。正在使用的那个会话会跳过,5 分钟后再试一次。
|
|
48
|
+
# e.g. 03:00. A session that is in use right now is skipped and retried 5 min later.
|
|
49
|
+
SCHEDULE_TIME=03:00
|
|
50
|
+
|
|
51
|
+
# 最多保留多少个临时会话(超出后自动删掉最早的)
|
|
52
|
+
# How many temporary sessions to keep (the oldest are deleted beyond this)
|
|
53
|
+
MAX_KEPT=20
|