openspec-playwright 0.3.20 → 0.3.21

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.
@@ -35,8 +35,14 @@ E2E 工作流前提(由用户确保,非 AI 操作):
35
35
  **lint + typecheck 后才能算成功**。动手前查 `package.json` scripts、`Makefile` 等找工具链。工具不存在时,明确告知用户,不得假装成功。
36
36
 
37
37
  ## 3. 上下文管理
38
+
38
39
  **文件读取完整**:超过 500 行的文件,不要假设单次读取覆盖完整内容——根据需要分次读取或编辑前重新读取完整文件。超过 10 条消息后,编辑任何文件前强制重新读取。
39
40
 
41
+ **上下文压缩恢复后(Apply 阶段)**:
42
+ 1. `git status` — 确认已改动的内容
43
+ 2. 重读 `changes/<name>/proposal.md` + `tasks.md` — 确认范围和任务状态
44
+ 3. 然后继续实施
45
+
40
46
  **OpenSpec 阶段隔离**:所有阶段均由用户手动触发,不自动进入下一阶段。`/opsx:explore`、`/opsx:propose`、`/opsx:apply`、`/opsx:verify`、`/opsx:e2e` 均需用户明确调用。禁止在同一阶段内触发其他阶段(如 explore 阶段不能调用 apply,verify 阶段不能调用 e2e)。
41
47
 
42
48
  **重构前清死代码**:未使用的 import/export/prop/console.log 先删掉,单独提交,再做重构。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openspec-playwright",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "OpenSpec + Playwright E2E verification setup tool for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {