@socketsecurity/cli 1.15.0 → 1.16.0

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 (779) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +16 -9
  3. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -0
  4. package/dist/cli.js +2461 -948
  5. package/dist/cli.js.map +1 -1
  6. package/dist/constants.js +50 -19
  7. package/dist/constants.js.map +1 -1
  8. package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.deps.json +2 -1
  9. package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.dll +0 -0
  10. package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
  11. package/dist/types/cli.d.mts +0 -1
  12. package/dist/types/commands/analytics/cmd-analytics.d.mts +0 -1
  13. package/dist/types/commands/analytics/fetch-org-analytics.d.mts +0 -1
  14. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +0 -1
  15. package/dist/types/commands/analytics/handle-analytics.d.mts +0 -1
  16. package/dist/types/commands/analytics/output-analytics.d.mts +0 -1
  17. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +0 -1
  18. package/dist/types/commands/audit-log/fetch-audit-log.d.mts +0 -1
  19. package/dist/types/commands/audit-log/handle-audit-log.d.mts +0 -1
  20. package/dist/types/commands/audit-log/output-audit-log.d.mts +0 -1
  21. package/dist/types/commands/ci/cmd-ci.d.mts +0 -1
  22. package/dist/types/commands/ci/fetch-default-org-slug.d.mts +0 -1
  23. package/dist/types/commands/ci/handle-ci.d.mts +0 -1
  24. package/dist/types/commands/config/cmd-config-auto.d.mts +0 -1
  25. package/dist/types/commands/config/cmd-config-get.d.mts +0 -1
  26. package/dist/types/commands/config/cmd-config-list.d.mts +0 -1
  27. package/dist/types/commands/config/cmd-config-set.d.mts +0 -1
  28. package/dist/types/commands/config/cmd-config-unset.d.mts +0 -1
  29. package/dist/types/commands/config/cmd-config.d.mts +0 -1
  30. package/dist/types/commands/config/discover-config-value.d.mts +0 -1
  31. package/dist/types/commands/config/handle-config-auto.d.mts +0 -1
  32. package/dist/types/commands/config/handle-config-get.d.mts +0 -1
  33. package/dist/types/commands/config/handle-config-set.d.mts +0 -1
  34. package/dist/types/commands/config/handle-config-unset.d.mts +0 -1
  35. package/dist/types/commands/config/output-config-auto.d.mts +0 -1
  36. package/dist/types/commands/config/output-config-get.d.mts +0 -1
  37. package/dist/types/commands/config/output-config-list.d.mts +0 -1
  38. package/dist/types/commands/config/output-config-set.d.mts +0 -1
  39. package/dist/types/commands/config/output-config-unset.d.mts +0 -1
  40. package/dist/types/commands/fix/branch-cleanup.d.mts +0 -1
  41. package/dist/types/commands/fix/cmd-fix.d.mts +0 -1
  42. package/dist/types/commands/fix/coana-fix.d.mts +0 -1
  43. package/dist/types/commands/fix/env-helpers.d.mts +0 -1
  44. package/dist/types/commands/fix/generated-socket-facts.d.mts +2 -1
  45. package/dist/types/commands/fix/git.d.mts +0 -1
  46. package/dist/types/commands/fix/handle-fix.d.mts +0 -1
  47. package/dist/types/commands/fix/output-fix-result.d.mts +0 -1
  48. package/dist/types/commands/fix/pull-request.d.mts +0 -1
  49. package/dist/types/commands/fix/types.d.mts +0 -1
  50. package/dist/types/commands/install/cmd-install-completion.d.mts +0 -1
  51. package/dist/types/commands/install/cmd-install.d.mts +0 -1
  52. package/dist/types/commands/install/handle-install-completion.d.mts +0 -1
  53. package/dist/types/commands/install/output-install-completion.d.mts +0 -1
  54. package/dist/types/commands/install/setup-tab-completion.d.mts +0 -1
  55. package/dist/types/commands/json/cmd-json.d.mts +0 -1
  56. package/dist/types/commands/json/handle-cmd-json.d.mts +0 -1
  57. package/dist/types/commands/json/output-cmd-json.d.mts +0 -1
  58. package/dist/types/commands/login/apply-login.d.mts +0 -1
  59. package/dist/types/commands/login/attempt-login.d.mts +0 -1
  60. package/dist/types/commands/login/cmd-login.d.mts +0 -1
  61. package/dist/types/commands/logout/apply-logout.d.mts +0 -1
  62. package/dist/types/commands/logout/attempt-logout.d.mts +0 -1
  63. package/dist/types/commands/logout/cmd-logout.d.mts +0 -1
  64. package/dist/types/commands/manifest/bazel/bazel-socket-json-trust.d.mts +0 -1
  65. package/dist/types/commands/manifest/bazel/{bazel-bin-detect.d.mts → bin-detect.d.mts} +0 -1
  66. package/dist/types/commands/manifest/bazel/{bazel-cleanup.d.mts → cleanup.d.mts} +1 -2
  67. package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts +0 -1
  68. package/dist/types/commands/manifest/bazel/{bazel-cquery.d.mts → cquery.d.mts} +1 -2
  69. package/dist/types/commands/manifest/bazel/extract_bazel_to_maven.d.mts +1 -2
  70. package/dist/types/commands/manifest/bazel/extract_bazel_to_pypi.d.mts +1 -1
  71. package/dist/types/commands/manifest/bazel/{bazel-java-shim.d.mts → java-shim.d.mts} +0 -1
  72. package/dist/types/commands/manifest/bazel/{bazel-output-base-check.d.mts → output-base-check.d.mts} +0 -1
  73. package/dist/types/commands/manifest/bazel/paths/manifest.d.mts +7 -0
  74. package/dist/types/commands/manifest/bazel/{bazel-process.d.mts → process.d.mts} +1 -1
  75. package/dist/types/commands/manifest/bazel/{bazel-pypi-discovery.d.mts → pypi-discovery.d.mts} +1 -2
  76. package/dist/types/commands/manifest/bazel/{bazel-pypi-parser.d.mts → pypi-parser.d.mts} +0 -1
  77. package/dist/types/commands/manifest/bazel/{bazel-python-shim.d.mts → python-shim.d.mts} +0 -1
  78. package/dist/types/commands/manifest/bazel/{bazel-query-runner.d.mts → query-runner.d.mts} +5 -6
  79. package/dist/types/commands/manifest/bazel/{bazel-repo-discovery.d.mts → repo-discovery.d.mts} +0 -1
  80. package/dist/types/commands/manifest/bazel/{bazel-workspace-detect.d.mts → workspace-detect.d.mts} +0 -1
  81. package/dist/types/commands/manifest/bazel/{bazel-workspace-walk.d.mts → workspace-walk.d.mts} +0 -1
  82. package/dist/types/commands/manifest/build-root-config.d.mts +27 -0
  83. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +0 -1
  84. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +0 -1
  85. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +0 -1
  86. package/dist/types/commands/manifest/cmd-manifest-dotnet.d.mts +0 -1
  87. package/dist/types/commands/manifest/cmd-manifest-dynamic-sbom-inference.d.mts +0 -1
  88. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +0 -1
  89. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +0 -1
  90. package/dist/types/commands/manifest/cmd-manifest-maven.d.mts +0 -1
  91. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +0 -1
  92. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +0 -1
  93. package/dist/types/commands/manifest/cmd-manifest.d.mts +0 -1
  94. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +0 -1
  95. package/dist/types/commands/manifest/convert-dotnet-to-facts.d.mts +0 -1
  96. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +0 -1
  97. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +0 -1
  98. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +0 -1
  99. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +0 -1
  100. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +0 -1
  101. package/dist/types/commands/manifest/detect-manifest-actions.d.mts +0 -1
  102. package/dist/types/commands/manifest/discover-manifest-roots.d.mts +23 -8
  103. package/dist/types/commands/manifest/enumerate-workspaces.d.mts +3 -5
  104. package/dist/types/commands/manifest/expand-env-var-refs.d.mts +0 -1
  105. package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +15 -7
  106. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +0 -1
  107. package/dist/types/commands/manifest/handle-manifest-conda.d.mts +0 -1
  108. package/dist/types/commands/manifest/handle-manifest-dynamic-sbom-inference.d.mts +0 -1
  109. package/dist/types/commands/manifest/handle-manifest-setup.d.mts +0 -1
  110. package/dist/types/commands/manifest/load-build.d.mts +19 -0
  111. package/dist/types/commands/manifest/manifest-flags.d.mts +0 -1
  112. package/dist/types/commands/manifest/output-manifest-dynamic-sbom-inference.d.mts +0 -1
  113. package/dist/types/commands/manifest/output-manifest-setup.d.mts +0 -1
  114. package/dist/types/commands/manifest/output-requirements.d.mts +0 -1
  115. package/dist/types/commands/manifest/parse-build-tool-opts.d.mts +0 -1
  116. package/dist/types/commands/manifest/run-cdxgen.d.mts +0 -1
  117. package/dist/types/commands/manifest/run-manifest-facts.d.mts +3 -1
  118. package/dist/types/commands/manifest/scripts/assemble.d.mts +0 -1
  119. package/dist/types/commands/manifest/scripts/build-tool.d.mts +9 -5
  120. package/dist/types/commands/manifest/scripts/exclude-paths-glob.d.mts +0 -1
  121. package/dist/types/commands/manifest/scripts/facts.d.mts +4 -3
  122. package/dist/types/commands/manifest/scripts/records.d.mts +2 -1
  123. package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts +0 -1
  124. package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts +0 -1
  125. package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts +0 -1
  126. package/dist/types/commands/manifest/scripts/resolution-report-nuget.d.mts +0 -1
  127. package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts +0 -1
  128. package/dist/types/commands/manifest/scripts/resolution-report.d.mts +0 -1
  129. package/dist/types/commands/manifest/scripts/run.d.mts +0 -1
  130. package/dist/types/commands/manifest/scripts/sidecar.d.mts +1 -3
  131. package/dist/types/commands/manifest/scripts/test/assemble-records.d.mts +1 -0
  132. package/dist/types/commands/manifest/setup-manifest-config.d.mts +0 -1
  133. package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts +10 -65
  134. package/dist/types/commands/npm/cmd-npm.d.mts +0 -1
  135. package/dist/types/commands/npx/cmd-npx.d.mts +0 -1
  136. package/dist/types/commands/oops/cmd-oops.d.mts +0 -1
  137. package/dist/types/commands/optimize/add-overrides.d.mts +0 -1
  138. package/dist/types/commands/optimize/apply-optimization.d.mts +0 -1
  139. package/dist/types/commands/optimize/cmd-optimize.d.mts +0 -1
  140. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +0 -1
  141. package/dist/types/commands/optimize/get-dependency-entries.d.mts +0 -1
  142. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +0 -1
  143. package/dist/types/commands/optimize/handle-optimize.d.mts +0 -1
  144. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +0 -1
  145. package/dist/types/commands/optimize/ls-by-agent.d.mts +0 -1
  146. package/dist/types/commands/optimize/output-optimize-result.d.mts +0 -1
  147. package/dist/types/commands/optimize/shared.d.mts +0 -1
  148. package/dist/types/commands/optimize/types.d.mts +0 -1
  149. package/dist/types/commands/optimize/update-lockfile.d.mts +0 -1
  150. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +0 -1
  151. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts +0 -1
  152. package/dist/types/commands/organization/cmd-organization-list.d.mts +0 -1
  153. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +0 -1
  154. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +0 -1
  155. package/dist/types/commands/organization/cmd-organization-policy.d.mts +0 -1
  156. package/dist/types/commands/organization/cmd-organization-quota.d.mts +0 -1
  157. package/dist/types/commands/organization/cmd-organization.d.mts +0 -1
  158. package/dist/types/commands/organization/dependencies-filters.d.mts +10 -0
  159. package/dist/types/commands/organization/fetch-dependencies.d.mts +1 -1
  160. package/dist/types/commands/organization/fetch-license-policy.d.mts +0 -1
  161. package/dist/types/commands/organization/fetch-organization-list.d.mts +0 -1
  162. package/dist/types/commands/organization/fetch-quota.d.mts +0 -1
  163. package/dist/types/commands/organization/fetch-security-policy.d.mts +0 -1
  164. package/dist/types/commands/organization/handle-dependencies.d.mts +2 -2
  165. package/dist/types/commands/organization/handle-license-policy.d.mts +0 -1
  166. package/dist/types/commands/organization/handle-organization-list.d.mts +0 -1
  167. package/dist/types/commands/organization/handle-quota.d.mts +0 -1
  168. package/dist/types/commands/organization/handle-security-policy.d.mts +0 -1
  169. package/dist/types/commands/organization/output-dependencies.d.mts +0 -1
  170. package/dist/types/commands/organization/output-license-policy.d.mts +0 -1
  171. package/dist/types/commands/organization/output-organization-list.d.mts +0 -1
  172. package/dist/types/commands/organization/output-quota.d.mts +0 -1
  173. package/dist/types/commands/organization/output-security-policy.d.mts +0 -1
  174. package/dist/types/commands/package/cmd-package-score.d.mts +0 -1
  175. package/dist/types/commands/package/cmd-package-shallow.d.mts +0 -1
  176. package/dist/types/commands/package/cmd-package.d.mts +0 -1
  177. package/dist/types/commands/package/fetch-purl-deep-score.d.mts +0 -1
  178. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +0 -1
  179. package/dist/types/commands/package/handle-purl-deep-score.d.mts +0 -1
  180. package/dist/types/commands/package/handle-purls-shallow-score.d.mts +0 -1
  181. package/dist/types/commands/package/output-purls-deep-score.d.mts +0 -1
  182. package/dist/types/commands/package/output-purls-shallow-score.d.mts +0 -1
  183. package/dist/types/commands/package/parse-package-specifiers.d.mts +0 -1
  184. package/dist/types/commands/patch/cmd-patch.d.mts +0 -1
  185. package/dist/types/commands/pnpm/cmd-pnpm.d.mts +0 -1
  186. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +0 -1
  187. package/dist/types/commands/raw-npm/run-raw-npm.d.mts +0 -1
  188. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +0 -1
  189. package/dist/types/commands/raw-npx/run-raw-npx.d.mts +0 -1
  190. package/dist/types/commands/repository/cmd-repository-create.d.mts +0 -1
  191. package/dist/types/commands/repository/cmd-repository-del.d.mts +0 -1
  192. package/dist/types/commands/repository/cmd-repository-list.d.mts +0 -1
  193. package/dist/types/commands/repository/cmd-repository-update.d.mts +0 -1
  194. package/dist/types/commands/repository/cmd-repository-view.d.mts +0 -1
  195. package/dist/types/commands/repository/cmd-repository.d.mts +0 -1
  196. package/dist/types/commands/repository/fetch-create-repo.d.mts +0 -1
  197. package/dist/types/commands/repository/fetch-delete-repo.d.mts +0 -1
  198. package/dist/types/commands/repository/fetch-list-all-repos.d.mts +0 -1
  199. package/dist/types/commands/repository/fetch-list-repos.d.mts +0 -1
  200. package/dist/types/commands/repository/fetch-update-repo.d.mts +0 -1
  201. package/dist/types/commands/repository/fetch-view-repo.d.mts +0 -1
  202. package/dist/types/commands/repository/handle-create-repo.d.mts +0 -1
  203. package/dist/types/commands/repository/handle-delete-repo.d.mts +0 -1
  204. package/dist/types/commands/repository/handle-list-repos.d.mts +0 -1
  205. package/dist/types/commands/repository/handle-update-repo.d.mts +0 -1
  206. package/dist/types/commands/repository/handle-view-repo.d.mts +0 -1
  207. package/dist/types/commands/repository/output-create-repo.d.mts +0 -1
  208. package/dist/types/commands/repository/output-delete-repo.d.mts +0 -1
  209. package/dist/types/commands/repository/output-list-repos.d.mts +0 -1
  210. package/dist/types/commands/repository/output-update-repo.d.mts +0 -1
  211. package/dist/types/commands/repository/output-view-repo.d.mts +0 -1
  212. package/dist/types/commands/repository/types.d.mts +0 -1
  213. package/dist/types/commands/scan/cmd-scan-create.d.mts +0 -1
  214. package/dist/types/commands/scan/cmd-scan-del.d.mts +0 -1
  215. package/dist/types/commands/scan/cmd-scan-diff.d.mts +0 -1
  216. package/dist/types/commands/scan/cmd-scan-github.d.mts +0 -1
  217. package/dist/types/commands/scan/cmd-scan-list.d.mts +0 -1
  218. package/dist/types/commands/scan/cmd-scan-metadata.d.mts +0 -1
  219. package/dist/types/commands/scan/cmd-scan-reach.d.mts +0 -1
  220. package/dist/types/commands/scan/cmd-scan-report.d.mts +0 -1
  221. package/dist/types/commands/scan/cmd-scan-setup.d.mts +0 -1
  222. package/dist/types/commands/scan/cmd-scan-view.d.mts +0 -1
  223. package/dist/types/commands/scan/cmd-scan.d.mts +0 -1
  224. package/dist/types/commands/scan/create-scan-from-github.d.mts +0 -1
  225. package/dist/types/commands/scan/exclude-paths.d.mts +0 -1
  226. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +0 -1
  227. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +0 -1
  228. package/dist/types/commands/scan/fetch-diff-scan.d.mts +0 -1
  229. package/dist/types/commands/scan/fetch-list-scans.d.mts +0 -1
  230. package/dist/types/commands/scan/fetch-report-data.d.mts +0 -1
  231. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +0 -1
  232. package/dist/types/commands/scan/fetch-scan.d.mts +0 -1
  233. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +0 -1
  234. package/dist/types/commands/scan/finalize-tier1-scan.d.mts +0 -1
  235. package/dist/types/commands/scan/generate-report.d.mts +0 -1
  236. package/dist/types/commands/scan/generate-uv-member-sboms.d.mts +0 -1
  237. package/dist/types/commands/scan/handle-create-github-scan.d.mts +0 -1
  238. package/dist/types/commands/scan/handle-create-new-scan.d.mts +0 -1
  239. package/dist/types/commands/scan/handle-delete-scan.d.mts +0 -1
  240. package/dist/types/commands/scan/handle-diff-scan.d.mts +0 -1
  241. package/dist/types/commands/scan/handle-list-scans.d.mts +0 -1
  242. package/dist/types/commands/scan/handle-scan-config.d.mts +0 -1
  243. package/dist/types/commands/scan/handle-scan-metadata.d.mts +0 -1
  244. package/dist/types/commands/scan/handle-scan-reach.d.mts +0 -1
  245. package/dist/types/commands/scan/handle-scan-report.d.mts +0 -1
  246. package/dist/types/commands/scan/handle-scan-view.d.mts +0 -1
  247. package/dist/types/commands/scan/output-create-new-scan.d.mts +0 -1
  248. package/dist/types/commands/scan/output-delete-scan.d.mts +0 -1
  249. package/dist/types/commands/scan/output-diff-scan.d.mts +0 -1
  250. package/dist/types/commands/scan/output-list-scans.d.mts +0 -1
  251. package/dist/types/commands/scan/output-scan-config-result.d.mts +0 -1
  252. package/dist/types/commands/scan/output-scan-github.d.mts +0 -1
  253. package/dist/types/commands/scan/output-scan-metadata.d.mts +0 -1
  254. package/dist/types/commands/scan/output-scan-reach.d.mts +0 -1
  255. package/dist/types/commands/scan/output-scan-report.d.mts +12 -1
  256. package/dist/types/commands/scan/output-scan-view.d.mts +0 -1
  257. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +0 -2
  258. package/dist/types/commands/scan/reach-advisories.d.mts +0 -1
  259. package/dist/types/commands/scan/reachability-flags.d.mts +0 -1
  260. package/dist/types/commands/scan/reachability-units.d.mts +0 -1
  261. package/dist/types/commands/scan/run-dynamic-sbom-inference.d.mts +5 -1
  262. package/dist/types/commands/scan/setup-scan-config.d.mts +0 -1
  263. package/dist/types/commands/scan/stream-scan.d.mts +0 -1
  264. package/dist/types/commands/scan/suggest-org-slug.d.mts +0 -1
  265. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts +0 -1
  266. package/dist/types/commands/scan/suggest_branch_slug.d.mts +0 -1
  267. package/dist/types/commands/scan/suggest_target.d.mts +0 -1
  268. package/dist/types/commands/scan/types.d.mts +0 -1
  269. package/dist/types/commands/scan/validate-reachability-target.d.mts +0 -1
  270. package/dist/types/commands/scan/warn-socket-json-only-flags.d.mts +0 -1
  271. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +0 -1
  272. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +0 -1
  273. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +0 -1
  274. package/dist/types/commands/threat-feed/output-threat-feed.d.mts +0 -1
  275. package/dist/types/commands/threat-feed/types.d.mts +0 -1
  276. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +0 -1
  277. package/dist/types/commands/uninstall/cmd-uninstall.d.mts +0 -1
  278. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +0 -1
  279. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +0 -1
  280. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +0 -1
  281. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +0 -1
  282. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +0 -1
  283. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +0 -1
  284. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +0 -1
  285. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +0 -1
  286. package/dist/types/commands/yarn/cmd-yarn.d.mts +0 -1
  287. package/dist/types/commands.d.mts +0 -1
  288. package/dist/types/constants.d.mts +7 -6
  289. package/dist/types/flags.d.mts +0 -1
  290. package/dist/types/instrument-with-sentry.d.mts +0 -1
  291. package/dist/types/npm-cli.d.mts +0 -1
  292. package/dist/types/npx-cli.d.mts +0 -1
  293. package/dist/types/pnpm-cli.d.mts +0 -1
  294. package/dist/types/sea/adapters/cdxgen.d.mts +8 -0
  295. package/dist/types/sea/adapters/synp.d.mts +9 -0
  296. package/dist/types/sea/archive-paths.d.mts +6 -0
  297. package/dist/types/sea/bootstrap.d.mts +0 -1
  298. package/dist/types/sea/build/lock.d.mts +2 -0
  299. package/dist/types/sea/build/publish.d.mts +13 -0
  300. package/dist/types/sea/build-sea.d.mts +14 -24
  301. package/dist/types/sea/capabilities.d.mts +21 -0
  302. package/dist/types/sea/download-bytes.d.mts +14 -0
  303. package/dist/types/sea/download-cache.d.mts +15 -0
  304. package/dist/types/sea/node-version.d.mts +1 -0
  305. package/dist/types/sea/readme-version.d.mts +4 -0
  306. package/dist/types/sea/runtime.d.mts +34 -0
  307. package/dist/types/sea/stage/synp.d.mts +15 -0
  308. package/dist/types/sea/stage/uv.d.mts +34 -0
  309. package/dist/types/sea/version.d.mts +34 -0
  310. package/dist/types/shadow/common.d.mts +0 -1
  311. package/dist/types/shadow/npm/arborist/index.d.mts +0 -1
  312. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +0 -1
  313. package/dist/types/shadow/npm/arborist/types.d.mts +0 -1
  314. package/dist/types/shadow/npm/arborist-helpers.d.mts +0 -1
  315. package/dist/types/shadow/npm/bin.d.mts +0 -1
  316. package/dist/types/shadow/npm/inject.d.mts +0 -1
  317. package/dist/types/shadow/npm/install.d.mts +0 -1
  318. package/dist/types/shadow/npm/paths.d.mts +0 -1
  319. package/dist/types/shadow/npm-base.d.mts +0 -1
  320. package/dist/types/shadow/npx/bin.d.mts +0 -1
  321. package/dist/types/shadow/pnpm/bin.d.mts +0 -1
  322. package/dist/types/shadow/stdio-ipc.d.mts +0 -1
  323. package/dist/types/shadow/yarn/bin.d.mts +0 -1
  324. package/dist/types/test/json-output-validation.d.mts +0 -1
  325. package/dist/types/test/mocks/socket-auth.d.mts +0 -1
  326. package/dist/types/types.d.mts +0 -1
  327. package/dist/types/utils/advisory-ids.d.mts +0 -1
  328. package/dist/types/utils/agent.d.mts +5 -11
  329. package/dist/types/utils/alert/artifact.d.mts +0 -1
  330. package/dist/types/utils/alert/fix.d.mts +0 -1
  331. package/dist/types/utils/alert/severity.d.mts +0 -1
  332. package/dist/types/utils/alerts-map.d.mts +0 -1
  333. package/dist/types/utils/api-transport.d.mts +0 -1
  334. package/dist/types/utils/api.d.mts +2 -1
  335. package/dist/types/utils/check-input.d.mts +0 -1
  336. package/dist/types/utils/cmd.d.mts +0 -1
  337. package/dist/types/utils/coana-release.d.mts +5 -1
  338. package/dist/types/utils/coana.d.mts +0 -1
  339. package/dist/types/utils/color-or-markdown.d.mts +0 -1
  340. package/dist/types/utils/completion.d.mts +0 -1
  341. package/dist/types/utils/config.d.mts +0 -1
  342. package/dist/types/utils/cve-to-ghsa.d.mts +0 -1
  343. package/dist/types/utils/debug.d.mts +0 -1
  344. package/dist/types/utils/determine-org-slug.d.mts +0 -1
  345. package/dist/types/utils/dlx-detection.d.mts +0 -1
  346. package/dist/types/utils/dlx.d.mts +0 -1
  347. package/dist/types/utils/ecosystem.d.mts +0 -1
  348. package/dist/types/utils/editable-json.d.mts +0 -1
  349. package/dist/types/utils/errors.d.mts +0 -1
  350. package/dist/types/utils/extract-names.d.mts +0 -1
  351. package/dist/types/utils/fail-msg-with-badge.d.mts +0 -1
  352. package/dist/types/utils/filter-config.d.mts +0 -1
  353. package/dist/types/utils/fs.d.mts +0 -1
  354. package/dist/types/utils/get-or-insert.d.mts +0 -1
  355. package/dist/types/utils/get-output-kind.d.mts +0 -1
  356. package/dist/types/utils/git.d.mts +0 -1
  357. package/dist/types/utils/github-errors.d.mts +0 -1
  358. package/dist/types/utils/github.d.mts +0 -1
  359. package/dist/types/utils/glob.d.mts +0 -1
  360. package/dist/types/utils/lockfile.d.mts +0 -1
  361. package/dist/types/utils/map-to-object.d.mts +0 -1
  362. package/dist/types/utils/markdown.d.mts +0 -1
  363. package/dist/types/utils/meow-with-subcommands.d.mts +0 -1
  364. package/dist/types/utils/ms-at-home.d.mts +0 -1
  365. package/dist/types/utils/npm-config.d.mts +0 -1
  366. package/dist/types/utils/npm-package-arg.d.mts +0 -1
  367. package/dist/types/utils/npm-paths.d.mts +0 -1
  368. package/dist/types/utils/npm-spec.d.mts +0 -1
  369. package/dist/types/utils/oauth.d.mts +0 -1
  370. package/dist/types/utils/objects.d.mts +0 -1
  371. package/dist/types/utils/organization.d.mts +0 -1
  372. package/dist/types/utils/output-formatting.d.mts +0 -1
  373. package/dist/types/utils/package-environment.d.mts +0 -1
  374. package/dist/types/utils/package-manager.d.mts +0 -1
  375. package/dist/types/utils/path-resolve.d.mts +0 -1
  376. package/dist/types/utils/pnpm-paths.d.mts +0 -1
  377. package/dist/types/utils/pnpm.d.mts +0 -1
  378. package/dist/types/utils/purl-to-ghsa.d.mts +0 -1
  379. package/dist/types/utils/purl.d.mts +0 -1
  380. package/dist/types/utils/quote-powershell.d.mts +2 -0
  381. package/dist/types/utils/requirements.d.mts +0 -1
  382. package/dist/types/utils/sdk.d.mts +0 -1
  383. package/dist/types/utils/self-update.d.mts +2 -1
  384. package/dist/types/utils/semver.d.mts +0 -1
  385. package/dist/types/utils/serialize-result-json.d.mts +0 -1
  386. package/dist/types/utils/shadow-links.d.mts +0 -1
  387. package/dist/types/utils/socket-json.d.mts +15 -5
  388. package/dist/types/utils/socket-package-alert.d.mts +0 -1
  389. package/dist/types/utils/socket-url.d.mts +0 -1
  390. package/dist/types/utils/spec.d.mts +0 -1
  391. package/dist/types/utils/strings.d.mts +0 -1
  392. package/dist/types/utils/telemetry/integration.d.mts +0 -1
  393. package/dist/types/utils/telemetry/service.d.mts +0 -1
  394. package/dist/types/utils/telemetry/types.d.mts +0 -1
  395. package/dist/types/utils/terminal-link.d.mts +0 -1
  396. package/dist/types/utils/tildify.d.mts +0 -1
  397. package/dist/types/utils/translations.d.mts +0 -1
  398. package/dist/types/utils/walk-nested-map.d.mts +0 -1
  399. package/dist/types/utils/yarn-paths.d.mts +0 -1
  400. package/dist/types/utils/yarn-version.d.mts +0 -1
  401. package/dist/types/yarn-cli.d.mts +0 -1
  402. package/dist/utils.js +513 -120
  403. package/dist/utils.js.map +1 -1
  404. package/external/@socketsecurity/registry/lib/packages.js +12 -9
  405. package/package.json +30 -10
  406. package/dist/tsconfig.dts.tsbuildinfo +0 -1
  407. package/dist/types/cli.d.mts.map +0 -1
  408. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +0 -1
  409. package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +0 -1
  410. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +0 -1
  411. package/dist/types/commands/analytics/handle-analytics.d.mts.map +0 -1
  412. package/dist/types/commands/analytics/output-analytics.d.mts.map +0 -1
  413. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +0 -1
  414. package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +0 -1
  415. package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +0 -1
  416. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +0 -1
  417. package/dist/types/commands/ci/cmd-ci.d.mts.map +0 -1
  418. package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +0 -1
  419. package/dist/types/commands/ci/handle-ci.d.mts.map +0 -1
  420. package/dist/types/commands/config/cmd-config-auto.d.mts.map +0 -1
  421. package/dist/types/commands/config/cmd-config-get.d.mts.map +0 -1
  422. package/dist/types/commands/config/cmd-config-list.d.mts.map +0 -1
  423. package/dist/types/commands/config/cmd-config-set.d.mts.map +0 -1
  424. package/dist/types/commands/config/cmd-config-unset.d.mts.map +0 -1
  425. package/dist/types/commands/config/cmd-config.d.mts.map +0 -1
  426. package/dist/types/commands/config/discover-config-value.d.mts.map +0 -1
  427. package/dist/types/commands/config/handle-config-auto.d.mts.map +0 -1
  428. package/dist/types/commands/config/handle-config-get.d.mts.map +0 -1
  429. package/dist/types/commands/config/handle-config-set.d.mts.map +0 -1
  430. package/dist/types/commands/config/handle-config-unset.d.mts.map +0 -1
  431. package/dist/types/commands/config/output-config-auto.d.mts.map +0 -1
  432. package/dist/types/commands/config/output-config-get.d.mts.map +0 -1
  433. package/dist/types/commands/config/output-config-list.d.mts.map +0 -1
  434. package/dist/types/commands/config/output-config-set.d.mts.map +0 -1
  435. package/dist/types/commands/config/output-config-unset.d.mts.map +0 -1
  436. package/dist/types/commands/fix/branch-cleanup.d.mts.map +0 -1
  437. package/dist/types/commands/fix/cmd-fix.d.mts.map +0 -1
  438. package/dist/types/commands/fix/coana-fix.d.mts.map +0 -1
  439. package/dist/types/commands/fix/env-helpers.d.mts.map +0 -1
  440. package/dist/types/commands/fix/generated-socket-facts.d.mts.map +0 -1
  441. package/dist/types/commands/fix/git.d.mts.map +0 -1
  442. package/dist/types/commands/fix/handle-fix.d.mts.map +0 -1
  443. package/dist/types/commands/fix/output-fix-result.d.mts.map +0 -1
  444. package/dist/types/commands/fix/pull-request.d.mts.map +0 -1
  445. package/dist/types/commands/fix/types.d.mts.map +0 -1
  446. package/dist/types/commands/install/cmd-install-completion.d.mts.map +0 -1
  447. package/dist/types/commands/install/cmd-install.d.mts.map +0 -1
  448. package/dist/types/commands/install/handle-install-completion.d.mts.map +0 -1
  449. package/dist/types/commands/install/output-install-completion.d.mts.map +0 -1
  450. package/dist/types/commands/install/setup-tab-completion.d.mts.map +0 -1
  451. package/dist/types/commands/json/cmd-json.d.mts.map +0 -1
  452. package/dist/types/commands/json/handle-cmd-json.d.mts.map +0 -1
  453. package/dist/types/commands/json/output-cmd-json.d.mts.map +0 -1
  454. package/dist/types/commands/login/apply-login.d.mts.map +0 -1
  455. package/dist/types/commands/login/attempt-login.d.mts.map +0 -1
  456. package/dist/types/commands/login/cmd-login.d.mts.map +0 -1
  457. package/dist/types/commands/logout/apply-logout.d.mts.map +0 -1
  458. package/dist/types/commands/logout/attempt-logout.d.mts.map +0 -1
  459. package/dist/types/commands/logout/cmd-logout.d.mts.map +0 -1
  460. package/dist/types/commands/manifest/bazel/bazel-bin-detect.d.mts.map +0 -1
  461. package/dist/types/commands/manifest/bazel/bazel-cleanup.d.mts.map +0 -1
  462. package/dist/types/commands/manifest/bazel/bazel-cquery.d.mts.map +0 -1
  463. package/dist/types/commands/manifest/bazel/bazel-java-shim.d.mts.map +0 -1
  464. package/dist/types/commands/manifest/bazel/bazel-output-base-check.d.mts.map +0 -1
  465. package/dist/types/commands/manifest/bazel/bazel-process.d.mts.map +0 -1
  466. package/dist/types/commands/manifest/bazel/bazel-pypi-discovery.d.mts.map +0 -1
  467. package/dist/types/commands/manifest/bazel/bazel-pypi-parser.d.mts.map +0 -1
  468. package/dist/types/commands/manifest/bazel/bazel-python-shim.d.mts.map +0 -1
  469. package/dist/types/commands/manifest/bazel/bazel-query-runner.d.mts.map +0 -1
  470. package/dist/types/commands/manifest/bazel/bazel-repo-discovery.d.mts.map +0 -1
  471. package/dist/types/commands/manifest/bazel/bazel-socket-json-trust.d.mts.map +0 -1
  472. package/dist/types/commands/manifest/bazel/bazel-workspace-detect.d.mts.map +0 -1
  473. package/dist/types/commands/manifest/bazel/bazel-workspace-walk.d.mts.map +0 -1
  474. package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts.map +0 -1
  475. package/dist/types/commands/manifest/bazel/extract_bazel_to_maven.d.mts.map +0 -1
  476. package/dist/types/commands/manifest/bazel/extract_bazel_to_pypi.d.mts.map +0 -1
  477. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +0 -1
  478. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +0 -1
  479. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +0 -1
  480. package/dist/types/commands/manifest/cmd-manifest-dotnet.d.mts.map +0 -1
  481. package/dist/types/commands/manifest/cmd-manifest-dynamic-sbom-inference.d.mts.map +0 -1
  482. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +0 -1
  483. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +0 -1
  484. package/dist/types/commands/manifest/cmd-manifest-maven.d.mts.map +0 -1
  485. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +0 -1
  486. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +0 -1
  487. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +0 -1
  488. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +0 -1
  489. package/dist/types/commands/manifest/convert-dotnet-to-facts.d.mts.map +0 -1
  490. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts.map +0 -1
  491. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts.map +0 -1
  492. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +0 -1
  493. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +0 -1
  494. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts.map +0 -1
  495. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +0 -1
  496. package/dist/types/commands/manifest/discover-manifest-roots.d.mts.map +0 -1
  497. package/dist/types/commands/manifest/enumerate-workspaces.d.mts.map +0 -1
  498. package/dist/types/commands/manifest/expand-env-var-refs.d.mts.map +0 -1
  499. package/dist/types/commands/manifest/generate-recursive-manifests.d.mts.map +0 -1
  500. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +0 -1
  501. package/dist/types/commands/manifest/handle-manifest-conda.d.mts.map +0 -1
  502. package/dist/types/commands/manifest/handle-manifest-dynamic-sbom-inference.d.mts.map +0 -1
  503. package/dist/types/commands/manifest/handle-manifest-setup.d.mts.map +0 -1
  504. package/dist/types/commands/manifest/manifest-flags.d.mts.map +0 -1
  505. package/dist/types/commands/manifest/output-manifest-dynamic-sbom-inference.d.mts.map +0 -1
  506. package/dist/types/commands/manifest/output-manifest-setup.d.mts.map +0 -1
  507. package/dist/types/commands/manifest/output-requirements.d.mts.map +0 -1
  508. package/dist/types/commands/manifest/parse-build-tool-opts.d.mts.map +0 -1
  509. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +0 -1
  510. package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +0 -1
  511. package/dist/types/commands/manifest/scripts/assemble.d.mts.map +0 -1
  512. package/dist/types/commands/manifest/scripts/build-tool.d.mts.map +0 -1
  513. package/dist/types/commands/manifest/scripts/exclude-paths-glob.d.mts.map +0 -1
  514. package/dist/types/commands/manifest/scripts/facts.d.mts.map +0 -1
  515. package/dist/types/commands/manifest/scripts/records.d.mts.map +0 -1
  516. package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts.map +0 -1
  517. package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts.map +0 -1
  518. package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts.map +0 -1
  519. package/dist/types/commands/manifest/scripts/resolution-report-nuget.d.mts.map +0 -1
  520. package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts.map +0 -1
  521. package/dist/types/commands/manifest/scripts/resolution-report.d.mts.map +0 -1
  522. package/dist/types/commands/manifest/scripts/run.d.mts.map +0 -1
  523. package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +0 -1
  524. package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +0 -1
  525. package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts.map +0 -1
  526. package/dist/types/commands/npm/cmd-npm.d.mts.map +0 -1
  527. package/dist/types/commands/npx/cmd-npx.d.mts.map +0 -1
  528. package/dist/types/commands/oops/cmd-oops.d.mts.map +0 -1
  529. package/dist/types/commands/optimize/add-overrides.d.mts.map +0 -1
  530. package/dist/types/commands/optimize/apply-optimization.d.mts.map +0 -1
  531. package/dist/types/commands/optimize/cmd-optimize.d.mts.map +0 -1
  532. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +0 -1
  533. package/dist/types/commands/optimize/get-dependency-entries.d.mts.map +0 -1
  534. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +0 -1
  535. package/dist/types/commands/optimize/handle-optimize.d.mts.map +0 -1
  536. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +0 -1
  537. package/dist/types/commands/optimize/ls-by-agent.d.mts.map +0 -1
  538. package/dist/types/commands/optimize/output-optimize-result.d.mts.map +0 -1
  539. package/dist/types/commands/optimize/shared.d.mts.map +0 -1
  540. package/dist/types/commands/optimize/types.d.mts.map +0 -1
  541. package/dist/types/commands/optimize/update-lockfile.d.mts.map +0 -1
  542. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +0 -1
  543. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +0 -1
  544. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +0 -1
  545. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +0 -1
  546. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +0 -1
  547. package/dist/types/commands/organization/cmd-organization-policy.d.mts.map +0 -1
  548. package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +0 -1
  549. package/dist/types/commands/organization/cmd-organization.d.mts.map +0 -1
  550. package/dist/types/commands/organization/fetch-dependencies.d.mts.map +0 -1
  551. package/dist/types/commands/organization/fetch-license-policy.d.mts.map +0 -1
  552. package/dist/types/commands/organization/fetch-organization-list.d.mts.map +0 -1
  553. package/dist/types/commands/organization/fetch-quota.d.mts.map +0 -1
  554. package/dist/types/commands/organization/fetch-security-policy.d.mts.map +0 -1
  555. package/dist/types/commands/organization/handle-dependencies.d.mts.map +0 -1
  556. package/dist/types/commands/organization/handle-license-policy.d.mts.map +0 -1
  557. package/dist/types/commands/organization/handle-organization-list.d.mts.map +0 -1
  558. package/dist/types/commands/organization/handle-quota.d.mts.map +0 -1
  559. package/dist/types/commands/organization/handle-security-policy.d.mts.map +0 -1
  560. package/dist/types/commands/organization/output-dependencies.d.mts.map +0 -1
  561. package/dist/types/commands/organization/output-license-policy.d.mts.map +0 -1
  562. package/dist/types/commands/organization/output-organization-list.d.mts.map +0 -1
  563. package/dist/types/commands/organization/output-quota.d.mts.map +0 -1
  564. package/dist/types/commands/organization/output-security-policy.d.mts.map +0 -1
  565. package/dist/types/commands/package/cmd-package-score.d.mts.map +0 -1
  566. package/dist/types/commands/package/cmd-package-shallow.d.mts.map +0 -1
  567. package/dist/types/commands/package/cmd-package.d.mts.map +0 -1
  568. package/dist/types/commands/package/fetch-purl-deep-score.d.mts.map +0 -1
  569. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +0 -1
  570. package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +0 -1
  571. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +0 -1
  572. package/dist/types/commands/package/output-purls-deep-score.d.mts.map +0 -1
  573. package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +0 -1
  574. package/dist/types/commands/package/parse-package-specifiers.d.mts.map +0 -1
  575. package/dist/types/commands/patch/cmd-patch.d.mts.map +0 -1
  576. package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +0 -1
  577. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +0 -1
  578. package/dist/types/commands/raw-npm/run-raw-npm.d.mts.map +0 -1
  579. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +0 -1
  580. package/dist/types/commands/raw-npx/run-raw-npx.d.mts.map +0 -1
  581. package/dist/types/commands/repository/cmd-repository-create.d.mts.map +0 -1
  582. package/dist/types/commands/repository/cmd-repository-del.d.mts.map +0 -1
  583. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +0 -1
  584. package/dist/types/commands/repository/cmd-repository-update.d.mts.map +0 -1
  585. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +0 -1
  586. package/dist/types/commands/repository/cmd-repository.d.mts.map +0 -1
  587. package/dist/types/commands/repository/fetch-create-repo.d.mts.map +0 -1
  588. package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +0 -1
  589. package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +0 -1
  590. package/dist/types/commands/repository/fetch-list-repos.d.mts.map +0 -1
  591. package/dist/types/commands/repository/fetch-update-repo.d.mts.map +0 -1
  592. package/dist/types/commands/repository/fetch-view-repo.d.mts.map +0 -1
  593. package/dist/types/commands/repository/handle-create-repo.d.mts.map +0 -1
  594. package/dist/types/commands/repository/handle-delete-repo.d.mts.map +0 -1
  595. package/dist/types/commands/repository/handle-list-repos.d.mts.map +0 -1
  596. package/dist/types/commands/repository/handle-update-repo.d.mts.map +0 -1
  597. package/dist/types/commands/repository/handle-view-repo.d.mts.map +0 -1
  598. package/dist/types/commands/repository/output-create-repo.d.mts.map +0 -1
  599. package/dist/types/commands/repository/output-delete-repo.d.mts.map +0 -1
  600. package/dist/types/commands/repository/output-list-repos.d.mts.map +0 -1
  601. package/dist/types/commands/repository/output-update-repo.d.mts.map +0 -1
  602. package/dist/types/commands/repository/output-view-repo.d.mts.map +0 -1
  603. package/dist/types/commands/repository/types.d.mts.map +0 -1
  604. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +0 -1
  605. package/dist/types/commands/scan/cmd-scan-del.d.mts.map +0 -1
  606. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +0 -1
  607. package/dist/types/commands/scan/cmd-scan-github.d.mts.map +0 -1
  608. package/dist/types/commands/scan/cmd-scan-list.d.mts.map +0 -1
  609. package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +0 -1
  610. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +0 -1
  611. package/dist/types/commands/scan/cmd-scan-report.d.mts.map +0 -1
  612. package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +0 -1
  613. package/dist/types/commands/scan/cmd-scan-view.d.mts.map +0 -1
  614. package/dist/types/commands/scan/cmd-scan.d.mts.map +0 -1
  615. package/dist/types/commands/scan/create-scan-from-github.d.mts.map +0 -1
  616. package/dist/types/commands/scan/exclude-paths.d.mts.map +0 -1
  617. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +0 -1
  618. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +0 -1
  619. package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +0 -1
  620. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +0 -1
  621. package/dist/types/commands/scan/fetch-report-data.d.mts.map +0 -1
  622. package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +0 -1
  623. package/dist/types/commands/scan/fetch-scan.d.mts.map +0 -1
  624. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +0 -1
  625. package/dist/types/commands/scan/finalize-tier1-scan.d.mts.map +0 -1
  626. package/dist/types/commands/scan/generate-report.d.mts.map +0 -1
  627. package/dist/types/commands/scan/generate-uv-member-sboms.d.mts.map +0 -1
  628. package/dist/types/commands/scan/handle-create-github-scan.d.mts.map +0 -1
  629. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +0 -1
  630. package/dist/types/commands/scan/handle-delete-scan.d.mts.map +0 -1
  631. package/dist/types/commands/scan/handle-diff-scan.d.mts.map +0 -1
  632. package/dist/types/commands/scan/handle-list-scans.d.mts.map +0 -1
  633. package/dist/types/commands/scan/handle-scan-config.d.mts.map +0 -1
  634. package/dist/types/commands/scan/handle-scan-metadata.d.mts.map +0 -1
  635. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +0 -1
  636. package/dist/types/commands/scan/handle-scan-report.d.mts.map +0 -1
  637. package/dist/types/commands/scan/handle-scan-view.d.mts.map +0 -1
  638. package/dist/types/commands/scan/output-create-new-scan.d.mts.map +0 -1
  639. package/dist/types/commands/scan/output-delete-scan.d.mts.map +0 -1
  640. package/dist/types/commands/scan/output-diff-scan.d.mts.map +0 -1
  641. package/dist/types/commands/scan/output-list-scans.d.mts.map +0 -1
  642. package/dist/types/commands/scan/output-scan-config-result.d.mts.map +0 -1
  643. package/dist/types/commands/scan/output-scan-github.d.mts.map +0 -1
  644. package/dist/types/commands/scan/output-scan-metadata.d.mts.map +0 -1
  645. package/dist/types/commands/scan/output-scan-reach.d.mts.map +0 -1
  646. package/dist/types/commands/scan/output-scan-report.d.mts.map +0 -1
  647. package/dist/types/commands/scan/output-scan-view.d.mts.map +0 -1
  648. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +0 -1
  649. package/dist/types/commands/scan/reach-advisories.d.mts.map +0 -1
  650. package/dist/types/commands/scan/reachability-flags.d.mts.map +0 -1
  651. package/dist/types/commands/scan/reachability-units.d.mts.map +0 -1
  652. package/dist/types/commands/scan/run-dynamic-sbom-inference.d.mts.map +0 -1
  653. package/dist/types/commands/scan/setup-scan-config.d.mts.map +0 -1
  654. package/dist/types/commands/scan/stream-scan.d.mts.map +0 -1
  655. package/dist/types/commands/scan/suggest-org-slug.d.mts.map +0 -1
  656. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts.map +0 -1
  657. package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +0 -1
  658. package/dist/types/commands/scan/suggest_target.d.mts.map +0 -1
  659. package/dist/types/commands/scan/types.d.mts.map +0 -1
  660. package/dist/types/commands/scan/validate-reachability-target.d.mts.map +0 -1
  661. package/dist/types/commands/scan/warn-socket-json-only-flags.d.mts.map +0 -1
  662. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +0 -1
  663. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +0 -1
  664. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +0 -1
  665. package/dist/types/commands/threat-feed/output-threat-feed.d.mts.map +0 -1
  666. package/dist/types/commands/threat-feed/types.d.mts.map +0 -1
  667. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +0 -1
  668. package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +0 -1
  669. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +0 -1
  670. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +0 -1
  671. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +0 -1
  672. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts.map +0 -1
  673. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts.map +0 -1
  674. package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +0 -1
  675. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +0 -1
  676. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts.map +0 -1
  677. package/dist/types/commands/yarn/cmd-yarn.d.mts.map +0 -1
  678. package/dist/types/commands.d.mts.map +0 -1
  679. package/dist/types/constants.d.mts.map +0 -1
  680. package/dist/types/flags.d.mts.map +0 -1
  681. package/dist/types/instrument-with-sentry.d.mts.map +0 -1
  682. package/dist/types/npm-cli.d.mts.map +0 -1
  683. package/dist/types/npx-cli.d.mts.map +0 -1
  684. package/dist/types/pnpm-cli.d.mts.map +0 -1
  685. package/dist/types/sea/bootstrap.d.mts.map +0 -1
  686. package/dist/types/sea/build-sea.d.mts.map +0 -1
  687. package/dist/types/shadow/common.d.mts.map +0 -1
  688. package/dist/types/shadow/npm/arborist/index.d.mts.map +0 -1
  689. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +0 -1
  690. package/dist/types/shadow/npm/arborist/types.d.mts.map +0 -1
  691. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +0 -1
  692. package/dist/types/shadow/npm/bin.d.mts.map +0 -1
  693. package/dist/types/shadow/npm/inject.d.mts.map +0 -1
  694. package/dist/types/shadow/npm/install.d.mts.map +0 -1
  695. package/dist/types/shadow/npm/paths.d.mts.map +0 -1
  696. package/dist/types/shadow/npm-base.d.mts.map +0 -1
  697. package/dist/types/shadow/npx/bin.d.mts.map +0 -1
  698. package/dist/types/shadow/pnpm/bin.d.mts.map +0 -1
  699. package/dist/types/shadow/stdio-ipc.d.mts.map +0 -1
  700. package/dist/types/shadow/yarn/bin.d.mts.map +0 -1
  701. package/dist/types/test/json-output-validation.d.mts.map +0 -1
  702. package/dist/types/test/mocks/socket-auth.d.mts.map +0 -1
  703. package/dist/types/types.d.mts.map +0 -1
  704. package/dist/types/utils/advisory-ids.d.mts.map +0 -1
  705. package/dist/types/utils/agent.d.mts.map +0 -1
  706. package/dist/types/utils/alert/artifact.d.mts.map +0 -1
  707. package/dist/types/utils/alert/fix.d.mts.map +0 -1
  708. package/dist/types/utils/alert/severity.d.mts.map +0 -1
  709. package/dist/types/utils/alerts-map.d.mts.map +0 -1
  710. package/dist/types/utils/api-transport.d.mts.map +0 -1
  711. package/dist/types/utils/api.d.mts.map +0 -1
  712. package/dist/types/utils/check-input.d.mts.map +0 -1
  713. package/dist/types/utils/cmd.d.mts.map +0 -1
  714. package/dist/types/utils/coana-release.d.mts.map +0 -1
  715. package/dist/types/utils/coana.d.mts.map +0 -1
  716. package/dist/types/utils/color-or-markdown.d.mts.map +0 -1
  717. package/dist/types/utils/completion.d.mts.map +0 -1
  718. package/dist/types/utils/config.d.mts.map +0 -1
  719. package/dist/types/utils/cve-to-ghsa.d.mts.map +0 -1
  720. package/dist/types/utils/debug.d.mts.map +0 -1
  721. package/dist/types/utils/determine-org-slug.d.mts.map +0 -1
  722. package/dist/types/utils/dlx-binary.d.mts +0 -58
  723. package/dist/types/utils/dlx-binary.d.mts.map +0 -1
  724. package/dist/types/utils/dlx-detection.d.mts.map +0 -1
  725. package/dist/types/utils/dlx.d.mts.map +0 -1
  726. package/dist/types/utils/ecosystem.d.mts.map +0 -1
  727. package/dist/types/utils/editable-json.d.mts.map +0 -1
  728. package/dist/types/utils/errors.d.mts.map +0 -1
  729. package/dist/types/utils/extract-names.d.mts.map +0 -1
  730. package/dist/types/utils/fail-msg-with-badge.d.mts.map +0 -1
  731. package/dist/types/utils/filter-config.d.mts.map +0 -1
  732. package/dist/types/utils/fs.d.mts.map +0 -1
  733. package/dist/types/utils/get-or-insert.d.mts.map +0 -1
  734. package/dist/types/utils/get-output-kind.d.mts.map +0 -1
  735. package/dist/types/utils/git.d.mts.map +0 -1
  736. package/dist/types/utils/github-errors.d.mts.map +0 -1
  737. package/dist/types/utils/github.d.mts.map +0 -1
  738. package/dist/types/utils/glob.d.mts.map +0 -1
  739. package/dist/types/utils/lockfile.d.mts.map +0 -1
  740. package/dist/types/utils/map-to-object.d.mts.map +0 -1
  741. package/dist/types/utils/markdown.d.mts.map +0 -1
  742. package/dist/types/utils/meow-with-subcommands.d.mts.map +0 -1
  743. package/dist/types/utils/ms-at-home.d.mts.map +0 -1
  744. package/dist/types/utils/npm-config.d.mts.map +0 -1
  745. package/dist/types/utils/npm-package-arg.d.mts.map +0 -1
  746. package/dist/types/utils/npm-paths.d.mts.map +0 -1
  747. package/dist/types/utils/npm-spec.d.mts.map +0 -1
  748. package/dist/types/utils/oauth.d.mts.map +0 -1
  749. package/dist/types/utils/objects.d.mts.map +0 -1
  750. package/dist/types/utils/organization.d.mts.map +0 -1
  751. package/dist/types/utils/output-formatting.d.mts.map +0 -1
  752. package/dist/types/utils/package-environment.d.mts.map +0 -1
  753. package/dist/types/utils/package-manager.d.mts.map +0 -1
  754. package/dist/types/utils/path-resolve.d.mts.map +0 -1
  755. package/dist/types/utils/pnpm-paths.d.mts.map +0 -1
  756. package/dist/types/utils/pnpm.d.mts.map +0 -1
  757. package/dist/types/utils/purl-to-ghsa.d.mts.map +0 -1
  758. package/dist/types/utils/purl.d.mts.map +0 -1
  759. package/dist/types/utils/requirements.d.mts.map +0 -1
  760. package/dist/types/utils/sdk.d.mts.map +0 -1
  761. package/dist/types/utils/self-update.d.mts.map +0 -1
  762. package/dist/types/utils/semver.d.mts.map +0 -1
  763. package/dist/types/utils/serialize-result-json.d.mts.map +0 -1
  764. package/dist/types/utils/shadow-links.d.mts.map +0 -1
  765. package/dist/types/utils/socket-json.d.mts.map +0 -1
  766. package/dist/types/utils/socket-package-alert.d.mts.map +0 -1
  767. package/dist/types/utils/socket-url.d.mts.map +0 -1
  768. package/dist/types/utils/spec.d.mts.map +0 -1
  769. package/dist/types/utils/strings.d.mts.map +0 -1
  770. package/dist/types/utils/telemetry/integration.d.mts.map +0 -1
  771. package/dist/types/utils/telemetry/service.d.mts.map +0 -1
  772. package/dist/types/utils/telemetry/types.d.mts.map +0 -1
  773. package/dist/types/utils/terminal-link.d.mts.map +0 -1
  774. package/dist/types/utils/tildify.d.mts.map +0 -1
  775. package/dist/types/utils/translations.d.mts.map +0 -1
  776. package/dist/types/utils/walk-nested-map.d.mts.map +0 -1
  777. package/dist/types/utils/yarn-paths.d.mts.map +0 -1
  778. package/dist/types/utils/yarn-version.d.mts.map +0 -1
  779. package/dist/types/yarn-cli.d.mts.map +0 -1
