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

Function rowToOperation

packages/plugins/openapi/src/sdk/store.ts:60–74  ·  view source on GitHub ↗
(row: PluginStorageEntry)

Source from the content-addressed store, hash-verified

58}
59
60const rowToOperation = (row: PluginStorageEntry): StoredOperation | null => {
61 const decoded = decodeOperationStorage(row.data);
62 if (Option.isNone(decoded)) return null;
63 const operation = decoded.value;
64 return {
65 integration: operation.integration,
66 toolName: operation.toolName,
67 binding: decodeBinding(
68 typeof operation.binding === "string"
69 ? decodeBindingJson(operation.binding)
70 : operation.binding,
71 ),
72 ...(operation.description !== undefined ? { description: operation.description } : {}),
73 };
74};
75
76const stableKeyHash = (value: string): string => {
77 let hash = 0xcbf29ce484222325n;

Callers 2

listRowsFunction · 0.70
makeDefaultOpenapiStoreFunction · 0.70

Calls 1

decodeBindingFunction · 0.85

Tested by

no test coverage detected