dsh-btw-plugin 0.5.3 → 0.5.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.5 — 2026-11-03(统一包名为 dsh-btw-plugin)
4
+
5
+ - 源码包名、Cordis 插件名与 bundle patch 的 insert name 统一为 `dsh-btw-plugin`,与 npm 包名一致,避免本地安装与 npm 包同名冲突。
6
+ - 本地 desktop profile 的依赖与 bundles 改为 `dsh-btw-plugin`,并重新建立指向仓库的 junction。
7
+ - 功能不变;测试 63 个全绿。
8
+
9
+ ## 0.5.4 — 2026-11-03(README 截图)
10
+
11
+ - README 增加「界面」一节,放两张实际截图(空状态、引用选中文本后回答);仓库根新增 `screenshots.json`,供 dsh-market 等商店读取。
12
+ - 功能与 0.5.3 相同;版本仅用于更新 npm 上的 README。
13
+
3
14
  ## 0.5.3 — 2026-11-03(README 面向使用者重写)
4
15
 
5
16
  - README 改为以功能和用法为主:功能、安装、使用、送入主会话、隐私边界、配置、已知限制,移除逐版本的开发过程、内部路由与 E2E 清单。
package/README.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  适合这些场景:主会话里有个名词没看懂、想确认某段输出的含义、想在不打断主任务的情况下先问一句。
6
6
 
7
+ ## 界面
8
+
9
+ ![btw 旁问弹窗:空状态,顶部是上下文范围、模型与「送入主会话」](https://raw.githubusercontent.com/yanzoro926/dsh-btw/main/assets/screenshot-1.png)
10
+
11
+ ![btw 旁问弹窗:引用选中文本后回答,底部是提问框与隐私提示](https://raw.githubusercontent.com/yanzoro926/dsh-btw/main/assets/screenshot-2.png)
12
+
7
13
  ## 功能
8
14
 
9
15
  - **一次性旁问**:输入框右侧的 `btw` 按钮,或输入 `/btw` 命令,打开一个独立浮窗提问;回答流式显示,支持 Markdown。
package/cordis.patch.yml CHANGED
@@ -1,10 +1,10 @@
1
- # dsh-btw bundle patch
1
+ # dsh-btw-plugin bundle patch
2
2
  #
3
3
  # Install:
4
4
  # dsh plugin --profile desktop add file:D:/DSH-workspace/dsh-btw
5
5
  # The CLI reconciles `dsh.profile.bundles` against installed packages and,
6
- # seeing this declaration, appends "dsh-btw" to the bundle stack. Manual
7
- # fallback: add "dsh-btw" to `dsh.profile.bundles` in the profile package.json,
6
+ # seeing this declaration, appends "dsh-btw-plugin" to the bundle stack. Manual
7
+ # fallback: add "dsh-btw-plugin" to `dsh.profile.bundles` in the profile package.json,
8
8
  # then restart DSH (client bundles are hashed into the boot graph at host start).
9
9
  #
10
10
  # Host half: lib/index.js registers /btw/health and /btw/ask (SSE).
package/lib/client.js CHANGED
@@ -15,7 +15,7 @@
15
15
  * TODO(C): model picker + usage display + settings panel.
16
16
  */
17
17
  window.__ModuleLoader__.load({
18
- id: 'dsh-btw',
18
+ id: 'dsh-btw-plugin',
19
19
  factory: (require) => {
20
20
  const module = { exports: {} }
21
21
  const exports = module.exports
@@ -33,7 +33,7 @@ window.__ModuleLoader__.load({
33
33
 
34
34
  // Debug marker: lets you confirm from DevTools which build the shell loaded.
35
35
  // __DSH_BTW__ -> { version, loadedAt }
36
- try { window.__DSH_BTW__ = { version: '0.5.3', loadedAt: Date.now() } } catch { /* ignore */ }
36
+ try { window.__DSH_BTW__ = { version: '0.5.5', loadedAt: Date.now() } } catch { /* ignore */ }
37
37
 
38
38
  /* ----------------------------------------------- optional shell extras */
39
39
 
package/lib/index.js CHANGED
@@ -42,9 +42,9 @@ import {
42
42
  sseFrame,
43
43
  } from './logic.js'
44
44
 
45
- export const name = 'dsh-btw'
45
+ export const name = 'dsh-btw-plugin'
46
46
 
47
- export const VERSION = '0.5.3'
47
+ export const VERSION = '0.5.5'
48
48
 
49
49
  // All are real host services in DSH 0.2.1-rc.5 (see ds-bot's and
50
50
  // dsh-better-sidebar's inject lists). A missing service only delays apply().
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-btw-plugin",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "private": false,
5
5
  "description": "btw - one-off context side questions for a DSH session: a temporary dialog that inherits the current session context; answers stay in the dialog unless the user reviews a compressed summary and sends it into the session.",
6
6
  "repository": {