@cdxgen/cdxgen 13.1.0 → 13.3.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 (283) hide show
  1. package/README.md +32 -15
  2. package/bin/cdxgen.js +243 -122
  3. package/bin/evinse.js +7 -0
  4. package/bin/sign.js +88 -14
  5. package/bin/tracebom.js +64 -4
  6. package/bin/validate.js +29 -7
  7. package/bin/verify.js +79 -39
  8. package/data/crypto-oid.json +88 -12
  9. package/data/remediations.json +47 -0
  10. package/data/rules/ai-bom.yaml +78 -0
  11. package/data/rules/cargo-rust.yaml +132 -0
  12. package/data/rules/mcp-servers.yaml +122 -0
  13. package/lib/audit/targets.js +6 -1
  14. package/lib/cli/bomAssembly.js +117 -15
  15. package/lib/cli/cliOptions.js +93 -1
  16. package/lib/cli/index.js +235 -5
  17. package/lib/cli/jsBom.js +108 -26
  18. package/lib/cli/jvmBom.js +68 -12
  19. package/lib/cli/managedBom.js +264 -41
  20. package/lib/cli/nativeBom.js +923 -15
  21. package/lib/core/activity.js +120 -2
  22. package/lib/core/env.js +44 -7
  23. package/lib/core/fs.js +174 -6
  24. package/lib/core/metadataProperties.js +97 -0
  25. package/lib/core/projectConfig.js +31 -4
  26. package/lib/core/userAgent.js +151 -0
  27. package/lib/ecosystems/bunutils.js +269 -101
  28. package/lib/ecosystems/cargoCache.js +364 -0
  29. package/lib/ecosystems/caxa.js +447 -7
  30. package/lib/ecosystems/cmakeResolver.js +66 -0
  31. package/lib/ecosystems/cppEvidence.js +104 -33
  32. package/lib/ecosystems/ecosystems.js +260 -99
  33. package/lib/ecosystems/golem.js +11 -1
  34. package/lib/ecosystems/gradleutils.js +185 -9
  35. package/lib/ecosystems/jsEvidence.js +19 -20
  36. package/lib/ecosystems/kosi.js +1263 -0
  37. package/lib/ecosystems/npmutils.js +110 -9
  38. package/lib/ecosystems/parsers-crystal.js +179 -0
  39. package/lib/ecosystems/parsers-dotnet.js +120 -49
  40. package/lib/ecosystems/parsers-elm.js +816 -0
  41. package/lib/ecosystems/parsers-gleam.js +1 -1
  42. package/lib/ecosystems/parsers-go.js +47 -9
  43. package/lib/ecosystems/parsers-js.js +171 -50
  44. package/lib/ecosystems/parsers-julia.js +268 -0
  45. package/lib/ecosystems/parsers-lua.js +218 -0
  46. package/lib/ecosystems/parsers-misc.js +919 -161
  47. package/lib/ecosystems/parsers-nim.js +221 -0
  48. package/lib/ecosystems/parsers-opam.js +180 -0
  49. package/lib/ecosystems/parsers-perl.js +277 -0
  50. package/lib/ecosystems/parsers-python.js +27 -15
  51. package/lib/ecosystems/parsers-r.js +148 -0
  52. package/lib/ecosystems/parsers-rebar.js +411 -0
  53. package/lib/ecosystems/parsers-rust.js +954 -33
  54. package/lib/ecosystems/parsers-spack.js +204 -0
  55. package/lib/ecosystems/parsers-stack.js +264 -0
  56. package/lib/ecosystems/parsers-terraform.js +194 -0
  57. package/lib/ecosystems/rubyutils.js +1426 -166
  58. package/lib/ecosystems/rusi.js +158 -7
  59. package/lib/evinser/evinser.js +547 -129
  60. package/lib/evinser/swiftsem.js +1914 -302
  61. package/lib/helpers/agenticToolutils.js +925 -0
  62. package/lib/helpers/bomSigner.js +652 -221
  63. package/lib/inventory/agentFormulationParser.js +57 -4
  64. package/lib/inventory/aiCollector.js +504 -10
  65. package/lib/inventory/aiInventory.js +12 -0
  66. package/lib/inventory/analyzer.js +488 -30
  67. package/lib/inventory/astWorker.js +6 -0
  68. package/lib/inventory/atomUtils.js +568 -31
  69. package/lib/inventory/auditCategories.js +8 -0
  70. package/lib/inventory/cbomutils.js +30 -0
  71. package/lib/inventory/cdxrs.js +110 -14
  72. package/lib/inventory/communityAiConfigParser.js +215 -2
  73. package/lib/inventory/depsUtils.js +183 -11
  74. package/lib/inventory/display.js +4 -5
  75. package/lib/inventory/dosai.js +627 -13
  76. package/lib/inventory/dynamic.js +39 -1
  77. package/lib/inventory/envcontext.js +9 -6
  78. package/lib/inventory/evidenceUtils.js +26 -5
  79. package/lib/inventory/fetchBatch.js +190 -19
  80. package/lib/inventory/fetchRate.js +74 -11
  81. package/lib/inventory/forgeEnricher.js +3 -2
  82. package/lib/inventory/jvmToolEnv.js +6 -5
  83. package/lib/inventory/mcpConfigParser.js +166 -2
  84. package/lib/inventory/mcpDiscovery.js +11 -0
  85. package/lib/inventory/mcpServerManifest.js +389 -0
  86. package/lib/inventory/mcpbBundle.js +419 -0
  87. package/lib/inventory/plugins.js +3 -0
  88. package/lib/inventory/protobom.js +62 -89
  89. package/lib/inventory/protobomLoader.js +4 -0
  90. package/lib/inventory/purl.js +152 -3
  91. package/lib/inventory/rustFormulationParser.js +1 -1
  92. package/lib/inventory/sbomDocument.js +2 -70
  93. package/lib/inventory/source.js +47 -23
  94. package/lib/inventory/stylePackageRefs.js +41 -0
  95. package/lib/inventory/svelteUtils.js +524 -0
  96. package/lib/inventory/traceRunner.js +210 -21
  97. package/lib/managers/binary.js +115 -24
  98. package/lib/managers/docker.js +440 -20
  99. package/lib/managers/oci.js +39 -1
  100. package/lib/parsers/cmakeLists.js +452 -0
  101. package/lib/parsers/huggingfaceUtils.js +15 -7
  102. package/lib/parsers/largeJson.js +454 -0
  103. package/lib/parsers/npmrc.js +19 -1
  104. package/lib/parsers/onnx.js +294 -0
  105. package/lib/parsers/safetensors.js +114 -0
  106. package/lib/stages/postgen/introspection/markers.js +29 -6
  107. package/lib/stages/postgen/postgen.js +237 -16
  108. package/lib/third-party/arborist/snapshots/calc-dep-flags.test.cjs +462 -0
  109. package/lib/validator/bomValidator.js +6 -16
  110. package/lib/validator/index.js +48 -10
  111. package/lib/validator/reporters/console.js +3 -0
  112. package/lib/validator/reporters/json.js +1 -0
  113. package/lib/validator/reporters/sarif.js +7 -0
  114. package/package.json +27 -27
  115. package/types/lib/audit/targets.d.ts.map +1 -1
  116. package/types/lib/cli/bomAssembly.d.ts +2 -1
  117. package/types/lib/cli/bomAssembly.d.ts.map +1 -1
  118. package/types/lib/cli/cliOptions.d.ts +33 -1
  119. package/types/lib/cli/cliOptions.d.ts.map +1 -1
  120. package/types/lib/cli/index.d.ts +2 -2
  121. package/types/lib/cli/index.d.ts.map +1 -1
  122. package/types/lib/cli/jsBom.d.ts +23 -0
  123. package/types/lib/cli/jsBom.d.ts.map +1 -1
  124. package/types/lib/cli/jvmBom.d.ts.map +1 -1
  125. package/types/lib/cli/managedBom.d.ts +33 -0
  126. package/types/lib/cli/managedBom.d.ts.map +1 -1
  127. package/types/lib/cli/nativeBom.d.ts +88 -8
  128. package/types/lib/cli/nativeBom.d.ts.map +1 -1
  129. package/types/lib/core/activity.d.ts.map +1 -1
  130. package/types/lib/core/env.d.ts +21 -0
  131. package/types/lib/core/env.d.ts.map +1 -1
  132. package/types/lib/core/fs.d.ts +55 -0
  133. package/types/lib/core/fs.d.ts.map +1 -1
  134. package/types/lib/core/metadataProperties.d.ts +39 -0
  135. package/types/lib/core/metadataProperties.d.ts.map +1 -0
  136. package/types/lib/core/projectConfig.d.ts +6 -2
  137. package/types/lib/core/projectConfig.d.ts.map +1 -1
  138. package/types/lib/core/userAgent.d.ts +56 -0
  139. package/types/lib/core/userAgent.d.ts.map +1 -0
  140. package/types/lib/ecosystems/bunutils.d.ts +12 -5
  141. package/types/lib/ecosystems/bunutils.d.ts.map +1 -1
  142. package/types/lib/ecosystems/cargoCache.d.ts +75 -0
  143. package/types/lib/ecosystems/cargoCache.d.ts.map +1 -0
  144. package/types/lib/ecosystems/caxa.d.ts +14 -0
  145. package/types/lib/ecosystems/caxa.d.ts.map +1 -1
  146. package/types/lib/ecosystems/cmakeResolver.d.ts +23 -0
  147. package/types/lib/ecosystems/cmakeResolver.d.ts.map +1 -1
  148. package/types/lib/ecosystems/cppEvidence.d.ts +2 -2
  149. package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
  150. package/types/lib/ecosystems/ecosystems.d.ts +15 -1
  151. package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
  152. package/types/lib/ecosystems/golem.d.ts.map +1 -1
  153. package/types/lib/ecosystems/gradleutils.d.ts +40 -4
  154. package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
  155. package/types/lib/ecosystems/jsEvidence.d.ts +5 -2
  156. package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -1
  157. package/types/lib/ecosystems/kosi.d.ts +86 -0
  158. package/types/lib/ecosystems/kosi.d.ts.map +1 -0
  159. package/types/lib/ecosystems/npmutils.d.ts +42 -0
  160. package/types/lib/ecosystems/npmutils.d.ts.map +1 -1
  161. package/types/lib/ecosystems/parsers-crystal.d.ts +27 -0
  162. package/types/lib/ecosystems/parsers-crystal.d.ts.map +1 -0
  163. package/types/lib/ecosystems/parsers-dotnet.d.ts +19 -0
  164. package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
  165. package/types/lib/ecosystems/parsers-elm.d.ts +79 -0
  166. package/types/lib/ecosystems/parsers-elm.d.ts.map +1 -0
  167. package/types/lib/ecosystems/parsers-go.d.ts +10 -0
  168. package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
  169. package/types/lib/ecosystems/parsers-js.d.ts +10 -4
  170. package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
  171. package/types/lib/ecosystems/parsers-julia.d.ts +57 -0
  172. package/types/lib/ecosystems/parsers-julia.d.ts.map +1 -0
  173. package/types/lib/ecosystems/parsers-lua.d.ts +50 -0
  174. package/types/lib/ecosystems/parsers-lua.d.ts.map +1 -0
  175. package/types/lib/ecosystems/parsers-misc.d.ts +90 -3
  176. package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
  177. package/types/lib/ecosystems/parsers-nim.d.ts +43 -0
  178. package/types/lib/ecosystems/parsers-nim.d.ts.map +1 -0
  179. package/types/lib/ecosystems/parsers-opam.d.ts +31 -0
  180. package/types/lib/ecosystems/parsers-opam.d.ts.map +1 -0
  181. package/types/lib/ecosystems/parsers-perl.d.ts +36 -0
  182. package/types/lib/ecosystems/parsers-perl.d.ts.map +1 -0
  183. package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
  184. package/types/lib/ecosystems/parsers-r.d.ts +35 -0
  185. package/types/lib/ecosystems/parsers-r.d.ts.map +1 -0
  186. package/types/lib/ecosystems/parsers-rebar.d.ts +42 -0
  187. package/types/lib/ecosystems/parsers-rebar.d.ts.map +1 -0
  188. package/types/lib/ecosystems/parsers-rust.d.ts +199 -0
  189. package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -1
  190. package/types/lib/ecosystems/parsers-spack.d.ts +33 -0
  191. package/types/lib/ecosystems/parsers-spack.d.ts.map +1 -0
  192. package/types/lib/ecosystems/parsers-stack.d.ts +35 -0
  193. package/types/lib/ecosystems/parsers-stack.d.ts.map +1 -0
  194. package/types/lib/ecosystems/parsers-terraform.d.ts +34 -0
  195. package/types/lib/ecosystems/parsers-terraform.d.ts.map +1 -0
  196. package/types/lib/ecosystems/pythonutils.d.ts +1 -1
  197. package/types/lib/ecosystems/rubyutils.d.ts +143 -2
  198. package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
  199. package/types/lib/ecosystems/rusi.d.ts +13 -0
  200. package/types/lib/ecosystems/rusi.d.ts.map +1 -1
  201. package/types/lib/evinser/evinser.d.ts +81 -2
  202. package/types/lib/evinser/evinser.d.ts.map +1 -1
  203. package/types/lib/evinser/swiftsem.d.ts +280 -15
  204. package/types/lib/evinser/swiftsem.d.ts.map +1 -1
  205. package/types/lib/helpers/agenticToolutils.d.ts +87 -0
  206. package/types/lib/helpers/agenticToolutils.d.ts.map +1 -0
  207. package/types/lib/helpers/bomSigner.d.ts +106 -13
  208. package/types/lib/helpers/bomSigner.d.ts.map +1 -1
  209. package/types/lib/inventory/agentFormulationParser.d.ts.map +1 -1
  210. package/types/lib/inventory/aiCollector.d.ts.map +1 -1
  211. package/types/lib/inventory/aiInventory.d.ts.map +1 -1
  212. package/types/lib/inventory/analyzer.d.ts.map +1 -1
  213. package/types/lib/inventory/atomUtils.d.ts +145 -3
  214. package/types/lib/inventory/atomUtils.d.ts.map +1 -1
  215. package/types/lib/inventory/auditCategories.d.ts +4 -0
  216. package/types/lib/inventory/auditCategories.d.ts.map +1 -1
  217. package/types/lib/inventory/cbomutils.d.ts.map +1 -1
  218. package/types/lib/inventory/cdxrs.d.ts +8 -3
  219. package/types/lib/inventory/cdxrs.d.ts.map +1 -1
  220. package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -1
  221. package/types/lib/inventory/depsUtils.d.ts +15 -0
  222. package/types/lib/inventory/depsUtils.d.ts.map +1 -1
  223. package/types/lib/inventory/display.d.ts.map +1 -1
  224. package/types/lib/inventory/dosai.d.ts +87 -1
  225. package/types/lib/inventory/dosai.d.ts.map +1 -1
  226. package/types/lib/inventory/dynamic.d.ts.map +1 -1
  227. package/types/lib/inventory/envcontext.d.ts.map +1 -1
  228. package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
  229. package/types/lib/inventory/fetchBatch.d.ts +34 -0
  230. package/types/lib/inventory/fetchBatch.d.ts.map +1 -1
  231. package/types/lib/inventory/fetchRate.d.ts +9 -6
  232. package/types/lib/inventory/fetchRate.d.ts.map +1 -1
  233. package/types/lib/inventory/forgeEnricher.d.ts.map +1 -1
  234. package/types/lib/inventory/jvmToolEnv.d.ts +5 -4
  235. package/types/lib/inventory/jvmToolEnv.d.ts.map +1 -1
  236. package/types/lib/inventory/mcpConfigParser.d.ts.map +1 -1
  237. package/types/lib/inventory/mcpDiscovery.d.ts.map +1 -1
  238. package/types/lib/inventory/mcpServerManifest.d.ts +19 -0
  239. package/types/lib/inventory/mcpServerManifest.d.ts.map +1 -0
  240. package/types/lib/inventory/mcpbBundle.d.ts +19 -0
  241. package/types/lib/inventory/mcpbBundle.d.ts.map +1 -0
  242. package/types/lib/inventory/plugins.d.ts.map +1 -1
  243. package/types/lib/inventory/protobom.d.ts +18 -13
  244. package/types/lib/inventory/protobom.d.ts.map +1 -1
  245. package/types/lib/inventory/protobomLoader.d.ts.map +1 -1
  246. package/types/lib/inventory/purl.d.ts +71 -2
  247. package/types/lib/inventory/purl.d.ts.map +1 -1
  248. package/types/lib/inventory/sbomDocument.d.ts.map +1 -1
  249. package/types/lib/inventory/source.d.ts.map +1 -1
  250. package/types/lib/inventory/stylePackageRefs.d.ts +17 -0
  251. package/types/lib/inventory/stylePackageRefs.d.ts.map +1 -0
  252. package/types/lib/inventory/svelteUtils.d.ts +124 -0
  253. package/types/lib/inventory/svelteUtils.d.ts.map +1 -0
  254. package/types/lib/inventory/traceRunner.d.ts +47 -1
  255. package/types/lib/inventory/traceRunner.d.ts.map +1 -1
  256. package/types/lib/managers/binary.d.ts +30 -1
  257. package/types/lib/managers/binary.d.ts.map +1 -1
  258. package/types/lib/managers/docker.d.ts +29 -0
  259. package/types/lib/managers/docker.d.ts.map +1 -1
  260. package/types/lib/managers/oci.d.ts +14 -0
  261. package/types/lib/managers/oci.d.ts.map +1 -1
  262. package/types/lib/parsers/cmakeLists.d.ts +76 -0
  263. package/types/lib/parsers/cmakeLists.d.ts.map +1 -0
  264. package/types/lib/parsers/huggingfaceUtils.d.ts +8 -1
  265. package/types/lib/parsers/huggingfaceUtils.d.ts.map +1 -1
  266. package/types/lib/parsers/largeJson.d.ts +52 -0
  267. package/types/lib/parsers/largeJson.d.ts.map +1 -0
  268. package/types/lib/parsers/npmrc.d.ts +5 -0
  269. package/types/lib/parsers/npmrc.d.ts.map +1 -1
  270. package/types/lib/parsers/onnx.d.ts +28 -0
  271. package/types/lib/parsers/onnx.d.ts.map +1 -0
  272. package/types/lib/parsers/safetensors.d.ts +22 -0
  273. package/types/lib/parsers/safetensors.d.ts.map +1 -0
  274. package/types/lib/stages/postgen/introspection/markers.d.ts +3 -2
  275. package/types/lib/stages/postgen/introspection/markers.d.ts.map +1 -1
  276. package/types/lib/stages/postgen/postgen.d.ts +33 -0
  277. package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
  278. package/types/lib/validator/bomValidator.d.ts.map +1 -1
  279. package/types/lib/validator/index.d.ts +10 -1
  280. package/types/lib/validator/index.d.ts.map +1 -1
  281. package/types/lib/validator/reporters/console.d.ts.map +1 -1
  282. package/types/lib/validator/reporters/json.d.ts.map +1 -1
  283. package/types/lib/validator/reporters/sarif.d.ts.map +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agenticToolutils.d.ts","sourceRoot":"","sources":["../../../lib/helpers/agenticToolutils.js"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,YAAY,CAAC;AA8BhD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAH5B,MAG4B,GAF1B,MAAM,CAgBlB;AAqBD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,IAHrB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC,CAyGvF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAHvB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,CAgBjF;AAoUD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAL5B,MAK4B,EAAE,GAAG,EAJjC,MAIiC,EAAE,UAAU,AAHrD,CACA,EADQ,MAG6C,GAF3C,MAAM,CAkClB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAJlC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAI3B,GAFhC,MAAM,CA8ClB;AA0OD;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,KAAK,GAFpC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAoC9E"}
@@ -1,28 +1,121 @@
1
1
  import crypto from "node:crypto";
2
2
  /**
3
- * Recursively applies signatures to the BOM and its granular components.
3
+ * Renders a value taken from a document for a message. JSON can make any field
4
+ * an object or array, and interpolating those directly can throw.
5
+ *
6
+ * @param {any} value - Value to render
7
+ * @returns {string} - Printable text
8
+ */
9
+ export declare function displayValue(value: any): string;
10
+ /**
11
+ * Wraps shared-secret material for HMAC (HS256, HS384, HS512) signing or
12
+ * verification.
13
+ *
14
+ * HMAC is only ever used with a key produced by this function (or any secret
15
+ * KeyObject). Public and private keys are refused, so a document cannot switch
16
+ * a verifier to HMAC and use its public key as the secret.
17
+ *
18
+ * @param {string|Buffer|crypto.KeyObject} material - Secret bytes, a UTF-8 string, or a secret KeyObject
19
+ * @returns {crypto.KeyObject} - A secret KeyObject
20
+ */
21
+ export declare function loadSharedSecret(material: string | Buffer | crypto.KeyObject): crypto.KeyObject;
22
+ /**
23
+ * Loads the key used to verify signatures.
24
+ *
25
+ * Strings and Buffers are always parsed as asymmetric keys (a private key is
26
+ * reduced to its public half). To verify HMAC signatures, pass the result of
27
+ * {@link loadSharedSecret} instead.
28
+ *
29
+ * @param {string|Buffer|Object|crypto.KeyObject} key - PEM text, a createPublicKey() input, or a KeyObject
30
+ * @returns {crypto.KeyObject} - A public or secret KeyObject
31
+ */
32
+ export declare function loadVerificationKey(key: string | Buffer | Object | crypto.KeyObject): crypto.KeyObject;
33
+ /**
34
+ * Generates a PEM key pair suitable for the given JSF algorithm.
35
+ *
36
+ * @param {string} algorithm - JSF algorithm identifier
37
+ * @returns {{ publicKey: string, privateKey: string }} - PEM encoded SPKI public key and PKCS#8 private key
38
+ */
39
+ export declare function generateSigningKeyPair(algorithm: string): {
40
+ publicKey: string;
41
+ privateKey: string;
42
+ };
43
+ /**
44
+ * Applies JSF signatures to the BOM and, optionally, its components, services,
45
+ * and annotations.
46
+ *
47
+ * Nested elements are signed by default. When a `signers` or `chain` signature
48
+ * is appended to a BOM that already has a root signature, nested elements are
49
+ * skipped by default, because changing them would invalidate the existing root
50
+ * signature; explicitly requesting nested signing in that case is an error.
4
51
  *
5
52
  * @param {Object} bomJson - CycloneDX BOM Object
6
- * @param {Object} options - Signing options { privateKey, algorithm, mode, ... }
53
+ * @param {Object} options - Signing options
54
+ * @param {string|Buffer|Object|crypto.KeyObject} options.privateKey - Private key (PEM or KeyObject), or the shared secret for HS* algorithms
55
+ * @param {string} [options.algorithm] - JSF algorithm identifier (default RS512). It must match the key type.
56
+ * @param {Object} [options.publicKeyJwk] - JWK of the signing key's public key to embed
57
+ * @param {string} [options.keyId] - Key ID to embed
58
+ * @param {string} [options.mode] - 'replace' (default), 'signers', or 'chain'
59
+ * @param {boolean} [options.signComponents] - Sign each component
60
+ * @param {boolean} [options.signServices] - Sign each service
61
+ * @param {boolean} [options.signAnnotations] - Sign each annotation
7
62
  * @returns {Object} - Signed BOM Object
8
63
  */
