@ship-safe/cli 1.1.12 → 1.1.13

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 +6 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7817,8 +7817,13 @@ async function scanCommand(targetPath, options) {
7817
7817
  chalk5.yellow("Session expired. Run `shipsafe login` to re-authenticate.")
7818
7818
  );
7819
7819
  } else {
7820
+ let errBody = "";
7821
+ try {
7822
+ errBody = JSON.stringify(await aiRes.json());
7823
+ } catch {
7824
+ }
7820
7825
  aiSpinner.warn(
7821
- chalk5.yellow("AI analysis unavailable. Showing rule-based results only.")
7826
+ chalk5.yellow(`AI analysis unavailable (HTTP ${aiRes.status}). ${errBody || "Showing rule-based results only."}`)
7822
7827
  );
7823
7828
  }
7824
7829
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ship-safe/cli",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Security scanner for AI-generated code — find vulnerabilities before you ship",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,8 +51,8 @@
51
51
  "@types/node": "^22",
52
52
  "tsup": "^8",
53
53
  "typescript": "^5.7",
54
- "@shipsafe/shared": "0.1.0",
55
- "@shipsafe/scanner": "0.1.0"
54
+ "@shipsafe/scanner": "0.1.0",
55
+ "@shipsafe/shared": "0.1.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsup",