deepwork-tracker

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Deepwork Tracker

深度工作追踪器

Use the local deepwork app (SQLite-backed) at
~/clawd/deepwork/deepwork.js
.
使用位于
~/clawd/deepwork/deepwork.js
的本地深度工作应用(基于SQLite)。

Bootstrap (if the script is missing)

初始化(若脚本缺失)

If
~/clawd/deepwork/deepwork.js
does not exist, bootstrap it from the public repo:
bash
mkdir -p ~/clawd
cd ~/clawd
如果
~/clawd/deepwork/deepwork.js
不存在,从公开仓库初始化:
bash
mkdir -p ~/clawd
cd ~/clawd

Clone 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
通过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

Chat workflows

聊天工作流

Start deep work

开始深度工作

  1. Run
    ~/clawd/deepwork/deepwork.js start --target-min 60
    (or another target if the user specifies it).
  2. This should also start a macOS Clock timer for the target duration (best-effort; may require Accessibility permissions).
  3. Reply with the confirmation line.
  1. 运行
    ~/clawd/deepwork/deepwork.js start --target-min 60
    (若用户指定其他时长则使用对应参数)。
  2. 这同时会启动macOS时钟计时器,时长为目标时长(尽最大努力实现;可能需要辅助功能权限)。
  3. 回复确认信息。

Stop deep work

停止深度工作

  1. Run
    ~/clawd/deepwork/deepwork.js stop
    .
  2. Reply with duration.
  1. 运行
    ~/clawd/deepwork/deepwork.js stop
  2. 回复会话时长。

Show deep work graph

显示深度工作图表

  1. Run
    ~/clawd/deepwork/deepwork.js report --days 7 --format telegram
    .
  2. Always send the output to Alex on Telegram (id
    8551040296
    ) using the
    message
    tool with a Markdown monospace code block.
  3. Optionally acknowledge in the current chat that it was sent.
If the user wants different ranges, support
--days 7|14|30|60
. (Heatmap is still available via
--mode heatmap --weeks ...
when explicitly requested.)
  1. 运行
    ~/clawd/deepwork/deepwork.js report --days 7 --format telegram
  2. 务必使用
    message
    工具将输出以Markdown等宽代码块形式发送给Telegram上的Alex(ID:
    8551040296
    )。
  3. 可选择在当前聊天中确认已发送。
如果用户需要不同的时间范围,支持
--days 7|14|30|60
参数。 (当用户明确要求时,仍可通过
--mode heatmap --weeks ...
获取热力图。)