@socketsecurity/cli 1.15.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (779) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +16 -9
  3. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -0
  4. package/dist/cli.js +2467 -961
  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 -3
  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 +519 -123
  403. package/dist/utils.js.map +1 -1
  404. package/external/@socketsecurity/registry/lib/packages.js +12 -9
  405. package/package.json +33 -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
package/dist/constants.js CHANGED
@@ -23,6 +23,7 @@ const {
23
23
  CI,
24
24
  COLUMN_LIMIT,
25
25
  DOT_GIT_DIR,
26
+ DOT_PACKAGE_LOCK_JSON,
26
27
  DOT_SOCKET_DIR,
27
28
  EMPTY_FILE,
28
29
  EMPTY_VALUE,
@@ -45,7 +46,6 @@ const {
45
46
  EXTENSIONS,
46
47
  EXTENSIONS_JSON,
47
48
  GITIGNORE,
48
- DOT_PACKAGE_LOCK_JSON,
49
49
  LATEST,
50
50
  LICENSE,
51
51
  LICENSE_GLOB,
@@ -71,9 +71,9 @@ const {
71
71
  PRE_COMMIT,
72
72
  README_GLOB,
73
73
  README_GLOB_RECURSIVE,
74
- REGISTRY_SCOPE_DELIMITER,
75
74
  README_MD,
76
75
  REGISTRY,
76
+ REGISTRY_SCOPE_DELIMITER,
77
77
  RESOLUTIONS,
78
78
  SOCKET_GITHUB_ORG,
79
79
  SOCKET_IPC_HANDSHAKE,
@@ -111,7 +111,7 @@ const ALERT_TYPE_MILD_CVE = 'mildCVE';
111
111
  const API_V0_URL = 'https://api.socket.dev/v0/';
112
112
  // The Coana CLI version Socket CLI runs by default. Coana's release workflow
113
113
  // rewrites this line in its bump PRs.
114
- const COANA_CLI_VERSION = '15.15.0';
114
+ const COANA_CLI_VERSION = '15.15.3';
115
115
  const CONFIG_KEY_API_BASE_URL = 'apiBaseUrl';
116
116
  const CONFIG_KEY_API_PROXY = 'apiProxy';
117
117
  const CONFIG_KEY_API_TOKEN = 'apiToken';
@@ -122,7 +122,6 @@ const CONFIG_KEY_ORG = 'org';
122
122
  // The Socket facts filename. The file itself is generated by the Coana CLI's
123
123
  // `manifest` commands; this constant must match the filename Coana emits.
124
124
  const DOT_SOCKET_DOT_FACTS_JSON = `${DOT_SOCKET_DIR}.facts.json`;
125
- const DLX_BINARY_CACHE_TTL = 7 * 24 * 60 * 60 * 1_000; // 7 days in milliseconds.
126
125
  const DRY_RUN_LABEL = '[DryRun]';
127
126
  const DRY_RUN_BAILING_NOW = `${DRY_RUN_LABEL}: Bailing now`;
128
127
  const DRY_RUN_NOT_SAVING = `${DRY_RUN_LABEL}: Not saving`;
@@ -176,6 +175,10 @@ const REPORT_LEVEL_MONITOR = 'monitor';
176
175
  const REPORT_LEVEL_WARN = 'warn';
177
176
  const REQUIREMENTS_TXT = 'requirements.txt';
178
177
  const SOCKET_CLI_ACCEPT_RISKS = 'SOCKET_CLI_ACCEPT_RISKS';
178
+ // The variables socket-cli reads the Socket API token from, first one first.
179
+ const SOCKET_CLI_API_TOKEN_VARIABLES = ['SOCKET_CLI_API_TOKEN',
180
+ // TODO: Remove legacy environment variable names.
181
+ 'SOCKET_CLI_API_KEY', 'SOCKET_SECURITY_API_TOKEN', 'SOCKET_SECURITY_API_KEY'];
179
182
  const SOCKET_CLI_BIN_NAME = 'socket';
180
183
  const SOCKET_CLI_ISSUES_URL = 'https://github.com/SocketDev/socket-cli/issues';
181
184
  const SOCKET_CLI_SHADOW_ACCEPT_RISKS = 'SOCKET_CLI_SHADOW_ACCEPT_RISKS';
@@ -212,12 +215,29 @@ const LAZY_ENV = () => {
212
215
  env
213
216
  } = process;
214
217
  const envHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/env');
215
- const utils = /*@__PURE__*/require$1(path.join(constants.rootPath, 'dist/utils.js'));
216
218
  const envAsBoolean = envHelpers.envAsBoolean;
217
219
  const envAsNumber = envHelpers.envAsNumber;
218
220
  const envAsString = envHelpers.envAsString;
219
- const getConfigValueOrUndef = utils.getConfigValueOrUndef;
220
- const readOrDefaultSocketJson = utils.readOrDefaultSocketJson;
221
+ // Keep this leaf independent from dist/utils.js. That chunk imports
222
+ // constants.js, so requiring it here forms a runtime cycle that Node SEA's
223
+ // VFS loader cannot safely resolve.
224
+ const savedConfigValue = key => {
225
+ try {
226
+ const raw = u.readFileSync(path.join(constants.socketAppDataPath, 'config.json'), 'utf8');
227
+ const config = JSON.parse(Buffer.from(raw, 'base64').toString());
228
+ const value = config[key];
229
+ return typeof value === 'string' ? value : undefined;
230
+ } catch {
231
+ return undefined;
232
+ }
233
+ };
234
+ const socketJson = (() => {
235
+ try {
236
+ return JSON.parse(u.readFileSync(path.join(process.cwd(), SOCKET_JSON), 'utf8'));
237
+ } catch {
238
+ return undefined;
239
+ }
240
+ })();
221
241
  const GITHUB_TOKEN = envAsString(env['GITHUB_TOKEN']);
222
242
  const INLINED_SOCKET_CLI_PUBLISHED_BUILD = envAsBoolean(true);
223
243
  // We inline some environment values so that they CANNOT be influenced by user
@@ -279,10 +299,10 @@ const LAZY_ENV = () => {
279
299
  INLINED_SOCKET_CLI_SYNP_VERSION: envAsString("1.9.14"),
280
300
  // Comp-time inlined Socket package version.
281
301
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
282
- INLINED_SOCKET_CLI_VERSION: envAsString("1.15.0"),
302
+ INLINED_SOCKET_CLI_VERSION: envAsString("1.16.1"),
283
303
  // Comp-time inlined Socket package version hash.
284
304
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
285
- INLINED_SOCKET_CLI_VERSION_HASH: envAsString("1.15.0:ac0975659:a6eb3301"),
305
+ INLINED_SOCKET_CLI_VERSION_HASH: envAsString("1.16.1:78212283b:db370f61"),
286
306
  // Enable the module compile cache for the Node.js instance.
287
307
  // https://nodejs.org/api/cli.html#node_compile_cachedir
288
308
  NODE_COMPILE_CACHE: constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR ? constants.socketCachePath : '',
@@ -322,7 +342,7 @@ const LAZY_ENV = () => {
322
342
  // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
323
343
  SOCKET_CLI_API_BASE_URL: envAsString(env['SOCKET_CLI_API_BASE_URL']) ||
324
344
  // TODO: Remove legacy environment variable name.
325
- envAsString(env['SOCKET_SECURITY_API_BASE_URL']) || getConfigValueOrUndef('apiBaseUrl') || API_V0_URL,
345
+ envAsString(env['SOCKET_SECURITY_API_BASE_URL']) || savedConfigValue('apiBaseUrl') || API_V0_URL,
326
346
  // Set the proxy that all requests are routed through.
327
347
  // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
328
348
  SOCKET_CLI_API_PROXY: envAsString(env['SOCKET_CLI_API_PROXY']) ||
@@ -336,9 +356,7 @@ const LAZY_ENV = () => {
336
356
  SOCKET_CLI_API_TIMEOUT: envAsNumber(env['SOCKET_CLI_API_TIMEOUT']),
337
357
  // Set the Socket API token.
338
358
  // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables
339
- SOCKET_CLI_API_TOKEN: envAsString(env['SOCKET_CLI_API_TOKEN']) ||
340
- // TODO: Remove legacy environment variable names.
341
- envAsString(env['SOCKET_CLI_API_KEY']) || envAsString(env['SOCKET_SECURITY_API_TOKEN']) || envAsString(env['SOCKET_SECURITY_API_KEY']),
359
+ SOCKET_CLI_API_TOKEN: SOCKET_CLI_API_TOKEN_VARIABLES.map(name => envAsString(env[name])).find(Boolean) ?? '',
342
360
  // A JSON stringified Socket configuration object.
343
361
  SOCKET_CLI_CONFIG: envAsString(env['SOCKET_CLI_CONFIG']),
344
362
  // The git config user.email used by Socket CLI.
@@ -347,7 +365,7 @@ const LAZY_ENV = () => {
347
365
  SOCKET_CLI_GIT_USER_NAME: envAsString(env['SOCKET_CLI_GIT_USER_NAME']) || envAsString(env['SOCKET_CLI_GIT_USERNAME']) || 'github-actions[bot]',
348
366
  // Change the base URL for GitHub REST API calls.
349
367
  // https://docs.github.com/en/rest
350
- SOCKET_CLI_GITHUB_API_URL: envAsString(env['SOCKET_CLI_GITHUB_API_URL']) || readOrDefaultSocketJson(process.cwd())?.defaults?.scan?.github?.githubApiUrl || 'https://api.github.com',
368
+ SOCKET_CLI_GITHUB_API_URL: envAsString(env['SOCKET_CLI_GITHUB_API_URL']) || socketJson?.defaults?.scan?.github?.githubApiUrl || 'https://api.github.com',
351
369
  // A classic GitHub personal access token with the "repo" scope or a
352
370
  // fine-grained access token with at least read/write permissions set for
353
371
  // "Contents" and "Pull Request".
@@ -363,6 +381,8 @@ const LAZY_ENV = () => {
363
381
  SOCKET_CLI_ORG_SLUG: envAsString(env['SOCKET_CLI_ORG_SLUG']) ||
364
382
  // Coana CLI accepts the SOCKET_ORG_SLUG environment variable.
365
383
  envAsString(env['SOCKET_ORG_SLUG']),
384
+ // Explicit external socket-patch executable for standalone builds.
385
+ SOCKET_CLI_SOCKET_PATCH_PATH: envAsString(env['SOCKET_CLI_SOCKET_PATCH_PATH']),
366
386
  // View all risks of a Socket wrapped npm/npx run.
367
387
  SOCKET_CLI_VIEW_ALL_RISKS: envAsBoolean(env[SOCKET_CLI_VIEW_ALL_RISKS]),
368
388
  // Override the public patch API proxy URL for socket-patch.
@@ -378,9 +398,12 @@ const lazyBashRcPath = () => path.join(constants.homePath, '.bashrc');
378
398
  const lazyBinPath = () => path.join(constants.rootPath, 'bin');
379
399
  const lazyBinCliPath = () => path.join(constants.binPath, 'cli.js');
380
400
  const lazyBlessedContribPath = () => path.join(constants.externalPath, 'blessed-contrib');
401
+ function resolveBlessedTerm(term, win32) {
402
+ return term || (win32 ? 'windows-ansi' : 'xterm');
403
+ }
381
404
  const lazyBlessedOptions = () => Object.freeze({
382
405
  smartCSR: true,
383
- term: constants.WIN32 ? 'windows-ansi' : 'xterm',
406
+ term: resolveBlessedTerm(constants.ENV.TERM, constants.WIN32),
384
407
  useBCE: true
385
408
  });
386
409
  const lazyBlessedPath = () => path.join(constants.externalPath, 'blessed');
@@ -468,7 +491,12 @@ const lazyProcessEnv = () => Object.setPrototypeOf(Object.fromEntries(Object.ent
468
491
  }
469
492
  return entries;
470
493
  }, [])), null);
471
- const lazyRootPath = () => path.join(u.realpathSync.native(__dirname$1), '..');
494
+ const lazyRootPath = () => {
495
+ // Node SEA's VFS paths are virtual and cannot be canonicalized with native
496
+ // realpath. The bootstrap publishes the archive root before loading the CLI.
497
+ const seaVfsRoot = globalThis.__socketSeaVfsRoot;
498
+ return seaVfsRoot ?? path.join(u.realpathSync.native(__dirname$1), '..');
499
+ };
472
500
  const lazyShadowBinPath = () => path.join(constants.rootPath, 'shadow-npm-bin');
473
501
  const lazyShadowNpmBinPath = () => path.join(constants.distPath, 'shadow-npm-bin.js');
474
502
  const lazyShadowNpmInjectPath = () => path.join(constants.distPath, 'shadow-npm-inject.js');
@@ -493,7 +521,9 @@ const lazySocketAppDataPath = () => {
493
521
  let dataHome = WIN32 ? constants.ENV.LOCALAPPDATA : constants.ENV.XDG_DATA_HOME;
494
522
  if (!dataHome) {
495
523
  if (WIN32) {
496
- const logger = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/logger');
524
+ const {
525
+ logger
526
+ } = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/logger');
497
527
  logger.warn(`Missing %LOCALAPPDATA%.`);
498
528
  } else {
499
529
  dataHome = path.join(constants.homePath, constants.DARWIN ? 'Library/Application Support' : '.local/share');
@@ -710,7 +740,6 @@ exports.CONFIG_KEY_AUTH_TYPE = CONFIG_KEY_AUTH_TYPE;
710
740
  exports.CONFIG_KEY_DEFAULT_ORG = CONFIG_KEY_DEFAULT_ORG;
711
741
  exports.CONFIG_KEY_ENFORCED_ORGS = CONFIG_KEY_ENFORCED_ORGS;
712
742
  exports.CONFIG_KEY_ORG = CONFIG_KEY_ORG;
713
- exports.DLX_BINARY_CACHE_TTL = DLX_BINARY_CACHE_TTL;
714
743
  exports.DOT_GIT_DIR = DOT_GIT_DIR;
715
744
  exports.DOT_PACKAGE_LOCK_JSON = DOT_PACKAGE_LOCK_JSON;
716
745
  exports.DOT_SOCKET_DIR = DOT_SOCKET_DIR;
@@ -820,6 +849,7 @@ exports.RESOLUTIONS = RESOLUTIONS;
820
849
  exports.SCAN_TYPE_SOCKET = SCAN_TYPE_SOCKET;
821
850
  exports.SCAN_TYPE_SOCKET_TIER1 = SCAN_TYPE_SOCKET_TIER1;
822
851
  exports.SOCKET_CLI_ACCEPT_RISKS = SOCKET_CLI_ACCEPT_RISKS;
852
+ exports.SOCKET_CLI_API_TOKEN_VARIABLES = SOCKET_CLI_API_TOKEN_VARIABLES;
823
853
  exports.SOCKET_CLI_BIN_NAME = SOCKET_CLI_BIN_NAME;
824
854
  exports.SOCKET_CLI_ISSUES_URL = SOCKET_CLI_ISSUES_URL;
825
855
  exports.SOCKET_CLI_SHADOW_ACCEPT_RISKS = SOCKET_CLI_SHADOW_ACCEPT_RISKS;
@@ -857,5 +887,6 @@ exports.YARN_BERRY = YARN_BERRY;
857
887
  exports.YARN_CLASSIC = YARN_CLASSIC;
858
888
  exports.YARN_LOCK = YARN_LOCK;
859
889
  exports.default = constants;
860
- //# debugId=f56eaacb-37ee-40fa-8fec-d825182f3b21
890
+ exports.resolveBlessedTerm = resolveBlessedTerm;
891
+ //# debugId=6b5122ab-8f29-4fe8-8e13-0e2045c2b4c6
861
892
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../src/constants.mts"],"sourcesContent":["import { realpathSync } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport os from 'node:os'\nimport path from 'node:path'\nimport { fileURLToPath } from 'node:url'\n\nimport registryConstants from '@socketsecurity/registry/lib/constants'\n\nimport type { Agent } from './utils/package-environment.mts'\nimport type { Remap } from '@socketsecurity/registry/lib/objects'\nimport type { SpawnOptions } from '@socketsecurity/registry/lib/spawn'\n\nconst require = createRequire(import.meta.url)\nconst __filename = fileURLToPath(import.meta.url)\n// Using `path.dirname(__filename)` to resolve `__dirname` works for both 'dist'\n// AND 'src' directories because constants.js and constants.mts respectively are\n// in the root of each.\nconst __dirname = path.dirname(__filename)\n\nconst {\n AT_LATEST,\n BIOME_JSON,\n BUN,\n CI,\n COLUMN_LIMIT,\n DOT_GIT_DIR,\n DOT_SOCKET_DIR,\n EMPTY_FILE,\n EMPTY_VALUE,\n ESLINT_CONFIG_JS,\n ESNEXT,\n EXT_CJS,\n EXT_CMD,\n EXT_CTS,\n EXT_DTS,\n EXT_JS,\n EXT_JSON,\n EXT_LOCK,\n EXT_LOCKB,\n EXT_MD,\n EXT_MJS,\n EXT_MTS,\n EXT_PS1,\n EXT_YAML,\n EXT_YML,\n EXTENSIONS,\n EXTENSIONS_JSON,\n GITIGNORE,\n DOT_PACKAGE_LOCK_JSON,\n LATEST,\n LICENSE,\n LICENSE_GLOB,\n LICENSE_GLOB_RECURSIVE,\n LICENSE_ORIGINAL,\n LICENSE_ORIGINAL_GLOB,\n LICENSE_ORIGINAL_GLOB_RECURSIVE,\n LOOP_SENTINEL,\n MANIFEST_JSON,\n MIT,\n NODE_AUTH_TOKEN,\n NODE_ENV,\n NODE_MODULES,\n NODE_MODULES_GLOB_RECURSIVE,\n NPM,\n NPX,\n OVERRIDES,\n PACKAGE_DEFAULT_VERSION,\n PACKAGE_JSON,\n PACKAGE_LOCK_JSON,\n PNPM,\n PNPM_LOCK_YAML,\n PRE_COMMIT,\n README_GLOB,\n README_GLOB_RECURSIVE,\n REGISTRY_SCOPE_DELIMITER,\n README_MD,\n REGISTRY,\n RESOLUTIONS,\n SOCKET_GITHUB_ORG,\n SOCKET_IPC_HANDSHAKE,\n SOCKET_OVERRIDE_SCOPE,\n SOCKET_PUBLIC_API_TOKEN,\n SOCKET_REGISTRY_NPM_ORG,\n SOCKET_REGISTRY_PACKAGE_NAME,\n SOCKET_REGISTRY_REPO_NAME,\n SOCKET_REGISTRY_SCOPE,\n SOCKET_SECURITY_SCOPE,\n TSCONFIG_JSON,\n UNKNOWN_ERROR,\n UNKNOWN_VALUE,\n UNLICENCED,\n UNLICENSED,\n UTF8,\n VITEST,\n VLT,\n YARN,\n YARN_BERRY,\n YARN_CLASSIC,\n YARN_LOCK,\n kInternalsSymbol,\n [kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: {\n attributes: registryConstantsAttribs,\n createConstantsObject,\n getIpc,\n },\n} = registryConstants\n\nexport type RegistryEnv = typeof registryConstants.ENV\n\nexport type RegistryInternals =\n (typeof registryConstants)['Symbol(kInternalsSymbol)']\n\nexport type Sentry = any\n\nexport type Internals = Remap<\n Omit<RegistryInternals, 'getIpc'> &\n Readonly<{\n getIpc: {\n (): Promise<IpcObject>\n <K extends keyof IpcObject | undefined>(\n key?: K | undefined,\n ): Promise<K extends keyof IpcObject ? IpcObject[K] : IpcObject>\n }\n getSentry: () => Sentry\n setSentry(Sentry: Sentry): boolean\n }>\n>\n\nexport type ENV = Remap<\n RegistryEnv &\n Readonly<{\n DISABLE_GITHUB_CACHE: boolean\n GITHUB_API_URL: string\n GITHUB_BASE_REF: string\n GITHUB_REF_NAME: string\n GITHUB_REF_TYPE: string\n GITHUB_REPOSITORY: string\n GITHUB_SERVER_URL: string\n GITHUB_TOKEN: string\n INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: string\n INLINED_SOCKET_CLI_HOMEPAGE: string\n INLINED_SOCKET_CLI_LEGACY_BUILD: string\n INLINED_SOCKET_CLI_NAME: string\n INLINED_SOCKET_CLI_PUBLISHED_BUILD: string\n INLINED_SOCKET_CLI_SENTRY_BUILD: string\n INLINED_SOCKET_CLI_VERSION: string\n INLINED_SOCKET_CLI_VERSION_HASH: string\n INLINED_SOCKET_CLI_SYNP_VERSION: string\n LOCALAPPDATA: string\n NODE_COMPILE_CACHE: string\n NODE_EXTRA_CA_CERTS: string\n npm_config_cache: string\n npm_config_user_agent: string\n PATH: string\n SOCKET_CLI_ACCEPT_RISKS: boolean\n SOCKET_CLI_DEBUG: boolean\n SOCKET_CLI_API_BASE_URL: string\n SOCKET_CLI_API_PROXY: string\n SOCKET_CLI_API_TIMEOUT: number\n SOCKET_CLI_API_TOKEN: string\n SOCKET_CLI_CONFIG: string\n SOCKET_CLI_GIT_USER_EMAIL: string\n SOCKET_CLI_GIT_USER_NAME: string\n SOCKET_CLI_GITHUB_TOKEN: string\n SOCKET_CLI_NO_API_TOKEN: boolean\n SOCKET_CLI_NPM_PATH: string\n SOCKET_CLI_ORG_SLUG: string\n SOCKET_CLI_VIEW_ALL_RISKS: boolean\n SOCKET_PATCH_PROXY_URL: string\n TERM: string\n XDG_DATA_HOME: string\n }>\n>\n\nexport type IpcObject = Readonly<{\n SOCKET_CLI_FIX?: string | undefined\n SOCKET_CLI_OPTIMIZE?: boolean | undefined\n SOCKET_CLI_SHADOW_ACCEPT_RISKS?: boolean | undefined\n SOCKET_CLI_SHADOW_API_TOKEN?: string | undefined\n SOCKET_CLI_SHADOW_BIN?: string | undefined\n SOCKET_CLI_SHADOW_PROGRESS?: boolean | undefined\n SOCKET_CLI_SHADOW_SILENT?: boolean | undefined\n}>\n\nexport type ProcessEnv = {\n [K in keyof ENV]?: string | undefined\n}\n\n// Socket CLI specific constants that are not in socket-registry.\nconst ALERT_TYPE_CRITICAL_CVE = 'criticalCVE'\nconst ALERT_TYPE_CVE = 'cve'\nconst ALERT_TYPE_MEDIUM_CVE = 'mediumCVE'\nconst ALERT_TYPE_MILD_CVE = 'mildCVE'\nconst API_V0_URL = 'https://api.socket.dev/v0/'\n// The Coana CLI version Socket CLI runs by default. Coana's release workflow\n// rewrites this line in its bump PRs.\nconst COANA_CLI_VERSION = '15.15.0'\nconst CONFIG_KEY_API_BASE_URL = 'apiBaseUrl'\nconst CONFIG_KEY_API_PROXY = 'apiProxy'\nconst CONFIG_KEY_API_TOKEN = 'apiToken'\nconst CONFIG_KEY_AUTH_TYPE = 'authType'\nconst CONFIG_KEY_DEFAULT_ORG = 'defaultOrg'\nconst CONFIG_KEY_ENFORCED_ORGS = 'enforcedOrgs'\nconst CONFIG_KEY_ORG = 'org'\n// The Socket facts filename. The file itself is generated by the Coana CLI's\n// `manifest` commands; this constant must match the filename Coana emits.\nconst DOT_SOCKET_DOT_FACTS_JSON = `${DOT_SOCKET_DIR}.facts.json`\nconst DLX_BINARY_CACHE_TTL = 7 * 24 * 60 * 60 * 1_000 // 7 days in milliseconds.\nconst DRY_RUN_LABEL = '[DryRun]'\nconst DRY_RUN_BAILING_NOW = `${DRY_RUN_LABEL}: Bailing now`\nconst DRY_RUN_NOT_SAVING = `${DRY_RUN_LABEL}: Not saving`\nconst ENVIRONMENT_YAML = 'environment.yaml'\nconst ENVIRONMENT_YML = 'environment.yml'\nconst ERROR_NO_MANIFEST_FILES = 'No manifest files found'\nconst ERROR_NO_PACKAGE_JSON = 'No package.json found'\nconst ERROR_NO_REPO_FOUND = 'No repo found'\nconst ERROR_NO_SOCKET_DIR = 'No .socket directory found'\nconst ERROR_UNABLE_RESOLVE_ORG =\n 'Unable to resolve a Socket account organization'\nconst FLAG_CONFIG = '--config'\nconst FLAG_DRY_RUN = '--dry-run'\nconst FLAG_HELP = '--help'\nconst FLAG_HELP_FULL = '--help-full'\nconst FLAG_ID = '--id'\nconst FLAG_JSON = '--json'\nconst FLAG_LOGLEVEL = '--loglevel'\nconst FLAG_MARKDOWN = '--markdown'\nconst FLAG_ORG = '--org'\nconst FLAG_PIN = '--pin'\nconst FLAG_PROD = '--prod'\nconst FLAG_QUIET = '--quiet'\nconst FLAG_SILENT = '--silent'\nconst FLAG_TEXT = '--text'\nconst FLAG_VERBOSE = '--verbose'\nconst FLAG_VERSION = '--version'\nconst FOLD_SETTING_FILE = 'file'\nconst FOLD_SETTING_NONE = 'none'\nconst FOLD_SETTING_PKG = 'pkg'\nconst FOLD_SETTING_VERSION = 'version'\nconst GQL_PAGE_SENTINEL = 100\nconst GQL_PR_STATE_CLOSED = 'CLOSED'\nconst GQL_PR_STATE_MERGED = 'MERGED'\nconst GQL_PR_STATE_OPEN = 'OPEN'\nconst HTTP_STATUS_BAD_REQUEST = 400\nconst HTTP_STATUS_FORBIDDEN = 403\nconst HTTP_STATUS_INTERNAL_SERVER_ERROR = 500\nconst HTTP_STATUS_NOT_FOUND = 404\nconst HTTP_STATUS_UNAUTHORIZED = 401\nconst NPM_BUGGY_OVERRIDES_PATCHED_VERSION = '11.2.0'\nconst NPM_REGISTRY_URL = 'https://registry.npmjs.org'\nconst OUTPUT_JSON = 'json'\nconst OUTPUT_MARKDOWN = 'markdown'\nconst OUTPUT_TEXT = 'text'\nconst PNPM_WORKSPACE_YAML = 'pnpm-workspace.yaml'\nconst REDACTED = '<redacted>'\nconst REPORT_LEVEL_DEFER = 'defer'\nconst REPORT_LEVEL_ERROR = 'error'\nconst REPORT_LEVEL_IGNORE = 'ignore'\nconst REPORT_LEVEL_MONITOR = 'monitor'\nconst REPORT_LEVEL_WARN = 'warn'\nconst REQUIREMENTS_TXT = 'requirements.txt'\nconst SOCKET_CLI_ACCEPT_RISKS = 'SOCKET_CLI_ACCEPT_RISKS'\nconst SOCKET_CLI_BIN_NAME = 'socket'\nconst SOCKET_CLI_ISSUES_URL = 'https://github.com/SocketDev/socket-cli/issues'\nconst SOCKET_CLI_SHADOW_ACCEPT_RISKS = 'SOCKET_CLI_SHADOW_ACCEPT_RISKS'\nconst SOCKET_CLI_SHADOW_API_TOKEN = 'SOCKET_CLI_SHADOW_API_TOKEN'\nconst SOCKET_CLI_SHADOW_BIN = 'SOCKET_CLI_SHADOW_BIN'\nconst SOCKET_CLI_SHADOW_PROGRESS = 'SOCKET_CLI_SHADOW_PROGRESS'\nconst SOCKET_CLI_SHADOW_SILENT = 'SOCKET_CLI_SHADOW_SILENT'\nconst SOCKET_CLI_VIEW_ALL_RISKS = 'SOCKET_CLI_VIEW_ALL_RISKS'\nconst SCAN_TYPE_SOCKET = 'socket'\nconst SCAN_TYPE_SOCKET_TIER1 = 'socket_tier1'\nconst SOCKET_DEFAULT_BRANCH = 'socket-default-branch'\nconst SOCKET_DEFAULT_REPOSITORY = 'socket-default-repository'\nconst SOCKET_JSON = 'socket.json'\nconst SOCKET_WEBSITE_URL = 'https://socket.dev'\nconst SOCKET_YAML = 'socket.yaml'\nconst SOCKET_YML = 'socket.yml'\nconst V1_MIGRATION_GUIDE_URL = 'https://docs.socket.dev/docs/v1-migration-guide'\n\nexport type Constants = Remap<\n Omit<\n typeof registryConstants,\n 'Symbol(kInternalsSymbol)' | 'ENV' | 'ipcObject'\n > & {\n readonly 'Symbol(kInternalsSymbol)': Internals\n readonly ALERT_TYPE_CRITICAL_CVE: typeof ALERT_TYPE_CRITICAL_CVE\n readonly ALERT_TYPE_CVE: typeof ALERT_TYPE_CVE\n readonly ALERT_TYPE_MEDIUM_CVE: typeof ALERT_TYPE_MEDIUM_CVE\n readonly ALERT_TYPE_MILD_CVE: typeof ALERT_TYPE_MILD_CVE\n readonly API_V0_URL: typeof API_V0_URL\n readonly BUN: typeof BUN\n readonly CONFIG_KEY_API_BASE_URL: typeof CONFIG_KEY_API_BASE_URL\n readonly CONFIG_KEY_API_PROXY: typeof CONFIG_KEY_API_PROXY\n readonly CONFIG_KEY_API_TOKEN: typeof CONFIG_KEY_API_TOKEN\n readonly CONFIG_KEY_AUTH_TYPE: typeof CONFIG_KEY_AUTH_TYPE\n readonly CONFIG_KEY_DEFAULT_ORG: typeof CONFIG_KEY_DEFAULT_ORG\n readonly CONFIG_KEY_ENFORCED_ORGS: typeof CONFIG_KEY_ENFORCED_ORGS\n readonly CONFIG_KEY_ORG: typeof CONFIG_KEY_ORG\n readonly DOT_GIT_DIR: typeof DOT_GIT_DIR\n readonly DOT_SOCKET_DIR: typeof DOT_SOCKET_DIR\n readonly DLX_BINARY_CACHE_TTL: typeof DLX_BINARY_CACHE_TTL\n readonly DOT_SOCKET_DOT_FACTS_JSON: typeof DOT_SOCKET_DOT_FACTS_JSON\n readonly DRY_RUN_BAILING_NOW: typeof DRY_RUN_BAILING_NOW\n readonly DRY_RUN_LABEL: typeof DRY_RUN_LABEL\n readonly DRY_RUN_NOT_SAVING: typeof DRY_RUN_NOT_SAVING\n readonly EMPTY_VALUE: typeof EMPTY_VALUE\n readonly ENV: ENV\n readonly ENVIRONMENT_YAML: typeof ENVIRONMENT_YAML\n readonly ENVIRONMENT_YML: typeof ENVIRONMENT_YML\n readonly ERROR_NO_MANIFEST_FILES: typeof ERROR_NO_MANIFEST_FILES\n readonly ERROR_NO_PACKAGE_JSON: typeof ERROR_NO_PACKAGE_JSON\n readonly ERROR_NO_REPO_FOUND: typeof ERROR_NO_REPO_FOUND\n readonly ERROR_NO_SOCKET_DIR: typeof ERROR_NO_SOCKET_DIR\n readonly ERROR_UNABLE_RESOLVE_ORG: typeof ERROR_UNABLE_RESOLVE_ORG\n readonly EXT_YAML: typeof EXT_YAML\n readonly EXT_YML: typeof EXT_YML\n readonly FLAG_CONFIG: typeof FLAG_CONFIG\n readonly FLAG_DRY_RUN: typeof FLAG_DRY_RUN\n readonly FLAG_HELP: typeof FLAG_HELP\n readonly FLAG_ID: typeof FLAG_ID\n readonly FLAG_JSON: typeof FLAG_JSON\n readonly FLAG_LOGLEVEL: typeof FLAG_LOGLEVEL\n readonly FLAG_MARKDOWN: typeof FLAG_MARKDOWN\n readonly FLAG_ORG: typeof FLAG_ORG\n readonly FLAG_PIN: typeof FLAG_PIN\n readonly FLAG_PROD: typeof FLAG_PROD\n readonly FLAG_QUIET: typeof FLAG_QUIET\n readonly FLAG_SILENT: typeof FLAG_SILENT\n readonly FLAG_TEXT: typeof FLAG_TEXT\n readonly FLAG_VERBOSE: typeof FLAG_VERBOSE\n readonly FLAG_VERSION: typeof FLAG_VERSION\n readonly FOLD_SETTING_FILE: typeof FOLD_SETTING_FILE\n readonly FOLD_SETTING_NONE: typeof FOLD_SETTING_NONE\n readonly FOLD_SETTING_PKG: typeof FOLD_SETTING_PKG\n readonly FOLD_SETTING_VERSION: typeof FOLD_SETTING_VERSION\n readonly GQL_PAGE_SENTINEL: typeof GQL_PAGE_SENTINEL\n readonly GQL_PR_STATE_CLOSED: typeof GQL_PR_STATE_CLOSED\n readonly GQL_PR_STATE_MERGED: typeof GQL_PR_STATE_MERGED\n readonly GQL_PR_STATE_OPEN: typeof GQL_PR_STATE_OPEN\n readonly HTTP_STATUS_BAD_REQUEST: typeof HTTP_STATUS_BAD_REQUEST\n readonly HTTP_STATUS_FORBIDDEN: typeof HTTP_STATUS_FORBIDDEN\n readonly HTTP_STATUS_INTERNAL_SERVER_ERROR: typeof HTTP_STATUS_INTERNAL_SERVER_ERROR\n readonly HTTP_STATUS_NOT_FOUND: typeof HTTP_STATUS_NOT_FOUND\n readonly HTTP_STATUS_UNAUTHORIZED: typeof HTTP_STATUS_UNAUTHORIZED\n readonly NODE_MODULES: typeof NODE_MODULES\n readonly NPM: typeof NPM\n readonly NPM_BUGGY_OVERRIDES_PATCHED_VERSION: typeof NPM_BUGGY_OVERRIDES_PATCHED_VERSION\n readonly NPM_REGISTRY_URL: typeof NPM_REGISTRY_URL\n readonly NPX: typeof NPX\n readonly OUTPUT_JSON: typeof OUTPUT_JSON\n readonly OUTPUT_MARKDOWN: typeof OUTPUT_MARKDOWN\n readonly OUTPUT_TEXT: typeof OUTPUT_TEXT\n readonly PACKAGE_JSON: typeof PACKAGE_JSON\n readonly PACKAGE_LOCK_JSON: typeof PACKAGE_LOCK_JSON\n readonly PNPM: typeof PNPM\n readonly PNPM_LOCK_YAML: typeof PNPM_LOCK_YAML\n readonly PNPM_WORKSPACE_YAML: typeof PNPM_WORKSPACE_YAML\n readonly REDACTED: typeof REDACTED\n readonly REPORT_LEVEL_DEFER: typeof REPORT_LEVEL_DEFER\n readonly REPORT_LEVEL_ERROR: typeof REPORT_LEVEL_ERROR\n readonly REPORT_LEVEL_IGNORE: typeof REPORT_LEVEL_IGNORE\n readonly REPORT_LEVEL_MONITOR: typeof REPORT_LEVEL_MONITOR\n readonly REPORT_LEVEL_WARN: typeof REPORT_LEVEL_WARN\n readonly REQUIREMENTS_TXT: typeof REQUIREMENTS_TXT\n readonly SCAN_TYPE_SOCKET: typeof SCAN_TYPE_SOCKET\n readonly SCAN_TYPE_SOCKET_TIER1: typeof SCAN_TYPE_SOCKET_TIER1\n readonly SOCKET_CLI_ACCEPT_RISKS: typeof SOCKET_CLI_ACCEPT_RISKS\n readonly SOCKET_CLI_BIN_NAME: typeof SOCKET_CLI_BIN_NAME\n readonly SOCKET_CLI_ISSUES_URL: typeof SOCKET_CLI_ISSUES_URL\n readonly SOCKET_CLI_SHADOW_ACCEPT_RISKS: typeof SOCKET_CLI_SHADOW_ACCEPT_RISKS\n readonly SOCKET_CLI_SHADOW_API_TOKEN: typeof SOCKET_CLI_SHADOW_API_TOKEN\n readonly SOCKET_CLI_SHADOW_BIN: typeof SOCKET_CLI_SHADOW_BIN\n readonly SOCKET_CLI_SHADOW_PROGRESS: typeof SOCKET_CLI_SHADOW_PROGRESS\n readonly SOCKET_CLI_SHADOW_SILENT: typeof SOCKET_CLI_SHADOW_SILENT\n readonly SOCKET_CLI_VIEW_ALL_RISKS: typeof SOCKET_CLI_VIEW_ALL_RISKS\n readonly SOCKET_DEFAULT_BRANCH: typeof SOCKET_DEFAULT_BRANCH\n readonly SOCKET_DEFAULT_REPOSITORY: typeof SOCKET_DEFAULT_REPOSITORY\n readonly SOCKET_JSON: typeof SOCKET_JSON\n readonly SOCKET_WEBSITE_URL: typeof SOCKET_WEBSITE_URL\n readonly SOCKET_YAML: typeof SOCKET_YAML\n readonly SOCKET_YML: typeof SOCKET_YML\n readonly TSCONFIG_JSON: typeof TSCONFIG_JSON\n readonly UNKNOWN_ERROR: typeof UNKNOWN_ERROR\n readonly UNKNOWN_VALUE: typeof UNKNOWN_VALUE\n readonly V1_MIGRATION_GUIDE_URL: typeof V1_MIGRATION_GUIDE_URL\n readonly VLT: typeof VLT\n readonly YARN: typeof YARN\n readonly YARN_BERRY: typeof YARN_BERRY\n readonly YARN_CLASSIC: typeof YARN_CLASSIC\n readonly bashRcPath: string\n readonly binCliPath: string\n readonly binPath: string\n readonly blessedContribPath: string\n readonly blessedOptions: {\n smartCSR: boolean\n term: string\n useBCE: boolean\n }\n readonly blessedPath: string\n readonly distCliPath: string\n readonly distPath: string\n readonly externalPath: string\n readonly githubCachePath: string\n readonly homePath: string\n readonly instrumentWithSentryPath: string\n readonly ipcObject: IpcObject\n readonly minimumVersionByAgent: Map<Agent, string>\n readonly nmBinPath: string\n readonly nodeDebugFlags: string[]\n readonly nodeHardenFlags: string[]\n readonly nodeMemoryFlags: string[]\n readonly npmCachePath: string\n readonly npmGlobalPrefix: string\n readonly npmNmNodeGypPath: string\n readonly processEnv: ProcessEnv\n readonly rootPath: string\n readonly shadowBinPath: string\n readonly shadowNpmBinPath: string\n readonly shadowNpmInjectPath: string\n readonly shadowNpxBinPath: string\n readonly shadowPnpmBinPath: string\n readonly shadowYarnBinPath: string\n readonly socketAppDataPath: string\n readonly socketCachePath: string\n readonly socketRegistryPath: string\n readonly zshRcPath: string\n }\n>\n\nlet _Sentry: any\n\nlet _npmStdioPipeOptions: SpawnOptions | undefined\nfunction getNpmStdioPipeOptions() {\n if (_npmStdioPipeOptions === undefined) {\n _npmStdioPipeOptions = {\n cwd: process.cwd(),\n // On Windows, npm is often a .cmd file that requires shell execution.\n // The spawn function from @socketsecurity/registry will handle this properly\n // when shell is true.\n shell: constants.WIN32,\n }\n }\n return _npmStdioPipeOptions\n}\n\nconst LAZY_ENV = () => {\n const { env } = process\n const envHelpers = /*@__PURE__*/ require('@socketsecurity/registry/lib/env')\n const utils = /*@__PURE__*/ require(\n path.join(constants.rootPath, 'dist/utils.js'),\n )\n const envAsBoolean = envHelpers.envAsBoolean\n const envAsNumber = envHelpers.envAsNumber\n const envAsString = envHelpers.envAsString\n const getConfigValueOrUndef = utils.getConfigValueOrUndef\n const readOrDefaultSocketJson = utils.readOrDefaultSocketJson\n const GITHUB_TOKEN = envAsString(env['GITHUB_TOKEN'])\n const INLINED_SOCKET_CLI_PUBLISHED_BUILD = envAsBoolean(\n process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD'],\n )\n // We inline some environment values so that they CANNOT be influenced by user\n // provided environment variables.\n return Object.freeze({\n __proto__: null,\n // Lazily access registryConstants.ENV.\n ...registryConstants.ENV,\n // Disable using GitHub's workflow actions/cache.\n // https://github.com/actions/cache\n DISABLE_GITHUB_CACHE: envAsBoolean(env['DISABLE_GITHUB_CACHE']),\n // The API URL. For example, https://api.github.com.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_API_URL:\n envAsString(env['GITHUB_API_URL']) || 'https://api.github.com',\n // The name of the base ref or target branch of the pull request in a workflow\n // run. This is only set when the event that triggers a workflow run is either\n // pull_request or pull_request_target. For example, main.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_BASE_REF: envAsString(env['GITHUB_BASE_REF']),\n // The short ref name of the branch or tag that triggered the GitHub workflow\n // run. This value matches the branch or tag name shown on GitHub. For example,\n // feature-branch-1. For pull requests, the format is <pr_number>/merge.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_REF_NAME: envAsString(env['GITHUB_REF_NAME']),\n // The type of ref that triggered the workflow run. Valid values are branch or tag.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_REF_TYPE: envAsString(env['GITHUB_REF_TYPE']),\n // The owner and repository name. For example, octocat/Hello-World.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_REPOSITORY: envAsString(env['GITHUB_REPOSITORY']),\n // The URL of the GitHub server. For example, https://github.com.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_SERVER_URL:\n envAsString(env['GITHUB_SERVER_URL']) || 'https://github.com',\n // The GITHUB_TOKEN secret is a GitHub App installation access token.\n // The token's permissions are limited to the repository that contains the\n // workflow.\n // https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#about-the-github_token-secret\n GITHUB_TOKEN,\n // Comp-time inlined @cyclonedx/cdxgen package version.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION']\".\n INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: envAsString(\n process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION'],\n ),\n // Comp-time inlined Socket package homepage.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_HOMEPAGE']\".\n INLINED_SOCKET_CLI_HOMEPAGE: envAsString(\n process.env['INLINED_SOCKET_CLI_HOMEPAGE'],\n ),\n // Comp-time inlined flag to determine if this is the Legacy build.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_LEGACY_BUILD']\".\n INLINED_SOCKET_CLI_LEGACY_BUILD: envAsBoolean(\n process.env['INLINED_SOCKET_CLI_LEGACY_BUILD'],\n ),\n // Comp-time inlined Socket package name.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_NAME']\".\n INLINED_SOCKET_CLI_NAME: envAsString(\n process.env['INLINED_SOCKET_CLI_NAME'],\n ),\n // Comp-time inlined flag to determine if this is a published build.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\".\n INLINED_SOCKET_CLI_PUBLISHED_BUILD,\n // Comp-time inlined flag to determine if this is the Sentry build.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']\".\n INLINED_SOCKET_CLI_SENTRY_BUILD: envAsBoolean(\n process.env['INLINED_SOCKET_CLI_SENTRY_BUILD'],\n ),\n // Comp-time inlined synp package version.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SYNP_VERSION']\".\n INLINED_SOCKET_CLI_SYNP_VERSION: envAsString(\n process.env['INLINED_SOCKET_CLI_SYNP_VERSION'],\n ),\n // Comp-time inlined Socket package version.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION']\".\n INLINED_SOCKET_CLI_VERSION: envAsString(\n process.env['INLINED_SOCKET_CLI_VERSION'],\n ),\n // Comp-time inlined Socket package version hash.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION_HASH']\".\n INLINED_SOCKET_CLI_VERSION_HASH: envAsString(\n process.env['INLINED_SOCKET_CLI_VERSION_HASH'],\n ),\n // Enable the module compile cache for the Node.js instance.\n // https://nodejs.org/api/cli.html#node_compile_cachedir\n NODE_COMPILE_CACHE: constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR\n ? constants.socketCachePath\n : '',\n // Redefine registryConstants.ENV.NODE_ENV to account for the\n // INLINED_SOCKET_CLI_PUBLISHED_BUILD environment variable.\n NODE_ENV:\n envAsString(env['NODE_ENV']).toLowerCase() === 'production'\n ? 'production'\n : INLINED_SOCKET_CLI_PUBLISHED_BUILD\n ? ''\n : 'development',\n // Well known \"root\" CAs (like VeriSign) will be extended with the extra\n // certificates in file. The file should consist of one or more trusted\n // certificates in PEM format.\n // https://nodejs.org/api/cli.html#node_extra_ca_certsfile\n NODE_EXTRA_CA_CERTS:\n envAsString(env['NODE_EXTRA_CA_CERTS']) ||\n // Commonly used environment variable to specify the path to a single\n // PEM-encoded certificate file.\n envAsString(env['SSL_CERT_FILE']),\n // npm cache directory path. Used to detect if running from npm's npx cache\n // for temporary execution contexts.\n npm_config_cache: envAsString(env['npm_config_cache']),\n // Package manager user agent string that identifies which package manager\n // is executing commands. Used to detect temporary execution contexts like\n // npx, pnpm dlx, or yarn dlx.\n // Expected values:\n // - npm: 'npm/version node/version os arch' (e.g., 'npm/10.0.0 node/v20.0.0 darwin x64')\n // - npx: Similar to npm but may include 'npx' or 'exec' in the string\n // - yarn: 'yarn/version npm/? node/version os arch' (e.g., 'yarn/1.22.0 npm/? node/v20.0.0 darwin x64')\n // - pnpm: 'pnpm/version node/version os arch' (Note: Not set for pnpm dlx/create/init)\n // - When running via exec/npx/dlx, the string may contain 'exec', 'npx', or 'dlx'\n npm_config_user_agent: envAsString(env['npm_config_user_agent']),\n // PATH is an environment variable that lists directories where executable\n // programs are located. When a command is run, the system searches these\n // directories to find the executable.\n PATH: envAsString(env['PATH']),\n // Accept risks of a Socket wrapped npm/npx run.\n SOCKET_CLI_ACCEPT_RISKS: envAsBoolean(env[SOCKET_CLI_ACCEPT_RISKS]),\n // Enable debug logging in Socket CLI.\n SOCKET_CLI_DEBUG: envAsBoolean(env['SOCKET_CLI_DEBUG']),\n // Change the base URL for Socket API calls.\n // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development\n SOCKET_CLI_API_BASE_URL:\n envAsString(env['SOCKET_CLI_API_BASE_URL']) ||\n // TODO: Remove legacy environment variable name.\n envAsString(env['SOCKET_SECURITY_API_BASE_URL']) ||\n getConfigValueOrUndef('apiBaseUrl') ||\n API_V0_URL,\n // Set the proxy that all requests are routed through.\n // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development\n SOCKET_CLI_API_PROXY:\n envAsString(env['SOCKET_CLI_API_PROXY']) ||\n // TODO: Remove legacy environment variable name.\n envAsString(env['SOCKET_SECURITY_API_PROXY']) ||\n // Commonly used environment variables to specify routing requests through\n // a proxy server.\n envAsString(env['HTTPS_PROXY']) ||\n envAsString(env['https_proxy']) ||\n envAsString(env['HTTP_PROXY']) ||\n envAsString(env['http_proxy']),\n // Set the timeout in milliseconds for Socket API requests.\n // https://nodejs.org/api/http.html#httprequesturl-options-callback\n SOCKET_CLI_API_TIMEOUT: envAsNumber(env['SOCKET_CLI_API_TIMEOUT']),\n // Set the Socket API token.\n // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables\n SOCKET_CLI_API_TOKEN:\n envAsString(env['SOCKET_CLI_API_TOKEN']) ||\n // TODO: Remove legacy environment variable names.\n envAsString(env['SOCKET_CLI_API_KEY']) ||\n envAsString(env['SOCKET_SECURITY_API_TOKEN']) ||\n envAsString(env['SOCKET_SECURITY_API_KEY']),\n // A JSON stringified Socket configuration object.\n SOCKET_CLI_CONFIG: envAsString(env['SOCKET_CLI_CONFIG']),\n // The git config user.email used by Socket CLI.\n SOCKET_CLI_GIT_USER_EMAIL:\n envAsString(env['SOCKET_CLI_GIT_USER_EMAIL']) ||\n 'github-actions[bot]@users.noreply.github.com',\n // The git config user.name used by Socket CLI.\n SOCKET_CLI_GIT_USER_NAME:\n envAsString(env['SOCKET_CLI_GIT_USER_NAME']) ||\n envAsString(env['SOCKET_CLI_GIT_USERNAME']) ||\n 'github-actions[bot]',\n // Change the base URL for GitHub REST API calls.\n // https://docs.github.com/en/rest\n SOCKET_CLI_GITHUB_API_URL:\n envAsString(env['SOCKET_CLI_GITHUB_API_URL']) ||\n readOrDefaultSocketJson(process.cwd())?.defaults?.scan?.github\n ?.githubApiUrl ||\n 'https://api.github.com',\n // A classic GitHub personal access token with the \"repo\" scope or a\n // fine-grained access token with at least read/write permissions set for\n // \"Contents\" and \"Pull Request\".\n // https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\n SOCKET_CLI_GITHUB_TOKEN:\n envAsString(env['SOCKET_CLI_GITHUB_TOKEN']) ||\n // TODO: Remove undocumented legacy environment variable name.\n envAsString(env['SOCKET_SECURITY_GITHUB_PAT']) ||\n GITHUB_TOKEN,\n // Make the default API token `undefined`.\n SOCKET_CLI_NO_API_TOKEN: envAsBoolean(env['SOCKET_CLI_NO_API_TOKEN']),\n // The absolute location of the npm directory.\n SOCKET_CLI_NPM_PATH: envAsString(env['SOCKET_CLI_NPM_PATH']),\n // Specify the Socket organization slug.\n SOCKET_CLI_ORG_SLUG:\n envAsString(env['SOCKET_CLI_ORG_SLUG']) ||\n // Coana CLI accepts the SOCKET_ORG_SLUG environment variable.\n envAsString(env['SOCKET_ORG_SLUG']),\n // View all risks of a Socket wrapped npm/npx run.\n SOCKET_CLI_VIEW_ALL_RISKS: envAsBoolean(env[SOCKET_CLI_VIEW_ALL_RISKS]),\n // Override the public patch API proxy URL for socket-patch.\n SOCKET_PATCH_PROXY_URL: envAsString(env['SOCKET_PATCH_PROXY_URL']),\n // Specifies the type of terminal or terminal emulator being used by the process.\n TERM: envAsString(env['TERM']),\n // Redefine registryConstants.ENV.VITEST to account for the\n // INLINED_SOCKET_CLI_PUBLISHED_BUILD environment variable.\n VITEST: INLINED_SOCKET_CLI_PUBLISHED_BUILD\n ? false\n : envAsBoolean(process.env[VITEST]),\n })\n}\n\nconst lazyBashRcPath = () => path.join(constants.homePath, '.bashrc')\n\nconst lazyBinPath = () => path.join(constants.rootPath, 'bin')\n\nconst lazyBinCliPath = () => path.join(constants.binPath, 'cli.js')\n\nconst lazyBlessedContribPath = () =>\n path.join(constants.externalPath, 'blessed-contrib')\n\nconst lazyBlessedOptions = () =>\n Object.freeze({\n smartCSR: true,\n term: constants.WIN32 ? 'windows-ansi' : 'xterm',\n useBCE: true,\n })\n\nconst lazyBlessedPath = () => path.join(constants.externalPath, 'blessed')\n\nconst lazyDistCliPath = () => path.join(constants.distPath, 'cli.js')\n\nconst lazyDistPath = () => path.join(constants.rootPath, 'dist')\n\nconst lazyExternalPath = () => path.join(constants.rootPath, 'external')\n\nconst lazyGithubCachePath = () => path.join(constants.socketCachePath, 'github')\n\nconst lazyHomePath = () => os.homedir()\n\nconst lazyInstrumentWithSentryPath = () =>\n path.join(constants.distPath, 'instrument-with-sentry.js')\n\nconst lazyMinimumVersionByAgent = () =>\n new Map([\n // Bun >=1.1.39 supports the text-based lockfile.\n // https://bun.sh/blog/bun-lock-text-lockfile\n [BUN, '1.1.39'],\n // The npm version bundled with Node 18.\n // https://nodejs.org/en/about/previous-releases#looking-for-the-latest-release-of-a-version-branch\n [NPM, '10.8.2'],\n // 8.x is the earliest version to support Node 18.\n // https://pnpm.io/installation#compatibility\n // https://www.npmjs.com/package/pnpm?activeTab=versions\n [PNPM, '8.15.7'],\n // 4.x supports >= Node 18.12.0\n // https://github.com/yarnpkg/berry/blob/%40yarnpkg/core/4.1.0/CHANGELOG.md#400\n [YARN_BERRY, '4.0.0'],\n // Latest 1.x.\n // https://www.npmjs.com/package/yarn?activeTab=versions\n [YARN_CLASSIC, '1.22.22'],\n // vlt does not support overrides so we don't gate on it.\n [VLT, '*'],\n ])\n\nconst lazyNmBinPath = () => path.join(constants.rootPath, 'node_modules/.bin')\n\nconst lazyNodeDebugFlags = () =>\n constants.ENV.SOCKET_CLI_DEBUG ? ['--trace-uncaught', '--trace-warnings'] : []\n\n// Redefine registryConstants.nodeHardenFlags to account for the\n// INLINED_SOCKET_CLI_SENTRY_BUILD environment variable.\nconst lazyNodeHardenFlags = () =>\n Object.freeze(\n // Harden Node security.\n // https://nodejs.org/en/learn/getting-started/security-best-practices\n constants.ENV.INLINED_SOCKET_CLI_SENTRY_BUILD || constants.WIN32\n ? [\n // https://nodejs.org/api/cli.html#--disallow-code-generation-from-strings\n // '--disallow-code-generation-from-strings'\n ]\n : [\n // '--disallow-code-generation-from-strings',\n // https://nodejs.org/api/cli.html#--disable-protomode\n // '--disable-proto',\n // 'throw',\n // https://nodejs.org/api/cli.html#--frozen-intrinsics\n // We have contributed the following patches to our dependencies to make\n // Node's --frozen-intrinsics workable.\n // √ https://github.com/SBoudrias/Inquirer.js/pull/1683\n // √ https://github.com/pnpm/components/pull/23\n // '--frozen-intrinsics',\n // https://nodejs.org/api/cli.html#--no-deprecation\n // '--no-deprecation',\n ],\n )\n\nconst lazyNodeMemoryFlags = () => {\n const flags = /*@__PURE__*/ require(\n path.join(constants.rootPath, 'dist/flags.js'),\n )\n const getMaxOldSpaceSizeFlag = flags.getMaxOldSpaceSizeFlag\n const getMaxSemiSpaceSizeFlag = flags.getMaxSemiSpaceSizeFlag\n return Object.freeze([\n `--max-old-space-size=${getMaxOldSpaceSizeFlag()}`,\n `--max-semi-space-size=${getMaxSemiSpaceSizeFlag()}`,\n ])\n}\n\nconst lazyNpmCachePath = () => {\n const spawnHelpers = /*@__PURE__*/ require('@socketsecurity/registry/lib/spawn')\n const spawnSync = spawnHelpers.spawnSync\n return spawnSync(\n constants.npmExecPath,\n ['config', 'get', 'cache'],\n getNpmStdioPipeOptions(),\n ).stdout\n}\n\nconst lazyNpmGlobalPrefix = () => {\n const spawnHelpers = /*@__PURE__*/ require('@socketsecurity/registry/lib/spawn')\n const spawnSync = spawnHelpers.spawnSync\n return spawnSync(\n constants.npmExecPath,\n ['prefix', '-g'],\n getNpmStdioPipeOptions(),\n ).stdout\n}\n\nconst lazyNpmNmNodeGypPath = () =>\n path.join(\n constants.npmRealExecPath,\n '../../node_modules/node-gyp/bin/node-gyp.js',\n )\n\nconst lazyProcessEnv = () =>\n Object.setPrototypeOf(\n Object.fromEntries(\n Object.entries(constants.ENV).reduce(\n (entries, entry) => {\n const { 0: key, 1: value } = entry\n if (key.startsWith('INLINED_SOCKET_CLI_')) {\n return entries\n }\n if (typeof value === 'string') {\n if (value) {\n entries.push(entry as [string, string])\n }\n } else if (typeof value === 'boolean' && value) {\n entries.push([key, '1'])\n }\n return entries\n },\n [] as Array<[string, string]>,\n ),\n ),\n null,\n )\n\nconst lazyRootPath = () => path.join(realpathSync.native(__dirname), '..')\n\nconst lazyShadowBinPath = () => path.join(constants.rootPath, 'shadow-npm-bin')\n\nconst lazyShadowNpmBinPath = () =>\n path.join(constants.distPath, 'shadow-npm-bin.js')\n\nconst lazyShadowNpmInjectPath = () =>\n path.join(constants.distPath, 'shadow-npm-inject.js')\n\nconst lazyShadowNpxBinPath = () =>\n path.join(constants.distPath, 'shadow-npx-bin.js')\n\nconst lazyShadowPnpmBinPath = () =>\n path.join(constants.distPath, 'shadow-pnpm-bin.js')\n\nconst lazyShadowYarnBinPath = () =>\n path.join(constants.distPath, 'shadow-yarn-bin.js')\n\nconst lazySocketAppDataPath = (): string | undefined => {\n // Get the OS app data directory:\n // - Win: %LOCALAPPDATA% or fail?\n // - Mac: %XDG_DATA_HOME% or fallback to \"~/Library/Application Support/\"\n // - Linux: %XDG_DATA_HOME% or fallback to \"~/.local/share/\"\n // Note: LOCALAPPDATA is typically: C:\\Users\\USERNAME\\AppData\n // Note: XDG stands for \"X Desktop Group\", nowadays \"freedesktop.org\"\n // On most systems that path is: $HOME/.local/share\n // Then append `socket/settings`, so:\n // - Win: %LOCALAPPDATA%\\socket\\settings or return undefined\n // - Mac: %XDG_DATA_HOME%/socket/settings or \"~/Library/Application Support/socket/settings\"\n // - Linux: %XDG_DATA_HOME%/socket/settings or \"~/.local/share/socket/settings\"\n const { WIN32 } = constants\n let dataHome: string | undefined = WIN32\n ? constants.ENV.LOCALAPPDATA\n : constants.ENV.XDG_DATA_HOME\n if (!dataHome) {\n if (WIN32) {\n const logger = /*@__PURE__*/ require('@socketsecurity/registry/lib/logger')\n logger.warn(`Missing %LOCALAPPDATA%.`)\n } else {\n dataHome = path.join(\n constants.homePath,\n constants.DARWIN ? 'Library/Application Support' : '.local/share',\n )\n }\n }\n return dataHome ? path.join(dataHome, 'socket/settings') : undefined\n}\n\nconst lazySocketCachePath = () => path.join(constants.rootPath, '.cache')\n\nconst lazySocketRegistryPath = () =>\n path.join(constants.externalPath, '@socketsecurity/registry')\n\nconst lazyZshRcPath = () => path.join(constants.homePath, '.zshrc')\n\nconst constants: Constants = createConstantsObject(\n {\n ...registryConstantsAttribs.props,\n ALERT_TYPE_CRITICAL_CVE,\n ALERT_TYPE_CVE,\n ALERT_TYPE_MEDIUM_CVE,\n ALERT_TYPE_MILD_CVE,\n API_V0_URL,\n BUN,\n CONFIG_KEY_API_BASE_URL,\n CONFIG_KEY_API_PROXY,\n CONFIG_KEY_API_TOKEN,\n CONFIG_KEY_AUTH_TYPE,\n CONFIG_KEY_DEFAULT_ORG,\n CONFIG_KEY_ENFORCED_ORGS,\n CONFIG_KEY_ORG,\n DOT_GIT_DIR,\n DOT_SOCKET_DIR,\n DOT_SOCKET_DOT_FACTS_JSON,\n DRY_RUN_BAILING_NOW,\n DRY_RUN_LABEL,\n DRY_RUN_NOT_SAVING,\n ENV: undefined,\n ENVIRONMENT_YAML,\n ENVIRONMENT_YML,\n ERROR_NO_MANIFEST_FILES,\n ERROR_NO_PACKAGE_JSON,\n ERROR_NO_REPO_FOUND,\n ERROR_NO_SOCKET_DIR,\n ERROR_UNABLE_RESOLVE_ORG,\n EXT_YAML,\n EXT_YML,\n FLAG_CONFIG,\n FLAG_DRY_RUN,\n FLAG_HELP,\n FLAG_HELP_FULL,\n FLAG_ID,\n FLAG_JSON,\n FLAG_LOGLEVEL,\n FLAG_MARKDOWN,\n FLAG_ORG,\n FLAG_PIN,\n FLAG_PROD,\n FLAG_QUIET,\n FLAG_SILENT,\n FLAG_TEXT,\n FLAG_VERBOSE,\n FLAG_VERSION,\n FOLD_SETTING_FILE,\n FOLD_SETTING_NONE,\n FOLD_SETTING_PKG,\n FOLD_SETTING_VERSION,\n GQL_PAGE_SENTINEL,\n GQL_PR_STATE_CLOSED,\n GQL_PR_STATE_MERGED,\n GQL_PR_STATE_OPEN,\n HTTP_STATUS_BAD_REQUEST,\n HTTP_STATUS_FORBIDDEN,\n HTTP_STATUS_INTERNAL_SERVER_ERROR,\n HTTP_STATUS_NOT_FOUND,\n HTTP_STATUS_UNAUTHORIZED,\n NODE_MODULES,\n NPM_BUGGY_OVERRIDES_PATCHED_VERSION,\n NPM_REGISTRY_URL,\n NPX,\n OUTPUT_JSON,\n OUTPUT_MARKDOWN,\n OUTPUT_TEXT,\n PACKAGE_JSON,\n PACKAGE_LOCK_JSON,\n PNPM,\n PNPM_LOCK_YAML,\n PNPM_WORKSPACE_YAML,\n REDACTED,\n REPORT_LEVEL_DEFER,\n REPORT_LEVEL_ERROR,\n REPORT_LEVEL_IGNORE,\n REPORT_LEVEL_MONITOR,\n REPORT_LEVEL_WARN,\n REQUIREMENTS_TXT,\n SCAN_TYPE_SOCKET,\n SCAN_TYPE_SOCKET_TIER1,\n SOCKET_CLI_ACCEPT_RISKS,\n SOCKET_CLI_BIN_NAME,\n SOCKET_CLI_ISSUES_URL,\n SOCKET_CLI_SHADOW_ACCEPT_RISKS,\n SOCKET_CLI_SHADOW_API_TOKEN,\n SOCKET_CLI_SHADOW_BIN,\n SOCKET_CLI_SHADOW_PROGRESS,\n SOCKET_CLI_SHADOW_SILENT,\n SOCKET_CLI_VIEW_ALL_RISKS,\n SOCKET_DEFAULT_BRANCH,\n SOCKET_DEFAULT_REPOSITORY,\n SOCKET_JSON,\n SOCKET_WEBSITE_URL,\n SOCKET_YAML,\n SOCKET_YML,\n TSCONFIG_JSON,\n UNKNOWN_ERROR,\n UNKNOWN_VALUE,\n V1_MIGRATION_GUIDE_URL,\n VLT,\n YARN,\n YARN_BERRY,\n YARN_CLASSIC,\n bashRcPath: undefined,\n binPath: undefined,\n binCliPath: undefined,\n blessedContribPath: undefined,\n blessedOptions: undefined,\n blessedPath: undefined,\n distCliPath: undefined,\n distPath: undefined,\n externalPath: undefined,\n githubCachePath: undefined,\n homePath: undefined,\n instrumentWithSentryPath: undefined,\n minimumVersionByAgent: undefined,\n nmBinPath: undefined,\n nodeHardenFlags: undefined,\n nodeDebugFlags: undefined,\n nodeMemoryFlags: undefined,\n npmCachePath: undefined,\n npmGlobalPrefix: undefined,\n npmNmNodeGypPath: undefined,\n processEnv: undefined,\n rootPath: undefined,\n shadowBinPath: undefined,\n shadowNpmInjectPath: undefined,\n shadowNpmBinPath: undefined,\n shadowPnpmBinPath: undefined,\n shadowYarnBinPath: undefined,\n socketAppDataPath: undefined,\n socketCachePath: undefined,\n socketRegistryPath: undefined,\n zshRcPath: undefined,\n },\n {\n getters: {\n ...registryConstantsAttribs.getters,\n ENV: LAZY_ENV,\n bashRcPath: lazyBashRcPath,\n binCliPath: lazyBinCliPath,\n binPath: lazyBinPath,\n blessedContribPath: lazyBlessedContribPath,\n blessedOptions: lazyBlessedOptions,\n blessedPath: lazyBlessedPath,\n distCliPath: lazyDistCliPath,\n distPath: lazyDistPath,\n externalPath: lazyExternalPath,\n githubCachePath: lazyGithubCachePath,\n homePath: lazyHomePath,\n instrumentWithSentryPath: lazyInstrumentWithSentryPath,\n minimumVersionByAgent: lazyMinimumVersionByAgent,\n nmBinPath: lazyNmBinPath,\n nodeDebugFlags: lazyNodeDebugFlags,\n nodeHardenFlags: lazyNodeHardenFlags,\n nodeMemoryFlags: lazyNodeMemoryFlags,\n npmCachePath: lazyNpmCachePath,\n npmGlobalPrefix: lazyNpmGlobalPrefix,\n npmNmNodeGypPath: lazyNpmNmNodeGypPath,\n processEnv: lazyProcessEnv,\n rootPath: lazyRootPath,\n shadowBinPath: lazyShadowBinPath,\n shadowNpmBinPath: lazyShadowNpmBinPath,\n shadowNpmInjectPath: lazyShadowNpmInjectPath,\n shadowNpxBinPath: lazyShadowNpxBinPath,\n shadowPnpmBinPath: lazyShadowPnpmBinPath,\n shadowYarnBinPath: lazyShadowYarnBinPath,\n socketAppDataPath: lazySocketAppDataPath,\n socketCachePath: lazySocketCachePath,\n socketRegistryPath: lazySocketRegistryPath,\n zshRcPath: lazyZshRcPath,\n },\n internals: {\n ...registryConstantsAttribs.internals,\n getIpc,\n getSentry() {\n return _Sentry\n },\n setSentry(Sentry: Sentry): boolean {\n if (_Sentry === undefined) {\n _Sentry = Sentry\n return true\n }\n return false\n },\n },\n },\n) as Constants\n\nexport {\n // Re-exported from socket-registry.\n AT_LATEST,\n BIOME_JSON,\n BUN,\n CI,\n COLUMN_LIMIT,\n DOT_GIT_DIR,\n DOT_PACKAGE_LOCK_JSON,\n DOT_SOCKET_DIR,\n EMPTY_FILE,\n EMPTY_VALUE,\n ESLINT_CONFIG_JS,\n ESNEXT,\n EXTENSIONS,\n EXTENSIONS_JSON,\n EXT_CJS,\n EXT_CMD,\n EXT_CTS,\n EXT_DTS,\n EXT_JS,\n EXT_JSON,\n EXT_LOCK,\n EXT_LOCKB,\n EXT_MD,\n EXT_MJS,\n EXT_MTS,\n EXT_PS1,\n EXT_YAML,\n EXT_YML,\n GITIGNORE,\n LATEST,\n LICENSE,\n LICENSE_GLOB,\n LICENSE_GLOB_RECURSIVE,\n LICENSE_ORIGINAL,\n LICENSE_ORIGINAL_GLOB,\n LICENSE_ORIGINAL_GLOB_RECURSIVE,\n LOOP_SENTINEL,\n MANIFEST_JSON,\n MIT,\n NODE_AUTH_TOKEN,\n NODE_ENV,\n NODE_MODULES,\n NODE_MODULES_GLOB_RECURSIVE,\n NPM,\n NPX,\n OVERRIDES,\n PACKAGE_DEFAULT_VERSION,\n PACKAGE_JSON,\n PACKAGE_LOCK_JSON,\n PNPM,\n PNPM_LOCK_YAML,\n PRE_COMMIT,\n README_GLOB,\n README_GLOB_RECURSIVE,\n README_MD,\n REGISTRY,\n REGISTRY_SCOPE_DELIMITER,\n RESOLUTIONS,\n SOCKET_GITHUB_ORG,\n SOCKET_IPC_HANDSHAKE,\n SOCKET_OVERRIDE_SCOPE,\n SOCKET_PUBLIC_API_TOKEN,\n SOCKET_REGISTRY_NPM_ORG,\n SOCKET_REGISTRY_PACKAGE_NAME,\n SOCKET_REGISTRY_REPO_NAME,\n SOCKET_REGISTRY_SCOPE,\n SOCKET_SECURITY_SCOPE,\n TSCONFIG_JSON,\n UNKNOWN_ERROR,\n UNKNOWN_VALUE,\n UNLICENCED,\n UNLICENSED,\n UTF8,\n VITEST,\n VLT,\n YARN,\n YARN_BERRY,\n YARN_CLASSIC,\n YARN_LOCK,\n // Socket CLI specific constants.\n ALERT_TYPE_CRITICAL_CVE,\n ALERT_TYPE_CVE,\n ALERT_TYPE_MEDIUM_CVE,\n ALERT_TYPE_MILD_CVE,\n API_V0_URL,\n COANA_CLI_VERSION,\n CONFIG_KEY_API_BASE_URL,\n CONFIG_KEY_API_PROXY,\n CONFIG_KEY_API_TOKEN,\n CONFIG_KEY_AUTH_TYPE,\n CONFIG_KEY_DEFAULT_ORG,\n CONFIG_KEY_ENFORCED_ORGS,\n CONFIG_KEY_ORG,\n DLX_BINARY_CACHE_TTL,\n DOT_SOCKET_DOT_FACTS_JSON,\n DRY_RUN_BAILING_NOW,\n DRY_RUN_LABEL,\n DRY_RUN_NOT_SAVING,\n ENVIRONMENT_YAML,\n ENVIRONMENT_YML,\n ERROR_NO_MANIFEST_FILES,\n ERROR_NO_PACKAGE_JSON,\n ERROR_NO_REPO_FOUND,\n ERROR_NO_SOCKET_DIR,\n ERROR_UNABLE_RESOLVE_ORG,\n FLAG_CONFIG,\n FLAG_DRY_RUN,\n FLAG_HELP,\n FLAG_HELP_FULL,\n FLAG_ID,\n FLAG_JSON,\n FLAG_LOGLEVEL,\n FLAG_MARKDOWN,\n FLAG_ORG,\n FLAG_PIN,\n FLAG_PROD,\n FLAG_QUIET,\n FLAG_SILENT,\n FLAG_TEXT,\n FLAG_VERBOSE,\n FLAG_VERSION,\n FOLD_SETTING_FILE,\n FOLD_SETTING_NONE,\n FOLD_SETTING_PKG,\n FOLD_SETTING_VERSION,\n GQL_PAGE_SENTINEL,\n GQL_PR_STATE_CLOSED,\n GQL_PR_STATE_MERGED,\n GQL_PR_STATE_OPEN,\n HTTP_STATUS_BAD_REQUEST,\n HTTP_STATUS_FORBIDDEN,\n HTTP_STATUS_INTERNAL_SERVER_ERROR,\n HTTP_STATUS_NOT_FOUND,\n HTTP_STATUS_UNAUTHORIZED,\n NPM_BUGGY_OVERRIDES_PATCHED_VERSION,\n NPM_REGISTRY_URL,\n OUTPUT_JSON,\n OUTPUT_MARKDOWN,\n OUTPUT_TEXT,\n PNPM_WORKSPACE_YAML,\n REDACTED,\n REPORT_LEVEL_DEFER,\n REPORT_LEVEL_ERROR,\n REPORT_LEVEL_IGNORE,\n REPORT_LEVEL_MONITOR,\n REPORT_LEVEL_WARN,\n REQUIREMENTS_TXT,\n SCAN_TYPE_SOCKET,\n SCAN_TYPE_SOCKET_TIER1,\n SOCKET_CLI_ACCEPT_RISKS,\n SOCKET_CLI_BIN_NAME,\n SOCKET_CLI_ISSUES_URL,\n SOCKET_CLI_SHADOW_ACCEPT_RISKS,\n SOCKET_CLI_SHADOW_API_TOKEN,\n SOCKET_CLI_SHADOW_BIN,\n SOCKET_CLI_SHADOW_PROGRESS,\n SOCKET_CLI_SHADOW_SILENT,\n SOCKET_CLI_VIEW_ALL_RISKS,\n SOCKET_DEFAULT_BRANCH,\n SOCKET_DEFAULT_REPOSITORY,\n SOCKET_JSON,\n SOCKET_WEBSITE_URL,\n SOCKET_YAML,\n SOCKET_YML,\n V1_MIGRATION_GUIDE_URL,\n}\n\nexport default constants\n"],"names":["attributes","getIpc","_npmStdioPipeOptions","cwd","env","__proto__","DISABLE_GITHUB_CACHE","GITHUB_BASE_REF","GITHUB_REF_NAME","GITHUB_REF_TYPE","GITHUB_REPOSITORY","NODE_EXTRA_CA_CERTS","envAsString","npm_config_cache","npm_config_user_agent","PATH","SOCKET_CLI_ACCEPT_RISKS","SOCKET_CLI_DEBUG","SOCKET_CLI_API_BASE_URL","SOCKET_CLI_API_PROXY","SOCKET_CLI_API_TIMEOUT","SOCKET_CLI_API_TOKEN","SOCKET_CLI_CONFIG","SOCKET_CLI_GIT_USER_NAME","SOCKET_CLI_GITHUB_TOKEN","SOCKET_CLI_NO_API_TOKEN","SOCKET_CLI_NPM_PATH","SOCKET_CLI_ORG_SLUG","SOCKET_CLI_VIEW_ALL_RISKS","SOCKET_PATCH_PROXY_URL","TERM","VITEST","smartCSR","term","useBCE","constants","entries","WIN32","logger","dataHome","ENV","bashRcPath","binPath","binCliPath","blessedContribPath","blessedOptions","blessedPath","distCliPath","distPath","externalPath","githubCachePath","homePath","instrumentWithSentryPath","minimumVersionByAgent","nmBinPath","nodeHardenFlags","nodeDebugFlags","nodeMemoryFlags","npmCachePath","npmGlobalPrefix","npmNmNodeGypPath","processEnv","rootPath","shadowBinPath","shadowNpmInjectPath","shadowNpmBinPath","shadowPnpmBinPath","shadowYarnBinPath","socketAppDataPath","socketCachePath","socketRegistryPath","zshRcPath","getters","shadowNpxBinPath","internals","getSentry","_Sentry"],"mappings":";;;;;;;;;;;;AAYA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFE;AACEA;;AAEAC;AACF;AACF;AAmFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAwJA;AAEA;AACA;;AAEIC;AACEC;AACA;AACA;AACA;;;AAGJ;AACA;AACF;AAEA;;AACUC;AAAI;AACZ;AACA;AAGA;AACA;AACA;AACA;AACA;;;AAKA;AACA;;AAEEC;AACA;;AAEA;AACA;AACAC;AACA;AACA;;AAGA;AACA;AACA;AACA;AACAC;AACA;AACA;AACA;AACA;AACAC;AACA;AACA;AACAC;AACA;AACA;AACAC;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAEA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAOA;AACA;AACA;AACA;AACAC;AAEE;AACA;AACAC;AACF;AACA;AACAC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAC;AACA;AACA;AACA;AACAC;AACA;AACAC;AACA;AACAC;AACA;AACA;AACAC;AAEE;AACAN;AAGF;AACA;AACAO;AAEE;AACAP;AACA;AACA;AACAA;AAIF;AACA;AACAQ;AACA;AACA;AACAC;AAEE;;AAIF;AACAC;AACA;;AAIA;AACAC;AAIA;AACA;;AAMA;AACA;AACA;AACA;AACAC;AAEE;AACAZ;AAEF;AACAa;AACA;AACAC;AACA;AACAC;AAEE;AACAf;AACF;AACAgB;AACA;AACAC;AACA;AACAC;AACA;AACA;AACAC;AAGF;AACF;AAEA;AAEA;AAEA;AAEA;AAGA;AAEIC;AACAC;AACAC;AACF;AAEF;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AAGA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGJ;AAEA;;AAGA;AACA;AACA;AAEI;AACA;AACAC;AAEM;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAIV;AACE;AAGA;AACA;AACA;AAIF;AAEA;AACE;AACA;AACA;AAKF;AAEA;AACE;AACA;AACA;AAKF;AAEA;AAMA;;AAKkB;AAAQ;AAAS;AACzB;AACE;AACF;AACA;AACE;AACEC;AACF;;;AAGF;AACA;AACF;AAOR;AAEA;AAEA;AAGA;AAGA;AAGA;AAGA;AAGA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACQC;AAAM;AACd;;AAIE;AACE;AACAC;AACF;AACEC;AAIF;AACF;;AAEF;AAEA;AAEA;AAGA;AAEA;;;;;;;;;;;;;;;;;;;;;AAsBIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACF;AAEEC;;AAEEhC;AACAC;AACAE;AACAD;AACAE;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAE;AACAD;AACAE;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAE;AACAD;AACAS;AACAP;AACAC;AACAC;AACAC;AACAC;AACAC;;AAEFG;;;AAGEC;AACE;;;;AAIEC;AACA;AACF;AACA;AACF;AACF;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","debugId":"f56eaacb-37ee-40fa-8fec-d825182f3b21"}
1
+ {"version":3,"file":"constants.js","sources":["../src/constants.mts"],"sourcesContent":["import { readFileSync, realpathSync } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport os from 'node:os'\nimport path from 'node:path'\nimport { fileURLToPath } from 'node:url'\n\nimport registryConstants from '@socketsecurity/registry/lib/constants'\n\nimport type { Agent } from './utils/package-environment.mts'\nimport type { Remap } from '@socketsecurity/registry/lib/objects'\nimport type { SpawnOptions } from '@socketsecurity/registry/lib/spawn'\n\nconst require = createRequire(import.meta.url)\nconst __filename = fileURLToPath(import.meta.url)\n// Using `path.dirname(__filename)` to resolve `__dirname` works for both 'dist'\n// AND 'src' directories because constants.js and constants.mts respectively are\n// in the root of each.\nconst __dirname = path.dirname(__filename)\n\nconst {\n AT_LATEST,\n BIOME_JSON,\n BUN,\n CI,\n COLUMN_LIMIT,\n DOT_GIT_DIR,\n DOT_PACKAGE_LOCK_JSON,\n DOT_SOCKET_DIR,\n EMPTY_FILE,\n EMPTY_VALUE,\n ESLINT_CONFIG_JS,\n ESNEXT,\n EXT_CJS,\n EXT_CMD,\n EXT_CTS,\n EXT_DTS,\n EXT_JS,\n EXT_JSON,\n EXT_LOCK,\n EXT_LOCKB,\n EXT_MD,\n EXT_MJS,\n EXT_MTS,\n EXT_PS1,\n EXT_YAML,\n EXT_YML,\n EXTENSIONS,\n EXTENSIONS_JSON,\n GITIGNORE,\n LATEST,\n LICENSE,\n LICENSE_GLOB,\n LICENSE_GLOB_RECURSIVE,\n LICENSE_ORIGINAL,\n LICENSE_ORIGINAL_GLOB,\n LICENSE_ORIGINAL_GLOB_RECURSIVE,\n LOOP_SENTINEL,\n MANIFEST_JSON,\n MIT,\n NODE_AUTH_TOKEN,\n NODE_ENV,\n NODE_MODULES,\n NODE_MODULES_GLOB_RECURSIVE,\n NPM,\n NPX,\n OVERRIDES,\n PACKAGE_DEFAULT_VERSION,\n PACKAGE_JSON,\n PACKAGE_LOCK_JSON,\n PNPM,\n PNPM_LOCK_YAML,\n PRE_COMMIT,\n README_GLOB,\n README_GLOB_RECURSIVE,\n README_MD,\n REGISTRY,\n REGISTRY_SCOPE_DELIMITER,\n RESOLUTIONS,\n SOCKET_GITHUB_ORG,\n SOCKET_IPC_HANDSHAKE,\n SOCKET_OVERRIDE_SCOPE,\n SOCKET_PUBLIC_API_TOKEN,\n SOCKET_REGISTRY_NPM_ORG,\n SOCKET_REGISTRY_PACKAGE_NAME,\n SOCKET_REGISTRY_REPO_NAME,\n SOCKET_REGISTRY_SCOPE,\n SOCKET_SECURITY_SCOPE,\n TSCONFIG_JSON,\n UNKNOWN_ERROR,\n UNKNOWN_VALUE,\n UNLICENCED,\n UNLICENSED,\n UTF8,\n VITEST,\n VLT,\n YARN,\n YARN_BERRY,\n YARN_CLASSIC,\n YARN_LOCK,\n kInternalsSymbol,\n [kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: {\n attributes: registryConstantsAttribs,\n createConstantsObject,\n getIpc,\n },\n} = registryConstants\n\nexport type RegistryEnv = typeof registryConstants.ENV\n\nexport type RegistryInternals =\n (typeof registryConstants)['Symbol(kInternalsSymbol)']\n\nexport type Sentry = any\n\nexport type Internals = Remap<\n Omit<RegistryInternals, 'getIpc'> &\n Readonly<{\n getIpc: {\n (): Promise<IpcObject>\n <K extends keyof IpcObject | undefined>(\n key?: K | undefined,\n ): Promise<K extends keyof IpcObject ? IpcObject[K] : IpcObject>\n }\n getSentry: () => Sentry\n setSentry(Sentry: Sentry): boolean\n }>\n>\n\nexport type ENV = Remap<\n RegistryEnv &\n Readonly<{\n DISABLE_GITHUB_CACHE: boolean\n GITHUB_API_URL: string\n GITHUB_BASE_REF: string\n GITHUB_REF_NAME: string\n GITHUB_REF_TYPE: string\n GITHUB_REPOSITORY: string\n GITHUB_SERVER_URL: string\n GITHUB_TOKEN: string\n INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: string\n INLINED_SOCKET_CLI_HOMEPAGE: string\n INLINED_SOCKET_CLI_LEGACY_BUILD: string\n INLINED_SOCKET_CLI_NAME: string\n INLINED_SOCKET_CLI_PUBLISHED_BUILD: string\n INLINED_SOCKET_CLI_SENTRY_BUILD: string\n INLINED_SOCKET_CLI_VERSION: string\n INLINED_SOCKET_CLI_VERSION_HASH: string\n INLINED_SOCKET_CLI_SYNP_VERSION: string\n LOCALAPPDATA: string\n NODE_COMPILE_CACHE: string\n NODE_EXTRA_CA_CERTS: string\n npm_config_cache: string\n npm_config_user_agent: string\n PATH: string\n SOCKET_CLI_ACCEPT_RISKS: boolean\n SOCKET_CLI_DEBUG: boolean\n SOCKET_CLI_API_BASE_URL: string\n SOCKET_CLI_API_PROXY: string\n SOCKET_CLI_API_TIMEOUT: number\n SOCKET_CLI_API_TOKEN: string\n SOCKET_CLI_CONFIG: string\n SOCKET_CLI_GIT_USER_EMAIL: string\n SOCKET_CLI_GIT_USER_NAME: string\n SOCKET_CLI_GITHUB_TOKEN: string\n SOCKET_CLI_NO_API_TOKEN: boolean\n SOCKET_CLI_NPM_PATH: string\n SOCKET_CLI_ORG_SLUG: string\n SOCKET_CLI_SOCKET_PATCH_PATH: string\n SOCKET_CLI_VIEW_ALL_RISKS: boolean\n SOCKET_PATCH_PROXY_URL: string\n TERM: string\n XDG_DATA_HOME: string\n }>\n>\n\nexport type IpcObject = Readonly<{\n SOCKET_CLI_FIX?: string | undefined\n SOCKET_CLI_OPTIMIZE?: boolean | undefined\n SOCKET_CLI_SHADOW_ACCEPT_RISKS?: boolean | undefined\n SOCKET_CLI_SHADOW_API_TOKEN?: string | undefined\n SOCKET_CLI_SHADOW_BIN?: string | undefined\n SOCKET_CLI_SHADOW_PROGRESS?: boolean | undefined\n SOCKET_CLI_SHADOW_SILENT?: boolean | undefined\n}>\n\nexport type ProcessEnv = {\n [K in keyof ENV]?: string | undefined\n}\n\n// Socket CLI specific constants that are not in socket-registry.\nconst ALERT_TYPE_CRITICAL_CVE = 'criticalCVE'\nconst ALERT_TYPE_CVE = 'cve'\nconst ALERT_TYPE_MEDIUM_CVE = 'mediumCVE'\nconst ALERT_TYPE_MILD_CVE = 'mildCVE'\nconst API_V0_URL = 'https://api.socket.dev/v0/'\n// The Coana CLI version Socket CLI runs by default. Coana's release workflow\n// rewrites this line in its bump PRs.\nconst COANA_CLI_VERSION = '15.15.3'\nconst CONFIG_KEY_API_BASE_URL = 'apiBaseUrl'\nconst CONFIG_KEY_API_PROXY = 'apiProxy'\nconst CONFIG_KEY_API_TOKEN = 'apiToken'\nconst CONFIG_KEY_AUTH_TYPE = 'authType'\nconst CONFIG_KEY_DEFAULT_ORG = 'defaultOrg'\nconst CONFIG_KEY_ENFORCED_ORGS = 'enforcedOrgs'\nconst CONFIG_KEY_ORG = 'org'\n// The Socket facts filename. The file itself is generated by the Coana CLI's\n// `manifest` commands; this constant must match the filename Coana emits.\nconst DOT_SOCKET_DOT_FACTS_JSON = `${DOT_SOCKET_DIR}.facts.json`\nconst DRY_RUN_LABEL = '[DryRun]'\nconst DRY_RUN_BAILING_NOW = `${DRY_RUN_LABEL}: Bailing now`\nconst DRY_RUN_NOT_SAVING = `${DRY_RUN_LABEL}: Not saving`\nconst ENVIRONMENT_YAML = 'environment.yaml'\nconst ENVIRONMENT_YML = 'environment.yml'\nconst ERROR_NO_MANIFEST_FILES = 'No manifest files found'\nconst ERROR_NO_PACKAGE_JSON = 'No package.json found'\nconst ERROR_NO_REPO_FOUND = 'No repo found'\nconst ERROR_NO_SOCKET_DIR = 'No .socket directory found'\nconst ERROR_UNABLE_RESOLVE_ORG =\n 'Unable to resolve a Socket account organization'\nconst FLAG_CONFIG = '--config'\nconst FLAG_DRY_RUN = '--dry-run'\nconst FLAG_HELP = '--help'\nconst FLAG_HELP_FULL = '--help-full'\nconst FLAG_ID = '--id'\nconst FLAG_JSON = '--json'\nconst FLAG_LOGLEVEL = '--loglevel'\nconst FLAG_MARKDOWN = '--markdown'\nconst FLAG_ORG = '--org'\nconst FLAG_PIN = '--pin'\nconst FLAG_PROD = '--prod'\nconst FLAG_QUIET = '--quiet'\nconst FLAG_SILENT = '--silent'\nconst FLAG_TEXT = '--text'\nconst FLAG_VERBOSE = '--verbose'\nconst FLAG_VERSION = '--version'\nconst FOLD_SETTING_FILE = 'file'\nconst FOLD_SETTING_NONE = 'none'\nconst FOLD_SETTING_PKG = 'pkg'\nconst FOLD_SETTING_VERSION = 'version'\nconst GQL_PAGE_SENTINEL = 100\nconst GQL_PR_STATE_CLOSED = 'CLOSED'\nconst GQL_PR_STATE_MERGED = 'MERGED'\nconst GQL_PR_STATE_OPEN = 'OPEN'\nconst HTTP_STATUS_BAD_REQUEST = 400\nconst HTTP_STATUS_FORBIDDEN = 403\nconst HTTP_STATUS_INTERNAL_SERVER_ERROR = 500\nconst HTTP_STATUS_NOT_FOUND = 404\nconst HTTP_STATUS_UNAUTHORIZED = 401\nconst NPM_BUGGY_OVERRIDES_PATCHED_VERSION = '11.2.0'\nconst NPM_REGISTRY_URL = 'https://registry.npmjs.org'\nconst OUTPUT_JSON = 'json'\nconst OUTPUT_MARKDOWN = 'markdown'\nconst OUTPUT_TEXT = 'text'\nconst PNPM_WORKSPACE_YAML = 'pnpm-workspace.yaml'\nconst REDACTED = '<redacted>'\nconst REPORT_LEVEL_DEFER = 'defer'\nconst REPORT_LEVEL_ERROR = 'error'\nconst REPORT_LEVEL_IGNORE = 'ignore'\nconst REPORT_LEVEL_MONITOR = 'monitor'\nconst REPORT_LEVEL_WARN = 'warn'\nconst REQUIREMENTS_TXT = 'requirements.txt'\nconst SOCKET_CLI_ACCEPT_RISKS = 'SOCKET_CLI_ACCEPT_RISKS'\n// The variables socket-cli reads the Socket API token from, first one first.\nconst SOCKET_CLI_API_TOKEN_VARIABLES = [\n 'SOCKET_CLI_API_TOKEN',\n // TODO: Remove legacy environment variable names.\n 'SOCKET_CLI_API_KEY',\n 'SOCKET_SECURITY_API_TOKEN',\n 'SOCKET_SECURITY_API_KEY',\n] as const\nconst SOCKET_CLI_BIN_NAME = 'socket'\nconst SOCKET_CLI_ISSUES_URL = 'https://github.com/SocketDev/socket-cli/issues'\nconst SOCKET_CLI_SHADOW_ACCEPT_RISKS = 'SOCKET_CLI_SHADOW_ACCEPT_RISKS'\nconst SOCKET_CLI_SHADOW_API_TOKEN = 'SOCKET_CLI_SHADOW_API_TOKEN'\nconst SOCKET_CLI_SHADOW_BIN = 'SOCKET_CLI_SHADOW_BIN'\nconst SOCKET_CLI_SHADOW_PROGRESS = 'SOCKET_CLI_SHADOW_PROGRESS'\nconst SOCKET_CLI_SHADOW_SILENT = 'SOCKET_CLI_SHADOW_SILENT'\nconst SOCKET_CLI_VIEW_ALL_RISKS = 'SOCKET_CLI_VIEW_ALL_RISKS'\nconst SCAN_TYPE_SOCKET = 'socket'\nconst SCAN_TYPE_SOCKET_TIER1 = 'socket_tier1'\nconst SOCKET_DEFAULT_BRANCH = 'socket-default-branch'\nconst SOCKET_DEFAULT_REPOSITORY = 'socket-default-repository'\nconst SOCKET_JSON = 'socket.json'\nconst SOCKET_WEBSITE_URL = 'https://socket.dev'\nconst SOCKET_YAML = 'socket.yaml'\nconst SOCKET_YML = 'socket.yml'\nconst V1_MIGRATION_GUIDE_URL = 'https://docs.socket.dev/docs/v1-migration-guide'\n\nexport type Constants = Remap<\n Omit<\n typeof registryConstants,\n 'Symbol(kInternalsSymbol)' | 'ENV' | 'ipcObject'\n > & {\n readonly 'Symbol(kInternalsSymbol)': Internals\n readonly ALERT_TYPE_CRITICAL_CVE: typeof ALERT_TYPE_CRITICAL_CVE\n readonly ALERT_TYPE_CVE: typeof ALERT_TYPE_CVE\n readonly ALERT_TYPE_MEDIUM_CVE: typeof ALERT_TYPE_MEDIUM_CVE\n readonly ALERT_TYPE_MILD_CVE: typeof ALERT_TYPE_MILD_CVE\n readonly API_V0_URL: typeof API_V0_URL\n readonly BUN: typeof BUN\n readonly CONFIG_KEY_API_BASE_URL: typeof CONFIG_KEY_API_BASE_URL\n readonly CONFIG_KEY_API_PROXY: typeof CONFIG_KEY_API_PROXY\n readonly CONFIG_KEY_API_TOKEN: typeof CONFIG_KEY_API_TOKEN\n readonly CONFIG_KEY_AUTH_TYPE: typeof CONFIG_KEY_AUTH_TYPE\n readonly CONFIG_KEY_DEFAULT_ORG: typeof CONFIG_KEY_DEFAULT_ORG\n readonly CONFIG_KEY_ENFORCED_ORGS: typeof CONFIG_KEY_ENFORCED_ORGS\n readonly CONFIG_KEY_ORG: typeof CONFIG_KEY_ORG\n readonly DOT_GIT_DIR: typeof DOT_GIT_DIR\n readonly DOT_SOCKET_DIR: typeof DOT_SOCKET_DIR\n readonly DOT_SOCKET_DOT_FACTS_JSON: typeof DOT_SOCKET_DOT_FACTS_JSON\n readonly DRY_RUN_BAILING_NOW: typeof DRY_RUN_BAILING_NOW\n readonly DRY_RUN_LABEL: typeof DRY_RUN_LABEL\n readonly DRY_RUN_NOT_SAVING: typeof DRY_RUN_NOT_SAVING\n readonly EMPTY_VALUE: typeof EMPTY_VALUE\n readonly ENV: ENV\n readonly ENVIRONMENT_YAML: typeof ENVIRONMENT_YAML\n readonly ENVIRONMENT_YML: typeof ENVIRONMENT_YML\n readonly ERROR_NO_MANIFEST_FILES: typeof ERROR_NO_MANIFEST_FILES\n readonly ERROR_NO_PACKAGE_JSON: typeof ERROR_NO_PACKAGE_JSON\n readonly ERROR_NO_REPO_FOUND: typeof ERROR_NO_REPO_FOUND\n readonly ERROR_NO_SOCKET_DIR: typeof ERROR_NO_SOCKET_DIR\n readonly ERROR_UNABLE_RESOLVE_ORG: typeof ERROR_UNABLE_RESOLVE_ORG\n readonly EXT_YAML: typeof EXT_YAML\n readonly EXT_YML: typeof EXT_YML\n readonly FLAG_CONFIG: typeof FLAG_CONFIG\n readonly FLAG_DRY_RUN: typeof FLAG_DRY_RUN\n readonly FLAG_HELP: typeof FLAG_HELP\n readonly FLAG_ID: typeof FLAG_ID\n readonly FLAG_JSON: typeof FLAG_JSON\n readonly FLAG_LOGLEVEL: typeof FLAG_LOGLEVEL\n readonly FLAG_MARKDOWN: typeof FLAG_MARKDOWN\n readonly FLAG_ORG: typeof FLAG_ORG\n readonly FLAG_PIN: typeof FLAG_PIN\n readonly FLAG_PROD: typeof FLAG_PROD\n readonly FLAG_QUIET: typeof FLAG_QUIET\n readonly FLAG_SILENT: typeof FLAG_SILENT\n readonly FLAG_TEXT: typeof FLAG_TEXT\n readonly FLAG_VERBOSE: typeof FLAG_VERBOSE\n readonly FLAG_VERSION: typeof FLAG_VERSION\n readonly FOLD_SETTING_FILE: typeof FOLD_SETTING_FILE\n readonly FOLD_SETTING_NONE: typeof FOLD_SETTING_NONE\n readonly FOLD_SETTING_PKG: typeof FOLD_SETTING_PKG\n readonly FOLD_SETTING_VERSION: typeof FOLD_SETTING_VERSION\n readonly GQL_PAGE_SENTINEL: typeof GQL_PAGE_SENTINEL\n readonly GQL_PR_STATE_CLOSED: typeof GQL_PR_STATE_CLOSED\n readonly GQL_PR_STATE_MERGED: typeof GQL_PR_STATE_MERGED\n readonly GQL_PR_STATE_OPEN: typeof GQL_PR_STATE_OPEN\n readonly HTTP_STATUS_BAD_REQUEST: typeof HTTP_STATUS_BAD_REQUEST\n readonly HTTP_STATUS_FORBIDDEN: typeof HTTP_STATUS_FORBIDDEN\n readonly HTTP_STATUS_INTERNAL_SERVER_ERROR: typeof HTTP_STATUS_INTERNAL_SERVER_ERROR\n readonly HTTP_STATUS_NOT_FOUND: typeof HTTP_STATUS_NOT_FOUND\n readonly HTTP_STATUS_UNAUTHORIZED: typeof HTTP_STATUS_UNAUTHORIZED\n readonly NODE_MODULES: typeof NODE_MODULES\n readonly NPM: typeof NPM\n readonly NPM_BUGGY_OVERRIDES_PATCHED_VERSION: typeof NPM_BUGGY_OVERRIDES_PATCHED_VERSION\n readonly NPM_REGISTRY_URL: typeof NPM_REGISTRY_URL\n readonly NPX: typeof NPX\n readonly OUTPUT_JSON: typeof OUTPUT_JSON\n readonly OUTPUT_MARKDOWN: typeof OUTPUT_MARKDOWN\n readonly OUTPUT_TEXT: typeof OUTPUT_TEXT\n readonly PACKAGE_JSON: typeof PACKAGE_JSON\n readonly PACKAGE_LOCK_JSON: typeof PACKAGE_LOCK_JSON\n readonly PNPM: typeof PNPM\n readonly PNPM_LOCK_YAML: typeof PNPM_LOCK_YAML\n readonly PNPM_WORKSPACE_YAML: typeof PNPM_WORKSPACE_YAML\n readonly REDACTED: typeof REDACTED\n readonly REPORT_LEVEL_DEFER: typeof REPORT_LEVEL_DEFER\n readonly REPORT_LEVEL_ERROR: typeof REPORT_LEVEL_ERROR\n readonly REPORT_LEVEL_IGNORE: typeof REPORT_LEVEL_IGNORE\n readonly REPORT_LEVEL_MONITOR: typeof REPORT_LEVEL_MONITOR\n readonly REPORT_LEVEL_WARN: typeof REPORT_LEVEL_WARN\n readonly REQUIREMENTS_TXT: typeof REQUIREMENTS_TXT\n readonly SCAN_TYPE_SOCKET: typeof SCAN_TYPE_SOCKET\n readonly SCAN_TYPE_SOCKET_TIER1: typeof SCAN_TYPE_SOCKET_TIER1\n readonly SOCKET_CLI_ACCEPT_RISKS: typeof SOCKET_CLI_ACCEPT_RISKS\n readonly SOCKET_CLI_BIN_NAME: typeof SOCKET_CLI_BIN_NAME\n readonly SOCKET_CLI_ISSUES_URL: typeof SOCKET_CLI_ISSUES_URL\n readonly SOCKET_CLI_SHADOW_ACCEPT_RISKS: typeof SOCKET_CLI_SHADOW_ACCEPT_RISKS\n readonly SOCKET_CLI_SHADOW_API_TOKEN: typeof SOCKET_CLI_SHADOW_API_TOKEN\n readonly SOCKET_CLI_SHADOW_BIN: typeof SOCKET_CLI_SHADOW_BIN\n readonly SOCKET_CLI_SHADOW_PROGRESS: typeof SOCKET_CLI_SHADOW_PROGRESS\n readonly SOCKET_CLI_SHADOW_SILENT: typeof SOCKET_CLI_SHADOW_SILENT\n readonly SOCKET_CLI_VIEW_ALL_RISKS: typeof SOCKET_CLI_VIEW_ALL_RISKS\n readonly SOCKET_DEFAULT_BRANCH: typeof SOCKET_DEFAULT_BRANCH\n readonly SOCKET_DEFAULT_REPOSITORY: typeof SOCKET_DEFAULT_REPOSITORY\n readonly SOCKET_JSON: typeof SOCKET_JSON\n readonly SOCKET_WEBSITE_URL: typeof SOCKET_WEBSITE_URL\n readonly SOCKET_YAML: typeof SOCKET_YAML\n readonly SOCKET_YML: typeof SOCKET_YML\n readonly TSCONFIG_JSON: typeof TSCONFIG_JSON\n readonly UNKNOWN_ERROR: typeof UNKNOWN_ERROR\n readonly UNKNOWN_VALUE: typeof UNKNOWN_VALUE\n readonly V1_MIGRATION_GUIDE_URL: typeof V1_MIGRATION_GUIDE_URL\n readonly VLT: typeof VLT\n readonly YARN: typeof YARN\n readonly YARN_BERRY: typeof YARN_BERRY\n readonly YARN_CLASSIC: typeof YARN_CLASSIC\n readonly bashRcPath: string\n readonly binCliPath: string\n readonly binPath: string\n readonly blessedContribPath: string\n readonly blessedOptions: {\n smartCSR: boolean\n term: string\n useBCE: boolean\n }\n readonly blessedPath: string\n readonly distCliPath: string\n readonly distPath: string\n readonly externalPath: string\n readonly githubCachePath: string\n readonly homePath: string\n readonly instrumentWithSentryPath: string\n readonly ipcObject: IpcObject\n readonly minimumVersionByAgent: Map<Agent, string>\n readonly nmBinPath: string\n readonly nodeDebugFlags: string[]\n readonly nodeHardenFlags: string[]\n readonly nodeMemoryFlags: string[]\n readonly npmCachePath: string\n readonly npmGlobalPrefix: string\n readonly npmNmNodeGypPath: string\n readonly processEnv: ProcessEnv\n readonly rootPath: string\n readonly shadowBinPath: string\n readonly shadowNpmBinPath: string\n readonly shadowNpmInjectPath: string\n readonly shadowNpxBinPath: string\n readonly shadowPnpmBinPath: string\n readonly shadowYarnBinPath: string\n readonly socketAppDataPath: string\n readonly socketCachePath: string\n readonly socketRegistryPath: string\n readonly zshRcPath: string\n }\n>\n\nlet _Sentry: any\n\nlet _npmStdioPipeOptions: SpawnOptions | undefined\nfunction getNpmStdioPipeOptions() {\n if (_npmStdioPipeOptions === undefined) {\n _npmStdioPipeOptions = {\n cwd: process.cwd(),\n // On Windows, npm is often a .cmd file that requires shell execution.\n // The spawn function from @socketsecurity/registry will handle this properly\n // when shell is true.\n shell: constants.WIN32,\n }\n }\n return _npmStdioPipeOptions\n}\n\nconst LAZY_ENV = () => {\n const { env } = process\n const envHelpers = /*@__PURE__*/ require('@socketsecurity/registry/lib/env')\n const envAsBoolean = envHelpers.envAsBoolean\n const envAsNumber = envHelpers.envAsNumber\n const envAsString = envHelpers.envAsString\n // Keep this leaf independent from dist/utils.js. That chunk imports\n // constants.js, so requiring it here forms a runtime cycle that Node SEA's\n // VFS loader cannot safely resolve.\n const savedConfigValue = (key: string): string | undefined => {\n try {\n const raw = readFileSync(\n path.join(constants.socketAppDataPath, 'config.json'),\n 'utf8',\n )\n const config = JSON.parse(\n Buffer.from(raw, 'base64').toString(),\n ) as Record<string, unknown>\n const value = config[key]\n return typeof value === 'string' ? value : undefined\n } catch {\n return undefined\n }\n }\n const socketJson = (() => {\n try {\n return JSON.parse(\n readFileSync(path.join(process.cwd(), SOCKET_JSON), 'utf8'),\n ) as {\n defaults?: { scan?: { github?: { githubApiUrl?: string } } }\n }\n } catch {\n return undefined\n }\n })()\n const GITHUB_TOKEN = envAsString(env['GITHUB_TOKEN'])\n const INLINED_SOCKET_CLI_PUBLISHED_BUILD = envAsBoolean(\n process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD'],\n )\n // We inline some environment values so that they CANNOT be influenced by user\n // provided environment variables.\n return Object.freeze({\n __proto__: null,\n // Lazily access registryConstants.ENV.\n ...registryConstants.ENV,\n // Disable using GitHub's workflow actions/cache.\n // https://github.com/actions/cache\n DISABLE_GITHUB_CACHE: envAsBoolean(env['DISABLE_GITHUB_CACHE']),\n // The API URL. For example, https://api.github.com.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_API_URL:\n envAsString(env['GITHUB_API_URL']) || 'https://api.github.com',\n // The name of the base ref or target branch of the pull request in a workflow\n // run. This is only set when the event that triggers a workflow run is either\n // pull_request or pull_request_target. For example, main.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_BASE_REF: envAsString(env['GITHUB_BASE_REF']),\n // The short ref name of the branch or tag that triggered the GitHub workflow\n // run. This value matches the branch or tag name shown on GitHub. For example,\n // feature-branch-1. For pull requests, the format is <pr_number>/merge.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_REF_NAME: envAsString(env['GITHUB_REF_NAME']),\n // The type of ref that triggered the workflow run. Valid values are branch or tag.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_REF_TYPE: envAsString(env['GITHUB_REF_TYPE']),\n // The owner and repository name. For example, octocat/Hello-World.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_REPOSITORY: envAsString(env['GITHUB_REPOSITORY']),\n // The URL of the GitHub server. For example, https://github.com.\n // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables\n GITHUB_SERVER_URL:\n envAsString(env['GITHUB_SERVER_URL']) || 'https://github.com',\n // The GITHUB_TOKEN secret is a GitHub App installation access token.\n // The token's permissions are limited to the repository that contains the\n // workflow.\n // https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#about-the-github_token-secret\n GITHUB_TOKEN,\n // Comp-time inlined @cyclonedx/cdxgen package version.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION']\".\n INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: envAsString(\n process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION'],\n ),\n // Comp-time inlined Socket package homepage.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_HOMEPAGE']\".\n INLINED_SOCKET_CLI_HOMEPAGE: envAsString(\n process.env['INLINED_SOCKET_CLI_HOMEPAGE'],\n ),\n // Comp-time inlined flag to determine if this is the Legacy build.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_LEGACY_BUILD']\".\n INLINED_SOCKET_CLI_LEGACY_BUILD: envAsBoolean(\n process.env['INLINED_SOCKET_CLI_LEGACY_BUILD'],\n ),\n // Comp-time inlined Socket package name.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_NAME']\".\n INLINED_SOCKET_CLI_NAME: envAsString(\n process.env['INLINED_SOCKET_CLI_NAME'],\n ),\n // Comp-time inlined flag to determine if this is a published build.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\".\n INLINED_SOCKET_CLI_PUBLISHED_BUILD,\n // Comp-time inlined flag to determine if this is the Sentry build.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']\".\n INLINED_SOCKET_CLI_SENTRY_BUILD: envAsBoolean(\n process.env['INLINED_SOCKET_CLI_SENTRY_BUILD'],\n ),\n // Comp-time inlined synp package version.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SYNP_VERSION']\".\n INLINED_SOCKET_CLI_SYNP_VERSION: envAsString(\n process.env['INLINED_SOCKET_CLI_SYNP_VERSION'],\n ),\n // Comp-time inlined Socket package version.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION']\".\n INLINED_SOCKET_CLI_VERSION: envAsString(\n process.env['INLINED_SOCKET_CLI_VERSION'],\n ),\n // Comp-time inlined Socket package version hash.\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION_HASH']\".\n INLINED_SOCKET_CLI_VERSION_HASH: envAsString(\n process.env['INLINED_SOCKET_CLI_VERSION_HASH'],\n ),\n // Enable the module compile cache for the Node.js instance.\n // https://nodejs.org/api/cli.html#node_compile_cachedir\n NODE_COMPILE_CACHE: constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR\n ? constants.socketCachePath\n : '',\n // Redefine registryConstants.ENV.NODE_ENV to account for the\n // INLINED_SOCKET_CLI_PUBLISHED_BUILD environment variable.\n NODE_ENV:\n envAsString(env['NODE_ENV']).toLowerCase() === 'production'\n ? 'production'\n : INLINED_SOCKET_CLI_PUBLISHED_BUILD\n ? ''\n : 'development',\n // Well known \"root\" CAs (like VeriSign) will be extended with the extra\n // certificates in file. The file should consist of one or more trusted\n // certificates in PEM format.\n // https://nodejs.org/api/cli.html#node_extra_ca_certsfile\n NODE_EXTRA_CA_CERTS:\n envAsString(env['NODE_EXTRA_CA_CERTS']) ||\n // Commonly used environment variable to specify the path to a single\n // PEM-encoded certificate file.\n envAsString(env['SSL_CERT_FILE']),\n // npm cache directory path. Used to detect if running from npm's npx cache\n // for temporary execution contexts.\n npm_config_cache: envAsString(env['npm_config_cache']),\n // Package manager user agent string that identifies which package manager\n // is executing commands. Used to detect temporary execution contexts like\n // npx, pnpm dlx, or yarn dlx.\n // Expected values:\n // - npm: 'npm/version node/version os arch' (e.g., 'npm/10.0.0 node/v20.0.0 darwin x64')\n // - npx: Similar to npm but may include 'npx' or 'exec' in the string\n // - yarn: 'yarn/version npm/? node/version os arch' (e.g., 'yarn/1.22.0 npm/? node/v20.0.0 darwin x64')\n // - pnpm: 'pnpm/version node/version os arch' (Note: Not set for pnpm dlx/create/init)\n // - When running via exec/npx/dlx, the string may contain 'exec', 'npx', or 'dlx'\n npm_config_user_agent: envAsString(env['npm_config_user_agent']),\n // PATH is an environment variable that lists directories where executable\n // programs are located. When a command is run, the system searches these\n // directories to find the executable.\n PATH: envAsString(env['PATH']),\n // Accept risks of a Socket wrapped npm/npx run.\n SOCKET_CLI_ACCEPT_RISKS: envAsBoolean(env[SOCKET_CLI_ACCEPT_RISKS]),\n // Enable debug logging in Socket CLI.\n SOCKET_CLI_DEBUG: envAsBoolean(env['SOCKET_CLI_DEBUG']),\n // Change the base URL for Socket API calls.\n // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development\n SOCKET_CLI_API_BASE_URL:\n envAsString(env['SOCKET_CLI_API_BASE_URL']) ||\n // TODO: Remove legacy environment variable name.\n envAsString(env['SOCKET_SECURITY_API_BASE_URL']) ||\n savedConfigValue('apiBaseUrl') ||\n API_V0_URL,\n // Set the proxy that all requests are routed through.\n // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development\n SOCKET_CLI_API_PROXY:\n envAsString(env['SOCKET_CLI_API_PROXY']) ||\n // TODO: Remove legacy environment variable name.\n envAsString(env['SOCKET_SECURITY_API_PROXY']) ||\n // Commonly used environment variables to specify routing requests through\n // a proxy server.\n envAsString(env['HTTPS_PROXY']) ||\n envAsString(env['https_proxy']) ||\n envAsString(env['HTTP_PROXY']) ||\n envAsString(env['http_proxy']),\n // Set the timeout in milliseconds for Socket API requests.\n // https://nodejs.org/api/http.html#httprequesturl-options-callback\n SOCKET_CLI_API_TIMEOUT: envAsNumber(env['SOCKET_CLI_API_TIMEOUT']),\n // Set the Socket API token.\n // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables\n SOCKET_CLI_API_TOKEN:\n SOCKET_CLI_API_TOKEN_VARIABLES.map(name => envAsString(env[name])).find(\n Boolean,\n ) ?? '',\n // A JSON stringified Socket configuration object.\n SOCKET_CLI_CONFIG: envAsString(env['SOCKET_CLI_CONFIG']),\n // The git config user.email used by Socket CLI.\n SOCKET_CLI_GIT_USER_EMAIL:\n envAsString(env['SOCKET_CLI_GIT_USER_EMAIL']) ||\n 'github-actions[bot]@users.noreply.github.com',\n // The git config user.name used by Socket CLI.\n SOCKET_CLI_GIT_USER_NAME:\n envAsString(env['SOCKET_CLI_GIT_USER_NAME']) ||\n envAsString(env['SOCKET_CLI_GIT_USERNAME']) ||\n 'github-actions[bot]',\n // Change the base URL for GitHub REST API calls.\n // https://docs.github.com/en/rest\n SOCKET_CLI_GITHUB_API_URL:\n envAsString(env['SOCKET_CLI_GITHUB_API_URL']) ||\n socketJson?.defaults?.scan?.github?.githubApiUrl ||\n 'https://api.github.com',\n // A classic GitHub personal access token with the \"repo\" scope or a\n // fine-grained access token with at least read/write permissions set for\n // \"Contents\" and \"Pull Request\".\n // https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\n SOCKET_CLI_GITHUB_TOKEN:\n envAsString(env['SOCKET_CLI_GITHUB_TOKEN']) ||\n // TODO: Remove undocumented legacy environment variable name.\n envAsString(env['SOCKET_SECURITY_GITHUB_PAT']) ||\n GITHUB_TOKEN,\n // Make the default API token `undefined`.\n SOCKET_CLI_NO_API_TOKEN: envAsBoolean(env['SOCKET_CLI_NO_API_TOKEN']),\n // The absolute location of the npm directory.\n SOCKET_CLI_NPM_PATH: envAsString(env['SOCKET_CLI_NPM_PATH']),\n // Specify the Socket organization slug.\n SOCKET_CLI_ORG_SLUG:\n envAsString(env['SOCKET_CLI_ORG_SLUG']) ||\n // Coana CLI accepts the SOCKET_ORG_SLUG environment variable.\n envAsString(env['SOCKET_ORG_SLUG']),\n // Explicit external socket-patch executable for standalone builds.\n SOCKET_CLI_SOCKET_PATCH_PATH: envAsString(\n env['SOCKET_CLI_SOCKET_PATCH_PATH'],\n ),\n // View all risks of a Socket wrapped npm/npx run.\n SOCKET_CLI_VIEW_ALL_RISKS: envAsBoolean(env[SOCKET_CLI_VIEW_ALL_RISKS]),\n // Override the public patch API proxy URL for socket-patch.\n SOCKET_PATCH_PROXY_URL: envAsString(env['SOCKET_PATCH_PROXY_URL']),\n // Specifies the type of terminal or terminal emulator being used by the process.\n TERM: envAsString(env['TERM']),\n // Redefine registryConstants.ENV.VITEST to account for the\n // INLINED_SOCKET_CLI_PUBLISHED_BUILD environment variable.\n VITEST: INLINED_SOCKET_CLI_PUBLISHED_BUILD\n ? false\n : envAsBoolean(process.env[VITEST]),\n })\n}\n\nconst lazyBashRcPath = () => path.join(constants.homePath, '.bashrc')\n\nconst lazyBinPath = () => path.join(constants.rootPath, 'bin')\n\nconst lazyBinCliPath = () => path.join(constants.binPath, 'cli.js')\n\nconst lazyBlessedContribPath = () =>\n path.join(constants.externalPath, 'blessed-contrib')\n\nexport function resolveBlessedTerm(\n term: string | undefined,\n win32: boolean,\n): string {\n return term || (win32 ? 'windows-ansi' : 'xterm')\n}\n\nconst lazyBlessedOptions = () =>\n Object.freeze({\n smartCSR: true,\n term: resolveBlessedTerm(constants.ENV.TERM, constants.WIN32),\n useBCE: true,\n })\n\nconst lazyBlessedPath = () => path.join(constants.externalPath, 'blessed')\n\nconst lazyDistCliPath = () => path.join(constants.distPath, 'cli.js')\n\nconst lazyDistPath = () => path.join(constants.rootPath, 'dist')\n\nconst lazyExternalPath = () => path.join(constants.rootPath, 'external')\n\nconst lazyGithubCachePath = () => path.join(constants.socketCachePath, 'github')\n\nconst lazyHomePath = () => os.homedir()\n\nconst lazyInstrumentWithSentryPath = () =>\n path.join(constants.distPath, 'instrument-with-sentry.js')\n\nconst lazyMinimumVersionByAgent = () =>\n new Map([\n // Bun >=1.1.39 supports the text-based lockfile.\n // https://bun.sh/blog/bun-lock-text-lockfile\n [BUN, '1.1.39'],\n // The npm version bundled with Node 18.\n // https://nodejs.org/en/about/previous-releases#looking-for-the-latest-release-of-a-version-branch\n [NPM, '10.8.2'],\n // 8.x is the earliest version to support Node 18.\n // https://pnpm.io/installation#compatibility\n // https://www.npmjs.com/package/pnpm?activeTab=versions\n [PNPM, '8.15.7'],\n // 4.x supports >= Node 18.12.0\n // https://github.com/yarnpkg/berry/blob/%40yarnpkg/core/4.1.0/CHANGELOG.md#400\n [YARN_BERRY, '4.0.0'],\n // Latest 1.x.\n // https://www.npmjs.com/package/yarn?activeTab=versions\n [YARN_CLASSIC, '1.22.22'],\n // vlt does not support overrides so we don't gate on it.\n [VLT, '*'],\n ])\n\nconst lazyNmBinPath = () => path.join(constants.rootPath, 'node_modules/.bin')\n\nconst lazyNodeDebugFlags = () =>\n constants.ENV.SOCKET_CLI_DEBUG ? ['--trace-uncaught', '--trace-warnings'] : []\n\n// Redefine registryConstants.nodeHardenFlags to account for the\n// INLINED_SOCKET_CLI_SENTRY_BUILD environment variable.\nconst lazyNodeHardenFlags = () =>\n Object.freeze(\n // Harden Node security.\n // https://nodejs.org/en/learn/getting-started/security-best-practices\n constants.ENV.INLINED_SOCKET_CLI_SENTRY_BUILD || constants.WIN32\n ? [\n // https://nodejs.org/api/cli.html#--disallow-code-generation-from-strings\n // '--disallow-code-generation-from-strings'\n ]\n : [\n // '--disallow-code-generation-from-strings',\n // https://nodejs.org/api/cli.html#--disable-protomode\n // '--disable-proto',\n // 'throw',\n // https://nodejs.org/api/cli.html#--frozen-intrinsics\n // We have contributed the following patches to our dependencies to make\n // Node's --frozen-intrinsics workable.\n // √ https://github.com/SBoudrias/Inquirer.js/pull/1683\n // √ https://github.com/pnpm/components/pull/23\n // '--frozen-intrinsics',\n // https://nodejs.org/api/cli.html#--no-deprecation\n // '--no-deprecation',\n ],\n )\n\nconst lazyNodeMemoryFlags = () => {\n const flags = /*@__PURE__*/ require(\n path.join(constants.rootPath, 'dist/flags.js'),\n )\n const getMaxOldSpaceSizeFlag = flags.getMaxOldSpaceSizeFlag\n const getMaxSemiSpaceSizeFlag = flags.getMaxSemiSpaceSizeFlag\n return Object.freeze([\n `--max-old-space-size=${getMaxOldSpaceSizeFlag()}`,\n `--max-semi-space-size=${getMaxSemiSpaceSizeFlag()}`,\n ])\n}\n\nconst lazyNpmCachePath = () => {\n const spawnHelpers = /*@__PURE__*/ require('@socketsecurity/registry/lib/spawn')\n const spawnSync = spawnHelpers.spawnSync\n return spawnSync(\n constants.npmExecPath,\n ['config', 'get', 'cache'],\n getNpmStdioPipeOptions(),\n ).stdout\n}\n\nconst lazyNpmGlobalPrefix = () => {\n const spawnHelpers = /*@__PURE__*/ require('@socketsecurity/registry/lib/spawn')\n const spawnSync = spawnHelpers.spawnSync\n return spawnSync(\n constants.npmExecPath,\n ['prefix', '-g'],\n getNpmStdioPipeOptions(),\n ).stdout\n}\n\nconst lazyNpmNmNodeGypPath = () =>\n path.join(\n constants.npmRealExecPath,\n '../../node_modules/node-gyp/bin/node-gyp.js',\n )\n\nconst lazyProcessEnv = () =>\n Object.setPrototypeOf(\n Object.fromEntries(\n Object.entries(constants.ENV).reduce(\n (entries, entry) => {\n const { 0: key, 1: value } = entry\n if (key.startsWith('INLINED_SOCKET_CLI_')) {\n return entries\n }\n if (typeof value === 'string') {\n if (value) {\n entries.push(entry as [string, string])\n }\n } else if (typeof value === 'boolean' && value) {\n entries.push([key, '1'])\n }\n return entries\n },\n [] as Array<[string, string]>,\n ),\n ),\n null,\n )\n\nconst lazyRootPath = () => {\n // Node SEA's VFS paths are virtual and cannot be canonicalized with native\n // realpath. The bootstrap publishes the archive root before loading the CLI.\n const seaVfsRoot = (\n globalThis as typeof globalThis & { __socketSeaVfsRoot?: string }\n ).__socketSeaVfsRoot\n return seaVfsRoot ?? path.join(realpathSync.native(__dirname), '..')\n}\n\nconst lazyShadowBinPath = () => path.join(constants.rootPath, 'shadow-npm-bin')\n\nconst lazyShadowNpmBinPath = () =>\n path.join(constants.distPath, 'shadow-npm-bin.js')\n\nconst lazyShadowNpmInjectPath = () =>\n path.join(constants.distPath, 'shadow-npm-inject.js')\n\nconst lazyShadowNpxBinPath = () =>\n path.join(constants.distPath, 'shadow-npx-bin.js')\n\nconst lazyShadowPnpmBinPath = () =>\n path.join(constants.distPath, 'shadow-pnpm-bin.js')\n\nconst lazyShadowYarnBinPath = () =>\n path.join(constants.distPath, 'shadow-yarn-bin.js')\n\nconst lazySocketAppDataPath = (): string | undefined => {\n // Get the OS app data directory:\n // - Win: %LOCALAPPDATA% or fail?\n // - Mac: %XDG_DATA_HOME% or fallback to \"~/Library/Application Support/\"\n // - Linux: %XDG_DATA_HOME% or fallback to \"~/.local/share/\"\n // Note: LOCALAPPDATA is typically: C:\\Users\\USERNAME\\AppData\n // Note: XDG stands for \"X Desktop Group\", nowadays \"freedesktop.org\"\n // On most systems that path is: $HOME/.local/share\n // Then append `socket/settings`, so:\n // - Win: %LOCALAPPDATA%\\socket\\settings or return undefined\n // - Mac: %XDG_DATA_HOME%/socket/settings or \"~/Library/Application Support/socket/settings\"\n // - Linux: %XDG_DATA_HOME%/socket/settings or \"~/.local/share/socket/settings\"\n const { WIN32 } = constants\n let dataHome: string | undefined = WIN32\n ? constants.ENV.LOCALAPPDATA\n : constants.ENV.XDG_DATA_HOME\n if (!dataHome) {\n if (WIN32) {\n const {\n logger,\n } = /*@__PURE__*/ require('@socketsecurity/registry/lib/logger')\n logger.warn(`Missing %LOCALAPPDATA%.`)\n } else {\n dataHome = path.join(\n constants.homePath,\n constants.DARWIN ? 'Library/Application Support' : '.local/share',\n )\n }\n }\n return dataHome ? path.join(dataHome, 'socket/settings') : undefined\n}\n\nconst lazySocketCachePath = () => path.join(constants.rootPath, '.cache')\n\nconst lazySocketRegistryPath = () =>\n path.join(constants.externalPath, '@socketsecurity/registry')\n\nconst lazyZshRcPath = () => path.join(constants.homePath, '.zshrc')\n\nconst constants: Constants = createConstantsObject(\n {\n ...registryConstantsAttribs.props,\n ALERT_TYPE_CRITICAL_CVE,\n ALERT_TYPE_CVE,\n ALERT_TYPE_MEDIUM_CVE,\n ALERT_TYPE_MILD_CVE,\n API_V0_URL,\n BUN,\n CONFIG_KEY_API_BASE_URL,\n CONFIG_KEY_API_PROXY,\n CONFIG_KEY_API_TOKEN,\n CONFIG_KEY_AUTH_TYPE,\n CONFIG_KEY_DEFAULT_ORG,\n CONFIG_KEY_ENFORCED_ORGS,\n CONFIG_KEY_ORG,\n DOT_GIT_DIR,\n DOT_SOCKET_DIR,\n DOT_SOCKET_DOT_FACTS_JSON,\n DRY_RUN_BAILING_NOW,\n DRY_RUN_LABEL,\n DRY_RUN_NOT_SAVING,\n ENV: undefined,\n ENVIRONMENT_YAML,\n ENVIRONMENT_YML,\n ERROR_NO_MANIFEST_FILES,\n ERROR_NO_PACKAGE_JSON,\n ERROR_NO_REPO_FOUND,\n ERROR_NO_SOCKET_DIR,\n ERROR_UNABLE_RESOLVE_ORG,\n EXT_YAML,\n EXT_YML,\n FLAG_CONFIG,\n FLAG_DRY_RUN,\n FLAG_HELP,\n FLAG_HELP_FULL,\n FLAG_ID,\n FLAG_JSON,\n FLAG_LOGLEVEL,\n FLAG_MARKDOWN,\n FLAG_ORG,\n FLAG_PIN,\n FLAG_PROD,\n FLAG_QUIET,\n FLAG_SILENT,\n FLAG_TEXT,\n FLAG_VERBOSE,\n FLAG_VERSION,\n FOLD_SETTING_FILE,\n FOLD_SETTING_NONE,\n FOLD_SETTING_PKG,\n FOLD_SETTING_VERSION,\n GQL_PAGE_SENTINEL,\n GQL_PR_STATE_CLOSED,\n GQL_PR_STATE_MERGED,\n GQL_PR_STATE_OPEN,\n HTTP_STATUS_BAD_REQUEST,\n HTTP_STATUS_FORBIDDEN,\n HTTP_STATUS_INTERNAL_SERVER_ERROR,\n HTTP_STATUS_NOT_FOUND,\n HTTP_STATUS_UNAUTHORIZED,\n NODE_MODULES,\n NPM_BUGGY_OVERRIDES_PATCHED_VERSION,\n NPM_REGISTRY_URL,\n NPX,\n OUTPUT_JSON,\n OUTPUT_MARKDOWN,\n OUTPUT_TEXT,\n PACKAGE_JSON,\n PACKAGE_LOCK_JSON,\n PNPM,\n PNPM_LOCK_YAML,\n PNPM_WORKSPACE_YAML,\n REDACTED,\n REPORT_LEVEL_DEFER,\n REPORT_LEVEL_ERROR,\n REPORT_LEVEL_IGNORE,\n REPORT_LEVEL_MONITOR,\n REPORT_LEVEL_WARN,\n REQUIREMENTS_TXT,\n SCAN_TYPE_SOCKET,\n SCAN_TYPE_SOCKET_TIER1,\n SOCKET_CLI_ACCEPT_RISKS,\n SOCKET_CLI_BIN_NAME,\n SOCKET_CLI_ISSUES_URL,\n SOCKET_CLI_SHADOW_ACCEPT_RISKS,\n SOCKET_CLI_SHADOW_API_TOKEN,\n SOCKET_CLI_SHADOW_BIN,\n SOCKET_CLI_SHADOW_PROGRESS,\n SOCKET_CLI_SHADOW_SILENT,\n SOCKET_CLI_VIEW_ALL_RISKS,\n SOCKET_DEFAULT_BRANCH,\n SOCKET_DEFAULT_REPOSITORY,\n SOCKET_JSON,\n SOCKET_WEBSITE_URL,\n SOCKET_YAML,\n SOCKET_YML,\n TSCONFIG_JSON,\n UNKNOWN_ERROR,\n UNKNOWN_VALUE,\n V1_MIGRATION_GUIDE_URL,\n VLT,\n YARN,\n YARN_BERRY,\n YARN_CLASSIC,\n bashRcPath: undefined,\n binPath: undefined,\n binCliPath: undefined,\n blessedContribPath: undefined,\n blessedOptions: undefined,\n blessedPath: undefined,\n distCliPath: undefined,\n distPath: undefined,\n externalPath: undefined,\n githubCachePath: undefined,\n homePath: undefined,\n instrumentWithSentryPath: undefined,\n minimumVersionByAgent: undefined,\n nmBinPath: undefined,\n nodeHardenFlags: undefined,\n nodeDebugFlags: undefined,\n nodeMemoryFlags: undefined,\n npmCachePath: undefined,\n npmGlobalPrefix: undefined,\n npmNmNodeGypPath: undefined,\n processEnv: undefined,\n rootPath: undefined,\n shadowBinPath: undefined,\n shadowNpmInjectPath: undefined,\n shadowNpmBinPath: undefined,\n shadowPnpmBinPath: undefined,\n shadowYarnBinPath: undefined,\n socketAppDataPath: undefined,\n socketCachePath: undefined,\n socketRegistryPath: undefined,\n zshRcPath: undefined,\n },\n {\n getters: {\n ...registryConstantsAttribs.getters,\n ENV: LAZY_ENV,\n bashRcPath: lazyBashRcPath,\n binCliPath: lazyBinCliPath,\n binPath: lazyBinPath,\n blessedContribPath: lazyBlessedContribPath,\n blessedOptions: lazyBlessedOptions,\n blessedPath: lazyBlessedPath,\n distCliPath: lazyDistCliPath,\n distPath: lazyDistPath,\n externalPath: lazyExternalPath,\n githubCachePath: lazyGithubCachePath,\n homePath: lazyHomePath,\n instrumentWithSentryPath: lazyInstrumentWithSentryPath,\n minimumVersionByAgent: lazyMinimumVersionByAgent,\n nmBinPath: lazyNmBinPath,\n nodeDebugFlags: lazyNodeDebugFlags,\n nodeHardenFlags: lazyNodeHardenFlags,\n nodeMemoryFlags: lazyNodeMemoryFlags,\n npmCachePath: lazyNpmCachePath,\n npmGlobalPrefix: lazyNpmGlobalPrefix,\n npmNmNodeGypPath: lazyNpmNmNodeGypPath,\n processEnv: lazyProcessEnv,\n rootPath: lazyRootPath,\n shadowBinPath: lazyShadowBinPath,\n shadowNpmBinPath: lazyShadowNpmBinPath,\n shadowNpmInjectPath: lazyShadowNpmInjectPath,\n shadowNpxBinPath: lazyShadowNpxBinPath,\n shadowPnpmBinPath: lazyShadowPnpmBinPath,\n shadowYarnBinPath: lazyShadowYarnBinPath,\n socketAppDataPath: lazySocketAppDataPath,\n socketCachePath: lazySocketCachePath,\n socketRegistryPath: lazySocketRegistryPath,\n zshRcPath: lazyZshRcPath,\n },\n internals: {\n ...registryConstantsAttribs.internals,\n getIpc,\n getSentry() {\n return _Sentry\n },\n setSentry(Sentry: Sentry): boolean {\n if (_Sentry === undefined) {\n _Sentry = Sentry\n return true\n }\n return false\n },\n },\n },\n) as Constants\n\nexport {\n // Re-exported from socket-registry.\n AT_LATEST,\n BIOME_JSON,\n BUN,\n CI,\n COLUMN_LIMIT,\n DOT_GIT_DIR,\n DOT_PACKAGE_LOCK_JSON,\n DOT_SOCKET_DIR,\n EMPTY_FILE,\n EMPTY_VALUE,\n ESLINT_CONFIG_JS,\n ESNEXT,\n EXTENSIONS,\n EXTENSIONS_JSON,\n EXT_CJS,\n EXT_CMD,\n EXT_CTS,\n EXT_DTS,\n EXT_JS,\n EXT_JSON,\n EXT_LOCK,\n EXT_LOCKB,\n EXT_MD,\n EXT_MJS,\n EXT_MTS,\n EXT_PS1,\n EXT_YAML,\n EXT_YML,\n GITIGNORE,\n LATEST,\n LICENSE,\n LICENSE_GLOB,\n LICENSE_GLOB_RECURSIVE,\n LICENSE_ORIGINAL,\n LICENSE_ORIGINAL_GLOB,\n LICENSE_ORIGINAL_GLOB_RECURSIVE,\n LOOP_SENTINEL,\n MANIFEST_JSON,\n MIT,\n NODE_AUTH_TOKEN,\n NODE_ENV,\n NODE_MODULES,\n NODE_MODULES_GLOB_RECURSIVE,\n NPM,\n NPX,\n OVERRIDES,\n PACKAGE_DEFAULT_VERSION,\n PACKAGE_JSON,\n PACKAGE_LOCK_JSON,\n PNPM,\n PNPM_LOCK_YAML,\n PRE_COMMIT,\n README_GLOB,\n README_GLOB_RECURSIVE,\n README_MD,\n REGISTRY,\n REGISTRY_SCOPE_DELIMITER,\n RESOLUTIONS,\n SOCKET_GITHUB_ORG,\n SOCKET_IPC_HANDSHAKE,\n SOCKET_OVERRIDE_SCOPE,\n SOCKET_PUBLIC_API_TOKEN,\n SOCKET_REGISTRY_NPM_ORG,\n SOCKET_REGISTRY_PACKAGE_NAME,\n SOCKET_REGISTRY_REPO_NAME,\n SOCKET_REGISTRY_SCOPE,\n SOCKET_SECURITY_SCOPE,\n TSCONFIG_JSON,\n UNKNOWN_ERROR,\n UNKNOWN_VALUE,\n UNLICENCED,\n UNLICENSED,\n UTF8,\n VITEST,\n VLT,\n YARN,\n YARN_BERRY,\n YARN_CLASSIC,\n YARN_LOCK,\n // Socket CLI specific constants.\n ALERT_TYPE_CRITICAL_CVE,\n ALERT_TYPE_CVE,\n ALERT_TYPE_MEDIUM_CVE,\n ALERT_TYPE_MILD_CVE,\n API_V0_URL,\n COANA_CLI_VERSION,\n CONFIG_KEY_API_BASE_URL,\n CONFIG_KEY_API_PROXY,\n CONFIG_KEY_API_TOKEN,\n CONFIG_KEY_AUTH_TYPE,\n CONFIG_KEY_DEFAULT_ORG,\n CONFIG_KEY_ENFORCED_ORGS,\n CONFIG_KEY_ORG,\n DOT_SOCKET_DOT_FACTS_JSON,\n DRY_RUN_BAILING_NOW,\n DRY_RUN_LABEL,\n DRY_RUN_NOT_SAVING,\n ENVIRONMENT_YAML,\n ENVIRONMENT_YML,\n ERROR_NO_MANIFEST_FILES,\n ERROR_NO_PACKAGE_JSON,\n ERROR_NO_REPO_FOUND,\n ERROR_NO_SOCKET_DIR,\n ERROR_UNABLE_RESOLVE_ORG,\n FLAG_CONFIG,\n FLAG_DRY_RUN,\n FLAG_HELP,\n FLAG_HELP_FULL,\n FLAG_ID,\n FLAG_JSON,\n FLAG_LOGLEVEL,\n FLAG_MARKDOWN,\n FLAG_ORG,\n FLAG_PIN,\n FLAG_PROD,\n FLAG_QUIET,\n FLAG_SILENT,\n FLAG_TEXT,\n FLAG_VERBOSE,\n FLAG_VERSION,\n FOLD_SETTING_FILE,\n FOLD_SETTING_NONE,\n FOLD_SETTING_PKG,\n FOLD_SETTING_VERSION,\n GQL_PAGE_SENTINEL,\n GQL_PR_STATE_CLOSED,\n GQL_PR_STATE_MERGED,\n GQL_PR_STATE_OPEN,\n HTTP_STATUS_BAD_REQUEST,\n HTTP_STATUS_FORBIDDEN,\n HTTP_STATUS_INTERNAL_SERVER_ERROR,\n HTTP_STATUS_NOT_FOUND,\n HTTP_STATUS_UNAUTHORIZED,\n NPM_BUGGY_OVERRIDES_PATCHED_VERSION,\n NPM_REGISTRY_URL,\n OUTPUT_JSON,\n OUTPUT_MARKDOWN,\n OUTPUT_TEXT,\n PNPM_WORKSPACE_YAML,\n REDACTED,\n REPORT_LEVEL_DEFER,\n REPORT_LEVEL_ERROR,\n REPORT_LEVEL_IGNORE,\n REPORT_LEVEL_MONITOR,\n REPORT_LEVEL_WARN,\n REQUIREMENTS_TXT,\n SCAN_TYPE_SOCKET,\n SCAN_TYPE_SOCKET_TIER1,\n SOCKET_CLI_ACCEPT_RISKS,\n SOCKET_CLI_API_TOKEN_VARIABLES,\n SOCKET_CLI_BIN_NAME,\n SOCKET_CLI_ISSUES_URL,\n SOCKET_CLI_SHADOW_ACCEPT_RISKS,\n SOCKET_CLI_SHADOW_API_TOKEN,\n SOCKET_CLI_SHADOW_BIN,\n SOCKET_CLI_SHADOW_PROGRESS,\n SOCKET_CLI_SHADOW_SILENT,\n SOCKET_CLI_VIEW_ALL_RISKS,\n SOCKET_DEFAULT_BRANCH,\n SOCKET_DEFAULT_REPOSITORY,\n SOCKET_JSON,\n SOCKET_WEBSITE_URL,\n SOCKET_YAML,\n SOCKET_YML,\n V1_MIGRATION_GUIDE_URL,\n}\n\nexport default constants\n"],"names":["attributes","getIpc","_npmStdioPipeOptions","cwd","env","__proto__","DISABLE_GITHUB_CACHE","GITHUB_BASE_REF","GITHUB_REF_NAME","GITHUB_REF_TYPE","GITHUB_REPOSITORY","NODE_EXTRA_CA_CERTS","envAsString","npm_config_cache","npm_config_user_agent","PATH","SOCKET_CLI_ACCEPT_RISKS","SOCKET_CLI_DEBUG","SOCKET_CLI_API_BASE_URL","SOCKET_CLI_API_PROXY","SOCKET_CLI_API_TIMEOUT","SOCKET_CLI_CONFIG","SOCKET_CLI_GIT_USER_NAME","SOCKET_CLI_GITHUB_API_URL","SOCKET_CLI_GITHUB_TOKEN","SOCKET_CLI_NO_API_TOKEN","SOCKET_CLI_NPM_PATH","SOCKET_CLI_ORG_SLUG","SOCKET_CLI_SOCKET_PATCH_PATH","SOCKET_CLI_VIEW_ALL_RISKS","SOCKET_PATCH_PROXY_URL","TERM","VITEST","smartCSR","term","useBCE","constants","entries","WIN32","logger","dataHome","ENV","bashRcPath","binPath","binCliPath","blessedContribPath","blessedOptions","blessedPath","distCliPath","distPath","externalPath","githubCachePath","homePath","instrumentWithSentryPath","minimumVersionByAgent","nmBinPath","nodeHardenFlags","nodeDebugFlags","nodeMemoryFlags","npmCachePath","npmGlobalPrefix","npmNmNodeGypPath","processEnv","rootPath","shadowBinPath","shadowNpmInjectPath","shadowNpmBinPath","shadowPnpmBinPath","shadowYarnBinPath","socketAppDataPath","socketCachePath","socketRegistryPath","zshRcPath","getters","shadowNpxBinPath","internals","getSentry","_Sentry"],"mappings":";;;;;;;;;;;;AAYA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFE;AACEA;;AAEAC;AACF;AACF;AAoFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEE;AACA;AAIF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuJA;AAEA;AACA;;AAEIC;AACEC;AACA;AACA;AACA;;;AAGJ;AACA;AACF;AAEA;;AACUC;AAAI;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGI;AAIA;AAGA;AACA;AACF;AACE;AACF;;;;;AASA;AACE;AACF;AACF;;;AAKA;AACA;;AAEEC;AACA;;AAEA;AACA;AACAC;AACA;AACA;;AAGA;AACA;AACA;AACA;AACAC;AACA;AACA;AACA;AACA;AACAC;AACA;AACA;AACAC;AACA;AACA;AACAC;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAEA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAIA;AACA;;AAOA;AACA;AACA;AACA;AACAC;AAEE;AACA;AACAC;AACF;AACA;AACAC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAC;AACA;AACA;AACA;AACAC;AACA;AACAC;AACA;AACAC;AACA;AACA;AACAC;AAEE;AACAN;AAGF;AACA;AACAO;AAEE;AACAP;AACA;AACA;AACAA;AAIF;AACA;AACAQ;AACA;AACA;;AAKA;AACAC;AACA;;AAIA;AACAC;AAIA;AACA;AACAC;AAIA;AACA;AACA;AACA;AACAC;AAEE;AACAZ;AAEF;AACAa;AACA;AACAC;AACA;AACAC;AAEE;AACAf;AACF;AACAgB;AAGA;AACAC;AACA;AACAC;AACA;AACAC;AACA;AACA;AACAC;AAGF;AACF;AAEA;AAEA;AAEA;AAEA;AAGO;AAIL;AACF;AAEA;AAEIC;AACAC;AACAC;AACF;AAEF;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AAGA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGJ;AAEA;;AAGA;AACA;AACA;AAEI;AACA;AACAC;AAEM;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAIV;AACE;AAGA;AACA;AACA;AAIF;AAEA;AACE;AACA;AACA;AAKF;AAEA;AACE;AACA;AACA;AAKF;AAEA;AAMA;;AAKkB;AAAQ;AAAS;AACzB;AACE;AACF;AACA;AACE;AACEC;AACF;;;AAGF;AACA;AACF;AAOR;AACE;AACA;AACA;AAGA;AACF;AAEA;AAEA;AAGA;AAGA;AAGA;AAGA;AAGA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACQC;AAAM;AACd;;AAIE;;AAEIC;AACF;AACAA;AACF;AACEC;AAIF;AACF;;AAEF;AAEA;AAEA;AAGA;AAEA;;;;;;;;;;;;;;;;;;;;;AAsBIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACF;AAEEC;;AAEEhC;AACAC;AACAE;AACAD;AACAE;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAE;AACAD;AACAE;AACAC;AACAC;AACAC;AACAC;AACAC;AACAC;AACAE;AACAD;AACAS;AACAP;AACAC;AACAC;AACAC;AACAC;AACAC;;AAEFG;;;AAGEC;AACE;;;;AAIEC;AACA;AACF;AACA;AACF;AACF;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","debugId":"6b5122ab-8f29-4fe8-8e13-0e2045c2b4c6"}
@@ -18,7 +18,8 @@
18
18
  "runtime": {
19
19
  "lib/net6.0/Microsoft.Build.Locator.dll": {
20
20
  "assemblyVersion": "1.0.0.0",
21
- "fileVersion": "1.7.8.28074"
21
+ "fileVersion": "1.7.8.28074",
22
+ "localPath": "Microsoft.Build.Locator.dll"
22
23
  }
23
24
  }
24
25
  }
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
- //# sourceMappingURL=cli.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdAnalytics: {
7
7
  };
8
8
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-analytics.d.mts.map
@@ -5,4 +5,3 @@ export type FetchOrgAnalyticsDataOptions = {
5
5
  sdkOpts?: SetupSdkOptions | undefined;
6
6
  };
7
7
  export declare function fetchOrgAnalyticsData(time: number, options?: FetchOrgAnalyticsDataOptions | undefined): Promise<CResult<SocketSdkSuccessResult<'getOrgAnalytics'>['data']>>;
8
- //# sourceMappingURL=fetch-org-analytics.d.mts.map
@@ -5,4 +5,3 @@ export type RepoAnalyticsDataOptions = {
5
5
  sdkOpts?: SetupSdkOptions | undefined;
6
6
  };
7
7
  export declare function fetchRepoAnalyticsData(repo: string, time: number, options?: RepoAnalyticsDataOptions | undefined): Promise<CResult<SocketSdkSuccessResult<'getRepoAnalytics'>['data']>>;
8
- //# sourceMappingURL=fetch-repo-analytics.d.mts.map
@@ -7,4 +7,3 @@ export type HandleAnalyticsConfig = {
7
7
  time: number;
8
8
  };
9
9
  export declare function handleAnalytics({ filepath, outputKind, repo, scope, time }: HandleAnalyticsConfig): Promise<void>;
10
- //# sourceMappingURL=handle-analytics.d.mts.map
@@ -26,4 +26,3 @@ export interface FormattedData {
26
26
  export declare function renderMarkdown(data: FormattedData, days: number, repoSlug: string): string;
27
27
  export declare function formatDataRepo(data: SocketSdkSuccessResult<'getRepoAnalytics'>['data']): FormattedData;
28
28
  export declare function formatDataOrg(data: SocketSdkSuccessResult<'getOrgAnalytics'>['data']): FormattedData;
29
- //# sourceMappingURL=output-analytics.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdAuditLog: {
7
7
  };
8
8
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-audit-log.d.mts.map
@@ -12,4 +12,3 @@ export type FetchAuditLogOptions = {
12
12
  sdkOpts?: SetupSdkOptions | undefined;
13
13
  };
14
14
  export declare function fetchAuditLog(config: FetchAuditLogsConfig, options?: FetchAuditLogOptions | undefined): Promise<CResult<SocketSdkSuccessResult<'getAuditLogEvents'>['data']>>;
15
- //# sourceMappingURL=fetch-audit-log.d.mts.map
@@ -6,4 +6,3 @@ export declare function handleAuditLog({ logType, orgSlug, outputKind, page, per
6
6
  page: number;
7
7
  perPage: number;
8
8
  }): Promise<void>;
9
- //# sourceMappingURL=handle-audit-log.d.mts.map
@@ -19,4 +19,3 @@ export declare function outputAsMarkdown(auditLogs: SocketSdkSuccessResult<'getA
19
19
  perPage: number;
20
20
  logType: string;
21
21
  }): Promise<string>;
22
- //# sourceMappingURL=output-audit-log.d.mts.map
@@ -6,4 +6,3 @@ export declare const cmdCI: {
6
6
  };
7
7
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
8
8
  export {};
9
- //# sourceMappingURL=cmd-ci.d.mts.map
@@ -1,4 +1,3 @@
1
1
  import type { CResult } from '../../types.mts';
2
2
  // Use the config defaultOrg when set, otherwise discover from remote.
3
3
  export declare function getDefaultOrgSlug(silence?: boolean): Promise<CResult<string>>;
4
- //# sourceMappingURL=fetch-default-org-slug.d.mts.map
@@ -6,4 +6,3 @@
6
6
  */
7
7
  export declare function detectCiPullRequestNumber(): number;
8
8
  export declare function handleCi(autoManifest: boolean): Promise<void>;
9
- //# sourceMappingURL=handle-ci.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdConfigAuto: {
7
7
  };
8
8
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-config-auto.d.mts.map
@@ -6,4 +6,3 @@ export declare const cmdConfigGet: {
6
6
  };
7
7
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
8
8
  export {};
9
- //# sourceMappingURL=cmd-config-get.d.mts.map
@@ -6,4 +6,3 @@ export declare const cmdConfigList: {
6
6
  };
7
7
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
8
8
  export {};
9
- //# sourceMappingURL=cmd-config-list.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdConfigSet: {
7
7
  };
8
8
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-config-set.d.mts.map
@@ -7,4 +7,3 @@ export declare const cmdConfigUnset: {
7
7
  };
8
8
  declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
9
9
  export {};
10
- //# sourceMappingURL=cmd-config-unset.d.mts.map
@@ -1,3 +1,2 @@
1
1
  import type { CliSubcommand } from '../../utils/meow-with-subcommands.mts';
2
2
  export declare const cmdConfig: CliSubcommand;
3
- //# sourceMappingURL=cmd-config.d.mts.map
@@ -1,3 +1,2 @@
1
1
  import type { CResult } from '../../types.mts';
2
2
  export declare function discoverConfigValue(key: string): Promise<CResult<unknown>>;
3
- //# sourceMappingURL=discover-config-value.d.mts.map
@@ -4,4 +4,3 @@ export declare function handleConfigAuto({ key, outputKind }: {
4
4
  key: keyof LocalConfig;
5
5
  outputKind: OutputKind;
6
6
  }): Promise<void>;
7
- //# sourceMappingURL=handle-config-auto.d.mts.map
@@ -4,4 +4,3 @@ export declare function handleConfigGet({ key, outputKind }: {
4
4
  key: keyof LocalConfig;
5
5
  outputKind: OutputKind;
6
6
  }): Promise<void>;
7
- //# sourceMappingURL=handle-config-get.d.mts.map