@alenfitz/spec-copilot 2.5.0 → 2.5.1
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/adapters/index.js +2 -2
- package/bin/cli.js +2 -2
- package/bin/e2e-smoke.js +2 -2
- package/bin/frontend-checks.js +2 -2
- package/bin/guard.js +2 -2
- package/framework/AGENTS.md.template +5 -4
- package/framework/CHANGELOG.md +20 -19
- package/framework/VERSION +1 -1
- package/package.json +1 -1
package/framework/CHANGELOG.md
CHANGED
|
@@ -4,33 +4,34 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## [2.5.
|
|
7
|
+
## [2.5.1] - 2026-05-23
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### 变更
|
|
10
10
|
|
|
11
|
-
**Guard
|
|
11
|
+
**Guard 护栏重构:chmod 主防线 + git hook 附加层**
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
v2.5.0 依赖 git hook 拦截,但不是所有项目都用 git。
|
|
14
|
+
v2.5.1 改为 chmod 444(操作系统级只读)为主防线,不依赖任何 VCS:
|
|
15
15
|
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
16
|
+
- **主防线:chmod 444** — 被保护文件设为只读,AI 工具调 write/edit 时 OS 直接拒绝
|
|
17
|
+
- **附加层:git hook** — 有 git 时自动安装,做骨架组件 + 相位门禁检查
|
|
18
|
+
- 支持 Windows(attrib +R)和 macOS/Linux(chmod 444)
|
|
19
|
+
- `guard check` 增加完整性校验:检查锁定文件的 chmod 状态和内容 hash
|
|
20
|
+
- `guard install` 在非 git 项目中也能工作(仅 chmod,跳过 hook)
|
|
21
|
+
- `guard lock/unlock` 直接操作文件权限,立即生效
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
1. **文件保护**:spec.md 审批后锁定、domain-rules.md / project-context.md 永久保护
|
|
24
|
-
2. **相位门禁**:没有 smoke 哨兵不能提交 review 变更
|
|
25
|
-
3. **骨架组件**:.vue 文件只有占位组件或 TODO 不能提交
|
|
23
|
+
---
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
## [2.5.0] - 2026-05-23
|
|
26
|
+
|
|
27
|
+
### 新增
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
人类紧急操作:`git commit --no-verify`。
|
|
29
|
+
**Guard 代码级护栏系统 — "提示词是建议,代码是法律"**
|
|
31
30
|
|
|
32
|
-
- `
|
|
33
|
-
-
|
|
31
|
+
- `spec-copilot guard install/status/lock/unlock/check` 命令
|
|
32
|
+
- pre-commit hook 拦截:文件保护、相位门禁、骨架组件
|
|
33
|
+
- Gate 集成:通过后自动锁定 spec.md
|
|
34
|
+
- `.spec-copilot/guard.json` 声明式配置
|
|
34
35
|
|
|
35
36
|
---
|
|
36
37
|
|
package/framework/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.1
|
package/package.json
CHANGED