9
- export declare function signBom(bomJson: Object, options?: Object): Object;
64
+ export declare function signBom(bomJson: Object, options?: {
65
+ privateKey: string | Buffer | Object | crypto.KeyObject;
66
+ algorithm?: string;
67
+ publicKeyJwk?: Object;
68
+ keyId?: string;
69
+ mode?: string;
70
+ signComponents?: boolean;
71
+ signServices?: boolean;
72
+ signAnnotations?: boolean;
73
+ }): Object;
10
74
  /**
11
- * Verifies the integrity of a specific element node (e.g., BOM root, Component, Service, Annotation).
12
- * Resolves standard JSF signatures, multisignature (signers), and chains.
75
+ * Verifies the signature of a single node (e.g., BOM root, Component, Service,
76
+ * Annotation). Handles single signatures, multi-signatures (signers), and
77
+ * signature chains, and returns the first signature object that matches the key.
78
+ *
79
+ * A signature only matches when its declared algorithm fits the key type, its
80
+ * embedded publicKey (if any) is the verification key, and its value covers the
81
+ * node content plus the signature metadata as JSF defines.
13
82
  *
14
83
  * @param {Object} node - The BOM or granular object to verify
15
- * @param {string|crypto.KeyObject} publicKey - The public key corresponding to the signature
16
- * @returns {boolean|Object} - Signature block if signature is valid. False otherwise.
84
+ * @param {string|Buffer|Object|crypto.KeyObject} publicKey - Verification key. Strings and Buffers are parsed as public keys; use loadSharedSecret() for HMAC.
85
+ * @param {Object} [options]
86
+ * @param {string[]} [options.reasons] - When no signature matches, receives the reason each entry was rejected
87
+ * @returns {boolean|Object} - Matching signature object if valid. False otherwise.
17
88
  */
