ReviewOS

also looking at this

stacks/drone

feat: model one point-load intake with conserved momentum

#99
Merged chris wants to merge codex/cargo-fleet-custody into main
45 files +3133 -169
resources/functions/artifacts/native-cli/process.tsmodified+2-1
Changes to resources/functions/artifacts/native-cli/process.ts
@@ -5,6 +5,7 @@ export interface BoundedProcessOptions {
55 stdoutBytes: number
66 stderrBytes: number
77 label: string
8 strictUtf8?: boolean
89}
910
1011export interface BoundedProcessResult {
@@ -46,7 +47,7 @@ export async function runBoundedProcess(command: string[], options: BoundedProce
4647 try {
4748 while (true) {
4849 const { done, value } = await reader.read()
49 if (done) return Buffer.concat(chunks, bytes).toString('utf8')
50 if (done) return new TextDecoder('utf-8', { fatal: options.strictUtf8 === true, ignoreBOM: true }).decode(Buffer.concat(chunks, bytes))
5051 if (value.byteLength > limit - bytes) {
5152 const error = new Error(`${options.label} ${label} exceeds byte limit`)
5253 stop(error, `${label} exceeds byte limit`)