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