@gfgghgftgffg/rpiv-todo-lean 0.1.11 → 0.1.13

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.
Files changed (3) hide show
  1. package/README.md +15 -44
  2. package/README.zh-CN.md +14 -38
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  Part of the [`amox-pi-extensions-lean`](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/README.md) monorepo. A lightweight Pi facade for
4
4
  [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo): the
5
- complete task-management engine with a compact schema, preserved RPC/session/overlay behavior,
6
- and per-session isolated overlays.
5
+ complete task-management engine behind one compact `todo` tool. Runtime updates follow upstream.
7
6
 
8
7
  Original lean facade by [kunkun9527](https://github.com/kunkun9527/rpiv-todo-lean); upstream extension
9
8
  by [juicesharp](https://github.com/juicesharp/rpiv-mono). Both are MIT-licensed; the original `LICENSE`
@@ -11,14 +10,8 @@ is preserved in this package.
11
10
 
12
11
  ## Core features
13
12
 
14
- * Full task lifecycle: `create`, `update`, `list`, `get`, `delete`, `clear`, status transitions,
15
- `blockedBy` dependencies, metadata, `/todos` command, and branch replay.
16
- * Compact provider-facing schema: all native fields, including batch items, are retained. Verbose
17
- descriptions and redundant constraints are removed without changing validation; guidelines use one line.
18
- * Upstream persistence preserved: every state-changing call still appends upstream's
19
- `rpiv-todo-state` custom entry so replay survives codemode-style calls.
20
- * RPC/session behavior preserved: per-session state slots, per-session overlays, stale-context
21
- handling, and the shortcut/command wrappers from the original lean facade are retained.
13
+ * Keeps upstream task lifecycle, dependencies, batch creation and the `/todos` interface.
14
+ * Compact descriptions and schema retain native fields, validation, persistence and session isolation.
22
15
 
23
16
  ## Installation
24
17
 
@@ -43,48 +36,26 @@ The model sees one tool, `todo`, with actions `create`, `update`, `list`, `get`,
43
36
  `action` is normally required; when it is omitted the facade infers `create` from `subject` or
44
37
  `update` from `id` plus a mutable field, and otherwise lets upstream report the error.
45
38
 
39
+ Create a task with `subject`; batch creation uses `action: "create"` and `tasks`, for example
40
+ `{"action":"create","tasks":[{"subject":"Inspect"},{"subject":"Test"}]}`.
41
+ Use `id` to update or retrieve a task and `blockedBy` for dependencies.
42
+
46
43
  New tasks default to `pending`. For multi-step work, keep one task `in_progress` and mark it
47
- `completed` promptly when finished. Create one with `subject`, or create independent tasks atomically with
48
- `{"action":"create","tasks":[{"subject":"Inspect"},{"subject":"Test"}]}`. Batch calls require explicit
49
- `action: "create"`; `tasks` and individual items may be JSON strings and are normalized before validation.
50
- Use either `subject` or a nonempty `tasks` array. In a batch, put `description`, `activeForm`, `blockedBy`,
51
- `owner`, and `metadata` on each item. Invalid items reject the whole batch without changing the list.
52
- Items can depend on existing tasks, but cannot reference another item in the same batch; create prerequisites first.
53
-
54
- Listing excludes deleted tasks unless `includeDeleted: true`; clearing resets task IDs to 1.
55
- State persists through `rpiv-todo-state` entries, with legacy tool-result replay retained. Malformed saved
56
- snapshots are skipped as a whole, retaining the latest valid snapshot. Failed calls show an error card;
57
- model-facing errors remain in text content and `details.error`. RPC responses are not expanded with an
58
- additional full-plan snapshot.
44
+ `completed` promptly when finished. `list` excludes deleted tasks by default; `clear` empties the list
45
+ and resets IDs. See the [upstream documentation](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo)
46
+ for all fields, batch rules and `/todos` usage.
59
47
 
60
48
  ## Context footprint (character proxy)
61
49
 
62
50
  <!-- amox-measurement:start -->
63
- | Package | Version | Registered character proxy |
64
- | --- | --- | ---: |
65
- | @gfgghgftgffg/rpiv-todo-lean | 0.1.11 | 277 |
66
- | @juicesharp/rpiv-todo | 2.15.0 | 1222 |
51
+ | Package | Registered character proxy |
52
+ | --- | ---: |
53
+ | @gfgghgftgffg/rpiv-todo-lean | 277 |
54
+ | @juicesharp/rpiv-todo | 1222 |
67
55
 
68
56
  Fixed ceil(characters / 4), not provider billing tokens.
69
57
  <!-- amox-measurement:end -->
70
58
 
71
- ## Versions
72
-
73
- * Wrapper: `0.1.11`
74
- * Upstream runtime: pinned to `@juicesharp/rpiv-todo@2.15.0` and `@juicesharp/rpiv-i18n@2.15.0` (exact)
75
- * Development test baseline: Pi `1.1.0`, Node `22.22.1`.
76
-
77
59
  ## Development
78
60
 
79
- Run from the repository root: `npm ci`, `npm run check`, `npm run contracts:check`.
80
-
81
- ## Maintenance
82
-
83
- Adaptation points, pinned upstream metadata, upgrade history, source-review decisions, and limitations
84
- live in [MAINTENANCE.md](MAINTENANCE.md). This README describes current usage, not individual releases.
85
-
86
- ## License
87
-
88
- MIT. This package wraps the MIT-licensed
89
- [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo);
90
- upstream code is consumed as a pinned npm dependency and is never copied into this repository.
61
+ See the [development and maintenance guide](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/docs/maintenance.md) and [MAINTENANCE.md](MAINTENANCE.md) for adaptation details.
package/README.zh-CN.md CHANGED
@@ -2,18 +2,15 @@
2
2
 
3
3
  隶属于 [`amox-pi-extensions-lean`](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/README.zh-CN.md) 单仓。基于
4
4
  [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo) 的精简封装:
5
- 保留完整任务管理引擎,使用紧凑 Schema,并保留原 lean 封装的 RPC/会话/覆盖层行为与逐会话隔离。
5
+ 将完整任务管理引擎收束为一个紧凑的 `todo` 工具。运行时随上游更新。
6
6
 
7
7
  原 lean 封装作者 [kunkun9527](https://github.com/kunkun9527/rpiv-todo-lean),上游扩展作者
8
8
  [juicesharp](https://github.com/juicesharp/rpiv-mono)。两者均为 MIT 协议,本包保留原始 `LICENSE`。
9
9
 
10
10
  ## 核心特性
11
11
 
12
- * 完整任务生命周期:`create`、`update`、`list`、`get`、`delete`、`clear`,状态流转、`blockedBy`
13
- 依赖、元数据、`/todos` 命令与分支回放全部沿用上游。
14
- * 精简模型侧 Schema:保留全部原生字段和批量项,去除冗长描述及等价冗余约束,不改变校验语义;Prompt 指南压缩为一行。
15
- * 保留上游持久化:每次改变状态仍写入上游的 `rpiv-todo-state` 自定义条目,codemode 等路径下的回放不受影响。
16
- * 保留 RPC/会话行为:逐会话状态槽、逐会话覆盖层、失效上下文处理及快捷键/命令包装均与原 lean 封装一致。
12
+ * 保留上游任务生命周期、依赖、批量创建和 `/todos` 界面。
13
+ * 压缩描述和 Schema,保留原生字段、校验、持久化与会话隔离。
17
14
 
18
15
  ## 安装
19
16
 
@@ -38,46 +35,25 @@ node scripts/install-extension.mjs rpiv-todo-lean
38
35
  通常需要显式传入 `action`;省略时封装会依据 `subject` 推断 `create`,或依据 `id` 加可变字段推断
39
36
  `update`,其余情况交由上游报错。
40
37
 
41
- 新任务默认 `pending`。多步骤工作保持一个任务为 `in_progress`,完成后及时标记为 `completed`。
42
- 单个创建传 `subject`,独立任务可原子批量创建:
43
- `{"action":"create","tasks":[{"subject":"Inspect"},{"subject":"Test"}]}`。批量调用须显式传
44
- `action: "create"`;`tasks` 或其中各项为 JSON 字符串时,上游在校验前归一化。
45
- `subject` 与非空 `tasks` 数组二选一。批量的 `description`、`activeForm`、`blockedBy`、`owner`、
46
- `metadata` 须放在各项内;任一项无效则整批拒绝,任务列表不变。可依赖已有任务,但不能引用同批其它项,
47
- 依赖链须先创建前置任务。
38
+ 创建任务传 `subject`;批量创建使用 `action: "create"` 和 `tasks`,例如
39
+ `{"action":"create","tasks":[{"subject":"Inspect"},{"subject":"Test"}]}`。
40
+ 更新和查询指定任务时传 `id`,依赖使用 `blockedBy`。
48
41
 
49
- list 默认不含已删除任务,`includeDeleted: true` 可包含;clear 重置任务 ID 为 1。
50
- 状态通过 `rpiv-todo-state` 条目持久化,保留历史工具结果回放;损坏的已存快照整条跳过,保留最近有效快照。
51
- 失败调用显示错误卡片;模型侧错误仍在文本 content 与 `details.error` 中。RPC 响应不会额外追加全量 Plan 快照。
42
+ 新任务默认 `pending`。多步骤工作保持一个任务为 `in_progress`,完成后及时标记为 `completed`。
43
+ `list` 默认不含已删除任务;`clear` 清空列表并重置 ID。
44
+ 完整字段、批量规则和 `/todos` 用法见[上游文档](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo)。
52
45
 
53
46
  ## 上下文占用(字符代理)
54
47
 
55
48
  <!-- amox-measurement:start -->
56
- | Package | Version | Registered character proxy |
57
- | --- | --- | ---: |
58
- | @gfgghgftgffg/rpiv-todo-lean | 0.1.11 | 277 |
59
- | @juicesharp/rpiv-todo | 2.15.0 | 1222 |
49
+ | Package | Registered character proxy |
50
+ | --- | ---: |
51
+ | @gfgghgftgffg/rpiv-todo-lean | 277 |
52
+ | @juicesharp/rpiv-todo | 1222 |
60
53
 
61
54
  Fixed ceil(characters / 4), not provider billing tokens.
62
55
  <!-- amox-measurement:end -->
63
56
 
64
- ## 版本
65
-
66
- * 包装层:`0.1.11`
67
- * 上游运行时:锁定 `@juicesharp/rpiv-todo@2.15.0` 与 `@juicesharp/rpiv-i18n@2.15.0`(精确版本)
68
- * 开发测试基线:Pi `1.1.0`、Node `22.22.1`。
69
-
70
57
  ## 开发
71
58
 
72
- 在仓库根目录运行:`npm ci`、`npm run check`、`npm run contracts:check`。
73
-
74
- ## 维护说明
75
-
76
- 适配点、上游元数据、升级历史、源码审查决定与限制见 [MAINTENANCE.md](MAINTENANCE.md)。
77
- README 只说明当前用法,不记录逐次发布过程。
78
-
79
- ## 协议与致谢
80
-
81
- MIT。本项目封装 MIT 协议的
82
- [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo);
83
- 上游代码以固定 npm 依赖方式使用,未复制进本仓库。
59
+ [开发检查与维护策略](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/docs/maintenance.md);适配细节见 [MAINTENANCE.md](MAINTENANCE.md)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gfgghgftgffg/rpiv-todo-lean",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "description": "Lean Pi todo extension: the full @juicesharp/rpiv-todo runtime with a compact flat schema and per-session RPC overlay handling preserved.",
6
6
  "license": "MIT",