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

Function extractNamespace

packages/core/execution/src/tool-invoker.ts:283–287  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

281 * for the span attribute so it's always populated without a catalog read.
282 */
283const extractNamespace = (path: string): string => {
284 const normalized = addressToPath(path);
285 const idx = normalized.indexOf(".");
286 return idx === -1 ? normalized : normalized.slice(0, idx);
287};
288
289/**
290 * Bridges QuickJS `tools.<integration>.<owner>.<connection>.<tool>(args)` calls

Callers 2

makeExecutorToolInvokerFunction · 0.85
tool-invoker.tsFile · 0.85

Calls 1

addressToPathFunction · 0.85

Tested by

no test coverage detected