@gfgghgftgffg/rpiv-todo-lean 0.1.13 → 0.1.14

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 +52 -24
  2. package/README.zh-CN.md +52 -22
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,17 +1,60 @@
1
1
  # @gfgghgftgffg/rpiv-todo-lean
2
2
 
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
- [`@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
- Original lean facade by [kunkun9527](https://github.com/kunkun9527/rpiv-todo-lean); upstream extension
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
- ## Core features
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
- * Keeps upstream task lifecycle, dependencies, batch creation and the `/todos` interface.
14
- * Compact descriptions and schema retain native fields, validation, persistence and session isolation.
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
- 隶属于 [`amox-pi-extensions-lean`](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/README.zh-CN.md) 单仓。基于
4
- [`@juicesharp/rpiv-todo`](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-todo) 的精简封装:
5
- 将完整任务管理引擎收束为一个紧凑的 `todo` 工具。运行时随上游更新。
3
+ [English](README.md)
6
4
 
7
- 原 lean 封装作者 [kunkun9527](https://github.com/kunkun9527/rpiv-todo-lean),上游扩展作者
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
- * 保留上游任务生命周期、依赖、批量创建和 `/todos` 界面。
13
- * 压缩描述和 Schema,保留原生字段、校验、持久化与会话隔离。
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.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
- "description": "Lean Pi todo extension: the full @juicesharp/rpiv-todo runtime with a compact flat schema and per-session RPC overlay handling preserved.",
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"