@@ -4,4 +4,3 @@
4
4
  * dropping it would leave that advisory without reachability analysis.
5
5
  */
6
6
  export declare function resolveReachAdvisories(ids: readonly string[]): Promise<string[]>;
7
- //# sourceMappingURL=reach-advisories.d.mts.map
@@ -11,4 +11,3 @@ export declare function parseDynamicSbomInferenceFlags(flags: {
11
11
  }): FactsOnlyTypes | undefined;
12
12
  export declare const reachabilityFlags: MeowFlags;
13
13
  export declare const excludePathsFlag: MeowFlags;
14
- //# sourceMappingURL=reachability-flags.d.mts.map
@@ -15,4 +15,3 @@ export declare function isOmittedReachValue(value: string): boolean;
15
15
  // detection, not validation, so an unrecognized value resolves to null and is
16
16
  // simply treated as "not a non-default value".
17
17
  export declare function reachMemoryLimitToMb(value: string): number | null;
18
- //# sourceMappingURL=reachability-units.d.mts.map
@@ -5,6 +5,8 @@ import type { ResolvedPathsSidecar } from '../manifest/scripts/sidecar.mts';
5
5
  // artifact paths), or only the scan upload.
6
6
  export type FactsConsumer = 'fix' | 'reach' | 'upload';
7
7
  export type DynamicSbomInferenceResult = {
8
+ // Facts files of dropped runs, which the scan must not collect.
9
+ discardedFactsPaths: string[];
8
10
  // Each discovered build root's purl type, generated or not: Coana takes
9
11
  // these types' artifacts only from facts files.
10
12
  factsOnlyTypes: FactsOnlyTypes;
@@ -25,4 +27,6 @@ export declare function runDynamicSbomInference({ consumer, cwd, excludePaths, p
25
27
  // Only meaningful for `reach`.
26
28
  sbtTmpDir: string | undefined;
27
29
  }): Promise<DynamicSbomInferenceResult>;
28
- //# sourceMappingURL=run-dynamic-sbom-inference.d.mts.map
30
+ // `paths` without the facts files discovery discarded: each holds what was
31
+ // there before the scan, or a dropped run's facts, not a kept build's.
32
+ export declare function withoutDiscardedFacts(paths: string[], discarded: readonly string[] | undefined): Promise<string[]>;
@@ -1,3 +1,2 @@
1
1
  import type { CResult } from '../../types.mts';
2
2
  export declare function setupScanConfig(cwd: string, defaultOnReadError?: boolean): Promise<CResult<unknown>>;
3
- //# sourceMappingURL=setup-scan-config.d.mts.map
@@ -6,4 +6,3 @@ export type StreamScanOptions = {
6
6
  sdkOpts?: SetupSdkOptions | undefined;
7
7
  };
8
8
  export declare function streamScan(orgSlug: string, scanId: string, options?: StreamScanOptions | undefined): Promise<CResult<SocketSdkSuccessResult<'getOrgFullScan'>['data']>>;
9
- //# sourceMappingURL=stream-scan.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function suggestOrgSlug(): Promise<string | void>;
2
- //# sourceMappingURL=suggest-org-slug.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function suggestToPersistOrgSlug(orgSlug: string): Promise<void>;
2
- //# sourceMappingURL=suggest-to-persist-orgslug.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function suggestBranchSlug(repoDefaultBranch: string | undefined): Promise<string | void>;
2
- //# sourceMappingURL=suggest_branch_slug.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function suggestTarget(): Promise<string[]>;
2
- //# sourceMappingURL=suggest_target.d.mts.map
@@ -1,3 +1,2 @@
1
1
  export type FOLD_SETTING = 'pkg' | 'version' | 'file' | 'none';
2
2
  export type REPORT_LEVEL = 'defer' | 'ignore' | 'monitor' | 'warn' | 'error';
3
- //# sourceMappingURL=types.d.mts.map
@@ -12,4 +12,3 @@ export type ReachabilityTargetValidation = {
12
12
  * @returns Validation result object with boolean flags.
13
13
  */
14
14
  export declare function validateReachabilityTarget(targets: string[], cwd: string): Promise<ReachabilityTargetValidation>;
15
- //# sourceMappingURL=validate-reachability-target.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function warnSocketJsonOnlyFlags(flags: Record<string, unknown>, command: string): void;
2
- //# sourceMappingURL=warn-socket-json-only-flags.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdThreatFeed: {
7
7
  };
8
8
  declare function run(argv: readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-threat-feed.d.mts.map
@@ -10,4 +10,3 @@ export declare function fetchThreatFeed({ direction, ecosystem, filter, orgSlug,
10
10
  pkg: string;
11
11
  version: string;
12
12
  }): Promise<CResult<ThreadFeedResponse>>;
13
- //# sourceMappingURL=fetch-threat-feed.d.mts.map
@@ -10,4 +10,3 @@ export declare function handleThreatFeed({ direction, ecosystem, filter, orgSlug
10
10
  pkg: string;
11
11
  version: string;
12
12
  }): Promise<void>;
13
- //# sourceMappingURL=handle-threat-feed.d.mts.map
@@ -1,4 +1,3 @@
1
1
  import type { ThreadFeedResponse } from './types.mts';
2
2
  import type { CResult, OutputKind } from '../../types.mts';
3
3
  export declare function outputThreatFeed(result: CResult<ThreadFeedResponse>, outputKind: OutputKind): Promise<void>;
4
- //# sourceMappingURL=output-threat-feed.d.mts.map
@@ -12,4 +12,3 @@ export type ThreatResult = {
12
12
  removedAt: string | null;
13
13
  threatType: string;
14
14
  };
15
- //# sourceMappingURL=types.d.mts.map
@@ -5,4 +5,3 @@ export declare const cmdUninstallCompletion: {
5
5
  run: typeof run;
6
6
  };
7
7
  export declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
8
- //# sourceMappingURL=cmd-uninstall-completion.d.mts.map
@@ -1,3 +1,2 @@
1
1
  import type { CliSubcommand } from '../../utils/meow-with-subcommands.mts';
2
2
  export declare const cmdUninstall: CliSubcommand;
3
- //# sourceMappingURL=cmd-uninstall.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function handleUninstallCompletion(targetName: string): Promise<void>;
2
- //# sourceMappingURL=handle-uninstall-completion.d.mts.map
@@ -3,4 +3,3 @@ export declare function outputUninstallCompletion(result: CResult<{
3
3
  action: string;
4
4
  left: string[];
5
5
  }>, targetName: string): Promise<void>;
6
- //# sourceMappingURL=output-uninstall-completion.d.mts.map
@@ -3,4 +3,3 @@ export declare function teardownTabCompletion(targetName: string): Promise<CResu
3
3
  action: string;
4
4
  left: string[];
5
5
  }>>;
6
- //# sourceMappingURL=teardown-tab-completion.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function addSocketWrapper(file: string): void;
2
- //# sourceMappingURL=add-socket-wrapper.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function checkSocketWrapperSetup(file: string): boolean;
2
- //# sourceMappingURL=check-socket-wrapper-setup.d.mts.map
@@ -6,4 +6,3 @@ export declare const cmdWrapper: {
6
6
  };
7
7
  declare function run(argv: readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
8
8
  export {};
9
- //# sourceMappingURL=cmd-wrapper.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function postinstallWrapper(): Promise<void>;
2
- //# sourceMappingURL=postinstall-wrapper.d.mts.map
@@ -1,2 +1 @@
1
1
  export declare function removeSocketWrapper(filepath: string): void;
2
- //# sourceMappingURL=remove-socket-wrapper.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdYarn: {
7
7
  };
8
8
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, context: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-yarn.d.mts.map
@@ -200,4 +200,3 @@ export declare const rootAliases: {
200
200
  argv: string[];
201
201
  };
202
202
  };
