Commit Graph

4183 Commits

Author SHA1 Message Date
Mohamed Boudra
8365fb889b refactor: encapsulate WebSocket client state into ClientSession class 2025-10-20 14:29:47 +02:00
Mohamed Boudra
30fc716b02 refactor: migrate terminal management to MCP architecture
- Remove legacy terminal management code and integrate a new Terminal MCP server.
- Implement TerminalManager for handling terminal operations within a specific tmux session.
- Introduce tools for creating, listing, renaming, and killing terminals with improved error handling.
- Update references and documentation to reflect the new architecture.
- Ensure compatibility with existing features while enhancing maintainability and scalability.

This refactor streamlines terminal operations and prepares the codebase for future enhancements.
2025-10-20 14:23:54 +02:00
Mohamed Boudra
e79a92813b ```
feat: add zodSchema wrapper for terminal tools list_terminals
```
2025-10-20 14:10:38 +02:00
Mohamed Boudra
845cfca6eb ```
feat: add audio buffering and interruption handling for voice input

Implement processing phase tracking (idle/transcribing/llm) and audio segment buffering to handle speech interruptions gracefully. Adds abort_request message type and buffer timeout mechanism to process accumulated audio segments together.
```
2025-10-20 13:12:55 +02:00
Mohamed Boudra
13b5fab456 ```
chore: configure VAD assets and update Playwright MCP settings

- Add vite-plugin-static-copy to bundle VAD WASM files
- Configure VAD with adjusted speech detection thresholds
- Switch Playwright MCP to omit image responses
- Fix WebSocket abort controller handling for interruptions
- Add WebFetch permission for VAD documentation
```
2025-10-20 12:47:09 +02:00
Mohamed Boudra
14230c681f feat: add realtime voice mode, artifact presentation, and Playwright MCP integration 2025-10-20 11:19:16 +02:00
Mohamed Boudra
65c6f81605 ```
fix: improve audio playback interruption and response persistence

- Remove TTS timeout to prevent premature playback cancellation
- Save assistant responses to history before waiting for TTS completion
- Stop audio playback when sending message or starting recording
- Properly reject current audio promise when stopping playback
- Ensure partial responses are saved even if stream is aborted
```
2025-10-20 00:18:41 +02:00
Mohamed Boudra
07dae1c520 feat: add error handling to orchestrator and UI tool call display
Adds error callbacks to LLM orchestrator for tool and stream failures, updates UI to show failed tool calls with error details, removes deprecated tool-definitions.ts file, and updates agent prompt to remove `--dangerously-skip-permissions` flag from Claude Code commands.
2025-10-20 00:05:29 +02:00
Mohamed Boudra
853a73cc05 feat: enhance capture_terminal with activity settling detection
Extend capture_terminal to wait for terminal activity to settle before
capturing output. The wait parameter is renamed to maxWait and now triggers
intelligent polling that detects when terminal output has stabilized (1s of
no changes) rather than a simple sleep.

Changes:
- Export waitForPaneActivityToSettle from tmux.ts for reuse
- Update captureTerminal to use settling logic when maxWait provided
- Update capture_terminal tool schema with new maxWait parameter
- Add error handling callbacks to StreamLLMParams interface
- Improve send_text/send_keys tool descriptions for clarity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 00:04:35 +02:00
Mohamed Boudra
0bfda11c1f feat: add Playwright MCP integration and TTS improvements
- Integrate Playwright MCP for browser automation capabilities
- Add TTS manager for improved audio synthesis management
- Add ToolCallCard UI component for better tool call visualization
- Upgrade Vite to v7.1.10 for improved build performance
- Add lucide-react for icon components
- Add dotenv for environment variable management
- Update agent prompt and orchestrator for enhanced interactions
- Improve audio playback and voice controls in UI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 23:23:32 +02:00
Mohamed Boudra
d7a387d911 ```
refactor: stream text segments for TTS preparation

Refactor LLM streaming to emit complete text segments before tool calls for future TTS integration. Moves from step-based callbacks to chunk-based streaming with text buffering and segment flushing at tool boundaries.
```
2025-10-19 17:22:43 +02:00
Mohamed Boudra
81bdba0d48 ```
chore: upgrade Vite to v7 and update OpenAI services

- Upgrade vite from ^5.0.0 to ^7.1.10 with new Node.js requirements
- Add dotenv package for environment variable management
- Update STT to use gpt-4o-transcribe model
- Remove verbose_json format from STT response
- Format code with consistent style (quotes, spacing)
- Add HMR WebSocket configuration for development
- Improve UI layout with overflow handling
- Reorganize chat interface component order
- Add user message broadcasting to activity log
```
2025-10-19 16:57:25 +02:00
Mohamed Boudra
c3049b8fa0 Prompt is too long 2025-10-19 16:23:13 +02:00
Mohamed Boudra
40b199e329 Based on the git diff showing extensive package-lock.json changes and modifications to the agent system prompt and configuration, here's the commit message:
```
feat: add AI SDK dependencies and refine agent voice interaction config

- Add @ai-sdk packages for enhanced AI capabilities
- Install Deepgram SDK, livekit-client, and werift for voice/WebRTC
- Expand agent system prompt with multi-tool workflows and Claude Code interaction patterns
- Adjust VAD timing (1.2s silence threshold) and turn detection for better voice UX
- Switch TTS to inworld/inworld-tts-1 with Olivia voice
- Configure interruption timing (0.2s detection, no word requirement)
- Add comprehensive guidelines for conversational responses vs structured output
- Document plan mode triggers and Claude response type handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
```
2025-10-19 15:41:42 +02:00
Mohamed Boudra
dabcf63ebc ```
debug: add console logging for LiveKit session creation parameters
```
2025-10-14 18:00:08 +02:00
Mohamed Boudra
1bceb3cb4b ```
feat: refactor MCP tools to use terminal names instead of IDs

- Replace terminalId parameter with terminalName across all tools
- Add window name uniqueness validation for create/rename operations
- Implement terminal name-to-window resolution in all MCP tools
- Add home directory tilde expansion in working directory paths
- Update terminal resources to use encoded names in URIs
- Remove terminal IDs from API responses (list-terminals, resources)
- Add type checking and error handling for Python agent

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
```
2025-10-14 17:46:29 +02:00
Mohamed Boudra
f3b8cc689d Based on the git diff, this commit makes three distinct improvements to terminal management:
```
feat: improve terminal state tracking and creation reliability

- Switch to ElevenLabs TTS (eleven_turbo_v2_5) in voice agent
- Add current command tracking to terminal listings
- Use session prefix '__voice-dev' to avoid conflicts
- Create windows with working directory and run initial commands atomically
- Disable automatic window renaming to preserve user-set names
- Improve working directory detection with lsof fallback
- Enhance command detection to show full command with arguments
```
2025-10-14 13:11:57 +02:00
Mohamed Boudra
605e5c3e87 Looking at the changes, this represents a significant refactoring from a complex tmux session/window/pane hierarchy to a simplified "terminals" model for better voice interaction UX.
```
refactor: simplify MCP server to use terminals model instead of tmux hierarchy

Replace complex session/window/pane tools with simplified terminal-focused API:
- Add list-terminals, create-terminal, capture-terminal tools
- Remove list, create-session, create-window, split-pane, kill tools
- Terminals are tmux windows in a default 'voice-dev' session
- Each terminal has contextual working directory
- Extract agent system prompt to external markdown file
- Update CLAUDE.md documentation with new terminal model

This simplifies voice interactions from "create window in session X" to
natural "create a terminal for the web project".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
```
2025-10-14 12:22:35 +02:00
Mohamed Boudra
1bd3852659 feat: remove README.md and mcp-server README.md, add CLAUDE.md for project guidance
Delete the existing README.md and mcp-server README.md files to streamline documentation. Introduce CLAUDE.md, which provides comprehensive guidance for the voice-dev project, including architecture, setup instructions, and component interactions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-14 11:57:50 +02:00
Mohamed Boudra
b70c0cfc73 Based on the git changes, this is a major migration from OpenAI's Realtime API to LiveKit for voice infrastructure. Here's the commit message:
```
feat: migrate from OpenAI Realtime API to LiveKit for voice infrastructure

Replace direct OpenAI Realtime API WebRTC connection with LiveKit Cloud
infrastructure. Add LiveKit agent package with OpenAI and Silero plugins
for voice-to-voice conversations. Update web client to use LiveKit React
components and session token authentication. Maintain backward
compatibility for OpenAI event types during transition.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
```

This commit message:
- Uses `feat:` type since this is a new feature/major change
- Describes the main change (migration from OpenAI to LiveKit)
- Provides context in the body about what was added/changed
- Mentions backward compatibility consideration
- Includes the Claude Code attribution as requested
2025-10-14 11:54:17 +02:00
Mohamed Boudra
5dd1aae70d ```
refactor: rename project references from tmux-mcp to voice-dev-mcp

Update internal references, package scripts, binary name, service identifiers, and tool descriptions to reflect the voice-dev branding. Changes default HTTP port from 3000 to 6767.
```
2025-10-13 15:29:38 +02:00
Mohamed Boudra
95363e1802 I cannot generate a commit message because there are no staged changes to commit. The git status shows only an untracked file (packages/web/vercel.json), but nothing has been added to the staging area.
You would need to first stage files with `git add` before a commit message can be generated.
2025-10-13 15:03:48 +02:00
Mohamed Boudra
0eedb4ddd0 ```
chore: update package-lock.json with additional Tailwind CSS Oxide platform binaries
```
2025-10-13 15:02:10 +02:00
Mohamed Boudra
d1487bdd03 ```
chore: add Tailwind CSS Oxide with full platform support
```
2025-10-13 15:01:48 +02:00
Mohamed Boudra
0789bdc8c6 Remove unnecessary platform-specific Tailwind CSS Oxide dependencies 2025-10-13 15:00:10 +02:00
Mohamed Boudra
255501f68a Add Tailwind CSS Oxide dependency to root package 2025-10-13 14:54:44 +02:00
Mohamed Boudra
31b7dea2a7 Update package-lock.json to reflect project rename to voice-dev 2025-10-13 14:52:37 +02:00
Mohamed Boudra
ad98a3f265 Remove vercel.json configuration file 2025-10-13 14:47:16 +02:00
Mohamed Boudra
89b096f3f6 Remove /ui asset prefix from Next.js config 2025-10-13 14:42:08 +02:00
Mohamed Boudra
205307da22 Rename project to voice-dev
- Rename all packages from @realtime-voice/* to @voice-dev/*
- Update root package.json name and description
- Update README with new branding and remove monorepo terminology
- Rename GitHub repo to voice-dev
- Remove Vercel link to prepare for fresh deployment
2025-10-13 14:33:01 +02:00
Mohamed Boudra
09a9dad1c4 Based on the changes shown, here's the commit message:
```
chore: simplify build configuration for monorepo

- Remove tsconfig.base.json inheritance in web package
- Inline all TypeScript compiler options for clarity
- Simplify Vercel build and output paths
- Remove unnecessary framework and devCommand overrides
```
2025-10-13 14:26:02 +02:00
Mohamed Boudra
cd3413982a Add explicit lightningcss dependency for Vercel build 2025-10-13 14:18:15 +02:00
Mohamed Boudra
fee0f4fd28 Initial monorepo setup with mcp-server and web packages 2025-10-13 14:03:54 +02:00