(projectId: string, status: keyof typeof STATUS_LABELS, requestId?: string, message?: string)
| 66 | Keep responses concise and focus on the code or command outputs that unblock the user.`; |
| 67 | |
| 68 | function publishStatus(projectId: string, status: keyof typeof STATUS_LABELS, requestId?: string, message?: string) { |
| 69 | streamManager.publish(projectId, { |
| 70 | type: 'status', |
| 71 | data: { |
| 72 | status, |
| 73 | message: message ?? STATUS_LABELS[status] ?? '', |
| 74 | ...(requestId ? { requestId } : {}), |
| 75 | }, |
| 76 | }); |
| 77 | } |
| 78 | |
| 79 | async function ensureProjectPath(projectId: string, projectPath: string): Promise<string> { |
| 80 | const project = await getProjectById(projectId); |
no test coverage detected