@socketsecurity/cli-with-sentry 1.1.147 → 1.1.152

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 (109) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/DISCLOSURE +45 -0
  3. package/dist/cli.js +680 -485
  4. package/dist/cli.js.map +1 -1
  5. package/dist/constants.js +6 -6
  6. package/dist/constants.js.map +1 -1
  7. package/dist/instrument-with-sentry.js +3 -3
  8. package/dist/instrument-with-sentry.js.map +1 -1
  9. package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
  10. package/dist/shadow-npm-bin2.js +6 -6
  11. package/dist/shadow-npm-bin2.js.map +1 -1
  12. package/dist/shadow-npm-inject.js +10 -10
  13. package/dist/shadow-npm-inject.js.map +1 -1
  14. package/dist/shadow-pnpm-bin2.js +13 -13
  15. package/dist/shadow-pnpm-bin2.js.map +1 -1
  16. package/dist/shadow-yarn-bin.js +3 -3
  17. package/dist/shadow-yarn-bin.js.map +1 -1
  18. package/dist/socket-completion.bash +0 -0
  19. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  20. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  21. package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
  22. package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
  23. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +1 -1
  24. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
  25. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +3 -1
  26. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +1 -1
  27. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +4 -1
  28. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
  29. package/dist/types/commands/manifest/run-manifest-facts.d.mts +3 -1
  30. package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -1
  31. package/dist/types/commands/manifest/scripts/run.d.mts +8 -0
  32. package/dist/types/commands/manifest/scripts/run.d.mts.map +1 -1
  33. package/dist/types/commands/organization/fetch-organization-list.d.mts +2 -2
  34. package/dist/types/commands/organization/fetch-organization-list.d.mts.map +1 -1
  35. package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +1 -1
  36. package/dist/types/commands/repository/fetch-create-repo.d.mts +2 -2
  37. package/dist/types/commands/repository/fetch-create-repo.d.mts.map +1 -1
  38. package/dist/types/commands/repository/fetch-delete-repo.d.mts +2 -2
  39. package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +1 -1
  40. package/dist/types/commands/repository/fetch-list-all-repos.d.mts +2 -2
  41. package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +1 -1
  42. package/dist/types/commands/repository/fetch-list-repos.d.mts +2 -2
  43. package/dist/types/commands/repository/fetch-list-repos.d.mts.map +1 -1
  44. package/dist/types/commands/repository/fetch-update-repo.d.mts +2 -2
  45. package/dist/types/commands/repository/fetch-update-repo.d.mts.map +1 -1
  46. package/dist/types/commands/repository/fetch-view-repo.d.mts +2 -2
  47. package/dist/types/commands/repository/fetch-view-repo.d.mts.map +1 -1
  48. package/dist/types/commands/repository/handle-list-repos.d.mts.map +1 -1
  49. package/dist/types/commands/repository/output-create-repo.d.mts +2 -2
  50. package/dist/types/commands/repository/output-create-repo.d.mts.map +1 -1
  51. package/dist/types/commands/repository/output-delete-repo.d.mts +2 -2
  52. package/dist/types/commands/repository/output-delete-repo.d.mts.map +1 -1
  53. package/dist/types/commands/repository/output-list-repos.d.mts +2 -2
  54. package/dist/types/commands/repository/output-list-repos.d.mts.map +1 -1
  55. package/dist/types/commands/repository/output-update-repo.d.mts +2 -2
  56. package/dist/types/commands/repository/output-update-repo.d.mts.map +1 -1
  57. package/dist/types/commands/repository/output-view-repo.d.mts +2 -2
  58. package/dist/types/commands/repository/output-view-repo.d.mts.map +1 -1
  59. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
  60. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
  61. package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
  62. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +2 -2
  63. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
  64. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +2 -2
  65. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +1 -1
  66. package/dist/types/commands/scan/fetch-list-scans.d.mts +2 -2
  67. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
  68. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +2 -2
  69. package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +1 -1
  70. package/dist/types/commands/scan/fetch-scan.d.mts +4 -0
  71. package/dist/types/commands/scan/fetch-scan.d.mts.map +1 -1
  72. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +2 -1
  73. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +1 -1
  74. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  75. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -1
  76. package/dist/types/commands/scan/output-create-new-scan.d.mts +2 -2
  77. package/dist/types/commands/scan/output-create-new-scan.d.mts.map +1 -1
  78. package/dist/types/commands/scan/output-delete-scan.d.mts +2 -2
  79. package/dist/types/commands/scan/output-delete-scan.d.mts.map +1 -1
  80. package/dist/types/commands/scan/output-list-scans.d.mts +2 -2
  81. package/dist/types/commands/scan/output-list-scans.d.mts.map +1 -1
  82. package/dist/types/commands/scan/output-scan-metadata.d.mts +2 -2
  83. package/dist/types/commands/scan/output-scan-metadata.d.mts.map +1 -1
  84. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +1 -0
  85. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
  86. package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
  87. package/dist/types/commands/scan/stream-scan.d.mts +3 -1
  88. package/dist/types/commands/scan/stream-scan.d.mts.map +1 -1
  89. package/dist/types/utils/api.d.mts +49 -4
  90. package/dist/types/utils/api.d.mts.map +1 -1
  91. package/dist/types/utils/ecosystem.d.mts +1 -1
  92. package/dist/types/utils/ecosystem.d.mts.map +1 -1
  93. package/dist/types/utils/fs.d.mts +1 -0
  94. package/dist/types/utils/fs.d.mts.map +1 -1
  95. package/dist/types/utils/glob.d.mts +4 -4
  96. package/dist/types/utils/glob.d.mts.map +1 -1
  97. package/dist/types/utils/path-resolve.d.mts +1 -1
  98. package/dist/types/utils/path-resolve.d.mts.map +1 -1
  99. package/dist/types/utils/sdk.d.mts +5 -0
  100. package/dist/types/utils/sdk.d.mts.map +1 -1
  101. package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
  102. package/dist/utils.js +268 -188
  103. package/dist/utils.js.map +1 -1
  104. package/dist/vendor.js +9530 -1726
  105. package/package.json +63 -133
  106. package/shadow-bin/npm +0 -0
  107. package/shadow-bin/npx +0 -0
  108. package/shadow-bin/pnpm +0 -0
  109. package/shadow-bin/yarn +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [1.1.152](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.152) - 2026-08-03
