@socketsecurity/cli 1.1.101 → 1.1.151

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 (201) hide show
  1. package/CHANGELOG.md +277 -1
  2. package/README.md +9 -0
  3. package/bin/cli.js +33 -1
  4. package/dist/cli.js +9914 -5001
  5. package/dist/cli.js.map +1 -1
  6. package/dist/constants.js +8 -6
  7. package/dist/constants.js.map +1 -1
  8. package/dist/init.gradle +73 -0
  9. package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
  10. package/dist/manifest-scripts/socket-facts.init.gradle +581 -0
  11. package/dist/manifest-scripts/socket-facts.plugin.scala +544 -0
  12. package/dist/shadow-npm-bin2.js +6 -6
  13. package/dist/shadow-npm-bin2.js.map +1 -1
  14. package/dist/shadow-npm-inject.js +10 -10
  15. package/dist/shadow-npm-inject.js.map +1 -1
  16. package/dist/shadow-pnpm-bin2.js +13 -13
  17. package/dist/shadow-pnpm-bin2.js.map +1 -1
  18. package/dist/shadow-yarn-bin.js +3 -3
  19. package/dist/shadow-yarn-bin.js.map +1 -1
  20. package/dist/socket-completion.bash +0 -0
  21. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  22. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  23. package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +1 -1
  24. package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
  25. package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
  26. package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
  27. package/dist/types/commands/config/output-config-set.d.mts.map +1 -1
  28. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  29. package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
  30. package/dist/types/commands/fix/handle-fix.d.mts +1 -1
  31. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  32. package/dist/types/commands/fix/types.d.mts +1 -0
  33. package/dist/types/commands/fix/types.d.mts.map +1 -1
  34. package/dist/types/commands/manifest/bazel/bazel-cquery.d.mts +70 -0
  35. package/dist/types/commands/manifest/bazel/bazel-cquery.d.mts.map +1 -0
  36. package/dist/types/commands/manifest/bazel/bazel-pypi-discovery.d.mts +44 -0
  37. package/dist/types/commands/manifest/bazel/bazel-pypi-discovery.d.mts.map +1 -0
  38. package/dist/types/commands/manifest/bazel/bazel-pypi-parser.d.mts +46 -0
  39. package/dist/types/commands/manifest/bazel/bazel-pypi-parser.d.mts.map +1 -0
  40. package/dist/types/commands/manifest/bazel/bazel-query-runner.d.mts +66 -8
  41. package/dist/types/commands/manifest/bazel/bazel-query-runner.d.mts.map +1 -1
  42. package/dist/types/commands/manifest/bazel/bazel-repo-discovery.d.mts +69 -29
  43. package/dist/types/commands/manifest/bazel/bazel-repo-discovery.d.mts.map +1 -1
  44. package/dist/types/commands/manifest/bazel/bazel-workspace-walk.d.mts +18 -0
  45. package/dist/types/commands/manifest/bazel/bazel-workspace-walk.d.mts.map +1 -0
  46. package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts +26 -0
  47. package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts.map +1 -1
  48. package/dist/types/commands/manifest/bazel/extract_bazel_to_maven.d.mts +110 -7
  49. package/dist/types/commands/manifest/bazel/extract_bazel_to_maven.d.mts.map +1 -1
  50. package/dist/types/commands/manifest/bazel/extract_bazel_to_pypi.d.mts +20 -0
  51. package/dist/types/commands/manifest/bazel/extract_bazel_to_pypi.d.mts.map +1 -0
  52. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +1 -1
  53. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
  54. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
  55. package/dist/types/commands/manifest/cmd-manifest-maven.d.mts +9 -0
  56. package/dist/types/commands/manifest/cmd-manifest-maven.d.mts.map +1 -0
  57. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
  58. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
  59. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +15 -0
  60. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts.map +1 -0
  61. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +15 -0
  62. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts.map +1 -0
  63. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +19 -0
  64. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +1 -0
  65. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -1
  66. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +1 -1
  67. package/dist/types/commands/manifest/detect-manifest-actions.d.mts +1 -0
  68. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
  69. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +12 -1
  70. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
  71. package/dist/types/commands/manifest/parse-build-tool-opts.d.mts +9 -0
  72. package/dist/types/commands/manifest/parse-build-tool-opts.d.mts.map +1 -0
  73. package/dist/types/commands/manifest/run-manifest-facts.d.mts +24 -0
  74. package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -0
  75. package/dist/types/commands/manifest/scripts/assemble.d.mts +16 -0
  76. package/dist/types/commands/manifest/scripts/assemble.d.mts.map +1 -0
  77. package/dist/types/commands/manifest/scripts/build-tool.d.mts +3 -0
  78. package/dist/types/commands/manifest/scripts/build-tool.d.mts.map +1 -0
  79. package/dist/types/commands/manifest/scripts/facts.d.mts +46 -0
  80. package/dist/types/commands/manifest/scripts/facts.d.mts.map +1 -0
  81. package/dist/types/commands/manifest/scripts/records.d.mts +66 -0
  82. package/dist/types/commands/manifest/scripts/records.d.mts.map +1 -0
  83. package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts +10 -0
  84. package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts.map +1 -0
  85. package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts +7 -0
  86. package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts.map +1 -0
  87. package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts +8 -0
  88. package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts.map +1 -0
  89. package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts +43 -0
  90. package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts.map +1 -0
  91. package/dist/types/commands/manifest/scripts/resolution-report.d.mts +18 -0
  92. package/dist/types/commands/manifest/scripts/resolution-report.d.mts.map +1 -0
  93. package/dist/types/commands/manifest/scripts/run.d.mts +43 -0
  94. package/dist/types/commands/manifest/scripts/run.d.mts.map +1 -0
  95. package/dist/types/commands/manifest/scripts/sidecar.d.mts +27 -0
  96. package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +1 -0
  97. package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
  98. package/dist/types/commands/organization/fetch-organization-list.d.mts +2 -2
  99. package/dist/types/commands/organization/fetch-organization-list.d.mts.map +1 -1
  100. package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +1 -1
  101. package/dist/types/commands/repository/fetch-create-repo.d.mts +2 -2
  102. package/dist/types/commands/repository/fetch-create-repo.d.mts.map +1 -1
  103. package/dist/types/commands/repository/fetch-delete-repo.d.mts +2 -2
  104. package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +1 -1
  105. package/dist/types/commands/repository/fetch-list-all-repos.d.mts +2 -2
  106. package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +1 -1
  107. package/dist/types/commands/repository/fetch-list-repos.d.mts +2 -2
  108. package/dist/types/commands/repository/fetch-list-repos.d.mts.map +1 -1
  109. package/dist/types/commands/repository/fetch-update-repo.d.mts +2 -2
  110. package/dist/types/commands/repository/fetch-update-repo.d.mts.map +1 -1
  111. package/dist/types/commands/repository/fetch-view-repo.d.mts +2 -2
  112. package/dist/types/commands/repository/fetch-view-repo.d.mts.map +1 -1
  113. package/dist/types/commands/repository/handle-list-repos.d.mts.map +1 -1
  114. package/dist/types/commands/repository/output-create-repo.d.mts +2 -2
  115. package/dist/types/commands/repository/output-create-repo.d.mts.map +1 -1
  116. package/dist/types/commands/repository/output-delete-repo.d.mts +2 -2
  117. package/dist/types/commands/repository/output-delete-repo.d.mts.map +1 -1
  118. package/dist/types/commands/repository/output-list-repos.d.mts +2 -2
  119. package/dist/types/commands/repository/output-list-repos.d.mts.map +1 -1
  120. package/dist/types/commands/repository/output-update-repo.d.mts +2 -2
  121. package/dist/types/commands/repository/output-update-repo.d.mts.map +1 -1
  122. package/dist/types/commands/repository/output-view-repo.d.mts +2 -2
  123. package/dist/types/commands/repository/output-view-repo.d.mts.map +1 -1
  124. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
  125. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
  126. package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
  127. package/dist/types/commands/scan/exclude-paths.d.mts +2 -2
  128. package/dist/types/commands/scan/exclude-paths.d.mts.map +1 -1
  129. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +2 -2
  130. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
  131. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +2 -2
  132. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +1 -1
  133. package/dist/types/commands/scan/fetch-list-scans.d.mts +2 -2
  134. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
  135. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +2 -2
  136. package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +1 -1
  137. package/dist/types/commands/scan/fetch-scan.d.mts +4 -0
  138. package/dist/types/commands/scan/fetch-scan.d.mts.map +1 -1
  139. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +2 -1
  140. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +1 -1
  141. package/dist/types/commands/scan/finalize-tier1-scan.d.mts +9 -5
  142. package/dist/types/commands/scan/finalize-tier1-scan.d.mts.map +1 -1
  143. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  144. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -1
  145. package/dist/types/commands/scan/output-create-new-scan.d.mts +2 -2
  146. package/dist/types/commands/scan/output-create-new-scan.d.mts.map +1 -1
  147. package/dist/types/commands/scan/output-delete-scan.d.mts +2 -2
  148. package/dist/types/commands/scan/output-delete-scan.d.mts.map +1 -1
  149. package/dist/types/commands/scan/output-list-scans.d.mts +2 -2
  150. package/dist/types/commands/scan/output-list-scans.d.mts.map +1 -1
  151. package/dist/types/commands/scan/output-scan-metadata.d.mts +2 -2
  152. package/dist/types/commands/scan/output-scan-metadata.d.mts.map +1 -1
  153. package/dist/types/commands/scan/output-scan-reach.d.mts +2 -1
  154. package/dist/types/commands/scan/output-scan-reach.d.mts.map +1 -1
  155. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +10 -3
  156. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
  157. package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
  158. package/dist/types/commands/scan/reachability-units.d.mts +18 -0
  159. package/dist/types/commands/scan/reachability-units.d.mts.map +1 -0
  160. package/dist/types/commands/scan/stream-scan.d.mts +3 -1
  161. package/dist/types/commands/scan/stream-scan.d.mts.map +1 -1
  162. package/dist/types/constants.d.mts +2 -0
  163. package/dist/types/constants.d.mts.map +1 -1
  164. package/dist/types/utils/api.d.mts +53 -7
  165. package/dist/types/utils/api.d.mts.map +1 -1
  166. package/dist/types/utils/config.d.mts.map +1 -1
  167. package/dist/types/utils/dlx.d.mts +4 -3
  168. package/dist/types/utils/dlx.d.mts.map +1 -1
  169. package/dist/types/utils/ecosystem.d.mts +8 -1
  170. package/dist/types/utils/ecosystem.d.mts.map +1 -1
  171. package/dist/types/utils/fs.d.mts +1 -0
  172. package/dist/types/utils/fs.d.mts.map +1 -1
  173. package/dist/types/utils/glob.d.mts +5 -4
  174. package/dist/types/utils/glob.d.mts.map +1 -1
  175. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  176. package/dist/types/utils/path-resolve.d.mts +1 -1
  177. package/dist/types/utils/path-resolve.d.mts.map +1 -1
  178. package/dist/types/utils/sdk.d.mts +6 -0
  179. package/dist/types/utils/sdk.d.mts.map +1 -1
  180. package/dist/types/utils/self-update.d.mts +3 -0
  181. package/dist/types/utils/self-update.d.mts.map +1 -0
  182. package/dist/types/utils/socket-json.d.mts +18 -0
  183. package/dist/types/utils/socket-json.d.mts.map +1 -1
  184. package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
  185. package/dist/utils.js +614 -283
  186. package/dist/utils.js.map +1 -1
  187. package/dist/vendor.js +50578 -27781
  188. package/external/blessed/lib/tput.js +5 -5
  189. package/package.json +60 -132
  190. package/requirements.json +1 -1
  191. package/shadow-bin/npm +0 -0
  192. package/shadow-bin/npx +0 -0
  193. package/shadow-bin/pnpm +0 -0
  194. package/shadow-bin/yarn +0 -0
  195. package/dist/types/commands/manifest/bazel/bazel-build-parser.d.mts +0 -34
  196. package/dist/types/commands/manifest/bazel/bazel-build-parser.d.mts.map +0 -1
  197. package/external/blessed/usr/fonts/AUTHORS +0 -1
  198. package/external/blessed/usr/fonts/LICENSE +0 -94
  199. package/external/blessed/usr/fonts/README +0 -340
  200. package/external/blessed/usr/fonts/ter-u14b.json +0 -17826
  201. package/external/blessed/usr/fonts/ter-u14n.json +0 -17826