18
- export declare function verifyNode(node: Object, publicKey: string | crypto.KeyObject): boolean | Object;
89
+ export declare function verifyNode(node: Object, publicKey: string | Buffer | Object | crypto.KeyObject, options?: {
90
+ reasons?: string[];
91
+ }): boolean | Object;
19
92
  /**
20
- * Verifies the integrity of a BOM's top-level signature, as well as nested components, services, and annotations.
21
- * Returns true only if the root signature is valid AND all signed nested elements are valid.
93
+ * Verifies a BOM's top-level signature, as well as nested components, services,
94
+ * and annotations. Returns the root match only if the root signature is valid
95
+ * AND every signed nested element is valid for the same key.
22
96
  *
23
97
  * @param {Object} bom - CycloneDX BOM Object
24
- * @param {string|crypto.KeyObject} publicKey - The public key corresponding to the signature
25
- * @returns {boolean|Object} - Signature block if signature is valid. False otherwise.
98
+ * @param {string|Buffer|Object|crypto.KeyObject} publicKey - Verification key (see verifyNode)
99
+ * @param {Object} [options] - Same options as verifyNode
100
+ * @returns {boolean|Object} - Signature object if valid. False otherwise.
101
+ */
102
+ export declare function verifyBom(bom: Object, publicKey: string | Buffer | Object | crypto.KeyObject, options?: Object): boolean | Object;
103
+ /**
104
+ * Checks every signature entry of a node against a set of trusted keys. An
105
+ * entry is verified when one of the keys verifies that entry.
106
+ *
107
+ * `cdx-sign` uses this before appending to a signature chain, because the new
108
+ * chain entry vouches for every earlier entry.
109
+ *
110
+ * @param {Object} node - The BOM or granular object whose signature is checked
111
+ * @param {Array<string|Buffer|Object|crypto.KeyObject>} [keys] - Trusted verification keys (see verifyNode)
112
+ * @returns {Array<{ index: number, algorithm: any, keyId: any, verified: boolean, reasons: string[] }>} - One result per signature entry; empty for an unsigned node
26
113
  */
27
- export declare function verifyBom(bom: Object, publicKey: string | crypto.KeyObject): boolean | Object;
114
+ export declare function checkSignatureEntries(node: Object, keys?: Array<string | Buffer | Object | crypto.KeyObject>): Array<{
115
+ index: number;
116
+ algorithm: any;
117
+ keyId: any;
118
+ verified: boolean;
119
+ reasons: string[];
120
+ }>;
28
121
  //# sourceMappingURL=bomSigner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bomSigner.d.ts","sourceRoot":"","sources":["../../../lib/helpers/bomSigner.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAiIjC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAJpB,MAIoB,EAAE,OAAO,GAH7B,MAGkC,GAFhC,MAAM,CAkDlB;AAuDD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAJpB,MAIoB,EAAE,SAAS,EAH/B,MAAM,GAAC,MAAM,CAAC,SAGiB,GAF7B,OAAO,GAAC,MAAM,CA0B1B;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAJlB,MAIkB,EAAE,SAAS,EAH7B,MAAM,GAAC,MAAM,CAAC,SAGe,GAF3B,OAAO,GAAC,MAAM,CAgC1B"}
1
+ {"version":3,"file":"bomSigner.d.ts","sourceRoot":"","sources":["../../../lib/helpers/bomSigner.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAuCjC;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAHvB,GAGuB,GAFrB,MAAM,CAWlB;AAgID;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAH9B,MAAM,GAAC,MAAM,GAAC,MAAM,CAAC,SAGS,GAF5B,MAAM,CAAC,SAAS,CA2B5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAm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C1B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAJ/B,MAI+B,EAAE,IAAI,AAH7C,CACA,EADQ,KAAK,CAAC,MAAM,GAAC,MAAM,GAAC,MAAM,GAAC,MAAM,CAAC,SAAS,CAGD,GAFxC,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC;IAAC,KAAK,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA2CtG"}
@@ -1 +1 @@
1
- {"version":3,"file":"agentFormulationParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/agentFormulationParser.js"],"names":[],"mappings":"AAuIA;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;CAsLlC,CAAC"}
1
+ {"version":3,"file":"agentFormulationParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/agentFormulationParser.js"],"names":[],"mappings":"AA4LA;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;CAsLlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"aiCollector.d.ts","sourceRoot":"","sources":["../../../lib/inventory/aiCollector.js"],"names":[],"mappings":"AAotDA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAJvC,MAIuC,EAAE,OAAO,AAHxD,CACA,EADQ,MAGqD,GAFnD;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CA6IhF;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,aAAa,EAJpD,MAIoD,EAAE,OAAO,AAHrE,CACA,EADQ,MAGkE,GAFhE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;I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AAM,EAAE,CAAC;IAAC,UAAU,2BAA0B;CAuGzE,CAAC;AAg9BF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,QAJ1B,MAAM,SACN,OAAO,KACL;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAiJ7E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,QAJpB,MAAM,SACN,OAAO,KACL;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAqrB7E,CAAC"}
@@ -3,6 +3,61 @@
3
3
  * bundled native `atom` binary.
4
4
  */
5
5
  export declare const ATOM_NATIVE_PACKAGES: Set<string>;
6
+ /**
7
+ * Locate the JSON compilation database (`compile_commands.json`) of a C/C++
8
+ * project, which lets atom parse each file with the include paths, macros and
9
+ * language its build uses.
10
+ *
11
+ * An explicit `options.compileCommands` (a file, or a directory holding one
12
+ * directly or under `build/`) wins. Otherwise the scan root, `build/`, `out/`,
13
+ * `builddir/`, `cmake-build-*` and the directory of `options.cmakeCache` are
14
+ * searched. A database can come with the code it describes, and atom asks the
15
+ * GCC or Clang driver it names (from the PATH, or an absolute path outside
16
+ * the project) for its predefined macros, so in secure mode only an explicit
17
+ * database is used.
18
+ *
19
+ * @param {string} src Project scan root
20
+ * @param {Object} options CLI options
21
+ * @returns {string|undefined} Absolute path of the database
22
+ */
23
+ export declare function findCompileCommands(src: string, options?: Object): string | undefined;
24
+ /**
25
+ * Split an atom command that may carry a leading argument (`node
26
+ * script.js`, a custom `ATOM_CMD`) into its binary and that argument. The
27
+ * first space only splits when it can: a binary under a path with spaces
28
+ * (`C:\Program Files\...\node.exe script.js`) would otherwise be cut
29
+ * mid-path and the shell told to run `C:\Program`. A command name without a
30
+ * path separator (`node script.js`) resolves through the PATH, so it splits
31
+ * at its first space as before; otherwise the first prefix that exists as a
32
+ * file is the binary, and when none does the first space keeps the old
33
+ * behaviour.
34
+ *
35
+ * @param {string} command The atom command, possibly with an argument
36
+ * @returns {[string, string|undefined]} The binary and its leading argument, when present
37
+ */
38
+ export declare function splitAtomCommand(command: string): [string, string | undefined];
39
+ /**
40
+ * The `--frontend-args` keys the installed atom accepts for a language, as
41
+ * `atom --frontend-args-keys -l <language>` lists them. Asked once per atom
42
+ * command and language. An atom that cannot list them (a release without
43
+ * `--frontend-args`, or one that fails to start) accepts none.
44
+ *
45
+ * @param {string} language atom `-l` value
46
+ * @returns {Set<string>} Supported keys
47
+ */
48
+ export declare function atomFrontendArgKeys(language: string): Set<string>;
49
+ /**
50
+ * The `--frontend-args` atom takes for a C/C++ language: the project's
51
+ * compilation database, when there is one and the installed atom reads it
52
+ * (atom 4 and later). An older atom is given the arguments it has always
53
+ * been given, and parses the sources without the database.
54
+ *
55
+ * @param {string} src Project scan root
56
+ * @param {string} language atom `-l` value
57
+ * @param {Object} options CLI options
58
+ * @returns {string[]} Arguments to add to the atom command
59
+ */
60
+ export declare function atomCompileCommandsArgs(src: string, language: string, options?: Object): string[];
6
61
  /**
7
62
  * Convert cdxgen's glob-style exclude patterns to a Scala/Java regex string.
8
63
  *
@@ -69,9 +124,19 @@ export declare function resolveAtomProvider(opts?: {
69
124
  libc?: string;
70
125
  };
71
126
  /**
72
- * Returns `"native"` or `"jar"` for the currently resolved atom provider.
73
- * Used to gate Java/JDK advice so users on the five native platforms are not
74
- * told to install a JDK for a failure that has nothing to do with Java.
127
+ * Returns `"native"` or `"jar"` for the atom provider that will actually run.
128
+ *
129
+ * The platform decides which provider atom prefers, but the dispatcher falls
130
+ * back to the jar package when the platform's native package is not installed
131
+ * (optional dependencies skipped, a failed download). The two take the heap
132
+ * ceiling differently, and a native-image runtime option on a jar run reaches
133
+ * atom as an unknown argument that fails every slice. So the kind follows what
134
+ * is installed where cdxgen can see it: the native binary means native, the jar
135
+ * package without it means jar. With neither in view (a custom `ATOM_CMD`, an
136
+ * install elsewhere) the platform's kind stands.
137
+ *
138
+ * Also used to gate Java/JDK advice, so users on the five native platforms are
139
+ * not told to install a JDK for a failure that has nothing to do with Java.
75
140
  */
76
141
  export declare function atomProviderKind(): "jar" | "native";
77
142
  /**
@@ -131,6 +196,41 @@ export declare function getAtomCommand(): any;
131
196
  * @returns {number|undefined} Heap ceiling in bytes, or `undefined` to leave the runtime default in place
132
197
  */
133
198
  export declare function atomMaxHeapBytes(): number | undefined;
