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

Function createScriptInfo

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

Source from the content-addressed store, hash-verified

15
16// 供 getInstallInfo 使用
17function createScriptInfo(
18 uuid: string,
19 code: string,
20 url: string,
21 source: InstallSource,
22 metadata: SCMetadata
23): ScriptInfo {
24 const userSubscribe = metadata.usersubscribe !== undefined;
25 return { uuid, code, url, source, metadata, userSubscribe } as ScriptInfo;
26}
27
28const saveTempCode = async (tempUUID: string, code: string) => {
29 const folder = await navigator.storage

Callers 2

createTempCodeEntryFunction · 0.70
createScriptInfoLocalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected