@fonlan/dsh-task-kanban 0.1.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/LICENSE +21 -0
- package/README.md +45 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +1128 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +1514 -0
- package/lib/types/index.d.ts +14 -0
- package/lib/types/server/git.d.ts +16 -0
- package/lib/types/server/models.d.ts +4 -0
- package/lib/types/server/prompts.d.ts +7 -0
- package/lib/types/server/rpc.d.ts +4 -0
- package/lib/types/server/runner.d.ts +84 -0
- package/lib/types/server/settings.d.ts +27 -0
- package/lib/types/server/task-store.d.ts +27 -0
- package/lib/types/server/tools.d.ts +11 -0
- package/lib/types/shared/card.d.ts +86 -0
- package/lib/types/shared/lanes.d.ts +9 -0
- package/lib/types/shared/plan.d.ts +12 -0
- package/package.json +105 -0
- package/src/client/api.ts +42 -0
- package/src/client/board.css +361 -0
- package/src/client/board.tsx +516 -0
- package/src/client/index.tsx +47 -0
- package/src/client/kanban-state.ts +104 -0
- package/src/client/locales.ts +127 -0
- package/src/client/sections.tsx +209 -0
- package/src/client/slot-augment.d.ts +15 -0
- package/src/index.ts +34 -0
- package/src/server/git.ts +68 -0
- package/src/server/models.ts +20 -0
- package/src/server/prompts.ts +54 -0
- package/src/server/rpc.ts +167 -0
- package/src/server/runner.ts +834 -0
- package/src/server/settings.ts +69 -0
- package/src/server/task-store.ts +128 -0
- package/src/server/tools.ts +131 -0
- package/src/shared/card.ts +115 -0
- package/src/shared/lanes.ts +43 -0
- package/src/shared/plan.ts +54 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 fonlan
|
|
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
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @fonlan/dsh-task-kanban
|
|
2
|
+
|
|
3
|
+
**@fonlan/dsh-task-kanban** 是一个 [DSH](https://github.com/deepseek-ai/dsh) web 插件,为 web 主界面新增"任务看板":把需求细化成多 phase 实现计划,并在 git worktree 中串行实现、全部 phase 完成后自动合入主分支,全流程状态在"需求 / 队列 / 运行中 / 已完成 / 已合并"五条泳道上可视化。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
|
|
7
|
+
- **需求 → 计划**:新建任务后自动进入细化会话,把需求拆解为串行执行的 phase 计划(plan)。
|
|
8
|
+
- **队列**:已规划的卡片拖入队列,按 FIFO 领取执行。
|
|
9
|
+
- **串行实现**:每个 phase 一个独立会话,在同一 git worktree 中严格串行推进(同一工作区单并发,跨工作区可按设置并行)。
|
|
10
|
+
- **自动合并**:全部 phase 完成后,插件自动将 plan 分支合入主分支(`main` / `master`),完成后清理 worktree 与分支。
|
|
11
|
+
- **状态可视化**:卡片完整显示标题、需求摘要、模型、plan 状态徽标、所属阶段与时间,支持停止 / 重试 / 删除。
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
> 通过 `dsh` 的 profile 插件管理命令安装,目标 profile 为 `web`。运行命令的目录将作为默认 workspace 根目录。
|
|
16
|
+
|
|
17
|
+
### 方式一:从 npm 发布包安装
|
|
18
|
+
|
|
19
|
+
当前发布版本:`0.1.0`。
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
dsh plugin --profile web add @fonlan/dsh-task-kanban
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
> 如需固定版本,可显式指定版本号:`dsh plugin --profile web add @fonlan/dsh-task-kanban@0.1.0`。
|
|
26
|
+
|
|
27
|
+
### 方式二:本地源码链接安装
|
|
28
|
+
|
|
29
|
+
在仓库目录下,先构建出 `lib/` 产物(`package.json` 的 `files` 只发布 `lib / src / cordis.patch.yml / README.md / LICENSE`),再以本地目录方式添加:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm build
|
|
33
|
+
dsh plugin --profile web add .
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
安装后插件即通过 `cordis.patch.yml` 自动挂载到 web profile。web profile 会读取该 patch 并把插件注册进 `sidebar.footer.action`(看板入口)、`conversation`(看板视图)与 `settings.section`(插件设置)等插槽,通常重启 web profile 后即可在侧边栏底部看到"任务看板"入口。
|
|
37
|
+
|
|
38
|
+
## 开发
|
|
39
|
+
|
|
40
|
+
- 修改服务端后需重启 web profile。
|
|
41
|
+
- 客户端改动走 web 端 HMR 链路,`pnpm run dev:web` 同启时生效。
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT — 详见 [LICENSE](./LICENSE)。
|
package/cordis.patch.yml
ADDED