@neta-art/neta-search-cli 0.2.58 → 0.2.61
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/neta-search.mjs +3 -0
- package/package.json +1 -1
package/neta-search.mjs
CHANGED
|
@@ -31111,6 +31111,7 @@ async function cmdRemove(names, opts) {
|
|
|
31111
31111
|
const env = detectEnv();
|
|
31112
31112
|
const local = scanLocal(opts.dir);
|
|
31113
31113
|
const results = [];
|
|
31114
|
+
const reports = [];
|
|
31114
31115
|
for (const n of names) {
|
|
31115
31116
|
const found = (await findLocal(env, local, n)).filter((s) => existsSync7(s.path));
|
|
31116
31117
|
if (found.length === 0) results.push({ name: n, result: "not_found" });
|
|
@@ -31122,9 +31123,11 @@ async function cmdRemove(names, opts) {
|
|
|
31122
31123
|
} else {
|
|
31123
31124
|
rmSync2(s.path, { recursive: true, force: true });
|
|
31124
31125
|
results.push({ name: s.name, result: "removed" });
|
|
31126
|
+
if (s.kind === "installed" && s.id) reports.push(reportSkillEvent(env, "uninstall", s.id, s.digest ?? "", s.name));
|
|
31125
31127
|
}
|
|
31126
31128
|
}
|
|
31127
31129
|
}
|
|
31130
|
+
await Promise.allSettled(reports);
|
|
31128
31131
|
const failed = results.filter((r) => r.result !== "removed").length;
|
|
31129
31132
|
if (opts.json) console.log(JSON.stringify({ results }));
|
|
31130
31133
|
else
|