MCPcopy Create free account
hub / github.com/EsperoTech/yaade / asyncSandboxedFunction

Function asyncSandboxedFunction

client/src/utils/sandboxedFunction.tsx:44–51  ·  view source on GitHub ↗
(
  args: Record<string, string>,
  script: string,
)

Source from the content-addressed store, hash-verified

42};
43
44const asyncSandboxedFunction = async function (
45 args: Record<string, string>,
46 script: string,
47) {
48 const vals = Object.values(args);
49 const f = createSandboxedFunction(args, script, true);
50 return await f.bind({})(...vals);
51};
52
53export { asyncSandboxedFunction, sandboxedFunction };

Callers 2

executeResponseScriptFunction · 0.90
executeRequestScriptFunction · 0.90

Calls 1

createSandboxedFunctionFunction · 0.85

Tested by

no test coverage detected