@socketsecurity/cli-with-sentry 0.15.11 → 0.15.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/bin/cli.js +6 -6
  2. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
  3. package/dist/cli.js +5739 -6607
  4. package/dist/cli.js.map +1 -1
  5. package/dist/constants.js +274 -305
  6. package/dist/constants.js.map +1 -1
  7. package/dist/instrument-with-sentry.js +28 -34
  8. package/dist/instrument-with-sentry.js.map +1 -1
  9. package/dist/shadow-bin.js +96 -123
  10. package/dist/shadow-bin.js.map +1 -1
  11. package/dist/shadow-inject.js +470 -580
  12. package/dist/shadow-inject.js.map +1 -1
  13. package/dist/socket-completion.bash +221 -0
  14. package/dist/types/cli.d.mts +2 -2
  15. package/dist/types/commands/analytics/cmd-analytics.d.mts +9 -15
  16. package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -6
  17. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -7
  18. package/dist/types/commands/analytics/handle-analytics.d.mts +9 -15
  19. package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
  20. package/dist/types/commands/analytics/output-analytics.d.mts +26 -46
  21. package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
  22. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +9 -15
  23. package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -16
  24. package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
  25. package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -15
  26. package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -1
  27. package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -47
  28. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  29. package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +9 -15
  30. package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -1
  31. package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +4 -0
  32. package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +1 -0
  33. package/dist/types/commands/ci/cmd-ci.d.mts +9 -15
  34. package/dist/types/commands/ci/fetch-default-org-slug.d.mts +3 -3
  35. package/dist/types/commands/ci/handle-ci.d.mts +2 -2
  36. package/dist/types/commands/config/cmd-config-auto.d.mts +9 -15
  37. package/dist/types/commands/config/cmd-config-get.d.mts +9 -15
  38. package/dist/types/commands/config/cmd-config-list.d.mts +9 -15
  39. package/dist/types/commands/config/cmd-config-set.d.mts +9 -15
  40. package/dist/types/commands/config/cmd-config-unset.d.mts +9 -15
  41. package/dist/types/commands/config/cmd-config.d.mts +3 -3
  42. package/dist/types/commands/config/discover-config-value.d.mts +3 -5
  43. package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
  44. package/dist/types/commands/config/handle-config-auto.d.mts +7 -10
  45. package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -1
  46. package/dist/types/commands/config/handle-config-get.d.mts +7 -10
  47. package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
  48. package/dist/types/commands/config/handle-config-set.d.mts +8 -12
  49. package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
  50. package/dist/types/commands/config/handle-config-unset.d.mts +7 -10
  51. package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -1
  52. package/dist/types/commands/config/output-config-auto.d.mts +4 -8
  53. package/dist/types/commands/config/output-config-get.d.mts +4 -8
  54. package/dist/types/commands/config/output-config-list.d.mts +6 -9
  55. package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
  56. package/dist/types/commands/config/output-config-set.d.mts +3 -6
  57. package/dist/types/commands/config/output-config-unset.d.mts +3 -6
  58. package/dist/types/commands/dependencies/cmd-dependencies.d.mts +9 -15
  59. package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -10
  60. package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -1
  61. package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -11
  62. package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -1
  63. package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -15
  64. package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -1
  65. package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +9 -15
  66. package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -3
  67. package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -12
  68. package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -1
  69. package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -17
  70. package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -1
  71. package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -15
  72. package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -1
  73. package/dist/types/commands/fix/cmd-fix.d.mts +9 -15
  74. package/dist/types/commands/fix/git.d.mts +14 -49
  75. package/dist/types/commands/fix/npm-fix.d.mts +4 -16
  76. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  77. package/dist/types/commands/fix/open-pr.d.mts +20 -46
  78. package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
  79. package/dist/types/commands/fix/pnpm-fix.d.mts +4 -16
  80. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  81. package/dist/types/commands/fix/run-fix.d.mts +3 -3
  82. package/dist/types/commands/fix/shared.d.mts +9 -15
  83. package/dist/types/commands/fix/types.d.mts +16 -16
  84. package/dist/types/commands/info/cmd-info.d.mts +9 -15
  85. package/dist/types/commands/info/fetch-package-info.d.mts +3 -7
  86. package/dist/types/commands/info/handle-package-info.d.mts +15 -22
  87. package/dist/types/commands/info/handle-package-info.d.mts.map +1 -1
  88. package/dist/types/commands/info/output-package-info.d.mts +10 -18
  89. package/dist/types/commands/info/output-package-info.d.mts.map +1 -1
  90. package/dist/types/commands/install/cmd-install-completion.d.mts +10 -0
  91. package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -0
  92. package/dist/types/commands/install/cmd-install.d.mts +3 -0
  93. package/dist/types/commands/install/cmd-install.d.mts.map +1 -0
  94. package/dist/types/commands/install/handle-install-completion.d.mts +2 -0
  95. package/dist/types/commands/install/handle-install-completion.d.mts.map +1 -0
  96. package/dist/types/commands/install/output-install-completion.d.mts +12 -0
  97. package/dist/types/commands/install/output-install-completion.d.mts.map +1 -0
  98. package/dist/types/commands/install/setup-tab-completion.d.mts +13 -0
  99. package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -0
  100. package/dist/types/commands/login/apply-login.d.mts +2 -7
  101. package/dist/types/commands/login/attempt-login.d.mts +2 -5
  102. package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
  103. package/dist/types/commands/login/cmd-login.d.mts +9 -15
  104. package/dist/types/commands/logout/apply-logout.d.mts +2 -2
  105. package/dist/types/commands/logout/attempt-logout.d.mts +2 -2
  106. package/dist/types/commands/logout/cmd-logout.d.mts +9 -15
  107. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +9 -15
  108. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +10 -0
  109. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -0
  110. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +9 -15
  111. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +9 -15
  112. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +9 -15
  113. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +9 -15
  114. package/dist/types/commands/manifest/cmd-manifest.d.mts +9 -15
  115. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
  116. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +7 -15
  117. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -8
  118. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +2 -8
  119. package/dist/types/commands/manifest/handle-manifest-conda.d.mts +3 -9
  120. package/dist/types/commands/manifest/output-requirements.d.mts +6 -10
  121. package/dist/types/commands/{cdxgen → manifest}/run-cdxgen.d.mts +2 -2
  122. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
  123. package/dist/types/commands/npm/cmd-npm.d.mts +9 -15
  124. package/dist/types/commands/npx/cmd-npx.d.mts +9 -15
  125. package/dist/types/commands/oops/cmd-oops.d.mts +9 -15
  126. package/dist/types/commands/optimize/add-overrides.d.mts +18 -22
  127. package/dist/types/commands/optimize/apply-optimization.d.mts +2 -6
  128. package/dist/types/commands/optimize/cmd-optimize.d.mts +9 -15
  129. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -7
  130. package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -5
  131. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +8 -11
  132. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -10
  133. package/dist/types/commands/optimize/ls-by-agent.d.mts +6 -13
  134. package/dist/types/commands/optimize/shared.d.mts +2 -2
  135. package/dist/types/commands/optimize/types.d.mts +7 -7
  136. package/dist/types/commands/optimize/update-lockfile.d.mts +9 -12
  137. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -11
  138. package/dist/types/commands/organization/cmd-organization-list.d.mts +9 -15
  139. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +9 -15
  140. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +9 -15
  141. package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -3
  142. package/dist/types/commands/organization/cmd-organization-quota.d.mts +9 -15
  143. package/dist/types/commands/organization/cmd-organization.d.mts +3 -3
  144. package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -6
  145. package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -6
  146. package/dist/types/commands/organization/fetch-quota.d.mts +4 -6
  147. package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -6
  148. package/dist/types/commands/organization/handle-license-policy.d.mts +3 -6
  149. package/dist/types/commands/organization/handle-organization-list.d.mts +3 -5
  150. package/dist/types/commands/organization/handle-quota.d.mts +3 -3
  151. package/dist/types/commands/organization/handle-security-policy.d.mts +3 -6
  152. package/dist/types/commands/organization/output-license-policy.d.mts +4 -7
  153. package/dist/types/commands/organization/output-organization-list.d.mts +4 -7
  154. package/dist/types/commands/organization/output-quota.d.mts +4 -7
  155. package/dist/types/commands/organization/output-security-policy.d.mts +4 -7
  156. package/dist/types/commands/package/cmd-package-score.d.mts +9 -15
  157. package/dist/types/commands/package/cmd-package-shallow.d.mts +16 -22
  158. package/dist/types/commands/package/cmd-package.d.mts +3 -3
  159. package/dist/types/commands/package/fetch-purl-deep-score.d.mts +49 -51
  160. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -6
  161. package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -6
  162. package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -9
  163. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
  164. package/dist/types/commands/package/output-purl-score.d.mts +4 -8
  165. package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -8
  166. package/dist/types/commands/package/parse-package-specifiers.d.mts +5 -8
  167. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +9 -15
  168. package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -4
  169. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +9 -15
  170. package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -4
  171. package/dist/types/commands/report/cmd-report-create.d.mts +9 -15
  172. package/dist/types/commands/report/cmd-report-view.d.mts +9 -15
  173. package/dist/types/commands/report/cmd-report.d.mts +3 -3
  174. package/dist/types/commands/repos/cmd-repos-create.d.mts +9 -15
  175. package/dist/types/commands/repos/cmd-repos-del.d.mts +9 -15
  176. package/dist/types/commands/repos/cmd-repos-list.d.mts +9 -15
  177. package/dist/types/commands/repos/cmd-repos-update.d.mts +9 -15
  178. package/dist/types/commands/repos/cmd-repos-view.d.mts +9 -15
  179. package/dist/types/commands/repos/cmd-repos.d.mts +3 -3
  180. package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -18
  181. package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -1
  182. package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -7
  183. package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -16
  184. package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -1
  185. package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -18
  186. package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -1
  187. package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -7
  188. package/dist/types/commands/repos/handle-create-repo.d.mts +10 -20
  189. package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -1
  190. package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -7
  191. package/dist/types/commands/repos/handle-list-repos.d.mts +10 -17
  192. package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -1
  193. package/dist/types/commands/repos/handle-update-repo.d.mts +10 -20
  194. package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -1
  195. package/dist/types/commands/repos/handle-view-repo.d.mts +3 -7
  196. package/dist/types/commands/repos/output-create-repo.d.mts +4 -8
  197. package/dist/types/commands/repos/output-delete-repo.d.mts +4 -8
  198. package/dist/types/commands/repos/output-list-repos.d.mts +4 -7
  199. package/dist/types/commands/repos/output-update-repo.d.mts +4 -8
  200. package/dist/types/commands/repos/output-view-repo.d.mts +4 -7
  201. package/dist/types/commands/scan/cmd-scan-create.d.mts +9 -15
  202. package/dist/types/commands/scan/cmd-scan-del.d.mts +9 -15
  203. package/dist/types/commands/scan/cmd-scan-diff.d.mts +9 -15
  204. package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -3
  205. package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -3
  206. package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -3
  207. package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -3
  208. package/dist/types/commands/scan/cmd-scan.d.mts +3 -3
  209. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -26
  210. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
  211. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -7
  212. package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -12
  213. package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -1
  214. package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -22
  215. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
  216. package/dist/types/commands/scan/fetch-report-data.d.mts +8 -14
  217. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -7
  218. package/dist/types/commands/scan/fetch-scan.d.mts +4 -7
  219. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -6
  220. package/dist/types/commands/scan/generate-report.d.mts +36 -50
  221. package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
  222. package/dist/types/commands/scan/handle-create-new-scan.d.mts +20 -37
  223. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  224. package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -7
  225. package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -17
  226. package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -1
  227. package/dist/types/commands/scan/handle-list-scans.d.mts +13 -23
  228. package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -1
  229. package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -7
  230. package/dist/types/commands/scan/handle-scan-report.d.mts +12 -21
  231. package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
  232. package/dist/types/commands/scan/handle-scan-view.d.mts +3 -8
  233. package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -8
  234. package/dist/types/commands/scan/output-delete-scan.d.mts +4 -7
  235. package/dist/types/commands/scan/output-diff-scan.d.mts +8 -15
  236. package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -1
  237. package/dist/types/commands/scan/output-list-scans.d.mts +4 -7
  238. package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -8
  239. package/dist/types/commands/scan/output-scan-report.d.mts +20 -38
  240. package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
  241. package/dist/types/commands/scan/output-scan-view.d.mts +4 -10
  242. package/dist/types/commands/scan/stream-scan.d.mts +2 -6
  243. package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -2
  244. package/dist/types/commands/scan/suggest-repo-slug.d.mts +4 -4
  245. package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -4
  246. package/dist/types/commands/scan/suggest_target.d.mts +2 -2
  247. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +9 -15
  248. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -16
  249. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -1
  250. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -17
  251. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -1
  252. package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -7
  253. package/dist/types/commands/threat-feed/types.d.mts +12 -12
  254. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +9 -0
  255. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -0
  256. package/dist/types/commands/uninstall/cmd-uninstall.d.mts +3 -0
  257. package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +1 -0
  258. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +2 -0
  259. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +1 -0
  260. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +6 -0
  261. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +1 -0
  262. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +6 -0
  263. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +1 -0
  264. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +2 -2
  265. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -2
  266. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +9 -15
  267. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -2
  268. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
  269. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -2
  270. package/dist/types/constants.d.mts +125 -135
  271. package/dist/types/constants.d.mts.map +1 -1
  272. package/dist/types/flags.d.mts +14 -17
  273. package/dist/types/flags.d.mts.map +1 -1
  274. package/dist/types/instrument-with-sentry.d.mts +2 -2
  275. package/dist/types/shadow/npm/arborist/index.d.mts +2 -2
  276. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +19 -24
  277. package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +43 -71
  278. package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +3 -8
  279. package/dist/types/shadow/npm/arborist/lib/edge.d.mts +58 -71
  280. package/dist/types/shadow/npm/arborist/lib/node.d.mts +55 -91
  281. package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +26 -32
  282. package/dist/types/shadow/npm/arborist-helpers.d.mts +33 -66
  283. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
  284. package/dist/types/shadow/npm/bin.d.mts +2 -5
  285. package/dist/types/shadow/npm/inject.d.mts +2 -2
  286. package/dist/types/shadow/npm/install.d.mts +11 -16
  287. package/dist/types/shadow/npm/link.d.mts +2 -5
  288. package/dist/types/shadow/npm/paths.d.mts +7 -7
  289. package/dist/types/shadow/npm/proc-log/index.d.mts +3 -6
  290. package/dist/types/types.d.mts +15 -17
  291. package/dist/types/utils/agent.d.mts +11 -14
  292. package/dist/types/utils/alert/artifact.d.mts +32 -50
  293. package/dist/types/utils/alert/fix.d.mts +5 -5
  294. package/dist/types/utils/alert/severity.d.mts +12 -24
  295. package/dist/types/utils/alerts-map.d.mts +23 -36
  296. package/dist/types/utils/api.d.mts +11 -34
  297. package/dist/types/utils/check-input.d.mts +9 -12
  298. package/dist/types/utils/cmd.d.mts +4 -4
  299. package/dist/types/utils/color-or-markdown.d.mts +14 -23
  300. package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
  301. package/dist/types/utils/completion.d.mts +11 -0
  302. package/dist/types/utils/completion.d.mts.map +1 -0
  303. package/dist/types/utils/config.d.mts +22 -31
  304. package/dist/types/utils/config.d.mts.map +1 -1
  305. package/dist/types/utils/determine-org-slug.d.mts +2 -7
  306. package/dist/types/utils/errors.d.mts +12 -21
  307. package/dist/types/utils/fail-msg-with-badge.d.mts +2 -5
  308. package/dist/types/utils/fs.d.mts +21 -52
  309. package/dist/types/utils/get-output-kind.d.mts +3 -6
  310. package/dist/types/utils/glob.d.mts +13 -24
  311. package/dist/types/utils/map-to-object.d.mts +4 -6
  312. package/dist/types/utils/markdown.d.mts +4 -15
  313. package/dist/types/utils/meow-with-subcommands.d.mts +34 -46
  314. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  315. package/dist/types/utils/npm-paths.d.mts +7 -7
  316. package/dist/types/utils/npm-paths.d.mts.map +1 -1
  317. package/dist/types/utils/objects.d.mts +3 -8
  318. package/dist/types/utils/output-formatting.d.mts +14 -24
  319. package/dist/types/utils/package-environment.d.mts +51 -72
  320. package/dist/types/utils/package-environment.d.mts.map +1 -1
  321. package/dist/types/utils/path-resolve.d.mts +9 -14
  322. package/dist/types/utils/pnpm.d.mts +9 -7
  323. package/dist/types/utils/pnpm.d.mts.map +1 -1
  324. package/dist/types/utils/sdk.d.mts +8 -12
  325. package/dist/types/utils/semver.d.mts +5 -17
  326. package/dist/types/utils/serialize-result-json.d.mts +3 -3
  327. package/dist/types/utils/socket-package-alert.d.mts +62 -81
  328. package/dist/types/utils/socket-url.d.mts +9 -15
  329. package/dist/types/utils/spec.d.mts +4 -7
  330. package/dist/types/utils/spec.d.mts.map +1 -1
  331. package/dist/types/utils/strings.d.mts +2 -5
  332. package/dist/types/utils/translations.d.mts +592 -592
  333. package/dist/types/utils/walk-nested-map.d.mts +7 -10
  334. package/dist/utils.js +1531 -1833
  335. package/dist/utils.js.map +1 -1
  336. package/dist/vendor.js +39272 -51880
  337. package/dist/vendor.js.map +1 -1
  338. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +5 -8
  339. package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +2 -4
  340. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +1 -1
  341. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js.map +1 -1
  342. package/external/@socketsecurity/registry/external/cacache.js +1 -2
  343. package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
  344. package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
  345. package/external/@socketsecurity/registry/external/pacote.js +36 -76
  346. package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
  347. package/external/@socketsecurity/registry/external/which.js +2 -4
  348. package/external/@socketsecurity/registry/lib/constants/skip-tests-by-ecosystem.js +5 -1
  349. package/external/@socketsecurity/registry/lib/logger.d.ts +3 -1
  350. package/external/@socketsecurity/registry/lib/logger.js +152 -70
  351. package/external/@socketsecurity/registry/package.json +3 -3
  352. package/external/blessed/lib/alias.js +475 -468
  353. package/external/blessed/lib/blessed.js +12 -12
  354. package/external/blessed/lib/colors.js +234 -194
  355. package/external/blessed/lib/events.js +64 -70
  356. package/external/blessed/lib/gpmclient.js +117 -141
  357. package/external/blessed/lib/helpers.js +89 -94
  358. package/external/blessed/lib/keys.js +169 -342
  359. package/external/blessed/lib/program.js +2130 -2365
  360. package/external/blessed/lib/tput.js +1183 -1276
  361. package/external/blessed/lib/unicode.js +400 -522
  362. package/external/blessed/lib/widget.js +14 -14
  363. package/external/blessed/lib/widgets/ansiimage.js +90 -96
  364. package/external/blessed/lib/widgets/bigtext.js +91 -102
  365. package/external/blessed/lib/widgets/box.js +8 -8
  366. package/external/blessed/lib/widgets/button.js +23 -23
  367. package/external/blessed/lib/widgets/checkbox.js +50 -54
  368. package/external/blessed/lib/widgets/element.js +1415 -1716
  369. package/external/blessed/lib/widgets/filemanager.js +107 -118
  370. package/external/blessed/lib/widgets/form.js +144 -178
  371. package/external/blessed/lib/widgets/image.js +26 -36
  372. package/external/blessed/lib/widgets/input.js +8 -8
  373. package/external/blessed/lib/widgets/layout.js +103 -119
  374. package/external/blessed/lib/widgets/line.js +17 -20
  375. package/external/blessed/lib/widgets/list.js +349 -402
  376. package/external/blessed/lib/widgets/listbar.js +265 -306
  377. package/external/blessed/lib/widgets/listtable.js +133 -146
  378. package/external/blessed/lib/widgets/loading.js +31 -31
  379. package/external/blessed/lib/widgets/log.js +41 -40
  380. package/external/blessed/lib/widgets/message.js +64 -86
  381. package/external/blessed/lib/widgets/node.js +175 -207
  382. package/external/blessed/lib/widgets/overlayimage.js +360 -437
  383. package/external/blessed/lib/widgets/progressbar.js +79 -88
  384. package/external/blessed/lib/widgets/prompt.js +54 -61
  385. package/external/blessed/lib/widgets/question.js +48 -61
  386. package/external/blessed/lib/widgets/radiobutton.js +26 -27
  387. package/external/blessed/lib/widgets/radioset.js +8 -8
  388. package/external/blessed/lib/widgets/screen.js +1186 -1375
  389. package/external/blessed/lib/widgets/scrollablebox.js +202 -228
  390. package/external/blessed/lib/widgets/scrollabletext.js +9 -9
  391. package/external/blessed/lib/widgets/table.js +187 -216
  392. package/external/blessed/lib/widgets/terminal.js +258 -298
  393. package/external/blessed/lib/widgets/text.js +9 -9
  394. package/external/blessed/lib/widgets/textarea.js +188 -222
  395. package/external/blessed/lib/widgets/textbox.js +34 -36
  396. package/external/blessed/lib/widgets/video.js +55 -59
  397. package/external/blessed/usr/fonts/ter-u14b.json +1 -1
  398. package/external/blessed/usr/fonts/ter-u14n.json +1 -1
  399. package/external/blessed/vendor/tng.js +1016 -1144
  400. package/external/blessed-contrib/lib/layout/grid.js +345 -377
  401. package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
  402. package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
  403. package/external/blessed-contrib/lib/widget/table.js +78 -96
  404. package/package.json +13 -13
  405. package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
