feat: workspace biome.json with noConsole, remove dryRun console.log #106

Closed
opened 2026-04-25 00:55:03 +00:00 by xiaoju · 0 comments
Owner

概述

Workflow 代码的 stdout 没人看(daemon worker stdout 是 inherit 但无持久化),有意义的数据应该走 role 返回值进 log-store。workspace 应该用 biome 禁止 console。

改动

1. packages/cli/src/commands/init.ts

  • 新增 BIOME_JSON 模板,nerve init 时写入 workspace
  • 规则:noConsole: error,formatter 和 nerve 主仓一致
  • package.json 模板 devDependencies 加 @biomejs/biome

2. ~/.uncaged-nerve/biome.json(当前 workspace)

  • 手动补上同样的 biome.json

3. packages/workflow-utils/src/

  • 去掉 spawnSafe、cursorAgent、llmExtract 里 dryRun 的 console.log
  • dryRun 信息已经在 stub 返回值里,role 正常返回后由 log-store 记录

不动的

  • nerve 核心包(cli/daemon/core/store)不禁 console,CLI 和 daemon 日志需要它
## 概述 Workflow 代码的 stdout 没人看(daemon worker stdout 是 inherit 但无持久化),有意义的数据应该走 role 返回值进 log-store。workspace 应该用 biome 禁止 console。 ## 改动 ### 1. `packages/cli/src/commands/init.ts` - 新增 BIOME_JSON 模板,`nerve init` 时写入 workspace - 规则:`noConsole: error`,formatter 和 nerve 主仓一致 - package.json 模板 devDependencies 加 `@biomejs/biome` ### 2. `~/.uncaged-nerve/biome.json`(当前 workspace) - 手动补上同样的 biome.json ### 3. `packages/workflow-utils/src/` - 去掉 spawnSafe、cursorAgent、llmExtract 里 dryRun 的 console.log - dryRun 信息已经在 stub 返回值里,role 正常返回后由 log-store 记录 ## 不动的 - nerve 核心包(cli/daemon/core/store)不禁 console,CLI 和 daemon 日志需要它
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#106