MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / installPlugin

Function installPlugin

src/lib/openFolder.js:469–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

467 }
468
469 async function installPlugin() {
470 try {
471 const manifest = JSON.parse(
472 await fsOperation(
473 Url.dirname(url) + ACODE_PLUGIN_MANIFEST_FILE,
474 ).readFile("utf8"),
475 );
476 const { default: installPlugin } = await import("lib/installPlugin");
477 await installPlugin(url, manifest.name);
478 toast(strings["success"], 3000);
479 } catch (error) {
480 helpers.error(error);
481 console.error(error);
482 }
483 }
484
485 async function copyRelativePath() {
486 try {

Callers 7

installPluginMethod · 0.70
execOperationFunction · 0.70
installFunction · 0.50
addSourceFunction · 0.50
backupRestore.jsFile · 0.50
addSourceFunction · 0.50
index.jsFile · 0.50

Calls 3

fsOperationFunction · 0.85
readFileMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected