dsh-project-tasks 0.1.2 → 0.1.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/README.md +54 -18
- package/README.zh.md +41 -14
- package/docs/screenshot-dark.png +0 -0
- package/docs/screenshot-light.png +0 -0
- package/lib/client.js +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -3,23 +3,44 @@
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
5
|
A [DSH (DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness) bundle
|
|
6
|
-
plugin that adds a **Task board**: a
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
plugin that adds a **Task board**: a multi-column kanban of tasks that **belong to a
|
|
7
|
+
project (a workspace directory)**. You create and manage tasks on the board; an
|
|
8
|
+
**agent pulls a project's pending tasks, executes them, and moves them to review**
|
|
9
|
+
through `task_board_*` tools — a host-authoritative task ledger the model and the
|
|
10
|
+
board share.
|
|
11
11
|
|
|
12
12
|
- **Project-scoped**: every task is owned by a project path; the agent works "the
|
|
13
13
|
tasks of the project it is running in" by default.
|
|
14
|
-
- **
|
|
14
|
+
- **Full lifecycle**: `draft → ready → in_progress → review → done`, plus a `blocked`
|
|
15
|
+
side state. A human accepts a review (→ done) or rejects it (→ in_progress).
|
|
16
|
+
- **Priorities**: low / normal / high, sorted high-first, with a priority filter.
|
|
17
|
+
- **Agent round-trip**: `task_board_list` → `task_board_claim` →
|
|
18
|
+
`task_board_complete` (→ review), plus `task_board_update` for out-of-band moves.
|
|
15
19
|
A system-prompt section teaches the model the flow.
|
|
20
|
+
- **Auto-dispatch**: an optional poller claims `ready` tasks and dispatches a real
|
|
21
|
+
agent session to execute each one.
|
|
22
|
+
- **Archive**: done tasks can be archived (hidden from the board, restorable); the
|
|
23
|
+
Done column collapses with a "show more".
|
|
16
24
|
- **Host-authoritative, durable**: tasks persist in the Host (`storage-domain`); the
|
|
17
25
|
board updates live over SSE as the agent works.
|
|
18
26
|
- **No setup**: install, and the board appears in the sidebar.
|
|
19
27
|
|
|
20
|
-
##
|
|
28
|
+
## Screenshots
|
|
21
29
|
|
|
22
|
-
|
|
30
|
+
| Light | Dark |
|
|
31
|
+
|---|---|
|
|
32
|
+
|  |  |
|
|
33
|
+
|
|
34
|
+
## Board columns
|
|
35
|
+
|
|
36
|
+
| Column | State | Meaning |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| 待定 / Draft | `draft` | Not yet finalized. |
|
|
39
|
+
| 待处理 / Ready | `ready` | Confirmed and actionable (an agent may pick it up). |
|
|
40
|
+
| 进行中 / In progress | `in_progress` | Being worked on (owned by a session). |
|
|
41
|
+
| 待验证 / Review | `review` | Work done, awaiting human verification. |
|
|
42
|
+
| 已完成 / Done | `done` | Verified complete. |
|
|
43
|
+
| 阻断 / Blocked | `blocked` | Waiting on a dependency; remembers the state to restore. |
|
|
23
44
|
|
|
24
45
|
## Install
|
|
25
46
|
|
|
@@ -33,11 +54,24 @@ inserts its loader row automatically.
|
|
|
33
54
|
|
|
34
55
|
## Using it
|
|
35
56
|
|
|
36
|
-
- **Create a task**: header **New task** →
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
57
|
+
- **Create a task**: header **New task** → project (workspace), title, optional
|
|
58
|
+
description, priority (low / normal / high), optional "mark ready now", and an
|
|
59
|
+
optional **reuse idle session** toggle (off by default; when on, auto-dispatch
|
|
60
|
+
continues in an idle session of the same project instead of creating a new one).
|
|
61
|
+
- **Move**: each card has status-appropriate actions — Draft → **Confirm ready**;
|
|
62
|
+
Ready → **▶ Start**; In progress → **Complete for review**; Review → **Accept** /
|
|
63
|
+
**Reject**; any → **Block** / **Unblock**.
|
|
64
|
+
- **Edit / delete**: the ✏️ button edits title, description, and priority inline;
|
|
65
|
+
the × button deletes (click twice to confirm).
|
|
66
|
+
- **Prioritize**: tasks are ordered high → normal → low within each column; a
|
|
67
|
+
priority filter narrows the board.
|
|
68
|
+
- **Archive**: Done cards offer **Archive**; the Done column header offers
|
|
69
|
+
**Archive all**; the header **Archived** toggle opens the archive view (with
|
|
70
|
+
restore). The Done column shows the latest 10 with a "show more".
|
|
40
71
|
- **Filter**: the project selector narrows the board to one project or all.
|
|
72
|
+
- **Auto-claim / dispatch**: the header **Auto-claim** toggle (on by default) makes a
|
|
73
|
+
background poller claim `ready` tasks and **dispatch a real agent session** in the
|
|
74
|
+
task's workspace to execute each one; it moves to Review when done.
|
|
41
75
|
- **Let the agent do it**: in any session, say e.g. *"处理 erp 项目的待办任务"* — the
|
|
42
76
|
agent calls `task_board_list` (a short project name like `erp` matches by suffix),
|
|
43
77
|
`task_board_claim`s each task, does the work, then `task_board_complete`s it with a
|
|
@@ -47,9 +81,10 @@ inserts its loader row automatically.
|
|
|
47
81
|
|
|
48
82
|
| Tool | Purpose |
|
|
49
83
|
|---|---|
|
|
50
|
-
| `task_board_list({ project?, status? })` | List
|
|
51
|
-
| `task_board_claim({ id })` | Claim a task (
|
|
52
|
-
| `task_board_complete({ id, summary, files? })` |
|
|
84
|
+
| `task_board_list({ project?, status? })` | List a project's `ready` + `in_progress` tasks (default `pending`). Omit `project` to use the current session working directory; a short name matches a known project by suffix. Returns id, status, priority, title, and full description, highest priority first. |
|
|
85
|
+
| `task_board_claim({ id })` | Claim a `draft`/`ready` task (`→ in_progress`), recording the calling session as owner. Blocked and in-review tasks cannot be claimed. |
|
|
86
|
+
| `task_board_complete({ id, summary, files? })` | Mark the work finished (`→ review`) with a concise summary and optional touched files. A human still accepts or rejects it. |
|
|
87
|
+
| `task_board_update({ id, status, reason? })` | Out-of-band moves: set `blocked` (with a reason), `ready` from `draft`, `in_progress` (reject a review), or `done` (accept). |
|
|
53
88
|
|
|
54
89
|
Plus a system-prompt **section** that instructs the model how to pull and process a
|
|
55
90
|
project's tasks (process one at a time, prefer higher priority, never fabricate a
|
|
@@ -58,9 +93,10 @@ completion).
|
|
|
58
93
|
## How it works
|
|
59
94
|
|
|
60
95
|
- **Host half** (`src/index.ts`): owns the task domain (`storage-domain`, a
|
|
61
|
-
`dsh_task_board` unit), registers the
|
|
62
|
-
|
|
63
|
-
|
|
96
|
+
`dsh_task_board` unit), registers the tools + the prompt section, and registers
|
|
97
|
+
`/taskboard` HTTP + SSE routes on `ctx.webServer`. Task ownership derives from the
|
|
98
|
+
calling session's working directory. The auto-claim poller creates a session in the
|
|
99
|
+
task's workspace and prompts it to run the task.
|
|
64
100
|
- **Browser half** (`src/client/`): the kanban page. It reads/writes
|
|
65
101
|
`/taskboard/api/*` same-origin and subscribes to `/taskboard/events` (SSE) for live
|
|
66
102
|
updates.
|
package/README.zh.md
CHANGED
|
@@ -3,20 +3,37 @@
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
5
|
一个 [DSH(DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness) 的
|
|
6
|
-
bundle 插件:增加一块
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
共享。
|
|
6
|
+
bundle 插件:增加一块 **任务看板**——多列看板,每个任务**归属一个项目(workspace 目录)**。
|
|
7
|
+
你在看板上建任务、管理任务;**agent 通过 `task_board_*` 工具拉取指定项目的待处理任务、
|
|
8
|
+
执行、并转入待验证**——一份 Host 权威的任务台账,模型与看板共享。
|
|
10
9
|
|
|
11
10
|
- **按项目归属**:每个任务属于一个项目路径;agent 默认处理"它所在项目的任务"。
|
|
12
|
-
-
|
|
13
|
-
|
|
11
|
+
- **完整生命周期**:`待定 → 待处理 → 进行中 → 待验证 → 已完成`,另有 `阻断` 侧态。
|
|
12
|
+
人工对「待验证」验收通过(→ 已完成)或退回(→ 进行中)。
|
|
13
|
+
- **优先级**:低 / 中 / 高,按高→低排序,并支持优先级筛选。
|
|
14
|
+
- **agent 闭环**:`task_board_list` → `task_board_claim` → `task_board_complete`
|
|
15
|
+
(→ 待验证),另有 `task_board_update` 处理其他移动。系统提示里附有使用指引。
|
|
16
|
+
- **自动派发**:可选的轮询把「待处理」任务领取并**真的派发一个 agent 会话来执行**。
|
|
17
|
+
- **归档**:已完成任务可归档(从看板隐藏,可恢复);已完成列默认折叠,可展开。
|
|
14
18
|
- **Host 权威、持久**:任务存于 Host(`storage-domain`);agent 干活时看板通过 SSE 实时刷新。
|
|
15
19
|
- **零配置**:装上即用,侧边栏出现「任务看板」。
|
|
16
20
|
|
|
17
21
|
## 截图
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
| 浅色 | 深色 |
|
|
24
|
+
|---|---|
|
|
25
|
+
|  |  |
|
|
26
|
+
|
|
27
|
+
## 看板列
|
|
28
|
+
|
|
29
|
+
| 列 | 状态 | 含义 |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| 待定 | `draft` | 还没定稿。 |
|
|
32
|
+
| 待处理 | `ready` | 已确认可处理(agent 可领取)。 |
|
|
33
|
+
| 进行中 | `in_progress` | 正在做(某会话持有)。 |
|
|
34
|
+
| 待验证 | `review` | 做完了,等人工验收。 |
|
|
35
|
+
| 已完成 | `done` | 验收通过。 |
|
|
36
|
+
| 阻断 | `blocked` | 被依赖卡住;记住待恢复的状态。 |
|
|
20
37
|
|
|
21
38
|
## 安装
|
|
22
39
|
|
|
@@ -29,9 +46,18 @@ dsh plugin --profile web add dsh-project-tasks
|
|
|
29
46
|
|
|
30
47
|
## 使用
|
|
31
48
|
|
|
32
|
-
- **建任务**:顶部 **新建任务** →
|
|
33
|
-
|
|
49
|
+
- **建任务**:顶部 **新建任务** → 选项目(工作区)、标题、可选描述、优先级(低/中/高)、
|
|
50
|
+
可选「直接标记为待处理」,以及可选的 **复用空闲会话**(默认不勾:勾上后自动派发时,
|
|
51
|
+
若同项目有空闲会话就在其继续,而不是新建)。
|
|
52
|
+
- **推进**:卡片按状态给不同动作——待定 → **确认处理**;待处理 → **▶ 开始**;进行中 →
|
|
53
|
+
**完成待验收**;待验证 → **验收通过** / **退回**;任意 → **阻断** / **解除阻断**。
|
|
54
|
+
- **编辑 / 删除**:✏️ 按钮就地编辑标题、描述、优先级;× 按钮删除(点两次确认)。
|
|
55
|
+
- **优先级**:每列内按 高 → 中 → 低 排序;顶部有优先级筛选。
|
|
56
|
+
- **归档**:已完成卡有 **归档**;已完成列头有 **全部归档**;顶部 **归档** 开关进入归档视图
|
|
57
|
+
(可恢复)。已完成列默认只显示最新 10 个,可展开。
|
|
34
58
|
- **筛选**:项目下拉把看板收窄到某项目或全部。
|
|
59
|
+
- **自动认领/派发**:顶部 **自动认领** 开关(默认开)会让后台把「待处理」任务领取,并在
|
|
60
|
+
该项目工作区**派发一个真实 agent 会话**去执行,完成后转入「待验证」。
|
|
35
61
|
- **交给 agent**:在任意会话里说「处理 erp 项目的待办任务」——agent 调 `task_board_list`
|
|
36
62
|
(短项目名 `erp` 会按后缀匹配)、逐条 `task_board_claim` 领取、完成后
|
|
37
63
|
`task_board_complete` 写摘要。看板实时反映。
|
|
@@ -40,9 +66,10 @@ dsh plugin --profile web add dsh-project-tasks
|
|
|
40
66
|
|
|
41
67
|
| 工具 | 作用 |
|
|
42
68
|
|---|---|
|
|
43
|
-
| `task_board_list({ project?, status? })` |
|
|
44
|
-
| `task_board_claim({ id })` |
|
|
45
|
-
| `task_board_complete({ id, summary, files? })` |
|
|
69
|
+
| `task_board_list({ project?, status? })` | 列某项目的 `ready` + `in_progress` 任务(默认 `pending`)。省略 `project` 用当前会话工作目录;短名按后缀匹配已知项目。返回 id、状态、优先级、标题、完整描述,高优先级在前。 |
|
|
70
|
+
| `task_board_claim({ id })` | 领取 `draft`/`ready` 任务(`→ 进行中`),记录调用会话为负责人。阻断/待验证中的任务不可领取。 |
|
|
71
|
+
| `task_board_complete({ id, summary, files? })` | 标记工作完成(`→ 待验证`),写简明摘要与(可选)改动文件。仍需人工验收。 |
|
|
72
|
+
| `task_board_update({ id, status, reason? })` | 其他移动:设为 `blocked`(可带原因)、从 `draft` 置 `ready`、置 `in_progress`(退回待验证)、或置 `done`(验收)。 |
|
|
46
73
|
|
|
47
74
|
外加系统提示 **section**,告诉模型如何拉取并处理某项目的任务(逐个处理、优先高优先级、
|
|
48
75
|
不得虚构完成)。
|
|
@@ -50,8 +77,8 @@ dsh plugin --profile web add dsh-project-tasks
|
|
|
50
77
|
## 工作原理
|
|
51
78
|
|
|
52
79
|
- **Host 半边**(`src/index.ts`):持有任务 domain(`storage-domain`,unit `dsh_task_board`),
|
|
53
|
-
|
|
54
|
-
|
|
80
|
+
注册工具 + 提示 section,并在 `ctx.webServer` 上注册 `/taskboard` HTTP + SSE 路由。
|
|
81
|
+
任务归属取自调用会话的工作目录。自动认领轮询会在任务所属工作区建会话并提示其执行任务。
|
|
55
82
|
- **浏览器半边**(`src/client/`):看板页。同源读写 `/taskboard/api/*`,订阅
|
|
56
83
|
`/taskboard/events`(SSE)实时更新。
|
|
57
84
|
- **bundle patch**(`cordis.patch.yml`):插入插件行;node 半边在 host 跑,`dsh.client`
|
|
Binary file
|
|
Binary file
|
package/lib/client.js
CHANGED
|
@@ -95,7 +95,7 @@ window.__ModuleLoader__.load({
|
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region \0dsh-css:/Users/hyper/Documents/hyper/project/extensions/dsh-task-board/src/client/TaskBoardPage.module.css.mjs
|
|
98
|
-
const css = ".UxClrW_page{background:var(--dsw-alias-bg-base);flex-direction:column;height:100%;display:flex;overflow:hidden}.UxClrW_header{flex:none;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 28px 0;display:flex}.UxClrW_headerLeft{min-width:0}.UxClrW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:20px;font-weight:600}.UxClrW_subtitle{color:var(--dsw-alias-label-tertiary);margin:3px 0 0;font-size:12.5px}.UxClrW_headerRight{flex:none;align-items:center;gap:8px;display:flex}.UxClrW_projectPicker{align-items:center;gap:6px;display:inline-flex}.UxClrW_projectLabel{color:var(--dsw-alias-label-tertiary);font-size:12px}.UxClrW_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);max-width:240px;height:30px;color:var(--dsw-alias-label-secondary);border-radius:8px;padding:0 8px;font-size:12.5px}.UxClrW_refresh,.UxClrW_newBtn,.UxClrW_ghostBtn{cursor:pointer;white-space:nowrap;border-radius:8px;align-items:center;gap:6px;height:30px;padding:0 12px;font-size:12.5px;display:inline-flex}.UxClrW_refresh,.UxClrW_ghostBtn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary)}.UxClrW_refresh:hover,.UxClrW_ghostBtn:hover{background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_newBtn{background:var(--dsw-alias-button-primary-fill,#2f6feb);color:var(--dsw-alias-label-primary-inverted,#fff);border:none;font-weight:550}.UxClrW_newBtn:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover,#2f6feb)}.UxClrW_newBtn:disabled{opacity:.45;cursor:not-allowed}.UxClrW_error{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);border-radius:8px;margin:12px 28px 0;padding:8px 12px;font-size:12.5px}.UxClrW_draft{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1,#00000005);border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 28px 0;padding:12px;display:flex}.UxClrW_input{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:160px;height:30px;color:var(--dsw-alias-label-primary);border-radius:8px;flex:1;padding:0 10px;font-size:12.5px}.UxClrW_input:focus-visible,.UxClrW_select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#2f6feb);outline-offset:1px}.UxClrW_board{flex:1;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:start;gap:14px;padding:16px 28px 40px;display:grid;overflow-y:auto}.UxClrW_loading{color:var(--dsw-alias-label-tertiary);flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.UxClrW_column{background:var(--dsw-alias-bg-layer-1,#00000005);border-radius:14px;flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.UxClrW_columnDone{opacity:.96}.UxClrW_columnHeader{align-items:center;gap:8px;padding:2px 4px 6px;display:flex}.UxClrW_columnDot{background:var(--dsw-alias-label-tertiary);border-radius:50%;width:8px;height:8px}.UxClrW_columnDot[data-status=todo]{background:var(--dsw-alias-label-tertiary)}.UxClrW_columnDot[data-status=in_progress]{background:var(--dsw-alias-brand-primary,#2f6feb)}.UxClrW_columnDot[data-status=done]{background:var(--dsw-alias-state-business-primary,#10a37f)}.UxClrW_columnTitle{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px;font-weight:600}.UxClrW_columnCount{min-width:20px;height:18px;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:11px;font-weight:600;display:inline-flex}.UxClrW_columnEmpty{color:var(--dsw-alias-label-tertiary);margin:8px 4px;font-size:12px}.UxClrW_cardList{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.UxClrW_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);border-radius:11px;flex-direction:column;gap:7px;padding:11px 12px;display:flex}.UxClrW_cardHigh{border-color:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b7791f) 45%, var(--dsw-alias-border-l2))}.UxClrW_cardTop{align-items:baseline;gap:8px;display:flex}.UxClrW_cardTitle{min-width:0;color:var(--dsw-alias-label-primary);word-break:break-word;flex:1;font-size:13px;font-weight:550}.UxClrW_cardAge{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex:none;font-size:11px}.UxClrW_cardDesc{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px;line-height:1.45}.UxClrW_cardMeta{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;display:flex}.UxClrW_projectBadge{background:var(--dsw-alias-interactive-bg-hover);border-radius:6px;padding:1px 7px}.UxClrW_priorityBadge{border-radius:6px;padding:1px 7px}.UxClrW_priorityBadge[data-p=high]{color:var(--dsw-alias-state-warn-primary,#b7791f);background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b7791f) 14%, transparent)}.UxClrW_priorityBadge[data-p=low]{color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_claimed{color:var(--dsw-alias-label-tertiary)}.UxClrW_doneSummary{border-top:1px dashed var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);word-break:break-word;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;padding-top:6px;font-size:11.5px;line-height:1.45;display:-webkit-box;overflow:hidden}.UxClrW_doneSummary:hover,.UxClrW_doneSummary:focus-visible{-webkit-line-clamp:unset;line-clamp:unset;overflow:visible}.UxClrW_cardActions{align-items:center;gap:6px;display:flex}.UxClrW_iconBtn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:26px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;padding:0 6px;font-size:12px;display:inline-flex}.UxClrW_iconBtn:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_iconBtn:disabled{opacity:.35;cursor:not-allowed}.UxClrW_deleteBtn:hover{color:var(--dsw-alias-state-error-primary)}.UxClrW_deleteConfirm{color:var(--dsw-alias-state-error-primary);border-color:var(--dsw-alias-state-error-primary);font-size:11px}@media (width<=900px){.UxClrW_board{grid-template-columns:minmax(0,1fr)}}.UxClrW_autoToggle{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);cursor:pointer;white-space:nowrap;border-radius:8px;align-items:center;gap:7px;height:30px;padding:0 10px;display:inline-flex}.UxClrW_autoInput{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.UxClrW_autoSwitch{background:var(--dsw-alias-border-l3,#c8c8cc);border-radius:999px;flex:none;width:28px;height:16px;transition:background .14s;position:relative}.UxClrW_autoSwitch:after{content:\"\";background:var(--dsw-static-neutral-00,#fff);border-radius:50%;width:12px;height:12px;transition:transform .14s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.UxClrW_autoInput:checked+.UxClrW_autoSwitch{background:var(--dsw-alias-state-business-primary,#2f6feb)}.UxClrW_autoInput:checked+.UxClrW_autoSwitch:after{transform:translate(12px)}.UxClrW_autoInput:focus-visible+.UxClrW_autoSwitch{outline:2px solid var(--dsw-alias-brand-primary,#2f6feb);outline-offset:2px}.UxClrW_autoLabel{color:var(--dsw-alias-label-secondary);font-size:12.5px}.UxClrW_readyToggle{color:var(--dsw-alias-label-secondary);white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:inline-flex}.UxClrW_cardActions{flex-wrap:wrap;align-items:center;gap:6px;margin-top:2px;display:flex}.UxClrW_actionBtn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:6px;padding:0 9px;font-size:11.5px}.UxClrW_actionBtn:hover{background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_actionPrimary{background:var(--dsw-alias-button-primary-fill,#2f6feb);color:var(--dsw-alias-label-primary-inverted,#fff);border:none;font-weight:550}.UxClrW_actionPrimary:hover{background:var(--dsw-alias-button-primary-hover,#2f6feb)}.UxClrW_actionGhost{color:var(--dsw-alias-label-tertiary)}.UxClrW_columnBlocked{background:color-mix(in srgb, var(--dsw-alias-state-error-primary,#d33) 6%, transparent)}.UxClrW_cardBlocked{border-color:color-mix(in srgb, var(--dsw-alias-state-error-primary,#d33) 40%, var(--dsw-alias-border-l2))}.UxClrW_blockReason{color:var(--dsw-alias-state-error-primary);margin:0;font-size:11.5px}.UxClrW_columnDot[data-status=draft]{background:var(--dsw-alias-label-tertiary)}.UxClrW_columnDot[data-status=ready]{background:var(--dsw-alias-state-warn-primary,#b7791f)}.UxClrW_columnDot[data-status=review]{background:var(--dsw-alias-state-business-tertiary,#2f6feb)}.UxClrW_columnDot[data-status=blocked]{background:var(--dsw-alias-state-error-primary,#d33)}.UxClrW_deleteBtn{margin-left:auto}.UxClrW_tabActive{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.UxClrW_columnAction{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;border-radius:6px;margin-left:auto;padding:0 7px;font-size:10.5px}.UxClrW_columnAction:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.UxClrW_moreBtn{border:1px dashed var(--dsw-alias-border-l2);height:26px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border-radius:8px;align-self:flex-start;margin-top:4px;padding:0 10px;font-size:12px}.UxClrW_moreBtn:hover{color:var(--dsw-alias-label-secondary);border-style:solid}.UxClrW_archivePane{flex:1;max-width:900px;padding:16px 28px 40px;overflow-y:auto}.UxClrW_archiveHead{align-items:center;gap:8px;margin-bottom:12px;display:flex}.UxClrW_archiveTitle{color:var(--dsw-alias-label-secondary);margin:0;font-size:15px;font-weight:600}.UxClrW_editTextarea{resize:vertical;height:auto;min-height:54px;padding:6px 10px;font-family:inherit;line-height:1.4}";
|
|
98
|
+
const css = ".UxClrW_page{background:var(--dsw-alias-bg-base);flex-direction:column;height:100%;display:flex;overflow:hidden}.UxClrW_header{flex:none;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 28px 0;display:flex}.UxClrW_headerLeft{min-width:0}.UxClrW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:20px;font-weight:600}.UxClrW_subtitle{color:var(--dsw-alias-label-tertiary);margin:3px 0 0;font-size:12.5px}.UxClrW_headerRight{flex:none;align-items:center;gap:8px;display:flex}.UxClrW_projectPicker{align-items:center;gap:6px;display:inline-flex}.UxClrW_projectLabel{color:var(--dsw-alias-label-tertiary);font-size:12px}.UxClrW_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);max-width:240px;height:30px;color:var(--dsw-alias-label-secondary);border-radius:8px;padding:0 8px;font-size:12.5px}.UxClrW_refresh,.UxClrW_newBtn,.UxClrW_ghostBtn{cursor:pointer;white-space:nowrap;border-radius:8px;align-items:center;gap:6px;height:30px;padding:0 12px;font-size:12.5px;display:inline-flex}.UxClrW_refresh,.UxClrW_ghostBtn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary)}.UxClrW_refresh:hover,.UxClrW_ghostBtn:hover{background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_newBtn{background:var(--dsw-alias-button-primary-fill,#2f6feb);color:var(--dsw-alias-label-primary-inverted,#fff);border:none;font-weight:550}.UxClrW_newBtn:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover,#2f6feb)}.UxClrW_newBtn:disabled{opacity:.45;cursor:not-allowed}.UxClrW_error{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);border-radius:8px;margin:12px 28px 0;padding:8px 12px;font-size:12.5px}.UxClrW_draft{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1,#00000005);border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 28px 0;padding:12px;display:flex}.UxClrW_input{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:160px;height:30px;color:var(--dsw-alias-label-primary);border-radius:8px;flex:1;padding:0 10px;font-size:12.5px}.UxClrW_input:focus-visible,.UxClrW_select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#2f6feb);outline-offset:1px}.UxClrW_board{flex:1;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:start;gap:14px;padding:16px 28px 40px;display:grid;overflow-y:auto}.UxClrW_loading{color:var(--dsw-alias-label-tertiary);flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.UxClrW_column{background:var(--dsw-alias-bg-layer-1,#00000005);border-radius:14px;flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.UxClrW_columnDone{opacity:.96}.UxClrW_columnHeader{align-items:center;gap:8px;padding:2px 4px 6px;display:flex}.UxClrW_columnDot{background:var(--dsw-alias-label-tertiary);border-radius:50%;width:8px;height:8px}.UxClrW_columnDot[data-status=todo]{background:var(--dsw-alias-label-tertiary)}.UxClrW_columnDot[data-status=in_progress]{background:var(--dsw-alias-brand-primary,#2f6feb)}.UxClrW_columnDot[data-status=done]{background:var(--dsw-alias-state-business-primary,#10a37f)}.UxClrW_columnTitle{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px;font-weight:600}.UxClrW_columnCount{min-width:20px;height:18px;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:11px;font-weight:600;display:inline-flex}.UxClrW_columnEmpty{color:var(--dsw-alias-label-tertiary);margin:8px 4px;font-size:12px}.UxClrW_cardList{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.UxClrW_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);border-radius:11px;flex-direction:column;gap:7px;padding:11px 12px;display:flex}.UxClrW_cardHigh{border-color:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b7791f) 45%, var(--dsw-alias-border-l2))}.UxClrW_cardTop{align-items:baseline;gap:8px;display:flex}.UxClrW_cardTitle{min-width:0;color:var(--dsw-alias-label-primary);word-break:break-word;flex:1;font-size:13px;font-weight:550}.UxClrW_cardAge{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex:none;font-size:11px}.UxClrW_cardDesc{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px;line-height:1.45}.UxClrW_cardMeta{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;display:flex}.UxClrW_projectBadge{background:var(--dsw-alias-interactive-bg-hover);border-radius:6px;padding:1px 7px}.UxClrW_priorityBadge{border-radius:6px;padding:1px 7px}.UxClrW_priorityBadge[data-p=high]{color:var(--dsw-alias-state-warn-primary,#b7791f);background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b7791f) 14%, transparent)}.UxClrW_priorityBadge[data-p=low]{color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_claimed{color:var(--dsw-alias-label-tertiary)}.UxClrW_doneSummary{border-top:1px dashed var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);word-break:break-word;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;padding-top:6px;font-size:11.5px;line-height:1.45;display:-webkit-box;overflow:hidden}.UxClrW_doneSummary:hover,.UxClrW_doneSummary:focus-visible{-webkit-line-clamp:unset;line-clamp:unset;overflow:visible}.UxClrW_cardActions{align-items:center;gap:6px;display:flex}.UxClrW_iconBtn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:26px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;padding:0 6px;font-size:12px;display:inline-flex}.UxClrW_iconBtn:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_iconBtn:disabled{opacity:.35;cursor:not-allowed}.UxClrW_deleteBtn:hover{color:var(--dsw-alias-state-error-primary)}.UxClrW_deleteConfirm{color:var(--dsw-alias-state-error-primary);border-color:var(--dsw-alias-state-error-primary);font-size:11px}@media (width<=900px){.UxClrW_board{grid-template-columns:minmax(0,1fr)}}.UxClrW_autoToggle{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);cursor:pointer;white-space:nowrap;border-radius:8px;align-items:center;gap:7px;height:30px;padding:0 10px;display:inline-flex}.UxClrW_autoInput{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.UxClrW_autoSwitch{background:var(--dsw-alias-border-l3,#c8c8cc);border-radius:999px;flex:none;width:28px;height:16px;transition:background .14s;position:relative}.UxClrW_autoSwitch:after{content:\"\";background:var(--dsw-static-neutral-00,#fff);border-radius:50%;width:12px;height:12px;transition:transform .14s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.UxClrW_autoInput:checked+.UxClrW_autoSwitch{background:var(--dsw-alias-state-business-primary,#2f6feb)}.UxClrW_autoInput:checked+.UxClrW_autoSwitch:after{transform:translate(12px)}.UxClrW_autoInput:focus-visible+.UxClrW_autoSwitch{outline:2px solid var(--dsw-alias-brand-primary,#2f6feb);outline-offset:2px}.UxClrW_autoLabel{color:var(--dsw-alias-label-secondary);font-size:12.5px}.UxClrW_readyToggle{color:var(--dsw-alias-label-secondary);white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:inline-flex}.UxClrW_cardActions{flex-wrap:wrap;align-items:center;gap:6px;margin-top:2px;display:flex}.UxClrW_actionBtn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:6px;padding:0 9px;font-size:11.5px}.UxClrW_actionBtn:hover{background:var(--dsw-alias-interactive-bg-hover)}.UxClrW_actionPrimary{background:var(--dsw-alias-button-primary-fill,#2f6feb);color:var(--dsw-alias-label-primary-inverted,#fff);border:none;font-weight:550}.UxClrW_actionPrimary:hover{background:var(--dsw-alias-button-primary-hover,#2f6feb)}.UxClrW_actionGhost{color:var(--dsw-alias-label-tertiary)}.UxClrW_columnBlocked{background:color-mix(in srgb, var(--dsw-alias-state-error-primary,#d33) 6%, transparent)}.UxClrW_cardBlocked{border-color:color-mix(in srgb, var(--dsw-alias-state-error-primary,#d33) 40%, var(--dsw-alias-border-l2))}.UxClrW_blockReason{color:var(--dsw-alias-state-error-primary);margin:0;font-size:11.5px}.UxClrW_columnDot[data-status=draft]{background:var(--dsw-alias-label-tertiary)}.UxClrW_columnDot[data-status=ready]{background:var(--dsw-alias-state-warn-primary,#b7791f)}.UxClrW_columnDot[data-status=review]{background:var(--dsw-alias-state-business-tertiary,#2f6feb)}.UxClrW_columnDot[data-status=blocked]{background:var(--dsw-alias-state-error-primary,#d33)}.UxClrW_deleteBtn{margin-left:auto}.UxClrW_tabActive{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.UxClrW_columnAction{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;border-radius:6px;margin-left:auto;padding:0 7px;font-size:10.5px}.UxClrW_columnAction:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.UxClrW_moreBtn{border:1px dashed var(--dsw-alias-border-l2);height:26px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border-radius:8px;align-self:flex-start;margin-top:4px;padding:0 10px;font-size:12px}.UxClrW_moreBtn:hover{color:var(--dsw-alias-label-secondary);border-style:solid}.UxClrW_archivePane{flex:1;max-width:900px;padding:16px 28px 40px;overflow-y:auto}.UxClrW_archiveHead{align-items:center;gap:8px;margin-bottom:12px;display:flex}.UxClrW_archiveTitle{color:var(--dsw-alias-label-secondary);margin:0;font-size:15px;font-weight:600}.UxClrW_editTextarea{resize:vertical;height:auto;min-height:54px;padding:6px 10px;font-family:inherit;line-height:1.4}@media (width<=640px){.UxClrW_header{flex-direction:column;align-items:stretch;gap:10px;padding:16px 16px 0}.UxClrW_headerLeft{min-width:0}.UxClrW_headerRight{flex-wrap:wrap;gap:8px}.UxClrW_projectPicker{flex:100%}.UxClrW_select{width:100%}.UxClrW_board{gap:12px;padding:12px 16px 32px}.UxClrW_draft{flex-direction:column;align-items:stretch}.UxClrW_input,.UxClrW_draft .UxClrW_select{width:100%}.UxClrW_archivePane{padding:12px 16px 32px}.UxClrW_column{padding:10px}.UxClrW_card{padding:9px}}@media (width<=420px){.UxClrW_header{padding:12px 12px 0}.UxClrW_board{gap:10px;padding:10px 12px 28px}.UxClrW_title{font-size:18px}.UxClrW_subtitle{font-size:12px}.UxClrW_autoToggle{height:28px;padding:0 8px}.UxClrW_actionBtn{height:30px;font-size:12.5px}.UxClrW_iconBtn{min-width:30px;height:30px}}";
|
|
99
99
|
const tagId = "dsh-project-tasks/TaskBoardPage.module.css";
|
|
100
100
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
101
101
|
const tag = document.createElement("style");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-project-tasks",
|
|
3
3
|
"description": "Project task board for DSH: create tasks that belong to a project (workspace), let an agent pull a project's pending tasks, execute them, and mark them done — a three-column kanban (Todo / In progress / Done) with a host-authoritative task ledger and task_board_* agent tools.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "hyper",
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
"cordis.patch.yml",
|
|
52
52
|
"README.md",
|
|
53
53
|
"README.zh.md",
|
|
54
|
-
"LICENSE"
|
|
54
|
+
"LICENSE",
|
|
55
|
+
"docs/screenshot-light.png",
|
|
56
|
+
"docs/screenshot-dark.png"
|
|
55
57
|
],
|
|
56
58
|
"dsh": {
|
|
57
59
|
"bundle": {
|