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

Function fallbackOutcomeResult

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

Source from the content-addressed store, hash-verified

779 resumeUnavailableResult({ status: "execution_already_settled", executionId });
780
781const fallbackOutcomeResult = (
782 executionId: string,
783 outcome: ResumeFallbackOutcome,
784): McpToolResult => {
785 if (outcome.status === "result") return outcome.result;
786 return resumeUnavailableResult({
787 status: outcome.status,
788 executionId,
789 ttlMs: "ttlMs" in outcome ? outcome.ttlMs : undefined,
790 });
791};
792
793// The `skills` tool serves named, static how-to docs (see the execution
794// 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