Commit Graph

772 Commits

Author SHA1 Message Date
Mohamed Boudra
dd514a4a67 feat(cli): add agent run command
Implements the `paseo agent run` command for creating and running agents:
- Creates agent with initial prompt
- `-d, --detach` flag for background execution
- `--name <name>` to assign a title
- `--provider <provider>` to select claude/codex/opencode
- `--mode <mode>` for provider-specific modes
- `--cwd <path>` for working directory
- Supports all output formats (table, json, yaml, quiet)
- Graceful error handling when daemon not running

Usage:
  paseo agent run "Fix the failing tests"
  paseo agent run -d --name "test-fixer" "Run the test suite"
  paseo agent run --mode bypass "Refactor the auth module"

Phase 4 of CLI implementation (TDD checklist 4.1-4.6)
2026-01-28 23:22:57 +07:00
Mohamed Boudra
e38f8292d4 chore(cli): enable strict TypeScript config 2026-01-28 23:22:22 +07:00
Mohamed Boudra
2bc08e7881 chore: setup prettier configuration 2026-01-28 23:21:56 +07:00
Mohamed Boudra
59e6ab2bf5 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)
2026-01-28 23:13:38 +07:00
Mohamed Boudra
3ed4d4519f test(cli): add daemon command tests
Add tests for daemon commands (Phase 2 from TDD checklist):
- daemon --help shows subcommands
- daemon status fails gracefully when daemon not running
- daemon status --format json outputs JSON
- daemon stop handles daemon not running gracefully
- daemon restart fails when daemon not running

These tests focus on error cases and help output since daemon start
may not be fully implemented yet.
2026-01-28 23:02:45 +07:00
Mohamed Boudra
a7f39f79ba feat(cli): implement output abstraction layer 2026-01-28 22:57:15 +07:00
Mohamed Boudra
aa5663a854 docs(cli): add output architecture design
Design document for the CLI output abstraction layer that enables:
- Commands returning structured data instead of formatted strings
- Multiple output formats (table, json, yaml, quiet)
- Testable output without parsing strings
- Streaming support for logs/attach commands

Draws from patterns in Docker CLI, kubectl, and GitHub CLI.
2026-01-28 22:51:06 +07:00
Mohamed Boudra
6fd4214466 test(cli): add zx TDD infrastructure and phase 1 tests
- Install zx as devDependency for E2E testing
- Create tests/ directory with setup utilities
- Add setup.ts with test context helpers:
  - Random port generation (never 6767)
  - Temp directory creation for PASEO_HOME and workDir
  - Daemon startup/waitForDaemon helper (WebSocket only)
  - Cleanup function
  - paseo() helper to run CLI commands against test daemon
- Add Phase 1 foundation tests (01-foundation.test.mts):
  - Test paseo --version outputs version
  - Test paseo --help shows commands
- Add test runner (run-all.mts) that discovers and runs all tests
- Add test:e2e script to package.json
2026-01-28 22:47:08 +07:00
Mohamed Boudra
6781c1b888 feat(cli): add foundation - package setup and entry point
Add @paseo/cli package with:
- Package structure with npm workspace integration
- bin/paseo entry point using tsx
- Commander.js setup with --version and --help
- Placeholder subcommands: agent, daemon, permit, worktree, provider
2026-01-28 22:42:08 +07:00
Mohamed Boudra
2c138312b2 Update files 2026-01-28 21:57:31 +07:00
Mohamed Boudra
d158dcf77a Update files 2026-01-28 15:41:21 +07:00
Mohamed Boudra
f7935f9cc1 Update files 2026-01-28 15:25:12 +07:00
Mohamed Boudra
96b211a2cf Update files 2026-01-28 13:25:48 +07:00
Mohamed Boudra
c615d422ca Update files 2026-01-27 13:48:04 +07:00
Mohamed Boudra
a18739319f Update files 2026-01-27 13:38:56 +07:00
Mohamed Boudra
971da6f48a Update files 2026-01-27 13:11:13 +07:00
Mohamed Boudra
024dbdfda8 Update files 2026-01-27 13:08:51 +07:00
Mohamed Boudra
766585d1cb Update files 2026-01-27 13:06:01 +07:00
Mohamed Boudra
637967fa14 Update files 2026-01-26 20:38:39 +07:00
Mohamed Boudra
c233c99cd3 Update files 2026-01-26 18:03:51 +07:00
Mohamed Boudra
6095bf975b Update files 2026-01-26 14:30:41 +07:00
Mohamed Boudra
fe5ab731e0 Update files 2026-01-26 14:09:07 +07:00
Mohamed Boudra
be235e14d7 Update files 2026-01-25 20:40:00 +07:00
Mohamed Boudra
d1a47c22f9 Tweak agent details padding and handle github remote project keys 2026-01-25 09:45:29 +07:00
Mohamed Boudra
aa979f5230 Add toast provider, agent details sheet, and remote-based grouping 2026-01-25 09:41:17 +07:00
Mohamed Boudra
ccd175b4b7 Capture dictation/TTS debug audio and show dictation errors 2026-01-25 09:35:07 +07:00
Mohamed Boudra
9d0dd8b19e Update files 2026-01-25 08:42:00 +07:00
Mohamed Boudra
d4011408f7 Merge branch 'fix-agent-archive-non-worktree' 2026-01-24 23:34:55 +07:00
Mohamed Boudra
084177da16 Persist agent deletion and support subdir worktree cleanup 2026-01-24 23:34:09 +07:00
Mohamed Boudra
ef612abfc1 Update files 2026-01-24 23:06:00 +07:00
Mohamed Boudra
504fb83fa9 Update files 2026-01-24 22:21:28 +07:00
Mohamed Boudra
fb07df3fd1 Merge branch 'main' into git-diff-panel-reorg
# Conflicts:
#	scripts/dev.sh
2026-01-24 22:13:32 +07:00
Mohamed Boudra
1f91de5cbc Update files 2026-01-24 22:12:07 +07:00
Mohamed Boudra
1d3785dc7f Merge branch 'agent-header-styling' 2026-01-24 22:07:10 +07:00
Mohamed Boudra
63c765b209 chore(dev): use persistent PASEO_HOME and bind to all interfaces 2026-01-24 22:07:07 +07:00
Mohamed Boudra
8584f21bfb Merge branch 'main' into agent-header-styling 2026-01-24 22:06:14 +07:00
Mohamed Boudra
6503d3b408 Update files 2026-01-24 22:05:44 +07:00
Mohamed Boudra
9af2957ca0 Update files 2026-01-24 21:43:51 +07:00
Mohamed Boudra
0d9d95c340 Merge branch 'cranky-moth' 2026-01-24 21:26:55 +07:00
Mohamed Boudra
22d48ea312 Update files 2026-01-24 21:26:43 +07:00
Mohamed Boudra
237aa40674 Merge branch 'remove-tab-icons' 2026-01-24 21:25:30 +07:00
Mohamed Boudra
c71134c78e Merge branch 'fix/e2e-home-routing' 2026-01-24 21:25:22 +07:00
Mohamed Boudra
8fe30eae75 feat(checkout): add merge-from-base and push operations for worktree branches 2026-01-24 21:24:48 +07:00
Mohamed Boudra
1b0094e7d9 Remove icons from explorer sidebar tabs 2026-01-24 21:08:02 +07:00
Mohamed Boudra
dc4839e2c0 Fix agent routing and E2E create flow 2026-01-24 20:20:56 +07:00
Mohamed Boudra
3e2d403f1b fix agent create: keep draft view until agent ready 2026-01-24 19:29:56 +07:00
Mohamed Boudra
6ecf88b502 refactor agent route for draft→chat transition 2026-01-24 19:18:07 +07:00
Mohamed Boudra
56399bcb42 Merge branch 'dry-review' 2026-01-24 19:04:39 +07:00
Mohamed Boudra
e9b1021cb9 Remove unused components and clean up codebase
- Remove orchestrator.tsx and orchestrator-messages-view.tsx
- Remove conversation-selector.tsx
- Remove thinking-sheet.tsx and agent-thought-content.tsx
- Remove home-header.tsx
- Update message.tsx and agent-stream-view.tsx
- Add tool call detail improvements
- Add lz-string dependency for compression
2026-01-24 19:04:21 +07:00
Mohamed Boudra
6b28167fdd Merge audit/streaming-asr-tail: streaming ASR partials and env host reset 2026-01-24 19:01:23 +07:00