MCPcopy Create free account
hub / github.com/chhoumann/quickadd / getUserScriptMemberAccess

Function getUserScriptMemberAccess

src/utils/userScript.ts:8–22  ·  view source on GitHub ↗
(fullMemberPath: string)

Source from the content-addressed store, hash-verified

6import { extractScriptFromMarkdown } from "./extractScriptFromMarkdown";
7
8export function getUserScriptMemberAccess(fullMemberPath: string): {
9 basename: string | undefined;
10 memberAccess: string[] | undefined;
11} {
12 // Use "::" exclusively to separate macro/script from member path
13 const parts = fullMemberPath
14 .split("::")
15 .map(p => p.trim())
16 .filter(Boolean);
17
18 return {
19 basename: parts[0],
20 memberAccess: parts.slice(1)
21 };
22}
23
24/**
25 * Cache key for a preloaded user-script module (the map shared between the

Callers 4

getUserScriptPreloadKeyFunction · 0.85
getUserScriptFunction · 0.85
runAndGetOutputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected