@michengai/dsh-btw 0.1.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.1.4] - 2026-09-07
6
+
7
+ - Exclude repository-only screenshots and branding images from the published npm tarball, reducing the package size while keeping README images available on GitHub.
8
+ - Remove the standalone mock preview and its mock-only browser test so the repository no longer presents it as a real DSH plugin page.
9
+
10
+ ## [0.1.3] - 2026-09-06
11
+
12
+ - Fix the package path in GitHub Actions so npm treats the tarball as a local file, and validate it with an npm publish dry run before publishing.
13
+ - Include the OIDC authorization check and its failure and credential-handling tests prepared for 0.1.2, whose publication failed before uploading a package.
14
+
15
+ ## [0.1.2] - 2026-09-06
16
+
17
+ - Add a GitHub Actions dry-run check that verifies the configured npm trusted publisher by exchanging an OIDC identity for a short-lived publishing credential without uploading a package.
18
+ - Add authorization failure and credential-handling tests for the release workflow. Plugin behavior is unchanged.
19
+
5
20
  ## [0.1.1] - 2026-09-06
6
21
 
7
22
  - Limit each session to 20 side-question bubbles. At capacity, close the oldest completed bubble before accepting a new question; failed closure preserves answers and the current input with a localized message.
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## [未发布]
4
4
 
5
+ ## [0.1.4] - 2026-09-07
6
+
7
+ - 从 npm 发布包中排除仅供仓库展示的截图和品牌图片,在保留 GitHub README 图片的同时缩小安装包体积。
8
+ - 删除独立 mock 预览及仅验证该 mock 的浏览器测试,避免再将其当作真实 DSH 插件页面。
9
+
10
+ ## [0.1.3] - 2026-09-06
11
+
12
+ - 修复 GitHub Actions 安装包路径,确保 npm 将 tar 包识别为本地文件,并在正式发布前通过 npm publish dry run 验证。
13
+ - 包含原定 0.1.2 的 OIDC 授权检查及授权失败、凭据处理测试;0.1.2 发布在上传安装包前失败。
14
+
15
+ ## [0.1.2] - 2026-09-06
16
+
17
+ - 为 GitHub Actions 的不发布验证增加 npm 可信发布检查,通过 OIDC 身份交换短期发布凭据,验证授权但不上传安装包。
18
+ - 补充发布流程的授权失败和凭据处理测试。插件功能保持不变。
19
+
5
20
  ## [0.1.1] - 2026-09-06
6
21
 
7
22
  - 限制每个会话最多保留 20 个旁问气泡;满额先关闭最旧的已完成气泡,成功后接收新问题,失败则保留答案和当前输入并显示中英文提示。
package/README.md CHANGED
@@ -126,14 +126,10 @@ npm ci --ignore-scripts
126
126
  npm run check
127
127
  ```
128
128
 
129
- `npm run check` runs type checking, tests, and a build. After building, use `npm run test:browser` for browser tests; Microsoft Edge is required locally. `npm run dev` provides a UI preview with mock answers.
129
+ `npm run check` runs type checking, tests, and a build.
130
130
 
131
131
  To install from source, run `dsh plugin --profile web add . --ignore-scripts` from the project directory, then reload DSH.
132
132
 
133
- ## References and Credits
134
-
135
- Interaction design was informed by [dsh-btw-plugin](https://github.com/JasonQQ/dsh-btw-plugin), [dsh-AIR](https://github.com/kaieye/dsh-AIR), and [pi-btw](https://pi.dev/packages/@narumitw/pi-btw). This plugin is implemented independently.
136
-
137
133
  ## License
138
134
 
139
135
  [Apache-2.0](LICENSE). Copyright 2026 MichengAI.
package/README.zh-CN.md CHANGED
@@ -124,14 +124,10 @@ npm ci --ignore-scripts
124
124
  npm run check
125
125
  ```
126
126
 
127
- `npm run check` 执行类型检查、测试和构建。构建后可运行 `npm run test:browser` 做浏览器测试,本地需要 Microsoft Edge。`npm run dev` 提供使用模拟回答的界面预览。
127
+ `npm run check` 执行类型检查、测试和构建。
128
128
 
129
129
  从源码安装时,在项目目录执行 `dsh plugin --profile web add . --ignore-scripts`,然后重新加载 DSH。
130
130
 
131
- ## 参考与致谢
132
-
133
- 交互设计参考 [dsh-btw-plugin](https://github.com/JasonQQ/dsh-btw-plugin)、[dsh-AIR](https://github.com/kaieye/dsh-AIR) 和 [pi-btw](https://pi.dev/packages/@narumitw/pi-btw),代码独立实现。
134
-
135
131
  ## 许可证
136
132
 
137
133
  [Apache-2.0](LICENSE) © 2026 MichengAI。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-btw",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "DSH 一次性只读旁问气泡",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,6 @@
27
27
  },
28
28
  "files": [
29
29
  "lib",
30
- "assets",
31
30
  "cordis.patch.yml",
32
31
  "README.md",
33
32
  "README.zh-CN.md",
@@ -54,11 +53,8 @@
54
53
  "build": "node scripts/build.mjs",
55
54
  "typecheck": "tsc --noEmit",
56
55
  "test": "vitest run",
57
- "test:release": "node --test tests/release.test.mjs",
56
+ "test:release": "node --test tests/release.test.mjs tests/npm-oidc.test.mjs",
58
57
  "check": "npm run typecheck && npm test && npm run test:release && npm run build",
59
- "preview": "vite preview --host 127.0.0.1",
60
- "dev": "vite --host 127.0.0.1",
61
- "test:browser": "playwright test",
62
58
  "prepack": "npm run build"
63
59
  },
64
60
  "engines": {
@@ -92,18 +88,14 @@
92
88
  "@deepseek-ai/dsh-tools": "0.1.2-rc.1",
93
89
  "@deepseek-ai/dsh-typert-protocol": "0.1.2-rc.1",
94
90
  "@deepseek-ai/dsh-typert-registry": "0.1.2-rc.1",
95
- "@playwright/test": "^1.58.0",
96
91
  "@types/node": "^22.0.0",
97
92
  "@types/react": "^18.3.1",
98
- "@types/react-dom": "^18.3.1",
99
93
  "esbuild": "^0.25.0",
100
94
  "lucide-react": "^0.468.0",
101
95
  "react": "^18.3.1",
102
- "react-dom": "^18.3.1",
103
96
  "react-markdown": "^10.1.0",
104
97
  "remark-gfm": "^4.0.1",
105
98
  "typescript": "~5.7.2",
106
- "vite": "^6.4.0",
107
99
  "vitest": "^3.2.0"
108
100
  }
109
101
  }
Binary file
Binary file