203
- //# sourceMappingURL=commands.d.mts.map
@@ -1,7 +1,7 @@
1
1
  import registryConstants from '@socketsecurity/registry/lib/constants';
2
2
  import type { Agent } from './utils/package-environment.mts';
3
3
  import type { Remap } from '@socketsecurity/registry/lib/objects';
4
- declare const AT_LATEST: "@latest", BIOME_JSON: "biome.json", BUN: "bun", CI: "CI", COLUMN_LIMIT: 80, DOT_GIT_DIR: ".git", DOT_SOCKET_DIR: ".socket", EMPTY_FILE: "/* empty */\n", EMPTY_VALUE: "<value>", ESLINT_CONFIG_JS: "eslint.config.js", ESNEXT: "esnext", EXT_CJS: ".cjs", EXT_CMD: ".cmd", EXT_CTS: ".cts", EXT_DTS: ".d.ts", EXT_JS: ".js", EXT_JSON: ".json", EXT_LOCK: ".lock", EXT_LOCKB: ".lockb", EXT_MD: ".md", EXT_MJS: ".mjs", EXT_MTS: ".mts", EXT_PS1: ".ps1", EXT_YAML: ".yaml", EXT_YML: ".yml", EXTENSIONS: "extensions", EXTENSIONS_JSON: "extensions.json", GITIGNORE: ".gitignore", DOT_PACKAGE_LOCK_JSON: ".package-lock.json", LATEST: "latest", LICENSE: "LICENSE", LICENSE_GLOB: "LICEN[CS]E{[.-]*,}", LICENSE_GLOB_RECURSIVE: "**/LICEN[CS]E{[.-]*,}", LICENSE_ORIGINAL: "LICENSE.original", LICENSE_ORIGINAL_GLOB: "*.original{.*,}", LICENSE_ORIGINAL_GLOB_RECURSIVE: "**/*.original{.*,}", LOOP_SENTINEL: 1000000, MANIFEST_JSON: "manifest.json", MIT: "MIT", NODE_AUTH_TOKEN: "NODE_AUTH_TOKEN", NODE_ENV: "NODE_ENV", NODE_MODULES: "node_modules", NODE_MODULES_GLOB_RECURSIVE: "**/node_modules", NPM: "npm", NPX: "npx", OVERRIDES: "overrides", PACKAGE_DEFAULT_VERSION: "1.0.0", PACKAGE_JSON: "package.json", PACKAGE_LOCK_JSON: "package-lock.json", PNPM: "pnpm", PNPM_LOCK_YAML: "pnpm-lock.yaml", PRE_COMMIT: "PRE_COMMIT", README_GLOB: "README{.*,}", README_GLOB_RECURSIVE: "**/README{.*,}", REGISTRY_SCOPE_DELIMITER: "__", README_MD: "README.md", REGISTRY: "registry", RESOLUTIONS: "resolutions", SOCKET_GITHUB_ORG: "SocketDev", SOCKET_IPC_HANDSHAKE: "SOCKET_IPC_HANDSHAKE", SOCKET_OVERRIDE_SCOPE: "@socketoverride", SOCKET_PUBLIC_API_TOKEN: string, SOCKET_REGISTRY_NPM_ORG: "socketregistry", SOCKET_REGISTRY_PACKAGE_NAME: "@socketsecurity/registry", SOCKET_REGISTRY_REPO_NAME: "socket-registry", SOCKET_REGISTRY_SCOPE: "@socketregistry", SOCKET_SECURITY_SCOPE: "@socketsecurity", TSCONFIG_JSON: "tsconfig.json", UNKNOWN_ERROR: "Unknown error", UNKNOWN_VALUE: "<unknown>", UNLICENCED: "UNLICENCED", UNLICENSED: "UNLICENSED", UTF8: "utf8", VITEST: "VITEST", VLT: "vlt", YARN: "yarn", YARN_BERRY: "yarn/berry", YARN_CLASSIC: "yarn/classic", YARN_LOCK: "yarn.lock";
4
+ declare const AT_LATEST: "@latest", BIOME_JSON: "biome.json", BUN: "bun", CI: "CI", COLUMN_LIMIT: 80, DOT_GIT_DIR: ".git", DOT_PACKAGE_LOCK_JSON: ".package-lock.json", DOT_SOCKET_DIR: ".socket", EMPTY_FILE: "/* empty */\n", EMPTY_VALUE: "<value>", ESLINT_CONFIG_JS: "eslint.config.js", ESNEXT: "esnext", EXT_CJS: ".cjs", EXT_CMD: ".cmd", EXT_CTS: ".cts", EXT_DTS: ".d.ts", EXT_JS: ".js", EXT_JSON: ".json", EXT_LOCK: ".lock", EXT_LOCKB: ".lockb", EXT_MD: ".md", EXT_MJS: ".mjs", EXT_MTS: ".mts", EXT_PS1: ".ps1", EXT_YAML: ".yaml", EXT_YML: ".yml", EXTENSIONS: "extensions", EXTENSIONS_JSON: "extensions.json", GITIGNORE: ".gitignore", LATEST: "latest", LICENSE: "LICENSE", LICENSE_GLOB: "LICEN[CS]E{[.-]*,}", LICENSE_GLOB_RECURSIVE: "**/LICEN[CS]E{[.-]*,}", LICENSE_ORIGINAL: "LICENSE.original", LICENSE_ORIGINAL_GLOB: "*.original{.*,}", LICENSE_ORIGINAL_GLOB_RECURSIVE: "**/*.original{.*,}", LOOP_SENTINEL: 1000000, MANIFEST_JSON: "manifest.json", MIT: "MIT", NODE_AUTH_TOKEN: "NODE_AUTH_TOKEN", NODE_ENV: "NODE_ENV", NODE_MODULES: "node_modules", NODE_MODULES_GLOB_RECURSIVE: "**/node_modules", NPM: "npm", NPX: "npx", OVERRIDES: "overrides", PACKAGE_DEFAULT_VERSION: "1.0.0", PACKAGE_JSON: "package.json", PACKAGE_LOCK_JSON: "package-lock.json", PNPM: "pnpm", PNPM_LOCK_YAML: "pnpm-lock.yaml", PRE_COMMIT: "PRE_COMMIT", README_GLOB: "README{.*,}", README_GLOB_RECURSIVE: "**/README{.*,}", README_MD: "README.md", REGISTRY: "registry", REGISTRY_SCOPE_DELIMITER: "__", RESOLUTIONS: "resolutions", SOCKET_GITHUB_ORG: "SocketDev", SOCKET_IPC_HANDSHAKE: "SOCKET_IPC_HANDSHAKE", SOCKET_OVERRIDE_SCOPE: "@socketoverride", SOCKET_PUBLIC_API_TOKEN: string, SOCKET_REGISTRY_NPM_ORG: "socketregistry", SOCKET_REGISTRY_PACKAGE_NAME: "@socketsecurity/registry", SOCKET_REGISTRY_REPO_NAME: "socket-registry", SOCKET_REGISTRY_SCOPE: "@socketregistry", SOCKET_SECURITY_SCOPE: "@socketsecurity", TSCONFIG_JSON: "tsconfig.json", UNKNOWN_ERROR: "Unknown error", UNKNOWN_VALUE: "<unknown>", UNLICENCED: "UNLICENCED", UNLICENSED: "UNLICENSED", UTF8: "utf8", VITEST: "VITEST", VLT: "vlt", YARN: "yarn", YARN_BERRY: "yarn/berry", YARN_CLASSIC: "yarn/classic", YARN_LOCK: "yarn.lock";
5
5
  export type RegistryEnv = typeof registryConstants.ENV;
