The HAIP CLI is a comprehensive command-line interface for the Human-Agent Interaction Protocol (HAIP), providing developers and system administrators with powerful tools for testing, monitoring, and interacting with HAIP servers. Built with TypeScript and featuring a beautiful terminal interface, the CLI supports all major HAIP protocol features.
The HAIP CLI implements the complete HAIP 1.1.2 protocol specification:
Core Events
HAI - Protocol handshake and version negotiation PING/PONG - Heartbeat and connection health monitoring ERROR - Error reporting and handling
Messaging Events
MESSAGE_START/PART/END - Text message streaming AUDIO_CHUNK - Audio data transmission Message Channels - USER, AGENT, SYSTEM, AUDIO_IN, AUDIO_OUT
Run Management
RUN_STARTED - Start new conversation runs RUN_FINISHED - Complete runs with status and summary RUN_CANCEL - Cancel active runs RUN_ERROR - Error handling for runs
Protocol Testing - Validate HAIP protocol implementations Server Testing - Test server functionality and performance Debugging - Monitor and debug HAIP applications Integration Testing - Test client-server integration
Production Monitoring
Health Monitoring - Monitor server health and status Performance Monitoring - Track message throughput and latency Error Monitoring - Monitor and debug production issues Load Testing - Test server performance under load
Administration
Server Management - Manage HAIP server instances Configuration Testing - Test server configurations Deployment Validation - Validate deployments and configurations Troubleshooting - Diagnose and resolve issues