dsh-jira-tasks 1.0.2 → 1.0.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/README.en.md CHANGED
@@ -20,7 +20,7 @@ Shows the current JIRA project's **open / reopened** issues **assigned to the cu
20
20
  Published to npm:
21
21
 
22
22
  ```bash
23
- dsh plugin --profile desktop add dsh-jira-tasks
23
+ dsh plugin --profile web add dsh-jira-tasks
24
24
  ```
25
25
 
26
26
  **Restart DSH** to activate.
@@ -28,8 +28,8 @@ dsh plugin --profile desktop add dsh-jira-tasks
28
28
  <details>
29
29
  <summary>Manual install (without npm)</summary>
30
30
 
31
- 1. Copy the repo's `profile-package/` to `~/.dsh/profiles/desktop/packages/dsh-jira-tasks/`
32
- 2. Edit `~/.dsh/profiles/desktop/package.json`:
31
+ 1. Copy the repo's `profile-package/` to `~/.dsh/profiles/web/packages/dsh-jira-tasks/`
32
+ 2. Edit `~/.dsh/profiles/web/package.json`:
33
33
  - Add to `dependencies`: `"dsh-jira-tasks": "file:./packages/dsh-jira-tasks"`
34
34
  - Append to `dsh.profile.bundles`: `"dsh-jira-tasks"`
35
35
  3. Run `pnpm install` in the profile directory
@@ -76,7 +76,7 @@ project = "{projectKey}" AND status in ("开启", "重新开启") AND assignee =
76
76
  ## Uninstall
77
77
 
78
78
  ```bash
79
- dsh plugin --profile desktop remove dsh-jira-tasks
79
+ dsh plugin --profile web remove dsh-jira-tasks
80
80
  ```
81
81
 
82
82
  ## Troubleshooting
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
  包已发布到 npm:
25
25
 
26
26
  ```bash
27
- dsh plugin --profile desktop add dsh-jira-tasks
27
+ dsh plugin --profile web add dsh-jira-tasks
28
28
  ```
29
29
 
30
30
  **重启 DSH** 后生效。
@@ -32,8 +32,8 @@ dsh plugin --profile desktop add dsh-jira-tasks
32
32
  <details>
33
33
  <summary>手动安装(不使用 npm)</summary>
34
34
 
35
- 1. 将仓库 `profile-package/` 复制为 `~/.dsh/profiles/desktop/packages/dsh-jira-tasks/`
36
- 2. 编辑 `~/.dsh/profiles/desktop/package.json`:
35
+ 1. 将仓库 `profile-package/` 复制为 `~/.dsh/profiles/web/packages/dsh-jira-tasks/`
36
+ 2. 编辑 `~/.dsh/profiles/web/package.json`:
37
37
  - `dependencies` 增加:`"dsh-jira-tasks": "file:./packages/dsh-jira-tasks"`
38
38
  - `dsh.profile.bundles` 追加:`"dsh-jira-tasks"`
39
39
  3. 在 profile 目录执行 `pnpm install`
@@ -80,7 +80,7 @@ project = "{projectKey}" AND status in ("开启", "重新开启") AND assignee =
80
80
  ## 卸载
81
81
 
82
82
  ```bash
83
- dsh plugin --profile desktop remove dsh-jira-tasks
83
+ dsh plugin --profile web remove dsh-jira-tasks
84
84
  ```
85
85
 
86
86
  ## 常见问题
package/lib/client.js CHANGED
@@ -7,10 +7,9 @@ window.__ModuleLoader__.load({
7
7
  var React = require("react");
8
8
  var h = React.createElement;
9
9
 
10
- var CSS = ".jt-root{box-sizing:border-box;width:100%;padding:2px 8px 6px;flex:none;display:flex;flex-direction:column}"
10
+ var CSS = ".jt-root{box-sizing:border-box;width:100%;padding:2px 0 6px;flex:none;display:flex;flex-direction:column}"
11
11
  + ".jt-hero{order:99;padding:0 var(--dsh-composer-side-clearance, 16px)}"
12
- + ".jt-hero .jt-panel{width:100%;max-width:var(--dsh-composer-card-max-width, 780px);margin:0 auto;box-sizing:border-box}"
13
- + ".jt-panel{border:1px solid var(--dsw-alias-border-l1, rgba(127,127,127,.28));background:var(--dsw-alias-bg-layer-1, rgba(127,127,127,.07));border-radius:10px;overflow:hidden}"
12
+ + ".jt-panel{box-sizing:border-box;width:100%;max-width:var(--dsh-composer-card-max-width, 780px);margin:0 auto;border:1px solid var(--dsw-alias-border-l1, rgba(127,127,127,.28));background:var(--dsw-alias-bg-layer-1, rgba(127,127,127,.07));border-radius:10px;overflow:hidden}"
14
13
  + ".jt-header{display:flex;align-items:center;gap:8px;min-height:30px;padding:2px 6px 2px 4px}"
15
14
  + ".jt-toggle{display:flex;align-items:center;gap:6px;flex:1;min-width:0;background:none;border:none;cursor:pointer;color:var(--dsw-alias-label-primary, #222);padding:4px 6px;border-radius:6px;font-size:12px;text-align:left}"
16
15
  + ".jt-toggle:hover{background:var(--dsw-alias-interactive-bg-hover, rgba(127,127,127,.1))}"
@@ -87,10 +86,12 @@ window.__ModuleLoader__.load({
87
86
  persistAll(all);
88
87
  }
89
88
 
89
+ // 新版 DSH:SessionSnapshot.blank 是“会话日志为空”的规范标记;旧版 DSH:消息位于 chat.timeline / chat.legacy.nodes。
90
90
  function hasMessages(session) {
91
- if (!session || !session.chat) return false;
92
- if (session.chat.timeline && session.chat.timeline.length > 0) return true;
93
- if (session.chat.legacy && session.chat.legacy.nodes && session.chat.legacy.nodes.length > 0) return true;
91
+ if (!session) return false;
92
+ if (typeof session.blank === "boolean") return !session.blank;
93
+ if (session.chat && session.chat.timeline && session.chat.timeline.length > 0) return true;
94
+ if (session.chat && session.chat.legacy && session.chat.legacy.nodes && session.chat.legacy.nodes.length > 0) return true;
94
95
  return false;
95
96
  }
96
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-jira-tasks",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "JIRA open tasks panel for DeepSeek Harness (DSH): shows the current user's open/reopened issues below the composer, per-workspace project key, persistent profile bundle.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",