6
6
  export type RegistryInternals = (typeof registryConstants)['Symbol(kInternalsSymbol)'];
7
7
  export type Sentry = any;
@@ -50,6 +50,7 @@ export type ENV = Remap<RegistryEnv & Readonly<{
50
50
  SOCKET_CLI_NO_API_TOKEN: boolean;
51
51
  SOCKET_CLI_NPM_PATH: string;
52
52
  SOCKET_CLI_ORG_SLUG: string;
53
+ SOCKET_CLI_SOCKET_PATCH_PATH: string;
53
54
  SOCKET_CLI_VIEW_ALL_RISKS: boolean;
54
55
  SOCKET_PATCH_PROXY_URL: string;
55
56
  TERM: string;
@@ -75,7 +76,7 @@ declare const ALERT_TYPE_MILD_CVE = "mildCVE";
75
76
  declare const API_V0_URL = "https://api.socket.dev/v0/";
76
77
  // The Coana CLI version Socket CLI runs by default. Coana's release workflow
77
78
  // rewrites this line in its bump PRs.
78
- declare const COANA_CLI_VERSION = "15.15.0";
79
+ declare const COANA_CLI_VERSION = "15.15.2";
79
80
  declare const CONFIG_KEY_API_BASE_URL = "apiBaseUrl";
80
81
  declare const CONFIG_KEY_API_PROXY = "apiProxy";
81
82
  declare const CONFIG_KEY_API_TOKEN = "apiToken";
@@ -86,7 +87,6 @@ declare const CONFIG_KEY_ORG = "org";
86
87
  // The Socket facts filename. The file itself is generated by the Coana CLI's
87
88
  // `manifest` commands; this constant must match the filename Coana emits.
88
89
  declare const DOT_SOCKET_DOT_FACTS_JSON: string;
89
- declare const DLX_BINARY_CACHE_TTL: number; // 7 days in milliseconds.
90
90
  declare const DRY_RUN_LABEL = "[DryRun]";
91
91
  declare const DRY_RUN_BAILING_NOW = "[DryRun]: Bailing now";
92
92
  declare const DRY_RUN_NOT_SAVING = "[DryRun]: Not saving";
@@ -140,6 +140,8 @@ declare const REPORT_LEVEL_MONITOR = "monitor";
140
140
  declare const REPORT_LEVEL_WARN = "warn";
141
141
  declare const REQUIREMENTS_TXT = "requirements.txt";
142
142
  declare const SOCKET_CLI_ACCEPT_RISKS = "SOCKET_CLI_ACCEPT_RISKS";
143
+ // The variables socket-cli reads the Socket API token from, first one first.
144
+ declare const SOCKET_CLI_API_TOKEN_VARIABLES: readonly ["SOCKET_CLI_API_TOKEN", "SOCKET_CLI_API_KEY", "SOCKET_SECURITY_API_TOKEN", "SOCKET_SECURITY_API_KEY"];
143
145
  declare const SOCKET_CLI_BIN_NAME = "socket";
144
146
  declare const SOCKET_CLI_ISSUES_URL = "https://github.com/SocketDev/socket-cli/issues";
145
147
  declare const SOCKET_CLI_SHADOW_ACCEPT_RISKS = "SOCKET_CLI_SHADOW_ACCEPT_RISKS";
@@ -174,7 +176,6 @@ export type Constants = Remap<Omit<typeof registryConstants, 'Symbol(kInternalsS
174
176
  readonly CONFIG_KEY_ORG: typeof CONFIG_KEY_ORG;
175
177
  readonly DOT_GIT_DIR: typeof DOT_GIT_DIR;
176
178
  readonly DOT_SOCKET_DIR: typeof DOT_SOCKET_DIR;
177
- readonly DLX_BINARY_CACHE_TTL: typeof DLX_BINARY_CACHE_TTL;
178
179
  readonly DOT_SOCKET_DOT_FACTS_JSON: typeof DOT_SOCKET_DOT_FACTS_JSON;
179
180
  readonly DRY_RUN_BAILING_NOW: typeof DRY_RUN_BAILING_NOW;
180
181
  readonly DRY_RUN_LABEL: typeof DRY_RUN_LABEL;
@@ -301,11 +302,11 @@ export type Constants = Remap<Omit<typeof registryConstants, 'Symbol(kInternalsS
301
302
  readonly socketRegistryPath: string;
302
303
  readonly zshRcPath: string;
303
304
  }>;
305
+ export declare function resolveBlessedTerm(term: string | undefined, win32: boolean): string;
304
306
  declare const constants: Constants;
305
307
  export {
306
308
  // Re-exported from socket-registry.
307
309
  AT_LATEST, BIOME_JSON, BUN, CI, COLUMN_LIMIT, DOT_GIT_DIR, DOT_PACKAGE_LOCK_JSON, DOT_SOCKET_DIR, EMPTY_FILE, EMPTY_VALUE, ESLINT_CONFIG_JS, ESNEXT, EXTENSIONS, EXTENSIONS_JSON, EXT_CJS, EXT_CMD, EXT_CTS, EXT_DTS, EXT_JS, EXT_JSON, EXT_LOCK, EXT_LOCKB, EXT_MD, EXT_MJS, EXT_MTS, EXT_PS1, EXT_YAML, EXT_YML, GITIGNORE, LATEST, LICENSE, LICENSE_GLOB, LICENSE_GLOB_RECURSIVE, LICENSE_ORIGINAL, LICENSE_ORIGINAL_GLOB, LICENSE_ORIGINAL_GLOB_RECURSIVE, LOOP_SENTINEL, MANIFEST_JSON, MIT, NODE_AUTH_TOKEN, NODE_ENV, NODE_MODULES, NODE_MODULES_GLOB_RECURSIVE, NPM, NPX, OVERRIDES, PACKAGE_DEFAULT_VERSION, PACKAGE_JSON, PACKAGE_LOCK_JSON, PNPM, PNPM_LOCK_YAML, PRE_COMMIT, README_GLOB, README_GLOB_RECURSIVE, README_MD, REGISTRY, REGISTRY_SCOPE_DELIMITER, RESOLUTIONS, SOCKET_GITHUB_ORG, SOCKET_IPC_HANDSHAKE, SOCKET_OVERRIDE_SCOPE, SOCKET_PUBLIC_API_TOKEN, SOCKET_REGISTRY_NPM_ORG, SOCKET_REGISTRY_PACKAGE_NAME, SOCKET_REGISTRY_REPO_NAME, SOCKET_REGISTRY_SCOPE, SOCKET_SECURITY_SCOPE, TSCONFIG_JSON, UNKNOWN_ERROR, UNKNOWN_VALUE, UNLICENCED, UNLICENSED, UTF8, VITEST, VLT, YARN, YARN_BERRY, YARN_CLASSIC, YARN_LOCK,
308
310
  // Socket CLI specific constants.
309
- ALERT_TYPE_CRITICAL_CVE, ALERT_TYPE_CVE, ALERT_TYPE_MEDIUM_CVE, ALERT_TYPE_MILD_CVE, API_V0_URL, COANA_CLI_VERSION, CONFIG_KEY_API_BASE_URL, CONFIG_KEY_API_PROXY, CONFIG_KEY_API_TOKEN, CONFIG_KEY_AUTH_TYPE, CONFIG_KEY_DEFAULT_ORG, CONFIG_KEY_ENFORCED_ORGS, CONFIG_KEY_ORG, DLX_BINARY_CACHE_TTL, DOT_SOCKET_DOT_FACTS_JSON, DRY_RUN_BAILING_NOW, DRY_RUN_LABEL, DRY_RUN_NOT_SAVING, ENVIRONMENT_YAML, ENVIRONMENT_YML, ERROR_NO_MANIFEST_FILES, ERROR_NO_PACKAGE_JSON, ERROR_NO_REPO_FOUND, ERROR_NO_SOCKET_DIR, ERROR_UNABLE_RESOLVE_ORG, FLAG_CONFIG, FLAG_DRY_RUN, FLAG_HELP, FLAG_HELP_FULL, FLAG_ID, FLAG_JSON, FLAG_LOGLEVEL, FLAG_MARKDOWN, FLAG_ORG, FLAG_PIN, FLAG_PROD, FLAG_QUIET, FLAG_SILENT, FLAG_TEXT, FLAG_VERBOSE, FLAG_VERSION, FOLD_SETTING_FILE, FOLD_SETTING_NONE, FOLD_SETTING_PKG, FOLD_SETTING_VERSION, GQL_PAGE_SENTINEL, GQL_PR_STATE_CLOSED, GQL_PR_STATE_MERGED, GQL_PR_STATE_OPEN, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_UNAUTHORIZED, NPM_BUGGY_OVERRIDES_PATCHED_VERSION, NPM_REGISTRY_URL, OUTPUT_JSON, OUTPUT_MARKDOWN, OUTPUT_TEXT, PNPM_WORKSPACE_YAML, REDACTED, REPORT_LEVEL_DEFER, REPORT_LEVEL_ERROR, REPORT_LEVEL_IGNORE, REPORT_LEVEL_MONITOR, REPORT_LEVEL_WARN, REQUIREMENTS_TXT, SCAN_TYPE_SOCKET, SCAN_TYPE_SOCKET_TIER1, SOCKET_CLI_ACCEPT_RISKS, SOCKET_CLI_BIN_NAME, SOCKET_CLI_ISSUES_URL, SOCKET_CLI_SHADOW_ACCEPT_RISKS, SOCKET_CLI_SHADOW_API_TOKEN, SOCKET_CLI_SHADOW_BIN, SOCKET_CLI_SHADOW_PROGRESS, SOCKET_CLI_SHADOW_SILENT, SOCKET_CLI_VIEW_ALL_RISKS, SOCKET_DEFAULT_BRANCH, SOCKET_DEFAULT_REPOSITORY, SOCKET_JSON, SOCKET_WEBSITE_URL, SOCKET_YAML, SOCKET_YML, V1_MIGRATION_GUIDE_URL, };
311
+ ALERT_TYPE_CRITICAL_CVE, ALERT_TYPE_CVE, ALERT_TYPE_MEDIUM_CVE, ALERT_TYPE_MILD_CVE, API_V0_URL, COANA_CLI_VERSION, CONFIG_KEY_API_BASE_URL, CONFIG_KEY_API_PROXY, CONFIG_KEY_API_TOKEN, CONFIG_KEY_AUTH_TYPE, CONFIG_KEY_DEFAULT_ORG, CONFIG_KEY_ENFORCED_ORGS, CONFIG_KEY_ORG, DOT_SOCKET_DOT_FACTS_JSON, DRY_RUN_BAILING_NOW, DRY_RUN_LABEL, DRY_RUN_NOT_SAVING, ENVIRONMENT_YAML, ENVIRONMENT_YML, ERROR_NO_MANIFEST_FILES, ERROR_NO_PACKAGE_JSON, ERROR_NO_REPO_FOUND, ERROR_NO_SOCKET_DIR, ERROR_UNABLE_RESOLVE_ORG, FLAG_CONFIG, FLAG_DRY_RUN, FLAG_HELP, FLAG_HELP_FULL, FLAG_ID, FLAG_JSON, FLAG_LOGLEVEL, FLAG_MARKDOWN, FLAG_ORG, FLAG_PIN, FLAG_PROD, FLAG_QUIET, FLAG_SILENT, FLAG_TEXT, FLAG_VERBOSE, FLAG_VERSION, FOLD_SETTING_FILE, FOLD_SETTING_NONE, FOLD_SETTING_PKG, FOLD_SETTING_VERSION, GQL_PAGE_SENTINEL, GQL_PR_STATE_CLOSED, GQL_PR_STATE_MERGED, GQL_PR_STATE_OPEN, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_UNAUTHORIZED, NPM_BUGGY_OVERRIDES_PATCHED_VERSION, NPM_REGISTRY_URL, OUTPUT_JSON, OUTPUT_MARKDOWN, OUTPUT_TEXT, PNPM_WORKSPACE_YAML, REDACTED, REPORT_LEVEL_DEFER, REPORT_LEVEL_ERROR, REPORT_LEVEL_IGNORE, REPORT_LEVEL_MONITOR, REPORT_LEVEL_WARN, REQUIREMENTS_TXT, SCAN_TYPE_SOCKET, SCAN_TYPE_SOCKET_TIER1, SOCKET_CLI_ACCEPT_RISKS, SOCKET_CLI_API_TOKEN_VARIABLES, SOCKET_CLI_BIN_NAME, SOCKET_CLI_ISSUES_URL, SOCKET_CLI_SHADOW_ACCEPT_RISKS, SOCKET_CLI_SHADOW_API_TOKEN, SOCKET_CLI_SHADOW_BIN, SOCKET_CLI_SHADOW_PROGRESS, SOCKET_CLI_SHADOW_SILENT, SOCKET_CLI_VIEW_ALL_RISKS, SOCKET_DEFAULT_BRANCH, SOCKET_DEFAULT_REPOSITORY, SOCKET_JSON, SOCKET_WEBSITE_URL, SOCKET_YAML, SOCKET_YML, V1_MIGRATION_GUIDE_URL, };
310
312
  export default constants;
