dsh-project-tasks 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 hyper and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,99 @@
1
- # Temporary Holding Version
1
+ # dsh-project-tasks — a project task board for DSH
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ English | [中文](README.zh.md)
4
+
5
+ A [DSH (DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness) bundle
6
+ plugin that adds a **Task board**: a three-column kanban (**Todo / In progress /
7
+ Done**) of tasks that **belong to a project (a workspace directory)**. You create
8
+ tasks on the board; an **agent pulls a project's pending tasks, executes them, and
9
+ marks them done** through `task_board_*` tools — a host-authoritative task ledger
10
+ the model and the board share.
11
+
12
+ - **Project-scoped**: every task is owned by a project path; the agent works "the
13
+ tasks of the project it is running in" by default.
14
+ - **Agent round-trip**: `task_board_list` → `task_board_claim` → `task_board_complete`.
15
+ A system-prompt section teaches the model the flow.
16
+ - **Host-authoritative, durable**: tasks persist in the Host (`storage-domain`); the
17
+ board updates live over SSE as the agent works.
18
+ - **No setup**: install, and the board appears in the sidebar.
19
+
20
+ ## Screenshot
21
+
22
+ ![Task board](docs/screenshot-light.png)
23
+
24
+ ## Install
25
+
26
+ ```sh
27
+ dsh plugin --profile web add dsh-project-tasks
28
+ ```
29
+
30
+ Restart `dsh web` (or reopen the GUI) and refresh the page: a **Task board** entry
31
+ appears in the sidebar. It is a **bundle** (`dsh.bundle`), so `dsh plugin add`
32
+ inserts its loader row automatically.
33
+
34
+ ## Using it
35
+
36
+ - **Create a task**: header **New task** → pick a project (workspace), title,
37
+ optional description, and priority (low / normal / high).
38
+ - **Move / delete**: each card has ← → to change status and a delete button
39
+ (click twice to confirm).
40
+ - **Filter**: the project selector narrows the board to one project or all.
41
+ - **Let the agent do it**: in any session, say e.g. *"处理 erp 项目的待办任务"* — the
42
+ agent calls `task_board_list` (a short project name like `erp` matches by suffix),
43
+ `task_board_claim`s each task, does the work, then `task_board_complete`s it with a
44
+ summary. The board reflects it live.
45
+
46
+ ## Agent tools
47
+
48
+ | Tool | Purpose |
49
+ |---|---|
50
+ | `task_board_list({ project?, status? })` | List pending (todo + in_progress) tasks for a project. 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. |
51
+ | `task_board_claim({ id })` | Claim a task (`todo → in_progress`), recording the calling session as owner. |
52
+ | `task_board_complete({ id, summary, files? })` | Finish a task (`→ done`) with a concise summary and optional touched files. |
53
+
54
+ Plus a system-prompt **section** that instructs the model how to pull and process a
55
+ project's tasks (process one at a time, prefer higher priority, never fabricate a
56
+ completion).
57
+
58
+ ## How it works
59
+
60
+ - **Host half** (`src/index.ts`): owns the task domain (`storage-domain`, a
61
+ `dsh_task_board` unit), registers the three tools + the prompt section, and
62
+ registers `/taskboard` HTTP + SSE routes on `ctx.webServer`. Task ownership derives
63
+ from the calling session's working directory.
64
+ - **Browser half** (`src/client/`): the kanban page. It reads/writes
65
+ `/taskboard/api/*` same-origin and subscribes to `/taskboard/events` (SSE) for live
66
+ updates.
67
+ - **Bundle patch** (`cordis.patch.yml`): inserts the plugin row; the node half runs in
68
+ the host, the `dsh.client` half loads in the web GUI.
69
+
70
+ Data is stored on the host (not per-project files), so the board is consistent across
71
+ sessions and frontends.
72
+
73
+ ## Develop / build
74
+
75
+ ```sh
76
+ npm run link-deps # link the DSH source checkout's packages into ./node_modules
77
+ npm run build # tsc -> lib/types, tsdown -> lib/index.js (host) + lib/client.js (web)
78
+ ```
79
+
80
+ Default checkout path is `../../../source/deepseek-harness`; override with
81
+ `DSH_CHECKOUT=/path/to/deepseek-harness`.
82
+
83
+ ## Security note
84
+
85
+ DSH gates only `/api` with browser auth. Custom routes such as `/taskboard` are
86
+ trusted at the server boundary (as the built-in HMR events route is). The write
87
+ routes additionally refuse a cross-origin `Origin`. Run the GUI on loopback or behind
88
+ a trusted reverse proxy, as you would the rest of DSH.
89
+
90
+ ## Contact
91
+
92
+ - Technical questions / bug reports: please open an [Issue](https://github.com/hyper-open/dsh-task-board/issues).
93
+ - Chat / collaboration: add me on WeChat (scan the QR, note "GitHub").
94
+
95
+ <p align="center"><img src="docs/images/wechat-qrcode.jpg" width="220" alt="Author WeChat"></p>
96
+
97
+ ## License
98
+
99
+ [MIT](LICENSE)
package/README.zh.md ADDED
@@ -0,0 +1,86 @@
1
+ # dsh-project-tasks — DSH 项目任务看板
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 一个 [DSH(DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness) 的
6
+ bundle 插件:增加一块 **任务看板**——三列看板(**待办 / 进行中 / 已完成**),每个
7
+ 任务**归属一个项目(workspace 目录)**。你在看板上建任务;**agent 通过 `task_board_*`
8
+ 工具拉取指定项目的待处理任务、执行、并标记完成**——一份 Host 权威的任务台账,模型与看板
9
+ 共享。
10
+
11
+ - **按项目归属**:每个任务属于一个项目路径;agent 默认处理"它所在项目的任务"。
12
+ - **agent 闭环**:`task_board_list` → `task_board_claim` → `task_board_complete`,
13
+ 系统提示里附有使用指引。
14
+ - **Host 权威、持久**:任务存于 Host(`storage-domain`);agent 干活时看板通过 SSE 实时刷新。
15
+ - **零配置**:装上即用,侧边栏出现「任务看板」。
16
+
17
+ ## 截图
18
+
19
+ ![任务看板](docs/screenshot-light.png)
20
+
21
+ ## 安装
22
+
23
+ ```sh
24
+ dsh plugin --profile web add dsh-project-tasks
25
+ ```
26
+
27
+ 重启 `dsh web`(或重开 GUI)并刷新页面,侧边栏出现 **任务看板** 入口。它是 **bundle**
28
+ (`dsh.bundle`),`dsh plugin add` 会自动插入 Loader 行。
29
+
30
+ ## 使用
31
+
32
+ - **建任务**:顶部 **新建任务** → 选项目(工作区)、标题、可选描述、优先级(低/中/高)。
33
+ - **移动 / 删除**:每张卡有 ← → 改状态,删除按钮(点两次确认)。
34
+ - **筛选**:项目下拉把看板收窄到某项目或全部。
35
+ - **交给 agent**:在任意会话里说「处理 erp 项目的待办任务」——agent 调 `task_board_list`
36
+ (短项目名 `erp` 会按后缀匹配)、逐条 `task_board_claim` 领取、完成后
37
+ `task_board_complete` 写摘要。看板实时反映。
38
+
39
+ ## Agent 工具
40
+
41
+ | 工具 | 作用 |
42
+ |---|---|
43
+ | `task_board_list({ project?, status? })` | 列某项目待处理(todo + in_progress)任务。省略 `project` 用当前会话工作目录;短名按后缀匹配已知项目。返回 id、状态、优先级、标题、完整描述。 |
44
+ | `task_board_claim({ id })` | 领取任务(`todo → in_progress`),记录调用会话为负责人。 |
45
+ | `task_board_complete({ id, summary, files? })` | 完成任务(`→ done`),写简明摘要与(可选)改动文件。 |
46
+
47
+ 外加系统提示 **section**,告诉模型如何拉取并处理某项目的任务(逐个处理、优先高优先级、
48
+ 不得虚构完成)。
49
+
50
+ ## 工作原理
51
+
52
+ - **Host 半边**(`src/index.ts`):持有任务 domain(`storage-domain`,unit `dsh_task_board`),
53
+ 注册 3 个工具 + 提示 section,并在 `ctx.webServer` 上注册 `/taskboard` HTTP + SSE 路由。
54
+ 任务归属取自调用会话的工作目录。
55
+ - **浏览器半边**(`src/client/`):看板页。同源读写 `/taskboard/api/*`,订阅
56
+ `/taskboard/events`(SSE)实时更新。
57
+ - **bundle patch**(`cordis.patch.yml`):插入插件行;node 半边在 host 跑,`dsh.client`
58
+ 半边在 Web GUI 加载。
59
+
60
+ 数据存 Host(非项目内文件),因此跨会话、跨前端一致。
61
+
62
+ ## 开发 / 构建
63
+
64
+ ```sh
65
+ npm run link-deps # 把 DSH 源码 checkout 的包软链进 ./node_modules
66
+ npm run build # tsc -> lib/types,tsdown -> lib/index.js(host)+ lib/client.js(web)
67
+ ```
68
+
69
+ 默认 checkout 路径 `../../../source/deepseek-harness`,可用 `DSH_CHECKOUT=...` 覆盖。
70
+
71
+ ## 安全说明
72
+
73
+ DSH 只对 `/api` 做浏览器鉴权;`/taskboard` 这类自定义路由在服务器边界处被信任(内置 HMR
74
+ 事件路由亦然)。写路由额外拒绝跨源 `Origin`。请像对待 DSH 其余部分一样,让 GUI 跑在
75
+ loopback 或可信反向代理之后。
76
+
77
+ ## 联系作者
78
+
79
+ - 技术问题 / Bug 反馈:请提 [Issue](https://github.com/hyper-open/dsh-task-board/issues)。
80
+ - 交流 / 合作:扫码添加微信(备注 GitHub)。
81
+
82
+ <p align="center"><img src="docs/images/wechat-qrcode.jpg" width="220" alt="作者微信"></p>
83
+
84
+ ## 许可证
85
+
86
+ [MIT](LICENSE)
@@ -0,0 +1,9 @@
1
+ # dsh-task-board bundle patch: inserts the plugin row into the profile roster.
2
+ # Applied as a profile bundle layer (the `dsh.bundle.patch` manifest field) over
3
+ # dsh-base. The row is a bare plugin by package name: the node half (exports ".")
4
+ # runs in the host process (task ledger, task_board_* tools, system-prompt
5
+ # section, /taskboard JSON+SSE routes), and the `dsh.client` declaration in
6
+ # package.json makes the browser half (exports "./client") load in the web GUI.
7
+ - insert:
8
+ - id: dsh-task-board
9
+ name: dsh-project-tasks