sillyspec 3.20.6 → 3.20.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/.claude/CLAUDE.md +23 -0
- package/.claude/skills/sillyspec-archive/SKILL.md +86 -21
- package/.claude/skills/sillyspec-auto/SKILL.md +98 -83
- package/.claude/skills/sillyspec-brainstorm/SKILL.md +78 -44
- package/.claude/skills/sillyspec-doctor/SKILL.md +61 -31
- package/.claude/skills/sillyspec-execute/SKILL.md +90 -30
- package/.claude/skills/sillyspec-explore/SKILL.md +96 -109
- package/.claude/skills/sillyspec-export/SKILL.md +4 -0
- package/.claude/skills/sillyspec-init/SKILL.md +7 -0
- package/.claude/skills/sillyspec-plan/SKILL.md +74 -21
- package/.claude/skills/sillyspec-propose/SKILL.md +61 -21
- package/.claude/skills/sillyspec-quick/SKILL.md +84 -21
- package/.claude/skills/sillyspec-scan/SKILL.md +74 -21
- package/.claude/skills/sillyspec-state/SKILL.md +11 -1
- package/.claude/skills/sillyspec-status/SKILL.md +55 -21
- package/.claude/skills/sillyspec-verify/SKILL.md +82 -21
- package/.claude/skills/sillyspec-workspace/SKILL.md +12 -0
- package/CLAUDE.md +4 -0
- package/docs/sillyspec/file-lifecycle.md +14 -3
- package/docs/worktree-isolation.md +1 -1
- package/package.json +2 -2
- package/src/doctor-diagnostics.js +575 -0
- package/src/hooks/worktree-guard.js +111 -111
- package/src/index.js +154 -82
- package/src/progress.js +59 -9
- package/src/run.js +139 -38
- package/src/stage-contract.js +14 -2
- package/src/sync.js +13 -3
- package/src/worktree.js +69 -28
|
@@ -1,21 +1,74 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sillyspec:scan
|
|
3
|
-
description: 用于扫描项目代码库,生成架构文档、代码约定、目录结构等。适合用户说"扫描项目、分析代码库、生成文档、scan"。产出 7 份扫描文档 + 模块映射。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
---
|
|
2
|
+
name: sillyspec:scan
|
|
3
|
+
description: 用于扫描项目代码库,生成架构文档、代码约定、目录结构等。适合用户说"扫描项目、分析代码库、生成文档、scan"。产出 7 份扫描文档 + 模块映射。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 何时使用
|
|
7
|
+
|
|
8
|
+
- 用户说"扫描项目、分析代码库、生成文档、scan"
|
|
9
|
+
- 棕地项目首次接入 sillyspec,生成架构/约定/结构等基础文档
|
|
10
|
+
- 产出 7 份 scan 文档(PROJECT/ARCHITECTURE/CONVENTIONS/STRUCTURE/INTEGRATIONS/TESTING/CONCERNS)+ 模块映射
|
|
11
|
+
|
|
12
|
+
## 多变更说明
|
|
13
|
+
|
|
14
|
+
scan 是辅助阶段,通常不需要 `--change`。但项目有多个活跃变更时,所有 `sillyspec run` 命令加 `--change <变更名>` 可指定操作目标。
|
|
15
|
+
|
|
16
|
+
## 步骤生命周期(所有阶段通用)
|
|
17
|
+
|
|
18
|
+
> `sillyspec scan` 是 `sillyspec run scan` 的顶层别名,两者等价。
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
sillyspec run scan # 输出当前步骤 prompt
|
|
22
|
+
sillyspec run scan --done --output "摘要" # 完成当前步骤
|
|
23
|
+
sillyspec run scan --status # 查看阶段进度
|
|
24
|
+
sillyspec run scan --skip # 跳过可选步骤
|
|
25
|
+
sillyspec run scan --reset # 重置阶段(从头开始)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 通用参数(所有阶段适用)
|
|
29
|
+
|
|
30
|
+
| 参数 | 说明 |
|
|
31
|
+
|---|---|
|
|
32
|
+
| `--spec-dir <path>` | 指定规范目录(默认 `<项目>/.sillyspec`) |
|
|
33
|
+
| `--non-interactive` | CI/脚本下禁用交互式 prompt |
|
|
34
|
+
| `--skip-approval` | 跳过审批/校验门控 |
|
|
35
|
+
| `--json` | 输出 JSON(程序化读取) |
|
|
36
|
+
|
|
37
|
+
## scan 特有参数
|
|
38
|
+
|
|
39
|
+
| 参数 | 说明 |
|
|
40
|
+
|---|---|
|
|
41
|
+
| `--deep` | 强制 deep 扫描 profile(完整流程,不按规模裁剪) |
|
|
42
|
+
| `--force-rescan` | 覆盖已有 scan 文档的保护(默认覆盖需 source_commit/updated_at 匹配) |
|
|
43
|
+
|
|
44
|
+
### scanProfile(按项目规模自动裁剪)
|
|
45
|
+
|
|
46
|
+
CLI 根据源码规模自动选择 profile,无需手动指定:
|
|
47
|
+
|
|
48
|
+
| profile | 触发条件 | 行为 |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| quick | ≤30 文件 且 ≤80KB 且 ≤3 项目 | 3 步,0 子代理,5 份核心文档 |
|
|
51
|
+
| standard | ≤200 文件 且 ≤800KB | 压缩步骤,最多 1 子代理 |
|
|
52
|
+
| deep | 大项目或 `--deep` | 完整流程 |
|
|
53
|
+
|
|
54
|
+
### post-check
|
|
55
|
+
|
|
56
|
+
scan 完成时 CLI 自动校验 7 份文档齐全。缺失会设状态为 `failed_post_check`,阻断进入主流程下游(brainstorm/plan 等),需修复后重跑 scan。
|
|
57
|
+
|
|
58
|
+
## 阶段流转
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
(项目起点) → scan → brainstorm
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
scan 完成后,运行 `sillyspec run brainstorm "<需求>"` 开始具体变更的设计。
|
|
65
|
+
|
|
66
|
+
## 铁律
|
|
67
|
+
|
|
68
|
+
- **必须用 exec 工具(shell)执行 CLI,不要自己编造流程**
|
|
69
|
+
- 只做当前步骤 prompt 描述的操作,不跳过
|
|
70
|
+
- scan 文档写入 `{DOCS_ROOT}/scan/`(平台模式用占位符路径,不写裸 `.sillyspec/`)
|
|
71
|
+
- 完成后立即 `--done`,不跳过
|
|
72
|
+
|
|
73
|
+
## 用户指令
|
|
74
|
+
$ARGUMENTS
|
|
@@ -46,9 +46,19 @@ sillyspec progress show
|
|
|
46
46
|
>
|
|
47
47
|
> 进度数据会在 `sillyspec init` 时自动创建到 SQLite 数据库中。
|
|
48
48
|
|
|
49
|
+
## progress 完整子命令(只读查询 / 诊断)
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
sillyspec progress show [--change <名>] # 当前工作状态(本 skill 主命令)
|
|
53
|
+
sillyspec progress check # 状态一致性检查(只报告,不修复)
|
|
54
|
+
sillyspec progress repair # 修复状态元数据(dry-run,加 --apply 才真改)
|
|
55
|
+
sillyspec progress validate # 校验并修复
|
|
56
|
+
sillyspec progress reset [--stage <阶段>] # 重置进度(破坏性,慎用)
|
|
57
|
+
```
|
|
58
|
+
|
|
49
59
|
### 注意
|
|
50
60
|
|
|
51
|
-
-
|
|
61
|
+
- 这是只读命令,**不修改任何文件**(repair/validate/reset 除外)
|
|
52
62
|
- `/sillyspec:status` 查看项目整体进度(change 文件级别)
|
|
53
63
|
- `/sillyspec:state` 查看当前工作状态(阶段/步骤级别)
|
|
54
64
|
- 两者互补:status 看"有什么",state 看"在做什么"
|
|
@@ -1,21 +1,55 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sillyspec:status
|
|
3
|
-
description: 用于查看 SillySpec 当前进度和状态。适合用户说"看下状态、当前进度、status"。显示当前阶段、步骤完成度、活跃变更。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
---
|
|
2
|
+
name: sillyspec:status
|
|
3
|
+
description: 用于查看 SillySpec 当前进度和状态。适合用户说"看下状态、当前进度、status"。显示当前阶段、步骤完成度、活跃变更。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 何时使用
|
|
7
|
+
|
|
8
|
+
- 用户说"看下状态、当前进度、status"
|
|
9
|
+
- 查看项目整体进度:活跃变更、各阶段状态、步骤完成度
|
|
10
|
+
|
|
11
|
+
## status vs state 分工
|
|
12
|
+
|
|
13
|
+
- **`/sillyspec:status`**(本 skill)— 查看项目整体进度(change 文件级别、各阶段状态)。走 `sillyspec run status` 阶段。
|
|
14
|
+
- **`/sillyspec:state`** — 查看当前工作状态(阶段/步骤级别、下一步建议)。走 `sillyspec progress show`。
|
|
15
|
+
|
|
16
|
+
两者互补:status 看"有什么",state 看"在做什么"。
|
|
17
|
+
|
|
18
|
+
## 多变更说明
|
|
19
|
+
|
|
20
|
+
status 是辅助阶段。项目有多个活跃变更时,加 `--change <变更名>` 查看指定变更的详情;不指定时汇总显示所有变更。
|
|
21
|
+
|
|
22
|
+
## 步骤生命周期(所有阶段通用)
|
|
23
|
+
|
|
24
|
+
> `sillyspec status` 是 `sillyspec run status` 的顶层别名,两者等价。status 是辅助阶段,只读。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
sillyspec run status # 输出当前步骤 prompt
|
|
28
|
+
sillyspec run status --done --output "摘要" # 完成阶段
|
|
29
|
+
sillyspec run status --status # 查看阶段状态
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 通用参数(所有阶段适用)
|
|
33
|
+
|
|
34
|
+
| 参数 | 说明 |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `--change <名>` | 指定变更名(多变更时查看指定变更详情) |
|
|
37
|
+
| `--spec-dir <path>` | 指定规范目录(默认 `<项目>/.sillyspec`) |
|
|
38
|
+
| `--json` | 输出 JSON(程序化读取) |
|
|
39
|
+
|
|
40
|
+
## 配套的只读查询命令(不经 run)
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
sillyspec progress show # 当前工作状态(阶段/步骤级)
|
|
44
|
+
sillyspec progress show --change <名> # 指定变更详情
|
|
45
|
+
sillyspec progress check # 状态一致性检查
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 铁律
|
|
49
|
+
|
|
50
|
+
- status 是只读阶段,**不修改任何文件**
|
|
51
|
+
- **必须用 exec 工具(shell)执行 CLI**
|
|
52
|
+
- 完成后立即 `--done`,不跳过
|
|
53
|
+
|
|
54
|
+
## 用户指令
|
|
55
|
+
$ARGUMENTS
|
|
@@ -1,21 +1,82 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sillyspec:verify
|
|
3
|
-
description: 用于验证代码实现是否符合 design 和模块文档。适合用户说"验证下、检查下、跑 verify"。对照 design.md + 模块文档检查任务完成度、设计一致性、运行测试。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
---
|
|
2
|
+
name: sillyspec:verify
|
|
3
|
+
description: 用于验证代码实现是否符合 design 和模块文档。适合用户说"验证下、检查下、跑 verify"。对照 design.md + 模块文档检查任务完成度、设计一致性、运行测试。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 何时使用
|
|
7
|
+
|
|
8
|
+
- 用户说"验证下、检查下、跑 verify"
|
|
9
|
+
- 对照 design.md + 模块文档检查任务完成度
|
|
10
|
+
- 设计一致性检查 + 运行测试套件
|
|
11
|
+
- 产出 `verify-result.md`(PASS / PASS WITH NOTES / FAIL)
|
|
12
|
+
|
|
13
|
+
## 多变更说明
|
|
14
|
+
|
|
15
|
+
项目有多个活跃变更(`.sillyspec/changes/` 下有多个目录)时,所有 `sillyspec run` 命令需加 `--change <变更名>` 指定操作目标;只有一个变更时可省略(CLI 自动检测)。
|
|
16
|
+
|
|
17
|
+
## 步骤生命周期(所有阶段通用)
|
|
18
|
+
|
|
19
|
+
> `sillyspec verify` 是 `sillyspec run verify` 的顶层别名,两者等价。
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
sillyspec run verify # 输出当前步骤 prompt
|
|
23
|
+
sillyspec run verify --done --output "摘要" # 完成当前步骤(--input "用户原话" 记录输入)
|
|
24
|
+
sillyspec run verify --status # 查看阶段进度
|
|
25
|
+
sillyspec run verify --skip # 跳过可选步骤
|
|
26
|
+
sillyspec run verify --reset # 重置阶段(从头开始)
|
|
27
|
+
sillyspec run verify --reopen --from-step N # 重新打开已完成阶段修订(N=序号或名称)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 通用参数(所有阶段适用)
|
|
31
|
+
|
|
32
|
+
| 参数 | 说明 |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `--change <名>` | 指定变更名(多活跃变更必填,单变更可省略自动检测) |
|
|
35
|
+
| `--spec-dir <path>` | 指定规范目录(默认 `<项目>/.sillyspec`) |
|
|
36
|
+
| `--non-interactive` | CI/脚本下禁用交互式 prompt |
|
|
37
|
+
| `--skip-approval` | 跳过审批/校验门控(需明确意图) |
|
|
38
|
+
| `--json` | 输出 JSON(程序化读取) |
|
|
39
|
+
|
|
40
|
+
## verify 特有:完成门控(重要)
|
|
41
|
+
|
|
42
|
+
verify 是只读阶段(**禁止改代码/改 git 状态**,只检查 + 写报告)。完成时有硬校验:
|
|
43
|
+
|
|
44
|
+
- **必须产出 `verify-result.md`**——不存在则阻断完成(不能跳过报告直接 `--done`)
|
|
45
|
+
- **结论为 `FAIL` 则阻断完成**——不能带着 FAIL 标记 verify 完成
|
|
46
|
+
- **`integration-critical` / `deployment-critical` 变更**(design/plan 含 daemon/session/lease/lifecycle 等关键词):结论 PASS WITH NOTES 降级为 FAIL,必须有真实集成证据(Runtime Evidence section)
|
|
47
|
+
- `verify-required-evidence.json`(execute 写入)中每条 missing evidence → 阻断
|
|
48
|
+
|
|
49
|
+
被阻断时 CLI 打印 ❌ 校验失败,不会提示"验证通过"。修复 `verify-result.md` 后重新 `--done`。
|
|
50
|
+
|
|
51
|
+
## verify-result.md 格式
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
# 验证报告
|
|
55
|
+
## 结论
|
|
56
|
+
PASS / PASS WITH NOTES / FAIL ← 必须有此章节,FAIL 会阻断 verify 完成
|
|
57
|
+
## 任务完成度
|
|
58
|
+
## 设计一致性
|
|
59
|
+
## 探针结果
|
|
60
|
+
## 测试结果
|
|
61
|
+
## 变更风险等级
|
|
62
|
+
## Runtime Evidence(integration/deployment-critical 必填)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 阶段流转
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
execute → verify → archive
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
verify 通过(PASS)后,运行 `sillyspec run archive --change <变更名>` 归档。FAIL 则修复后重跑 `sillyspec run verify`。
|
|
72
|
+
|
|
73
|
+
## 铁律
|
|
74
|
+
|
|
75
|
+
- **必须用 exec 工具(shell)执行 CLI,不要自己编造流程**
|
|
76
|
+
- verify 阶段**绝对禁止** git checkout/restore/reset、删除/覆盖源码文件——只检查 + 报告
|
|
77
|
+
- 发现问题只报告,不尝试修复(修复回 execute)
|
|
78
|
+
- `verify-result.md` 结论必须基于证据,不写"看起来没问题"
|
|
79
|
+
- 完成后立即 `--done`,不跳过
|
|
80
|
+
|
|
81
|
+
## 用户指令
|
|
82
|
+
$ARGUMENTS
|
|
@@ -12,6 +12,18 @@ description: 工作区管理 — 初始化、管理多项目工作区,查看
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## CLI 边界(重要)
|
|
16
|
+
|
|
17
|
+
sillyspec CLI **没有 `workspace` 顶层命令**。本 skill 通过直接读写 `.sillyspec/projects/*.yaml` 管理工作区,配套用 `sillyspec scan` 扫描子项目、`sillyspec init` 安装命令模板。**不要编造 `sillyspec workspace ...` 子命令。**
|
|
18
|
+
|
|
19
|
+
## 相关 CLI 命令
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
sillyspec scan # 扫描子项目生成文档
|
|
23
|
+
sillyspec init [--tool <名>] # 安装命令模板
|
|
24
|
+
sillyspec progress show # 查看进度
|
|
25
|
+
```
|
|
26
|
+
|
|
15
27
|
你现在是 SillySpec 的工作区管理器。
|
|
16
28
|
|
|
17
29
|
## 用户指令
|
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
author: qinyi
|
|
3
3
|
created_at: 2026-05-31 11:00:00
|
|
4
|
-
updated_at: 2026-07-
|
|
4
|
+
updated_at: 2026-07-03 11:00:00
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# SillySpec 文件生命周期
|
|
@@ -46,8 +46,8 @@ updated_at: 2026-07-02 11:00:00
|
|
|
46
46
|
| propose | 7 | 包含“生成规范文件”与“自检门控”,四件套是该阶段预期产物 |
|
|
47
47
|
| plan | 动态 | 默认 8 步;`plan.md` 解析到任务后插入任务蓝图协调器 |
|
|
48
48
|
| execute | 动态 | 默认 12 步;Wave 来自 `plan.md`,解析失败时默认 3 个 Wave |
|
|
49
|
-
| verify | 7 | 只读校验 + 写 `verify-result.md` |
|
|
50
|
-
| archive | 5 | 辅助阶段;第 4 步必须带 `--confirm`,由 `run.js` 移动目录并注销 active change |
|
|
49
|
+
| verify | 7 | 只读校验 + 写 `verify-result.md`;完成时 `validateVerifyOutputs` 校验 `verify-result.md` 存在且结论非 FAIL,缺失或 FAIL 则阻断完成 |
|
|
50
|
+
| archive | 5 | 辅助阶段;第 4 步必须带 `--confirm`,由 `run.js` 移动目录并注销 active change;移动前硬校验 `plan.md` 存在,移动后校验 `design.md`/`module-impact.md` |
|
|
51
51
|
| quick | 3 | 辅助阶段;直接在主工作区实现,不创建 worktree |
|
|
52
52
|
| explore | 1 | 只读探索 |
|
|
53
53
|
| status | 3 | 状态展示 |
|
|
@@ -114,6 +114,16 @@ quick
|
|
|
114
114
|
-> code changes are made in the main workspace
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
sillyspec doctor --json(结构化诊断,平台模式状态分裂检测)
|
|
118
|
+
-> <authoritySpecDir>/.runtime/doctor-diagnosis.json
|
|
119
|
+
(authoritySpecDir = pointer.specRoot 平台模式 / <cwd>/.sillyspec 本地模式;只读检测,不写 db)
|
|
120
|
+
|
|
121
|
+
sillyspec doctor --dump-db --path <db>
|
|
122
|
+
-> <authoritySpecDir>/.runtime/doctor-dumps/dump-<ts>.json(只读取证:schema_version + 全量 changes + stages)
|
|
123
|
+
|
|
124
|
+
sillyspec doctor --cleanup-remnant [--confirm]
|
|
125
|
+
-> 删除 0 字节空占位 db(默认 dry-run;--confirm 才真删;只删 size===0,不动有内容的 db)
|
|
126
|
+
|
|
117
127
|
## 核心修正
|
|
118
128
|
|
|
119
129
|
这版文档相对旧版长文档做了几项关键修正:
|
|
@@ -130,3 +140,4 @@ quick
|
|
|
130
140
|
- plan→execute Contract 校验(`parseWavesFromPlan`)只解析 `## Wave N` 段内的 `- [ ] task-XX:` 行;遇到非 Wave 标题行(`## 自检` 等)即退出当前 Wave 段,避免自检 `- [x]` checkbox 被误当 task 定义。
|
|
131
141
|
- `executePlanPostcheck` 的 `resolveChangeDir` 复用 `run.js` 模块内本地函数,不从 `./modules.js` 导入(该模块未导出此函数)。
|
|
132
142
|
- Revision v1:`stages` 表新增 `revision`/`reopened_from_step`/`reopened_at`/`stale_reason` 列;阶段新增 `revising`/`stale` 状态;`sillyspec run <stage> --reopen --from-step <n>` 重开已完成阶段、级联标记下游 stale;`.runtime/postcheck-result.json` 由 `scan-postcheck.js` 的 `writeStructuredResult` 落盘(本地写 `specDir/.runtime`,平台写 `runtimeRoot/scan-runs/<id>`)。
|
|
143
|
+
- 平台指针 fail-closed(2026-07-03):`resolvePlatformSpecDir`(`progress.js`)在 pointer 存在但失效(specRoot 不可达/损坏/缺字段)时抛 `PointerUnreachableError`,`index.js` 顶层 catch 打印修复引导 + exit 1,**不再静默回退本地孤儿 db**;无 pointer 的纯本地项目不受影响。`sync.js` 用 `safePlatformSpecDir` best-effort 包裹保持容错。逃生口:显式 `--spec-dir`。
|
|
@@ -114,7 +114,7 @@ allowWrite = stageGate && locationGate && fileGate
|
|
|
114
114
|
| 场景 | 处理方式 |
|
|
115
115
|
|------|---------|
|
|
116
116
|
| **git < 2.15** | 不支持 worktree,报错停止 |
|
|
117
|
-
| **`--no-worktree` 标志** |
|
|
117
|
+
| **`--no-worktree` 标志** | ⚠️ **未接通**(`runCommand` 未解析此 flag,相关错误提示已移除)。worktree 失败改用 `sillyspec worktree doctor --fix` 或手动清理残留(`git worktree prune && git branch -D sillyspec/<change>`);紧急用 `SILLYSPEC_DISABLE_HOOKS=1`。详见 `docs/sillyspec/file-lifecycle/known-implementation-gaps.md` |
|
|
118
118
|
| **`SILLYSPEC_DISABLE_HOOKS=1`** | 紧急禁用所有 hook,全部放行 |
|
|
119
119
|
| **无 gate-status.json** | stageGate=false,默认禁止源码写入 |
|
|
120
120
|
| **worktree 创建失败** | 自动降级为 in-place + baseline protection(mode: in-place-fallback) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sillyspec",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.7",
|
|
4
4
|
"description": "SillySpec CLI — 流程状态机,让 AI 严格按步骤来",
|
|
5
5
|
"icon": "logo.jpg",
|
|
6
6
|
"homepage": "https://sillyspec.ppdmq.top/",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"bin": {
|
|
13
|
-
"sillyspec": "
|
|
13
|
+
"sillyspec": "bin/sillyspec.js"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=18"
|