@oevery/rsp 2.0.3 → 2.0.4

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/README.md CHANGED
@@ -51,6 +51,8 @@ npx -y @oevery/rsp doctor
51
51
  - A change is always a single Markdown file with explicit sections for proposal, spec, design, tasks, verification, and blockers.
52
52
  - Completed changes move to `archives/`, while durable outcomes should be reflected in `specs/` or `rules/` before archiving.
53
53
  - Durable outcomes mean stable facts only. Do not promote task history, debugging notes, or one-off implementation context into `specs/` or `rules/`.
54
+ - Change `Spec` delta markers (`### ADDED`, `### MODIFIED`, `### REMOVED`) are planning aids only. `rsp archive` does not automatically merge them into durable specs or rules. Durable writeback remains an explicit semantic decision.
55
+ - `rsp check` performs deterministic hygiene checks. It warns about unfinished template placeholders and unresolved clarification markers, but those warnings do not replace the semantic durable-update decision.
54
56
 
55
57
  ## File ownership
56
58
 
@@ -82,7 +84,7 @@ Read in order:
82
84
  5. .rsp/specs/INDEX.md
83
85
  6. only the relevant additional .rsp/rules/*.md and .rsp/specs/*.md files
84
86
 
85
- If `.rsp/focus.d/` is empty, ask what to work on or suggest `npx -y @oevery/rsp create <name>`.
87
+ If `.rsp/focus.d/` is empty and the user has not provided a concrete task, ask what to work on or suggest `npx -y @oevery/rsp create <name>` for tracked work.
86
88
  If your agent supports Agent Skills, load `rsp` for setup, repair, and durable-decision tasks.
87
89
  <!-- rsp:end -->
88
90
  ```
@@ -148,12 +150,18 @@ Inside `open`, typical work includes:
148
150
  - Edit the change file directly — fill sections, mark tasks, write design decisions.
149
151
  - Review whether durable updates are needed before archive.
150
152
 
153
+ During implementation, keep the change file and the actual work in sync: complete `## Tasks` checkboxes as code lands, update `## Verify` with the checks actually run, and revise `## Design` if implementation discoveries change the plan.
154
+
151
155
  `archive` moves completed work into history. Archive never blocks — it warns but leaves the final decision to the agent or human.
152
156
 
153
157
  Agents should treat only entries in `focus.d/` as current work. Unfocused files in `changes/` are still open, but should not be treated as the current target unless the user explicitly asks for them or they are re-focused.
154
158
 
155
159
  The durable update decision (whether the change produced knowledge that belongs in `.rsp/specs/` or `.rsp/rules/`) is a semantic choice made by the RSP skill or a human reviewer.
156
160
 
161
+ `rsp ready` and `rsp show` expose both deterministic readiness and semantic-review signals. Deterministic readiness comes from checkboxes, blockers, and scenarios; semantic review remains required for durable-update decisions.
162
+
163
+ `rsp ready --json` and `rsp show --json` also include `durableReview` guidance with fixed decision options and candidate durable targets. This is review guidance only; RSP does not auto-merge change `Spec` deltas into durable files.
164
+
157
165
  ## Recommended workflow
158
166
 
159
167
  New project:
@@ -163,7 +171,7 @@ New project:
163
171
  3. Fill `.rsp/specs/design.md`
164
172
  4. Use `rsp add spec <name>` only when a new durable project doc is needed
165
173
  5. Use `rsp add rules project-rules` only when the project has stable local rules
166
- 6. Start work with `rsp create <name>`
174
+ 6. For tracked open work, start with `rsp create <name>`
167
175
  7. If you want an existing open change to become current work, use `rsp focus <name>`
168
176
  8. Use `rsp unfocus <name>` when you want to remove a change from the current focus set
169
177
  9. Edit the change file directly to implement the work and mark tasks complete
@@ -193,19 +201,31 @@ rsp init --with-project-setup Also create .rsp/changes/project-setup.md
193
201
  rsp update Refresh rules, repair the AGENTS block, and rebuild indices after upgrade
194
202
  rsp add rules <name> Create .rsp/rules/<name>.md
195
203
  rsp add spec <name> Create .rsp/specs/<name>.md and rebuild specs index
196
- rsp create <name> [summary] Create .rsp/changes/<name>.md
204
+ rsp create <name> [summary] Create .rsp/changes/<name>.md; add --lite for a shorter template
197
205
  rsp focus <name> Mark an open change as currently focused
198
206
  rsp unfocus <name> Remove an open change from the current focus set
199
207
  rsp archive <name> Archive to .rsp/archives/ + update archive index
208
+ rsp archive --dry-run <name> Preview archive readiness without moving the change
209
+ rsp ready <name> [--json] [--verbose]
210
+ Preview archive readiness (same as archive --dry-run)
211
+ rsp show <name|--focused> [--json] [--verbose]
212
+ Show change context with readiness signals and context paths
200
213
  rsp status [--focused|--blocked|--stale <days>] [--json] [--verbose]
201
214
  Show project status summary with focus-aware filters
202
- rsp check [--json] [--verbose] Validate change files and lightly lint scenario structure
203
- rsp doctor [--json] [--verbose]
215
+ rsp check [--focused] [--json] [--verbose]
216
+ Validate change files and lightly lint template/scenario structure
217
+ rsp doctor [--fix] [--json] [--verbose]
204
218
  Check setup health and common issues
205
219
  ```
206
220
 
207
221
  For exact rules, use `.rsp/rules/rsp-rules.md`. For operational durable-decision guidance, use `skills/rsp/SKILL.md`.
208
222
 
223
+ When there is no focused change, `rsp status` and `rsp show --focused --json` print `nextActions` instead of guessing which open change is current.
224
+
225
+ `rsp create --lite` is a shorter template for explicitly tracked small changes; simple current-session tasks should not create RSP changes unless tracking is intentionally needed.
226
+
227
+ `rsp doctor --fix` runs only safe deterministic repairs. Its `fixed` JSON entries report actual filesystem changes; a healthy project returns `fixed: []` and the human output says no safe fixes are needed.
228
+
209
229
  ## Platform-agnostic
210
230
 
211
231
  `.rsp/` is a plain file convention. It works with Kilo Code, Cursor, Claude Code, Cline, GitHub Copilot, or any assistant that reads project files. Requires Node.js 18+.
package/README.zh-CN.md CHANGED
@@ -51,6 +51,8 @@ npx -y @oevery/rsp doctor
51
51
  - 每个 change 始终是单个 Markdown 文件,并包含 proposal、spec、design、tasks、verification 与 blockers 等明确 section。
52
52
  - 完成后的 change 会移动到 `archives/`;若变更产出了长期知识,应在归档前同步写入 `specs/` 或 `rules/`。
53
53
  - 所谓长期知识,只应包含稳定事实;不要把任务历史、排障笔记或一次性实现上下文提升到 `specs/` 或 `rules/`。
54
+ - Change `Spec` 中的 delta 标记(`### ADDED`、`### MODIFIED`、`### REMOVED`)仅为规划辅助标记。`rsp archive` 不会自动将它们合并到 `specs/` 或 `rules/` 中。长期知识的写入始终是高显式语义决策。
55
+ - `rsp check` 会执行 deterministic 的卫生检查。它会对未完成的模板占位符和未解决的 clarification 标记发出 warning,但这些 warning 不会替代 durable update 的语义判断。
54
56
 
55
57
  ## 文件所有权
56
58
 
@@ -82,7 +84,7 @@ Read in order:
82
84
  5. .rsp/specs/INDEX.md
83
85
  6. only the relevant additional .rsp/rules/*.md and .rsp/specs/*.md files
84
86
 
85
- If `.rsp/focus.d/` is empty, ask what to work on or suggest `npx -y @oevery/rsp create <name>`.
87
+ If `.rsp/focus.d/` is empty and the user has not provided a concrete task, ask what to work on or suggest `npx -y @oevery/rsp create <name>` for tracked work.
86
88
  If your agent supports Agent Skills, load `rsp` for setup, repair, and durable-decision tasks.
87
89
  <!-- rsp:end -->
88
90
  ```
@@ -142,12 +144,18 @@ open → archived
142
144
  - 直接编辑 change 文件,填写 section、勾选 tasks、记录设计决策。
143
145
  - 在归档前判断是否需要 durable updates。
144
146
 
147
+ 实现过程中,应保持 change 文件与实际工作同步:代码完成后勾选对应的 `## Tasks`,在 `## Verify` 中记录实际运行的检查;如果实现发现设计不成立,应先更新 `## Design` 再继续。
148
+
145
149
  `archive` 会把已完成的工作归档到历史。`archive` 不会阻塞,只会给出 warning,最终判断留给 agent 或人工。
146
150
 
147
151
  agent 应只把 `focus.d/` 中列出的 change 视为当前工作。`changes/` 中未聚焦的文件仍然是 open,但除非用户明确要求或重新 `focus`,否则不应被当作当前目标。
148
152
 
149
153
  关于 durable update 的决定,也就是某次变更是否产出了应该写入 `.rsp/specs/` 或 `.rsp/rules/` 的知识,本质上是语义判断,应由 RSP skill 或人工 reviewer 完成。
150
154
 
155
+ `rsp ready` 和 `rsp show` 会同时暴露 deterministic readiness 与 semantic-review 信号。deterministic readiness 来自 checkbox、blocker 和 scenario;durable update 仍然需要语义 review。
156
+
157
+ `rsp ready --json` 和 `rsp show --json` 还会包含 `durableReview` 指导信息,其中包括固定决策选项和候选 durable target。这只是 review 指导;RSP 不会自动把 change `Spec` delta 合并进 durable 文件。
158
+
151
159
  ## 推荐工作流
152
160
 
153
161
  新项目:
@@ -157,7 +165,7 @@ agent 应只把 `focus.d/` 中列出的 change 视为当前工作。`changes/`
157
165
  3. 填写 `.rsp/specs/design.md`
158
166
  4. 仅在需要新的长期项目文档时使用 `rsp add spec <name>`
159
167
  5. 仅在项目存在稳定本地规则时使用 `rsp add rules project-rules`
160
- 6. 使用 `rsp create <name>` 开始工作
168
+ 6. 对需要跟踪的 open work,使用 `rsp create <name>` 开始
161
169
  7. 如果要让某个已有 open change 成为当前工作,使用 `rsp focus <name>`
162
170
  8. 如果要将某个 change 移出当前焦点集合,使用 `rsp unfocus <name>`
163
171
  9. 直接编辑 change 文件并完成实现、勾选 tasks
@@ -187,19 +195,31 @@ rsp init --with-project-setup 同时创建 .rsp/changes/project-setup.md
187
195
  rsp update 升级后刷新 rules、修复 AGENTS 受管块并重建各类索引
188
196
  rsp add rules <name> 创建 .rsp/rules/<name>.md
189
197
  rsp add spec <name> 创建 .rsp/specs/<name>.md 并重建 specs 索引
190
- rsp create <name> [summary] 创建 .rsp/changes/<name>.md
198
+ rsp create <name> [summary] 创建 .rsp/changes/<name>.md;可加 --lite 使用更短模板
191
199
  rsp focus <name> 将一个 open change 标记为当前聚焦
192
200
  rsp unfocus <name> 将一个 open change 移出当前聚焦集合
193
201
  rsp archive <name> 归档到 .rsp/archives/ 并更新 archive index
202
+ rsp archive --dry-run <name> 预览归档就绪状态,不移动 change
203
+ rsp ready <name> [--json] [--verbose]
204
+ 预览归档就绪状态(与 archive --dry-run 相同)
205
+ rsp show <name|--focused> [--json] [--verbose]
206
+ 显示 change 上下文,带就绪信号和上下文路径
194
207
  rsp status [--focused|--blocked|--stale <days>] [--json] [--verbose]
195
208
  查看带有当前聚焦信息的项目状态摘要,并支持轻量筛选
196
- rsp check [--json] [--verbose] 校验 change 文件,并对 scenario 结构做轻量 lint
197
- rsp doctor [--json] [--verbose]
209
+ rsp check [--focused] [--json] [--verbose]
210
+ 校验 change 文件,并对 template/scenario 结构做轻量 lint
211
+ rsp doctor [--fix] [--json] [--verbose]
198
212
  检查接入健康和常见问题
199
213
  ```
200
214
 
201
215
  精确规则以 `.rsp/rules/rsp-rules.md` 为准;durable decision 的操作指导以 `skills/rsp/SKILL.md` 为准。
202
216
 
217
+ 当没有 focused change 时,`rsp status` 和 `rsp show --focused --json` 会输出 `nextActions`,但不会自动猜测哪个 open change 是当前工作。
218
+
219
+ `rsp create --lite` 是用于显式跟踪小 change 的短模板;简单的当前会话任务默认不应创建 RSP change,除非确实需要跟踪。
220
+
221
+ `rsp doctor --fix` 只执行安全 deterministic 修复。它的 JSON `fixed` 条目表示实际写入的文件系统变化;健康项目会返回 `fixed: []`,human 输出会说明无需安全修复。
222
+
203
223
  ## 工具无关
204
224
 
205
225
  `.rsp/` 是纯文件约定,适用于 Kilo Code、Cursor、Claude Code、Cline、GitHub Copilot 或任何能读取项目文件的 AI 助手。需要 Node.js 18+。
package/bin/rsp.mjs CHANGED
File without changes