@cdxgen/cdxgen 13.4.0 → 13.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/README.md +9 -9
  2. package/bin/cdxgen-secure.js +15 -0
  3. package/bin/cdxgen.js +29 -5
  4. package/bin/evinse.js +8 -0
  5. package/bin/hbom.js +15 -7
  6. package/bin/repl.js +29 -0
  7. package/bin/validate.js +6 -0
  8. package/data/cbomosdb-queries.json +13 -1
  9. package/data/component-tags.json +8 -0
  10. package/data/license-aliases.json +24 -2
  11. package/data/queries-darwin.json +25 -1
  12. package/data/queries-win.json +19 -1
  13. package/data/queries.json +41 -0
  14. package/data/remediations.json +407 -1
  15. package/data/rules/ai-bom.yaml +1 -1
  16. package/data/rules/brotli-decoder.yaml +107 -0
  17. package/data/rules/cbom-security.yaml +235 -4
  18. package/data/rules/go-binaries.yaml +46 -0
  19. package/data/rules/golem-go.yaml +80 -0
  20. package/data/rules/hbom-compliance.yaml +40 -22
  21. package/data/rules/hbom-performance.yaml +7 -1
  22. package/data/rules/host-topology.yaml +1 -1
  23. package/data/rules/obom-runtime.yaml +31 -2
  24. package/data/rules/php-runtime.yaml +143 -0
  25. package/data/rules/vscode-extensions.yaml +75 -0
  26. package/data/spdx-license-list.json +121 -7
  27. package/data/spdx-licenses.json +69 -0
  28. package/data/spdx.schema.json +845 -2
  29. package/lib/audit/index.js +14 -0
  30. package/lib/cli/bomAssembly.js +120 -6
  31. package/lib/cli/cliOptions.js +110 -3
  32. package/lib/cli/index.js +182 -6
  33. package/lib/cli/jsBom.js +153 -64
  34. package/lib/cli/jvmBom.js +363 -66
  35. package/lib/cli/managedBom.js +853 -87
  36. package/lib/cli/nativeBom.js +267 -33
  37. package/lib/core/boundedFile.js +344 -0
  38. package/lib/core/brotliProbe.js +182 -0
  39. package/lib/core/env.js +38 -8
  40. package/lib/core/fs.js +40 -19
  41. package/lib/core/httpClient.js +172 -46
  42. package/lib/core/lockPaths.js +38 -0
  43. package/lib/core/paths.js +24 -1
  44. package/lib/core/processTree.js +5 -0
  45. package/lib/core/projectConfig.js +1 -0
  46. package/lib/core/projectTooling.js +97 -0
  47. package/lib/core/propertySanitizer.js +72 -0
  48. package/lib/core/toolRegistry.js +170 -0
  49. package/lib/ecosystems/cppEvidence.js +263 -106
  50. package/lib/ecosystems/cppIncludeResolver.js +16 -5
  51. package/lib/ecosystems/ecosystems.js +25 -10
  52. package/lib/ecosystems/gemHostProbe.js +301 -0
  53. package/lib/ecosystems/golem.js +550 -6
  54. package/lib/ecosystems/gradleutils.js +858 -244
  55. package/lib/ecosystems/parsers-bazel.js +107 -6
  56. package/lib/ecosystems/parsers-dotnet.js +117 -18
  57. package/lib/ecosystems/parsers-go.js +1090 -367
  58. package/lib/ecosystems/parsers-js.js +505 -22
  59. package/lib/ecosystems/parsers-jvm.js +259 -17
  60. package/lib/ecosystems/parsers-misc.js +438 -64
  61. package/lib/ecosystems/parsers-python.js +100 -12
  62. package/lib/ecosystems/pythonutils.js +128 -2
  63. package/lib/ecosystems/rubyutils.js +544 -34
  64. package/lib/ecosystems/rusi.js +10 -0
  65. package/lib/ecosystems/scalacliutils.js +4 -1
  66. package/lib/ecosystems/scalasem.js +798 -151
  67. package/lib/ecosystems/vendoredCode.js +237 -3
  68. package/lib/ecosystems/venvProbe.js +360 -0
  69. package/lib/evinser/evinser.js +472 -61
  70. package/lib/evinser/swiftsem.js +68 -5
  71. package/lib/helpers/agenticToolutils.js +413 -93
  72. package/lib/helpers/vsixutils.js +1574 -315
  73. package/lib/inventory/agentSkillSpec.js +17 -0
  74. package/lib/inventory/apkInstalledDb.js +243 -0
  75. package/lib/inventory/atomUtils.js +110 -0
  76. package/lib/inventory/auditCategories.js +3 -3
  77. package/lib/inventory/brotliDecoder.js +142 -0
  78. package/lib/inventory/buildToolRateLimit.js +1 -1
  79. package/lib/inventory/cacheDir.js +52 -9
  80. package/lib/inventory/cbomutils.js +56 -7
  81. package/lib/inventory/certificates.js +2371 -0
  82. package/lib/inventory/communityAiConfigParser.js +4 -9
  83. package/lib/inventory/deps.js +41 -4
  84. package/lib/inventory/display.js +200 -3
  85. package/lib/inventory/dosai.js +639 -63
  86. package/lib/inventory/dotnetRuntime.js +217 -0
  87. package/lib/inventory/dynamic.js +45 -3
  88. package/lib/inventory/envcontext.js +475 -18
  89. package/lib/inventory/evidenceUtils.js +447 -23
  90. package/lib/inventory/fetchBatch.js +1 -1
  91. package/lib/inventory/formulationParsers.js +32 -3
  92. package/lib/inventory/goBuildInfo.js +140 -0
  93. package/lib/inventory/gtfobins.js +13 -0
  94. package/lib/inventory/hbom.js +67 -7
  95. package/lib/inventory/hbomAnalysis.js +16 -0
  96. package/lib/inventory/hostRuntimeProbe.js +686 -0
  97. package/lib/inventory/hostTopology.js +21 -0
  98. package/lib/inventory/jvmLocalRepos.js +9 -2
  99. package/lib/inventory/jvmToolEnv.js +29 -0
  100. package/lib/inventory/licenseEnhancer.js +12 -0
  101. package/lib/inventory/mavenCentralMirror.js +534 -0
  102. package/lib/inventory/nodeBuildInfo.js +218 -0
  103. package/lib/inventory/nodeHostProbe.js +202 -0
  104. package/lib/inventory/osPackagePurl.js +244 -0
  105. package/lib/inventory/osPackageResolver.js +271 -87
  106. package/lib/inventory/osinfo.js +79 -31
  107. package/lib/inventory/osqueryTransform.js +114 -5
  108. package/lib/inventory/phpBuildInfo.js +438 -0
  109. package/lib/inventory/phpHostProbe.js +185 -0
  110. package/lib/inventory/rootfsCerts.js +426 -0
  111. package/lib/inventory/rubyBuildInfo.js +972 -0
  112. package/lib/inventory/rubyHostProbe.js +218 -0
  113. package/lib/inventory/scalaCoords.js +4 -3
  114. package/lib/inventory/scalaDedupe.js +440 -0
  115. package/lib/inventory/source.js +256 -5
  116. package/lib/inventory/spdx.js +144 -0
  117. package/lib/inventory/traceRunner.js +5 -1
  118. package/lib/inventory/tracedCrypto.js +129 -0
  119. package/lib/managers/binary.js +866 -186
  120. package/lib/managers/docker.js +245 -12
  121. package/lib/parsers/email.js +277 -0
  122. package/lib/parsers/largeJson.js +62 -13
  123. package/lib/parsers/vscodeExtensionId.js +183 -0
  124. package/lib/server/server.js +198 -2
  125. package/lib/stages/postgen/annotator.js +17 -1
  126. package/lib/stages/postgen/introspection/reflect.js +4 -1
  127. package/lib/stages/postgen/postgen.js +5 -5
  128. package/lib/stages/postgen/ruleEngine.js +71 -6
  129. package/lib/stages/postgen/specVersionCompat.js +30 -0
  130. package/lib/stages/pregen/envAudit.js +1 -0
  131. package/lib/stages/pregen/pregen.js +231 -62
  132. package/lib/validator/bomValidator.js +32 -6
  133. package/lib/validator/generated/runtime.mjs +13 -0
  134. package/lib/validator/generated/validate-1.6.mjs +27 -8
  135. package/lib/validator/generated/validate-1.7.mjs +32 -13
  136. package/lib/validator/generated/validate-2.0.mjs +31 -12
  137. package/lib/validator/index.js +1 -1
  138. package/package.json +19 -18
  139. package/types/bin/cdxgen-secure.d.ts +3 -0
  140. package/types/bin/cdxgen-secure.d.ts.map +1 -0
  141. package/types/bin/repl.d.ts.map +1 -1
  142. package/types/lib/audit/index.d.ts.map +1 -1
  143. package/types/lib/cli/bomAssembly.d.ts +22 -3
  144. package/types/lib/cli/bomAssembly.d.ts.map +1 -1
  145. package/types/lib/cli/cliOptions.d.ts +43 -0
  146. package/types/lib/cli/cliOptions.d.ts.map +1 -1
  147. package/types/lib/cli/index.d.ts.map +1 -1
  148. package/types/lib/cli/jsBom.d.ts +1 -17
  149. package/types/lib/cli/jsBom.d.ts.map +1 -1
  150. package/types/lib/cli/jvmBom.d.ts +20 -0
  151. package/types/lib/cli/jvmBom.d.ts.map +1 -1
  152. package/types/lib/cli/managedBom.d.ts.map +1 -1
  153. package/types/lib/cli/nativeBom.d.ts.map +1 -1
  154. package/types/lib/core/boundedFile.d.ts +70 -0
  155. package/types/lib/core/boundedFile.d.ts.map +1 -0
  156. package/types/lib/core/brotliProbe.d.ts +37 -0
  157. package/types/lib/core/brotliProbe.d.ts.map +1 -0
  158. package/types/lib/core/env.d.ts +22 -2
  159. package/types/lib/core/env.d.ts.map +1 -1
  160. package/types/lib/core/fs.d.ts.map +1 -1
  161. package/types/lib/core/httpClient.d.ts +24 -0
  162. package/types/lib/core/httpClient.d.ts.map +1 -1
  163. package/types/lib/core/lockPaths.d.ts +19 -0
  164. package/types/lib/core/lockPaths.d.ts.map +1 -0
  165. package/types/lib/core/processTree.d.ts +2 -0
  166. package/types/lib/core/processTree.d.ts.map +1 -1
  167. package/types/lib/core/projectConfig.d.ts.map +1 -1
  168. package/types/lib/core/projectTooling.d.ts +41 -0
  169. package/types/lib/core/projectTooling.d.ts.map +1 -0
  170. package/types/lib/core/propertySanitizer.d.ts +26 -0
  171. package/types/lib/core/propertySanitizer.d.ts.map +1 -1
  172. package/types/lib/core/toolRegistry.d.ts +36 -0
  173. package/types/lib/core/toolRegistry.d.ts.map +1 -0
  174. package/types/lib/ecosystems/cppEvidence.d.ts +40 -13
  175. package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
  176. package/types/lib/ecosystems/cppIncludeResolver.d.ts +2 -1
  177. package/types/lib/ecosystems/cppIncludeResolver.d.ts.map +1 -1
  178. package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
  179. package/types/lib/ecosystems/gemHostProbe.d.ts +28 -0
  180. package/types/lib/ecosystems/gemHostProbe.d.ts.map +1 -0
  181. package/types/lib/ecosystems/golem.d.ts +81 -1
  182. package/types/lib/ecosystems/golem.d.ts.map +1 -1
  183. package/types/lib/ecosystems/gradleutils.d.ts +57 -21
  184. package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
  185. package/types/lib/ecosystems/parsers-bazel.d.ts.map +1 -1
  186. package/types/lib/ecosystems/parsers-dotnet.d.ts +40 -4
  187. package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
  188. package/types/lib/ecosystems/parsers-go.d.ts +85 -13
  189. package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
  190. package/types/lib/ecosystems/parsers-js.d.ts +17 -20
  191. package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
  192. package/types/lib/ecosystems/parsers-jvm.d.ts +28 -2
  193. package/types/lib/ecosystems/parsers-jvm.d.ts.map +1 -1
  194. package/types/lib/ecosystems/parsers-misc.d.ts +37 -58
  195. package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
  196. package/types/lib/ecosystems/parsers-python.d.ts +14 -3
  197. package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
  198. package/types/lib/ecosystems/pythonutils.d.ts +19 -1
  199. package/types/lib/ecosystems/pythonutils.d.ts.map +1 -1
  200. package/types/lib/ecosystems/rubyutils.d.ts +144 -12
  201. package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
  202. package/types/lib/ecosystems/rusi.d.ts.map +1 -1
  203. package/types/lib/ecosystems/scalacliutils.d.ts.map +1 -1
  204. package/types/lib/ecosystems/scalasem.d.ts.map +1 -1
  205. package/types/lib/ecosystems/vendoredCode.d.ts +26 -0
  206. package/types/lib/ecosystems/vendoredCode.d.ts.map +1 -1
  207. package/types/lib/ecosystems/venvProbe.d.ts +40 -0
  208. package/types/lib/ecosystems/venvProbe.d.ts.map +1 -0
  209. package/types/lib/evinser/evinser.d.ts +88 -8
  210. package/types/lib/evinser/evinser.d.ts.map +1 -1
  211. package/types/lib/evinser/swiftsem.d.ts +10 -0
  212. package/types/lib/evinser/swiftsem.d.ts.map +1 -1
  213. package/types/lib/inventory/agentSkillSpec.d.ts +13 -0
  214. package/types/lib/inventory/agentSkillSpec.d.ts.map +1 -0
  215. package/types/lib/inventory/apkInstalledDb.d.ts +42 -0
  216. package/types/lib/inventory/apkInstalledDb.d.ts.map +1 -0
  217. package/types/lib/inventory/atomUtils.d.ts +33 -0
  218. package/types/lib/inventory/atomUtils.d.ts.map +1 -1
  219. package/types/lib/inventory/brotliDecoder.d.ts +58 -0
  220. package/types/lib/inventory/brotliDecoder.d.ts.map +1 -0
  221. package/types/lib/inventory/cacheDir.d.ts +12 -4
  222. package/types/lib/inventory/cacheDir.d.ts.map +1 -1
  223. package/types/lib/inventory/cbomutils.d.ts +17 -0
  224. package/types/lib/inventory/cbomutils.d.ts.map +1 -1
  225. package/types/lib/inventory/certificates.d.ts +205 -0
  226. package/types/lib/inventory/certificates.d.ts.map +1 -0
  227. package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -1
  228. package/types/lib/inventory/deps.d.ts +2 -1
  229. package/types/lib/inventory/deps.d.ts.map +1 -1
  230. package/types/lib/inventory/display.d.ts +18 -0
  231. package/types/lib/inventory/display.d.ts.map +1 -1
  232. package/types/lib/inventory/dosai.d.ts +162 -7
  233. package/types/lib/inventory/dosai.d.ts.map +1 -1
  234. package/types/lib/inventory/dotnetRuntime.d.ts +44 -0
  235. package/types/lib/inventory/dotnetRuntime.d.ts.map +1 -0
  236. package/types/lib/inventory/dynamic.d.ts +6 -1
  237. package/types/lib/inventory/dynamic.d.ts.map +1 -1
  238. package/types/lib/inventory/envcontext.d.ts +92 -8
  239. package/types/lib/inventory/envcontext.d.ts.map +1 -1
  240. package/types/lib/inventory/evidenceUtils.d.ts +29 -10
  241. package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
  242. package/types/lib/inventory/formulationParsers.d.ts.map +1 -1
  243. package/types/lib/inventory/goBuildInfo.d.ts +10 -0
  244. package/types/lib/inventory/goBuildInfo.d.ts.map +1 -0
  245. package/types/lib/inventory/gtfobins.d.ts.map +1 -1
  246. package/types/lib/inventory/hbom.d.ts.map +1 -1
  247. package/types/lib/inventory/hbomAnalysis.d.ts +10 -0
  248. package/types/lib/inventory/hbomAnalysis.d.ts.map +1 -1
  249. package/types/lib/inventory/hostRuntimeProbe.d.ts +44 -0
  250. package/types/lib/inventory/hostRuntimeProbe.d.ts.map +1 -0
  251. package/types/lib/inventory/hostTopology.d.ts.map +1 -1
  252. package/types/lib/inventory/jvmToolEnv.d.ts +12 -0
  253. package/types/lib/inventory/jvmToolEnv.d.ts.map +1 -1
  254. package/types/lib/inventory/licenseEnhancer.d.ts.map +1 -1
  255. package/types/lib/inventory/mavenCentralMirror.d.ts +170 -0
  256. package/types/lib/inventory/mavenCentralMirror.d.ts.map +1 -0
  257. package/types/lib/inventory/nodeBuildInfo.d.ts +95 -0
  258. package/types/lib/inventory/nodeBuildInfo.d.ts.map +1 -0
  259. package/types/lib/inventory/nodeHostProbe.d.ts +15 -0
  260. package/types/lib/inventory/nodeHostProbe.d.ts.map +1 -0
  261. package/types/lib/inventory/osPackagePurl.d.ts +99 -0
  262. package/types/lib/inventory/osPackagePurl.d.ts.map +1 -0
  263. package/types/lib/inventory/osPackageResolver.d.ts +44 -2
  264. package/types/lib/inventory/osPackageResolver.d.ts.map +1 -1
  265. package/types/lib/inventory/osinfo.d.ts +31 -6
  266. package/types/lib/inventory/osinfo.d.ts.map +1 -1
  267. package/types/lib/inventory/osqueryTransform.d.ts +51 -0
  268. package/types/lib/inventory/osqueryTransform.d.ts.map +1 -1
  269. package/types/lib/inventory/phpBuildInfo.d.ts +142 -0
  270. package/types/lib/inventory/phpBuildInfo.d.ts.map +1 -0
  271. package/types/lib/inventory/phpHostProbe.d.ts +35 -0
  272. package/types/lib/inventory/phpHostProbe.d.ts.map +1 -0
  273. package/types/lib/inventory/rootfsCerts.d.ts +27 -0
  274. package/types/lib/inventory/rootfsCerts.d.ts.map +1 -0
  275. package/types/lib/inventory/rubyBuildInfo.d.ts +271 -0
  276. package/types/lib/inventory/rubyBuildInfo.d.ts.map +1 -0
  277. package/types/lib/inventory/rubyHostProbe.d.ts +47 -0
  278. package/types/lib/inventory/rubyHostProbe.d.ts.map +1 -0
  279. package/types/lib/inventory/source.d.ts +38 -0
  280. package/types/lib/inventory/source.d.ts.map +1 -1
  281. package/types/lib/inventory/spdx.d.ts +15 -0
  282. package/types/lib/inventory/spdx.d.ts.map +1 -1
  283. package/types/lib/inventory/traceRunner.d.ts +4 -1
  284. package/types/lib/inventory/traceRunner.d.ts.map +1 -1
  285. package/types/lib/inventory/tracedCrypto.d.ts +22 -0
  286. package/types/lib/inventory/tracedCrypto.d.ts.map +1 -1
  287. package/types/lib/managers/binary.d.ts +10 -0
  288. package/types/lib/managers/binary.d.ts.map +1 -1
  289. package/types/lib/managers/docker.d.ts +24 -0
  290. package/types/lib/managers/docker.d.ts.map +1 -1
  291. package/types/lib/parsers/email.d.ts +19 -0
  292. package/types/lib/parsers/email.d.ts.map +1 -0
  293. package/types/lib/parsers/largeJson.d.ts +17 -3
  294. package/types/lib/parsers/largeJson.d.ts.map +1 -1
  295. package/types/lib/server/server.d.ts +8 -0
  296. package/types/lib/server/server.d.ts.map +1 -1
  297. package/types/lib/stages/postgen/annotator.d.ts.map +1 -1
  298. package/types/lib/stages/postgen/introspection/reflect.d.ts.map +1 -1
  299. package/types/lib/stages/postgen/ruleEngine.d.ts +7 -4
  300. package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -1
  301. package/types/lib/stages/postgen/specVersionCompat.d.ts.map +1 -1
  302. package/types/lib/stages/pregen/envAudit.d.ts.map +1 -1
  303. package/types/lib/stages/pregen/pregen.d.ts +26 -9
  304. package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
  305. package/types/lib/validator/bomValidator.d.ts.map +1 -1
