MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / extractExecutionResult

Function extractExecutionResult

apps/cli/src/tooling.ts:208–213  ·  view source on GitHub ↗
(structured: unknown)

Source from the content-addressed store, hash-verified

206 });
207
208export const extractExecutionResult = (structured: unknown): unknown => {
209 if (!isRecord(structured) || !("result" in structured)) {
210 return null;
211 }
212 return structured.result;
213};
214
215export const extractExecutionId = (structured: unknown): string | undefined => {
216 if (!isRecord(structured) || typeof structured.executionId !== "string") {

Callers 2

executeCodeFunction · 0.90
tools-cli.test.tsFile · 0.90

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected