feat(cli): Phase 2 - Approval, watch, and status commands#3
Open
therichardngai-wolf wants to merge 4 commits intotherichardngai-code:mainfrom
Open
feat(cli): Phase 2 - Approval, watch, and status commands#3therichardngai-wolf wants to merge 4 commits intotherichardngai-code:mainfrom
therichardngai-wolf wants to merge 4 commits intotherichardngai-code:mainfrom
Conversation
Adds a command-line interface for NoteCode management: Task commands: - notecode task list [--status, --priority, --project, --assignee, --search, --json] - notecode task get <id> [--json] - notecode task create --title '...' [--description, --priority, --assignee, --project, ...] - notecode task update <id> [--status, --priority, --title, ...] Session commands: - notecode session list [--task-id, --status, --limit, --json] - notecode session status <id> [--json] - notecode session get <id> [--json] Features: - All commands support --json flag for machine-readable output - Colored, formatted output for human readability - Calls REST API at http://localhost:41920 - Server start preserved: 'notecode' or 'notecode serve' starts the server - Uses Commander.js for CLI parsing
- Add commander.js for subcommand structure - Task commands: list, get, create, update - Session commands: list, get - Support --json output for AI agents - Backward compatible with legacy invocation - Global --api-url flag for custom server URL
Phase 2 CLI enhancements: Approval Commands: - notecode approval list [--session <id>] [--json] - notecode approval get <id> [--json] - notecode approval approve <id> [-m message] - notecode approval reject <id> -r <reason> Watch Command (real-time monitoring): - notecode watch [--json] - SSE-based activity streaming - notecode watch --poll - Polling fallback mode - Outputs: session events, approval pending, task changes Status Command (system overview): - notecode status [--json] - Shows: server status, task counts, sessions, pending approvals All commands support --json for AI agent consumption.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds approval management, real-time watching, and status overview commands.
New CLI Commands
Approval Management
notecode approval list— List pending approvalsnotecode approval get <id>— Get approval details with payload and diffsMonitoring
notecode watch— Real-time session and approval monitoring--interval <ms>for custom poll interval--jsonfor streaming JSON outputStatus
notecode status— Server status overviewFeatures
--jsonfor AI-agent integration