socket 1.1.154 → 1.1.156

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 (45) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/README.md +28 -23
  3. package/dist/cli.js +4135 -3974
  4. package/dist/cli.js.map +1 -1
  5. package/dist/constants.js +4 -4
  6. package/dist/constants.js.map +1 -1
  7. package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
  8. package/dist/shadow-npm-bin2.js +27 -2
  9. package/dist/shadow-npm-bin2.js.map +1 -1
  10. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  11. package/dist/types/commands/ci/handle-ci.d.mts +7 -0
  12. package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
  13. package/dist/types/commands/manifest/cmd-manifest-dynamic-sbom-inference.d.mts.map +1 -1
  14. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -1
  15. package/dist/types/commands/manifest/discover-manifest-roots.d.mts +2 -1
  16. package/dist/types/commands/manifest/discover-manifest-roots.d.mts.map +1 -1
  17. package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +24 -6
  18. package/dist/types/commands/manifest/generate-recursive-manifests.d.mts.map +1 -1
  19. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
  20. package/dist/types/commands/manifest/handle-manifest-dynamic-sbom-inference.d.mts.map +1 -1
  21. package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -1
  22. package/dist/types/commands/manifest/scripts/sidecar.d.mts +47 -21
  23. package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +1 -1
  24. package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts +8 -6
  25. package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts.map +1 -1
  26. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
  27. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  28. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
  29. package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
  30. package/dist/types/shadow/npm-base.d.mts +18 -0
  31. package/dist/types/shadow/npm-base.d.mts.map +1 -1
  32. package/dist/types/utils/fs.d.mts +4 -0
  33. package/dist/types/utils/fs.d.mts.map +1 -1
  34. package/dist/types/utils/git.d.mts +6 -0
  35. package/dist/types/utils/git.d.mts.map +1 -1
  36. package/dist/types/utils/github-errors.d.mts +2 -1
  37. package/dist/types/utils/github-errors.d.mts.map +1 -1
  38. package/dist/types/utils/glob.d.mts.map +1 -1
  39. package/dist/types/utils/npm-paths.d.mts +17 -0
  40. package/dist/types/utils/npm-paths.d.mts.map +1 -1
  41. package/dist/utils.js +348 -120
  42. package/dist/utils.js.map +1 -1
  43. package/package.json +16 -12
  44. package/logo-dark.png +0 -0
  45. package/logo-light.png +0 -0
package/CHANGELOG.md CHANGED
@@ -4,11 +4,29 @@ 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.154](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.154) - 2026-08-05
7
+ ## [1.1.156](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.156) - 2026-08-10
8
+
9
+ ### Changed
10
+ - Updated the Coana CLI to v `15.10.10`.
11
+
12
+ ## [1.1.155](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.155) - 2026-08-07
13
+
14
+ ### Added
15
+ - `socket scan create --reach --dynamic-sbom-inference` splits full application reachability analysis per project/module for Gradle, sbt, and Maven monorepos, using a Socket facts SBOM generated directly by each package manager for every build root, instead of one synthetic root.
16
+ - `socket manifest setup --dynamic-sbom-inference` extends the interactive `socket.json` configurator to walk every independent Gradle, sbt, and Maven build root in your project.
17
+ - `socket manifest dynamic-sbom-inference`: generate a Socket facts SBOM for every independent Gradle, sbt, and Maven build root directly, without creating a scan.
18
+
19
+ ### Changed
20
+ - Updated the Coana CLI to v `15.10.8`.
8
21
 
9
22
  ### Fixed
10
23
  - Declared `form-data` as a dependency, so a fresh install no longer throws `Cannot find module 'form-data'` on its first upload.
11
24
 
25
+ ## [1.1.154](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.154) - 2026-08-06
26
+
27
+ ### Changed
28
+ - Updated the Coana CLI to v `15.10.4`.
29
+
12
30
  ## [1.1.153](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.153) - 2026-08-04
13
31
 
14
32
  ### Changed
package/README.md CHANGED
@@ -1,18 +1,21 @@
1
1
  # Socket CLI
2
2
 