8
+
9
+ ### Changed
10
+ - Updated the Coana CLI to v `15.10.0`.
11
+
12
+ ## [1.1.151](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.151) - 2026-07-31
13
+
14
+ ### Changed
15
+ - Updated the Coana CLI to v `15.9.9`.
16
+ - `socket scan view` now reads completed scans from Socket's cached immutable results, retrying briefly while a fresh scan finalizes; `--stream` keeps streaming live results.
17
+ - `socket fix` vulnerability discovery now reads Coana's structured `--output-file` JSON result instead of parsing stdout, and warns when the Socket backend resolved 0 artifacts so an incomplete server-side resolve is surfaced instead of silently reporting "Finished!".
18
+
19
+ ### Fixed
20
+ - `socket fix` no longer reports success when the Coana vulnerability-discovery step fails — Coana errors and unreadable discovery output now exit non-zero with the underlying reason instead of printing "Finished!" with nothing fixed.
21
+ - Fixed `--auto-manifest --reach` reachability scans on sbt/Scala projects sometimes failing to resolve the Scala standard library.
22
+
7
23
  ## [1.1.147](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.147) - 2026-07-27
8
24
 
9
25
  ### Changed
package/DISCLOSURE ADDED
@@ -0,0 +1,45 @@
1
+ # Dual-use disclosure
2
+
3
+ Packages: socket, @socketsecurity/cli, @socketsecurity/cli-with-sentry
4
+ Content policy class: dual-use (https://docs.npmjs.com/policies/dual-use)
5
+
6
+ All three packages are built from one source tree
7
+ (https://github.com/SocketDev/socket-cli, branch v1.x). "socket" is the
8
+ primary package. "@socketsecurity/cli" is the same tool published under its
9
+ older name. "@socketsecurity/cli-with-sentry" is the same tool with the
10
+ Sentry error-reporting library added.
11
+
12
+ ## What the packages do that can look like malware
13
+
14
+ The packages install command-line executables: socket, socket-npm,
15
+ socket-npx, socket-pnpm, and socket-yarn. The two variant packages ship the
16
+ same commands and add variant-named aliases of them. These commands wrap
17
+ the npm, npx, pnpm, and yarn package managers: when a user runs an install
18
+ through them, the tool reads the dependency tree first, sends package names
19
+ and versions to the socket.dev security API for analysis, and can warn
20
+ about or refuse to continue an install when a dependency looks risky. The
21
+ tool can also read project files such as manifests, lockfiles, and package
22
+ contents to build a security scan, and it uploads those scan inputs to
23
+ socket.dev when the user requests a scan. Wrapping package managers,
24
+ stopping installs, reading project files, and uploading scan data are
25
+ behaviors that automated malware scanning can mistake for malicious
26
+ software.
27
+
28
+ ## What the packages send over the network
29
+
30
+ The tool talks to the socket.dev API to run the security analysis the user
31
+ asked for. It sends what that analysis needs: package names and versions,
32
+ dependency manifests and lockfiles, and the scan files the user chose to
33
+ upload. The user's API token is sent to authenticate those requests. In
34
+ addition, the @socketsecurity/cli-with-sentry variant bundles the
35
+ @sentry/node library and reports errors and crashes to Sentry so the
36
+ maintainers can debug failures. The other two packages do not include
37
+ Sentry.
38
+
39
+ ## Intended legitimate use
40
+
41
+ The packages exist for defensive supply-chain security: developers and CI
42
+ systems use them to find known-malicious, hijacked, typosquatted, or
43
+ policy-violating dependencies before those dependencies run. The tool runs
44
+ only when a user or a CI job invokes it. Its source code is public at
45
+ https://github.com/SocketDev/socket-cli and issues are tracked there.