Commit Graph
100 Commits
Author SHA1 Message Date
Mohamed Boudra a473302a9f refactor: use --json flag alias instead of --format json throughout CLI 2026-02-01 12:33:18 +07:00
Mohamed Boudra dac1538d1f docs: add debugging guide and cli npm script 2026-01-31 23:12:14 +07:00
Mohamed Boudra 7c50b2a66b fix: respect safe area insets and improve drag visual feedback 2026-01-31 22:57:47 +07:00
Mohamed Boudra c57c86286a fix: use mainRepoRoot for agent creation in Paseo-owned worktrees 2026-01-31 12:04:32 +07:00
Mohamed Boudra ea33d1980f feat: add keyboard navigation to combobox and select fields on web 2026-01-30 22:52:07 +07:00
Mohamed Boudra 025a68c3a4 refactor: move shell output ANSI stripping to app layer 2026-01-30 14:57:35 +07:00
Mohamed Boudra 25c7d5afa9 refactor: consolidate agent wait methods and use in-memory MCP transport 2026-01-30 14:50:01 +07:00
Mohamed Boudra 0618dc6b0d refactor: rename session_state to agent_list and add subscriptions 2026-01-30 13:39:40 +07:00
Mohamed Boudra 5b32d0a56c fix: update MCP tests to use createAgentSelfIdMcpServer
Tests for set_title and set_branch were looking for these tools in
mcp-server.ts but they were moved to agent-self-id-mcp.ts during
the MCP split.
2026-01-30 12:29:01 +07:00
Mohamed Boudra f8da5ada71 fix: move PID lock to bootstrap.ts for all entrypoints 2026-01-30 12:09:56 +07:00
Mohamed Boudra f689cb1385 fix: remove duplicate PID lock release from bootstrap.ts 2026-01-30 11:57:12 +07:00
Mohamed Boudra 829de66d2f fix: remove duplicate PID lock and simplify socket path config
- Remove duplicate acquirePidLock call from bootstrap.ts (keep in index.ts
  where proper error handling exists)
- Remove PASEO_SELF_ID_MCP_SOCK env var override from config.ts
2026-01-30 11:54:15 +07:00
Mohamed Boudra 1670c7084b fix: complete MCP split implementation
- Fix socket path conflict: main server defaults to TCP (localhost:6767),
  Self-ID MCP uses Unix socket (self-id-mcp.sock)
- Remove set_title/set_branch from mcp-server.ts (they belong only in
  agent-self-id-mcp.ts which is used by coding agents)
- Rename mcpSocketPath to selfIdMcpSocketPath for consistency
- Pass --socket arg to self-id-bridge so non-default paths work
- Wire up PID lock to prevent multiple daemon instances
- Add PASEO_SELF_ID_MCP_SOCK env var for testing override
2026-01-30 11:46:50 +07:00
Mohamed Boudra eac342aa8b Merge branch 'main' of github.com:boudra/paseo 2026-01-29 12:20:33 +07:00
Mohamed BoudraandGitHub 0f59908415 Merge pull request #4 from boudra/test/fix-wait-for-permission-e2e
feat: add CLI package with daemon and agent commands
2026-01-29 12:20:07 +07:00
Mohamed Boudra 7a8841481e feat: wait returns on permission request and improve CLI logging 2026-01-29 12:12:39 +07:00
Mohamed Boudra c015fdbef1 refactor: replace agent-control MCP with labels system and Paseo MCP 2026-01-29 11:31:15 +07:00
Mohamed Boudra a21e070647 Increase branch badge max width to 40% 2026-01-29 11:19:51 +07:00
Mohamed Boudra edc67ba5f7 Strip ANSI codes from commands and limit branch badge width 2026-01-29 11:19:33 +07:00
Mohamed Boudra dfda6daeed refactor(cli): rename ps to ls and add top-level agent commands 2026-01-29 10:41:19 +07:00
Mohamed Boudra 7d4636ecff feat(cli): add agent logs command
Add `paseo agent logs <id>` command to view agent activity/timeline.

Features:
- View agent timeline entries (messages, tool calls, errors)
- `-f, --follow` flag for real-time streaming
- `--tail <n>` to limit entries shown
- Proper formatting of different timeline item types
2026-01-28 23:46:13 +07:00
Mohamed Boudra 74fceed9b5 feat(cli): add agent inspect command
Add the `paseo agent inspect <id>` command that shows detailed
information about an agent:

- Id, name, provider, model, status, mode, cwd
- Creation timestamp
- Token usage (input, output, cached, cost)
- Capabilities (streaming, persistence, dynamic modes, MCP servers)
- Available modes
- Pending permissions count
- Parent agent ID

The default output is YAML-like key-value pairs. Use `--format json`
or `--format yaml` for machine-readable output with the full agent
snapshot.

Supports agent ID prefix matching.
2026-01-28 23:41:50 +07:00
Mohamed Boudra f96a4ee3df feat(cli): add agent mode command
Add the `paseo agent mode` command for changing and listing agent
operational modes. Supports setting a mode or listing available modes
with the --list flag.

Usage:
  paseo agent mode <id> <mode>     # Set mode
  paseo agent mode --list <id>     # List available modes
2026-01-28 23:41:14 +07:00
Mohamed Boudra d78c7d5e07 chore(cli): rename test files from .mts to .ts 2026-01-28 23:34:22 +07:00
Mohamed Boudra d51d70a6fd feat(cli): add resolveAgentId helper for partial ID matching
Adds a utility function for resolving agent IDs from partial IDs or names.
Supports:
- Full ID match
- Prefix match (first N characters)
- Title/name match (case-insensitive)

Used by agent stop and send commands to allow flexible agent targeting.
2026-01-28 23:27:31 +07:00
Mohamed Boudra b040e2fc6d feat(cli): add agent stop command
Implements the `agent stop` command for stopping agents.

Features:
- Stop a specific agent by ID (with prefix matching)
- --all flag to stop all running agents
- --cwd flag to stop all agents in a specific directory
- Cancels running agents before terminating them
- Graceful error handling for partially failed stops

Usage:
  paseo agent stop <id>
  paseo agent stop --all
  paseo agent stop --cwd ~/dev/paseo
2026-01-28 23:26:53 +07:00
Mohamed Boudra 851d5ef247 feat(cli): add agent send command
Implements the `agent send` command for sending messages to existing agents.

Features:
- Send follow-up tasks to running agents
- Support for ID prefix matching (e.g., "a1b2" matches "a1b2c3d4")
- --no-wait flag to return immediately without waiting for completion
- Default behavior waits for agent to become idle

Usage:
  paseo agent send <id> <prompt>
  paseo agent send --no-wait a1b2c3d "Run the linter"
2026-01-28 23:25:45 +07:00
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
Mohamed Boudra b498c9ea81 Add streaming ASR partial transcripts and reset hosts to env default
- Stream partial transcripts to the client during dictation for live feedback
- Use OpenAI semantic VAD instead of manual commit intervals for better word boundaries
- Append silence tail on finish to flush final utterance through VAD
- Skip committing silence-only audio tails
- Reset hosts to env-defined daemon when env var is present, overriding stored state
2026-01-24 19:01:14 +07:00
Mohamed Boudra 21cff48d3f refactor(server): switch agent registry to AgentStorage 2026-01-24 17:46:11 +07:00
Mohamed Boudra 9b82c02fd2 Add welcome onboarding and remove default localhost host 2026-01-24 17:01:12 +07:00
Mohamed Boudra f8f37ace58 Update files 2026-01-24 16:40:13 +07:00
Mohamed Boudra b86075040d Update files 2026-01-24 16:10:58 +07:00
Mohamed Boudra 1b61fabde5 Add auto-port dev script for worktree support
- Add scripts/dev.sh that finds available ports for daemon (6767+) and Metro (8081+)
- Runs both services via concurrently with colored output
- Sets PASEO_CORS_ORIGINS dynamically for the Metro port
- Sets EXPO_PUBLIC_DAEMONS to auto-configure app with daemon endpoint
- Add get-port-cli and concurrently as dev dependencies
- Rename npm run dev to use the script, add dev:server for daemon-only
2026-01-24 15:45:39 +07:00
Mohamed Boudra 657644b5e7 Update files 2026-01-24 14:08:01 +07:00
Mohamed Boudra b919a3cdd9 Revamp Changes pane view + ship menus and stabilize e2e selectors 2026-01-24 08:52:31 +07:00
Mohamed Boudra 2b55d3ae6a Add Changes overflow menu and primary action toolbar 2026-01-23 22:59:31 +07:00
Mohamed Boudra a0cab29e1a Merge branch 'lockdown-dictation-e2e' 2026-01-23 18:55:21 +07:00
Mohamed Boudra 0ff0293a97 Stream dictation via OpenAI Realtime and simplify retry UI 2026-01-23 18:55:14 +07:00
Mohamed Boudra 907b9f9fbd Dedup checkout status refetch and in-flight requests 2026-01-23 15:46:44 +07:00
Mohamed Boudra eab8713c24 Persist base branch for Paseo worktrees and gate merge action 2026-01-23 15:27:42 +07:00
Mohamed Boudra 23cd462336 Merge branch 'archive-worktree-redirect' 2026-01-23 15:10:38 +07:00
Mohamed Boudra 0852f4e6d0 Update files 2026-01-23 15:10:36 +07:00
Mohamed Boudra 6f845093b4 Merge branch 'fix/initial-prompt-instructions' 2026-01-23 14:47:39 +07:00
Mohamed Boudra 250a320ff2 Fix E2E tests: gate on credentials and parse agentId robustly 2026-01-23 14:47:37 +07:00
Mohamed Boudra 938d57c8ae Update files 2026-01-23 14:18:06 +07:00
Mohamed Boudra 3459faabc4 Stabilize tests after merge 2026-01-23 14:01:29 +07:00
Mohamed Boudra 2b27b71467 Merge main 2026-01-23 13:53:52 +07:00
Mohamed Boudra 3ff6d6c712 Inject Paseo prompt instructions via first user message 2026-01-23 13:51:30 +07:00
Mohamed Boudra 912a694221 Update files 2026-01-23 13:41:33 +07:00
Mohamed Boudra a6869d55c1 Update files 2026-01-23 13:29:30 +07:00