311
- //# sourceMappingURL=constants.d.mts.map
@@ -15,4 +15,3 @@ export declare function getMaxSemiSpaceSizeFlag(): number;
15
15
  export declare const commonFlags: MeowFlags;
16
16
  export declare const outputFlags: MeowFlags;
17
17
  export declare const validationFlags: MeowFlags;
18
- //# sourceMappingURL=flags.d.mts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=instrument-with-sentry.d.mts.map
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
- //# sourceMappingURL=npm-cli.d.mts.map
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
- //# sourceMappingURL=npx-cli.d.mts.map
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
- //# sourceMappingURL=pnpm-cli.d.mts.map
@@ -0,0 +1,8 @@
1
+ import { EventEmitter } from 'node:events';
2
+ import type { DlxOptions } from '../../utils/dlx.mts';
3
+ import type { EmbeddedToolRunResult } from '../runtime.mts';
4
+ export declare function runCdxgen(projectPath: string, outputPath: string, options?: DlxOptions, beforeExit?: (() => Promise<void>) | undefined): Promise<{
5
+ spawnPromise: Promise<EmbeddedToolRunResult> & {
6
+ process: EventEmitter;
7
+ };
8
+ }>;
@@ -0,0 +1,9 @@
1
+ export interface OwnedPackageLock {
2
+ path: string;
3
+ dev: string;
4
+ ino: string;
5
+ size: number;
6
+ sha256: string;
7
+ }
8
+ export declare function removeOwnedPackageLock(owner: OwnedPackageLock | undefined): Promise<void>;
9
+ export declare function convertYarnClassicToNpmLock(projectPath: string, signal?: AbortSignal): Promise<OwnedPackageLock>;
@@ -0,0 +1,6 @@
1
+ export declare function seaArchivePaths({ hasCdxgen, hasSynp, hasUv, rootFiles }: {
2
+ hasCdxgen: boolean;
3
+ hasSynp: boolean;
4
+ hasUv: boolean;
5
+ rootFiles: string[];
6
+ }): string[];
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=bootstrap.d.mts.map
@@ -0,0 +1,2 @@
1
+ /** Acquire an exclusive directory lock. Existing locks are never removed as stale. */
2
+ export declare function acquireBuildLock(lockPath: string): Promise<() => Promise<void>>;
@@ -0,0 +1,13 @@
1
+ import { promises as fs } from 'node:fs';
2
+ /** Replace an executable and its manifest as one rollback-safe publication. */
3
+ export declare function publishArtifactPair({ operations, outputBinary, outputManifest, stagedBinary, stagedManifest, transactionDirectory }: {
4
+ stagedBinary: string;
5
+ stagedManifest: string;
6
+ outputBinary: string;
7
+ outputManifest: string;
8
+ transactionDirectory: string;
9
+ operations?: {
10
+ rename?: typeof fs.rename;
11
+ rm?: typeof fs.rm;
12
+ };
13
+ }): Promise<void>;
@@ -1,27 +1,17 @@
1
1
  #!/usr/bin/env node
