@gfgghgftgffg/rpiv-todo-lean 0.1.13 → 0.1.15
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/MAINTENANCE.md +15 -0
- package/README.md +52 -24
- package/README.zh-CN.md +52 -22
- package/package.json +5 -5
package/MAINTENANCE.md
CHANGED
|
@@ -221,6 +221,21 @@
|
|
|
221
221
|
- 本次无门面行为变化,不加重复测试或修改既有断言。check 实际执行类型/既有回归/契约、三包独立
|
|
222
222
|
生产安装和两种审计,并重测字符代理;结果以其输出为准。ceil(chars/4) 非计费 token,Pi 1.4 与交互 UI 未实测。
|
|
223
223
|
|
|
224
|
+
## 本次 lean-only 审查:作者文档与图表重写
|
|
225
|
+
|
|
226
|
+
- sources.json 精确作者 before/after:`664409f1e91e7eb8375cb0e473321a7075f20de1` →
|
|
227
|
+
`b9b799537282eb7c37d4bae28c47232cd6e49936`。完整比较两版 397 行 index.ts,入口逐行相同;
|
|
228
|
+
阅读两版 package.json 与中英文 README。没有新 action、字段、默认值或执行逻辑可复用。
|
|
229
|
+
- 作者仅将 package description 改为不带旧字符代理百分比的功能描述,重写双语文档并新增 chart 资产;
|
|
230
|
+
todo/i18n pins 仍是 2.15.0。保留本仓脚本管理元数据、当前中英文说明与 check 实测代理,
|
|
231
|
+
不复制其锁文件、图表或测量。
|
|
232
|
+
- 历史未采用功能不变:withHostPlan、bare id 推断和较强逐步 workflow 指令不因文档重写重新引入。
|
|
233
|
+
本地完整批量 schema、hook-first 归一化、原子执行、RPC 会话隔离、stale guards 与异步命令等待保持;
|
|
234
|
+
不替换为作者入口或原地修改上游 schema。无本地源码变化,不新增重复测试或放宽既有断言。
|
|
235
|
+
- 本次没有引擎 before/after/CHANGELOG;todo/i18n 稳定版仍为 2.15.0 /
|
|
236
|
+
`ce6d3530410812ca504ec294995581a52170f9e1`,不采用或声称审查远端
|
|
237
|
+
`1a4add9dbe61597059a93dd9200bf25d51238659`。本包不升版;check 的实际选定范围与审计结果以输出为准。
|
|
238
|
+
|
|
224
239
|
## 升级步骤
|
|
225
240
|
|
|
226
241
|
1. `npm view @juicesharp/rpiv-todo version` 确认目标稳定版本,对比 manifest 中当前固定版本/revision 与目标源码(`tool/types.ts`、`todo.ts`、`todo-overlay.ts`、`index.ts`、`state/*`)及 `CHANGELOG.md`。
|
package/README.md
CHANGED
|
@@ -1,17 +1,60 @@
|
|
|
1
1
|
# @gfgghgftgffg/rpiv-todo-lean
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo): the
|
|
5
|
-
complete task-management engine behind one compact `todo` tool. Runtime updates follow upstream.
|
|
3
|
+
[简体中文](README.zh-CN.md)
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
by [juicesharp](https://github.com/juicesharp/rpiv-mono). Both are MIT-licensed; the original `LICENSE`
|
|
9
|
-
is preserved in this package.
|
|
5
|
+
## Advantage
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
A lighter wrapper for [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo). Tasks, dependencies, batch creation and `/todos` remain, with about 77% less tool text sent on the first call.
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- The model sees one `todo` tool: `create`, `update`, `list`, `get`, `delete`, `clear`.
|
|
12
|
+
- If `action` is omitted, a `subject` means create, and an `id` plus a mutable field means update. Anything else is reported by upstream.
|
|
13
|
+
- Fields, validation, persistence and per-session isolation stay on the upstream engine. `/todos` stays available.
|
|
14
|
+
|
|
15
|
+
## Source
|
|
16
|
+
|
|
17
|
+
The facade comes from [kunkun9527/rpiv-todo-lean](https://github.com/kunkun9527/rpiv-todo-lean). The engine is [juicesharp/rpiv-todo](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo). This package follows upstream releases and does not copy the engine. Both are MIT; the original `LICENSE` is kept. It lives in [amox-pi-extensions-lean](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/README.md).
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Create one task. A `subject` alone is enough:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{ "subject": "Inspect the cache" }
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Create several:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{ "action": "create", "tasks": [{ "subject": "Inspect" }, { "subject": "Test" }] }
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Mark one finished. An `id` plus a field is an update:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{ "id": "1", "status": "completed" }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
List, read, delete, or empty the list:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{ "action": "list" }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{ "action": "get", "id": "1" }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{ "action": "delete", "id": "1" }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{ "action": "clear" }
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
New tasks start as `pending`. For several steps, keep one task `in_progress` and set it to `completed` when that step is done. `list` hides deleted tasks. `clear` empties the list and starts ids over. A dependency is `blockedBy`. Other fields are in the [upstream documentation](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo).
|
|
15
58
|
|
|
16
59
|
## Installation
|
|
17
60
|
|
|
@@ -30,21 +73,6 @@ node scripts/install-extension.mjs rpiv-todo-lean
|
|
|
30
73
|
|
|
31
74
|
Update a local Git installation by pulling the checkout and rerunning its installer; `pi update` does not update local contents. Keep one installation source. To migrate, back up settings, remove only the exact old source shown by `pi list`, then install the npm source. Do not load another `rpiv-todo` wrapper alongside it.
|
|
32
75
|
|
|
33
|
-
## Usage
|
|
34
|
-
|
|
35
|
-
The model sees one tool, `todo`, with actions `create`, `update`, `list`, `get`, `delete`, `clear`.
|
|
36
|
-
`action` is normally required; when it is omitted the facade infers `create` from `subject` or
|
|
37
|
-
`update` from `id` plus a mutable field, and otherwise lets upstream report the error.
|
|
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
|
-
|
|
43
|
-
New tasks default to `pending`. For multi-step work, keep one task `in_progress` and mark it
|
|
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.
|
|
47
|
-
|
|
48
76
|
## Context footprint (character proxy)
|
|
49
77
|
|
|
50
78
|
<!-- amox-measurement:start -->
|
package/README.zh-CN.md
CHANGED
|
@@ -1,16 +1,60 @@
|
|
|
1
1
|
# @gfgghgftgffg/rpiv-todo-lean
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo) 的精简封装:
|
|
5
|
-
将完整任务管理引擎收束为一个紧凑的 `todo` 工具。运行时随上游更新。
|
|
3
|
+
[English](README.md)
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
[juicesharp](https://github.com/juicesharp/rpiv-mono)。两者均为 MIT 协议,本包保留原始 `LICENSE`。
|
|
5
|
+
## 优点
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
为 [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo) 提供更轻量的封装。任务、依赖、批量创建和 `/todos` 都还在,首轮就要带上的工具注册文本大约少 77%。
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
## 功能
|
|
10
|
+
|
|
11
|
+
- 模型只看到一个 `todo` 工具:`create`、`update`、`list`、`get`、`delete`、`clear`。
|
|
12
|
+
- 省略 `action` 时,带 `subject` 按创建处理,带 `id` 和可改字段按更新处理。其余情况由上游报错。
|
|
13
|
+
- 字段、校验、持久化和按会话隔离仍在上游引擎里。`/todos` 仍可用。
|
|
14
|
+
|
|
15
|
+
## 来源
|
|
16
|
+
|
|
17
|
+
门面来自 [kunkun9527/rpiv-todo-lean](https://github.com/kunkun9527/rpiv-todo-lean)。引擎是 [juicesharp/rpiv-todo](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo)。本包跟随上游发布,不复制引擎。两者都是 MIT,本包保留原始 `LICENSE`。它属于 [amox-pi-extensions-lean](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/README.zh-CN.md)。
|
|
18
|
+
|
|
19
|
+
## 使用方法
|
|
20
|
+
|
|
21
|
+
建一条任务。只写 `subject` 即可:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{ "subject": "Inspect the cache" }
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
一次建多条:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{ "action": "create", "tasks": [{ "subject": "Inspect" }, { "subject": "Test" }] }
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
把一条标成完成。有 `id` 再加一个字段,就是更新:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{ "id": "1", "status": "completed" }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
列出、读取、删除,或清空:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{ "action": "list" }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{ "action": "get", "id": "1" }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{ "action": "delete", "id": "1" }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{ "action": "clear" }
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
新任务一开始是 `pending`。分几步做时,保持一条为 `in_progress`,做完改成 `completed`。`list` 不显示已删除的任务。`clear` 清空列表并重新编号。依赖用 `blockedBy`。其余字段见[上游文档](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo)。
|
|
14
58
|
|
|
15
59
|
## 安装
|
|
16
60
|
|
|
@@ -29,20 +73,6 @@ node scripts/install-extension.mjs rpiv-todo-lean
|
|
|
29
73
|
|
|
30
74
|
本地 Git 安装通过拉取 checkout 并重跑安装脚本更新,`pi update` 不更新本地内容。只保留一种安装来源。迁移时先备份 settings,移除 `pi list` 显示的精确旧来源,再安装 npm 来源。请勿同时加载其它 `rpiv-todo` 包装扩展。
|
|
31
75
|
|
|
32
|
-
## 使用方法
|
|
33
|
-
|
|
34
|
-
模型仅看到一个 `todo` 工具,操作包括 `create`、`update`、`list`、`get`、`delete`、`clear`。
|
|
35
|
-
通常需要显式传入 `action`;省略时封装会依据 `subject` 推断 `create`,或依据 `id` 加可变字段推断
|
|
36
|
-
`update`,其余情况交由上游报错。
|
|
37
|
-
|
|
38
|
-
创建任务传 `subject`;批量创建使用 `action: "create"` 和 `tasks`,例如
|
|
39
|
-
`{"action":"create","tasks":[{"subject":"Inspect"},{"subject":"Test"}]}`。
|
|
40
|
-
更新和查询指定任务时传 `id`,依赖使用 `blockedBy`。
|
|
41
|
-
|
|
42
|
-
新任务默认 `pending`。多步骤工作保持一个任务为 `in_progress`,完成后及时标记为 `completed`。
|
|
43
|
-
`list` 默认不含已删除任务;`clear` 清空列表并重置 ID。
|
|
44
|
-
完整字段、批量规则和 `/todos` 用法见[上游文档](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo)。
|
|
45
|
-
|
|
46
76
|
## 上下文占用(字符代理)
|
|
47
77
|
|
|
48
78
|
<!-- amox-measurement:start -->
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfgghgftgffg/rpiv-todo-lean",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "A lighter wrapper for @juicesharp/rpiv-todo: tasks and dependencies remain, with about 77% less tool text on the first call.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"typebox": "*"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@earendil-works/pi-ai": "1.
|
|
60
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
61
|
-
"@earendil-works/pi-tui": "1.
|
|
59
|
+
"@earendil-works/pi-ai": "1.4.0",
|
|
60
|
+
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
61
|
+
"@earendil-works/pi-tui": "1.4.0",
|
|
62
62
|
"jiti": "2.7.0",
|
|
63
63
|
"typebox": "1.3.36",
|
|
64
64
|
"typescript": "7.0.2"
|