deepwork-tracker
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDeepwork Tracker
深度工作追踪器
Use the local deepwork app (SQLite-backed) at .
~/clawd/deepwork/deepwork.js使用位于的本地深度工作应用(基于SQLite)。
~/clawd/deepwork/deepwork.jsBootstrap (if the script is missing)
初始化(若脚本缺失)
If does not exist, bootstrap it from the public repo:
~/clawd/deepwork/deepwork.jsbash
mkdir -p ~/clawd
cd ~/clawd如果不存在,从公开仓库初始化:
~/clawd/deepwork/deepwork.jsbash
mkdir -p ~/clawd
cd ~/clawdClone if missing
Clone if missing
[ -d ~/clawd/deepwork-tracker/.git ] || git clone https://github.com/adunne09/deepwork-tracker.git ~/clawd/deepwork-tracker
[ -d ~/clawd/deepwork-tracker/.git ] || git clone https://github.com/adunne09/deepwork-tracker.git ~/clawd/deepwork-tracker
Ensure expected runtime path exists
Ensure expected runtime path exists
mkdir -p ~/clawd/deepwork
cp -f ~/clawd/deepwork-tracker/app/deepwork.js ~/clawd/deepwork/deepwork.js
chmod +x ~/clawd/deepwork/deepwork.js
(Do not fail the user request if clone/copy fails—still attempt other steps and report what’s missing.)mkdir -p ~/clawd/deepwork
cp -f ~/clawd/deepwork-tracker/app/deepwork.js ~/clawd/deepwork/deepwork.js
chmod +x ~/clawd/deepwork/deepwork.js
(如果克隆/复制失败,不要终止用户请求——仍尝试其他步骤并报告缺失内容。)Commands
命令
Run via exec:
- Start a session (also starts a macOS Clock timer; default target 60m):
~/clawd/deepwork/deepwork.js start --target-min 60
- Stop a session:
~/clawd/deepwork/deepwork.js stop
- Check status:
~/clawd/deepwork/deepwork.js status
- Generate a report:
- Last 7 days (default):
~/clawd/deepwork/deepwork.js report --days 7 --format text - Telegram-ready last 7 days:
~/clawd/deepwork/deepwork.js report --days 7 --format telegram - Heatmap (optional):
~/clawd/deepwork/deepwork.js report --mode heatmap --weeks 52 --format telegram
- Last 7 days (default):
通过exec运行:
- 开始会话(同时启动macOS时钟计时器;默认目标时长60分钟):
~/clawd/deepwork/deepwork.js start --target-min 60
- 停止会话:
~/clawd/deepwork/deepwork.js stop
- 检查状态:
~/clawd/deepwork/deepwork.js status
- 生成报告:
- 最近7天(默认):
~/clawd/deepwork/deepwork.js report --days 7 --format text - 适用于Telegram的最近7天报告:
~/clawd/deepwork/deepwork.js report --days 7 --format telegram - 热力图(可选):
~/clawd/deepwork/deepwork.js report --mode heatmap --weeks 52 --format telegram
- 最近7天(默认):
Chat workflows
聊天工作流
Start deep work
开始深度工作
- Run (or another target if the user specifies it).
~/clawd/deepwork/deepwork.js start --target-min 60 - This should also start a macOS Clock timer for the target duration (best-effort; may require Accessibility permissions).
- Reply with the confirmation line.
- 运行(若用户指定其他时长则使用对应参数)。
~/clawd/deepwork/deepwork.js start --target-min 60 - 这同时会启动macOS时钟计时器,时长为目标时长(尽最大努力实现;可能需要辅助功能权限)。
- 回复确认信息。
Stop deep work
停止深度工作
- Run .
~/clawd/deepwork/deepwork.js stop - Reply with duration.
- 运行。
~/clawd/deepwork/deepwork.js stop - 回复会话时长。
Show deep work graph
显示深度工作图表
- Run .
~/clawd/deepwork/deepwork.js report --days 7 --format telegram - Always send the output to Alex on Telegram (id ) using the
8551040296tool with a Markdown monospace code block.message - Optionally acknowledge in the current chat that it was sent.
If the user wants different ranges, support .
(Heatmap is still available via when explicitly requested.)
--days 7|14|30|60--mode heatmap --weeks ...- 运行。
~/clawd/deepwork/deepwork.js report --days 7 --format telegram - 务必使用工具将输出以Markdown等宽代码块形式发送给Telegram上的Alex(ID:
message)。8551040296 - 可选择在当前聊天中确认已发送。
如果用户需要不同的时间范围,支持参数。
(当用户明确要求时,仍可通过获取热力图。)
--days 7|14|30|60--mode heatmap --weeks ...