MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / createScriptInfoLocal

Function createScriptInfoLocal

src/pkg/utils/scriptInstall.ts:85–96  ·  view source on GitHub ↗
(
  uuid: string,
  code: string,
  url: string,
  source: InstallSource,
  metadata: SCMetadata
)

Source from the content-addressed store, hash-verified

83};
84
85export const createScriptInfoLocal = async (
86 uuid: string,
87 code: string,
88 url: string,
89 source: InstallSource,
90 metadata: SCMetadata
91) => {
92 await saveTempCode(uuid, code);
93 const info = createScriptInfo(uuid, "", url, source, metadata);
94 info.code = code;
95 return info;
96};

Callers 1

initAsyncFunction · 0.90

Calls 2

saveTempCodeFunction · 0.85
createScriptInfoFunction · 0.70

Tested by

no test coverage detected