whatever, let's vibe coding

This commit is contained in:
2025-09-19 14:27:45 +01:00
parent b6065abbac
commit 445b8171a6
9 changed files with 162 additions and 8 deletions

10
lib/ai-generated.ts Normal file
View File

@@ -0,0 +1,10 @@
import {spawn} from 'child_process';
import {readFileSync} from 'node:fs';
export function runInBackground(command: string, args?: string[]) {
const proc = spawn(command, args ?? [], {detached: true, stdio: 'ignore'});
proc.unref();
return proc.pid;
}
export const getStdin = () => readFileSync(0, 'utf8');