( workspacePath: string, commitCoAuthor: WrapperCommitCoAuthor | undefined, configureCommitCoAuthor: NonNullable<ServerDependencies['configureCommitCoAuthor']> )
| 175 | |
| 176 | function errorResponse(error: string, message: string, status: number): Response { |
| 177 | return jsonResponse({ error, message }, status); |
| 178 | } |
| 179 | |
| 180 | function wrapperFinalizingResponse(state: WrapperState): Response { |
| 181 | return jsonResponse( |
| 182 | { |
| 183 | error: 'WRAPPER_FINALIZING', |
| 184 | message: 'Wrapper batch is finalizing', |
| 185 | wrapperRunId: state.finalizingWrapperRunId, |
| 186 | }, |
| 187 | 409 |
| 188 | ); |
| 189 | } |
| 190 | |
| 191 | function snapshotInitializationForPlatform(platform?: string): 'wait' | undefined { |
| 192 | return platform === 'cloud-agent-web' ? 'wait' : undefined; |
| 193 | } |
| 194 |
no test coverage detected