199
+ /**
200
+ * Compute how long atom may run, and how long cdxgen waits for it.
201
+ *
202
+ * cdxgen's spawn timeout kills only the process cdxgen started, and for atom
203
+ * that is the npm dispatcher. The runtime under it (the native binary or the
204
+ * JVM) used to survive that kill, re-parented and still holding its heap. atom
205
+ * therefore gets its own limit, `ATOM_TIMEOUT`, which the dispatcher enforces on
206
+ * the runtime, and cdxgen's spawn timeout sits a grace period beyond it as the
207
+ * last resort.
208
+ *
209
+ * An explicit `ATOM_TIMEOUT` (milliseconds) sets atom's limit independently of
210
+ * `CDXGEN_TIMEOUT_MS`, which keeps bounding every other tool. Otherwise atom's
211
+ * limit is `CDXGEN_TIMEOUT_MS` less the grace period.
212
+ *
213
+ * @returns {{atomTimeoutMs: number, spawnTimeoutMs: number}} atom's own limit and cdxgen's spawn timeout for it
214
+ */
215
+ export declare function atomTimeouts(): {
216
+ atomTimeoutMs: number;
217
+ spawnTimeoutMs: number;
218
+ };
219
+ /**
220
+ * Whether an atom run ended because it ran out of time.
221
+ *
222
+ * The dispatcher reports its own limit with status 124. cdxgen's spawn timeout
223
+ * shows up as `ETIMEDOUT`. A dispatcher older than the status code stops atom
224
+ * with SIGTERM and exits 1, so status 1 at or past the limit counts as well,
225
+ * unless atom's own output shows it failed for another reason first (an
226
+ * exhausted heap, a crash), which deserves its own diagnosis.
227
+ *
228
+ * @param {Object} result spawnSync result
229
+ * @param {number} elapsedMs How long the run took
230
+ * @param {number} atomTimeoutMs atom's time limit
231
+ * @returns {boolean} true when the run hit a time limit
232
+ */
233
+ export declare function atomRunTimedOut(result: Object, elapsedMs: number, atomTimeoutMs: number): boolean;
134
234
  /**
135
235
  * Execute the atom tool against a source directory or file with the given arguments.
136
236
  *
@@ -145,6 +245,48 @@ export declare function atomMaxHeapBytes(): number | undefined;
145
245
  * @returns {boolean} `true` if atom executed successfully and the language is supported; `false` otherwise
146
246
  */
147
247
  export declare function executeAtom(src: string, args: string[], extra_env?: Object): boolean;
248
+ /**
249
+ * The numbered chunks atom wrote beside a reachables slices file.
250
+ *
251
+ * atom writes reachables at most 1000 flows per file: `<base>.json`, then
252
+ * `<base>_1.json`, `<base>_2.json` and so on. Chunks are taken until the first
253
+ * gap. A chunk older than the base file was left by an earlier run with more
254
+ * flows (atom before 4.0.0 did not remove those), so it ends the sequence
255
+ * instead of being merged.
256
+ *
257
+ * @param {string} slicesFile Path of the base reachables slices file
258
+ * @returns {string[]} Chunk file paths, in order
259
+ */
260
+ export declare function reachablesChunkFiles(slicesFile: string): string[];
261
+ /**
262
+ * Remove the numbered chunks beside a reachables slices file, before atom
263
+ * writes a new set there, so no chunk of an earlier run survives next to it.
264
+ *
265
+ * @param {string} slicesFile Path of the base reachables slices file
266
+ */
267
+ export declare function removeReachablesChunkFiles(slicesFile: string): void;
268
+ /**
269
+ * Read an atom slices file, or warn and return `undefined` when it cannot be
270
+ * parsed. A run stopped while writing (a timeout, a kill) can leave a
271
+ * truncated file, and the evidence from the other slices is still worth
272
+ * keeping.
273
+ *
274
+ * @param {string} slicesFile Path of the slices file
275
+ * @param {string} sliceType Slice type, for the warning
276
+ * @returns {*} The parsed slices, or `undefined`
277
+ */
278
+ export declare function readSlicesFile(slicesFile: string, sliceType: string): any;
279
+ /**
280
+ * Read a reachables slices file together with its chunks.
281
+ *
282
+ * Reading only the base file silently dropped every flow past the first
283
+ * thousand. A chunk that cannot be parsed ends the sequence, keeping the flows
284
+ * read before it.
285
+ *
286
+ * @param {string} slicesFile Path of the base reachables slices file
287
+ * @returns {Object[]|Object|undefined} Every flow, in the base file's shape (an array, or an object with `reachables`)
288
+ */
289
+ export declare function readReachablesSlices(slicesFile: string): Object[] | Object | undefined;
148
290
  /**
149
291
  * Find the imported modules in the application with atom parsedeps command
150
292
  *
@@ -1 +1 @@
1
- {"version":3,"file":"atomUtils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/atomUtils.js"],"names":[],"mappings":"AA6CA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,aAM/B,CAAC;AA4RH;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,GAH3C,MAAM,EAG0C,GAF9C,MAAM,GAAC,SAAS,CAU5B;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAJ1C,MAI0C,EAAE,QAAQ,AAH5D,CACA,EADQ,MAAM,EAGmD,GAFvD,OAAO,CAkBnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,CAAC,SAAS,EAJhD,MAAM,QAI0C,EAAE,QAAQ,AAHlE,CACA,EADQ,MAAM,EAGyD,GAF7D,MAAM,QAAM,CA2DxB;AA4BD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAJhC,MAIqC,EAAE,QAAQ,GAH/C,MAGoD,GAFlD,MAAM,CAkDlB;AAgBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,AANrC,CAIA,EAHA;IAAsB,QAAQ,AAA9B,CACA,EADQ,MAAM,CACd;IAAsB,IAAI,AAA1B,CACA,EADQ,MAAM,CACd;IAAsB,IAAI,AAA1B,CACA,EADQ,MAAM,CACd;CAE0C,GAFhC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,GAAC,KAAK,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAC,CA6CvG;A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
  /** Frozen list of Golem (Go Evinse) audit categories. */
8
8
  export declare const GOLEM_AUDIT_CATEGORIES: readonly string[];