@@ -37,6 +37,49 @@ export declare function validateSpecVersion(specVersion: number, commandName?: s
37
37
  * @returns {boolean} True when the user explicitly set this flag
38
38
  */
39
39
  export declare function isUserProvided(value: any, yaDefault: any): boolean;
40
+ /**
41
+ * The value the operator gave an option on the command line or through its
42
+ * CDXGEN_* environment variable. yargs also fills options in from defaults
43
+ * and from a config file, which cannot be told apart in its output.
44
+ *
45
+ * @param {string} option kebab-case option name
46
+ * @param {object} [context]
47
+ * @param {string[]} [context.argv] Raw command-line arguments
48
+ * @param {object} [context.env] Environment variables
49
+ * @param {boolean} [context.boolean] Read the option as a boolean flag
50
+ * @returns {string|boolean|undefined} The operator's value, or undefined
51
+ */
52
+ export declare function operatorOptionChoice(option: string, { argv, env, boolean }?: {
53
+ argv?: string[];
54
+ env?: object;
55
+ boolean?: boolean;
56
+ }): string | boolean | undefined;
57
+ /**
58
+ * Make the operator's choice about running the scanned project's own code
59
+ * final. A config file is read from the working directory, which is usually
60
+ * the scanned project, so it carries that project's trust. Neither the config
61
+ * file nor a profile or lifecycle may turn installs on when the operator
62
+ * disabled them, and secure mode keeps installs off unless the operator
63
+ * passes --install-deps. Introspection keeps the project's build tools
64
+ * running with installs off, which is likewise the operator's decision, so
65
+ * introspection asked for only by the config file does not do that.
66
+ *
67
+ * **Mutates `options` in place.**
68
+ *
69
+ * @param {object} options The options object, after applyAdvancedOptions
70
+ * @param {object} [context]
71
+ * @param {object} [context.projectConfig] Sanitized config file contents
72
+ * @param {boolean} [context.isSecureMode] Whether cdxgen runs in secure mode
73
+ * @param {string[]} [context.argv] Raw command-line arguments
74
+ * @param {object} [context.env] Environment variables
75
+ * @returns {void}
76
+ */
77
+ export declare function applyOperatorToolingChoice(options: object, context?: {
78
+ projectConfig?: object;
79
+ isSecureMode?: boolean;
80
+ argv?: string[];
81
+ env?: object;
82
+ }): void;
40
83
  /**
41
84
  * Combine the custom metadata properties of every source (discussion 4391):
42
85
  * the `--metadata-property` flag, the CDXGEN_METADATA_PROPERTY and
@@ -1 +1 @@
1
- {"version":3,"file":"cliOptions.d.ts","sourceRoot":"","sources":["../../../lib/cli/cliOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAwBH;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAJpC,MAIoC,EAAE,WAAW,AAHzD,CACA,EADQ,MAG4D,GAF1D,MAAM,GAAC,IAAI,CAoBvB;AA4CD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAJzB,GAIyB,EAAE,SAAS,EAHpC,GAGoC,GAFlC,OAAO,CAInB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EATK,MASL,EACJ,EAAE,IAAmB,EAAE,aA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AAS,CAAC,CA+FjD"}
@@ -1,20 +1,4 @@
1
- /**
2
- * Detects an exact AI inventory type from a direct HuggingFace reference or a
3
- * local Modelfile/`.gguf` file input. Returns the explicit selection from
4
- * `getExactAiInventoryType` when one is present.
5
- *
6
- * Direct HuggingFace interpretation of the source path is opt-in: only
7
- * unambiguous references (`pkg:huggingface/...` purls and huggingface.co
8
- * URLs) are recognized on their own. Bare `owner/repo`-shaped values are
9
- * ordinary relative paths (eg: `repotests/sveltejs-realworld`) unless an AI
10
- * inventory type such as `-t ai` is explicitly selected, in which case
11
- * `getExactAiInventoryType` already returned it above.
12
- *
13
- * @param {string} path Project or file path
14
- * @param {object} options CLI options
15
- * @returns {string|undefined} The detected AI inventory type (`"ai"`) or undefined
16
- */
17
- export declare function getDirectAiInventoryType(path: string, options: object): string | undefined;
1
+ export declare function getDirectAiInventoryType(path: any, options: any): string | undefined;
18
2
  /**
19
3
  * Main Node.js/npm BOM generator. Parses manifests, lockfiles, and import
20
4
  * evidence to assemble components, dependencies, formulation data, AI inventory,
@@ -1 +1 @@
1
- {"version":3,"file":"jsBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jsBom.js"],"names":[],"mappings":"AAiHA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,OAAO,EAH3C,MAG2C,GAFzC,MAAM,GAAC,SAAS,CAwB5B;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC,OAAO,CAAC,MAAM,CAAC,CAq3C3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAFtB,MAE4C,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,YAJ9B,KAAK,CAAC,MAAM,CAAC,cACb,MAAM,KACJ,KAAK,CAAC,MAAM,CAwExB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,aAAa,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MH,iBAsBb"}
@@ -66,6 +66,26 @@ export declare function createJarBom(path: string, options: Object): Object;
66
66
  * @returns {string[]} List of sbt project ids
67
67
  */
68
68
  export declare function discoverSbtProjectsFromCmd(basePath: string, sbtCmd: string, env: Object, launcherArgs?: string[]): string[];
69
+ /**
70
+ * Read one pom.xml without running Maven: the module it declares and its
71
+ * direct dependencies. Versions resolve from the pom's properties and
72
+ * dependencyManagement and from parent poms inside the scanned directory.
73
+ * Versions that an imported BOM or a parent outside the directory manages
74
+ * stay empty, and transitive dependencies are unknown.
75
+ *
76
+ * No dependency edges are produced. The build-fidelity rules (BF-JVM-001,
77
+ * BF-GEN-001) recognise a pom read without Maven by its missing graph, and a
78
+ * graph of direct edges alone would pass for a resolved one.
79
+ *
80
+ * @param {string} pomFile pom.xml to read
81
+ * @param {string} rootPath Scanned directory
82
+ * @param {Map} [cache] Parent pom results shared by the poms of one scan
83
+ * @returns {{moduleComponent: Object|undefined, pkgList: Object[]}}
84
+ */
85
+ export declare function readMavenModuleStatically(pomFile: string, rootPath: string, cache?: Map<any, any>): {
86
+ moduleComponent: Object | undefined;
87
+ pkgList: Object[];
88
+ };
69
89
  /**
70
90
  * Function to create bom string for Java projects
71
91
  *
@@ -1 +1 @@
1
- {"version":3,"file":"jvmBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jvmBom.js"],"names":[],"mappings":"AA0HA;;;;;GAKG;AACH,eAAO,IAAI,gBAAgB,EAFjB,MAIsD,CAAC;AAUjE;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,EAHrB,MAQT,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,EAHhB,MAIqE,CAAC;AAuDhF;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAL3C,MAAM,EAKqC,EAAE,KAAK,AAJ1D,CAEA,EAFQ,MAIuD,GAFrD,OAAO,CAAC,MAAM,CAAC,CA2B3B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,C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,MAI8B,EAAE,OAAO,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CA4B3B;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CAoE3B;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAJhC,MAIgC,EAAE,OAAO,EAHzC,MAGyC,GAFvC,OAAO,CAAC,MAAM,CAAC,CAuC3B;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CA0C3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CA2D3B;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAJ9B,MAI8B,EAAE,OAAO,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CAwD3B"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * The largest file scanFileMarkers reads. Larger files are skipped whole
3
+ * rather than read in part, so a marker past the cap is never mistaken for an
4
+ * absent one; the result says the file was skipped.
5
+ *
6
+ * @type {number}
7
+ */
8
+ export declare const MAX_MARKER_SCAN_BYTES: number;
9
+ /**
10
+ * Open a path only when it is a regular file that does not resolve outside
11
+ * rootDir. lstat runs first so a FIFO is rejected without opening it (an open
12
+ * on a FIFO blocks until a writer appears) and a symlink is never followed.
13
+ *
14
+ * @param {string} absPath absolute path
15
+ * @param {string|undefined} rootDir extracted root the path must stay under
16
+ * @returns {{fd: number, size: number}|undefined} an open descriptor the
17
+ * caller closes, or undefined
18
+ */
19
+ export declare function openRegularFile(absPath: string, rootDir: string | undefined): {
20
+ fd: number;
21
+ size: number;
22
+ } | undefined;
23
+ /**
24
+ * Read a small text file in full, only when it is a regular file no larger
25
+ * than maxBytes. A FIFO, a directory, a symlink or an oversized file reads as
26
+ * undefined.
27
+ *
28
+ * @param {string} absPath absolute path
29
+ * @param {number} maxBytes largest size read
30
+ * @param {string|undefined} [rootDir] root the path must stay under
31
+ * @returns {string|undefined} the text, or undefined
32
+ */
33
+ export declare function readRegularTextFile(absPath: string, maxBytes: number, rootDir?: string | undefined): string | undefined;
34
+ /**
35
+ * Find byte markers in a file with bounded chunked reads.
36
+ *
37
+ * Each hit records up to `beforeBytes` bytes before the marker and up to
38
+ * `contextBytes` bytes after it, so a caller can read a version that follows a
39
+ * marker or check what a string is part of. Consecutive reads overlap by the
40
+ * longest marker plus the context length, so a marker split across two reads
41
+ * is seen whole once. Only bytes that were read are searched.
42
+ *
43
+ * @param {string} absPath absolute path of the file
44
+ * @param {string|undefined} rootDir extracted root the file must stay under
45
+ * @param {Buffer[]} markers byte markers to look for
46
+ * @param {Object} [options] options
47
+ * @param {number} [options.maxBytes] files larger than this are not read
48
+ * @param {number} [options.contextBytes=64] bytes kept after each hit
49
+ * @param {number} [options.beforeBytes=1] bytes kept before each hit
50
+ * @param {number} [options.maxHits=16] hits kept per marker
51
+ * @returns {{hits: {before: Buffer, after: Buffer, offset: number}[][], size: number, skipped?: string}|undefined}
52
+ * hits per marker, in marker order, and the file size; `skipped` is
53
+ * `too-large` when the file is over the cap and was not read. Undefined when
54
+ * the file cannot be opened.
55
+ */
56
+ export declare function scanFileMarkers(absPath: string, rootDir: string | undefined, markers: Buffer[], { maxBytes, contextBytes, beforeBytes, maxHits, }?: {
57
+ maxBytes?: number;
58
+ contextBytes?: number;
59
+ beforeBytes?: number;
60
+ maxHits?: number;
61
+ }): {
62
+ hits: {
63
+ before: Buffer;
64
+ after: Buffer;
65
+ offset: number;
66
+ }[][];
67
+ size: number;
68
+ skipped?: string;
69
+ } | undefined;
70
+ //# sourceMappingURL=boundedFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundedFile.d.ts","sourceRoot":"","sources":["../../../lib/core/boundedFile.js"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAFxB,MAEiD,CAAC;AAE5D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAL5B,MAK4B,EAAE,OAAO,EAJrC,MAAM,GAAC,SAI8B,GAHnC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAsChD;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EALhC,MAKgC,EAAE,QAAQ,EAJ1C,MAI0C,EAAE,OAAO,AAH3D,CACA,EADQ,MAAM,GAAC,SAG4C,GAFjD,MAAM,GAAC,SAAS,CAoC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAdE,MAcF,EACP,OAAO,EAdE,MAAM,GAAC,SAcT,EACP,OAAO,EAdE,MAAM,EAcR,EACP,EACE,QAAgC,EAChC,YAAiB,EACjB,WAAe,EACf,OAAY,GACb,AAnBA,CAKA,EAJA;IAAyB,QAAQ,AAAjC,CACA,EADQ,MAAM,CACd;IAAyB,YAAY,AAArC,CACA,EADQ,MAAM,CACd;IAAyB,WAAW,AAApC,CACA,EADQ,MAAM,CACd;IAAyB,OAAO,AAAhC,CACA,EADQ,MAAM,CACd;CAcK,GAdK;IAAC,IAAI,EAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,EAAE,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAsGjH"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The most files of one kind (executables and libraries, or extension
3
+ * modules) one scan opens in search of a Brotli decoder.
4
+ *
5
+ * @type {number}
6
+ */
7
+ export declare const MAX_BROTLI_PROBES: number;
8
+ /**
9
+ * The most bytes one scan reads in search of Brotli decoders.
10
+ *
11
+ * @type {number}
12
+ */
13
+ export declare const MAX_BROTLI_PROBE_BYTES: number;
14
+ /**
15
+ * Read which Brotli decoders a native file embeds and whether each carries
16
+ * the CVE-2026-111497 fix.
17
+ *
18
+ * @param {string} absPath absolute path of the file
19
+ * @param {string|undefined} rootDir extracted root the file must stay under
20
+ * @returns {{c?: {blockSwitchFix: string, evidence: string}, go?: {blockSwitchFix: string}, skipped?: string, size: number}|undefined}
21
+ * undefined when the file cannot be read or holds no decoder. `c` is
22
+ * Google's C decoder, with blockSwitchFix `true`, `false` or `unknown` and
23
+ * the evidence it rests on (`error-names`, `constant-names` or `tables`);
24
+ * `go` is the Go port. `skipped` is `too-large` for a file over the read cap.
25
+ */
26
+ export declare function readBrotliDecoder(absPath: string, rootDir: string | undefined): {
27
+ c?: {
28
+ blockSwitchFix: string;
29
+ evidence: string;
30
+ };
31
+ go?: {
32
+ blockSwitchFix: string;
33
+ };
34
+ skipped?: string;
35
+ size: number;
36
+ } | undefined;
37
+ //# sourceMappingURL=brotliProbe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brotliProbe.d.ts","sourceRoot":"","sources":["../../../lib/core/brotliProbe.js"],"names":[],"mappings":"AAmEA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAFpB,MAE2B,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAFzB,MAEmD,CAAC;AAgC9D;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAR9B,MAQ8B,EAAE,OAAO,EAPvC,MAAM,GAAC,SAOgC,GANrC;IAAC,CAAC,CAAC,EAAE;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC;IAAC,EAAE,CAAC,EAAE;QAAC,cAAc,EAAE,MAAM,CAAA;KAAC,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CA+DrI"}
@@ -113,6 +113,14 @@ export declare let CDXGEN_TEMP_DIR: string;
113
113
  export declare const SWIFT_CMD: string;