@@ -31,7 +31,7 @@ const LOG_SYMBOLS = /*@__PURE__*/ (() => {
31
31
  /*@__PURE__*/ require('../external/@socketregistry/is-unicode-supported')()
32
32
  const colors = getYoctocolors()
33
33
  Object.assign(target, {
34
- fail: colors.red(supported ? '✖️' : '×'),
34
+ fail: colors.red(supported ? '' : '×'),
35
35
  info: colors.blue(supported ? 'ℹ' : 'i'),
36
36
  success: colors.green(supported ? '✔' : '√'),
37
37
  warn: colors.yellow(supported ? '⚠' : '‼')
@@ -46,7 +46,7 @@ const LOG_SYMBOLS = /*@__PURE__*/ (() => {
46
46
  for (const trapName of Reflect.ownKeys(Reflect)) {
47
47
  const fn = Reflect[trapName]
48
48
  if (typeof fn === 'function') {
49
- handler[trapName] = function (...args) {
49
+ handler[trapName] = (...args) => {
50
50
  init()
51
51
  return fn(...args)
52
52
  }
@@ -55,28 +55,49 @@ const LOG_SYMBOLS = /*@__PURE__*/ (() => {
55
55
  return new Proxy(target, handler)
56
56
  })()
57
57
 
58
- const boundConsoleMethods = new Map(
59
- ['debug', 'dir', 'dirxml', 'error', 'info', 'log', 'trace', 'warn'].map(n => [
60
- n,
61
- console[n].bind(console)
62
- ])
63
- )
58
+ const boundConsoleEntries = [
59
+ // Add bound properties from console[kBindProperties](ignoreErrors, colorMode, groupIndentation).
60
+ // https://github.com/nodejs/node/blob/v24.0.1/lib/internal/console/constructor.js#L230-L265
61
+ '_stderrErrorHandler',
62
+ '_stdoutErrorHandler',
63
+ // Add methods that need to be bound to function properly.
64
+ 'assert',
65
+ 'clear',
66
+ 'count',
67
+ 'countReset',
68
+ 'createTask',
69
+ 'debug',
70
+ 'dir',
71
+ 'dirxml',
72
+ 'error',
73
+ // Skip group methods because in at least Node 20 with the Node --frozen-intrinsics
74
+ // flag it triggers a readonly property for Symbol(kGroupIndent).
75
+ //'group',
76
+ //'groupCollapsed',
77
+ //'groupEnd',
78
+ 'info',
79
+ 'log',
80
+ 'table',
81
+ 'time',
82
+ 'timeEnd',
83
+ 'timeLog',
84
+ 'trace',
85
+ 'warn'
86
+ ]
87
+ .filter(n => typeof console[n] === 'function')
88
+ .map(n => [n, console[n].bind(console)])
64
89
 
65
- const consoleSymbols = Object.getOwnPropertySymbols(console).filter(
66
- s => s !== Symbol.toStringTag
67
- )
90
+ const consolePropAttributes = {
91
+ __proto__: null,
92
+ writable: true,
93
+ enumerable: false,
94
+ configurable: true
95
+ }
68
96
 
69
97
  const incLogCallCountSymbol = Symbol.for('logger.logCallCount++')
70
98
 
71
99
  const privateConsole = new WeakMap()
72
100
 
73
- const symbolTypeToMethodName = {
74
- fail: 'error',
75
- info: 'info',
76
- success: 'log',
77
- warn: 'warn'
78
- }
79
-
80
101
  /*@__PURE__*/
81
102
  class Logger {
82
103
  static LOG_SYMBOLS = LOG_SYMBOLS
@@ -94,60 +115,46 @@ class Logger {
94
115
  stdout: process.stdout,
95
116
  stderr: process.stderr
96
117
  })
97
- for (const { 0: key, 1: method } of boundConsoleMethods) {
118
+ for (const { 0: key, 1: method } of boundConsoleEntries) {
98
119
  newConsole[key] = method
99
120
  }
100
121
  privateConsole.set(this, newConsole)
101
122
  }
102
- Object.defineProperties(
103
- this,
104
- Object.fromEntries(
105
- consoleSymbols.map(key => [
106
- key,
107
- {
108
- __proto__: null,
109
- configurable: true,
110
- value: console[key],
111
- writable: true
112
- }
113
- ])
114
- )
115
- )
116
123
  }
117
124
 
118
125
  #apply(methodName, args) {
126
+ const con = privateConsole.get(this)
119
127
  const text = args.at(0)
120
- const console = privateConsole.get(this)
121
128
  let extras
122
129
  if (typeof text === 'string') {
123
130
  extras = args.slice(1)
124
- console[methodName](`${this.#indention}${text}`)
131
+ con[methodName](`${this.#indention}${text}`)
125
132
  this[incLogCallCountSymbol]()
126
133
  } else {
127
134
  extras = args
128
135
  }
129
136
  if (extras.length) {
130
- console[methodName](...extras)
137
+ con[methodName](...extras)
131
138
  this[incLogCallCountSymbol]()
132
139
  }
133
140
  return this
134
141
  }
135
142
 
136
143
  #symbolApply(symbolType, args) {
137
- let extras
144
+ const con = privateConsole.get(this)
138
145
  let text = args.at(0)
146
+ let extras
139
147
  if (typeof text === 'string') {
140
148
  extras = args.slice(1)
141
149
  } else {
142
150
  extras = args
143
151
  text = ''
144
152
  }
145
- const methodName = symbolTypeToMethodName[symbolType]
146
- const console = privateConsole.get(this)
147
- console[methodName](`${this.#indention}${LOG_SYMBOLS[symbolType]} ${text}`)
153
+ // Note: Meta status messages (info/fail/etc) always go to stderr.
154
+ con.error(`${this.#indention}${LOG_SYMBOLS[symbolType]} ${text}`)
148
155
  this[incLogCallCountSymbol]()
149
156
  if (extras.length) {
150
- console[methodName](...extras)
157
+ con.error(...extras)
151
158
  this[incLogCallCountSymbol]()
152
159
  }
153
160
  return this
@@ -159,6 +166,28 @@ class Logger {
159
166
 
160
167
  [incLogCallCountSymbol]() {
161
168
  this.#logCallCount += 1
169
+ return this
170
+ }
171
+
172
+ assert(value, ...message) {
173
+ const con = privateConsole.get(this)
174
+ con.assert(value, ...message)
175
+ return value ? this : this[incLogCallCountSymbol]()
176
+ }
177
+
178
+ clear() {
179
+ const con = privateConsole.get(this)
180
+ con.clear()
181
+ if (con._stdout.isTTY) {
182
+ this.#logCallCount = 0
183
+ }
184
+ return this
185
+ }
186
+
187
+ count(label) {
188
+ const con = privateConsole.get(this)
189
+ con.count(label)
190
+ return this[incLogCallCountSymbol]()
162
191
  }
163
192
 
164
193
  dedent(spaces = 2) {
@@ -166,6 +195,18 @@ class Logger {
166
195
  return this
167
196
  }
168
197
 
198
+ dir(obj, options) {
199
+ const con = privateConsole.get(this)
200
+ con.dir(obj, options)
201
+ return this[incLogCallCountSymbol]()
202
+ }
203
+
204
+ dirxml(...data) {
205
+ const con = privateConsole.get(this)
206
+ con.dirxml(data)
207
+ return this[incLogCallCountSymbol]()
208
+ }
209
+
169
210
  error(...args) {
170
211
  return this.#apply('error', args)
171
212
  }
@@ -174,6 +215,18 @@ class Logger {
174
215
  return this.#symbolApply('fail', args)
175
216
  }
176
217
 
218
+ group(...label) {
219
+ const con = privateConsole.get(this)
220
+ con.group(...label)
221
+ return label.length ? this[incLogCallCountSymbol]() : this
222
+ }
223
+
224
+ // groupCollapsed is an alias of group.
225
+ // https://nodejs.org/api/console.html#consolegroupcollapsed
226
+ groupCollapsed(...label) {
227
+ return this.group(...label)
228
+ }
229
+
177
230
  indent(spaces = 2) {
178
231
  this.#indention += ' '.repeat(spaces)
179
232
  return this
@@ -196,43 +249,72 @@ class Logger {
196
249
  return this.#symbolApply('success', args)
197
250
  }
198
251
 
199
- warn(...args) {
200
- return this.#symbolApply('warn', args)
252
+ table(tabularData, properties) {
253
+ const con = privateConsole.get(this)
254
+ con.table(tabularData, properties)
255
+ return this[incLogCallCountSymbol]()
256
+ }
257
+
258
+ timeEnd(label) {
259
+ const con = privateConsole.get(this)
260
+ con.timeEnd(label)
261
+ return this[incLogCallCountSymbol]()
262
+ }
263
+
264
+ timeLog(label, ...data) {
265
+ const con = privateConsole.get(this)
266
+ con.timeLog(label, ...data)
267
+ return this[incLogCallCountSymbol]()
268
+ }
269
+
270
+ trace(message, ...args) {
271
+ const con = privateConsole.get(this)
272
+ con.trace(message, ...args)
273
+ return this[incLogCallCountSymbol]()
201
274
  }
202
- }
203
275
 
204
- const mixinKeys = []
205
- for (const { 0: key, 1: value } of Object.entries(console)) {
206
- if (!Logger.prototype[key] && typeof value === 'function') {
207
- mixinKeys.push(key)
276
+ warn(...args) {
277
+ return this.#symbolApply('warn', args)
208
278
  }
209
279
  }
210
280
 
211
281
  Object.defineProperties(
212
282
  Logger.prototype,
213
- Object.fromEntries([
214
- ...mixinKeys.map(key => [
215
- key,
216
- {
217
- __proto__: null,
218
- configurable: true,
219
- value: function (...args) {
220
- const console = privateConsole.get(this)
221
- const result = console[key](...args)
222
- return result === undefined || result === console ? this : result
223
- },
224
- writable: true
225
- }
226
- ]),
227
- [
228
- Symbol.toStringTag,
229
- {
230
- __proto__: null,
231
- configurable: true,
232
- value: 'logger'
283
+ Object.fromEntries(
284
+ (() => {
285
+ const entries = [
286
+ [
287
+ Symbol.toStringTag,
288
+ {
289
+ __proto__: null,
290
+ configurable: true,
291
+ value: 'logger'
292
+ }
293
+ ]
294
+ ]
295
+ for (const { 0: key, 1: value } of Object.entries(console)) {
296
+ if (!Logger.prototype[key] && typeof value === 'function') {
297
+ // Dynamically name the log method without using Object.defineProperty.
298
+ const { [key]: func } = {
299
+ [key](...args) {
300
+ const con = privateConsole.get(this)
301
+ const result = con[key](...args)
302
+ return result === undefined || result === con ? this : result
303
+ }
304
+ }
305
+ entries.push([
306
+ key,
307
+ {
308
+ __proto__: null,
309
+ ...consolePropAttributes,
310
+ value: func
311
+ }
312
+ ])
313
+ }
233
314
  }
234
- ]
235
- ])
315
+ return entries
316
+ })()
317
+ )
236
318
  )
237
319
 
238
320
  const logger = new Logger()
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/registry",
3
- "version": "1.0.185",
3
+ "version": "1.0.188",
4
4
  "license": "MIT",
5
5
  "description": "Socket.dev registry helpers methods and metadata",
6
6
  "keywords": [
@@ -612,7 +612,7 @@
612
612
  "@babel/plugin-transform-runtime": "7.27.1",
613
613
  "@babel/runtime": "7.27.1",
614
614
  "@biomejs/biome": "1.9.4",
615
- "@dotenvx/dotenvx": "1.44.0",
615
+ "@dotenvx/dotenvx": "1.44.1",
616
616
  "@inquirer/confirm": "5.1.10",
617
617
  "@inquirer/input": "4.1.10",
618
618
  "@inquirer/password": "4.0.13",
@@ -641,7 +641,7 @@
641
641
  "make-fetch-happen": "14.0.3",
642
642
  "normalize-package-data": "6.0.1",
643
643
  "npm-package-arg": "12.0.2",
644
- "npm-run-all2": "8.0.2",
644
+ "npm-run-all2": "8.0.3",
645
645
  "oxlint": "0.16.11",
646
646
  "pacote": "21.0.0",
647
647
  "picomatch": "4.0.2",