9
+ /** Frozen list of Cargo (Rust) audit categories. */
10
+ export declare const CARGO_AUDIT_CATEGORIES: readonly string[];
9
11
  /**
10
12
  * Frozen list of audit categories that never activate on their own. These
11
13
  * rule packs serve a specific feature (`--introspect` for build-fidelity) and
@@ -28,10 +30,12 @@ export declare const BOM_AUDIT_CATEGORY_ALIASES: Readonly<{
28
30
  "ai-bom": string[];
29
31
  "ai-provenance": string[];
30
32
  "ai-oversight": string[];
33
+ cargo: string[];
31
34
  cbom: string[];
32
35
  "crypto-bom": string[];
33
36
  golem: string[];
34
37
  hbom: string[];
38
+ rust: string[];
35
39
  host: string[];
36
40
  }>;
37
41
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"auditCategories.d.ts","sourceRoot":"","sources":["../../../lib/inventory/auditCategories.js"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,mBAIhC,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,mBAGhC,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,mBAAmC,CAAC;AAE/E,yDAAyD;AACzD,eAAO,MAAM,sBAAsB,mBAIjC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,mBAAoC,CAAC;AAE7E,4DAA4D;AAC5D,eAAO,MAAM,uBAAuB,mBAIlC,CAAC;AAEH,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,QAAkC,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;EAWrC,CAAC;AAMH;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAH3C,MAAM,GAAC,MAAM,EAG8B,GAFzC,MAAM,EAAE,CAiBpB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAHxC,MAAM,GAAC,MAAM,EAG2B,G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I2C,EAAE,OAAO,AAH5D,CACA,EADQ,MAGyD,GAFvD,OAAO,CAAC,MAAM,EAAE,CAAC,CAuG7B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAHzB,MAGyB,SAanC"}
1
+ {"version":3,"file":"cbomutils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/cbomutils.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAHhC,MAGgC,EAAE,gBAAgB,KAAA,SAiC5D;AAiXD;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CAAC,GAAG,EAL5C,MAK4C,EAAE,OAAO,AAJ7D,CAEA,EADA;IAA0B,IAAI,AAA9B,CACA,EADQ,OAAO,CACf;CAEkE,GAFxD,OAAO,CAAC,MAAM,EAAE,CAAC,CAkD7B;AAED;;;;;;;;GAQG;AACH,wBAAsB,4BAA4B,CAAC,GAAG,EAJ3C,MAI2C,EAAE,OAAO,AAH5D,CACA,EADQ,MAGyD,GAFvD,OAAO,CAAC,MAAM,EAAE,CAAC,CAuG7B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAHzB,MAGyB,SAanC"}
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * This module is the ONLY place that spawns the `cdxrs` binary. It enforces
5
5
  * the governing invariant: **no failure mode may abort SBOM generation.**
6
- * Every failure (missing binary, non-zero exit, timeout, malformed stdout,
7
- * version-major mismatch, CDXGEN_RS_DISABLE) logs once at `warn` and returns
8
- * a sentinel that makes the caller take the JS path.
6
+ * Every failure (missing binary, non-zero exit, timeout, oversized stdout,
7
+ * malformed stdout, version-major mismatch, CDXGEN_RS_DISABLE) logs once at
8
+ * `warn` and returns a sentinel that makes the caller take the JS path.
9
9
  *
10
10
  * Protocol:
11
11
  * cdxrs <subcommand> --input <file|-> --output <file|-> --format json
@@ -67,6 +67,11 @@ export declare function cdxrsAvailable(subcommand?: string): {
67
67
  *
68
68
  * Passing `content` is the normal case, since cdxgen holds BOMs in memory.
69
69
  *
70
+ * Collected stdout is bounded: it must become a single JS string, so a child
71
+ * that would exceed V8's string limit (by default; see
72
+ * CDXGEN_RS_MAX_STDOUT_BYTES) is killed and reported as a fallback instead of
73
+ * crashing the process at the concat.
74
+ *
70
75
  * @param {string} subcommand The subcommand to run (e.g. "info").
71
76
  * @param {Object} opts
72
77
  * @param {string|Buffer} [opts.content] BOM data to feed over stdin.
@@ -1 +1 @@
1
- {"version":3,"file":"cdxrs.d.ts","sourceRoot":"","sources":["../../../lib/inventory/cdxrs.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAwBH,iFAAiF;AACjF,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAOH;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAH7B,MAG6B,GAF3B,OAAO,CAkBnB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAFlB,MAAM,GAAC,SAAS,CAI5B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,UAAU,AAHtC,CACA,EADQ,MAG8B,GAF5B;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAuBrE;AA2BD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,QAAQ,CAAC,UAAU,EAT9B,MAS8B,EAAE,IAAI,GAP5C;IAA6B,OAAO,AAApC,CACA,EADQ,MAAM,GAAC,MAAM,CACrB;IAAsB,KAAK,AAA3B,CAEA,EAFQ,MAAM,CAEd;IAAwB,IAAI,AAA5B,CACA,EADQ,MAAM,EAAE,CAChB;IAAsB,SAAS,AAA/B,CACA,EADQ,MAAM,CACd;CAEiD,GAFvC,OAAO,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,CAiP1F"}
1
+ {"version":3,"file":"cdxrs.d.ts","sourceRoot":"","sources":["../../../lib/inventory/cdxrs.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAoEH,iFAAiF;AACjF,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAOH;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAH7B,MAG6B,GAF3B,OAAO,CAkBnB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAFlB,MAAM,GAAC,SAAS,CAI5B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,UAAU,AAHtC,CACA,EADQ,MAG8B,GAF5B;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAuBrE;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,QAAQ,CAAC,UAAU,EAT9B,MAS8B,EAAE,IAAI,GAP5C;IAA6B,OAAO,AAApC,CACA,EADQ,MAAM,GAAC,MAAM,CACrB;IAAsB,KAAK,AAA3B,CAEA,EAFQ,MAAM,CAEd;IAAwB,IAAI,AAA5B,CACA,EADQ,MAAM,EAAE,CAChB;IAAsB,SAAS,AAA/B,CACA,EADQ,MAAM,CACd;CAEiD,GAFvC,OAAO,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,CAgS1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"communityAiConfigParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/communityAiConfigParser.js"],"names":[],"mappings":"AAwpBA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,EAL1B,MAoFT,CAAC"}
1
+ {"version":3,"file":"communityAiConfigParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/communityAiConfigParser.js"],"names":[],"mappings":"AA21BA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,EAL1B,MAsGT,CAAC"}
@@ -29,6 +29,21 @@ export declare function markNpmTypesPackagesAsExcluded(components?: Object[]): O
29
29
  * @returns {Object[]} The same component array with scopes updated in place
30
30
  */
31
31
  export declare function propagateRequiredScopeFromDependencies(components?: Object[], dependencies?: Object[]): Object[];
32
+ /**
33
+ * Scopes the dependencies of type-only npm packages as optional.
34
+ *
35
+ * A package imported only for its TypeScript types, like an `@types` package,
36
+ * is erased at compile time, and so is what it depends on unless a runtime
37
+ * package depends on it too. A component below a type-only package becomes
38
+ * optional when no dependency path from a root of the graph reaches it without
39
+ * passing through a type-only package. A component that already has a scope,
40
+ * from its manifest or from usage evidence, keeps it.
41
+ *
42
+ * @param {Object[]} components CycloneDX component objects
43
+ * @param {Object[]} dependencies CycloneDX dependency entries
44
+ * @returns {Object[]} The same component array with scopes updated in place
45
+ */
46
+ export declare function markTypeOnlyDependenciesOptional(components?: Object[], dependencies?: Object[]): Object[];
32
47
  /**
33
48
  * Merge CycloneDX services using bom-ref or group/name/version identity.
34
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"depsUtils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/depsUtils.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EANH,MAAM,EAMH,EACZ,eAAe,EANN,MAAM,EAMA,EACf,eAAe,GANN,MAMW,GALT,MAAM,EAAE,CAuEpB;AA4CD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,GAH9C,MAAM,EAG6C,GAFjD,MAAM,EAAE,CAYpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sCAAsC,CACpD,UAAU,GALD,MAAM,EAKA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C,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAAiB;AA6DrH;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,gBAAgB,GAHnD,eAAe,EAGyC,GAFtD,IAAI,CA+BhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EANC,MAMD,EACR,MAAM,EANG,MAMH,EACN,OAAO,EANE,MAMF,EACP,gBAAgB,EANP,eAAe,EAMR,QAgUjB"}
@@ -1,3 +1,32 @@
1
+ /**
2
+ * Translate cdxgen --exclude globs into dosai --exclude globs.
3
+ *
4
+ * Dosai is an evidence analyzer, so the translation follows the exclude
5
+ * filter cdxgen already applies to atom evidence slices
6
+ * (`globPatternsToAtomIgnoreRegex`): a relative pattern matches at any depth,
7
+ * and an absolute pattern is anchored to the scanned directory. Dosai itself
8
+ * uses gitignore conventions, where a pattern with a slash is anchored, so
9
+ * relative patterns get a leading "**\/". Like the atom filter, and unlike
10
+ * cdxgen's file discovery, excluding a directory also excludes everything
11
+ * beneath it.
12
+ *
13
+ * Brace groups and numeric ranges are expanded, and comma separated lists are
14
+ * split, since dosai reads both as literal text. Character classes, extglobs,
15
+ * escapes, negation, and patterns that step outside the scanned directory
16
+ * have no dosai equivalent; they are reported as skipped rather than passed
17
+ * on as literals that match nothing. So is any pattern that still carries a
18
+ * character outside a small allowlist, such as a literal brace group or a
19
+ * shell metacharacter. Dosai matches case-sensitively on Linux.
20
+ *
21
+ * @param {string[]} excludes cdxgen exclude globs
22
+ * @param {string} srcPath Absolute directory dosai scans
23
+ * @returns {{patterns: string[], skipped: string[], truncated: number}} Translated patterns, dropped patterns, and how many were left out by the cap
24
+ */
25
+ export declare function toDosaiExcludePatterns(excludes: string[], srcPath: string): {
26
+ patterns: string[];
27
+ skipped: string[];
28
+ truncated: number;
29
+ };
1
30
  /**
2
31
  * Check whether a language is a .NET language supported by dosai analysis.
3
32
  *
@@ -12,6 +41,40 @@ export declare function isDosaiDotnetLanguage(language: string): boolean;
12
41
  * @returns {Object|undefined} Parsed JSON content, or undefined when missing or invalid
13
42
  */
