* Compute paths for a background process output directory. * @param bgOutputDir Base directory (e.g., /tmp/mux-bashes or ~/.mux/sessions) * @param workspaceId Workspace identifier * @param processId Process identifier
( bgOutputDir: string, workspaceId: string, processId: string )
| 67 | * @param processId Process identifier |
| 68 | */ |
| 69 | function computeOutputPaths( |
| 70 | bgOutputDir: string, |
| 71 | workspaceId: string, |
| 72 | processId: string |
| 73 | ): { outputDir: string; outputPath: string; exitCodePath: string } { |
| 74 | const outputDir = `${bgOutputDir}/${workspaceId}/${processId}`; |
| 75 | return { |
| 76 | outputDir, |
| 77 | outputPath: `${outputDir}/${OUTPUT_FILENAME}`, |
| 78 | exitCodePath: `${outputDir}/${EXIT_CODE_FILENAME}`, |
| 79 | }; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Options for spawning a process |
no outgoing calls
no test coverage detected