No description
Find a file
Peter Steinberger d36dd7bb1e Add Swift Testing tests for session ID handling
Added comprehensive tests to document and verify the session ID fix:

TunnelServerTests:
- Tests for session creation capturing UUID from tty-fwd stdout
- Validation of error handling when session ID is missing
- API endpoint tests for session input validation
- Integration test scenarios for full session lifecycle

SessionIdHandlingTests:
- UUID format validation tests
- Session ID parsing from various response formats
- URL encoding and path construction tests
- Regression test documenting the specific bug that was fixed
- Tests for parsing tty-fwd session list responses

These tests use Swift Testing framework with:
- @Test attributes and #expect assertions
- Parameterized tests for multiple test cases
- Tags for categorization (.sessionManagement, .regression)
- .bug trait to link tests to specific issues

The tests serve as both validation and documentation of the fix
where the Swift server now correctly captures and returns the
actual session UUID from tty-fwd instead of its own generated name.
2025-06-16 18:30:12 +02:00
.github/workflows Update CI to build Rust binaries and clarify Node.js builds 2025-06-16 16:47:42 +02:00
AppIcon.icon Add new icon 2025-06-16 04:42:13 +02:00
docs Fix server port binding issue and refactor tunnel services 2025-06-16 02:39:19 +02:00
scripts Fix tty-fwd SIGKILL issue by adding entitlements and signing script 2025-06-16 07:19:03 +02:00
tty-fwd Fix server startup coordination and health endpoint consistency 2025-06-16 18:18:24 +02:00
VibeTunnel Fix session ID mismatch in Swift server 2025-06-16 18:25:06 +02:00
VibeTunnel.xcodeproj Fix server startup coordination and health endpoint consistency 2025-06-16 18:18:24 +02:00
VibeTunnel.xcworkspace add workspace 2025-06-16 14:17:45 +02:00
VibeTunnelTests Add Swift Testing tests for session ID handling 2025-06-16 18:30:12 +02:00
VibeTunnelUITests Add macOS app foundation with release infrastructure (#1) 2025-06-15 23:14:29 +02:00
web Implemented copy/paste 2025-06-16 18:28:43 +02:00
.github-config Add macOS app foundation with release infrastructure (#1) 2025-06-15 23:14:29 +02:00
.gitignore Update root gitignore for web build files 2025-06-16 16:48:04 +02:00
.swiftformat Add SwiftLint and SwiftFormat configuration for Swift 6 2025-06-15 23:48:30 +02:00
.swiftlint.yml Fix remaining build errors 2025-06-16 01:29:24 +02:00
default.profraw Update CI workflow to use Xcode 16.2 2025-06-16 07:22:26 +02:00
LICENSE Initial commit 2025-06-15 19:56:11 +02:00
Package.swift Remove Tunnel2 2025-06-16 04:42:22 +02:00
README.md feat: implement working HTTP server with debug panel 2025-06-16 02:00:56 +02:00
test-server.sh feat: implement working HTTP server with debug panel 2025-06-16 02:00:56 +02:00
test-sessions-endpoint.sh feat: implement working HTTP server with debug panel 2025-06-16 02:00:56 +02:00
test-tty-fwd.swift Fix tty-fwd SIGKILL issue by adding entitlements and signing script 2025-06-16 07:19:03 +02:00
VibeTunnel-Info.plist Add SwiftLint and SwiftFormat configuration for Swift 6 2025-06-15 23:48:30 +02:00

VibeTunnel

VibeTunnel is a Mac app that proxies terminal apps to the web. Now you can use Claude Code anywhere, anytime. Control open instances, read the output, type new commands or even open new instances. Supports macOS 14+.

Overview

VibeTunnel is a native macOS app built with SwiftUI that enables remote control of terminal applications like Claude Code. It provides a seamless tunneling solution with automatic updates, configurable settings, and the ability to run as either a dock application or menu bar utility.

Features

  • Remote Terminal Control: Tunnel connections to control Claude Code and other terminal apps remotely
  • Flexible UI Modes: Run as a standard dock application or minimal menu bar utility
  • Auto Updates: Built-in Sparkle integration for seamless updates with stable and pre-release channels
  • Launch at Login: Automatic startup configuration
  • Native macOS Experience: Built with SwiftUI for macOS 14.0+

Requirements

  • macOS 14.0 or later
  • Xcode 15.0 or later (for development)

Installation

From Release

  1. Download the latest DMG from the Releases page
  2. Open the DMG and drag VibeTunnel to your Applications folder
  3. Launch VibeTunnel from Applications or Spotlight

From Source

# Clone the repository
git clone https://github.com/yourusername/vibetunnel.git
cd vibetunnel

# Build using Xcode
open VibeTunnel.xcodeproj
# Or build from command line
xcodebuild -scheme VibeTunnel -configuration Release

Configuration

VibeTunnel can be configured through its Settings window (⌘,):

General Settings

  • Launch at Login: Start VibeTunnel automatically when you log in
  • Show Notifications: Enable/disable system notifications
  • Show in Dock: Toggle between dock app and menu bar only mode

Advanced Settings

  • Update Channel: Choose between stable releases or pre-release builds
  • Server Port: Configure the tunnel server port (default: 8080)
  • Debug Mode: Enable additional logging for troubleshooting

Development

Project Structure

VibeTunnel/
├── VibeTunnel/              # Main app source
│   ├── Core/                # Core functionality
│   │   ├── Models/          # Data models
│   │   └── Services/        # Business logic
│   ├── Views/               # SwiftUI views
│   └── Resources/           # Assets and resources
├── VibeTunnelTests/         # Unit tests
├── VibeTunnelUITests/       # UI tests
├── scripts/                 # Build and release automation
└── docs/                    # Documentation

Code Signing Setup

This project uses xcconfig files to manage developer-specific settings, preventing code signing conflicts when multiple developers work on the project.

For new developers:

  1. Copy the template: cp VibeTunnel/Local.xcconfig.template VibeTunnel/Local.xcconfig
  2. Edit VibeTunnel/Local.xcconfig and add your development team ID
  3. Open the project in Xcode - it will use your settings automatically

See docs/CODE_SIGNING_SETUP.md for detailed instructions.

Building

The project uses standard Xcode build system:

# Debug build
xcodebuild -scheme VibeTunnel -configuration Debug

# Release build
xcodebuild -scheme VibeTunnel -configuration Release

# Run tests
xcodebuild test -scheme VibeTunnel

Release Process

The project includes comprehensive release automation scripts in the scripts/ directory:

# Create a new release
./scripts/release.sh --version 1.2.3

# Build and notarize
./scripts/build.sh
./scripts/notarize.sh

# Generate appcast for Sparkle updates
./scripts/generate-appcast.sh

Architecture

VibeTunnel is built with a modular architecture:

  • SparkleUpdaterManager: Handles automatic updates with support for multiple update channels
  • StartupManager: Manages launch at login functionality using macOS ServiceManagement
  • UpdateChannel: Defines update channels and appcast URLs
  • AppDelegate: Coordinates app lifecycle and system integration

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Created by Peter Steinberger / Amantus Machina


Note: VibeTunnel is currently in active development. Core tunneling functionality is being implemented.