@@ -886,7 +886,7 @@ Tput.prototype._compile = function(info, key, str) {
886
886
  ch = ':';
887
887
  break;
888
888
  case '0':
889
- ch = '\200';
889
+ ch = '\x80';
890
890
  break;
891
891
  case 'a':
892
892
  ch = '\x07';
@@ -2096,10 +2096,10 @@ Tput.prototype.detectBrokenACS = function(info) {
2096
2096
  && process.env.TERMCAP
2097
2097
  && ~process.env.TERMCAP.indexOf('screen')
2098
2098
  && ~process.env.TERMCAP.indexOf('hhII00')) {
2099
- if (~info.strings.enter_alt_charset_mode.indexOf('\016')
2100
- || ~info.strings.enter_alt_charset_mode.indexOf('\017')
2101
- || ~info.strings.set_attributes.indexOf('\016')
2102
- || ~info.strings.set_attributes.indexOf('\017')) {
2099
+ if (~info.strings.enter_alt_charset_mode.indexOf('\x0e')
2100
+ || ~info.strings.enter_alt_charset_mode.indexOf('\x0f')
2101
+ || ~info.strings.set_attributes.indexOf('\x0e')
2102
+ || ~info.strings.set_attributes.indexOf('\x0f')) {
2103
2103
  return true;
2104
2104
  }
2105
2105
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli",
3
- "version": "1.1.101",
3
+ "version": "1.1.151",
4
4
  "description": "CLI for Socket.dev",
5
5
  "homepage": "https://github.com/SocketDev/socket-cli",
6
- "license": "MIT AND OFL-1.1",
6
+ "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/SocketDev/socket-cli.git"
@@ -32,73 +32,18 @@
32
32
  "./requirements.json": "./requirements.json",
33
33
  "./translations.json": "./translations.json"
34
34
  },
35
- "scripts": {
36
- "build": "pnpm build:dist",
37
- "build:dist": "pnpm build:dist:src && pnpm build:dist:types",
38
- "build:dist:src": "run-p -c clean:dist clean:external && dotenvx -q run -f .env.local -- rollup -c .config/rollup.dist.config.mjs",
39
- "build:dist:types": "pnpm clean:dist:types && tsgo --project tsconfig.dts.json",
40
- "build:sea": "node src/sea/build-sea.mts",
41
- "build:sea:internal:bootstrap": "rollup -c .config/rollup.sea.config.mjs",
42
- "check": "pnpm check:lint && pnpm check:tsc",
43
- "check:lint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives .",
44
- "check:tsc": "tsgo",
45
- "check-ci": "pnpm check:lint",
46
- "coverage": "run-s coverage:*",
47
- "coverage:test": "run-s test:prepare test:unit:coverage",
48
- "coverage:type": "dotenvx -q run -f .env.local -- type-coverage --detail",
49
- "clean": "run-p -c --aggregate-output clean:*",
50
- "clean:cache": "del-cli '**/.cache'",
51
- "clean:dist": "del-cli 'dist'",
52
- "clean:dist:types": "del-cli 'dist/types'",
53
- "clean:external": "del-cli 'external'",
54
- "clean:node_modules": "del-cli '**/node_modules'",
55
- "fix": "pnpm lint:fix",
56
- "knip:dependencies": "knip --dependencies",
57
- "knip:exports": "knip --include exports,duplicates",
58
- "lint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
59
- "lint:dist:fix": "run-s -c lint:dist:fix:*",
60
- "lint:dist:fix:oxlint": "dotenvx -q run -f .env.dist -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --silent --fix ./dist | dev-null",
61
- "lint:dist:fix:biome": "dotenvx -q run -f .env.dist -- biome format --log-level=none --fix ./dist | dev-null",
62
- "//lint:dist:fix:eslint": "dotenvx -q run -f .env.dist -- eslint --report-unused-disable-directives --quiet --fix ./dist | dev-null",
63
- "lint:external:fix": "run-s -c lint:external:fix:*",
64
- "lint:external:fix:oxlint": "dotenvx -q run -f .env.external -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --silent --fix ./external | dev-null",
65
- "lint:external:fix:biome": "dotenvx -q run -f .env.external -- biome format --log-level=none --fix ./external | dev-null",
66
- "//lint:external:fix:eslint": "dotenvx -q run -f .env.external -- eslint --report-unused-disable-directives --quiet --fix ./external | dev-null",
67
- "lint:fix": "run-s -c lint:fix:*",
68
- "lint:fix:oxlint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
69
- "lint:fix:biome": "dotenvx -q run -f .env.local -- biome format --log-level=none --fix . | dev-null",
70
- "lint:fix:eslint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives --fix . | dev-null",
71
- "lint-staged": "dotenvx -q run -f .env.local -- lint-staged",
72
- "precommit": "dotenvx -q run -f .env.local -- lint-staged",
73
- "prepare": "dotenvx -q run -f .env.local -- husky",
74
- "bs": "dotenvx -q run -f .env.local -- pnpm build:dist:src; pnpm exec socket --",
75
- "s": "dotenvx -q run -f .env.local -- pnpm exec socket --",
76
- "e2e-tests": "dotenvx -q run -f .env.test -- vitest run --config vitest.e2e.config.mts",
77
- "test": "run-s check test:*",
78
- "test:prepare": "dotenvx -q run -f .env.test -- pnpm build && del-cli 'test/**/node_modules'",
79
- "test:unit": "dotenvx -q run -f .env.test -- vitest run",
80
- "test:unit:update": "dotenvx -q run -f .env.test -- vitest run --update",
81
- "test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
82
- "test-ci": "run-s test:*",
83
- "test-pre-commit": "dotenvx -q run -f .env.precommit -- pnpm test",
84
- "testu": "dotenvx -q run -f .env.testu -- run-s test:prepare; pnpm test:unit:update --",
85
- "testuf": "dotenvx -q run -f .env.testu -- pnpm test:unit:update --",
86
- "update": "run-p --aggregate-output update:**",
87
- "update:deps": "taze",
88
- "update:socket": "pnpm update '@socketsecurity/*' '@socketregistry/*' --latest"
89
- },
90
35
  "dependencies": {
91
36
  "@socketsecurity/socket-patch": "2.0.0"
92
37
  },
93
38
  "devDependencies": {
94
- "@babel/core": "7.28.4",
39
+ "@babel/core": "7.29.6",
95
40
  "@babel/plugin-proposal-export-default-from": "7.27.1",
96
41
  "@babel/plugin-transform-export-namespace-from": "7.27.1",
97
42
  "@babel/plugin-transform-runtime": "7.28.3",
98
43
  "@babel/preset-typescript": "7.27.1",
99
44
  "@babel/runtime": "7.28.4",
100
45
  "@biomejs/biome": "2.2.4",
101
- "@coana-tech/cli": "15.3.6",
46
+ "@coana-tech/cli": "15.9.9",
102
47
  "@cyclonedx/cdxgen": "12.1.2",
103
48
  "@dotenvx/dotenvx": "1.49.0",
104
49
  "@eslint/compat": "1.3.2",
@@ -126,7 +71,7 @@
126
71
  "@socketregistry/packageurl-js": "1.0.9",
127
72
  "@socketsecurity/config": "3.0.1",
128
73
  "@socketsecurity/registry": "1.1.17",
129
- "@socketsecurity/sdk": "1.4.96",
74
+ "@socketsecurity/sdk": "4.0.3",
130
75
  "@types/blessed": "0.1.25",
131
76
  "@types/cmd-shim": "5.0.2",
132
77
  "@types/js-yaml": "4.0.9",
@@ -175,8 +120,6 @@
175
120
  "oxlint": "1.15.0",
176
121
  "pony-cause": "2.1.11",
177
122
  "postject": "1.0.0-alpha.6",
178
- "registry-auth-token": "5.1.0",
179
- "registry-url": "7.2.0",
180
123
  "rollup": "4.50.1",
181
124
  "semver": "7.7.2",
182
125
  "synp": "1.9.14",
@@ -197,7 +140,6 @@
197
140
  "node": ">=18.20.8",
198
141
  "pnpm": ">=10.33.0"
199
142
  },
200
- "packageManager": "pnpm@10.33.0",
201
143
  "files": [
202
144
  "bin/**",
203
145
  "dist/**",
@@ -215,74 +157,6 @@
215
157
  "pnpm lint:fix:biome -- --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
216
158
  ]
217
159
  },
218
- "pnpm": {
219
- "overrides": {
220
- "@octokit/graphql": "$@octokit/graphql",
221
- "@octokit/request-error": "$@octokit/request-error",
222
- "@rollup/plugin-commonjs": "28.0.6",
223
- "@socketsecurity/registry": "$@socketsecurity/registry",
224
- "aggregate-error": "npm:@socketregistry/aggregate-error@^1.0.14",
225
- "ansi-regex": "6.1.0",
226
- "ansi-term": "0.0.2",
227
- "blessed": "0.1.81",
228
- "blessed-contrib": "4.11.0",
229
- "brace-expansion": "2.0.2",
230
- "bresenham": "0.0.3",
231
- "drawille-blessed-contrib": "1.0.0",
232
- "drawille-canvas-blessed-contrib": "0.1.3",
233
- "es-define-property": "npm:@socketregistry/es-define-property@^1.0.7",
234
- "es-set-tostringtag": "npm:@socketregistry/es-set-tostringtag@^1.0.9",
235
- "function-bind": "npm:@socketregistry/function-bind@^1.0.7",
236
- "globalthis": "npm:@socketregistry/globalthis@^1.0.7",
237
- "gopd": "npm:@socketregistry/gopd@^1.0.7",
238
- "graceful-fs": "4.2.11",
239
- "has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1.0.7",
240
- "has-proto": "npm:@socketregistry/has-proto@^1.0.7",
241
- "has-symbols": "npm:@socketregistry/has-symbols@^1.0.7",
242
- "has-tostringtag": "npm:@socketregistry/has-tostringtag@^1.0.7",
243
- "hasown": "npm:@socketregistry/hasown@^1.0.7",
244
- "indent-string": "npm:@socketregistry/indent-string@^1.0.13",
245
- "is-core-module": "npm:@socketregistry/is-core-module@^1.0.10",
246
- "isarray": "npm:@socketregistry/isarray@^1.0.7",
247
- "lodash": "4.17.21",
248
- "meow": "13.2.0",
249
- "npm-package-arg": "$npm-package-arg",
250
- "packageurl-js": "npm:@socketregistry/packageurl-js@^1.0.9",
251
- "path-parse": "npm:@socketregistry/path-parse@^1.0.7",
252
- "rollup": "4.50.1",
253
- "safe-buffer": "npm:@socketregistry/safe-buffer@^1.0.8",
254
- "safer-buffer": "npm:@socketregistry/safer-buffer@^1.0.9",
255
- "semver": "$semver",
256
- "set-function-length": "npm:@socketregistry/set-function-length@^1.0.9",
257
- "shell-quote": "npm:shell-quote@^1.8.3",
258
- "side-channel": "npm:@socketregistry/side-channel@^1.0.9",
259
- "string_decoder": "0.10.31",
260
- "tiny-colors": "$yoctocolors-cjs",
261
- "tiny-updater": "3.5.3",
262
- "typedarray": "npm:@socketregistry/typedarray@^1.0.7",
263
- "undici": "6.21.3",
264
- "vite": "7.1.5",
265
- "xml2js": "0.6.2",
266
- "yaml": "2.8.1",
267
- "yargs-parser": "$yargs-parser"
268
- },
269
- "patchedDependencies": {
270
- "graceful-fs@4.2.11": "patches/graceful-fs@4.2.11.patch",
271
- "string_decoder@0.10.31": "patches/string_decoder@0.10.31.patch",
272
- "meow@13.2.0": "patches/meow@13.2.0.patch",
273
- "@rollup/plugin-commonjs@28.0.6": "patches/@rollup__plugin-commonjs@28.0.6.patch",
274
- "ansi-term@0.0.2": "patches/ansi-term@0.0.2.patch",
275
- "drawille-blessed-contrib@1.0.0": "patches/drawille-blessed-contrib@1.0.0.patch",
276
- "drawille-canvas-blessed-contrib@0.1.3": "patches/drawille-canvas-blessed-contrib@0.1.3.patch",
277
- "blessed@0.1.81": "patches/blessed@0.1.81.patch",
278
- "blessed-contrib@4.11.0": "patches/blessed-contrib@4.11.0.patch",
279
- "brace-expansion@2.0.2": "patches/brace-expansion@2.0.2.patch",
280
- "bresenham@0.0.3": "patches/bresenham@0.0.3.patch",
281
- "lodash@4.17.21": "patches/lodash@4.17.21.patch",
282
- "rollup@4.50.1": "patches/rollup@4.50.1.patch",
283
- "tiny-updater@3.5.3": "patches/tiny-updater@3.5.3.patch"
284
- }
285
- },
286
160
  "typeCoverage": {
287
161
  "cache": true,
288
162
  "atLeast": 95,
@@ -293,5 +167,59 @@
293
167
  "ignore-type-assertion": true,
294
168
  "ignore-files": "test/*",
295
169
  "strict": true
170
+ },
171
+ "scripts": {
172
+ "build": "pnpm build:dist",
173
+ "build:dist": "pnpm build:dist:src && pnpm build:dist:types",
174
+ "build:dist:src": "run-p -c clean:dist clean:external && dotenvx -q run -f .env.local -- rollup -c .config/rollup.dist.config.mjs",
175
+ "build:dist:types": "pnpm clean:dist:types && tsgo --project tsconfig.dts.json",
176
+ "build:maven-extension": "bash src/commands/manifest/scripts/maven-extension/build-jar.sh",
177
+ "build:sea": "node src/sea/build-sea.mts",
178
+ "build:sea:internal:bootstrap": "rollup -c .config/rollup.sea.config.mjs",
179
+ "check": "pnpm check:lint && pnpm check:tsc",
180
+ "check:lint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives .",
181
+ "check:tsc": "tsgo",
182
+ "check-ci": "pnpm check:lint",
183
+ "coverage": "run-s coverage:*",
184
+ "coverage:test": "run-s test:prepare test:unit:coverage",
185
+ "coverage:type": "dotenvx -q run -f .env.local -- type-coverage --detail",
186
+ "clean": "run-p -c --aggregate-output clean:*",
187
+ "clean:cache": "del-cli '**/.cache'",
188
+ "clean:dist": "del-cli 'dist'",
189
+ "clean:dist:types": "del-cli 'dist/types'",
190
+ "clean:external": "del-cli 'external'",
191
+ "clean:node_modules": "del-cli '**/node_modules'",
192
+ "fix": "pnpm lint:fix",
193
+ "knip:dependencies": "knip --dependencies",
194
+ "knip:exports": "knip --include exports,duplicates",
195
+ "lint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
196
+ "lint:dist:fix": "run-s -c lint:dist:fix:*",
197
+ "lint:dist:fix:oxlint": "dotenvx -q run -f .env.dist -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --silent --fix ./dist | dev-null",
198
+ "lint:dist:fix:biome": "dotenvx -q run -f .env.dist -- biome format --log-level=none --fix ./dist | dev-null",
199
+ "//lint:dist:fix:eslint": "dotenvx -q run -f .env.dist -- eslint --report-unused-disable-directives --quiet --fix ./dist | dev-null",
200
+ "lint:external:fix": "run-s -c lint:external:fix:*",
201
+ "lint:external:fix:oxlint": "dotenvx -q run -f .env.external -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --silent --fix ./external | dev-null",
202
+ "lint:external:fix:biome": "dotenvx -q run -f .env.external -- biome format --log-level=none --fix ./external | dev-null",
203
+ "//lint:external:fix:eslint": "dotenvx -q run -f .env.external -- eslint --report-unused-disable-directives --quiet --fix ./external | dev-null",
204
+ "lint:fix": "run-s -c lint:fix:*",
205
+ "lint:fix:oxlint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
206
+ "lint:fix:biome": "dotenvx -q run -f .env.local -- biome format --log-level=none --fix . | dev-null",
207
+ "lint:fix:eslint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives --fix . | dev-null",
208
+ "lint-staged": "dotenvx -q run -f .env.local -- lint-staged",
209
+ "precommit": "dotenvx -q run -f .env.local -- lint-staged",
210
+ "bs": "dotenvx -q run -f .env.local -- pnpm build:dist:src; pnpm exec socket --",
211
+ "s": "dotenvx -q run -f .env.local -- pnpm exec socket --",
212
+ "e2e-tests": "dotenvx -q run -f .env.test -- vitest run --config vitest.e2e.config.mts",
213
+ "test": "run-s check test:*",
214
+ "test:prepare": "dotenvx -q run -f .env.test -- pnpm build && del-cli 'test/**/node_modules'",
215
+ "test:unit": "dotenvx -q run -f .env.test -- vitest run",
216
+ "test:unit:update": "dotenvx -q run -f .env.test -- vitest run --update",
217
+ "test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
218
+ "test-ci": "run-s test:*",
219
+ "testu": "dotenvx -q run -f .env.testu -- run-s test:prepare; pnpm test:unit:update --",
220
+ "testuf": "dotenvx -q run -f .env.testu -- pnpm test:unit:update --",
221
+ "update": "run-p --aggregate-output update:**",
222
+ "update:deps": "taze",
223
+ "update:socket": "pnpm update '@socketsecurity/*' '@socketregistry/*' --latest"
296
224
  }
297
- }
225
+ }
package/requirements.json CHANGED
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "fix": {
12
12
  "quota": 101,
13
- "permissions": ["full-scans:create", "packages:list"]
13
+ "permissions": ["full-scans:create", "packages:list", "fixes:list"]
14
14
  },
