@cnzgray/dsh-mattpocock-workflow 0.7.0 → 0.8.0
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.md +4 -2
- package/README.zh-CN.md +4 -1
- package/lib/client.js +2986 -1963
- package/lib/index.js +194 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ It adds a "MattWorkflow" tab to the right sidebar with four views:
|
|
|
12
12
|
The plugin also registers `/mattwf-close`: after changes are merged, when the user explicitly invokes it with the ticket reference, the agent reads the ticket's requirements, the subsequent changes and comments, and judges whether the ticket can be closed; if it can, it first writes the rationale as a comment and then closes the ticket (GitHub / GitLab / Gitea use their respective CLI, local Markdown changes `Status:` to `resolved`); if it cannot close or cannot judge, it only reports what is missing and does not touch the ticket or its status labels.
|
|
13
13
|
"+ to-spec feature" injects `/to-spec` and a "requirement description:" slot without going through intake first: when the requirement is already clear, the skill directly creates a feature ticket with a spec and `ready-for-agent`, which is then split and implemented as needed; ticket creation and labeling both live in the skill body, and the panel does not perform them on the skill's behalf.
|
|
14
14
|
Clicking a ticket row opens the details; the skill badges on list rows and in the detail header share the same judgment, and only a click fills in the corresponding skill's prompt; tickets that cannot be worked show a reason badge and offer no injection entry.
|
|
15
|
+
An open ticket's row and detail header also offer the manual skills (`/research`, `/codebase-design`, `/prototype`) through the same "Manual skills" menu; the panel never recommends them on its own. In the detail header the menu sits just before the close action. Each item names the situation it fits and splits into two actions: the left fills the gesture plus reference (such as `/research #25`) into the current session, the right starts a new session with the same prompt.
|
|
15
16
|
Rows with a body excerpt show a one-line plain-text excerpt under the title (at most 240 code points); rows without one take no space.
|
|
16
17
|
The detail header has a manual refresh button: it re-reads this ticket and syncs the list snapshot; on failure it keeps the old content and explains the reason below the header instead of turning the details into an error page.
|
|
17
18
|
Ticket prompts contain only the skill gesture and the ticket reference (such as `/implement #40`); fetching, implementing, verifying and reviewing are all written in the skill body, and the panel does not restate them.
|
|
@@ -19,7 +20,8 @@ It adds a "MattWorkflow" tab to the right sidebar with four views:
|
|
|
19
20
|
When the host does not provide new-session capability, only the small arrow is disabled, and the reason is given in the hover text and in the capability diagnostics.
|
|
20
21
|
By default only unclosed tickets are shown, sorted "ready → blocked → other open → closed"; filters, person toggles, sort key, layout and direction are remembered per workspace and restored when the panel is reopened or that workspace is switched back to.
|
|
21
22
|
Preferences live only in browser local storage and are not cleaned up when a workspace is deleted; at most 50 workspace entries are kept; when storage is unavailable the panel silently falls back to the default view.
|
|
22
|
-
|
|
23
|
+
At the right end of the list header, to the left of the layout toggle and in the same segmented group, there is an "inline display" icon (sliders); the popover it opens has four toggles: assignee, author, created time and updated time; author and created time are on by default (matching the inline information before the toggles existed), updated time and assignee are off by default, and all four toggles are remembered per workspace.
|
|
24
|
+
When author and assignee are both shown, each group gets a visible "Author" / "Assignees" label so even identical names stay distinguishable; when only one group is shown, the label is omitted to keep the row compact.
|
|
23
25
|
Created time no longer depends on the author: rows without an author (local Markdown) also show "Created X", and the time is still shown when the author toggle is off; a bare relative created time is kept only when author and created time share a line.
|
|
24
26
|
With "updated time" on, the time area appends "Updated Y"; when it sits next to the created time, both segments carry their prefixes.
|
|
25
27
|
With "assignee" on, assignee names with avatars are shown after the labels (at most two, the rest folded into `+N` with the full list on hover); a missing avatar URL falls back to a colored initial; rows without assignees render no placeholder; the local Markdown backend does not offer the assignee toggle.
|
|
@@ -29,7 +31,7 @@ It adds a "MattWorkflow" tab to the right sidebar with four views:
|
|
|
29
31
|
|
|
30
32
|
- **Overview**: gives on one screen the project identity (repository, backend, instance host, snapshot time, sample size), a pressure overview (three tier cards for size / blockage / staleness), key numbers (open backlog, ready capacity, awaiting triage, stale tickets, opened and closed in the last 30 days, net inflow), status and classification composition bars, and at most 5 tickets that most deserve attention first. Each of the three dimensions is tiered on its own, and the overall tier is the heaviest dimension; every conclusion carries the specific fact that triggered it. Clicking a ticket in the attention list switches to the list and locates it. Metrics the backend cannot provide show "unavailable" and state what is missing, rather than approximating with 0 or the updated time; when the sample is truncated, closure-type metrics are marked "may be underestimated" and the net inflow derived from closure counts is marked "may be overestimated";
|
|
31
33
|
|
|
32
|
-
- **Flow help**: opened by the tips icon at the top of the panel, with tabs by scenario, using vertically laid out SVG flowcharts to explain the intake and triage state machine, the feature chain, the direct-to-spec path when the requirement is already clear, the bug chain, the trade-off between `/grill-with-docs` and `/wayfinder`, and the review, PR and close-ticket steps after implementation (`/mattwf-close`). The diagrams are not clickable, the legend distinguishes the plugin's bundled `mattwf-` commands from matt skills, and nodes where the agent stops and waits for the user to send the next command are marked; entering from the list or the environment check returns to the original view and filters;
|
|
34
|
+
- **Flow help**: opened by the tips icon at the top of the panel, with tabs by scenario, using vertically laid out SVG flowcharts to explain the intake and triage state machine, the feature chain, the direct-to-spec path when the requirement is already clear, the bug chain, the trade-off between `/grill-with-docs` and `/wayfinder`, and the review, PR and close-ticket steps after implementation (`/mattwf-close`). The diagrams are not clickable, the legend distinguishes the plugin's bundled `mattwf-` commands from matt skills, and nodes where the agent stops and waits for the user to send the next command are marked; entering from the list or the environment check returns to the original view and filters; below the diagrams, a manual-skills catalog lists the gestures the panel never recommends on its own (`/research`, `/codebase-design`, `/prototype`) and the situation each one fits.
|
|
33
35
|
|
|
34
36
|
- **Environment check**: on opening, automatically checks item by item the home directory, backend selection, whether the backend CLI is installed and logged in, whether the repository is reachable, whether the workspace is initialized, the local ticket directory (only for the local Markdown backend, or when the backend is undetermined), and whether the skills used by the panel are installed. Each failed item gives a remedy matching its cause: workspace, skill and local-ticket items get session actions (fill the prompt only, do not send), CLI, login and remote items get copyable commands and documentation links, and timeouts and probe failures get "re-check". When a prerequisite fails, later items are marked "skipped" and an entry to jump to the root-cause item is offered. The collapsed "capability diagnostics" at the bottom lists whether the DSH host services and UI extension points used by the panel (including new-session capability) are available, and missing items state their impact and how to fix them. The plugin's bundled `mattwf-` commands do not count as "skills the user needs to install". When two or more skills are missing, a "skill bundle install" card appears above the check list, installing all missing skills at once with a single prompt; skills are installed to the user's home directory by default (`~/.agents/skills`, and `~/.dsh/skills` works too) and apply to all workspaces.
|
|
35
37
|
|
package/README.zh-CN.md
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
“+ to-spec 需求”注入 `/to-spec` 和一个“需求描述:”槽位,不先入池:需求已经清楚时由技能直接建一张带规格、
|
|
20
20
|
带 `ready-for-agent` 的需求票,之后按需拆票、实现;建票与打标签都在技能正文里,面板不代为执行。
|
|
21
21
|
点击工单行打开详情;列表行与详情头部的技能徽标共用同一套判定,点击才填入对应技能的提示词;不可开工的票显示原因徽标,不提供注入入口。
|
|
22
|
+
开放工单的列表行与详情头部都通过同一个「手动技能」菜单提供手动技能(`/research`、`/codebase-design`、`/prototype`):面板不自动推荐,详情里的入口排在关闭按钮之前;每项写明适用场景,并分左右两段:左侧把「手势 + 引用」(如 `/research #25`)填进当前会话,右侧用同一段提示词开新会话。
|
|
22
23
|
有正文摘要的行在标题下显示一行纯文本摘要(最多 240 个码点),没有摘要时不占位。
|
|
23
24
|
详情头部有手动刷新按钮:重读这张票并同步列表快照,失败时保留旧内容、在头部下方说明原因,不把详情切成错误页。
|
|
24
25
|
工单提示词只有技能手势和工单引用(如 `/implement #40`),取票、实现、验证与复审都写在技能正文里,面板不复述。
|
|
@@ -28,8 +29,9 @@
|
|
|
28
29
|
默认只看未关闭工单,并按“可接 → 阻塞 → 其他开放 → 已关闭”排序;筛选、人员开关、排序键、布局与方向按工作区记住,
|
|
29
30
|
重新打开面板或切回该工作区时恢复。偏好只存在浏览器本地存储里,不随工作区删除而清理,最多保留 50 个工作区条目;
|
|
30
31
|
存储不可用时静默退回默认视图;
|
|
31
|
-
|
|
32
|
+
列表头右侧布局切换的左边有一个「行内显示」图标(滑杆),两个入口同在一个分段组里;点开浮层后是四个开关:分配人、创建人、创建时间与更新时间;
|
|
32
33
|
创建人与创建时间默认打开(与加入开关前的行内信息一致),更新时间与分配人默认关闭,四个开关都按工作区记住。
|
|
34
|
+
创建人与分配人同时显示时,两组各自带「创建人」「分配人」角色标签,同名用户也能区分;只剩一组时不加标签,保持行内紧凑。
|
|
33
35
|
创建时间不再依附创建人:没有创建人的行(本地 Markdown)也显示「创建 X」,关掉创建人时时间照常显示;
|
|
34
36
|
只在创建人与创建时间同排时保留裸露的相对创建时间。
|
|
35
37
|
打开「更新时间」后,时间区追加「更新 Y」,与创建时间并排时两段都带前缀;
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
- **流程帮助**:面板顶部的 tips 图标打开,按场景分页签,用竖向排版的 SVG 流程图讲清入池与 triage 状态机、需求链、
|
|
50
52
|
需求已明确时的直达规格路径、缺陷链、`/grill-with-docs` 与 `/wayfinder` 的取舍,以及实现之后的评审、PR 与关票(`/mattwf-close`)。图不可点击,图例区分插件自带的 `mattwf-` 命令与 matt 技能,
|
|
51
53
|
并标出 agent 停下等用户发下一条命令的节点;从列表或环境检查进入,返回时回到原来的视图与筛选;
|
|
54
|
+
图下方的手动技能目录列出面板不自动推荐的技能(`/research`、`/codebase-design`、`/prototype`)与各自适用场景。
|
|
52
55
|
- **环境检查**:打开时自动逐项检查主目录、后端选择、后端 CLI 是否安装并登录、仓库是否可达、工作区是否初始化、
|
|
53
56
|
本地工单目录(仅本地 Markdown 后端,或后端未判定时)、面板用到的技能是否安装。每个失败项给出与原因对应的解决:工作区、技能与本地工单类给会话动作(只填提示词、不发送),
|
|
54
57
|
CLI、登录与远端类给可复制的命令和文档链接,超时与探测失败给“重新检查”。前置项没通过时后续项标为“跳过”,
|