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

Method installByCode

src/app/service/service_worker/script.ts:394–403  ·  view source on GitHub ↗
(param: { uuid: string; code: string; upsertBy: InstallSource })

Source from the content-addressed store, hash-verified

392
393 // 直接通过code静默安装脚本
394 async installByCode(param: { uuid: string; code: string; upsertBy: InstallSource }) {
395 const { code, upsertBy, uuid } = param;
396 const { script } = await prepareScriptByCode(code, "", uuid, true);
397 await this.installScript({
398 script,
399 code,
400 upsertBy,
401 });
402 return script;
403 }
404
405 // 获取安装信息
406 async getInstallInfo(uuid: string) {

Callers 1

batchUpdateListActionMethod · 0.95

Calls 2

installScriptMethod · 0.95
prepareScriptByCodeFunction · 0.90

Tested by

no test coverage detected