114
114
  /** Resolved Ruby executable command (RUBY_CMD env var, or "ruby"). */
115
115
  export declare const RUBY_CMD: string;
116
+ /** Resolved RubyGems executable command (CDXGEN_GEM_CMD env var, or "gem"). */
117
+ export declare const GEM_CMD: string;
118
+ /** Resolved Bundler executable command (CDXGEN_BUNDLE_CMD env var, or "bundle"). */
119
+ export declare const BUNDLE_CMD: string;
120
+ /** Resolved PHP executable command (PHP_CMD env var, or "php"). */
121
+ export declare const PHP_CMD: string;
122
+ /** Resolved Composer executable command (COMPOSER_CMD env var, or "composer"). */
123
+ export declare const COMPOSER_CMD: string;
116
124
  /** Python package components that can be excluded from the generated BOM. */
117
125
  export declare const PYTHON_EXCLUDED_COMPONENTS: string[];
118
126
  /** Map of base cdxgen project type to the array of accepted alias strings. */
@@ -211,12 +219,24 @@ export declare function isFeatureEnabled(cliOptions: Object, feature: string): b
211
219
  * @param {Boolean} defaultStatus Default return value if there are no types provided
212
220
  */
213
221
  export declare function hasAnyProjectType(projectTypes: any[], options: Object, defaultStatus?: boolean): any;
