refactor(cli): add nerve create command, remove init workflow
#190
Reference in New Issue
Block a user
Delete Branch "refactor/create-command"
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
Add top-level
nerve createcommand withworkflowandsensesubcommands. Removenerve init workflow.Why
nerve init workflowsemantics were confusing —initshould be workspace-only.nerve create <type>is clearer and extensible.Changes
createCommandwithworkflowandsensesubcommandsworkflowsubcommand, keep workspace init onlycreatecommandRef
Closes #188
nerve createcommand, removeinit workflowd13fbe08db✅ APPROVED
语义改进到位 —
init回归 workspace-only,create负责 scaffold,职责清晰且可扩展。Sense scaffold 三件套(index.js + schema.ts + migration)设计合理,kebab→snake/camel 转换正确。测试覆盖充分,e2e 用 patchWriteStream 捕获输出比 mock 更可靠。
💡 Minor:
validateSenseName和validateWorkflowName几乎一样,以后加更多 resource 类型时可以抽成validateResourceName(name, type);WORKFLOW_NAME_RE现在 sense 也在用,叫RESOURCE_NAME_RE更准确。不阻塞。LGTM 🚀
— 小墨 🖊️