2
- interface BuildTarget {
3
- platform: NodeJS.Platform;
4
- arch: string;
5
- nodeVersion: string;
6
- outputName: string;
7
- }
8
- interface BuildOptions {
9
- platform?: NodeJS.Platform;
2
+ export declare function sha512IntegrityHex(integrity: string): string | undefined;
3
+ export declare function findNodeArchiveSha256(sums: string, archive: string): string | undefined;
4
+ export declare function findLockedPackageIntegrity(lock: string, packageName: string, version: string): string | undefined;
5
+ declare function pinnedNode(target: string): Promise<{
6
+ executable: string;
7
+ licenseFile: string;
8
+ temporaryDirectory?: string;
9
+ }>;
10
+ export declare function parseArgs(argv?: string[], env?: NodeJS.ProcessEnv): {
11
+ platform?: string;
10
12
  arch?: string;
11
- nodeVersion?: string;
12
- outputDir?: string;
13
- }
14
- /**
15
- * Download Node.js binary for a specific platform.
16
- */
17
- declare function downloadNodeBinary(version: string, platform: NodeJS.Platform, arch: string): Promise<string>;
18
- /**
19
- * Build a single target.
20
- */
21
- declare function buildTarget(target: BuildTarget, options: BuildOptions): Promise<void>;
22
- /**
23
- * Main build function.
24
- */
13
+ outputDir: string;
14
+ prototype: boolean;
15
+ };
25
16
  declare function main(): Promise<void>;
26
- export { buildTarget, downloadNodeBinary, main };
27
- //# sourceMappingURL=build-sea.d.mts.map
17
+ export { main, pinnedNode };
@@ -0,0 +1,21 @@
1
+ export type SeaCapability = {
2
+ id: string;
3
+ } | {
4
+ id: string;
5
+ reason: string;
6
+ };
7
+ export type SeaCapabilities = {
8
+ available: string[];
9
+ unavailable: Array<{
10
+ id: string;
11
+ reason: string;
12
+ }>;
13
+ };
14
+ export declare function createSeaCapabilities({ hasCdxgen, hasSocketPatch, hasSynp, hasUv, socketPatchVersion, triple }: {
15
+ triple: string;
16
+ hasCdxgen: boolean;
17
+ hasSynp: boolean;
18
+ hasSocketPatch: boolean;
19
+ hasUv: boolean;
20
+ socketPatchVersion?: string;
21
+ }): SeaCapabilities;
@@ -0,0 +1,14 @@
1
+ type DownloadBytesOptions = {
2
+ fetchOptions?: Omit<NonNullable<Parameters<typeof fetch>[1]>, 'signal'> | undefined;
3
+ maxBytes?: number | undefined;
4
+ timeoutMs?: number | undefined;
5
+ acceptedStatuses?: readonly number[] | undefined;
6
+ };
7
+ export declare function errorMessage(error: unknown): string;
8
+ export declare function isRetryable(error: unknown): boolean;
9
+ export declare function cancelBody(response: Response): Promise<void>;
10
+ export declare function failedDownload(url: string, attempts: number, cause: unknown): Error;
11
+ export declare function waitBeforeRetry(attempt: number): Promise<void>;
12
+ /** Fetch bytes with bounded retries for transient transport failures only. */
13
+ export declare function downloadBytes(url: string, { acceptedStatuses, fetchOptions, maxBytes, timeoutMs }?: DownloadBytesOptions): Promise<Buffer>;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ export type DownloadDigestAlgorithm = 'sha256' | 'sha512';
2
+ export interface CachedDownloadOptions {
3
+ readonly algorithm: DownloadDigestAlgorithm;
4
+ readonly digest: string;
5
+ readonly maxBytes?: number;
6
+ readonly cacheRoot?: string;
7
+ readonly lockTimeoutMs?: number;
8
+ readonly lockPollMs?: number;
9
+ }
10
+ export declare class DownloadIntegrityError extends Error {
11
+ constructor(message: string);
12
+ }
13
+ export declare function validateDownloadDigest(algorithm: DownloadDigestAlgorithm, value: string): string;
14
+ export declare function hashDownloadBytes(bytes: Uint8Array, algorithm: DownloadDigestAlgorithm): string;
15
+ export declare function cachedDownload(_url: string, options: CachedDownloadOptions, fetchBytes: () => Promise<Buffer>): Promise<Buffer>;
@@ -0,0 +1 @@
1
+ export declare const NODE_VERSION: string;
@@ -0,0 +1,4 @@
1
+ export declare const NODE_VERSION_START = "<!-- socket-sea-node-version:start -->";
2
+ export declare const NODE_VERSION_END = "<!-- socket-sea-node-version:end -->";
3
+ export declare function renderSeaReadme(readme: string, nodeVersion: string): string;
4
+ export declare function updateSeaReadmeVersion(readmePath: string, nodeVersion: string): Promise<boolean>;
@@ -0,0 +1,34 @@
1
+ import { type Writable } from 'node:stream';
2
+ import type { StdioOptions } from 'node:child_process';
3
+ /**
4
+ * SEA runtime adapters. Node 27 VFS Workers share the parent PID, so these are
5
+ * for allowlisted JavaScript tools that are compatible with Worker threads;
6
+ * native helpers use getBundledTool() and a real child process instead.
7
+ */
8
+ export interface EmbeddedToolRunOptions {
9
+ cwd?: string | URL | undefined;
10
+ env?: NodeJS.ProcessEnv | undefined;
11
+ /** True (default) merges process.env with env; false uses only defined env entries. */
12
+ inheritEnv?: boolean | undefined;
13
+ /** Explicit Socket metadata for the Worker; this is workerData, not process IPC. */
14
+ ipc?: Readonly<Record<string, string | boolean | undefined>> | undefined;
15
+ stdio?: StdioOptions | undefined;
16
+ stdin?: string | Buffer | NodeJS.ReadableStream | AsyncIterable<string | Uint8Array> | undefined;
17
+ stdout?: Writable | undefined;
18
+ stderr?: Writable | undefined;
19
+ signal?: AbortSignal | undefined;
20
+ }
21
+ export interface EmbeddedToolRunResult {
22
+ code: number | null;
23
+ signal: NodeJS.Signals | null;
24
+ cancelled?: boolean;
25
+ stdout?: string;
26
+ stderr?: string;
27
+ }
28
+ export declare function isStandaloneSea(): boolean;
29
+ export declare function getEmbeddedAsset(id: string): Buffer;
30
+ /** Fail closed unless the build manifest explicitly advertises this tool. */
31
+ export declare function assertEmbeddedToolAvailable(id: 'cdxgen' | 'synp', capability?: 'manifest-cdxgen-npm-lock-v3' | 'manifest-cdxgen-yarn-classic'): void;
32
+ export declare function getBundledTool(id: string): Promise<string>;
33
+ export declare function cleanupBundledTool(filename: string): Promise<void>;
34
+ export declare function runEmbeddedJsTool(id: string, args: readonly string[], options?: EmbeddedToolRunOptions): Promise<EmbeddedToolRunResult>;
@@ -0,0 +1,15 @@
1
+ /** Stage the pinned Synp API, its bundled dependency closure, and licenses. */
2
+ export declare function stageSynp(stageRoot: string, expectedVersion: string): Promise<{
3
+ packageName: string;
4
+ version: string;
5
+ license: string;
6
+ integrity: string;
7
+ fileCount: number;
8
+ noticePackageCount: number;
9
+ obligationCount: number;
10
+ noticeInventorySha256: string;
11
+ noticeDocuments: Array<{
12
+ path: string;
13
+ sha256: string;
14
+ }>;
15
+ }>;
@@ -0,0 +1,34 @@
1
+ type Platform = 'darwin' | 'linux' | 'win32';
2
+ type Architecture = 'arm64' | 'x64';
3
+ type Target = `${Platform}-${Architecture}`;
4
+ export type StagedUv = {
5
+ packageName: string;
6
+ version: string;
7
+ target: Target;
8
+ license: string;
9
+ archive: string;
10
+ sourceUrl: string;
11
+ declaredArchiveSha256: string;
12
+ binaryPath: string;
13
+ binarySha256: string;
14
+ binarySize: number;
15
+ licenseFiles: Array<{
16
+ path: string;
17
+ sha256: string;
18
+ size: number;
19
+ }>;
20
+ noticeInventoryPath: string;
21
+ noticeInventorySha256: string;
22
+ noticeDocuments: Array<{
23
+ path: string;
24
+ sha256: string;
25
+ }>;
26
+ noticeObligations: string[];
27
+ };
28
+ /**
29
+ * Fetch and stage the exact upstream uv executable for one native SEA target.
30
+ * Downloads happen only during the build. The runtime receives the extracted,
31
+ * verified executable and does not acquire uv or Python.
32
+ */
33
+ export declare function stageUv(stageRoot: string, platform?: string, arch?: string): Promise<StagedUv>;
34
+ export {};
@@ -0,0 +1,34 @@
1
+ export type ReleasePolicy = {
2
+ mode: 'stable-from-hint';
3
+ distTag: string;
4
+ } | {
5
+ mode: 'prerelease-only';
6
+ versionHint: string;
7
+ identifier: string;
8
+ distTag: string;
9
+ };
10
+ type PrereleaseReleasePolicy = Extract<ReleasePolicy, {
11
+ mode: 'prerelease-only';
12
+ }>;
13
+ export declare function parseReleasePolicy(value: unknown): ReleasePolicy;
14
+ export declare function matchesReleasePolicy(version: string, policy: ReleasePolicy): boolean;
15
+ /**
16
+ * Use the release-preparation version when building the configured SEA line.
17
+ * Feature builds on the older release line use rc.0 until a bump prepares a
18
+ * specific prerelease version in package.json.
19
+ */
20
+ export declare function seaVersionForManifestVersion(version: string, policy: PrereleaseReleasePolicy): string;
21
+ export declare function releasePolicyPath(root?: string): string;
22
+ export declare function readReleasePolicy(root?: string): ReleasePolicy;
23
+ /** SEA builds require an explicit prerelease-only release policy. */
24
+ export declare function readSeaReleaseConfig(root?: string): PrereleaseReleasePolicy;
25
+ /** SEA prereleases use the final release version as their stable hint. */
26
+ export declare const SEA_RELEASE_POLICY: {
27
+ mode: "prerelease-only";
28
+ versionHint: string;
29
+ identifier: string;
30
+ distTag: string;
31
+ };
32
+ /** Version reported by the standalone SEA build and its npm prerelease. */
33
+ export declare const SEA_VERSION: string;
34
+ export {};
@@ -28,4 +28,3 @@ export type PackageScanResult = {
28
28
  * Scan packages and log alerts if found.
29
29
  */
30
30
  export declare function scanPackagesAndLogAlerts(options: PackageScanOptions): Promise<PackageScanResult>;
31
- //# sourceMappingURL=common.d.mts.map
@@ -5,4 +5,3 @@ export declare const Edge: EdgeClass;
5
5
  export declare const Node: NodeClass;
6
6
  export declare const OverrideSet: OverrideSetClass;
7
7
  export declare function installSafeArborist(): void;
8
- //# sourceMappingURL=index.d.mts.map
@@ -32,4 +32,3 @@ export declare class SafeArborist extends Arborist {
32
32
  // @ts-ignore Incorrectly typed.
33
33
  reify(this: SafeArborist, ...args: Parameters<InstanceType<ArboristClass>['reify']>): Promise<NodeClass>;
34
34
  }
35
- //# sourceMappingURL=index.d.mts.map
@@ -120,4 +120,3 @@ export interface OverrideSetClass extends Omit<BaseOverrideSet, 'ancestry' | 'ch
120
120
  getNodeRule(node: NodeClass): OverrideSetClass;
121
121
  isEqual(otherOverrideSet: OverrideSetClass | undefined): boolean;
122
122
  }
123
- //# sourceMappingURL=types.d.mts.map
@@ -21,4 +21,3 @@ export type PackageDetail = {
21
21
  existing?: NodeClass | undefined;
22
22
  };
23
23
  export declare function getDetailsFromDiff(diff: Diff | null, options?: DiffQueryOptions | undefined): PackageDetail[];
24
- //# sourceMappingURL=arborist-helpers.d.mts.map
@@ -2,4 +2,3 @@ import type { ShadowBinOptions, ShadowBinResult } from '../npm-base.mts';
2
2
  import type { SpawnExtra } from '@socketsecurity/registry/lib/spawn';
3
3
  export type { ShadowBinOptions, ShadowBinResult };
4
4
  export default function shadowNpmBin(args?: string[] | readonly string[], options?: ShadowBinOptions | undefined, extra?: SpawnExtra | undefined): Promise<ShadowBinResult>;
5
- //# sourceMappingURL=bin.d.mts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=inject.d.mts.map
@@ -10,4 +10,3 @@ export type ShadowNpmInstallOptions = SpawnOption & {
10
10
  };
11
11
  export declare function shadowNpmInstall(options?: ShadowNpmInstallOptions | undefined): SpawnResult<string, Record<any, any> | undefined>;
12
12
  export {};
13
- //# sourceMappingURL=install.d.mts.map