/** * Writes a notion_output envelope to stdout using the shared wire format. * The platform runner scans a run's log stream for this envelope to * recover the capability's result. */ export function writeOutput(value: unknown): void { process.stdout.write(`\n<__notion_output__>${JSON.stringify(value)}\n`); }