MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / resolveHandle

Function resolveHandle

src/services/registry.ts:163–163  ·  view source on GitHub ↗
(filePathOrHandle: string)

Source from the content-addressed store, hash-verified

161 const isHandle = (v: string) => /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(v)
162
163 const resolveHandle = (filePathOrHandle: string) => pathToHandle.get(filePathOrHandle) ?? filePathOrHandle
164
165 async function ensureOk(resp: Response, context: string): Promise<void> {
166 if (!resp.ok) {

Callers 1

installMergeShimsFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected