#!/usr/bin/env node /** * swaig-test - CLI tool for testing SignalWire AI agents locally. * * Usage: * swaig-test [options] * * Actions: * --list-tools List all SWAIG functions with parameters * --list-agents List all exported agents in a file * --dump-swml Generate and output SWML document * --exec Execute a function (use --arg key=value for args) * * Options: * --raw Raw JSON output (suppresses logs) * --verbose Verbose output * --format-json Format output as indented JSON * --call-type sip|webrtc (default: webrtc) * --call-direction inbound|outbound (default: inbound) * --call-state active|ringing|hold (default: active) * --call-id Override call ID * --from-number Override from number * --to-extension Override to extension * --arg key=value Function argument (repeatable) * --override k=v Override call data field (repeatable) * --agent-class Name of specific agent class to use * --route Route for agent (default: /) * --env KEY=VALUE Set env var (repeatable) * --env-file Load env vars from file * --simulate-serverless Simulate serverless platform */ export {};