feat(cli): add agent ps command
Implements the `paseo agent ps` command for listing agents:
- Lists running agents by default
- `-a, --all` flag to include archived agents
- `--status <status>` filter by agent status
- `--cwd <path>` filter by working directory
- Supports all output formats (table, json, yaml, quiet)
- Graceful error handling when daemon not running
Output format:
AGENT ID NAME PROVIDER STATUS CWD CREATED
a1b2c3d 🎭 Test fixer claude running ~/dev/paseo 2 minutes ago
Phase 3 of CLI implementation (TDD checklist 3.1-3.5)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Command } from 'commander'
|
||||
import { createAgentCommand } from './commands/agent/index.js'
|
||||
import { createDaemonCommand } from './commands/daemon/index.js'
|
||||
|
||||
const VERSION = '0.1.0'
|
||||
@@ -16,15 +17,10 @@ export function createCli(): Command {
|
||||
.option('--no-headers', 'omit table headers')
|
||||
.option('--no-color', 'disable colored output')
|
||||
|
||||
// Placeholder subcommands
|
||||
program
|
||||
.command('agent')
|
||||
.description('Manage agents')
|
||||
.action(() => {
|
||||
console.log('agent command (not yet implemented)')
|
||||
})
|
||||
// Agent commands
|
||||
program.addCommand(createAgentCommand())
|
||||
|
||||
// Real daemon command
|
||||
// Daemon commands
|
||||
program.addCommand(createDaemonCommand())
|
||||
|
||||
program
|
||||
|
||||
Reference in New Issue
Block a user