#!/usr/bin/env node import { normalize, preview, readStdin, tokens } from './intake-lib.mjs'; try { const value = normalize(await readStdin()); console.log(JSON.stringify({ ok: true, preview: preview(value), ...tokens(value) }, null, 2)); } catch (error) { console.error(JSON.stringify({ ok: false, error: error instanceof Error ? error.message : '未知错误' })); process.exitCode = 1; }