222
+ /**
223
+ * Extract the lowercase command name from an invoked command path, without
224
+ * directories or a trailing `.js`, `.cjs`, `.mjs` or `.exe` extension. Both
225
+ * `/` and `\\` separators are handled, so a Windows path is inspected the
226
+ * same way on any host.
227
+ *
228
+ * @param {string} [commandPath] Invoked command path or name
229
+ * @returns {string} Lowercase command name
230
+ */
231
+ export declare function getCommandName(commandPath?: string): string;
214
232
  /**
215
233
  * Determine whether the predictive dependency audit should run for the current
216
234
  * CLI invocation.
217
235
  *
218
- * OBOM-focused runs (`obom` or explicit `-t os` / OS aliases only) should keep
219
- * the direct BOM audit findings but skip the predictive dependency audit.
236
+ * OBOM and HBOM runs (commands named `obom` or `hbom`, including `hbom-slim`)
237
+ * and explicit `-t os` / OS / hardware project types alone keep the direct BOM
238
+ * audit findings but skip the predictive dependency audit. Only the command
239
+ * name is tested, never the directories leading to it.
220
240
  *
221
241
  * @param {object} options CLI options
222
242
  * @param {string} [commandPath] Invoked command path or name
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../lib/core/env.js"],"names":[],"mappings":"AAUA,uCAAuC;AACvC,eAAO,MAAM,MAAM,SAAmD,CAAC;AACvE,mCAAmC;AACnC,eAAO,MAAM,KAAK,SAAwC,CAAC;AAC3D,oCAAoC;AACpC,eAAO,MAAM,MAAM,SAA+C,CAAC;AAEnE,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,oBAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAIrB,CAAC;AAEX,sJAAsJ;AACtJ,eAAO,MAAM,qBAAqB,SAI/B,CAAC;AAEJ,sIAAsI;AACtI,eAAO,MAAM,sBAAsB,SAElC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAH9B,MAG8B,GAF5B,MAAM,EAAE,CAiDpB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAFrB,OAAO,CAOnB;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,IAFhC,OAAO,CAMnB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAF7B,OAAO,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAFjB,OAAO,CAOnB;AAED,mGAAmG;AACnG,eAAO,MAAM,aAAa,SAAuB,CAAC;AAElD,oJAAoJ;AACpJ,eAAO,MAAM,gBAAgB,SAEwC,CAAC;AAEtE,yFAAyF;AACzF,eAAO,MAAM,QAAQ,QAAmB,CAAC;AAEzC;;;;;GAKG;AACH,wBAAgB,cAAc,IAFjB,MAAM,CAclB;AAED,6FAA6F;AAC7F,eAAO,M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F,eAAO,MAAM,UAAU,QAEP,CAAC;AAEjB,4GAA4G;AAC5G,eAAO,MAAM,UAAU,QAEJ,CAAC;AAEpB;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,OAAO,EANxB,MAMwB,EAAE,OAAO,EALjC,MAKiC,EAAE,OAAO,GAJ1C,MAI+C,OAwCzD;AA0BD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAFhC,MAAM,GAAC,SAEyB,QAK1C;AA4BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,SAGtC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EARE,MAQF,EACP,OAAO,EARE,MAQF,EACP,UAAU,SAAA,EACV,UAAU,OAAA,OAmDX;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAFf,MAAM,CAIlB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,IAFZ,MAAM,CAYlB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAJ1B,MAI0B,EAAE,IAAI,EAHhC,MAGgC,GAF9B,OAAO,QAAQ,CAU3B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,KAAA,EAAE,IAAI,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CA8B3B"}
@@ -84,6 +84,30 @@ export declare function getDefaultHttpTimeoutMs(): number;
84
84
  * @returns {number|undefined} Total timeout in milliseconds, or `undefined`.
85
85
  */
