@gfgghgftgffg/rpiv-todo-lean 0.1.4 → 0.1.6

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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  本文件记录本包与原 lean 基线的差异、锁定的上游版本、依赖的上游内部细节、升级步骤与已知限制。
4
4
 
5
+ 历史审查中的“未运行”“待 CI”或人工审批要求只记录当时阶段,不代表当前 CI/发布结果或现行审批要求。当前自动合并与 OIDC 发布规则见[维护者文档](https://github.com/gfgghgftgffg/amox_pi_extensions_lean/blob/main/docs/maintenance.md)。
6
+
5
7
  ## 来源与基线
6
8
 
7
9
  - 上游扩展:`@juicesharp/rpiv-todo`(npm),作者 juicesharp,仓库
@@ -12,13 +14,13 @@
12
14
 
13
15
  ## 锁定的上游版本
14
16
 
15
- - `@juicesharp/rpiv-todo@2.13.8`(精确固定;`dependencies`;此前为 2.13.5)。
16
- - `@juicesharp/rpiv-i18n@2.13.8`(精确固定;上游仍为可选 peer,保留安装以维持本地化 UI)。
17
- - 上游 2.13.8 自带传递依赖 `@juicesharp/rpiv-config@^2.13.8`(此前为 ^2.13.5;由 npm 解析,不显式固定)。
17
+ - `@juicesharp/rpiv-todo@2.13.9`(精确固定;`dependencies`;此前为 2.13.8)。
18
+ - `@juicesharp/rpiv-i18n@2.13.9`(精确固定;上游仍为可选 peer,保留安装以维持本地化 UI)。
19
+ - 上游 2.13.9 自带传递依赖 `@juicesharp/rpiv-config@^2.13.9`(此前为 ^2.13.8;由 npm 解析,不显式固定)。
18
20
  - Pi 宿主 peer:`@earendil-works/pi-ai`、`@earendil-works/pi-coding-agent`、`@earendil-works/pi-tui`
19
21
  均为 `>=1.1.0`,`typebox` 为 `*`。
20
- - 当前候选开发/测试依赖:Pi 1.1.0、typebox 1.3.36、jiti 2.7.0、TypeScript 7.0.2
21
- (由规划阶段暂存,独立任务验证;此前为 typebox 1.3.27 / TypeScript 5.9.3)。
22
+ - 开发/测试依赖:Pi 1.1.0、typebox 1.3.36、jiti 2.7.0、TypeScript 7.0.2
23
+ (此前为 typebox 1.3.27 / TypeScript 5.9.3)。
22
24
 
23
25
  ## 相对基线的精确改动(最小适配)
24
26
 
@@ -117,10 +119,28 @@
117
119
  - 不复制作者基准或改变宿主要求;本仓字符代理由 check 重新捕获,不宣称已验证 Pi 1.3。
118
120
  无门面变化,不新增测试;check 实际执行既有回归、契约、类型、生产安装与审计,结果以输出为准。
119
121
 
122
+ ## 本次审查:2.13.8 → 2.13.9
123
+
124
+ - 发布源码 `afc21bc25f7d07cae9fb3103dc309240a16b9f49` →
125
+ `54df50eea935fc9753edc300d5f23c5e28d906d7`,todo 与相关 i18n 同步。远端
126
+ `d3c6f0812140605a4e55e0a660eb83edc12abbc5` 不是本次采用源码;lean 作者仍为
127
+ `50e485d82809009213e21c93c564f4eaf33a650c`,无新差异可复用。
128
+ - 对比两包 CHANGELOG、todo package.json、index.ts、tool/types.ts、state/store.ts、state/replay.ts、
129
+ todo-overlay.ts 与 i18n index.ts:本次相关源码变化为相对导入从不存在的 .js 改到发布的 .ts 文件,
130
+ 避免 jiti fallback resolution;不是运行时逻辑重写。rpiv-config 传递范围升为 ^2.13.9,peer 不变;
131
+ 库存未包含 config 本体,不宣称审查了其全部实现。
132
+ - 工具仍为 todo,六个 action、字段/required 未变;create 默认 pending,list 默认不含 deleted、
133
+ clear 重置 nextId=1。state entry 仍为 rpiv-todo-state,优先回放逻辑与 session map 未变。
134
+ overlay 依赖的普通 private 字段 lastNextId/两个 completed 集合、getSnapshot 以及公开方法继续可用。
135
+ - 最小适配:本地 index.ts 四个深层 import 同步为 .ts,直接命中真实发布文件;默认包入口不变。
136
+ schema 去描述、action 推断、RPC 会话隔离、stale guards、异步命令等待和原始响应委派不变。
137
+ 已有 tests 中 .js 路径与全部断言保留,真实集成回归同时验证与新 .ts 入口共享状态;不增加重复引擎测试。
138
+ - README 两种语言更新当前版本,字符代理由 check 重测。check 实际执行类型/既有任务与 RPC 回归、
139
+ 契约、独立生产安装与审计,结果以输出为准;不宣称测量了启动耗时改善。
140
+
120
141
  ## 升级步骤
121
142
 
122
- 1. `npm view @juicesharp/rpiv-todo version`,对比 2.12.0 基线与目标版本源码(`tool/types.ts`、
123
- `todo.ts`、`todo-overlay.ts`、`index.ts`、`state/*`)。
143
+ 1. `npm view @juicesharp/rpiv-todo version` 确认目标稳定版本,对比 manifest 中当前固定版本/revision 与目标源码(`tool/types.ts`、`todo.ts`、`todo-overlay.ts`、`index.ts`、`state/*`)及 `CHANGELOG.md`。
124
144
  2. 更新两个工作区/根 `package.json` 中的精确依赖(含 `rpiv-i18n`),`npm install --ignore-scripts` 刷新 lockfile。
125
145
  3. 检查是否有新 action/字段:如有,确认 `prepareTodoArguments` 的推断字段表与描述仍准确;检查
126
146
  `TodoOverlay` 的私有字段是否改名为 `#private`(会破坏覆盖层补丁);检查 `STATE_ENTRY_TYPE` 与回放格式。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @gfgghgftgffg/rpiv-todo-lean
2
2
 
3
- Part of the [`amox-pi-extensions-lean`](../../README.md) monorepo. A lightweight Pi facade for
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
5
  complete task-management engine with a compact flat schema, preserved RPC/session/overlay behavior,
6
6
  and per-session isolated overlays.
@@ -22,13 +22,20 @@ is preserved in this package.
22
22
 
23
23
  ## Installation
24
24
 
25
- Install only this extension from the repository root (clone as shown in the root README):
25
+ This is a public npm package. Install without a version pin:
26
+
27
+ ```bash
28
+ pi install npm:@gfgghgftgffg/rpiv-todo-lean
29
+ pi update --extensions
30
+ ```
31
+
32
+ For a Git fallback, run from the repository checkout:
26
33
 
27
34
  ```bash
28
35
  node scripts/install-extension.mjs rpiv-todo-lean
29
36
  ```
30
37
 
31
- Once published to npm, `pi install npm:@gfgghgftgffg/rpiv-todo-lean` is also available. Choose one installation method; do not load another `rpiv-todo` wrapper alongside it.
38
+ 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
39
 
33
40
  ## Usage
34
41
 
@@ -36,50 +43,26 @@ The model sees one tool, `todo`, with actions `create`, `update`, `list`, `get`,
36
43
  `action` is normally required; when it is omitted the facade infers `create` from `subject` or
37
44
  `update` from `id` plus a mutable field, and otherwise lets upstream report the error.
38
45
 
39
- ## Reviewed upgrade: 2.13.5 → 2.13.8
40
-
41
- Upstream's 2.13.6–2.13.8 changelog entries contain no tool or behavior changes. The reviewed tool
42
- schema, registration/execute path, reducer, replay/store, overlay private fields, configuration
43
- adapter, and i18n loader/bridge are unchanged. The lean entry remains unchanged: one `todo` tool,
44
- six actions, the same action inference, and the same per-session RPC overlays. Create still defaults
45
- to `pending`; list excludes tombstones unless `includeDeleted: true`; clear resets task IDs to 1.
46
- The persistence key remains `rpiv-todo-state`, with legacy tool-result replay retained.
47
-
48
- The coupled i18n pin advances to 2.13.8; upstream's transitive rpiv-config range advances to
49
- `^2.13.8`. See [MAINTENANCE.md](MAINTENANCE.md) for source revisions and review limits. All existing
50
- regression assertions are preserved. The current candidate check runs installation, tests, contract capture,
51
- production-install verification and audits; its output is the validation record. Release requires human review.
52
-
53
- The new lean-author RPC plan-output feature was reviewed and not adopted: it appends full task snapshots
54
- to model-visible results for all RPC hosts and adds unguarded context reads after execution. The existing
55
- Pi 1.1 stale guards, command ordering, result envelope and overlays are retained. Pins remain 2.13.8;
56
- unpublished engine HEAD changes are not consumed. See the itemized review in MAINTENANCE.md.
57
-
58
- ## Latest lean-author review
59
-
60
- Reviewed author revisions `6c74831` → `50e485d`. The complete adapter and package metadata are identical;
61
- only the bilingual benchmark environment changes from Pi 1.2.0 to 1.3.0, with the same estimates.
62
- No tools, parameters, defaults or runtime behavior change. Our todo/i18n pins stay 2.13.8 and our own
63
- character measurements are refreshed by the candidate check; this does not establish Pi 1.3 compatibility.
64
- The plan-output decision above is from the previous review and remains applicable to both snapshots.
65
- Exact source evidence is in [MAINTENANCE.md](MAINTENANCE.md).
46
+ New tasks default to `pending`. Listing excludes deleted tasks unless `includeDeleted: true`;
47
+ clearing resets task IDs to 1. State persists through `rpiv-todo-state` entries, with legacy tool-result
48
+ replay retained. RPC responses are not expanded with an additional full-plan snapshot.
66
49
 
67
50
  ## Context footprint (character proxy)
68
51
 
69
52
  <!-- amox-measurement:start -->
70
53
  | Package | Version | Registered character proxy |
71
54
  | --- | --- | ---: |
72
- | @gfgghgftgffg/rpiv-todo-lean | 0.1.4 | 247 |
73
- | @juicesharp/rpiv-todo | 2.13.8 | 882 |
55
+ | @gfgghgftgffg/rpiv-todo-lean | 0.1.6 | 247 |
56
+ | @juicesharp/rpiv-todo | 2.13.9 | 882 |
74
57
 
75
58
  Fixed ceil(characters / 4), not provider billing tokens.
76
59
  <!-- amox-measurement:end -->
77
60
 
78
61
  ## Versions
79
62
 
80
- * Wrapper: `0.1.4`
81
- * Upstream runtime: pinned to `@juicesharp/rpiv-todo@2.13.8` and `@juicesharp/rpiv-i18n@2.13.8` (exact)
82
- * Previous baseline testing used Pi `1.1.0`, Node `22.22.1`; candidate validation is pending in the independent job.
63
+ * Wrapper: `0.1.6`
64
+ * Upstream runtime: pinned to `@juicesharp/rpiv-todo@2.13.9` and `@juicesharp/rpiv-i18n@2.13.9` (exact)
65
+ * Development test baseline: Pi `1.1.0`, Node `22.22.1`.
83
66
 
84
67
  ## Development
85
68
 
@@ -87,8 +70,8 @@ Run from the repository root: `npm ci`, `npm run check`, `npm run contracts:chec
87
70
 
88
71
  ## Maintenance
89
72
 
90
- Adaptation points, pinned upstream metadata, upgrade steps, and limitations live in
91
- [MAINTENANCE.md](MAINTENANCE.md).
73
+ Adaptation points, pinned upstream metadata, upgrade history, source-review decisions, and limitations
74
+ live in [MAINTENANCE.md](MAINTENANCE.md). This README describes current usage, not individual releases.
92
75
 
93
76
  ## License
94
77
 
package/README.zh-CN.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @gfgghgftgffg/rpiv-todo-lean
2
2
 
3
- 隶属于 [`amox-pi-extensions-lean`](../../README.md) 单仓。基于
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
5
  保留完整任务管理引擎,使用紧凑扁平 Schema,并保留原 lean 封装的 RPC/会话/覆盖层行为与逐会话隔离。
6
6
 
@@ -17,13 +17,20 @@
17
17
 
18
18
  ## 安装
19
19
 
20
- 从仓库根目录只安装本扩展(先按根 README 克隆仓库):
20
+ 这是公开的 npm 包,安装时不固定版本:
21
+
22
+ ```bash
23
+ pi install npm:@gfgghgftgffg/rpiv-todo-lean
24
+ pi update --extensions
25
+ ```
26
+
27
+ 需要 Git 回退安装时,在仓库 checkout 根目录执行:
21
28
 
22
29
  ```bash
23
30
  node scripts/install-extension.mjs rpiv-todo-lean
24
31
  ```
25
32
 
26
- 已发布到 npm 后,也可用 `pi install npm:@gfgghgftgffg/rpiv-todo-lean`。两种方式只选一种,请勿与其它 `rpiv-todo` 包装扩展同时加载。
33
+ 本地 Git 安装通过拉取 checkout 并重跑安装脚本更新,`pi update` 不更新本地内容。只保留一种安装来源。迁移时先备份 settings,移除 `pi list` 显示的精确旧来源,再安装 npm 来源。请勿同时加载其它 `rpiv-todo` 包装扩展。
27
34
 
28
35
  ## 使用方法
29
36
 
@@ -31,45 +38,25 @@ node scripts/install-extension.mjs rpiv-todo-lean
31
38
  通常需要显式传入 `action`;省略时封装会依据 `subject` 推断 `create`,或依据 `id` 加可变字段推断
32
39
  `update`,其余情况交由上游报错。
33
40
 
34
- ## 本次审查:2.13.5 → 2.13.8
35
-
36
- 上游 2.13.6–2.13.8 的 CHANGELOG 条目没有列出工具或行为变化。核对工具 Schema、注册/执行路径、
37
- reducer、回放/store、覆盖层私有字段、配置适配器和 i18n loader/bridge 后,这些审查面源码保持一致。
38
- lean 入口无需修改:仍为一个 `todo` 工具、六个 action、同样的 action 推断与逐会话 RPC 覆盖层。
39
- create 仍默认 `pending`;list 默认排除 deleted tombstone,`includeDeleted: true` 可包含;clear 重置 ID 为 1。
40
- 持久化键仍为 `rpiv-todo-state`,继续兼容历史 toolResult 回放。
41
-
42
- 配套 i18n 固定版本同步到 2.13.8,上游传递依赖 rpiv-config 范围同步到 `^2.13.8`。
43
- 源码 revision 与审查边界见 [MAINTENANCE.md](MAINTENANCE.md),既有回归断言全部保留。
44
- 本次候选 check 实际执行安装、测试、契约捕获、生产安装与审计,结果以工具输出为准;发版仍需人工审查。
45
-
46
- 已审查作者新增 RPC Plan 输出但未复用:它向所有 RPC host 的模型可见结果追加全量任务快照,且在执行后
47
- 新增未保护的上下文读取。本仓保留 Pi 1.1 stale guard、命令等待顺序、结果封装与覆盖层。
48
- 引擎 pins 仍为 2.13.8,不消费未发布的远端 HEAD;逐项决定见 MAINTENANCE.md。
49
-
50
- ## 最新 lean 作者审查
51
-
52
- 已审查作者 `6c74831` → `50e485d`:完整入口和包元数据一致,中英文基准文档仅将 Pi 1.2.0
53
- 改为 1.3.0,估算数值未变。无工具、参数、默认值或运行行为变化;todo/i18n 仍锁定 2.13.8。
54
- 上文 Plan 输出决定属于此前审查,两版均已包含该实现。本仓字符代理由候选 check 重新统计,
55
- 这不代表已验证 Pi 1.3 兼容性;精确源码证据见 [MAINTENANCE.md](MAINTENANCE.md)。
41
+ 新任务默认 `pending`;list 默认不含已删除任务,`includeDeleted: true` 可包含;clear 重置任务 ID 为 1。
42
+ 状态通过 `rpiv-todo-state` 条目持久化,保留历史工具结果回放。RPC 响应不会额外追加全量 Plan 快照。
56
43
 
57
44
  ## 上下文占用(字符代理)
58
45
 
59
46
  <!-- amox-measurement:start -->
60
47
  | Package | Version | Registered character proxy |
61
48
  | --- | --- | ---: |
62
- | @gfgghgftgffg/rpiv-todo-lean | 0.1.4 | 247 |
63
- | @juicesharp/rpiv-todo | 2.13.8 | 882 |
49
+ | @gfgghgftgffg/rpiv-todo-lean | 0.1.6 | 247 |
50
+ | @juicesharp/rpiv-todo | 2.13.9 | 882 |
64
51
 
65
52
  Fixed ceil(characters / 4), not provider billing tokens.
66
53
  <!-- amox-measurement:end -->
67
54
 
68
55
  ## 版本
69
56
 
70
- * 包装层:`0.1.4`
71
- * 上游运行时:锁定 `@juicesharp/rpiv-todo@2.13.8` 与 `@juicesharp/rpiv-i18n@2.13.8`(精确版本)
72
- * 此前基线测试使用 Pi `1.1.0`、Node `22.22.1`;本次候选等待独立任务验证。
57
+ * 包装层:`0.1.6`
58
+ * 上游运行时:锁定 `@juicesharp/rpiv-todo@2.13.9` 与 `@juicesharp/rpiv-i18n@2.13.9`(精确版本)
59
+ * 开发测试基线:Pi `1.1.0`、Node `22.22.1`。
73
60
 
74
61
  ## 开发
75
62
 
@@ -77,7 +64,8 @@ Fixed ceil(characters / 4), not provider billing tokens.
77
64
 
78
65
  ## 维护说明
79
66
 
80
- 适配点、上游元数据、升级步骤与限制见 [MAINTENANCE.md](MAINTENANCE.md)。
67
+ 适配点、上游元数据、升级历史、源码审查决定与限制见 [MAINTENANCE.md](MAINTENANCE.md)。
68
+ README 只说明当前用法,不记录逐次发布过程。
81
69
 
82
70
  ## 协议与致谢
83
71
 
package/index.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { ExtensionAPI, ExtensionContext, ExtensionUIContext } from "@earendil-works/pi-coding-agent";
2
2
  import todo from "@juicesharp/rpiv-todo";
3
- import { replayFromBranch } from "@juicesharp/rpiv-todo/state/replay.js";
4
- import { evictSession, getState, replaceState, sid } from "@juicesharp/rpiv-todo/state/store.js";
5
- import { TOOL_NAME } from "@juicesharp/rpiv-todo/todo.js";
6
- import { TodoOverlay } from "@juicesharp/rpiv-todo/todo-overlay.js";
3
+ import { replayFromBranch } from "@juicesharp/rpiv-todo/state/replay.ts";
4
+ import { evictSession, getState, replaceState, sid } from "@juicesharp/rpiv-todo/state/store.ts";
5
+ import { TOOL_NAME } from "@juicesharp/rpiv-todo/todo.ts";
6
+ import { TodoOverlay } from "@juicesharp/rpiv-todo/todo-overlay.ts";
7
7
 
8
8
  const COLLAPSED_DISPLAY_SERVICE = Symbol.for(
9
9
  "@local/pi-collapsed-tools.display-service.v1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gfgghgftgffg/rpiv-todo-lean",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
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",
@@ -46,8 +46,8 @@
46
46
  "check": "npm run typecheck && npm test"
47
47
  },
48
48
  "dependencies": {
49
- "@juicesharp/rpiv-i18n": "2.13.8",
50
- "@juicesharp/rpiv-todo": "2.13.8"
49
+ "@juicesharp/rpiv-i18n": "2.13.9",
50
+ "@juicesharp/rpiv-todo": "2.13.9"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@earendil-works/pi-ai": ">=1.1.0",