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

Function fallbackOutcomeResult

packages/hosts/mcp/src/tool-server.ts:757–767  ·  view source on GitHub ↗
(
  executionId: string,
  outcome: ResumeFallbackOutcome,
)

Source from the content-addressed store, hash-verified

755 resumeUnavailableResult({ status: "execution_already_settled", executionId });
756
757const fallbackOutcomeResult = (
758 executionId: string,
759 outcome: ResumeFallbackOutcome,
760): McpToolResult => {
761 if (outcome.status === "result") return outcome.result;
762 return resumeUnavailableResult({
763 status: outcome.status,
764 executionId,
765 ttlMs: "ttlMs" in outcome ? outcome.ttlMs : undefined,
766 });
767};
768
769// The `skills` tool serves named, static how-to docs (see the execution
770// package's skills registry). No name -> the index; a known name -> that

Callers 1

resumeExecutionFunction · 0.85

Calls 1

resumeUnavailableResultFunction · 0.85

Tested by

no test coverage detected