task-ledger 1.3.58 → 1.3.59

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/README.md CHANGED
@@ -56,7 +56,7 @@ Then copy it for the agent you use. User-level paths apply to every project; pro
56
56
 
57
57
  **Other agents.** Place the directory under `.agents/skills/task-ledger/`, or wherever the agent scans for `SKILL.md`. Nothing in the package depends on the host: the CLI is a static binary, the content is Markdown.
58
58
 
59
- **Windows.** Substitute `%USERPROFILE%\` for `~`. The CLI ships binaries for Linux (amd64), macOS (arm64) and Windows (amd64); the wrapper script selects the right one.
59
+ **Windows.** Substitute `%USERPROFILE%\` for `~`, and replace every `scripts/progress` below with `scripts\bin\ledger-windows-amd64.exe`: CreateProcessW cannot execute an extensionless sh wrapper (it appends `.exe`, finds nothing, and fails). The wrapper still works under Git Bash / WSL. The CLI ships binaries for Linux (amd64), macOS (arm64) and Windows (amd64).
60
60
 
61
61
  ## First run
62
62
 
@@ -68,7 +68,7 @@ Once per machine, initialise the identity that signs every ledger entry. The ste
68
68
 
69
69
  On a second machine, run `init` without arguments and claim the identity already present in the ledger roster, so that both machines write under the same account.
70
70
 
71
- No runtime, package manager or network access is required afterwards.
71
+ No runtime, package manager or network access is required afterwards. Multi-user synchronisation requires Git 2.27 or newer.
72
72
 
73
73
  ## Using it
74
74
 
@@ -96,6 +96,18 @@ Four rules bind the agent:
96
96
  - It completes the written record before closing: a closed task cannot be written to again.
97
97
  - When it cannot find a task for the work at hand, it asks whether to create one instead of registering work you did not ask for.
98
98
 
99
+ ### Recommended: put it in your rules file
100
+
101
+ The skill only loads when a request matches one of those intents, and "should this piece of work be tracked" is not one of them. A standing rule in the project's `AGENTS.md` (or whichever rules file your agent reads) is far more reliable on its own. Copy this block:
102
+
103
+ ```markdown
104
+ - **Every piece of task progress, work item and work log (create / advance / query / close) goes through the `task-ledger` skill**; answer progress and history questions from it, never from conversation memory or a hand-rolled list.
105
+ - **Creation anchor**: hand something to `task-ledger` only when the user explicitly asks for a new task ("open a task", "log this first", "create a task"). Questions, queries, discussion and small incidental edits do not count — ask when unsure, and never create a task without an explicit instruction.
106
+ - **Ask in passing**: when the user is pushing forward work that spans turns (this turn ends with actions still on your plate) and has never mentioned tracking it, ask once after answering: "Want me to open a ledger for this task? (Ignore this if not needed — no reply necessary.)" Once asked in a session, do not ask again; no reply means ignore it.
107
+ ```
108
+
109
+ Without it the skill still works — it just acts only when you mention the task yourself.
110
+
99
111
  ## What gets written
100
112
 
101
113
  ```
@@ -116,7 +128,7 @@ State and prose are kept apart: JSON records ownership and state, Markdown recor
116
128
  | `init` | Initialise or claim the machine identity (once per machine) |
117
129
  | `new` | Create a task |
118
130
  | `claim` | Take ownership of a task |
119
- | `set` | Change state, owner, tags or notes |
131
+ | `set` | Release a task, hand it to someone, or replace its tags |
120
132
  | `log` | Append an execution record to a task document |
121
133
  | `close` | Close a task and write its history row |
122
134
  | `delete` | Delete a task created in error |
package/README.zh-CN.md CHANGED
@@ -56,7 +56,7 @@ git clone --depth 1 https://github.com/cq-guojia/dsh-task-ledger.git /tmp/task-l
56
56
 
57
57
  **其他代理。** 将目录放到 `.agents/skills/task-ledger/`,或该代理扫描 `SKILL.md` 的位置。本包不依赖任何宿主:命令行是静态二进制,内容均为 Markdown。
58
58
 
