MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / applyCommitAttribution

Function applyCommitAttribution

services/cloud-agent-next/wrapper/src/server.ts:177–191  ·  view source on GitHub ↗
(
  workspacePath: string,
  commitCoAuthor: WrapperCommitCoAuthor | undefined,
  configureCommitCoAuthor: NonNullable<ServerDependencies['configureCommitCoAuthor']>
)

Source from the content-addressed store, hash-verified

175
176function errorResponse(error: string, message: string, status: number): Response {
177 return jsonResponse({ error, message }, status);
178}
179
180function 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
191function snapshotInitializationForPlatform(platform?: string): 'wait' | undefined {
192 return platform === 'cloud-agent-web' ? 'wait' : undefined;
193}
194

Callers 2

createPromptHandlerFunction · 0.85
createCommandHandlerFunction · 0.85

Calls 2

logToFileFunction · 0.85
errorResponseFunction · 0.70

Tested by

no test coverage detected