stpr 1.0.2 → 1.0.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 +6 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -769,13 +769,18 @@ async function main() {
|
|
|
769
769
|
if (result2.isError) {
|
|
770
770
|
die(result2.content.map((c) => c.text).join("\n"));
|
|
771
771
|
}
|
|
772
|
-
console.log(result2.content.map((c) => c.text).join("\n"));
|
|
772
|
+
console.log(result2.content.map((c) => c.text ?? "").join("\n"));
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
775
775
|
if (subcommand === "list") {
|
|
776
776
|
const service2 = args[0];
|
|
777
777
|
const tools = await client.listTools({ service: service2 ?? void 0 });
|
|
778
778
|
const formatted = formatToolsForList(tools, verboseFlag);
|
|
779
|
+
if (!formatted.length) {
|
|
780
|
+
die(
|
|
781
|
+
service2 ? `No skills found for service "${service2}".` : "No skills found."
|
|
782
|
+
);
|
|
783
|
+
}
|
|
779
784
|
console.log(JSON.stringify(formatted, null, 2));
|
|
780
785
|
return;
|
|
781
786
|
}
|