86
86
  export declare function resolveTimeout(timeout?: number | Object): number | undefined;
87
+ /**
88
+ * Set or clear the cached runtime Brotli verdict. Exported for unit tests only.
89
+ *
90
+ * @param {boolean|undefined} verdict verdict to use, or undefined to re-check
91
+ */
92
+ export declare function _setRuntimeBrotliVerdict(verdict: boolean | undefined): void;
93
+ /**
94
+ * Whether the Brotli decoder of the runtime cdxgen runs on carries the
95
+ * CVE-2026-111497 fix, read once from the decoder itself: the node binary, or
96
+ * the shared libbrotlidec a `--shared-brotli` build (Homebrew, distro
97
+ * packages) loads; under Bun, the bun binary, which carries its own copy.
98
+ * process.versions.brotli cannot answer this, since Node.js backports the fix
99
+ * without changing it. Deno decodes Brotli in Rust, which was never affected.
100
+ *
101
+ * On Node.js cdxgen never asks for `br`, so a Brotli response comes only from
102
+ * a server that sends it unasked. When the decoder cannot be shown to be
103
+ * patched, such a body is left undecoded rather than handed to a decoder an
104
+ * attacker can write past. Bun decodes in its transport, so there the client
105
+ * stops asking for `br` instead.
106
+ *
107
+ * @param {Object} [runtime] the runtime to judge, for tests
108
+ * @returns {boolean} true when Brotli bodies may be decoded
109
+ */
110
+ export declare function runtimeBrotliDecoderIsPatched(runtime?: Object): boolean;
87
111
  /**
88
112
  * Override the response cache bounds. Returns the previous bounds so tests can
89
113
  * restore them. Not part of the public API.
@@ -1 +1 @@
1
- {"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../lib/core/httpClient.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAU3B,QAAQ;IACR,OAAO;IACP,IAAI;IAXX;;;OAGG;IACH,YAAY,QAAQ,EAHT,MAGS,EAAE,OAAO,EAFlB,MAEkB,EAQ5B;CACF;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAQ9B,OAAO;IACP,IAAI;IACJ,KAAK;IATZ;;;OAGG;IACH,YAAY,KAAK,EAHN,KAGM,EAAE,OAAO,EAFf,MAEe,EAMzB;CACF;AAmED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAF1B,MAAM,CAYlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,AAHnC,CACA,EADQ,MAAM,GAAC,MAGoB,GAFzB,MAAM,GAAC,SAAS,CAyB5B;AAsMD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAH/B;IAAC,KAA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H,wBAAgB,oBAAoB,IAFvB,IAAI,CAIhB;AA8VD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,AAJtC,CACA,EADQ,MAImC,YAwC7C"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Containment check for a path taken from a lockfile (issue #3816). A crafted
3
+ * npm lockfile can name `file:`/`link:` specifiers or link targets built from
4
+ * `..` chains or absolute paths, so a parser that is about to list such an
5
+ * entry checks the resolved path against the project root first.
6
+ *
7
+ * The candidate is resolved against `projectRoot`, so both relative values
8
+ * and the absolute paths arborist already normalised are accepted. The root
9
+ * itself counts as inside: a lockfile may legitimately link the project to
10
+ * its own directory.
11
+ *
12
+ * @param {string} candidate Path to check, absolute or relative to projectRoot
13
+ * @param {string} projectRoot Project root the path must stay inside; a falsy
14
+ * root means the current working directory, mirroring `node:path`
15
+ *
16
+ * @returns {Boolean} True when the path is inside projectRoot
17
+ */
18
+ export declare function isPathInsideProject(candidate: string, projectRoot: string): boolean;
19
+ //# sourceMappingURL=lockPaths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockPaths.d.ts","sourceRoot":"","sources":["../../../lib/core/lockPaths.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EANlC,MAMkC,EAAE,WAAW,EAL/C,MAK+C,WAkBzD"}
@@ -25,6 +25,8 @@ export declare function formatDuration(ms: number): string;
25
25
  * its end: once the root is gone its pid can be handed to an unrelated