59
- **Windows。** 将路径中的 `~` 替换为 `%USERPROFILE%\`。命令行提供 Linux(amd64)、macOS(arm64)与 Windows(amd64)三个平台的二进制,由包装脚本自动选择。
59
+ **Windows。** 将路径中的 `~` 替换为 `%USERPROFILE%\`;下面所有 `scripts/progress` 都要换成 `scripts\bin\ledger-windows-amd64.exe`(无扩展名的 sh 包装在 Windows 上不可执行:CreateProcessW 会按扩展名补 `.exe` 去找,然后报找不到)。在 Git Bash / WSL 里仍可用 `scripts/progress`。命令行提供 Linux(amd64)、macOS(arm64)与 Windows(amd64)三个平台的二进制。
60
60
 
61
61
  ## 首次使用
62
62
 
@@ -68,7 +68,7 @@ git clone --depth 1 https://github.com/cq-guojia/dsh-task-ledger.git /tmp/task-l
68
68
 
69
69
  在第二台机器上,直接运行 `init` 并从台账名册中认领已有身份,两台机器便以同一账号写入。
70
70
 
71
- 此后无需任何运行时、包管理器或网络。
71
+ 此后无需任何运行时、包管理器或网络;多人同步需 Git 2.27 及以上。
72
72
 
73
73
  ## 怎么用
74
74
 
@@ -96,6 +96,18 @@ git clone --depth 1 https://github.com/cq-guojia/dsh-task-ledger.git /tmp/task-l
96
96
  - 结案前必须先把记录写完 —— 已结案的任务不能再写。
97
97
  - 找不到对应任务时,它问你要不要新建,而不是替你登记你没要求登记的工作。
98
98
 
99
+ ### 建议把它写进规则文件
100
+
101
+ skill 只在请求命中意图时才加载 —— 你手上这件活该不该记账,不在这几个触发词里。所以在项目的 `AGENTS.md`(或等价的代理规则文件)里放一段常驻规则,比只装 skill 稳得多。复制下面这块即可:
102
+
103
+ ```markdown
104
+ - **凡任务进度、工作事项与工作日志(新建 / 推进 / 查询 / 结案)一律调用 `task-ledger` skill 管理**;进度 / 历史类问题一律走它作答,不凭对话记忆或自建清单顶替。
105
+ - **开工锚点**:仅当用户明确说要新建(如「开个新坑」「先记一下」「建个任务」)才交给 `task-ledger` 登记;提问 / 查询 / 讨论 / 顺手小改不算,拿不准先问,未经用户明确指令不得擅自新建任务。
106
+ - **顺手问一句**:用户在推进一件跨轮的事(这轮答完、手上还有下一步动作没做完)、却从没提过记账时,答完问一次「你现在这个任务是需要帮你建一个台账吗?(如果无需,忽略这句话,也不用去回复。)」;本会话问过一次就别再问,无回复就忽略。
107
+ ```
108
+
109
+ 不写这段也能用,只是它只在你明确提到任务时才会动。
110
+
99
111
  ## 落盘的数据
100
112
 
101
113
  ```
@@ -116,7 +128,7 @@ ledger/
116
128
  | `init` | 初始化或认领本机身份(一台机器一次) |
117
129
  | `new` | 新建任务 |
118
130
  | `claim` | 认领任务 |
119
- | `set` | 修改状态、责任人、标签或备注 |
131
+ | `set` | 释放任务、转交他人或整组替换标签 |
120
132
  | `log` | 向任务正文追加一条执行记录 |
121
133
  | `close` | 结案,并写入历史 |
122
134
  | `delete` | 删除建错的任务 |
package/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: task-ledger
3
3
  description: 本地任务台账,跨会话记录在办任务的归属、进度与起止。当用户要登记一件新的事(新建任务 / 建个坑 / 这活我领了)、记录已有任务的进展(接着做 / 记一条进展 / 这轮先记下)、查看任务状态或历史(现在该做什么 / 这活谁在做 / 上周做过什么)、给任务结案 / 取消作废 / 退回(做完了 / 验收通过 / 取消 / 作废 / 退回待认领)、删除建错的或垃圾任务(只认「删除」二字)、整理标签或检查台账一致性时加载;同一件事做了多轮、用户始终没提记账时也加载,问一句要不要建台账(只提醒一次,无需就忽略)。
4
- version: 1.3.58
4
+ version: 1.3.59
5
5
  allowed-tools: Read,Edit,Bash,Grep
6
6
  ---
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-ledger",
3
- "version": "1.3.58",
3
+ "version": "1.3.59",
4
4
  "description": "Task-ledger skill for coding agents: per-workspace progress tracking (ledger/pool.json + owners/<hash>.json shards + owners.json index, history, worklog) driven by a CLI script. Standalone install for CodeBuddy and other agents; also bundled inside the dsh-task-ledger DSH plugin.",
5
5
  "keywords": [
6
6
  "skill",