@andyqiu/codeforge 0.5.8 → 0.5.9
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/agents/discover.md +14 -1
- package/commands/pause.md +4 -4
- package/dist/index.js +552 -299
- package/package.json +1 -1
- package/commands/autonomy.md +0 -91
package/agents/discover.md
CHANGED
|
@@ -4,14 +4,27 @@ description: 虚拟产品经理 — 用人话陪你把模糊想法变成 PRD 和
|
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
mode: primary
|
|
6
6
|
# opencode 标准字段(单数)— 实际生效的权限
|
|
7
|
+
# ADR:discover-write-permission-acl — discover 是 productive primary:必须能写 PRD/handoff;
|
|
8
|
+
# 写路径由 .codeforge/policy.json::per_agent.discover.allow 物理锁死;
|
|
9
|
+
# session-worktree-guard 类 E 走 3 级 agent 解析(L1 input.agent → L2a chat-agent-cache → L2 IPC)
|
|
10
|
+
# + fail-closed deny(agent 解析失败 → deny 任何写)
|
|
7
11
|
permission:
|
|
8
|
-
edit:
|
|
12
|
+
edit: allow
|
|
9
13
|
bash: deny
|
|
10
14
|
webfetch: deny
|
|
11
15
|
# CodeForge 自描述字段(phase1:check 校验复数 + 列表形态)
|
|
12
16
|
permissions:
|
|
17
|
+
edit: allow # 与单数 permission 对齐;ACL 证据见下方 write_path_acl 字段
|
|
13
18
|
bash: deny
|
|
14
19
|
webfetch: deny
|
|
20
|
+
# ADR:discover-write-permission-acl — productive primary agent 例外
|
|
21
|
+
# 必填字段:声明 ACL 物理拦截的证据位置,让 phase1:check 能机械核对
|
|
22
|
+
write_path_acl:
|
|
23
|
+
source: ".codeforge/policy.json"
|
|
24
|
+
key: "per_agent.discover"
|
|
25
|
+
expected_allow:
|
|
26
|
+
- ".codeforge/specs/*/PRD.md"
|
|
27
|
+
- ".codeforge/specs/*/handoff.yaml"
|
|
15
28
|
allowed_tools:
|
|
16
29
|
- read
|
|
17
30
|
- write
|
package/commands/pause.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pause
|
|
3
|
-
description:
|
|
3
|
+
description: 暂停当前 session 的自主执行
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
暂停当前 session
|
|
6
|
+
暂停当前 session 的自主执行。
|
|
7
7
|
|
|
8
8
|
**行为说明**:
|
|
9
9
|
|
|
@@ -11,8 +11,8 @@ description: 立刻暂停当前 session 的 auto 模式,降回 semi
|
|
|
11
11
|
- `paused` 标志设置后,driver 会在**下一次** `task.completed` / `session.idle` 事件时生效
|
|
12
12
|
- 如需**立刻放弃**所有改动,请使用 `/discard-session`(不可逆,硬丢 worktree)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
**恢复**:重启 session 即可(auto 是默认唯一模式)
|
|
15
15
|
|
|
16
16
|
**配置存储**:`<runtimeDir>/autonomy/<sessionId>.json`,跨进程并发安全(withFileLock)
|
|
17
17
|
|
|
18
|
-
**关联 ADR**:[
|
|
18
|
+
**关联 ADR**:[remove-three-autonomy-modes](../docs/adr/remove-three-autonomy-modes.md)
|