@wlv-zedd/dsh-btw-plugin 1.0.3 → 1.0.6

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 WLV-ZEDD
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 WLV-ZEDD
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,108 +1,110 @@
1
- # dsh-btw-plugin
2
-
3
- [English](README.md) | [中文](README.zh-CN.md)
4
-
5
- [![npm version](https://img.shields.io/npm/v/@wlv-zedd/dsh-btw-plugin.svg?style=flat&color=3b82f6)](https://www.npmjs.com/package/@wlv-zedd/dsh-btw-plugin)
6
- [![dsh-market](https://img.shields.io/badge/dsh--market-available-c0392b?style=flat)](https://dshmarket.com/p/WLV-ZEDD/dsh-btw/)
7
- [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/WLV-ZEDD/dsh-btw/blob/main/LICENSE)
8
-
9
- > **DeepSeek Harness Side-Assistant Dock**
10
- > Ask quick side questions without interrupting or polluting the active agent loop.
11
-
12
- <p align="center">
13
- <img src="https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/promo-dshmarket-official.png?v=1.0.3" alt="dsh-btw on DSH Market" width="100%">
14
- </p>
15
-
16
- ![dsh-btw Interactive Demo](https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/demo.gif?v=1.0.3)
17
-
18
- ---
19
-
20
- ## Features
21
-
22
- - **Instant Non-Blocking /btw Command:**
23
- Type `/btw <question>` in the chat bar. The input clears instantly (0ms) and executes in the background without disturbing the main agent run.
24
-
25
- - **Docked Floating Banner Above Composer:**
26
- Appears right above the message input with a live Quantum Equalizer animation, Markdown rendering, pagination (`< 1/5 >`), and collapse/expand toggle.
27
-
28
- - **Quantum Equalizer Visualizer:**
29
- Five animated pill bars pulse in theme blue while your answer is being generated. During an automatic retry, all bars and the status badge switch to amber so you can always see the current state at a glance.
30
-
31
- - **Smart Auto-Retry (5 Steps):**
32
- On transient model errors the plugin retries up to 5 times with fast bursts (1 s → 1.5 s → 2 s → 2.5 s → 3 s, ~10 s total). The status badge shows `Retrying (X/5)...` in amber so you are never left wondering.
33
-
34
- - **Active Session & Loop Context Awareness:**
35
- Inherits the active session model dynamically and extracts recent turn history (`session.deriveMessages()`, active workspace) so `/btw` knows exactly what you and the main agent are working on without interrupting execution.
36
-
37
- - **Accuracy-First System Prompt:**
38
- Six concise positive instructions guide the model to preserve exact nouns, synthesize session history faithfully, and answer directly — no defensive over-constraints that cause hallucinations.
39
-
40
- - **Rich Markdown Rendering:**
41
- Bold, italic, inline code, numbered lists (rendered as real `1.` `2.` numbers in theme blue), and bullet points — all without markdown tables cluttering the compact card.
42
-
43
- - **Isolated JSON Storage:**
44
- Persists session Q&A history in `~/.dsh/storages/btw-history.json` without modifying or polluting other plugins.
45
-
46
- ---
47
-
48
- ## Installation
49
-
50
- ### Option 1: Via DSH Plugin Market (Recommended)
51
- Install directly in the DSH Web UI via **Settings → Plugin Market** (search for `dsh-btw`), or run:
52
-
53
- ```bash
54
- pnpm dsh plugin add @wlv-zedd/dsh-btw-plugin
55
- ```
56
-
57
- ### Option 2: Manual npm & Cordis Config
58
- Install dsh-btw-plugin into your DeepSeek Harness environment:
59
-
60
- ```bash
61
- pnpm add @wlv-zedd/dsh-btw-plugin
62
- ```
63
-
64
- Enable the plugin in your `cordis.yml` (or via `cordis.patch.yml`):
65
-
66
- ```yaml
67
- # cordis.yml
68
- plugins:
69
- @wlv-zedd/dsh-btw-plugin:
70
- # Optional: specify a dedicated model, or omit to auto-inherit active session model
71
- # model: deepseek:deepseek-chat
72
- ```
73
-
74
- ---
75
-
76
- ## Usage
77
-
78
- ### In the Web Chat Interface
79
- Type `/btw` followed by your question:
80
-
81
- ```text
82
- /btw What is the port number of PostgreSQL?
83
- /btw What is the difference between TCP and UDP?
84
- ```
85
-
86
- - **Floating Banner:** The question immediately displays above the composer with the Quantum Equalizer pulsing. Once resolved, the rich Markdown answer appears.
87
- - **Pagination (`< 1/5 >`):** Cycle through previous side questions in the active session using `<` and `>`.
88
- - **Action Controls:**
89
- - **Copy:** Copies the answer to clipboard.
90
- - **Delete:** Removes the question from session history.
91
- - **Collapse / Expand:** Toggles the answer view to keep your workspace tidy.
92
- - **Dismiss [X]:** Closes the floating banner.
93
-
94
- ---
95
-
96
- ## Support & Community Perks
97
-
98
- [![Sponsor via PayPal](https://img.shields.io/badge/Sponsor-PayPal-0070ba?style=flat&logo=paypal&logoColor=white)](https://paypal.me/wlvzedd) If you find this plugin helpful, consider sending a small tip.
99
-
100
- [![Free AI Credits on AgentRouter](https://img.shields.io/badge/Free%20AI%20Credits-%24200-ff6b35?style=flat&logoColor=white)](https://agentrouter.org/register?aff=bIJf) Sign up on AgentRouter with GitHub to get up to **$200 in free API credits** for LLM workflows.
101
-
102
- [![Free AI Credits on Vyce AI](https://img.shields.io/badge/Free%20AI%20Credits-%2450-7c3aed?style=flat&logoColor=white)](https://vyceai.com/signup?ref=VYCE_BL6YAG) Sign up on Vyce AI to get **$50 in free API credits** for high-speed LLM workflows.
103
-
104
- ---
105
-
106
- ## License
107
-
108
- MIT © [WLV-ZEDD](https://github.com/WLV-ZEDD)
1
+ # dsh-btw-plugin
2
+
3
+ [English](https://github.com/WLV-ZEDD/dsh-btw#readme) | [中文](./README.zh-CN.md)
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@wlv-zedd/dsh-btw-plugin.svg?style=flat&color=3b82f6)](https://www.npmjs.com/package/@wlv-zedd/dsh-btw-plugin)
6
+ [![dsh-market](https://img.shields.io/badge/dsh--market-available-c0392b?style=flat)](https://dshmarket.com/p/WLV-ZEDD/dsh-btw/)
7
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/WLV-ZEDD/dsh-btw/blob/main/LICENSE)
8
+
9
+ > **DeepSeek Harness Side-Assistant Dock**
10
+ > Ask quick side questions without interrupting or polluting the active agent loop.
11
+
12
+ <p align="center">
13
+ <img src="https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/promo-dshmarket-official.png?v=1.0.3" alt="dsh-btw on DSH Market" width="100%">
14
+ </p>
15
+
16
+ <p align="center">
17
+ <img src="https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/demo.gif?v=1.0.3" alt="dsh-btw Interactive Demo" width="100%">
18
+ </p>
19
+
20
+ ---
21
+
22
+ ## Features
23
+
24
+ - **Instant Non-Blocking /btw Command:**
25
+ Type `/btw <question>` in the chat bar. The input clears instantly (0ms) and executes in the background without disturbing the main agent run.
26
+
27
+ - **Docked Floating Banner Above Composer:**
28
+ Appears right above the message input with a live Quantum Equalizer animation, Markdown rendering, pagination (`< 1/5 >`), and collapse/expand toggle.
29
+
30
+ - **Quantum Equalizer Visualizer:**
31
+ Five animated pill bars pulse in theme blue while your answer is being generated. During an automatic retry, all bars and the status badge switch to amber so you can always see the current state at a glance.
32
+
33
+ - **Smart Auto-Retry (5 Steps):**
34
+ On transient model errors the plugin retries up to 5 times with fast bursts (1 s → 1.5 s → 2 s → 2.5 s → 3 s, ~10 s total). The status badge shows `Retrying (X/5)...` in amber so you are never left wondering.
35
+
36
+ - **Active Session & Loop Context Awareness:**
37
+ Inherits the active session model dynamically and extracts recent turn history (`session.deriveMessages()`, active workspace) so `/btw` knows exactly what you and the main agent are working on without interrupting execution.
38
+
39
+ - **Accuracy-First System Prompt:**
40
+ Six concise positive instructions guide the model to preserve exact nouns, synthesize session history faithfully, and answer directly — no defensive over-constraints that cause hallucinations.
41
+
42
+ - **Rich Markdown Rendering:**
43
+ Bold, italic, inline code, numbered lists (rendered as real `1.` `2.` numbers in theme blue), and bullet points — all without markdown tables cluttering the compact card.
44
+
45
+ - **Isolated JSON Storage:**
46
+ Persists session Q&A history in `~/.dsh/storages/btw-history.json` without modifying or polluting other plugins.
47
+
48
+ ---
49
+
50
+ ## Installation
51
+
52
+ ### Option 1: Via DSH Plugin Market (Recommended)
53
+ Install directly in the DSH Web UI via **Settings → Plugin Market** (search for `dsh-btw`), or run:
54
+
55
+ ```bash
56
+ pnpm dsh plugin add @wlv-zedd/dsh-btw-plugin
57
+ ```
58
+
59
+ ### Option 2: Manual npm & Cordis Config
60
+ Install dsh-btw-plugin into your DeepSeek Harness environment:
61
+
62
+ ```bash
63
+ pnpm add @wlv-zedd/dsh-btw-plugin
64
+ ```
65
+
66
+ Enable the plugin in your `cordis.yml` (or via `cordis.patch.yml`):
67
+
68
+ ```yaml
69
+ # cordis.yml
70
+ plugins:
71
+ @wlv-zedd/dsh-btw-plugin:
72
+ # Optional: specify a dedicated model, or omit to auto-inherit active session model
73
+ # model: deepseek:deepseek-chat
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Usage
79
+
80
+ ### In the Web Chat Interface
81
+ Type `/btw` followed by your question:
82
+
83
+ ```text
84
+ /btw What is the port number of PostgreSQL?
85
+ /btw What is the difference between TCP and UDP?
86
+ ```
87
+
88
+ - **Floating Banner:** The question immediately displays above the composer with the Quantum Equalizer pulsing. Once resolved, the rich Markdown answer appears.
89
+ - **Pagination (`< 1/5 >`):** Cycle through previous side questions in the active session using `<` and `>`.
90
+ - **Action Controls:**
91
+ - **Copy:** Copies the answer to clipboard.
92
+ - **Delete:** Removes the question from session history.
93
+ - **Collapse / Expand:** Toggles the answer view to keep your workspace tidy.
94
+ - **Dismiss [X]:** Closes the floating banner.
95
+
96
+ ---
97
+
98
+ ## Support & Community Perks
99
+
100
+ [![Sponsor via PayPal](https://img.shields.io/badge/Sponsor-PayPal-0070ba?style=flat&logo=paypal&logoColor=white)](https://paypal.me/wlvzedd) If you find this plugin helpful, consider sending a small tip.
101
+
102
+ [![Free AI Credits on AgentRouter](https://img.shields.io/badge/Free%20AI%20Credits-%24200-ff6b35?style=flat&logoColor=white)](https://agentrouter.org/register?aff=bIJf) Sign up on AgentRouter with GitHub to get up to **$200 in free API credits** for LLM workflows.
103
+
104
+ [![Free AI Credits on Vyce AI](https://img.shields.io/badge/Free%20AI%20Credits-%2450-7c3aed?style=flat&logoColor=white)](https://vyceai.com/signup?ref=VYCE_BL6YAG) Sign up on Vyce AI to get **$50 in free API credits** for high-speed LLM workflows.
105
+
106
+ ---
107
+
108
+ ## License
109
+
110
+ MIT © [WLV-ZEDD](https://github.com/WLV-ZEDD)
package/README.zh-CN.md CHANGED
@@ -1,108 +1,110 @@
1
- # dsh-btw-plugin
2
-
3
- [English](README.md) | [中文](README.zh-CN.md)
4
-
5
- [![npm version](https://img.shields.io/npm/v/@wlv-zedd/dsh-btw-plugin.svg?style=flat&color=3b82f6)](https://www.npmjs.com/package/@wlv-zedd/dsh-btw-plugin)
6
- [![dsh-market](https://img.shields.io/badge/dsh--market-available-c0392b?style=flat)](https://dshmarket.com/p/WLV-ZEDD/dsh-btw/)
7
- [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/WLV-ZEDD/dsh-btw/blob/main/LICENSE)
8
-
9
- > **DeepSeek Harness 侧边助手面板**
10
- > 随时提问,不打断也不污染当前主 Agent 运行。
11
-
12
- <p align="center">
13
- <img src="https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/promo-dshmarket-official.png?v=1.0.3" alt="dsh-btw on DSH Market" width="100%">
14
- </p>
15
-
16
- ![dsh-btw 交互演示](https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/demo.gif?v=1.0.3)
17
-
18
- ---
19
-
20
- ## 功能特性
21
-
22
- - **即时非阻塞 /btw 命令:**
23
- 在对话框中输入 `/btw <问题>`,输入框立即清空(0ms),并在后台执行,不影响主 Agent 的运行。
24
-
25
- - **悬浮于输入框上方的浮动面板:**
26
- 紧贴消息输入框上方显示,带有实时量子均衡器动画、Markdown 渲染、分页(`< 1/5 >`)以及展开/折叠切换。
27
-
28
- - **量子均衡器可视化:**
29
- 五根动态药丸条在生成回答时以主题蓝色脉冲。自动重试期间,所有条形和状态徽章切换为琥珀色,让你随时掌握当前状态。
30
-
31
- - **智能自动重试(5 步):**
32
- 遇到瞬态模型错误时,插件以快速连发方式最多重试 5 次(1 秒 → 1.5 秒 → 2 秒 → 2.5 秒 → 3 秒,约 10 秒总计)。状态徽章以琥珀色显示 `Retrying (X/5)...`,让你一目了然。
33
-
34
- - **当前会话与循环上下文感知:**
35
- 动态继承当前会话的模型,并提取最近轮次历史(`session.deriveMessages()`、当前工作区),让 `/btw` 清楚了解你与主 Agent 正在进行的工作,无需中断当前执行。
36
-
37
- - **精准优先系统提示词:**
38
- 6 条明确的积极指示,指导模型忠实保留专有名词与会话历史,直接作答,避免因过度防御性限制导致幻觉。
39
-
40
- - **丰富的 Markdown 渲染:**
41
- 支持粗体、斜体、行内代码、有序列表(在 UI 中呈现为主题蓝色的真实数字序号 `1.` `2.`)与无序列表,无需用表格占用紧凑空间。
42
-
43
- - **隔离的 JSON 持久化:**
44
- 在 `~/.dsh/storages/btw-history.json` 中独立保存会话问答历史,不污染也不修改其他插件的数据。
45
-
46
- ---
47
-
48
- ## 安装方法
49
-
50
- ### 方式 1:通过 DSH 插件市场安装(推荐)
51
- 在 DSH Web UI 中点击 **Settings → Plugin Market**,搜索 `dsh-btw` 并安装,或者运行:
52
-
53
- ```bash
54
- pnpm dsh plugin add @wlv-zedd/dsh-btw-plugin
55
- ```
56
-
57
- ### 方式 2:通过 npm 手动安装并配置 Cordis
58
- 将插件安装到你的 DeepSeek Harness 环境中:
59
-
60
- ```bash
61
- pnpm add @wlv-zedd/dsh-btw-plugin
62
- ```
63
-
64
- 在 `cordis.yml`(或 `cordis.patch.yml`)中启用插件:
65
-
66
- ```yaml
67
- # cordis.yml
68
- plugins:
69
- @wlv-zedd/dsh-btw-plugin:
70
- # 可选:指定独立模型;留空则自动继承当前会话模型
71
- # model: deepseek:deepseek-chat
72
- ```
73
-
74
- ---
75
-
76
- ## 使用指南
77
-
78
- ### 在 Web 聊天界面中
79
- 在输入框输入 `/btw` 紧跟你的问题:
80
-
81
- ```text
82
- /btw PostgreSQL 的默认端口是多少?
83
- /btw 简要解释 TCP 和 UDP 的区别
84
- ```
85
-
86
- - **浮动面板:** 输入框上方立即出现问题卡片,伴随量子均衡器脉冲。生成完毕后展示富文本 Markdown 回答。
87
- - **分页导航(`< 1/5 >`):** 点击 `<` 与 `>` 翻阅当前会话历史中的侧边问答。
88
- - **操作按钮:**
89
- - **复制:** 一键将回答复制到剪贴板。
90
- - **删除:** 从会话历史中移除该条记录。
91
- - **折叠 / 展开:** 收起回答内容,保持工作区清爽。
92
- - **关闭 [X]:** 关闭浮动卡片面板。
93
-
94
- ---
95
-
96
- ## 支持与社区福利
97
-
98
- [![Sponsor via PayPal](https://img.shields.io/badge/Sponsor-PayPal-0070ba?style=flat&logo=paypal&logoColor=white)](https://paypal.me/wlvzedd) 如果你觉得本插件对你有帮助,欢迎赞助支持。
99
-
100
- [![Free AI Credits on AgentRouter](https://img.shields.io/badge/Free%20AI%20Credits-%24200-ff6b35?style=flat&logoColor=white)](https://agentrouter.org/register?aff=bIJf) 使用 GitHub 注册 AgentRouter 即可领取最高 **$200 免费额度**,用于 LLM 工作流。
101
-
102
- [![Free AI Credits on Vyce AI](https://img.shields.io/badge/Free%20AI%20Credits-%2450-7c3aed?style=flat&logoColor=white)](https://vyceai.com/signup?ref=VYCE_BL6YAG) 注册 Vyce AI 即可领取 **$50 免费额度**,用于高速 LLM 工作流。
103
-
104
- ---
105
-
106
- ## 开源协议
107
-
108
- MIT © [WLV-ZEDD](https://github.com/WLV-ZEDD)
1
+ # dsh-btw-plugin
2
+
3
+ [English](./README.md) | [中文](./README.zh-CN.md)
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@wlv-zedd/dsh-btw-plugin.svg?style=flat&color=3b82f6)](https://www.npmjs.com/package/@wlv-zedd/dsh-btw-plugin)
6
+ [![dsh-market](https://img.shields.io/badge/dsh--market-available-c0392b?style=flat)](https://dshmarket.com/p/WLV-ZEDD/dsh-btw/)
7
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/WLV-ZEDD/dsh-btw/blob/main/LICENSE)
8
+
9
+ > **DeepSeek Harness 侧边助手面板**
10
+ > 随时提问,不打断也不污染当前主 Agent 运行。
11
+
12
+ <p align="center">
13
+ <img src="https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/promo-dshmarket-official.png?v=1.0.3" alt="dsh-btw on DSH Market" width="100%">
14
+ </p>
15
+
16
+ <p align="center">
17
+ <img src="https://raw.githubusercontent.com/WLV-ZEDD/dsh-btw/main/assets/demo.gif?v=1.0.3" alt="dsh-btw 交互演示" width="100%">
18
+ </p>
19
+
20
+ ---
21
+
22
+ ## 功能特性
23
+
24
+ - **即时非阻塞 /btw 命令:**
25
+ 在对话框中输入 `/btw <问题>`,输入框立即清空(0ms),并在后台执行,不影响主 Agent 的运行。
26
+
27
+ - **悬浮于输入框上方的浮动面板:**
28
+ 紧贴消息输入框上方显示,带有实时量子均衡器动画、Markdown 渲染、分页(`< 1/5 >`)以及展开/折叠切换。
29
+
30
+ - **量子均衡器可视化:**
31
+ 五根动态药丸条在生成回答时以主题蓝色脉冲。自动重试期间,所有条形和状态徽章切换为琥珀色,让你随时掌握当前状态。
32
+
33
+ - **智能自动重试(5 步):**
34
+ 遇到瞬态模型错误时,插件以快速连发方式最多重试 5 次(1 秒 → 1.5 秒 → 2 秒 → 2.5 秒 → 3 秒,约 10 秒总计)。状态徽章以琥珀色显示 `Retrying (X/5)...`,让你一目了然。
35
+
36
+ - **当前会话与循环上下文感知:**
37
+ 动态继承当前会话的模型,并提取最近轮次历史(`session.deriveMessages()`、当前工作区),让 `/btw` 清楚了解你与主 Agent 正在进行的工作,无需中断当前执行。
38
+
39
+ - **精准优先系统提示词:**
40
+ 6 条明确的积极指示,指导模型忠实保留专有名词与会话历史,直接作答,避免因过度防御性限制导致幻觉。
41
+
42
+ - **丰富的 Markdown 渲染:**
43
+ 支持粗体、斜体、行内代码、有序列表(在 UI 中呈现为主题蓝色的真实数字序号 `1.` `2.`)与无序列表,无需用表格占用紧凑空间。
44
+
45
+ - **隔离的 JSON 持久化:**
46
+ 在 `~/.dsh/storages/btw-history.json` 中独立保存会话问答历史,不污染也不修改其他插件的数据。
47
+
48
+ ---
49
+
50
+ ## 安装方法
51
+
52
+ ### 方式 1:通过 DSH 插件市场安装(推荐)
53
+ 在 DSH Web UI 中点击 **Settings → Plugin Market**,搜索 `dsh-btw` 并安装,或者运行:
54
+
55
+ ```bash
56
+ pnpm dsh plugin add @wlv-zedd/dsh-btw-plugin
57
+ ```
58
+
59
+ ### 方式 2:通过 npm 手动安装并配置 Cordis
60
+ 将插件安装到你的 DeepSeek Harness 环境中:
61
+
62
+ ```bash
63
+ pnpm add @wlv-zedd/dsh-btw-plugin
64
+ ```
65
+
66
+ 在 `cordis.yml`(或 `cordis.patch.yml`)中启用插件:
67
+
68
+ ```yaml
69
+ # cordis.yml
70
+ plugins:
71
+ @wlv-zedd/dsh-btw-plugin:
72
+ # 可选:指定独立模型;留空则自动继承当前会话模型
73
+ # model: deepseek:deepseek-chat
74
+ ```
75
+
76
+ ---
77
+
78
+ ## 使用指南
79
+
80
+ ### 在 Web 聊天界面中
81
+ 在输入框输入 `/btw` 紧跟你的问题:
82
+
83
+ ```text
84
+ /btw PostgreSQL 的默认端口是多少?
85
+ /btw 简要解释 TCP 和 UDP 的区别
86
+ ```
87
+
88
+ - **浮动面板:** 输入框上方立即出现问题卡片,伴随量子均衡器脉冲。生成完毕后展示富文本 Markdown 回答。
89
+ - **分页导航(`< 1/5 >`):** 点击 `<` 与 `>` 翻阅当前会话历史中的侧边问答。
90
+ - **操作按钮:**
91
+ - **复制:** 一键将回答复制到剪贴板。
92
+ - **删除:** 从会话历史中移除该条记录。
93
+ - **折叠 / 展开:** 收起回答内容,保持工作区清爽。
94
+ - **关闭 [X]:** 关闭浮动卡片面板。
95
+
96
+ ---
97
+
98
+ ## 支持与社区福利
99
+
100
+ [![Sponsor via PayPal](https://img.shields.io/badge/Sponsor-PayPal-0070ba?style=flat&logo=paypal&logoColor=white)](https://paypal.me/wlvzedd) 如果你觉得本插件对你有帮助,欢迎赞助支持。
101
+
102
+ [![Free AI Credits on AgentRouter](https://img.shields.io/badge/Free%20AI%20Credits-%24200-ff6b35?style=flat&logoColor=white)](https://agentrouter.org/register?aff=bIJf) 使用 GitHub 注册 AgentRouter 即可领取最高 **$200 免费额度**,用于 LLM 工作流。
103
+
104
+ [![Free AI Credits on Vyce AI](https://img.shields.io/badge/Free%20AI%20Credits-%2450-7c3aed?style=flat&logoColor=white)](https://vyceai.com/signup?ref=VYCE_BL6YAG) 注册 Vyce AI 即可领取 **$50 免费额度**,用于高速 LLM 工作流。
105
+
106
+ ---
107
+
108
+ ## 开源协议
109
+
110
+ MIT © [WLV-ZEDD](https://github.com/WLV-ZEDD)
package/cordis.patch.yml CHANGED
@@ -1,4 +1,4 @@
1
- # dsh-btw-plugin bundle patch: inserts the plugin into a profile's layer stack.
2
- - insert:
3
- - id: dsh-btw-plugin
4
- name: '@wlv-zedd/dsh-btw-plugin'
1
+ # dsh-btw-plugin bundle patch: inserts the plugin into a profile's layer stack.
2
+ - insert:
3
+ - id: dsh-btw-plugin
4
+ name: '@wlv-zedd/dsh-btw-plugin'