@arbol-ai/cli 3.37.0 → 3.37.1

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/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -120819,7 +120819,7 @@ ${name}`);
120819
120819
  }
120820
120820
 
120821
120821
  // src/index.ts
120822
- var VERSION = "3.37.0";
120822
+ var VERSION = "3.37.1";
120823
120823
  var RELEASE = generation_default.release;
120824
120824
  var commands2 = { ...commands, ...accountOperatorCommands };
120825
120825
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
@@ -121346,7 +121346,12 @@ Services: ${SERVICES.join(", ")}. Run arbol --help.`);
121346
121346
  if (values["api-key-stdin"] && values.input === "-") {
121347
121347
  throw new UsageError("API key and JSON input cannot share stdin; use --input file");
121348
121348
  }
121349
- const input = values.input ? JSON.parse(await readInput(values.input)) : {};
121349
+ let input;
121350
+ try {
121351
+ input = values.input ? JSON.parse(await readInput(values.input)) : {};
121352
+ } catch {
121353
+ throw new UsageError("--input must contain a readable JSON object");
121354
+ }
121350
121355
  if (!input || typeof input !== "object" || Array.isArray(input)) {
121351
121356
  throw new UsageError("--input must hold one JSON object");
121352
121357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/cli",
3
- "version": "3.37.0",
3
+ "version": "3.37.1",
4
4
  "description": "The Arbol CLI: the Arbol API from your terminal, with commands generated by Cloudflare Forge from the public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",