dsh-jira-work-overview 0.16.0 → 0.16.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 +69 -0
- package/README.md +151 -1
- package/README.zh.md +163 -6
- package/client.js +26 -5
- package/docs/images/plan-flow.png +0 -0
- package/docs/images/plan-flow.zh.png +0 -0
- package/index.js +93 -20
- package/package.json +1 -1
- package/test/README.md +44 -5
- package/test/dsh-jira-credential.mjs +7 -2
- package/test/dsh-jira-due.mjs +15 -3
- package/test/dsh-jira-epic.mjs +3 -1
- package/test/dsh-jira-i18n.mjs +4 -0
- package/test/dsh-jira-json.mjs +7 -2
- package/test/dsh-jira-plan.mjs +3 -28
- package/test/dsh-jira-platform.mjs +372 -0
- package/test/dsh-jira-release.mjs +157 -0
- package/test/dsh-jira-search.mjs +3 -0
- package/test/dsh-jira-selfwatch.mjs +3 -0
- package/test/dsh-jira-shot.mjs +228 -5
- package/test/dsh-jira-smoke.mjs +16 -5
- package/test/dsh-jira-smoke3.mjs +18 -5
- package/test/dsh-jira-sprint.mjs +7 -2
- package/test/dsh-jira-status.mjs +7 -2
- package/test/dsh-jira-transition.mjs +19 -8
- package/test/dsh-jira-visual.mjs +7 -2
- package/test/dsh-jira-workspace-menu.mjs +170 -0
- package/test/lib-host-runtime.mjs +64 -0
- package/test/run-offline.mjs +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,75 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.16.2] - 2026-11-23
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **左栏工作区的右键菜单里「关联 Jira 项目…」会整页消失(绑定选项没了)。** 浏览器侧的插件入口是
|
|
14
|
+
**并发创建**的(`dsh-client-modules` 用 `Promise.all` 同时 `create` 每个插件),本插件只 inject
|
|
15
|
+
`slots` / `remote`,而 `contextMenus` 服务自己还要等 `locale`、`shortcuts` —— 所以 `apply()` 时它
|
|
16
|
+
经常还没 `provide`。旧代码在这里只 `ctx.get('contextMenus')` 拿一次,拿不到就跳过注册,这一页就
|
|
17
|
+
再也没有「关联 / 取消关联 Jira 项目」——面板、角标都正常,只有右键菜单少东西。现在改用
|
|
18
|
+
`ctx.inject(['contextMenus'], child => …)` 等服务出现再注册(官方 `dsh-client-ui-file-actions`
|
|
19
|
+
同款写法);老基座没有 `ctx.inject` 时退回直接注册。新增离线套件
|
|
20
|
+
`test/dsh-jira-workspace-menu.mjs` 专门模拟「服务晚到」。
|
|
21
|
+
|
|
22
|
+
## [0.16.1] - 2026-11-22
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **Windows:桌面通知一条都不弹。** Windows 的 Toast 必须挂在一个**已注册的** AUMID 上才能
|
|
27
|
+
`Show()`;未注册时 `CreateToastNotifier()` 抛 `Element not found (0x80070490)`,而它被静默吞掉了,
|
|
28
|
+
于是「新任务 / 状态变化」在 Windows 上等于没有通知。现在按 `DSH_NOTIFY_AUMID` → `DeepSeek Harness`
|
|
29
|
+
→ `com.deepseek.harness` → 系统自带的 Windows PowerShell AUMID 顺序逐个试,第一个成功的就停;
|
|
30
|
+
脚本里的语句改用换行拼接(`{; try … }` 是 PowerShell 语法错误,之前整段都不执行)。
|
|
31
|
+
- **Windows:「在文件管理器中显示」明明成功了却报「打开失败」。** `explorer.exe /select,<path>` 成功时
|
|
32
|
+
也返回退出码 1,之前被当成失败抛出。现在这个分支允许非零退出码(只有进程根本起不来才算失败)。
|
|
33
|
+
- **Windows:profile 放在网络共享盘上时,配置文件被当成「路径未知」。** 绝对路径判定除了 `/…`、
|
|
34
|
+
`C:\…`,现在也认 UNC(`\\server\share\…`),「打开 / 显示 / 选择打开方式」不再提前报错。
|
|
35
|
+
- **Linux:编辑器只能存命令名,从桌面启动器点开会失败。** 探测编辑器时除了 `PATH` 还会查
|
|
36
|
+
`/usr/local/bin`、`/usr/bin`、`/bin`、`/snap/bin`、`/var/lib/flatpak/exports/bin`、`~/.local/bin`、
|
|
37
|
+
`~/.nix-profile/bin`、`~/.linuxbrew/bin` 和 JetBrains Toolbox 的 scripts 目录;只有**可执行**的才算数
|
|
38
|
+
(目录跳过),并且启动时用**绝对路径**——最小 `PATH` 的桌面会话里也能点动。
|
|
39
|
+
- **`PATH` 的分隔符按平台取**(Windows 是 `;`,其余是 `:`)。真实 Windows 上探测编辑器走 `where`,
|
|
40
|
+
这条分支实际不可达,属防御性修复。
|
|
41
|
+
- **Linux 的「选择打开方式」** 明确返回 `err.chooseUnsupported`(系统没有等价物),不再静默失败。
|
|
42
|
+
- **干净机器上跑测试会直接崩**:9 个离线套件在 `$DSH_JIRA_TMP/.dsh_jira_env` 不存在时 `ENOENT`
|
|
43
|
+
退出 1。现在缺文件就建一个空的(`0o600`),目录不存在就先 `mkdirSync(…, { recursive: true })`。
|
|
44
|
+
- **`test/dsh-jira-transition.mjs` 在没有站点凭据时**抛 `JiraError: No Jira site URL yet: …` 并退出 1
|
|
45
|
+
(违反「测试必须 SKIP」)。现在先跑两个不碰网络的 400 断言,之后打印
|
|
46
|
+
`SKIP: 没有 JIRA_BASE_URL / JIRA_API_TOKEN` 并 `exit 0`。
|
|
47
|
+
- **出图脚本不再写死 macOS 的 Chrome / `app.asar` 路径**:`DSH_JIRA_CHROME` / `DSH_JIRA_ASAR` 优先,
|
|
48
|
+
然后按平台找(Windows 的 `%ProgramFiles%` / `%LOCALAPPDATA%`,Linux 的 `/usr/bin/google-chrome`、
|
|
49
|
+
`google-chrome-stable`、`chromium`、`chromium-browser`、snap、flatpak);`file://` 拼接改成
|
|
50
|
+
`pathToFileURL()`(Windows 上 `file://C:\…` 是非法 URL);root 用户自动加 `--no-sandbox`(容器 / CI)。
|
|
51
|
+
|
|
52
|
+
### Testing & CI
|
|
53
|
+
|
|
54
|
+
- **新增 `test/dsh-jira-platform.mjs`(31 项)**:强制 `process.platform` 走 win32 / linux / freebsd 分支,
|
|
55
|
+
把 `#!/bin/sh` 假可执行文件(`cmd.exe`、`explorer.exe`、`rundll32.exe`、`powershell.exe`、`where`、
|
|
56
|
+
`xdg-open`、`notify-send`)放到 `PATH` 最前,断言**真 spawn 出来的命令与参数**。Windows / Linux 的
|
|
57
|
+
命令行分派第一次有了自动化覆盖:`cmd /c start` 的引号、`explorer /select,`、`rundll32` 打开方式、
|
|
58
|
+
Toast 脚本内容(AUMID 顺序、单引号转义、UTF-16LE base64 往返)、UNC 路径、`:` 与 `;` 的切分。
|
|
59
|
+
- **新增 `test/lib-host-runtime.mjs` 的 `prepareHostCopy()`**:宿主依赖统一从 `DSH_INSTALL_DIR` 拷,
|
|
60
|
+
拿不到就 `SKIP: …` + `exit 0`——14 个套件共用,`plan` 套件里 1200 多字的重复拷贝块删掉。
|
|
61
|
+
- **新增 `test/run-offline.mjs`**:一条命令跑完 17 个套件(`--release` 会透传给发版预检)。
|
|
62
|
+
- **新增 `.github/workflows/test.yml`**:Ubuntu / macOS / Windows 三平台矩阵,每次 push / PR 跑整套离线
|
|
63
|
+
测试(public 仓库的 GitHub Actions 免费)。**机器上没装 DSH 也能跑**:从 npm 装
|
|
64
|
+
`@deepseek-ai/schemastery` + `cosmokit`,拼一个假 `DSH_INSTALL_DIR` 交给 `prepareHostCopy()`。
|
|
65
|
+
- **新增发版预检 `test/dsh-jira-release.mjs` + `.github/workflows/release-check.yml`**(常规 48 项 /
|
|
66
|
+
`--release` 50 项):版本号 ⇄ `CHANGELOG.md` ⇄ tag 一致、`[Unreleased]` 已清空、bundle 身份三处一致、
|
|
67
|
+
仓库里没有个人数据、`npm pack` 的真实 tarball 清单与 `files` 一致;`publish.yml` 在 `npm publish`
|
|
68
|
+
之前跑同一预检——内容不自洽就红在发布之前,而不是发出去之后才发现。
|
|
69
|
+
|
|
70
|
+
### Docs
|
|
71
|
+
|
|
72
|
+
- 两版 README 新增「版本与升级」(29 个版本的逐版历史表 + 升级方式)与「修复记录」(用户可感知的缺陷
|
|
73
|
+
与排查顺序),并补「平台支持(macOS / Windows / Linux)」的如实口径:Linux 已实现但未在实机验证、
|
|
74
|
+
「选择打开方式」是唯一缺口、文件管理器显示退化为打开父目录。
|
|
75
|
+
- 两版 README 加 CI 徽章;`test/README.md` 记录运行方式、`prepareHostCopy`、Chrome / `app.asar` 探测。
|
|
76
|
+
|
|
77
|
+
|
|
9
78
|
## [0.16.0] - 2026-11-20
|
|
10
79
|
|
|
11
80
|
### Added
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Show **your** Jira work items — with their real workflow status — inside [DeepSeek Harness](https://github.com/deepseek-ai) (DSH): as agent tools, as a `/jira` slash command, and as a panel in the left sidebar with a live unread badge.
|
|
4
4
|
|
|
5
|
+
[](https://github.com/EagleSoap/dsh-jira-work-overview/actions/workflows/test.yml) [](https://github.com/EagleSoap/dsh-jira-work-overview/actions/workflows/release-check.yml)
|
|
6
|
+
|
|
5
7
|
> 中文说明见 [README.zh.md](README.zh.md) · Changelog: [CHANGELOG.md](CHANGELOG.md) · License: [MIT](LICENSE)
|
|
6
8
|
|
|
7
9
|
<p align="center">
|
|
@@ -104,8 +106,41 @@ Prefer files? Add an override row to your profile's `cordis.patch.yml` (this is
|
|
|
104
106
|
unplanned again and the next click starts a fresh session. Archiving keeps the log — a mis-click is
|
|
105
107
|
recoverable from the archive.
|
|
106
108
|
|
|
109
|
+
### Planning: link a workspace, then plan
|
|
110
|
+
|
|
111
|
+
The `☰ Plan` chip needs the project to be linked to a workspace first — that is the step first-time users
|
|
112
|
+
miss. Four steps, and from then on every card is one click away from a planning conversation:
|
|
113
|
+
|
|
114
|
+
<img src="docs/images/plan-flow.png" width="1040" alt="Four steps: (1) right-click the workspace row and pick 'Link Jira project…', (2) the panel opens by itself — click the dashed project tab to link it, (3) click the '☰ Plan' chip on a row, (4) back in the panel the chip turns blue and hovering the row shows a ×">
|
|
115
|
+
|
|
116
|
+
1. **Link the workspace to a project**: right-click the workspace row in the left sidebar → *Link Jira project…*.
|
|
117
|
+
A workspace holds one project at a time; linking another one moves it over, and the menu item becomes
|
|
118
|
+
*Unlink Jira project* once something is linked.
|
|
119
|
+
2. **Click a project tab**: the panel opens by itself and the header reads "Click a project tab above to link it
|
|
120
|
+
to the current workspace." Candidate tabs carry a **dashed** outline — click one to link it; the header then
|
|
121
|
+
reads "This workspace is linked to APP". Candidates appear only after the panel has fetched issues once, so
|
|
122
|
+
hit *Refresh* if there are none.
|
|
123
|
+
3. **Click the `☰ Plan` chip at the end of a row**: creates a planning-mode session in that project's workspace.
|
|
124
|
+
The first message only asks for a bullet list of the edits to make, and you agree to it in the conversation.
|
|
125
|
+
`deepseek-ai/dsh-plan-mode` is optional — a built-in policy is used when it is absent.
|
|
126
|
+
4. **Back in the panel**: the chip turns blue (`on`) = planned. Hovering the row reveals a `×` that archives the
|
|
127
|
+
session and clears the binding (recoverable from the archive).
|
|
128
|
+
|
|
129
|
+
The real panel, for comparison (the two planned rows near the top are outlined):
|
|
130
|
+
|
|
107
131
|
<img src="docs/images/panel-plan.png" width="1040" alt="Rows with the '☰ Plan' chip: the two planned rows near the top are outlined because they are bound to a planning conversation, the rest are not">
|
|
108
132
|
|
|
133
|
+
#### "Plan" does nothing or shows an error
|
|
134
|
+
|
|
135
|
+
| What you see | Why | What to do |
|
|
136
|
+
| --- | --- | --- |
|
|
137
|
+
| `Project APP is not linked to a workspace: link it from the sidebar first.` | The project is not linked to any workspace (or the mapping was lost) | Redo steps 1–2 above |
|
|
138
|
+
| No candidate tabs / `No projects to link yet: open the panel once so the project list loads.` | The panel has never fetched issues successfully | Hit *Refresh*; if it still fails, set the site / email / token first |
|
|
139
|
+
| The workspace context menu has no *Link Jira project…* | The client half of the plugin did not register (the host row can still read active) | Reinstall the bundle and reload the page |
|
|
140
|
+
| The chip stays grey and does nothing | The previous session creation has not returned yet | Wait for it; a failure shows `Could not create the planning session: …` |
|
|
141
|
+
| It always reopens the same conversation | One issue maps to one planning session (by design) | Click `×` to archive it, then click *Plan* again |
|
|
142
|
+
| The first message says the Jira issue is unclear | The card is missing key fields: no summary / description / parent or links | Fill those in on Jira and click *Plan* again |
|
|
143
|
+
|
|
109
144
|
<img src="docs/images/panel-watch.png" width="1040" alt="The live-change banner and a row with its status dropdown open (To Do / In Progress / IN QA / Done)">
|
|
110
145
|
|
|
111
146
|
### Epic view
|
|
@@ -164,12 +199,27 @@ A status **you** changed — from the panel dropdown or `jira_transition` — is
|
|
|
164
199
|
|
|
165
200
|
| | macOS | Windows | Linux |
|
|
166
201
|
| --- | --- | --- | --- |
|
|
167
|
-
| Notifications | `osascript` | PowerShell Toast (`-EncodedCommand`) | `notify-send` |
|
|
202
|
+
| Notifications | `osascript` | PowerShell Toast (`-EncodedCommand`); the AUMID is tried in order `DSH_NOTIFY_AUMID` → `DeepSeek Harness` → PowerShell's own AUMID | `notify-send` |
|
|
168
203
|
| Open `cordis.patch.yml` | `open` / `open -R` / osascript app chooser | `cmd /c start` / `rundll32 … OpenAs_RunDLL` / `explorer /select,` | `xdg-open` |
|
|
204
|
+
| Editor picker | scans `/Applications`, `~/Applications`, `/System/Applications` for `.app` bundles | `where` + `%LOCALAPPDATA%` / `%ProgramFiles%`; `PATH` split on `;` | searches `PATH` **plus** the usual install locations (`/usr/local/bin`, `/snap/bin`, flatpak exports, `~/.local/bin`, `~/.nix-profile/bin`, JetBrains Toolbox), requires an executable bit, launches the resolved absolute path |
|
|
169
205
|
| Host paths | POSIX | avoid spaces in the install path — DSH records it as a `link:` dependency | POSIX |
|
|
170
206
|
|
|
171
207
|
The web half only uses standard React/DOM APIs (`color-mix`, `createPortal` are supported on all three).
|
|
172
208
|
|
|
209
|
+
The `cordis.patch.yml` path may be POSIX (`/…`), a Windows drive path (`C:\…` / `C:/…`) or a UNC share
|
|
210
|
+
(`\\server\share\…`, the case when a corporate profile is redirected to a network location).
|
|
211
|
+
|
|
212
|
+
Known edge: on Windows the `cmd /c start` fallback re-interprets `cmd` metacharacters (`&`, `%`) if the path
|
|
213
|
+
contains them — profile paths placed by DSH do not. `explorer.exe /select,` returns 1 even on success, so only a
|
|
214
|
+
failure to spawn is reported as an error.
|
|
215
|
+
|
|
216
|
+
**What is real and what is not, on Linux:** every platform difference — notifications, opening `cordis.patch.yml`,
|
|
217
|
+
the editor picker and its `PATH` lookup, fonts and scrollbars — is implemented by `process.platform` dispatch and
|
|
218
|
+
covered by the offline suites, **but it has never been run on a Linux machine** (development happens on macOS). If
|
|
219
|
+
something misbehaves there, open an issue with the panel's error text. The one Linux-specific gap by design:
|
|
220
|
+
the "choose application" picker has no desktop-portal equivalent, so only `xdg-open` / the editor picker / a
|
|
221
|
+
freely typed command are offered.
|
|
222
|
+
|
|
173
223
|
## Internationalization
|
|
174
224
|
|
|
175
225
|
The plugin's own copy follows the DSH language setting; English and Chinese ship with the plugin and every other language falls back to English. Resolution order: `DSH_JIRA_LANG` → per-call override (`--lang=` / `?lang=`) → `language` config → the host `locale.preference` → the panel-reported language → system env → ICU → `en`. Jira data is never translated.
|
|
@@ -190,6 +240,106 @@ The plugin's own copy follows the DSH language setting; English and Chinese ship
|
|
|
190
240
|
|
|
191
241
|
Behind a corporate proxy on Windows, DSH needs the proxy env vars it was started with (`NODE_USE_ENV_PROXY=1`) — the plugin itself never talks to the network outside `fetch`.
|
|
192
242
|
|
|
243
|
+
## Versions and upgrades
|
|
244
|
+
|
|
245
|
+
The current version is **0.16.0** (2026-11-20). The changelog records 30 versions (from 0.1.0); GitHub carries **9 tags / releases** (0.13.0 → 0.16.0), and **0.13.4 was the first public release** — the earlier 0.1.0–0.12.0 exist only in `CHANGELOG.md` and the project notes, with no commit or tag behind them, so "an older version" means **0.13.0 or later**. Every release is described in [CHANGELOG.md](CHANGELOG.md).
|
|
246
|
+
|
|
247
|
+
### Why people still install older versions
|
|
248
|
+
|
|
249
|
+
- **The package was not on npm before 0.14.0.** Until then the only ways in were a GitHub URL or a local path — `plugin_manager install_bundle(target="dsh-jira-work-overview")` simply could not resolve. And an existing install never upgrades itself: whichever spec you installed stays pinned.
|
|
250
|
+
- **0.13.0 / 0.13.1 never loaded their browser half** (see below): the sidebar entry, the panel and the token configuration were all missing, while `plugin_manager` still showed `fiberPhase: "active"` — easy to read as "the plugin is broken". Upgrade to 0.13.2+.
|
|
251
|
+
- **0.15.0 and earlier report "Reading the token state failed: HTTP 404"** in the configure dialog, and the badge, the status dropdown and the watch form fail with it (one root cause). Fixed in 0.15.1; upgrading from 0.15.1 on **keeps your email / token**.
|
|
252
|
+
|
|
253
|
+
### Version history
|
|
254
|
+
|
|
255
|
+
| Version | Date | Kind | In one line |
|
|
256
|
+
| --- | --- | --- | --- |
|
|
257
|
+
| 0.1.0 | 2026-11-18 | first | `jira_my_work` / `jira_issue` tools, the `Config` card, token from the credential store |
|
|
258
|
+
| 0.2.0 | 2026-11-18 | feature | `/jira` slash command (no model message, no tokens), scope / issue key / raw JQL |
|
|
259
|
+
| 0.3.0 | 2026-11-18 | feature | the **client panel** in the left sidebar, fed by `ctx.remote.commands.execute('/jira --json')` |
|
|
260
|
+
| 0.4.0 | 2026-11-18 | feature | **sprint** grouping (collapsible), sprint field resolved via `schema.custom` |
|
|
261
|
+
| 0.5.0 | 2026-11-18 | feature | **live watch**: background polling, system notifications, unread badge, "what changed" banner |
|
|
262
|
+
| 0.6.0 | 2026-11-18 | feature | **status transitions** from the panel + the `jira_transition` tool |
|
|
263
|
+
| 0.7.0 | 2026-11-18 | feature | High / Highest row highlighting |
|
|
264
|
+
| 0.7.1–0.7.3 | 2026-11-18 | fix / trim | drop the unreliable "active sprint" line; abort the previous request on switch |
|
|
265
|
+
| 0.8.0 | 2026-11-18 | feature | **API token** editable in the plugin's own config page (masked, `/myself` check, rejected pairs never stored) |
|
|
266
|
+
| 0.8.1–0.8.6 | 2026-11-18 | feature | several config entry points, token modal, watch switch → **applies as you change it**, **project tabs** |
|
|
267
|
+
| 0.8.7–0.8.10 | 2026-11-18 | feature | editable login email, **Windows / Linux support**, UI language, configurable fetch size |
|
|
268
|
+
| 0.9.0 | 2026-11-18 | feature | **internationalization** (zh / en dictionaries following the DSH language) |
|
|
269
|
+
| 0.10.0 | 2026-11-18 | feature | accurate totals (`projectTotals`), editor picker; JQL conditions inserted before `ORDER BY` |
|
|
270
|
+
| 0.11.0 | 2026-11-18 | feature | single-select **status filter** (server-side `--status`), accurate total from `approximate-count` |
|
|
271
|
+
| 0.12.0 | 2026-11-18 | feature | **virtualized list** (`@tanstack/react-virtual`), `maxResults: 0` = unlimited |
|
|
272
|
+
| 0.13.0 | 2026-11-18 | release prep | package renamed `dsh-jira-work-overview`, MIT, neutral defaults only in `cordis.patch.yml` |
|
|
273
|
+
| 0.13.1 | 2026-11-18 | cleanup | removed three stale test suites |
|
|
274
|
+
| 0.13.2 | 2026-11-18 | **fix** | the browser half never loaded (bundle id ≠ package name) |
|
|
275
|
+
| 0.13.3 | 2026-11-18 | fix | group headers overlapped after "collapse all"; scrolling flashed the macOS screen |
|
|
276
|
+
| 0.13.4 | 2026-11-18 | **first public** | desensitized: no personal values left in the repo, the docs or the git history |
|
|
277
|
+
| 0.14.0 | 2026-11-19 | feature | highlight follows **Jira's own priority order**; **first npm release** |
|
|
278
|
+
| 0.15.0 | 2026-11-19 | feature | transitions update **in place**, your own changes no longer notify you, typed failure hints |
|
|
279
|
+
| 0.15.1 | 2026-11-19 | **fix** | the four `/api` routes were never registered in a real host (404) |
|
|
280
|
+
| 0.16.2 | 2026-11-23 | **fix** | the workspace context menu's **Link Jira project…** could vanish for a whole page (client startup race); covered by a new offline suite |
|
|
281
|
+
| 0.16.1 | 2026-11-22 | fix | Windows notifications and *Show in file manager*, the Linux editor picker, UNC patch paths; three-OS CI and the release preflight; a planning walkthrough in both READMEs |
|
|
282
|
+
| 0.16.0 | 2026-11-20 | feature | **site-wide search**, **group by epic**, the **计划** (plan) button on every row |
|
|
283
|
+
|
|
284
|
+
> 0.1.0–0.12.0 all happened on 2026-11-18; tags and GitHub Releases start at 0.13.0.
|
|
285
|
+
> To install an older version: `plugin_manager install_bundle(target="github:EagleSoap/dsh-jira-work-overview#v0.13.2")`, or pin the npm version with `target="dsh-jira-work-overview@0.14.0"` (the earliest version on npm is 0.14.0).
|
|
286
|
+
|
|
287
|
+
### Upgrading
|
|
288
|
+
|
|
289
|
+
There is no "check for updates" button — upgrading means reinstalling the same spec:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
plugin_manager install_bundle(target="dsh-jira-work-overview") # resolves the newest release when already installed
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
then **refresh the DSH page** (Cmd/Ctrl+R). Upgrading never touches your profile patch or the token in the credential store; since 0.13.0 `cordis.patch.yml` ships neutral defaults only, and your personal values (site / email / project key / board id) always live in your own profile.
|
|
296
|
+
|
|
297
|
+
## Fixed issues
|
|
298
|
+
|
|
299
|
+
Every user-visible defect, newest first (implementation detail is in the matching [CHANGELOG.md](CHANGELOG.md) entry).
|
|
300
|
+
|
|
301
|
+
| Version | Symptom | Cause / fix |
|
|
302
|
+
| --- | --- | --- |
|
|
303
|
+
| 0.16.2 | The workspace right-click menu lost **Link Jira project…** (so there was no way to bind a project), while the panel itself kept working | Browser-side plugins are created concurrently, and this one only waits for `slots` / `remote`; `contextMenus` waits for `locale` / `shortcuts` too, so a single `ctx.get('contextMenus')` in `apply()` could see it missing and skip the registration for the whole page. It now registers through `ctx.inject(['contextMenus'], …)` once the service appears; an older host without `ctx.inject` falls back to the direct path |
|
|
304
|
+
| 0.16.1 | On Windows, new assignments and status changes produced **no notification at all** | A Windows toast must be posted under a **registered** AUMID; an unregistered one makes `CreateToastNotifier()` throw `Element not found (0x80070490)`, which was swallowed. It now tries `DSH_NOTIFY_AUMID` → `DeepSeek Harness` → `com.deepseek.harness` → the built-in PowerShell AUMID in order; the script statements are joined with newlines (`{; try … }` is a PowerShell syntax error, so nothing ran) |
|
|
305
|
+
| 0.16.1 | On Windows, *Show in file manager* opened Explorer but still reported a failure | `explorer.exe /select,` exits with code 1 even on success. That branch now tolerates a non-zero exit; only a process that never starts counts as a failure |
|
|
306
|
+
| 0.16.1 | With the profile on a network share, the config file was treated as an unknown path | Absolute-path detection only accepted `/…` and `C:\…`. It now also accepts UNC paths (`\\server\share\…`) |
|
|
307
|
+
| 0.16.1 | On Linux the editor picker "did nothing" and launches from a desktop launcher failed | Only the command name was stored, and a desktop session has a minimal `PATH`. Detection now covers `PATH` plus `/usr/local/bin`, `/usr/bin`, `/snap/bin`, flatpak exports, `~/.local/bin` and friends (executables only), and launch always uses the absolute path |
|
|
308
|
+
| 0.16.1 | A fresh clone crashed the test suite: `ENOENT … .dsh_jira_env`; without site credentials the `transition` suite exited 1 | A missing env file is created empty (`mkdirSync` first when the directory is missing), and missing credentials now print `SKIP: …` and `exit 0` — suites skip, they do not fail |
|
|
309
|
+
| 0.16.0 | `×` fails with `归档计划对话失败:no workspaces service` / `这个 profile 没有提供工作区归档通道` | wrong facade: `ctx.get('workspaces')` is empty (the registry is `workspaceRegistry`) and the remote namespace is `workspace`, not `workspaces`. Now tries `remote.workspace.archiveSession` → the workspace registry itself → `connection.call('workspace/archiveSession')` |
|
|
310
|
+
| 0.16.0 | after deleting a plan session, 计划 reopens the archived one | the panel now fetches the binding with `force: true` (mapping only, no log scan) and the fresh-create path passes `skipToken: true` |
|
|
311
|
+
| 0.16.0 | 计划 throws `cannot get property "remote.session" without inject` | now uses the base's `sessions.create({ workspaceId })` + `sessions.using(id, …)` — the same path as the chat box |
|
|
312
|
+
| 0.16.0 | 计划 errors out when no plan-mode plugin is installed | policy resolved from settings → the panel's host config view → the profile row in the boot data, with a built-in fallback in the first message |
|
|
313
|
+
| 0.16.0 | the epic view only ever shows the "no epic" group | a site can expose both `gh-epic-label` (always empty) and `gh-epic-link` (carries the key); an array-order `find` picked the empty one. Now resolved by schema priority (link first) |
|
|
314
|
+
| 0.15.1 | "Reading the token state failed: HTTP 404", and the badge, status dropdown and watch form with it | the plugin read `ctx.get('connection')` synchronously in `apply()` while `client-connection`'s `apply` is async, so the same load batch got `undefined` — the four exact `/api` Fetch routes were **never registered**. Now `ctx.inject(['connection'], …)`; the offline stub mirrors real host timing |
|
|
315
|
+
| 0.15.0 | a transition re-fetched hundreds of rows; your own change notified you again | the row + counts are updated in place; an expectation (key → from / to / category, 24h TTL) written around the POST absorbs the matching poll diff |
|
|
316
|
+
| 0.15.0 | the panel pasted raw errors with no way forward | `--json` failures return `ok:false` + `error.code` (`no_credential` / `credential_unreadable` / `no_email` / `no_base_url` / `auth` / `network` / `http` / `not_json` / `unknown`); the panel shows a title plus **Configure** / **Retry** |
|
|
317
|
+
| 0.13.4 | the author's real project key and token fragments appeared in docs, screenshots and tests | replaced with the made-up `APP` / `ATAT…0000`; `projectKey` defaults to `''`; tests derive their own path; the **git history was rewritten** (old SHAs are void) |
|
|
318
|
+
| 0.13.3 | after "collapse all", a group header's title and date overlapped | `@tanstack/react-virtual`'s default `getItemKey` is `index => index`, so heights are cached by index; now keyed by identity (`g:<group id>` / `i:<issue key>`) and `estimateSize` estimates per kind (header 64 / row 32) |
|
|
319
|
+
| 0.13.3 | scrolling the list flashed the whole macOS screen | a full-window `backdrop-filter: blur(2px)` flashes on scroll repaint in Electron; the masks now dim without blurring |
|
|
320
|
+
| 0.13.2 | after installing, the sidebar entry, the panel and every token config page were **missing**, yet `plugin_manager` said `active` | `client.js` still registered the old `@local/…` bundle id, so the host's client boot graph could not match it; `test/dsh-jira-bundle-id.mjs` pins the three names together |
|
|
321
|
+
| 0.13.1 | three test suites had been red for a while | they predated the 0.7 panel redesign and are covered by `dsh-jira-visual.mjs` / `dsh-jira-credential.mjs`; deleted |
|
|
322
|
+
| 0.13.0 | a missing site only said "no base URL" | `err.noBaseUrl` now says where to set it |
|
|
323
|
+
| 0.12.0 | not all items were fetched / the page got slow | virtualization + `maxResults: 0` pages to the end; safety net 5000 items / 50 pages / one `timeoutMs` budget, partial results honestly carry `hasMore: true` |
|
|
324
|
+
| 0.11.0 | "N items" disagreed with what was on screen | the header now uses Jira's `approximate-count`; `--status` is applied server-side so the list and the count cannot disagree |
|
|
325
|
+
| 0.10.0 | adding a status condition produced invalid JQL and a silently empty `projectTotals` | conditions must be inserted **before** `ORDER BY` (appending after it is HTTP 400); now through `withJqlClause` |
|
|
326
|
+
| 0.9.0 | the UI language ignored the DSH language setting | resolved `DSH_JIRA_LANG` → per-call → config → host `locale.preference` → the panel's reported language → system env → ICU → `en` |
|
|
327
|
+
| 0.8.8 | editing the email had no effect | it read the startup snapshot; now read through `liveSetting()` per operation |
|
|
328
|
+
| 0.8.7 | a wrong email meant editing `cordis.patch.yml` | editable in the dialog, verified against `/rest/api/3/myself` as a pair with the token |
|
|
329
|
+
| 0.8.6 | the test predicate matched `jmw-rowmeta` as a row | tightened to an exact class match |
|
|
330
|
+
| 0.8.4–0.8.5 | the dialog was not centred / white on white in the dark theme / overlays survived closing the panel | restored the classes a CSS rewrite had dropped; button colours are hardcoded (`--dsw-alias-brand-primary` is near-white in the dark theme); `closeAll()` moved into the shared snapshot |
|
|
331
|
+
| 0.8.0–0.8.3 | the token was file-only; settings needed a restart | the token moved into the plugin config page; watch settings use `.volatile()` + `settings.mutate` and apply on `loader/volatile-update` |
|
|
332
|
+
| 0.7.3 | a fast project / status switch let a stale response win | the previous request is aborted and a sequence number discards stale responses |
|
|
333
|
+
| 0.7.1 | the tool output's "active sprint" did not match reality | the board's sprint state is not reliable; the line is gone |
|
|
334
|
+
| 0.1.0–0.6.0 | early gaps | see the matching `CHANGELOG.md` entries |
|
|
335
|
+
|
|
336
|
+
### Where to start
|
|
337
|
+
|
|
338
|
+
1. **No sidebar entry**, or `plugin_manager` says `active` while the UI is empty → upgrade to **0.13.2 or later** and refresh.
|
|
339
|
+
2. The configure dialog reports **HTTP 404** / the badge never updates → upgrade to **0.15.1 or later**.
|
|
340
|
+
3. The panel says there is no token / the token was rejected / it cannot read it → use **Configure** in the hint (or at the right of the panel title); you never have to edit the profile file.
|
|
341
|
+
4. A raw error from `/jira` in text mode is **on purpose** — the command surface should show the real reason; the panel uses the typed `--json` hints instead.
|
|
342
|
+
|
|
193
343
|
## Security and privacy
|
|
194
344
|
|
|
195
345
|
- The API token lives in the **DSH credential store**; the plugin only ever returns a masked form + its source, never the value. There is no place in the code where a full token is logged or rendered.
|
package/README.zh.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
在 DSH 里查看**指派给我的 Jira 工作项**以及它们的实时工作流状态,用于快速回答「我这个迭代还要做什么」「哪些已经开发完在等测试」。
|
|
4
4
|
|
|
5
|
+
[](https://github.com/EagleSoap/dsh-jira-work-overview/actions/workflows/test.yml) [](https://github.com/EagleSoap/dsh-jira-work-overview/actions/workflows/release-check.yml) 每次 push / PR 会在 Ubuntu、macOS、Windows 三个系统上跑整套离线测试;发版前还有内容预检(版本号 ⇄ CHANGELOG ⇄ tag 一致、无个人数据、tarball 文件清单)。GitHub Actions 对公开仓库免费。
|
|
6
|
+
|
|
5
7
|
<p align="center">
|
|
6
8
|
<img src="docs/images/panel.zh.png" width="1040" alt="DSH 里的 Jira 面板:按迭代分组的行、状态徽标、High/Highest 底色、项目 tab 与单选状态筛选">
|
|
7
9
|
</p>
|
|
@@ -95,6 +97,8 @@ all : assignee = currentUser() ORDER BY updated DESC
|
|
|
95
97
|
不会出现「慢请求晚到、把新列表盖回旧范围」的闪烁;等待期间旧列表留在原位并压暗到 55%(`.jmw-body.pending`),
|
|
96
98
|
新数据到达时原子替换。注意 `abort()` 只能中断「等结果」,Host 侧已经发出的 Jira 查询无法撤回。
|
|
97
99
|
|
|
100
|
+
### 计划会话:绑定工作区 → 点「计划」→ 敲定计划
|
|
101
|
+
|
|
98
102
|
**任务行末尾的「计划」按钮**:在**该项目绑定的工作区**里新建一条会话,先用 plan 模式做任务规划,
|
|
99
103
|
再由你在对话里敲定或修改。第一条消息只要求它「按点列出将要执行的修改任务」,不写解释、背景或分析;
|
|
100
104
|
计划由你确认后才执行。这张卡信息不全(没标题 / 没描述 / 没父任务与关联)时,它会**中断**并提示
|
|
@@ -105,16 +109,48 @@ all : assignee = currentUser() ORDER BY updated DESC
|
|
|
105
109
|
一条任务**只对应一条**计划对话:已经计划过的任务按钮标成 `on`,再点只打开原来那条,不会又开一条。
|
|
106
110
|
绑定存在插件的 volatile 配置 `planSessions` 里(一行一条 `ISSUE<TAB>sessionId`);即使换了浏览器、
|
|
107
111
|
清过配置,HOST 也会按计划对话首条消息里的 `JIRA_PLAN_SESSION:<KEY>` 标记翻会话日志把它找回来。
|
|
108
|
-
项目没绑工作区(工作区右键 →「关联 Jira
|
|
112
|
+
项目没绑工作区(工作区右键 →「关联 Jira 项目…」)时,按钮会直接提示原因,不会建出半成品会话;
|
|
113
|
+
第一次用请照下面「四步操作」走一遍。
|
|
109
114
|
profile 里装了 `deepseek-ai/dsh-plan-mode` 就用它的 `section` 当规划口径;没装也不影响使用——
|
|
110
115
|
首条消息会自带一份「只做规划、只列修改任务、敲定后再执行」的兜底口径。
|
|
111
116
|
|
|
112
|
-
<img src="docs/images/panel-plan.zh.png" width="1040" alt="任务行末尾的「☰ 计划」徽标:上面两行已计划、被框起来,其余行未计划">
|
|
113
|
-
|
|
114
117
|
**删掉一条计划对话**:已计划过的任务行在「计划」旁边多一个 `×`,点它就调基座的工作区归档
|
|
115
118
|
(依次尝试 `remote.workspace.archiveSession` / 工作区注册表 `workspaceRegistry.archiveSession` / `connection.call('workspace/archiveSession')`,与侧栏右键「归档」是同一处状态)把那条会话收进归档区,同时清掉绑定;
|
|
116
119
|
归档后这一行回到未计划状态,再点「计划」是新建一条。归档不删日志,误删可以从归档区恢复。
|
|
117
120
|
|
|
121
|
+
**四步操作(图解)**:入口是任务行末尾的「☰ 计划」,但它要求**这个项目已经挂在一个工作区**上——第一次用的人多半卡在这一步。
|
|
122
|
+
四步走完,之后每张卡都能一键开计划对话:
|
|
123
|
+
|
|
124
|
+
<img src="docs/images/plan-flow.zh.png" width="1040" alt="四步图解:① 左侧栏工作区右键选「关联 Jira 项目…」② 面板自动打开,点带虚线框的项目 tab 完成关联 ③ 任务行末尾点「☰ 计划」④ 回到面板按钮变蓝=已计划,行尾出现 ×">
|
|
125
|
+
|
|
126
|
+
1. **把工作区关联到项目**:左侧栏里对工作区那一行右键 →「关联 Jira 项目…」。一个工作区同时只挂一个项目,
|
|
127
|
+
换项目时原项目会让出;已经挂过项目的菜单里会多一条「取消关联 Jira 项目」。
|
|
128
|
+
2. **点项目 tab 完成关联**:菜单点完面板会自动打开,顶部提示「点上面的项目 tab,把它关联到当前工作区。」,
|
|
129
|
+
候选 tab 带**虚线框**,点哪个就把哪个挂上去;成功后面板顶部变成「当前工作区已关联 APP」。
|
|
130
|
+
候选 tab 要等面板至少拉到过一次 issue 才会出现——一个候选都没有时先点「刷新」。
|
|
131
|
+
3. **点任务行末尾的「☰ 计划」**:在该项目绑定的工作区里新建一条 plan 模式会话,
|
|
132
|
+
首条消息只要求它「按点列出将要执行的修改任务」,由你在对话里敲定;没装 `deepseek-ai/dsh-plan-mode`
|
|
133
|
+
也能用(首条消息自带兜底口径)。
|
|
134
|
+
4. **回到面板看状态**:这一行的按钮变蓝(`on`)=已计划;鼠标移到行上,按钮旁出现 `×`,
|
|
135
|
+
点它把会话归档并解绑(可从归档区恢复)。
|
|
136
|
+
|
|
137
|
+
对着真实面板,两种状态是这样(上面两行已计划、被框起来):
|
|
138
|
+
|
|
139
|
+
<img src="docs/images/panel-plan.zh.png" width="1040" alt="任务行末尾的「☰ 计划」徽标:上面两行已计划、被框起来,其余行未计划">
|
|
140
|
+
|
|
141
|
+
**点了没反应或报错时,按这张表对号**:
|
|
142
|
+
|
|
143
|
+
| 看到什么 | 原因 | 怎么办 |
|
|
144
|
+
| --- | --- | --- |
|
|
145
|
+
| `项目 APP 还没有绑定工作区:先在左侧侧栏里把项目挂到工作区。` | 这个项目还没挂到工作区(或映射丢了) | 按上面第 1–2 步重新关联 |
|
|
146
|
+
| 一个候选 tab 都没有 / `没有可关联的项目:面板里先拉到过 issue 才会出现项目候选。` | 面板还没成功拉到过数据 | 先点「刷新」,必要时先在配置里补站点 / 邮箱 / 令牌 |
|
|
147
|
+
| 工作区右键菜单里没有「关联 Jira 项目…」 | 客户端的插件模块没注册上(host 行显示 active 也可能如此) | 重新装插件包并刷新页面 |
|
|
148
|
+
| 按钮一直是灰的,点不动 | 上一次建会话还没返回 | 等它结束;失败会显示 `创建计划对话失败:…` |
|
|
149
|
+
| 打开的总是同一条对话 | 一个任务只对应一条计划对话(设计如此) | 想重开就先点 `×` 归档,再点「计划」 |
|
|
150
|
+
| 首条消息回「Jira 任务不明确,无法进行任务」 | 卡片信息不全:没标题 / 没描述 / 没父任务与关联 | 去 Jira 把这几项补全,再点一次「计划」 |
|
|
151
|
+
|
|
152
|
+
### 列表怎么分组、怎么高亮
|
|
153
|
+
|
|
118
154
|
**按 epic 分组**:标题栏的 **按迭代 / 按 epic** 开关把同一批数据换一条线分组——按 Epic Link 归组,横跨多个项目的组在组头标出「N 个项目」,
|
|
119
155
|
每行下面仍带自己的 `↳ epic APP-123`,等于不画图也能看到一个层级。
|
|
120
156
|
|
|
@@ -373,14 +409,32 @@ issue 摘要、状态名(`In Review`、`已完成`…)、父需求名、标
|
|
|
373
409
|
|
|
374
410
|
| 事项 | macOS | Windows | Linux |
|
|
375
411
|
|---|---|---|---|
|
|
376
|
-
| 通知 | `osascript`(系统自带) | `powershell.exe` + WinRT Toast(Win10+
|
|
412
|
+
| 通知 | `osascript`(系统自带) | `powershell.exe` + WinRT Toast(Win10+ 自带),AUMID 依次试 `DSH_NOTIFY_AUMID` 环境变量 → `DeepSeek Harness` → PowerShell 自己的 AUMID | `notify-send`(装了 libnotify 才有) |
|
|
377
413
|
| 通知不可用时 | 静默:面板里仍有角标与横幅 | 同左(组策略禁用 PowerShell、或没有交互式桌面会话时也会静默) | 同左 |
|
|
378
414
|
| 打开配置文件 | `open` / `open -R` / `choose application` 全支持 | `start` / `explorer /select,` / `OpenAs_RunDLL` 全支持 | `xdg-open`,「选择打开方式」不可用 |
|
|
379
|
-
| 编辑器直选 | 扫 `/Applications`、`~/Applications`、`/System/Applications` 找 `.app`,用 `open -a` 启动 | `where` + `%LOCALAPPDATA%` / `%ProgramFiles%` 已知路径;非 `.exe` 路径用 `cmd /c start` 兜底 | 在 `PATH`
|
|
415
|
+
| 编辑器直选 | 扫 `/Applications`、`~/Applications`、`/System/Applications` 找 `.app`,用 `open -a` 启动 | `where` + `%LOCALAPPDATA%` / `%ProgramFiles%` 已知路径;非 `.exe` 路径用 `cmd /c start` 兜底 | 在 `PATH` **加**常见安装位(`/usr/local/bin`、`/snap/bin`、flatpak exports、`~/.local/bin`、`~/.nix-profile/bin`、JetBrains Toolbox)里找可执行文件,用找到的**绝对路径**启动 |
|
|
380
416
|
| 自由输入应用名 / 路径 | `open -a <你填的> -- <path>` | 存在的 `.exe` 直接执行,否则 `cmd /c start "" <你填的> <path>` | `execFile(<你填的>, [path])` |
|
|
381
417
|
| 界面字体 | 走宿主变量,回退 `-apple-system` / `PingFang SC` | 回退 `Segoe UI` / `Microsoft YaHei`;等宽 `Consolas` / `Cascadia Mono` | 回退 `system-ui` |
|
|
382
418
|
| 项目 tab 横向滚动 | 隐藏滚动条 + 两侧 `‹ ›` 按钮 | 细滚动条(Windows 没有 overlay scrollbar,**不能藏**)+ 两侧 `‹ ›` 按钮 | 同 Windows |
|
|
419
|
+
| `PATH` 分隔符(编辑器探测) | `:` | `;`(盘符里的 `:` 不能当分隔符) | `:` |
|
|
420
|
+
|
|
421
|
+
编辑器候选表里给了 Linux 命令名的:VS Code(`code`)、Cursor(`cursor`)、Windsurf(`windsurf`)、
|
|
422
|
+
Zed(`zed`)、Sublime Text(`subl`)、gedit(`gedit`)——**找到可执行文件才画按钮**,找不到就不画,不猜。
|
|
423
|
+
桌面启动器起的 Electron 不继承登录 shell 的 `PATH`(典型只有 `/usr/bin:/bin`),所以探测会把上面那串常见安装位
|
|
424
|
+
也加进来;按钮里存的是探测到的绝对路径,点下去不依赖进程的 `PATH`。
|
|
425
|
+
|
|
426
|
+
**配置文件路径**接受三种「绝对」:`/…`、`C:\…` / `C:/…` 盘符、`\\server\share\…` 网络共享
|
|
427
|
+
(公司里 profile 目录被重定向到共享盘时就是这一种)。
|
|
428
|
+
|
|
429
|
+
**已知边界**:Windows 上用 `cmd /c start` 打开时,若路径里含 `&`、`%` 这类 `cmd` 元字符,
|
|
430
|
+
参数可能被 `cmd` 重新解释;路径来自 DSH 自己的 profile 位置,正常安装不会碰到。`explorer.exe /select,`
|
|
431
|
+
即便成功也常返回 1,插件只把「起不来」当失败,不会误报打不开。
|
|
383
432
|
|
|
433
|
+
**Linux 上的实现状态要说清楚**:平台的差异全部按 `process.platform` 分派实现,并有离线套件覆盖,
|
|
434
|
+
**但从来没有在 Linux 机器上真跑过**(开发一直在 macOS)。所以「Windows / Linux 支持」是**实现了、未经实机验证**,
|
|
435
|
+
不是「已在三平台验证通过」。Linux 上只有一处是设计上的缺口:「选择打开方式」没有桌面门户的等价物,
|
|
436
|
+
只提供 `xdg-open` / 编辑器直选 / 自由输入命令三种方式。「在文件管理器中显示」在 Linux 上退化成打开所在目录
|
|
437
|
+
(没有统一的「选中这个文件」动作)。
|
|
384
438
|
|
|
385
439
|
**在 Windows 上装这个插件的注意点**
|
|
386
440
|
|
|
@@ -395,7 +449,9 @@ issue 摘要、状态名(`In Review`、`已完成`…)、父需求名、标
|
|
|
395
449
|
4. 企业网要走代理时:Node 的 `fetch` **默认不读** `HTTPS_PROXY`;给 DSH 进程配 `NODE_USE_ENV_PROXY=1`
|
|
396
450
|
(Node 24 的 `--use-env-proxy`)或改用能直连 Jira 的网络。
|
|
397
451
|
5. 开发用的 `test/*.mjs` 已改成用 `os.tmpdir()`(可用 `DSH_JIRA_TMP` / `DSH_JIRA_ENV_FILE` 覆盖),
|
|
398
|
-
|
|
452
|
+
没有 env 文件时会自己开一个空的(凭据可用 `JIRA_API_TOKEN` / `JIRA_BASE_URL` / `JIRA_EMAIL` 环境变量给,
|
|
453
|
+
连不上站点就 `SKIP`),但它们依赖从 `app.asar` 里抽出来的宿主 peer 依赖副本,仍建议在 macOS/Linux 上跑测试。
|
|
454
|
+
出图脚本 `test/dsh-jira-shot.mjs` 现在会按平台找无头 Chrome(也可用 `DSH_JIRA_CHROME` 指定)。
|
|
399
455
|
|
|
400
456
|
## 配置
|
|
401
457
|
|
|
@@ -437,6 +493,107 @@ issue 摘要、状态名(`In Review`、`已完成`…)、父需求名、标
|
|
|
437
493
|
也在这里改,`baseUrl` / `email` / 超时在「Jira 连接 / 查询」两组里只读列出;要改只读项,
|
|
438
494
|
直接改 `cordis.patch.yml` 那一行(或让 agent 改)后重新加载插件。
|
|
439
495
|
|
|
496
|
+
## 版本与升级
|
|
497
|
+
|
|
498
|
+
当前版本 **0.16.0**(2026-11-20)。`CHANGELOG.md` 记了 30 个版本(0.1.0 起),GitHub 上有 **9 个 tag / Release**(0.13.0 → 0.16.0),**0.13.4 是第一个公开版本**——更早的 0.1.0–0.12.0 只存在于 `CHANGELOG.md` 与项目记录里,没有对应的提交与 tag,所以「以前的版本」= **0.13.0 及以后**。逐版的完整说明见 [CHANGELOG.md](CHANGELOG.md)。
|
|
499
|
+
|
|
500
|
+
### 为什么有人还在装以前的版本
|
|
501
|
+
|
|
502
|
+
- **0.14.0 之前 npm 上没有这个包**:那段时间只有 GitHub 直装 / 本地路径两种装法,`plugin_manager install_bundle(target="dsh-jira-work-overview")` 会直接找不到包。旧的安装命令不会自己升级——装的是哪个 spec,就一直停在那个版本。
|
|
503
|
+
- **0.13.0 / 0.13.1 的浏览器半边根本不加载**(见下表):左侧栏入口、面板、令牌配置全都不出现,而 `plugin_manager` 仍显示 `fiberPhase: "active"`,很容易被当成「这个插件坏了」。遇到这种情况先升级到 0.13.2+。
|
|
504
|
+
- **0.15.0 及更早版本的配置页会报「读取令牌状态失败:HTTP 404」**,而且角标、状态下拉、后台监视表单一起失效(同一个根因)。0.15.1 修好;从 0.15.1 起升级**不用重填邮箱 / 令牌**。
|
|
505
|
+
|
|
506
|
+
### 版本历史
|
|
507
|
+
|
|
508
|
+
| 版本 | 日期 | 类型 | 一句话 |
|
|
509
|
+
| --- | --- | --- | --- |
|
|
510
|
+
| 0.1.0 | 2026-11-18 | 初版 | `jira_my_work` / `jira_issue` 两个工具、`Config` 卡片、令牌走凭据库 |
|
|
511
|
+
| 0.2.0 | 2026-11-18 | 功能 | `/jira` 斜杠命令(不产生模型消息)、scope / issue key / 原始 JQL 参数 |
|
|
512
|
+
| 0.3.0 | 2026-11-18 | 功能 | 左侧栏 **客户端面板**;数据走 `ctx.remote.commands.execute('/jira --json')` |
|
|
513
|
+
| 0.4.0 | 2026-11-18 | 功能 | 按**迭代**分组(可折叠)、sprint 字段按 `schema.custom` 解析 |
|
|
514
|
+
| 0.5.0 | 2026-11-18 | 功能 | **实时监视**:后台轮询 + 系统通知 + 未读角标 + 「新变化」横幅 |
|
|
515
|
+
| 0.6.0 | 2026-11-18 | 功能 | 面板里**改状态**(工作流 transition)+ `jira_transition` 工具 |
|
|
516
|
+
| 0.7.0 | 2026-11-18 | 功能 | 高 / 最高优先级行底色 |
|
|
517
|
+
| 0.7.1–0.7.3 | 2026-11-18 | 修复 / 精简 | 去掉不可信的「活跃迭代」行;切换时中止上一个请求 |
|
|
518
|
+
| 0.8.0 | 2026-11-18 | 功能 | **API 令牌**在插件自己的配置页里编辑(打码、`/myself` 校验、坏令牌不写入) |
|
|
519
|
+
| 0.8.1–0.8.6 | 2026-11-18 | 功能 | 多个配置入口、令牌弹窗、监视开关 → **改了就生效**、**项目 tab** |
|
|
520
|
+
| 0.8.7–0.8.10 | 2026-11-18 | 功能 | 登录邮箱可编辑、**Windows / Linux 支持**、界面语言、可配置拉取条数 |
|
|
521
|
+
| 0.9.0 | 2026-11-18 | 功能 | **国际化**(中 / 英词典、按 DSH 语言自动切换) |
|
|
522
|
+
| 0.10.0 | 2026-11-18 | 功能 | 准确总数(`projectTotals`)、编辑器直选;修复 JQL 条件插到 `ORDER BY` 之后 |
|
|
523
|
+
| 0.11.0 | 2026-11-18 | 功能 | **状态筛选**(单选、服务端 `--status`)、按 `approximate-count` 的准确总数 |
|
|
524
|
+
| 0.12.0 | 2026-11-18 | 功能 | **虚拟列表**(`@tanstack/react-virtual`)、`maxResults: 0` = 不限制 |
|
|
525
|
+
| 0.13.0 | 2026-11-18 | 发布准备 | 包名改成 `dsh-jira-work-overview`、MIT、`cordis.patch.yml` 只留中性默认值 |
|
|
526
|
+
| 0.13.1 | 2026-11-18 | 清理 | 删掉三个过时的测试套件 |
|
|
527
|
+
| 0.13.2 | 2026-11-18 | **修复** | 浏览器半边不加载:bundle id 与包名不一致 |
|
|
528
|
+
| 0.13.3 | 2026-11-18 | 修复 | 折叠全部后组头错位;滚动时 macOS 整屏闪 |
|
|
529
|
+
| 0.13.4 | 2026-11-18 | **首个公开版** | 去标识化:仓库、文档与 git 历史里不再有作者的个人值 |
|
|
530
|
+
| 0.14.0 | 2026-11-19 | 功能 | 高亮挂到 **Jira 自己的优先级名次**;**首次发布到 npm** |
|
|
531
|
+
| 0.15.0 | 2026-11-19 | 功能 | 改状态**不再全量重拉**、自己改的状态不再通知自己、失败提示按类型 |
|
|
532
|
+
| 0.15.1 | 2026-11-19 | **修复** | 四条 `/api` 路由在真宿主里没注册(404) |
|
|
533
|
+
| 0.16.2 | 2026-11-23 | **修复** | 左栏工作区右键菜单的「关联 Jira 项目…」会整页消失(客户端启动竞态);新增离线套件守住 |
|
|
534
|
+
| 0.16.1 | 2026-11-22 | 修复 | Windows 通知与「在文件管理器中显示」、Linux 编辑器直选、UNC 路径;三平台 CI 与发版预检;README 补计划会话图解 |
|
|
535
|
+
| 0.16.0 | 2026-11-20 | 功能 | **整站搜索**、**按 epic 分组**、任务行**「计划」**(plan 模式会话) |
|
|
536
|
+
|
|
537
|
+
> 0.1.0–0.12.0 这 15 个版本都发生在 2026-11-18 同一天;0.13.0 起才有 tag 与 Release。
|
|
538
|
+
> 想装某个旧版本:`plugin_manager install_bundle(target="github:EagleSoap/dsh-jira-work-overview#v0.13.2")`,或从 npm 钉版本 `target="dsh-jira-work-overview@0.14.0"`(npm 上最早的版本是 0.14.0)。
|
|
539
|
+
|
|
540
|
+
### 升级
|
|
541
|
+
|
|
542
|
+
面板里没有「检查更新」按钮,升级就是重装一次同一个 spec:
|
|
543
|
+
|
|
544
|
+
```bash
|
|
545
|
+
plugin_manager install_bundle(target="dsh-jira-work-overview") # 已装过则拉到最新 tag / 版本
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
然后**刷新 DSH 页面**(Cmd/Ctrl+R)。升级不会动你的 profile patch 与凭据库里的令牌;0.13.0 以后
|
|
549
|
+
`cordis.patch.yml` 只带中性默认值,个人值(站点 / 邮箱 / 项目键 / 看板 id)一直在你自己的 profile 里。
|
|
550
|
+
|
|
551
|
+
## 修复记录
|
|
552
|
+
|
|
553
|
+
按版本倒序列出**用户能感知到的**问题(实现细节见 [CHANGELOG.md](CHANGELOG.md) 对应条目)。
|
|
554
|
+
|
|
555
|
+
| 版本 | 现象 | 原因 / 处理 |
|
|
556
|
+
| --- | --- | --- |
|
|
557
|
+
| 0.16.2 | 左栏工作区的右键菜单里「关联 Jira 项目…」整页消失,没法给工作区绑项目;面板本身正常 | 浏览器侧插件是**并发创建**的,本插件只等 `slots` / `remote`,而 `contextMenus` 还要等 `locale` / `shortcuts`:`apply()` 里只 `ctx.get('contextMenus')` 拿一次,没拿到就跳过注册,这一页就再也没有这条菜单。现在改用 `ctx.inject(['contextMenus'], …)` 等服务出现再注册;老基座没有 `ctx.inject` 时退回直接注册 |
|
|
558
|
+
| 0.16.1 | Windows 上新任务 / 状态变化**一条通知都没有**(macOS 正常) | Windows 的 Toast 必须挂在一个**已注册的** AUMID 上,未注册时 `CreateToastNotifier()` 抛 `Element not found (0x80070490)`,而它被静默吞掉了。现在按 `DSH_NOTIFY_AUMID` → `DeepSeek Harness` → `com.deepseek.harness` → 系统自带的 PowerShell AUMID 依次试;脚本里的语句改用换行拼接(`{; try … }` 是 PowerShell 语法错误,整段都不执行) |
|
|
559
|
+
| 0.16.1 | Windows 上「在文件管理器中显示」明明已打开,却报 `打开失败` | `explorer.exe /select,` 成功时也返回退出码 1,被当成了失败。现在这个分支允许非零退出码,只有进程根本起不来才算失败 |
|
|
560
|
+
| 0.16.1 | profile 放在网络共享盘上时,配置文件被当成「路径未知」,打开 / 显示全都用不了 | 绝对路径判定只认 `/…` 与 `C:\…`。现在也认 UNC(`\\server\share\…`) |
|
|
561
|
+
| 0.16.1 | Linux 上编辑器直选「点了没反应」,从桌面启动器打开也失败 | 只存了命令名,而桌面会话的 `PATH` 是最小集。现在探测 `PATH` + `/usr/local/bin`、`/usr/bin`、`/snap/bin`、flatpak、`~/.local/bin` 等常见位置(只认可执行),启动时一律用绝对路径 |
|
|
562
|
+
| 0.16.1 | clone 下来在干净机器上跑测试直接崩:`ENOENT … .dsh_jira_env`;没有站点凭据时 `transition` 套件抛错退出 1 | 缺 env 文件就建一个空的(目录不存在先 `mkdirSync`);没有凭据改为 `SKIP: …` + `exit 0`(测试约定是跳过,不是失败) |
|
|
563
|
+
| 0.16.0 | 点「×」报 `归档计划对话失败:no workspaces service` / `这个 profile 没有提供工作区归档通道` | 取错了门面:`ctx.get('workspaces')` 拿不到东西(注册表叫 `workspaceRegistry`),遥控命名空间是 `workspace` 不是 `workspaces`。改成依次试 `remote.workspace.archiveSession` → 工作区注册表本体 → `connection.call('workspace/archiveSession')` |
|
|
564
|
+
| 0.16.0 | 删掉计划对话后再点「计划」,打开的是已归档的那条 | 面板取绑定带 `force: true`(只回映射、不翻会话日志),host 现建路径带 `skipToken: true` |
|
|
565
|
+
| 0.16.0 | 点「计划」报 `cannot get property "remote.session" without inject` | 改成用基座常驻的 `sessions.create({ workspaceId })` + `sessions.using(id, …)`,与聊天框同一条路 |
|
|
566
|
+
| 0.16.0 | 没装 plan 模式插件时「计划」直接报错 | 口径按 settings → 面板宿主配置视图 → 靴子数据里的 profile 行依次取,都没有时首条消息自带兜底口径 |
|
|
567
|
+
| 0.16.0 | epic 视图永远只有「无 epic」一组 | 站点同时有 `gh-epic-label`(恒空)和 `gh-epic-link`(带键串),按数组顺序 `find` 命中了空的那个;改成按 schema 优先级找(link 优先) |
|
|
568
|
+
| 0.15.1 | 配置页报「读取令牌状态失败:HTTP 404」;角标、状态下拉、监视表单一起失效 | 插件在 `apply()` 里同步 `ctx.get('connection')`,而 `client-connection` 的 `apply` 是异步的,同一个加载批里只拿到 `undefined` —— 四条 `/api` 精确 Fetch 路由**从未注册**。改成 `ctx.inject(['connection'], …)` 等服务就绪再注册;离线桩改成真宿主时序 |
|
|
569
|
+
| 0.15.0 | 改完状态整个列表重拉几百条;自己改的状态又弹一次通知 | 就地更新那一行并本地重算计数;写入前后记一份期望(key → from / to / 分类,TTL 24h),轮询 diff 命中同一对时静默吸收 |
|
|
570
|
+
| 0.15.0 | 面板把原始报错糊在界面上,不知道该怎么办 | `--json` 失败回 `ok:false` + `error.code`(`no_credential` / `credential_unreadable` / `no_email` / `no_base_url` / `auth` / `network` / `http` / `not_json` / `unknown`),面板按 code 给标题 + 「去配置」/「重试」 |
|
|
571
|
+
| 0.13.4 | 文档 / 截图 / 测试里能看到作者真实项目键与令牌片段 | 统一成虚构的 `APP` / `ATAT…0000`;`projectKey` 默认值改成 `''`;测试不再硬编码本机路径;**git 历史整体重写**(旧 SHA 全部作废) |
|
|
572
|
+
| 0.13.3 | 「折叠全部」后组头的标题与日期叠在一起 | `@tanstack/react-virtual` 的默认 `getItemKey` 是 `index => index`,行高按下标缓存;改成按条目身份(`g:<组 id>` / `i:<issue key>`),`estimateSize` 也按条目类型估(组头 64 / 行 32) |
|
|
573
|
+
| 0.13.3 | 滚动列表时 macOS 整屏闪一下 | 整窗大小的 `backdrop-filter: blur(2px)` 在 Electron 里滚动重绘会闪;遮罩改成只压暗不模糊 |
|
|
574
|
+
| 0.13.2 | 装好插件后左侧栏入口、面板、令牌配置**全都不出现**,`plugin_manager` 却显示 `active` | `client.js` 注册的 bundle id 还是旧的 `@local/…`,与包名不一致,宿主组装客户端启动图时对不上;`test/dsh-jira-bundle-id.mjs` 钉死三处一致 |
|
|
575
|
+
| 0.13.1 | 三个测试套件一直是红的 | 它们早于 0.7 的面板改版,已由 `dsh-jira-visual.mjs` / `dsh-jira-credential.mjs` 覆盖,直接删掉 |
|
|
576
|
+
| 0.13.0 | 没填站点时只说「no base URL」 | 新增 `err.noBaseUrl`,直接告诉你去哪儿填 |
|
|
577
|
+
| 0.12.0 | 条数拉不全 / 页面卡 | 虚拟列表 + `maxResults: 0` 翻到底;安全网 5000 条 / 50 页 / `timeoutMs`,截断时 `hasMore: true` 如实标注 |
|
|
578
|
+
| 0.11.0 | 「共 N 项」与实际条数对不上 | 改用 Jira 的 `approximate-count` 接口;`--status` 走服务端,列表与计数不可能不一致 |
|
|
579
|
+
| 0.10.0 | 加了状态条件后 JQL 非法、`projectTotals` 静默为空 | 条件必须插在 `ORDER BY` **之前**(拼在后面 Jira 回 HTTP 400),统一走 `withJqlClause` |
|
|
580
|
+
| 0.9.0 | 界面语言与 DSH 语言设置不一致 | 语言按 `DSH_JIRA_LANG` → 调用参数 → 配置 → 宿主 `locale.preference` → 面板上报 → 系统环境 → ICU → `en` 依次解析 |
|
|
581
|
+
| 0.8.8 | 改了邮箱不生效 | 读的是启动快照;改成每次走 `liveSetting()` |
|
|
582
|
+
| 0.8.7 | 邮箱写错要改 `cordis.patch.yml` | 配置弹窗里可直接改,并与令牌成对 `/rest/api/3/myself` 校验 |
|
|
583
|
+
| 0.8.6 | 测试把 `jmw-rowmeta` 也当成行 | 谓词改成 `className.startsWith('jmw-row ')` 这类精确匹配 |
|
|
584
|
+
| 0.8.4–0.8.5 | 配置弹窗不居中 / 深色主题下白字白底 / 关面板后浮层残留 | 补齐被 CSS 重写删掉的类;按钮颜色写死(`--dsw-alias-brand-primary` 在深色主题下接近白色);`closeAll()` 收进共享快照 |
|
|
585
|
+
| 0.8.0–0.8.3 | 令牌只能改文件;改完要重启 | 令牌进插件配置页;监视设置走 `.volatile()` + `settings.mutate`,`loader/volatile-update` 立刻生效 |
|
|
586
|
+
| 0.7.3 | 快速切换项目 / 状态时旧结果盖住新结果 | 上一个请求 `AbortSignal` 中止 + 序号丢弃过期响应 |
|
|
587
|
+
| 0.7.1 | 工具输出里「活跃迭代」跟实际对不上 | 看板的迭代状态不可信,去掉这一行 |
|
|
588
|
+
| 0.1.0–0.6.0 | 早期功能缺失 | 见 `CHANGELOG.md` 对应条目 |
|
|
589
|
+
|
|
590
|
+
### 排查顺序
|
|
591
|
+
|
|
592
|
+
1. 左侧栏**没有入口**、或 `plugin_manager` 显示 `active` 但界面是空的 → 先升级到 **0.13.2 以上**并刷新页面。
|
|
593
|
+
2. 配置页报 **HTTP 404**、角标不更新 → 升到 **0.15.1 以上**。
|
|
594
|
+
3. 面板提示「没有令牌 / 令牌被拒 / 读不出令牌」→ 点提示里的「去配置」(或面板标题右侧「配置」)重填;**不用改 profile 文件**。
|
|
595
|
+
4. `/jira` 文本模式返回 `kind:'error'` 的原始报错是**故意的**——命令面本来就该看到真实原因;面板专用的是 `--json` 的分类型提示。
|
|
596
|
+
|
|
440
597
|
## 测试(`test/`)
|
|
441
598
|
|
|
442
599
|
改完代码先跑离线端到端脚本,再装机验证。**这些脚本都用假 DOM / 迷你 React 驱动真实的 `client.js` 与真实的 host `index.js`**,所以不需要打开浏览器:
|
package/client.js
CHANGED
|
@@ -3740,15 +3740,21 @@ window.__ModuleLoader__.load({
|
|
|
3740
3740
|
}, CredentialSettings));
|
|
3741
3741
|
|
|
3742
3742
|
// 左栏「工作区」行的右键菜单:关联 / 取消关联 Jira 项目。
|
|
3743
|
-
// 结构化菜单是抽象贡献(不是 React
|
|
3744
|
-
|
|
3745
|
-
|
|
3743
|
+
// 结构化菜单是抽象贡献(不是 React 组件),只能注册在 dsh-client-ui-context-menu 的
|
|
3744
|
+
// `contextMenus` 服务上。**这个服务不保证在本插件 apply 时已经就绪**:浏览器侧的插件入口
|
|
3745
|
+
// 是并发创建的,本插件只 inject 了 slots / remote,而 contextMenus 自己还要等 locale、
|
|
3746
|
+
// shortcuts(0.16.1 及以前这里直接 ctx.get 一次,拿到 undefined 就整页都没有这条菜单 ——
|
|
3747
|
+
// 「关联 Jira 项目…」随机消失就是这么来的)。现在用 ctx.inject 等它出现再注册;
|
|
3748
|
+
// 老基座没有 ctx.inject 时退回直接注册。
|
|
3749
|
+
function registerWorkspaceProjectMenu(host) {
|
|
3750
|
+
const contextMenus = typeof host.get === 'function' ? host.get('contextMenus') : undefined;
|
|
3751
|
+
if (!contextMenus || typeof contextMenus.register !== 'function') return;
|
|
3746
3752
|
try {
|
|
3747
|
-
|
|
3753
|
+
host.effect?.(() => contextMenus.register({
|
|
3748
3754
|
id: `${PLUGIN_ID}.workspace-project`,
|
|
3749
3755
|
target: 'workspace',
|
|
3750
3756
|
order: 500,
|
|
3751
|
-
observe: () => [
|
|
3757
|
+
observe: () => [host.get('workspaces')?.list].filter(Boolean),
|
|
3752
3758
|
resolve: (target) => {
|
|
3753
3759
|
const entries = [projectMenuEntry(target)];
|
|
3754
3760
|
const unlink = projectUnlinkEntry(target);
|
|
@@ -3760,6 +3766,21 @@ window.__ModuleLoader__.load({
|
|
|
3760
3766
|
console.warn(`${NS}: workspace menu unavailable`, error);
|
|
3761
3767
|
}
|
|
3762
3768
|
}
|
|
3769
|
+
if (typeof ctx.inject === 'function') {
|
|
3770
|
+
ctx.inject(['contextMenus'], (child) => {
|
|
3771
|
+
try {
|
|
3772
|
+
registerWorkspaceProjectMenu(child);
|
|
3773
|
+
} catch (error) {
|
|
3774
|
+
console.warn(`${NS}: workspace menu unavailable`, error);
|
|
3775
|
+
}
|
|
3776
|
+
});
|
|
3777
|
+
} else {
|
|
3778
|
+
try {
|
|
3779
|
+
registerWorkspaceProjectMenu(ctx);
|
|
3780
|
+
} catch (error) {
|
|
3781
|
+
console.warn(`${NS}: workspace menu unavailable`, error);
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3763
3784
|
|
|
3764
3785
|
// 侧栏会话行:角标(工作区关联的项目)与 hover 卡片一行。两个都是可选的洞,缺了不影响面板。
|
|
3765
3786
|
ctx.slots.inject('sidebar.session.row.trailing', () => ctx.slots.register({
|
|
Binary file
|
|
Binary file
|