import { PeerInteractiveMode } from "../peer/tui/peer-interactive-mode.js";
import { VERSION } from "../version.js";
import { GuestAcpRuntime } from "./acp-guest-runtime.js";
import { getGuestCliHelpText, parseGuestCliArgs } from "./cli-args.js";
function printHelp() {
    console.log(`d-pi guest ${VERSION}

${getGuestCliHelpText("d-pi guest")}`);
}
export async function runPiGuestCli(args = process.argv.slice(2)) {
    const parsed = parseGuestCliArgs(args);
    if (parsed.help) {
        printHelp();
        return 0;
    }
    const runtime = GuestAcpRuntime.fromCommand({ ...parsed.options, version: VERSION });
    const mode = new PeerInteractiveMode(runtime, {
        capabilities: {
            supportsCompact: false,
            supportsReload: false,
            supportsModelSelection: false,
            supportsAgentSwitching: false,
            supportsSettings: false,
            supportsSessionDetails: false,
            supportsSources: false,
            supportsMcp: false,
            supportsSkills: false,
        },
    });
    return mode.run();
}
//# sourceMappingURL=cli.js.map