@cnbmtech/dsh-zentao-session 0.2.1 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +9 -6
  2. package/client.js +5 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -55,13 +55,16 @@ dsh plugin --profile web add D:\dsh-plugins\dsh-zentao-session
55
55
 
56
56
  安装后**完全重启 DSH**(客户端 bundle 只在启动时加载,关开插件不会刷新)。
57
57
 
58
- > ℹ️ **关于 24 小时供应链策略**:插件管理器走 pnpm,默认带 `minimumReleaseAge`。实测 pnpm 11.7 在**显式安装某个包**时会自动把它写进 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`,所以同事正常执行安装即可,不用手动放行。
59
- > 只有当 profile 里设了 `minimumReleaseAgeStrict: true`(策略变成"必须人工确认")时,才需要手动加一条:
58
+ > ℹ️ **装到旧版本了?**(pnpm 11.7 实测)
59
+ > - pnpm 默认带 `minimumReleaseAge`(24 小时供应链策略),但**显式指定版本**安装时它会自动把该版本写进 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`,无需手动放行。
60
+ > - **刚发布几分钟内**,不带版本号(或 `@latest`)可能因 pnpm 的 registry 元数据缓存而拿到上一个版本。想要立刻拿到新版就**把版本号写全**:
60
61
  >
61
- > ```yaml
62
- > minimumReleaseAgeExclude:
63
- > - '@cnbmtech/dsh-zentao-session@0.2.1'
64
- > ```
62
+ > ```powershell
63
+ > dsh plugin --profile web add '@cnbmtech/dsh-zentao-session@0.2.1'
64
+ > ```
65
+ >
66
+ > 插件管理器里同理,填 `@cnbmtech/dsh-zentao-session@0.2.1`;或者等几分钟缓存过期后重装。
67
+ > - 只有 profile 设了 `minimumReleaseAgeStrict: true`(策略变成"必须人工确认")时,才需要手动加 `minimumReleaseAgeExclude` 条目。
65
68
 
66
69
  ## 登录与配置
67
70
 
package/client.js CHANGED
@@ -14,8 +14,10 @@
14
14
  * POST /api/dsh-zentao-session/{login,logout,bugaction,comment} 需请求头 x-dsh-zentao-session: 1
15
15
  * GET /api/dsh-zentao-session-file?path=/file-read-… 截图代理
16
16
  */
17
+ // 注册 id 必须**等于包名**:客户端加载器用 stripClientSuffix(id) 去客户端图里找行,
18
+ // 对不上就会重复执行本 bundle,第二次注册抛 "duplicate factory registration"(改名后踩过)。
17
19
  window.__ModuleLoader__.load({
18
- id: 'dsh-zentao-session',
20
+ id: '@cnbmtech/dsh-zentao-session',
19
21
  factory: (require) => {
20
22
  const React = require('react')
21
23
  const h = React.createElement
@@ -1741,7 +1743,8 @@ window.__ModuleLoader__.load({
1741
1743
  const module = { exports: {} }
1742
1744
 
1743
1745
  module.exports = {
1744
- name: 'dsh-zentao-session',
1746
+ // 与注册 id / 包名保持一致(客户端行按名字关联插件)
1747
+ name: '@cnbmtech/dsh-zentao-session',
1745
1748
  inject: ['slots'],
1746
1749
  apply(ctx) {
1747
1750
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnbmtech/dsh-zentao-session",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "ZenTao (禅道) session-based tools and panel for DeepSeek Harness: my bugs, tasks and stories across browse scopes, bug confirm/remark, plus drag-to-chat Markdown references. Works with legacy ZenTao versions that lack REST API v1.",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",