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

Function toolKeyFromPath

packages/plugins/apps/src/pipeline/discover.ts:36–36  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

34
35/** Returns the discovered tool key for a path when it matches the canonical tool layout. */
36export const toolKeyFromPath = (path: string): string | null => path.match(TOOL_RE)?.[1] ?? null;
37
38/** Returns true when a path is under a reserved app source folder. */
39export const isReservedArtifactPath = (path: string): boolean => DEFERRED_RE.test(path);

Callers 2

discoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected