| 78 | const CODEX_EXECUTABLE = process.platform === 'win32' ? 'codex.cmd' : 'codex'; |
| 79 | |
| 80 | function publishStatus(projectId: string, status: string, requestId?: string, message?: string) { |
| 81 | streamManager.publish(projectId, { |
| 82 | type: 'status', |
| 83 | data: { |
| 84 | status, |
| 85 | message: message ?? STATUS_LABELS[status] ?? '', |
| 86 | ...(requestId ? { requestId } : {}), |
| 87 | }, |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | async function ensureProjectPath(projectId: string, projectPath: string): Promise<string> { |
| 92 | const project = await getProjectById(projectId); |