@seanyao/roll 3.618.3 → 3.619.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/CHANGELOG.md +44 -0
- package/README.md +2 -1
- package/dist/roll.mjs +9066 -5629
- package/package.json +1 -1
- package/skills/README.md +2 -2
- package/skills/docs/skill-authoring.md +4 -3
- package/skills/roll-build/references/full-contract.md +12 -28
- package/skills/roll-fix/references/full-contract.md +6 -11
- package/skills/roll-loop/references/full-contract.md +41 -62
- package/skills/roll-peer/references/full-contract.md +1 -7
- package/skills/route-cases/skills.json +0 -20
- package/skills/roll-brief/SKILL.md +0 -207
- package/skills/roll-sentinel/SKILL.md +0 -46
- package/skills/roll-sentinel/references/full-contract.md +0 -363
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## v3.619.1 — 2026-06-19
|
|
6
|
+
|
|
7
|
+
### 修复
|
|
8
|
+
|
|
9
|
+
- **`roll release` 可反复执行并自愈中断**:release 分支或 PR 已存在时不再失败,而是复用已有分支/PR 并跳过已完成步骤;auto-merge 已开启或 PR 已合并时幂等跳过;配合已有的 GraphQL EOF 重试 + REST 回退,一次网络抖动不再毁掉发版。(FIX-330) `[release]`
|
|
10
|
+
|
|
11
|
+
- **多智能体评审更扛抖动**:`roll peer` 和 `roll loop go --review auto` 现在会按排序依次尝试多个异构 reviewer,单个 agent 超时或崩溃时自动换下一个,不再因为一次失败就误判为无可用 reviewer 或终止终审。(FIX-336) `[pairing]`
|
|
12
|
+
|
|
13
|
+
- **审计并清理 v2→v3 "假 Done" 死 bash 引用**:系统扫描技能合约与文档中已退役的 `source "$(command -v roll)"` 和 `_loop_*` bash 调用,确认 US-AGENT-008/009 的 self-downgrade 能力在 v3 缺失并退回状态;技能审计新增 `dead-bash-ref` 回归闸,`roll skills audit --strict` 不再允许新的死 bash 引用进入 skill 合约。(FIX-364) `[feedback-truth-alignment]`
|
|
14
|
+
|
|
15
|
+
### 新功能
|
|
16
|
+
|
|
17
|
+
- **工具层类型契约落进 spec**:新增 ToolId/ToolDeclaration/ToolInvocation/ToolResult/ToolPolicy/ToolCost 等共享类型,并让 CycleCost 可挂载 toolCosts,为后续 registry、policy 和 adapter 层提供同一套类型词汇。(US-TOOL-001) `[tools-layer]`
|
|
18
|
+
|
|
19
|
+
- **工具注册表核心落地**:新增 core/tools ToolRegistry 与 Tool 接口,统一 register/invoke/shutdown/snapshotCosts 路径,把 policy、预算、事件、retry 和成本累计都收进可测试的核心层。(US-TOOL-002) `[tools-layer]`
|
|
20
|
+
|
|
21
|
+
- **工具策略从 policy.yaml 解析**:新增 ToolPolicyEngine,从 `.roll/policy.yaml` 的 `tools:` section 解析 enabled、timeout、retry、预算和 sandbox 字段,未知字段只告警不拒绝。(US-TOOL-003) `[tools-layer]`
|
|
22
|
+
|
|
23
|
+
- **Bash 工具适配器落地**:新增 infra BashTool,通过 argv-only exec seam 执行命令,支持 cwd allowlist、timeout、输出截断、advisory blockedCommands、secret redaction 和 `.roll/tool-dumps/` dump。(US-TOOL-004) `[tools-layer]`
|
|
24
|
+
|
|
25
|
+
- **Browser 工具适配器落地**:新增 infra BrowserTool,同一 adapter family 提供 `browser.screenshot`、`browser.console`、`browser.dom-query`,支持 allowedOrigins/headlessOnly sandbox、headless/GUI lane、honest skip 和共享队列。(US-TOOL-005) `[tools-layer]`
|
|
26
|
+
|
|
27
|
+
- **Git 工具适配器落地**:新增 infra GitTool,同一 adapter family 提供 `git.commit`、`git.status`、`git.push`、`git.merge`,复用现有 git wrapper 保持命令语义不变,并让 `git.status` 支持成功静默事件。(US-TOOL-006) `[tools-layer]`
|
|
28
|
+
|
|
29
|
+
- **GitHub 工具适配器落地**:新增 infra GitHubTool,同一 adapter family 提供 `github.pr`、`github.ci`,复用现有 gh CLI wrapper 处理 PR 创建/状态/合并与 CI 状态/重跑,保持 GitHub 调用语义不变。(US-TOOL-007) `[tools-layer]`
|
|
30
|
+
|
|
31
|
+
- **Filesystem 工具适配器落地**:新增 infra FsTool,同一 adapter family 提供 `filesystem.stat`、`filesystem.read`、`filesystem.write`,按 allowedPaths 管控路径,支持相对路径按项目根解析、读截断和写入前 redaction。(US-TOOL-008) `[tools-layer]`
|
|
32
|
+
|
|
33
|
+
- **Network 工具适配器落地**:新增 infra NetworkTool,提供 `network.fetch`,支持 timeout、policy retry、allowedOrigins、network blocked、redirect follow 和 HTTP proxy 环境变量,让 HTTP 探测走统一工具治理路径。(US-TOOL-009) `[tools-layer]`
|
|
34
|
+
|
|
35
|
+
- **MCP 工具适配器落地**:新增 infra McpTool,提供 `mcp.call`,支持 `.roll/mcp-servers.json` 与 `policy.yaml tools.mcp.servers` 配置、lazy connection reuse、dispose 断开、policy disabled 拒绝和 server unavailable 诚实错误分类。(US-TOOL-010) `[tools-layer]`
|
|
36
|
+
|
|
37
|
+
- **工具调用事件与成本观测收紧**:ToolRegistry 的 `tool:result` 事件改为只发布脱敏结果事实,失败结果即使 `emitsEvents:false` 也会留痕;CLI 无 cycleId 的工具调用不计入 per-cycle ToolCost,cycle:end 可携带工具成本快照。(US-TOOL-011) `[tools-layer]`
|
|
38
|
+
|
|
39
|
+
- **CLI 展示工具调用时间线与成本摘要**:`roll loop status`、`roll cycle` 和 attest report 现在会从事件流/CycleCost 展示工具调用摘要、失败 errorCode 与工具成本 breakdown,并保留原生币种显示,避免把人民币成本误标成美元。(US-TOOL-012) `[tools-layer]`
|
|
40
|
+
|
|
41
|
+
- **网页 Loop 账本展示工具调用轨迹**:Truth Console 的 Loop cycle 行现在在成本列旁露出工具摘要,展开后展示每次工具调用、失败 errorCode 和按原生币种标注的工具成本,截图证据可直接证明 USD 与 CNY/RMB 不会混标。(US-TOOL-013) `[tools-layer]`
|
|
42
|
+
|
|
43
|
+
- **既有 infra 调用迁移到工具治理路径**:process exec、git/gh wrapper 和默认 web screenshot 现在会经 infra tool delegation seam 执行,保留原命令语义的同时向 events.ndjson 追加脱敏 tool invoke/result 事件。(US-TOOL-014) `[tools-layer]`
|
|
44
|
+
|
|
45
|
+
- **工具层文档和状态命令落地**:新增英文/中文 Tools guide 与 `roll tool status`,用户可以查看注册工具、有效 policy 状态、CLI/Dashboard 工具用量入口和原生币种成本边界。(US-TOOL-015) `[tools-layer]`
|
|
46
|
+
|
|
5
47
|
## v3.618.3 — 2026-06-18
|
|
6
48
|
|
|
7
49
|
### 修复
|
|
8
50
|
|
|
9
51
|
- **showcase 在全局安装下 agent probe 崩溃**:`rollBin()` 定位到全局包的 `conventions/` 而找不到本地 `roll.js`,子进程直接崩掉判所有 agent 不可用;现加回退:本地不存在时走 PATH 的 `roll`。`[showcase]`
|
|
10
52
|
|
|
53
|
+
- **退役未成熟的生产巡检与 owner 简报**:从活跃 skill 目录、skill 面板、站点 skill 地图和核心 patrol 代码中移除 `roll-sentinel` 和 `roll-brief`,停止将其作为当前核心能力呈现;通用 sentinel 概念(截屏/PAUSE/默认值)原样保留。(FIX-356b) `[skills]`
|
|
54
|
+
|
|
11
55
|
## v3.618.2 — 2026-06-18
|
|
12
56
|
|
|
13
57
|
### 改进
|
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ First time through? Start with [Getting started](guide/en/getting-started.md).
|
|
|
75
75
|
| `roll doctor skills [--strict] [--json]` | Strict skills audit (skills · violations · hub lines + the four invocation groups — the SAME yardstick the web Skills page reads) |
|
|
76
76
|
| `roll setup skills` | Sync the `guide/skills.md` skill catalog |
|
|
77
77
|
| `roll doc [--lang en\|zh] [name]` | View the Charter / language guide markdown in the terminal (`--lang` falls back to the configured language) |
|
|
78
|
+
| `roll tool status` | Show registered tools and their effective `.roll/policy.yaml` state |
|
|
78
79
|
| `roll prices [refresh]` | Model price table (cost accounting source) |
|
|
79
80
|
| `roll setup [skills\|-f]` | First-time install, skill catalog generation, or re-sync conventions to all AI clients |
|
|
80
81
|
| `roll update` | Upgrade to latest + re-sync |
|
|
@@ -114,7 +115,7 @@ Published as a single npm package `@seanyao/roll`: `dist/` (the CLI bundled to o
|
|
|
114
115
|
| | |
|
|
115
116
|
|---|---|
|
|
116
117
|
| **Start here** | [Getting started](guide/en/getting-started.md) · [Overview & architecture](guide/en/overview.md) · [Engineering methodology](guide/en/methodology.md) |
|
|
117
|
-
| **Daily driving** | [The loop (autonomous executor)](guide/en/loop.md) · [Configuration](guide/en/configuration.md) · [Pricing & cost](guide/en/pricing.md) · [FAQ](guide/en/faq.md) |
|
|
118
|
+
| **Daily driving** | [The loop (autonomous executor)](guide/en/loop.md) · [Tools & policy](guide/en/tools.md) · [Configuration](guide/en/configuration.md) · [Pricing & cost](guide/en/pricing.md) · [FAQ](guide/en/faq.md) |
|
|
118
119
|
| **Quality machinery** | [Acceptance evidence (`roll attest`)](guide/en/acceptance-evidence.md) · [Evidence lifecycle](guide/en/acceptance-evidence.md#lifecycle-in-three-stages) · [Consistency & release gate](guide/en/consistency.md) · [Cross-agent pairing](guide/en/pairing.md) · [Peer review](guide/en/peer.md) · [Test isolation](guide/en/test-isolation.md) |
|
|
119
120
|
| **Under the hood** | [Architecture: layers · domain · invariants](docs/architecture.md) · [Verification system](docs/verification.md) · [Manifesto](docs/manifesto.md) |
|
|
120
121
|
|