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

Function pathToAddress

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

Source from the content-addressed store, hash-verified

62 * those from its static map directly, so leave them untouched.
63 */
64const pathToAddress = (path: string): ToolAddress => {
65 if (path.startsWith(ADDRESS_PREFIX)) return ToolAddress.make(path);
66 if (parseToolAddress(`${ADDRESS_PREFIX}${path}`)) {
67 return ToolAddress.make(`${ADDRESS_PREFIX}${path}`);
68 }
69 return ToolAddress.make(path);
70};
71
72/** Strip the proxy-root `tools.` prefix from a full address so it becomes the
73 * sandbox-callable path the model writes after `tools.`. */

Callers 2

makeExecutorToolInvokerFunction · 0.85
tool-invoker.tsFile · 0.85

Calls 1

parseToolAddressFunction · 0.90

Tested by

no test coverage detected