refactor(cli): split workflow/thread into two top-level command groups #145
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?
What
Split the current
nerve workflowcommand into two top-level command groups to reflect the two-layer domain model:Why
Currently
nerve workflowmixes definition-level operations (list workflows, trigger) with instance-level operations (runs, inspect, thread, kill). This causes naming confusion (listvsruns,inspectvsthread). Splitting into two groups makes the CLI self-documenting.Target CLI Structure
nerve workflow— definition layernerve thread— instance layerChanges
packages/cli/src/commands/workflow.tslist(NEW — reads workflow definitions from workspace YAML files),status(rename from currentlist),triggerruns,inspect,thread,kill(moved to thread group)packages/cli/src/commands/thread.ts(NEW)list— moved fromworkflow runs, change positional[workflow]arg to--workflow <name>flagshow— moved fromworkflow thread(the role-rounds / conversation view)inspect— moved fromworkflow inspect(system event log view)kill— moved fromworkflow killpackages/cli/src/cli.tsthreadtop-level command groupthreadCommandfrom new fileNotes
nerve workflow listis NEW — currently there is no command to list defined workflows. It should read from the workspace YAML files and show: name, schedule (if any), concurrency confignerve workflow statusreplaces the currentnerve workflow listwhich queries the daemon for real-time state--allflag on currentrunsshould move tothread list --all--limit,--offset,--before,--budget) should be preserved on the respective thread commandsworkflow triggererror message still saysnerve startinstead ofnerve daemon startRef
None