storebound 0.8.3: prompts read stdin with rt.readLine (node:readline) instead of Bun-only for await (const line of console), which crashed npx storebound desktop on Node/Windows; node-compat test bans Bun-only stdin iteration; Node prompt smoke, also on the Windows release runner

This commit is contained in:
CRTkafa 2026-10-14 08:07:40 +08:00
parent c3fed8efa2
commit 3a27c78f49
8 changed files with 111 additions and 9 deletions

View file

@ -18,6 +18,7 @@ import { APPLE_SPEC } from './api/apple.gen';
import { PLAY_APIS } from './api/play.gen';
import { WRAPPED } from './api/wrapped.gen';
import type { ParamValue } from './api/types';
import * as rt from './lib/rt';
const STORES: Store[] = ['apple', 'play'];
@ -95,8 +96,7 @@ export function describeRequest(req: BuiltRequest): string {
}
async function readLine(): Promise<string> {
for await (const line of console) return line.trim();
return '';
return ((await rt.readLine()) ?? '').trim();
}
export async function run(args: Args): Promise<void> {