verify rpc and website gates

This commit is contained in:
Advait Paliwal
2026-04-10 10:49:54 -07:00
parent 4137a29507
commit 790824af20
9 changed files with 759 additions and 52 deletions

View File

@@ -24,7 +24,7 @@ export async function launchPiChat(options: PiRuntimeOptions): Promise<void> {
throw new Error(`Promise polyfill not found: ${promisePolyfillPath}`);
}
if (process.stdout.isTTY) {
if (process.stdout.isTTY && options.mode !== "rpc") {
process.stdout.write("\x1b[2J\x1b[3J\x1b[H");
}

View File

@@ -15,6 +15,7 @@ export type PiRuntimeOptions = {
sessionDir: string;
feynmanAgentDir: string;
feynmanVersion?: string;
mode?: "text" | "json" | "rpc";
thinkingLevel?: string;
explicitModelSpec?: string;
oneShotPrompt?: string;
@@ -83,6 +84,9 @@ export function buildPiArgs(options: PiRuntimeOptions): string[] {
args.push("--system-prompt", readFileSync(paths.systemPromptPath, "utf8"));
}
if (options.mode) {
args.push("--mode", options.mode);
}
if (options.explicitModelSpec) {
args.push("--model", options.explicitModelSpec);
}