#!/usr/bin/env node /** * 0xRay Integration Script * * Main CLI bridge for external systems (like Jelly commercial modules) to call into 0xRay. * Allows spawning OpenCode CLI with 0xRay agents to execute real tasks. * * @since 2026-02-14 * * Usage: * node dist/scripts/integration.js enforcer '{"taskDescription": "Check code quality"}' * node dist/scripts/integration.js --version * node dist/scripts/integration.js --help */ export interface TaskContext { taskDescription: string; context?: Record; [key: string]: unknown; } export interface AgentConfig { name: string; system?: string; tools?: { include?: string[]; exclude?: string[]; }; [key: string]: unknown; } export interface IntegrationResult { success: boolean; agent: string; task?: string; result?: unknown; error?: string; timestamp: string; }