dsh-project-deck 0.0.0-stage → 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 +96 -2
- package/backend/__pycache__/deckcpython-312.pyc +0 -0
- package/backend/__pycache__/panel.cpython-312.pyc +0 -0
- package/backend/deck +1550 -0
- package/backend/deck-node +188 -0
- package/backend/deck-node.js +152 -0
- package/backend/deck-node.ps1 +106 -0
- package/backend/panel.html +793 -0
- package/backend/panel.py +906 -0
- package/cordis.patch.yml +4 -0
- package/lib/client.js +298 -0
- package/lib/index.js +98 -0
- package/package.json +56 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 peng456
|
|
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,97 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-project-deck
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**把你的仓库、目录和半途项目,变成一块看得见进度的甲板。**
|
|
4
|
+
A project deck for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness):项目注册表 + 可视化面板 + 定时微信播报 + 自动发现 + 多机扫描。
|
|
5
|
+
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
## 30 秒 demo
|
|
9
|
+
|
|
10
|
+
不需要装任何东西(要 Python 3.9+):
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
git clone https://github.com/peng456/dsh-project-deck
|
|
14
|
+
cd dsh-project-deck
|
|
15
|
+
python3 backend/deck demo # 生成 4 个假项目,起面板
|
|
16
|
+
# → http://127.0.0.1:9299
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 它解决什么
|
|
20
|
+
|
|
21
|
+
你有 10 个仓库、3 个半成品、一堆会话散在不同工作区。这个插件做四件事:
|
|
22
|
+
|
|
23
|
+
1. **一个注册表**:`deck add <id> --root <path>`,别名、类型、优先级、下一步。
|
|
24
|
+
2. **一块面板**:卡片看 git 状态、最近活动、下一步;点项目标题直接跳进它最近的 DSH 会话。
|
|
25
|
+
3. **定时播报**:每 4 小时推一条微信(文字 + 看板图),有变化的项目优先,没变化的折叠一行;凌晨 0:30–6:30 不打扰。
|
|
26
|
+
4. **自动发现 + 多机扫描**:扫 DSH 工作区、git 仓库、标记文件自动登记新项目;手机/另一台电脑跑一个只读扫描器,把项目清单推给主机。
|
|
27
|
+
|
|
28
|
+
## 安装
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# 1. 后端(CLI + 面板 + 定时器)
|
|
32
|
+
./install.sh # 装到 ~/.project-deck,macOS 下注册 launchd
|
|
33
|
+
|
|
34
|
+
# 2. DSH 插件
|
|
35
|
+
dsh plugin --profile desktop add github:peng456/dsh-project-deck
|
|
36
|
+
# 或 Desktop → 插件 → 安装 github:peng456/dsh-project-deck
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
重启 DSH 后左下角出现 📋,**可以拖到页面任意位置**,位置会被记住;点开就是面板。
|
|
40
|
+
|
|
41
|
+
## 常用命令
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
deck add blog --root ~/code/blog --kind content --note "每周一篇实测"
|
|
45
|
+
deck list / status / doctor
|
|
46
|
+
deck report # 立刻播报(文字 + 图)
|
|
47
|
+
deck scan / scan --add # 发现新项目
|
|
48
|
+
deck nodes add --id phone --name "我的手机" --platform android
|
|
49
|
+
deck demo # 演示环境
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 播报长什么样
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
项目播报 · 11-05 06:49
|
|
56
|
+
12 个项目|活跃 12 · 阻塞 0 · 近 6 小时更新 3
|
|
57
|
+
|
|
58
|
+
- **个人 Agent**(代码)· 刚刚
|
|
59
|
+
进展:新增 1 个会话(共 5)·「多项目管理机制」
|
|
60
|
+
下一步:给 12 个项目建 STATE 骨架
|
|
61
|
+
- **API 服务**(代码)· 12 分钟前
|
|
62
|
+
进展:git 2 次提交(fix: 鉴权)· 3 个文件待提交
|
|
63
|
+
下一步:迁 v2 接口,补 12 个测试
|
|
64
|
+
无变化:官网改版、基础设施、…
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 配置(`~/.project-deck/config.json`)
|
|
68
|
+
|
|
69
|
+
| key | 默认 | 说明 |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| `report.intervalHours` | 4 | 播报周期 |
|
|
72
|
+
| `report.image` | true | 附看板图(需要 Chrome 无头截图) |
|
|
73
|
+
| `scan.intervalHours` | 12 | 自动发现周期 |
|
|
74
|
+
| `scan.threshold` | 70 | 自动登记分数线 |
|
|
75
|
+
| `schedule.quiet` | 00:30–06:30 | 安静时段,不播报不扫描 |
|
|
76
|
+
| `panel.allowLanRead` | true | 允许手机通过局域网看面板(只读) |
|
|
77
|
+
|
|
78
|
+
## 多机扫描
|
|
79
|
+
|
|
80
|
+
节点只读上报,不传文件内容:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Python / Node / Windows PowerShell 三种实现都在 backend/
|
|
84
|
+
python3 deck-node push --server http://<host>:9199 --token <token> --id my-phone
|
|
85
|
+
node deck-node.js loop --server ... --token ... --id my-laptop
|
|
86
|
+
powershell -File deck-node.ps1 -Server ... -Token ... -Id my-win
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 安全
|
|
90
|
+
|
|
91
|
+
- 面板写接口只对本机开放;读接口可开局域网(给手机看),`POST /api/node-scan` 始终要每节点 token;
|
|
92
|
+
- 微信推送走本地 `wxpush`(iLink);token 几小时无互动会过期,播报会跳过而不是堆积,你给 bot 发一句话就自动恢复;
|
|
93
|
+
- 别提交 `nodes.json` / `config.json`(里面有 token)。
|
|
94
|
+
|
|
95
|
+
## 许可
|
|
96
|
+
|
|
97
|
+
MIT
|
|
Binary file
|
|
Binary file
|