dsh-btw-plugin 0.5.1 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.2 — 2026-11-03(仓库元数据)
4
+
5
+ - `package.json` 增加 `repository` / `homepage` / `bugs`,指向 https://github.com/yanzoro926/dsh-btw;用于 npm 包与源码仓库互链(awesome-dsh-plugin 收录要求)。
6
+ - 版本 0.5.2,测试 63 个(logic 33 / host 28 / client 2)全绿;功能与 0.5.1 相同。
7
+
3
8
  ## 0.5.1 — 2026-11-03(浅色主题对比度)
4
9
 
5
10
  - 修正主题变量:改用 DSH 真实 token `--dsw-alias-label-primary/secondary/tertiary`、`--dsw-alias-border-l2/l3`、`--dsw-alias-state-error-primary`、`--dsw-alias-label-primary-bluish`(此前用了不存在的 `text-*` / `border-base`,浅色主题下回退成近白色,灰字几乎不可读)。
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 yanzoro926
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  DSH 会话里的 **btw 旁问**:基于当前对话上下文,弹出一次性临时对话框提问;回答只存在于这个弹窗里,**默认不写入该会话的记忆**,点 × 关闭即丢弃(切换会话只是隐藏,切回会恢复)。如果确实想让主会话记住结论,可以在弹窗里生成一份压缩摘要、预览编辑后「送入主会话」。
4
4
 
5
- > 状态:骨架(M0/M1)+ 交互补全(A 档)+ 上下文可控(B 档)+ 模型与成本(C 档)+ 选中文本旁问(0.4.3)+ 送入主会话(0.5.0)+ 浅色主题对比度(0.5.1):Markdown 渲染、按钮 / 命令入口、弹窗按会话隐藏/恢复、上下文范围选择与快照统计、冷会话读取、btw 专用模型选择、token 用量、调用设置面板、失败重试、选中一段文本后直接提问、旁问摘要预览与写入。
5
+ > 状态:骨架(M0/M1)+ 交互补全(A 档)+ 上下文可控(B 档)+ 模型与成本(C 档)+ 选中文本旁问(0.4.3)+ 送入主会话(0.5.0)+ 浅色主题对比度(0.5.1)+ 仓库元数据(0.5.2):Markdown 渲染、按钮 / 命令入口、弹窗按会话隐藏/恢复、上下文范围选择与快照统计、冷会话读取、btw 专用模型选择、token 用量、调用设置面板、失败重试、选中一段文本后直接提问、旁问摘要预览与写入。
6
6
  > 规划文档:`../btw-plan/PLAN.md`;调研:`../btw-plan/research/{A,B,C}-*.md`。
7
7
 
8
8
  ## 它做什么
package/lib/client.js CHANGED
@@ -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.1', loadedAt: Date.now() } } catch { /* ignore */ }
36
+ try { window.__DSH_BTW__ = { version: '0.5.2', loadedAt: Date.now() } } catch { /* ignore */ }
37
37
 
38
38
  /* ----------------------------------------------- optional shell extras */
39
39
 
package/lib/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
 
45
45
  export const name = 'dsh-btw'
46
46
 
47
- export const VERSION = '0.5.1'
47
+ export const VERSION = '0.5.2'
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,8 +1,16 @@
1
1
  {
2
2
  "name": "dsh-btw-plugin",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
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
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/yanzoro926/dsh-btw.git"
9
+ },
10
+ "homepage": "https://github.com/yanzoro926/dsh-btw#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/yanzoro926/dsh-btw/issues"
13
+ },
6
14
  "type": "module",
7
15
  "main": "lib/index.js",
8
16
  "files": [