MCPcopy Index your code
hub / github.com/Waishnav/devspace / processResult

Function processResult

src/server.ts:461–468  ·  view source on GitHub ↗
(snapshot: ProcessSnapshot)

Source from the content-addressed store, hash-verified

459}
460
461function processResult(snapshot: ProcessSnapshot): string {
462 const status = snapshot.running
463 ? `Process running with session ID ${snapshot.sessionId}.`
464 : snapshot.signal
465 ? `Process exited after signal ${snapshot.signal}.`
466 : `Process exited with code ${snapshot.exitCode ?? "unknown"}.`;
467 return snapshot.output ? `${snapshot.output.replace(/\n$/, "")}\n${status}` : status;
468}
469
470function processOutputSchema(): z.ZodRawShape {
471 return resultOutputSchema({

Callers 1

processToolResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected