@heurist-network/skills 0.1.2 → 0.1.3
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/cli.js +10 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -607,6 +607,11 @@ async function addCommand(args) {
|
|
|
607
607
|
throw new Error("Only verified skills can be installed.");
|
|
608
608
|
}
|
|
609
609
|
spinner6.stop(`Found: ${pc.cyan(detail.name)} \u2014 ${detail.description}`);
|
|
610
|
+
if (detail.external_api_dependencies.length > 0) {
|
|
611
|
+
p.log.info(
|
|
612
|
+
`External APIs: ${pc.dim(detail.external_api_dependencies.join(", "))}`
|
|
613
|
+
);
|
|
614
|
+
}
|
|
610
615
|
const warnings = getCapabilityWarnings(detail.capabilities);
|
|
611
616
|
if (warnings.length > 0) {
|
|
612
617
|
p.log.warn(
|
|
@@ -1212,7 +1217,8 @@ async function listRemote(options) {
|
|
|
1212
1217
|
const status = installed.has(skill.slug) ? pc3.green(" [installed]") : "";
|
|
1213
1218
|
const category = skill.category ? pc3.dim(` [${skill.category}]`) : "";
|
|
1214
1219
|
const risk = skill.risk_tier ? pc3.dim(` risk:${skill.risk_tier}`) : "";
|
|
1215
|
-
|
|
1220
|
+
const externalApis = skill.external_api_dependencies.length > 0 ? pc3.dim(` apis:${skill.external_api_dependencies.join(", ")}`) : "";
|
|
1221
|
+
console.log(` ${pc3.cyan(skill.slug)}${category}${risk}${externalApis}${status}`);
|
|
1216
1222
|
console.log(` ${skill.description}`);
|
|
1217
1223
|
const warnings = [];
|
|
1218
1224
|
if (skill.capabilities.requires_private_keys) warnings.push("private-keys");
|
|
@@ -1325,6 +1331,9 @@ async function infoCommand(args) {
|
|
|
1325
1331
|
console.log(` ${pc4.bold("Risk Tier:")} ${detail.risk_tier || "\u2014"}`);
|
|
1326
1332
|
console.log(` ${pc4.bold("Status:")} ${detail.verification_status}`);
|
|
1327
1333
|
console.log(` ${pc4.bold("Source:")} ${detail.source_url || "\u2014"}`);
|
|
1334
|
+
if (detail.external_api_dependencies.length > 0) {
|
|
1335
|
+
console.log(` ${pc4.bold("External APIs:")} ${detail.external_api_dependencies.join(", ")}`);
|
|
1336
|
+
}
|
|
1328
1337
|
if (detail.author?.display_name) {
|
|
1329
1338
|
console.log(` ${pc4.bold("Author:")} ${detail.author.display_name}`);
|
|
1330
1339
|
}
|