stpr 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -1
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -776,7 +776,7 @@ async function main() {
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) {
779
+ if (!tools.length) {
780
780
  die(
781
781
  service2 ? `No skills found for service "${service2}".` : "No skills found."
782
782
  );
@@ -793,6 +793,11 @@ async function main() {
793
793
  }
794
794
  if (!action) {
795
795
  const tools = await client.listTools({ service });
796
+ if (!tools.length) {
797
+ die(
798
+ service ? `No skills found for service "${service}".` : "No skills found."
799
+ );
800
+ }
796
801
  const formatted = verboseFlag ? formatToolsForList(tools, verboseFlag) : tools.map(({ action: action2 }) => action2);
797
802
  console.log(JSON.stringify(formatted, null, 2));
798
803
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stpr",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "CLI for Stepper skill sets",
5
5
  "type": "module",
6
6
  "files": [
@@ -20,4 +20,4 @@
20
20
  "tsup": "^8.0.0",
21
21
  "typescript": "^5.4.0"
22
22
  }
23
- }
23
+ }