{"version":3,"file":"process-signal.d.ts","sourceRoot":"","sources":["../../../../src/runs/shared/process-signal.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IACjD,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACvC,GAAG,OAAO,CASV","sourcesContent":["export function formatProcessSignalError(signal: string): string {\n\treturn `Subagent process terminated by signal ${signal}.`;\n}\n\nexport function isUnexplainedProcessSignal(input: {\n\tprocessSignal?: string | null;\n\tinterrupted?: boolean;\n\ttimedOut?: boolean;\n\tstopped?: boolean;\n\tturnBudgetExceeded?: boolean;\n\tforcedDrainAfterFinalSuccess?: boolean;\n}): boolean {\n\treturn (\n\t\tBoolean(input.processSignal) &&\n\t\tinput.interrupted !== true &&\n\t\tinput.timedOut !== true &&\n\t\tinput.stopped !== true &&\n\t\tinput.turnBudgetExceeded !== true &&\n\t\tinput.forcedDrainAfterFinalSuccess !== true\n\t);\n}\n"]}