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

Function call

packages/core/sdk/src/plugin-storage.test.ts:99–115  ·  view source on GitHub ↗
(input: {
  readonly runId: string;
  readonly toolId: string;
  readonly status: ToolCall["status"];
  readonly startedAt: string;
  readonly clientName?: string | null;
  readonly userId?: string | null;
  readonly durationMs?: number;
})

Source from the content-addressed store, hash-verified

97}))();
98
99const call = (input: {
100 readonly runId: string;
101 readonly toolId: string;
102 readonly status: ToolCall["status"];
103 readonly startedAt: string;
104 readonly clientName?: string | null;
105 readonly userId?: string | null;
106 readonly durationMs?: number;
107}): ToolCall => ({
108 runId: input.runId,
109 toolId: input.toolId,
110 userId: input.userId ?? null,
111 clientName: input.clientName ?? null,
112 status: input.status,
113 startedAt: input.startedAt,
114 durationMs: input.durationMs ?? 0,
115});
116
117// A FumaDB that commits the FIRST row of a multi-row `plugin_storage` bulk
118// write and then fails. Injecting the fault mid-write, rather than before it,

Callers 2

entriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected