@gfgghgftgffg/rpiv-todo-lean 0.1.5 → 0.1.7

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,44 @@
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
+
141
+ ## 本次 lean 作者审查:保持最小兼容更新
142
+
143
+ - 精确作者入口 `50e485d82809009213e21c93c564f4eaf33a650c` →
144
+ `f1e3fc7bcde2644a89803fa6a3a256fb7422d89f` 完整比较:四个深层导入 .js → .ts,本仓上一轮已适配;
145
+ 新增 bare id(仅允许附带 includeDeleted)推断 get;prompt 改为逐步开始/完成、禁止最后批量标记。
146
+ - 后两项是可选输入容错与更强的工作流指导,不是当前固定引擎兼容所需,本次不复用。保留现有
147
+ create/update 推断、显式 action=get、单一 in_progress 指导、RPC 会话/stale guards 与异步命令等待。
148
+ 作者原有 withHostPlan 仍未修复 await 后 stale getter,不复用的历史决定继续适用。
149
+ - 作者 wrapper 测试新增 bare id 推断/幂等/不推断破坏性操作断言,只对应未采用的功能,不复制。
150
+ package.json 包装 2.13.10 → 2.13.12、todo/i18n pins 2.13.8 → 2.13.9,本仓已固定 2.13.9;
151
+ README 更新版本、字符代理及新推断/指导用法,不复制其 Pi 1.3 基准、锁文件或包装版本。
152
+ - 引擎稳定版仍为 `54df50eea935fc9753edc300d5f23c5e28d906d7`,远端
153
+ `d3c6f0812140605a4e55e0a660eb83edc12abbc5` 未采用。本次库存仅有 lean before/after,不声称
154
+ 重审未提供的引擎源码。六个 action、默认值与内部 overlay/store 依赖由现有真实集成验证。
155
+ - 本次无门面改动,不加重复回归。check 运行现有全部断言并更新本仓字符代理,结果以其输出为准。
156
+
120
157
  ## 升级步骤
121
158
 
122
- 1. `npm view @juicesharp/rpiv-todo version`,对比 2.12.0 基线与目标版本源码(`tool/types.ts`、
123
- `todo.ts`、`todo-overlay.ts`、`index.ts`、`state/*`)。
159
+ 1. `npm view @juicesharp/rpiv-todo version` 确认目标稳定版本,对比 manifest 中当前固定版本/revision 与目标源码(`tool/types.ts`、`todo.ts`、`todo-overlay.ts`、`index.ts`、`state/*`)及 `CHANGELOG.md`。
124
160
  2. 更新两个工作区/根 `package.json` 中的精确依赖(含 `rpiv-i18n`),`npm install --ignore-scripts` 刷新 lockfile。
125
161
  3. 检查是否有新 action/字段:如有,确认 `prepareTodoArguments` 的推断字段表与描述仍准确;检查
126
162
  `TodoOverlay` 的私有字段是否改名为 `#private`(会破坏覆盖层补丁);检查 `STATE_ENTRY_TYPE` 与回放格式。
package/README.md CHANGED
@@ -52,16 +52,16 @@ replay retained. RPC responses are not expanded with an additional full-plan sna
52
52
  <!-- amox-measurement:start -->
53
53
  | Package | Version | Registered character proxy |
54
54
  | --- | --- | ---: |
55
- | @gfgghgftgffg/rpiv-todo-lean | 0.1.5 | 247 |
56
- | @juicesharp/rpiv-todo | 2.13.8 | 882 |
55
+ | @gfgghgftgffg/rpiv-todo-lean | 0.1.7 | 247 |
56
+ | @juicesharp/rpiv-todo | 2.13.9 | 882 |
57
57
 
58
58
  Fixed ceil(characters / 4), not provider billing tokens.
59
59
  <!-- amox-measurement:end -->
60
60
 
61
61
  ## Versions
62
62
 
63
- * Wrapper: `0.1.5`
64
- * Upstream runtime: pinned to `@juicesharp/rpiv-todo@2.13.8` and `@juicesharp/rpiv-i18n@2.13.8` (exact)
63
+ * Wrapper: `0.1.7`
64
+ * Upstream runtime: pinned to `@juicesharp/rpiv-todo@2.13.9` and `@juicesharp/rpiv-i18n@2.13.9` (exact)
65
65
  * Development test baseline: Pi `1.1.0`, Node `22.22.1`.
66
66
 
67
67
  ## Development
package/README.zh-CN.md CHANGED
@@ -46,16 +46,16 @@ node scripts/install-extension.mjs rpiv-todo-lean
46
46
  <!-- amox-measurement:start -->
47
47
  | Package | Version | Registered character proxy |
48
48
  | --- | --- | ---: |
49
- | @gfgghgftgffg/rpiv-todo-lean | 0.1.5 | 247 |
50
- | @juicesharp/rpiv-todo | 2.13.8 | 882 |
49
+ | @gfgghgftgffg/rpiv-todo-lean | 0.1.7 | 247 |
50
+ | @juicesharp/rpiv-todo | 2.13.9 | 882 |
51
51
 
52
52
  Fixed ceil(characters / 4), not provider billing tokens.
53
53
  <!-- amox-measurement:end -->
54
54
 
55
55
  ## 版本
56
56
 
57
- * 包装层:`0.1.5`
58
- * 上游运行时:锁定 `@juicesharp/rpiv-todo@2.13.8` 与 `@juicesharp/rpiv-i18n@2.13.8`(精确版本)
57
+ * 包装层:`0.1.7`
58
+ * 上游运行时:锁定 `@juicesharp/rpiv-todo@2.13.9` 与 `@juicesharp/rpiv-i18n@2.13.9`(精确版本)
59
59
  * 开发测试基线:Pi `1.1.0`、Node `22.22.1`。
60
60
 
61
61
  ## 开发
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.5",
3
+ "version": "0.1.7",
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",