#!/usr/bin/env node
import { APP_NAME } from "./config.js";
import { configureHttpDispatcher } from "./core/http-dispatcher.js";
import { main } from "./main.js";
process.title = `${APP_NAME}-rpc`;
process.env[`${APP_NAME.toUpperCase()}_CODING_AGENT`] = "true";
process.emitWarning = (() => { });
configureHttpDispatcher();
// rpc-entry is the dedicated RPC entry point, so --mode rpc must always win
// over any --mode the caller passes (the last --mode in the args wins).
main([...process.argv.slice(2), "--mode", "rpc"]);
//# sourceMappingURL=rpc-entry.js.map