14
43
  export declare function readDosaiJsonFile(jsonFile: string): Object | undefined;
44
+ /**
45
+ * Read a dosai methods report of any size.
46
+ *
47
+ * A report that fits in one JavaScript string is parsed whole. A larger one is
48
+ * read in bounded runs, keeping the requested sections, the CallGraph nodes and
49
+ * edges that PackageReachability references, and the MethodCalls accepted by
50
+ * `keepMethodCall` (none when it is omitted). Nothing cdxgen reads is lost.
51
+ *
52
+ * @param {string} reportFile Path to the dosai methods JSON
53
+ * @param {Object} [options] Options
54
+ * @param {string[]} [options.sections] Sections to keep from a large report (default: every section cdxgen reads)
55
+ * @param {Function} [options.keepMethodCall] Predicate choosing the MethodCalls to keep from a large report
56
+ * @param {number} [options.maxTextBytes] Largest report parsed whole, for tests
57
+ * @returns {Object|undefined} Parsed report, or undefined when missing or invalid
58
+ */
59
+ export declare function readDosaiMethodsReport(reportFile: string, options?: {
60
+ sections?: string[];
61
+ keepMethodCall?: Function;
62
+ maxTextBytes?: number;
63
+ }): Object | undefined;
64
+ /**
65
+ * Read a dosai data-flow report of any size.
66
+ *
67
+ * A report that fits in one JavaScript string is parsed whole. A larger one
68
+ * keeps Metadata, Slices, PackageReachability, and the Nodes those reference.
69
+ *
70
+ * @param {string} reportFile Path to the dosai data-flow JSON
71
+ * @param {Object} [options] Options
72
+ * @param {number} [options.maxTextBytes] Largest report parsed whole, for tests
73
+ * @returns {Object|undefined} Parsed report, or undefined when missing or invalid
74
+ */
75
+ export declare function readDosaiDataFlowReport(reportFile: string, options?: {
76
+ maxTextBytes?: number;
77
+ }): Object | undefined;
15
78
  /**
16
79
  * Run a dosai subcommand ("methods", "dataflows", or "crypto") against a source
17
80
  * tree and write its JSON output to the given file.
@@ -19,7 +82,7 @@ export declare function readDosaiJsonFile(jsonFile: string): Object | undefined;
19
82
  * @param {string} command Dosai subcommand to execute
20
83
  * @param {string} src Source directory to analyze
21
84
  * @param {string} outputFile Path where the dosai JSON output is written
22
- * @param {Object} [options] Options carrying dosaiCommand, dataFlowPatterns, or patternPacks overrides
85
+ * @param {Object} [options] Options carrying dosaiCommand, dataFlowPatterns, patternPacks, or exclude globs
23
86
  * @returns {boolean} True when the command succeeded and produced the output file, false otherwise
24
87
  */
25
88
  export declare function runDosaiCommand(command: string, src: string, outputFile: string, options?: Object): boolean;
@@ -86,6 +149,29 @@ export declare function buildPurlAliasMap(components?: Object[]): Map<string, st
86
149
  * @returns {string|undefined} Canonical component purl, the input purl when unaliased, or undefined when empty
87
150
  */
88
151
  export declare function resolveComponentPurl(purl: string, purlAliasMap: Map<string, string>): string | undefined;
152
+ /**
153
+ * Copy one dosai PackageReachability fact onto a component as properties.
154
+ *
155
+ * The occurrence/location consumers of PackageReachability read SourceLocations, EdgeIds,
156
+ * and NodeIds only, so dosai's Confidence, EvidenceKinds, ReachabilityKind, and
157
+ * ConfidenceReasons never reached the BOM: an unbuilt tree (Low confidence, unresolved
158
+ * evidence) was indistinguishable from a package that really is only imported. These
159
+ * properties carry that distinction to BOM consumers. They use the consumer-facing
160
+ * `cdx:dosai:reachability:*` namespace - not `internal:`, which is cdxgen's private
161
+ * bookkeeping namespace stripped or ignored by downstream tooling.
162
+ *
163
+ * @param {Object} component BOM component object (mutated; properties created on demand)
164
+ * @param {Object} reachability dosai PackageReachability entry
165
+ */
166
+ export declare function addDosaiReachabilityProperties(component: Object, reachability: Object): void;
167
+ /**
168
+ * Attach dosai PackageReachability confidence facts to matching BOM components.
169
+ *
170
+ * @param {Object} methodsSlice Parsed dosai methods slice JSON
171
+ * @param {Object[]} [components] BOM components used to resolve purl aliases and mutate
172
+ * @returns {number} Number of distinct components enriched
173
+ */
174
+ export declare function applyDosaiReachabilityEvidence(methodsSlice: Object, components?: Object[]): number;
89
175
  /**
90
176
  * Map a dosai methods slice to per-purl occurrence evidence.
91
177
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dosai.d.ts","sourceRoot":"","sources":["../../../lib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D,MAAM,CAyKlB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EALH,MAKG,EACZ,WAAW,AALV,CACA,EADQ,MAKO,GAJL,MAAM,CA+GlB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,AAHjD,CACA,EADQ,MAG8C,GAF5C,MAAM,EAAE,CA6CpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dynamic.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAND,MAMC,EACV,UAAU,EAND,MAMC,EACV,YAAY,AANX,CACA,EADQ,MAMQ,GALN,OAAO,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAC,CAAC,CAsHzE"}
1
+ {"version":3,"file":"dynamic.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dynamic.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAND,MAMC,EACV,UAAU,EAND,MAMC,EACV,YAAY,AANX,CACA,EADQ,MAMQ,GALN,OAAO,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAC,CAAC,CA4JzE"}