26
26
  * process, whose children would otherwise look like the run's. Elsewhere this
27
27
  * does nothing: an orphan is re-parented and can no longer be told apart.
28
+ * It returns once the stopped processes have exited, or after ten seconds,
29
+ * so the caller can remove files the run left half-written.
28
30
  *
29
31
  * @param {number|undefined} rootPid pid of the process cdxgen spawned
30
32
  * @param {number} startedAt Epoch milliseconds at which the run started
@@ -1 +1 @@
1
- {"version":3,"file":"processTree.d.ts","sourceRoot":"","sources":["../../../lib/core/processTree.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAHtB,MAGsB,GAFpB,MAAM,CAQlB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAPE,MAAM,GAAC,SAOT,EACP,SAAS,EAPA,MAOA,EACT,OAAO,AAPN,CACA,EADQ,MAOW,EACpB,QAAQ,AAPP,CACA,EADQ,MAOY,GANV,MAAM,EAAE,CAuDpB"}
1
+ {"version":3,"file":"processTree.d.ts","sourceRoot":"","sources":["../../../lib/core/processTree.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAHtB,MAGsB,GAFpB,MAAM,CAQlB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAPE,MAAM,GAAC,SAOT,EACP,SAAS,EAPA,MAOA,EACT,OAAO,AAPN,CACA,EADQ,MAOW,EACpB,QAAQ,AAPP,CACA,EADQ,MAOY,GANV,MAAM,EAAE,CA0DpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,wBAAwB,UAKpC,CAAC;AAsEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAJjC,MAIiC,EAAE,SAAS,EAH5C,MAG4C,GAF1C;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,EAAE,MAAM,EAAE,CAAA;CAAC,CA+CnG"}
1
+ {"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,wBAAwB,UAKpC,CAAC;AAuEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAJjC,MAIiC,EAAE,SAAS,EAH5C,MAG4C,GAF1C;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,EAAE,MAAM,EAAE,CAAA;CAAC,CA+CnG"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Whether secure mode is on right now. `isSecureMode` is read once when the
3
+ * modules load, but the `cdxgen-secure` command turns secure mode on later,
4
+ * by setting CDXGEN_SECURE_MODE before the scan starts.
5
+ *
6
+ * @returns {boolean} true when secure mode is on
7
+ */
8
+ export declare function isSecureModeActive(): boolean;
9
+ /**
10
+ * Whether the scan may run the scanned project's own build tooling, such as
11
+ * wrapper scripts or build definitions that Maven, Gradle, sbt, Mill, Poetry,
12
+ * PDM, MSBuild, SwiftPM, Leiningen and CocoaPods evaluate.
13
+ *
14
+ * Tooling follows `options.installDeps`, which defaults to off in secure mode
15
+ * when a caller does not set it. Introspection mode exists to observe the
16
+ * project's own toolchain, so it keeps that tooling on even when dependency
17
+ * installation is disabled, as long as the operator asked for it rather than
18
+ * a config file in the scanned project. Secure mode still wins:
19
+ * CDXGEN_INTROSPECT alone must not make a secure-mode scan run the scanned
20
+ * project's code.
21
+ *
22
+ * @param {Object} [options] CLI options
23
+ * @returns {boolean} true when project tooling may run
24
+ */
25
+ export declare function isProjectToolingAllowed(options?: Object): boolean;
26
+ /**
27
+ * Tell the user that a tool was skipped because project tooling is not
28
+ * allowed, and record the matching degradation for the fidelity report.
29
+ * Each skip is reported once per scan, however many manifests it applies to.
30
+ * A skip that only costs evidence, not BOM content, passes no remediation id
31
+ * and is only shown.
32
+ *
33
+ * @param {Object} options CLI options of the scan
34
+ * @param {string|null} remediationId Remediation id from
35
+ * data/remediations.json, or null for a message only
36
+ * @param {string} message Console message shown to the user
37
+ * @param {Object} [fields] Degradation fields (ecosystem, tool, impact, detail)
38
+ * @returns {void}
39
+ */
40
+ export declare function reportProjectToolingSkipped(options: Object, remediationId: string | null, message: string, fields?: Object): void;
41
+ //# sourceMappingURL=projectTooling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectTooling.d.ts","sourceRoot":"","sources":["../../../lib/core/projectTooling.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,IAFrB,OAAO,CAOnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,AAH5C,CACA,EADQ,MAGoC,GAFlC,OAAO,CAanB;AAOD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EARE,MAQF,EACP,aAAa,EARJ,MAAM,GAAC,IAQH,EACb,OAAO,EAPE,MAOF,EACP,MAAM,AAPL,CACA,EADQ,MAOH,GANK,IAAI,CAuBhB"}
@@ -12,6 +12,32 @@ export declare function sanitizeStructuredValueForBom(value: unknown): unknown;
12
12
  * @returns {string} sanitized URL
13
13
  */
14
14
  export declare function sanitizeBomUrl(value: string): string;
15
+ /**
16
+ * Percent-encode what an RFC 3986 URI reference cannot hold as it is, so a
17
+ * route template or URL can be emitted where CycloneDX expects an
18
+ * iri-reference, such as `services[].endpoints[]`. The braces of a route
19
+ * template, spaces, `<>`, `[]` outside an IPv6 host, `|`, `^`, non-ASCII
20
+ * characters and a `%` that starts no escape are encoded:
21
+ * `/users/{id}` becomes `/users/%7Bid%7D`. The scheme and authority of an
22
+ * absolute URL are kept as written, the query and fragment stay a query and
23
+ * fragment, and existing escapes are kept, so encoding twice changes
24
+ * nothing. Nothing is removed; strip credentials with {@link sanitizeBomUrl}
25
+ * first.
26
+ *
27
+ * @param {unknown} value Route template, path or URL
28
+ * @returns {string} The encoded reference
29
+ */
30
+ export declare function encodeUriReference(value: unknown): string;
31
+ /**
32
+ * Whether a value carries a token shape the BOM sanitizer redacts: cloud
33
+ * access keys, bearer tokens, GitHub, Slack and npm tokens, JWTs and the
34
+ * like. Callers that cannot splice a `[redacted]` marker into the value, such
35
+ * as a URL path segment, use it to drop the value instead.
36
+ *
37
+ * @param {unknown} value Value to check
38
+ * @returns {boolean} true when the value holds an inline credential
39
+ */
40
+ export declare function hasInlineCredential(value: unknown): boolean;
15
41
  /**
16
42
  * Sanitize a property value before serializing it into BOM properties.
17
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"propertySanitizer.d.ts","sourceRoot":"","sources":["../../../lib/core/propertySanitizer.js"],"names":[],"mappings":"AAyDA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAHxC,OAGwC,GAFtC,OAAO,CAInB;AAyED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAHzB,MAGyB,GAFvB,MAAM,CAIlB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,KAAK,EAHzC,OAGyC,GAFvC,MAAM,GAAC,OAAO,CAoB1B"}
1
+ {"version":3,"file":"propertySanitizer.d.ts","sourceRoot":"","sources":["../../../lib/core/propertySanitizer.js"],"names":[],"mappings":"AAkEA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAHxC,OAGwC,GAFtC,OAAO,CAInB;AAyED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAHzB,MAGyB,GAFvB,MAAM,CAIlB;AAWD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAH7B,OAG6B,GAF3B,MAAM,CAsBlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAH9B,OAG8B,GAF5B,OAAO,CAQnB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,KAAK,EAHzC,OAGyC,GAFvC,MAAM,GAAC,OAAO,CAoB1B"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Record an external tool cdxgen executed. The first version seen wins unless
3
+ * it was unknown, so an enriched probe never overwrites a concrete version
4
+ * with `undefined` and a later concrete version fills an earlier gap.
5
+ *
6
+ * @param {string} name Tool name as invoked (a bare name or a path)
7
+ * @param {string|undefined} version Version when cheaply known
8
+ */
9
+ export declare function recordExecutedTool(name: string, version: string | undefined): void;
10
+ /**
11
+ * Remember the version a stage already resolved for a tool, such as the JVM
12
+ * build tool pregen provisioned. The version shows in `metadata.tools` only if
13
+ * the tool is executed; the first version recorded wins.
14
+ *
15
+ * @param {string} name Tool name as it will be invoked (a bare name or a path)
16
+ * @param {string} version Resolved version
17
+ */
18
+ export declare function recordToolVersion(name: string, version: string): void;
19
+ /**
20
+ * Snapshot of the tools recorded so far, sorted by name so the assembled
21
+ * `metadata.tools` diff stays stable between runs.
22
+ *
23
+ * @returns {Array<{name: string, version: (string|undefined)}>} Sorted tool records
24
+ */
25
+ export declare function getExecutedTools(): Array<{
26
+ name: string;
27
+ version: (string | undefined);
28
+ }>;
29
+ /**
30
+ * Clear the registry. The server calls it between scans through the run-state
31
+ * reset; tests call it directly.
32
+ *
33
+ * @returns {void}
34
+ */
35
+ export declare function resetExecutedTools(): void;
36
+ //# sourceMappingURL=toolRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolRegistry.d.ts","sourceRoot":"","sources":["../../../lib/core/toolRegistry.js"],"names":[],"mappings":"AAsFA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAH5B,MAG4B,EAAE,OAAO,EAFrC,MAAM,GAAC,SAE8B,QAoB/C;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAH3B,MAG2B,EAAE,OAAO,EAFpC,MAEoC,QAW9C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAFnB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAA;CAAC,CAAC,CAe9D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAFrB,IAAI,CAKhB"}