- tsconfig: erasableSyntaxOnly + verbatimModuleSyntax; parameter properties rewritten (BugsinkError, GiteaError, GiteaClient, OAuthError, TelegramError, TelegramApi, MockGitea) - bin wrappers (peppa, peppa-mcp, peppa-hook, peppa-bot, testkit mocks, peppa-dev): `node --import scripts/lib/require-node.mjs` (clear error on Node < 26, PEPPA_NODE overrides the binary); package scripts and tests on `node` / `node --test`; tsx removed - install-launchd.sh pins PEPPA_NODE (checked absolute path) in the plists - fix a race the faster hooks exposed: the prompt hook answered every pending question, including a PM question raised after Peppa itself pasted text into the terminal; sendToSession now logs `input_sent` and the hook only answers questions older than that input - change pep-36-lightweight-stack: stage 1 done, hook start numbers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
506 B
JavaScript
10 lines
506 B
JavaScript
// Preloaded by Peppa's bin wrappers (`node --import`): Peppa runs its TypeScript straight
|
|
// from source with Node's built-in type stripping, which older Node versions lack — say so
|
|
// before the first .ts file fails to load with a cryptic error.
|
|
const MIN_MAJOR = 26;
|
|
const major = Number(process.versions.node.split(".")[0]);
|
|
if (major < MIN_MAJOR) {
|
|
process.stderr.write(`peppa: нужен Node ≥ ${MIN_MAJOR} (сейчас ${process.versions.node}): https://nodejs.org\n`);
|
|
process.exit(1);
|
|
}
|