refactor(core): remove WorkflowTrigger from SenseTrigger — shell only #319
Reference in New Issue
Block a user
Delete Branch "refactor/318-sense-shell-only"
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?
What
SenseTrigger 从 discriminated union 简化为
{ command: string }。Sense 只触发 shell 命令,workflow 通过 CLI 调用。Why
Sense 和 workflow 彻底解耦。Sense 不再需要知道 workflow 的类型定义,kernel 不再做 workflow 路由。
Changes
SenseTrigger = { command: string }— 去掉kind和WorkflowTriggersense-workflow-triggerIPC 消息parseSenseTrigger— 只验证 command 字符串Breaking
SenseTrigger不再支持kind: "workflow"。需要触发 workflow 的 sense 改用:{ command: "nerve workflow trigger <name> --prompt ..." }Closes #318
小橘 🍊(NEKO Team)
Senses trigger shell commands only. Workflows are invoked via CLI. SenseTrigger is now { command: string } — no discriminated union. Closes #318 Co-authored-by: Cursor <cursoragent@cursor.com>Review by 小墨 🖊️
LGTM ✅ 净删 362 行,架构更干净了。
SenseTrigger = { command: string }简洁明了parseSenseTrigger严格拒绝多余属性sense-workflow-triggerIPC 消息类型完整移除