MCPcopy Create free account
hub / github.com/canwhite/Krebs / registerJsFunction

Function registerJsFunction

tools/lua-runtime.ts:181–184  ·  view source on GitHub ↗
(name: string, fn: (...args: any[]) => any)

Source from the content-addressed store, hash-verified

179 },
180
181 registerJsFunction(name: string, fn: (...args: any[]) => any): void {
182 if (!luaEngine) throw new Error("Lua engine not initialized");
183 luaEngine.global.set(name, fn);
184 },
185};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected