CLI 统一设计:Local + Remote Workflow (git-style 命名) — Khala #120
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
acdea25b595a8484d3ae3d2445ea3ec3601ac760
CLI 统一设计:Local + Remote Workflow
关联 #119 (Khala RFC)
目标
将 remote (cloud) workflow 整合进现有 nerve CLI,采用 git-style 命名,local 和 remote 共用同一套命令语义。
命名规则
无前缀 = local,前缀 = remote name。默认 remote 叫
origin。CLI 结构变更
变更点:
trigger统一为run(更直觉)nerve init workflow移入nerve workflow init(子命令更自然)nerve remote管理 remote 连接Remote Config
在
nerve.yaml中新增remotessection:预留多 remote 支持,第一版只实现
origin。Workflow 描述统一
Local 和 remote workflow 共用同一套描述结构:
name— workflow 名称prompt— role prompt(local 是代码,remote 是声明式 prompt)maxRounds— 最大轮次dryRun— 支持,remote 同样可以 dry runnerve workflow init origin/code-review→ scaffold 出 cloud binding 的模板,结构与 local 一致。执行模型
Agent 执行 remote workflow step,本质上是一个本地 workflow:
本地 workflow 引擎不需要改动,只是多了一个 "remote step executor" workflow 模板。
迁移
nerve workflow trigger→ deprecated,alias 到nerve workflow runnerve init workflow→ deprecated,alias 到nerve workflow initOpen Questions
nerve workflow initscaffold 时,remote workflow 的默认模板长什么样?nerve workflow run origin/xxx --dry-run的 dry run 语义:只在本地模拟,还是也通知 remote?nerve workflow list --remote要不要缓存 remote 列表?CLI 统一设计:Local + Remote Workflow (git-style 命名)to CLI 统一设计:Local + Remote Workflow (git-style 命名) — Khala