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

Function createTempCodeEntry

src/pkg/utils/scriptInstall.ts:71–83  ·  view source on GitHub ↗
(
  update: boolean,
  uuid: string,
  code: string,
  url: string,
  source: InstallSource,
  metadata: SCMetadata,
  options: any
)

Source from the content-addressed store, hash-verified

69};
70
71export const createTempCodeEntry = async (
72 update: boolean,
73 uuid: string,
74 code: string,
75 url: string,
76 source: InstallSource,
77 metadata: SCMetadata,
78 options: any
79) => {
80 await saveTempCode(uuid, code);
81 const si = [update, createScriptInfo(uuid, "", url, source, metadata), options];
82 return si;
83};
84
85export const createScriptInfoLocal = async (
86 uuid: string,

Callers 3

loadURLAsyncFunction · 0.90
checkUpdateMethod · 0.90

Calls 2

saveTempCodeFunction · 0.85
createScriptInfoFunction · 0.70

Tested by

no test coverage detected