dsh-jira-tasks 1.0.2 → 1.0.3
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/lib/client.js +7 -6
- package/package.json +1 -1
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
|
|
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-
|
|
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
|
|
92
|
-
if (
|
|
93
|
-
if (session.chat
|
|
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.
|
|
3
|
+
"version": "1.0.3",
|
|
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",
|