(snapshot: ProcessSnapshot)
| 459 | } |
| 460 | |
| 461 | function processResult(snapshot: ProcessSnapshot): string { |
| 462 | const status = snapshot.running |
| 463 | ? `Process running with session ID ${snapshot.sessionId}.` |
| 464 | : snapshot.signal |
| 465 | ? `Process exited after signal ${snapshot.signal}.` |
| 466 | : `Process exited with code ${snapshot.exitCode ?? "unknown"}.`; |
| 467 | return snapshot.output ? `${snapshot.output.replace(/\n$/, "")}\n${status}` : status; |
| 468 | } |
| 469 | |
| 470 | function processOutputSchema(): z.ZodRawShape { |
| 471 | return resultOutputSchema({ |
no outgoing calls
no test coverage detected