15
15
  "login": {
16
16
  "quota": 1,
package/shadow-bin/npm CHANGED
File without changes
package/shadow-bin/npx CHANGED
File without changes
package/shadow-bin/pnpm CHANGED
File without changes
package/shadow-bin/yarn CHANGED
File without changes
@@ -1,34 +0,0 @@
1
- /**
2
- * Parse `bazel query --output=build` text and `unsorted_deps.json` files
3
- * (rules_jvm_external) into a uniform `ExtractedArtifact` shape consumed by
4
- * the converter.
5
- *
6
- * Security gate: every regex uses bounded character classes to prevent
7
- * catastrophic backtracking on hostile bazel-query output. Rules without
8
- * `maven_coordinates=` are skipped. Caller is responsible for size-capping
9
- * the input string.
10
- */
11
- export type ExtractedArtifact = {
12
- ruleKind: 'jvm_import' | 'aar_import';
13
- ruleName: string;
14
- mavenCoordinates: string;
15
- sourceRepo?: string | undefined;
16
- mavenUrl?: string | undefined;
17
- mavenSha256?: string | undefined;
18
- deps: string[];
19
- };
20
- /**
21
- * Parse `bazel query --output=build` stdout into `ExtractedArtifact[]`.
22
- * Skips rules without a `maven_coordinates` attribute (those aren't
23
- * rules_jvm_external lockfile rules).
24
- */
25
- export declare function parseBazelBuildOutput(text: string): ExtractedArtifact[];
26
- /**
27
- * Parse supported `external/<repo>/unsorted_deps.json` shapes emitted by
28
- * rules_jvm_external. Older files use an artifact array with full coordinates;
29
- * newer v2 lock-file-shaped files use artifact/dependency maps keyed by
30
- * `group:artifact`. Caller MUST size-cap the input because JSON.parse is
31
- * unbounded by default.
32
- */
33
- export declare function parseUnsortedDepsJson(json: string): ExtractedArtifact[];
34
- //# sourceMappingURL=bazel-build-parser.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bazel-build-parser.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/bazel/bazel-build-parser.mts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,YAAY,GAAG,YAAY,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAkED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,CA8BvE;AAkBD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAmEvE"}
@@ -1 +0,0 @@
1
- Dimitar Zhekov <dimitar.zhekov@gmail.com>
@@ -1,94 +0,0 @@
1
- Copyright (c) 2014 Dimitar Toshkov Zhekov,
2
- with Reserved Font Name "Terminus Font".
3
-
4
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
- This license is copied below, and is also available with a FAQ at:
6
- http://scripts.sil.org/OFL
7
-
8
-
9
- -----------------------------------------------------------
10
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
- -----------------------------------------------------------
12
-
13
- PREAMBLE
14
- The goals of the Open Font License (OFL) are to stimulate worldwide
15
- development of collaborative font projects, to support the font creation
16
- efforts of academic and linguistic communities, and to provide a free and
17
- open framework in which fonts may be shared and improved in partnership
18
- with others.
19
-
20
- The OFL allows the licensed fonts to be used, studied, modified and
21
- redistributed freely as long as they are not sold by themselves. The
22
- fonts, including any derivative works, can be bundled, embedded,
23
- redistributed and/or sold with any software provided that any reserved
24
- names are not used by derivative works. The fonts and derivatives,
25
- however, cannot be released under any other type of license. The
26
- requirement for fonts to remain under this license does not apply
27
- to any document created using the fonts or their derivatives.
28
-
29
- DEFINITIONS
30
- "Font Software" refers to the set of files released by the Copyright
31
- Holder(s) under this license and clearly marked as such. This may
32
- include source files, build scripts and documentation.
33
-
34
- "Reserved Font Name" refers to any names specified as such after the
35
- copyright statement(s).
36
-
37
- "Original Version" refers to the collection of Font Software components as
38
- distributed by the Copyright Holder(s).
39
-
40
- "Modified Version" refers to any derivative made by adding to, deleting,
41
- or substituting -- in part or in whole -- any of the components of the
42
- Original Version, by changing formats or by porting the Font Software to a
43
- new environment.
44
-
45
- "Author" refers to any designer, engineer, programmer, technical
46
- writer or other person who contributed to the Font Software.
47
-
48
- PERMISSION & CONDITIONS
49
- Permission is hereby granted, free of charge, to any person obtaining
50
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
- redistribute, and sell modified and unmodified copies of the Font
52
- Software, subject to the following conditions:
53
-
54
- 1) Neither the Font Software nor any of its individual components,
55
- in Original or Modified Versions, may be sold by itself.
56
-
57
- 2) Original or Modified Versions of the Font Software may be bundled,
58
- redistributed and/or sold with any software, provided that each copy
59
- contains the above copyright notice and this license. These can be
60
- included either as stand-alone text files, human-readable headers or
61
- in the appropriate machine-readable metadata fields within text or
62
- binary files as long as those fields can be easily viewed by the user.
63
-
64
- 3) No Modified Version of the Font Software may use the Reserved Font
65
- Name(s) unless explicit written permission is granted by the corresponding
66
- Copyright Holder. This restriction only applies to the primary font name as
67
- presented to the users.
68
-
69
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
- Software shall not be used to promote, endorse or advertise any
71
- Modified Version, except to acknowledge the contribution(s) of the
72
- Copyright Holder(s) and the Author(s) or with their explicit written
73
- permission.
74
-
75
- 5) The Font Software, modified or unmodified, in part or in whole,
76
- must be distributed entirely under this license, and must not be
77
- distributed under any other license. The requirement for fonts to
78
- remain under this license does not apply to any document created
79
- using the Font Software.
80
-
81
- TERMINATION
82
- This license becomes null and void if any of the above conditions are
83
- not met.
84
-
85
- DISCLAIMER
86
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
- OTHER DEALINGS IN THE FONT SOFTWARE.