@toolr/seedr 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AHALDEJX.js → chunk-B5AVQWXW.js} +4 -11
- package/dist/cli.js +2 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -126,11 +126,8 @@ async function fetchFileTree(nodes, baseUrl, destPath) {
|
|
|
126
126
|
await fetchFileTree(node.children, `${baseUrl}/${node.name}`, nodePath);
|
|
127
127
|
}
|
|
128
128
|
} else {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
await writeFile2(nodePath, content, "utf-8");
|
|
132
|
-
} catch {
|
|
133
|
-
}
|
|
129
|
+
const content = await fetchRemote(`${baseUrl}/${node.name}`);
|
|
130
|
+
await writeFile2(nodePath, content, "utf-8");
|
|
134
131
|
}
|
|
135
132
|
}
|
|
136
133
|
}
|
|
@@ -507,12 +504,8 @@ async function uninstallSkill(slug, tool, scope, cwd = process.cwd()) {
|
|
|
507
504
|
return false;
|
|
508
505
|
}
|
|
509
506
|
const { rm } = await import("fs/promises");
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
return true;
|
|
513
|
-
} catch {
|
|
514
|
-
return false;
|
|
515
|
-
}
|
|
507
|
+
await rm(destPath, { recursive: true });
|
|
508
|
+
return true;
|
|
516
509
|
}
|
|
517
510
|
async function getInstalledSkills(tool, scope, cwd = process.cwd()) {
|
|
518
511
|
const destDir = getContentPath(tool, "skill", scope, cwd);
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
skillHandler,
|
|
24
24
|
uninstallSkill,
|
|
25
25
|
writeTextFile
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B5AVQWXW.js";
|
|
27
27
|
|
|
28
28
|
// src/cli.ts
|
|
29
29
|
import { Command as Command5 } from "commander";
|
|
@@ -631,10 +631,7 @@ async function installPluginForTool(item, tool, scope, method, cwd) {
|
|
|
631
631
|
const pluginName = pluginJson.name || item.slug;
|
|
632
632
|
const version = pluginJson.version || "1.0.0";
|
|
633
633
|
const pluginId = getPluginId(pluginName, marketplace);
|
|
634
|
-
|
|
635
|
-
await ensureMarketplaceRegistered(marketplace, item);
|
|
636
|
-
} catch {
|
|
637
|
-
}
|
|
634
|
+
await ensureMarketplaceRegistered(marketplace, item);
|
|
638
635
|
const cachePath = getPluginCachePath(marketplace, pluginName, version);
|
|
639
636
|
const { rm } = await import("fs/promises");
|
|
640
637
|
await installDirectory(tmpPath, cachePath, "copy");
|
package/dist/index.js
CHANGED