/** * @file Fail-soft entrypoint runner for CLI scripts. Wraps a script's `main()` * so a throw / rejection can NEVER escape as an unhandled rejection + raw * stack trace: the error is surfaced via the logger as a MESSAGE, never a * stack, and the process exits non-zero. `main()` may return its exit code * (or nothing → 0). This replaces the bare `void (async () => { * getNodeProcess().exitCode = await main() })()` entry pattern, which crashes * with a raw stack if `main()` throws. It also owns the whole-argv concerns * every entry shares, so a new script inherits them instead of having to * remember each: `--describe` prints the script's one-line purpose, * `-h`/`--help` prints its usage (both from the {@link ScriptMeta} the entry * passes, both BEFORE `main()` runs or any lock is taken), and a bare `--` in * argv is refused before `main()` runs. */ /** * The message shown when argv carries a bare `--`. Names the script so the * corrected command can be pasted directly. */ export declare function bareDoubleDashMessage(scriptName: string): string; export declare function describeManifestText(meta: ScriptMeta): string; /** * True when argv carries a bare `--`. * * `pnpm run