3
3
  [![Socket Badge](https://socket.dev/api/badge/npm/package/socket)](https://socket.dev/npm/package/socket)
4
- [![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
4
+ [![Follow @SocketSecurity](https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.156/assets/fleet/badge-follow-x.svg)](https://twitter.com/SocketSecurity)
5
+ [![Follow @socket.dev on Bluesky](https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.156/assets/fleet/badge-follow-bluesky.svg)](https://bsky.app/profile/socket.dev)
5
6
 
6
- CLI for [Socket.dev] security analysis
7
+ CLI for [Socket.dev](https://socket.dev) — scan dependencies, audit packages, apply security patches, and gate installs from your terminal or CI. This is the 1.x line of the published `socket` package on npm.
7
8
 
8
- ## Usage
9
+ ## Install
9
10
 
10
11
  ```bash
11
12
  npm install -g socket
12
13
  socket --help
13
14
  ```
14
15
 
15
- ## Commands
16
+ ## Usage
17
+
18
+ ### Commands
16
19
 
17
20
  - `socket npm [args...]` and `socket npx [args...]` - Wraps npm/npx with Socket security scanning
18
21
 
@@ -24,7 +27,7 @@ socket --help
24
27
 
25
28
  - `socket patch <command>` - Apply, manage, and rollback Socket security patches for vulnerable dependencies
26
29
 
27
- ### Patch subcommands
30
+ #### Patch subcommands
28
31
 
29
32
  | Command | Description |
30
33
  |---------|-------------|
@@ -54,13 +57,13 @@ socket patch setup --yes
54
57
 
55
58
  Free patches work without authentication. For paid patches, set `SOCKET_CLI_API_TOKEN` and `SOCKET_CLI_ORG_SLUG`.
56
59
 
57
- ## Aliases
60
+ ### Aliases
58
61
 
59
62
  All aliases support the flags and arguments of the commands they alias.
60
63
 
61
64
  - `socket ci` - Alias for `socket scan create --report` (creates report and exits with error if unhealthy)
62
65
 
63
- ## Reachability analysis
66
+ ### Reachability analysis
64
67
 
65
68
  Socket reachability analysis comes in three forms:
66
69
 
@@ -68,14 +71,14 @@ Socket reachability analysis comes in three forms:
68
71
  - **Precomputed reachability** (formerly Tier 2): Determines whether vulnerable code in transitive dependencies is reachable through your direct dependencies, using precomputed static analysis of dependency chains (no access to your application code required). In the CLI this is the fallback used when full application reachability cannot complete (see the `--reach-continue-on-*` flags).
69
72
  - **Dependency reachability** (formerly Tier 3): Package-level filtering that detects which dependencies are actually used, so CVEs in unused/dead dependencies can be filtered out.
70
73
 
71
- ## Flags
74
+ ### Flags
72
75
 
73
- ### Output flags
76
+ #### Output flags
74
77
 
75
78
  - `--json` - Output as JSON
76
79
  - `--markdown` - Output as Markdown
77
80
 
78
- ### Other flags
81
+ #### Other flags
79
82
 
80
83
  - `--dry-run` - Run without uploading
81
84
  - `--debug` - Show debug output
@@ -84,12 +87,12 @@ Socket reachability analysis comes in three forms:
84
87
  - `--max-semi-space-size` - Set Node.js heap size
85
88
  - `--version` - Show version
86
89
 
87
- ## Configuration files
90
+ ### Configuration files
88
91
 
89
92
  Socket CLI reads [`socket.yml`](https://docs.socket.dev/docs/socket-yml) configuration files.
90
93
  Supports version 2 format with `projectIgnorePaths` for excluding files from reports.
91
94
 
92
- ## Environment variables
95
+ ### Environment variables
93
96
 
94
97
  - `SOCKET_CLI_API_TOKEN` - Socket API token
95
98
  - `SOCKET_CLI_CONFIG` - JSON configuration object
@@ -103,11 +106,17 @@ Supports version 2 format with `projectIgnorePaths` for excluding files from rep
103
106
  - `SOCKET_CLI_ACCEPT_RISKS` - Accept npm/npx risks
104
107
  - `SOCKET_CLI_VIEW_ALL_RISKS` - Show all npm/npx risks
105
108
 
106
- ## Contributing
109
+ ### See also
110
+
111
+ - [Socket API Reference](https://docs.socket.dev/reference)
112
+ - [Socket GitHub App](https://github.com/apps/socket-security)
113
+ - [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js)
114
+
115
+ ## Development
107
116
 
108
117
  Run locally:
109
118
 
110
- ```
119
+ ```bash
111
120
  npm install
112
121
  npm run build
113
122
  npm exec socket
@@ -122,19 +131,15 @@ npm exec socket
122
131
  - `SOCKET_CLI_DEBUG` - Enable debug logging
123
132
  - `DEBUG` - Enable [`debug`](https://socket.dev/npm/package/debug) package logging
124
133
 
125
- ## See also
126
-
127
- - [Socket API Reference](https://docs.socket.dev/reference)
128
- - [Socket GitHub App](https://github.com/apps/socket-security)
129
- - [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js)
134
+ ## License
130
135
 
131
- [Socket.dev]: https://socket.dev/
136
+ MIT
132
137
 
133
138
  <br/>
134
139
  <div align="center">
135
140
  <picture>
136
- <source media="(prefers-color-scheme: dark)" srcset="logo-dark.png">
137
- <source media="(prefers-color-scheme: light)" srcset="logo-light.png">
138
- <img width="324" height="108" alt="Socket Logo" src="logo-light.png">
141
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.156/assets/fleet/socket-combomark-dark.svg">
142
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.156/assets/fleet/socket-combomark-light.svg">
143
+ <img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.156/assets/fleet/socket-combomark-light.svg">
139
144
  </picture>
140
145
  </div>