@cdxgen/cdxgen 0.0.1 → 13.0.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.
- package/README.md +921 -87
- package/bin/audit.js +239 -0
- package/bin/cdxgen.js +2324 -0
- package/bin/convert.js +213 -0
- package/bin/evinse.js +353 -0
- package/bin/hbom.js +495 -0
- package/bin/repl.js +2224 -0
- package/bin/sign.js +195 -0
- package/bin/tracebom.js +295 -0
- package/bin/validate.js +268 -0
- package/bin/verify.js +189 -0
- package/data/README.md +307 -0
- package/data/bom-1.4.schema.json +1605 -0
- package/data/bom-1.5.schema.json +3660 -0
- package/data/bom-1.6.schema.json +5511 -0
- package/data/bom-1.7.schema.json +6700 -0
- package/data/cbomosdb-queries.json +68 -0
- package/data/component-tags.json +339 -0
- package/data/container-knowledge-index.json +125 -0
- package/data/cosdb-queries.json +17 -0
- package/data/crypto-oid.json +1998 -0
- package/data/cryptography-defs.json +3793 -0
- package/data/cryptography-defs.schema.json +576 -0
- package/data/cyclonedx-2.0-bundled.schema.json +7182 -0
- package/data/frameworks-list.json +219 -0
- package/data/glibc-stdlib.json +117 -0
- package/data/gtfobins-index.json +6296 -0
- package/data/helpers/init.gradle +71 -0
- package/data/jsf-0.82.schema.json +211 -0
- package/data/known-licenses.json +82 -0
- package/data/lic-mapping.json +338 -0
- package/data/license-aliases.json +6624 -0
- package/data/license-db.json +39059 -0
- package/data/license-deprecations.json +302 -0
- package/data/lolbas-index.json +150 -0
- package/data/predictive-audit-allowlist.json +11 -0
- package/data/pypi-pkg-aliases.json +1199 -0
- package/data/python-stdlib.json +308 -0
- package/data/queries-darwin.json +193 -0
- package/data/queries-win.json +257 -0
- package/data/queries.json +268 -0
- package/data/ruby-known-modules.json +281 -0
- package/data/rules/ai-agent-governance.yaml +323 -0
- package/data/rules/ai-bom.yaml +268 -0
- package/data/rules/ai-oversight.yaml +186 -0
- package/data/rules/ai-provenance.yaml +92 -0
- package/data/rules/asar-archives.yaml +150 -0
- package/data/rules/cbom-security.yaml +165 -0
- package/data/rules/chrome-extensions.yaml +248 -0
- package/data/rules/ci-permissions.yaml +802 -0
- package/data/rules/container-risk.yaml +353 -0
- package/data/rules/dependency-sources.yaml +236 -0
- package/data/rules/golem-go.yaml +229 -0
- package/data/rules/hbom-compliance.yaml +325 -0
- package/data/rules/hbom-performance.yaml +307 -0
- package/data/rules/hbom-security.yaml +248 -0
- package/data/rules/host-topology.yaml +165 -0
- package/data/rules/mcp-servers.yaml +388 -0
- package/data/rules/obom-runtime.yaml +1776 -0
- package/data/rules/package-integrity.yaml +364 -0
- package/data/rules/rootfs-hardening.yaml +179 -0
- package/data/rules/vscode-extensions.yaml +237 -0
- package/data/spdx-export.schema.json +6794 -0
- package/data/spdx-license-list.json +7449 -0
- package/data/spdx-licenses.json +759 -0
- package/data/spdx.schema.json +819 -0
- package/data/templates/README.md +3 -0
- package/data/templates/asvs-4.0.3.cdx.json +2943 -0
- package/data/templates/asvs-5.0.cdx.json +3046 -0
- package/data/templates/bsimm-v13.cdx.json +1008 -0
- package/data/templates/masvs-2.0.0.cdx.json +225 -0
- package/data/templates/nist-ssdf-1.1.cdx.json +828 -0
- package/data/templates/pcissc-secure-slc-1.1.cdx.json +1027 -0
- package/data/templates/scvs-1.0.0.cdx.json +813 -0
- package/data/templates/ssaf-DRAFT-2023-11.cdx.json +127 -0
- package/data/vendor-alias.json +41967 -0
- package/data/wrapdb-releases.json +4227 -0
- package/index.cjs +15 -0
- package/lib/audit/index.js +2800 -0
- package/lib/audit/progress.js +114 -0
- package/lib/audit/reporters.js +937 -0
- package/lib/audit/scoring.js +560 -0
- package/lib/audit/targets.js +798 -0
- package/lib/cli/bomAssembly.js +1833 -0
- package/lib/cli/cliOptions.js +513 -0
- package/lib/cli/index.js +2759 -0
- package/lib/cli/jsBom.js +2087 -0
- package/lib/cli/jvmBom.js +1858 -0
- package/lib/cli/managedBom.js +2083 -0
- package/lib/cli/nativeBom.js +2125 -0
- package/lib/core/activity.js +1087 -0
- package/lib/core/env.js +719 -0
- package/lib/core/fs.js +1058 -0
- package/lib/core/httpClient.js +730 -0
- package/lib/core/logger.js +142 -0
- package/lib/core/parallel.js +323 -0
- package/lib/core/paths.js +70 -0
- package/lib/core/projectConfig.js +122 -0
- package/lib/core/propertySanitizer.js +174 -0
- package/lib/core/spdx.js +5 -0
- package/lib/core/state.js +59 -0
- package/lib/core/text.js +207 -0
- package/lib/core/ui.js +876 -0
- package/lib/core/urls.js +84 -0
- package/lib/ecosystems/asarutils.js +1636 -0
- package/lib/ecosystems/bunutils.js +402 -0
- package/lib/ecosystems/caxa.js +77 -0
- package/lib/ecosystems/chromextutils.js +1174 -0
- package/lib/ecosystems/cmakeResolver.js +587 -0
- package/lib/ecosystems/cppEvidence.js +305 -0
- package/lib/ecosystems/denoutils.js +1094 -0
- package/lib/ecosystems/dotnetutils.js +132 -0
- package/lib/ecosystems/ecosystems.js +2772 -0
- package/lib/ecosystems/golem.js +1807 -0
- package/lib/ecosystems/gradleutils.js +1048 -0
- package/lib/ecosystems/jsEvidence.js +317 -0
- package/lib/ecosystems/npmutils.js +586 -0
- package/lib/ecosystems/parsers-bazel.js +875 -0
- package/lib/ecosystems/parsers-dotnet.js +1430 -0
- package/lib/ecosystems/parsers-gleam.js +302 -0
- package/lib/ecosystems/parsers-go.js +818 -0
- package/lib/ecosystems/parsers-js.js +4222 -0
- package/lib/ecosystems/parsers-jvm.js +948 -0
- package/lib/ecosystems/parsers-misc.js +3191 -0
- package/lib/ecosystems/parsers-python.js +2070 -0
- package/lib/ecosystems/parsers-rust.js +1294 -0
- package/lib/ecosystems/parsers-zig.js +861 -0
- package/lib/ecosystems/pep770.js +341 -0
- package/lib/ecosystems/pylockutils.js +427 -0
- package/lib/ecosystems/pythonutils.js +1281 -0
- package/lib/ecosystems/registryProvenance.js +1003 -0
- package/lib/ecosystems/remote/huggingface.js +1343 -0
- package/lib/ecosystems/rubyutils.js +1629 -0
- package/lib/ecosystems/rusi.js +820 -0
- package/lib/ecosystems/sbtutils.js +972 -0
- package/lib/ecosystems/tea.js +607 -0
- package/lib/ecosystems/utils.js +575 -0
- package/lib/ecosystems/zigResolver.js +410 -0
- package/lib/evinser/db.js +145 -0
- package/lib/evinser/evinser.js +2362 -0
- package/lib/evinser/scalasem.js +65 -0
- package/lib/evinser/swiftsem.js +767 -0
- package/lib/helpers/annotationFormatter.js +84 -0
- package/lib/helpers/bomSigner.js +312 -0
- package/lib/helpers/exportUtils.js +160 -0
- package/lib/helpers/remote/dependency-track.js +117 -0
- package/lib/helpers/versutils.js +202 -0
- package/lib/helpers/vsixutils.js +1069 -0
- package/lib/inventory/agentFormulationParser.js +322 -0
- package/lib/inventory/aiCollector.js +2140 -0
- package/lib/inventory/aiInventory.js +414 -0
- package/lib/inventory/aiModelVariants.js +121 -0
- package/lib/inventory/aiOversightCollector.js +661 -0
- package/lib/inventory/aiProvenanceCollector.js +822 -0
- package/lib/inventory/analyzer.js +6089 -0
- package/lib/inventory/analyzerScope.js +807 -0
- package/lib/inventory/astWorker.js +20 -0
- package/lib/inventory/atomUtils.js +1092 -0
- package/lib/inventory/auditCategories.js +192 -0
- package/lib/inventory/bomUtils.js +369 -0
- package/lib/inventory/cacheCommands.js +182 -0
- package/lib/inventory/cacheDir.js +104 -0
- package/lib/inventory/cbomutils.js +590 -0
- package/lib/inventory/cdxrs.js +434 -0
- package/lib/inventory/ciParsers/azurePipelines.js +295 -0
- package/lib/inventory/ciParsers/circleCi.js +286 -0
- package/lib/inventory/ciParsers/common.js +24 -0
- package/lib/inventory/ciParsers/githubActions.js +2434 -0
- package/lib/inventory/ciParsers/gitlabCi.js +213 -0
- package/lib/inventory/ciParsers/jenkins.js +180 -0
- package/lib/inventory/citations.js +234 -0
- package/lib/inventory/communityAiConfigParser.js +756 -0
- package/lib/inventory/containerRisk.js +204 -0
- package/lib/inventory/cryptoAlgorithmFamily.js +258 -0
- package/lib/inventory/deps.js +807 -0
- package/lib/inventory/depsUtils.js +588 -0
- package/lib/inventory/display.js +2128 -0
- package/lib/inventory/dosai.js +601 -0
- package/lib/inventory/dosaiParsers.js +154 -0
- package/lib/inventory/dynamic.js +145 -0
- package/lib/inventory/envcontext.js +1789 -0
- package/lib/inventory/evidenceUtils.js +774 -0
- package/lib/inventory/fetchBatch.js +779 -0
- package/lib/inventory/fetchRate.js +255 -0
- package/lib/inventory/forgeEnricher.js +300 -0
- package/lib/inventory/formulationParsers.js +422 -0
- package/lib/inventory/gtfobins.js +339 -0
- package/lib/inventory/hbom.js +719 -0
- package/lib/inventory/hbomAnalysis.js +310 -0
- package/lib/inventory/hbomLoader.js +35 -0
- package/lib/inventory/hostTopology.js +835 -0
- package/lib/inventory/inventoryStats.js +100 -0
- package/lib/inventory/jsonLike.js +121 -0
- package/lib/inventory/licenseEnhancer.js +918 -0
- package/lib/inventory/lolbas.js +285 -0
- package/lib/inventory/mcp.js +253 -0
- package/lib/inventory/mcpConfigParser.js +683 -0
- package/lib/inventory/mcpDiscovery.js +112 -0
- package/lib/inventory/mcpPinning.js +209 -0
- package/lib/inventory/osPackageResolver.js +493 -0
- package/lib/inventory/osinfo.js +277 -0
- package/lib/inventory/osqueryTransform.js +274 -0
- package/lib/inventory/plugins.js +466 -0
- package/lib/inventory/protobom.js +231 -0
- package/lib/inventory/protobomLoader.js +43 -0
- package/lib/inventory/provenanceUtils.js +224 -0
- package/lib/inventory/purl.js +749 -0
- package/lib/inventory/rustFormulationParser.js +339 -0
- package/lib/inventory/sbomDocument.js +340 -0
- package/lib/inventory/source.js +1488 -0
- package/lib/inventory/spdx.js +361 -0
- package/lib/inventory/spdxExpression.js +512 -0
- package/lib/inventory/spdxUtils.js +107 -0
- package/lib/inventory/table.js +263 -0
- package/lib/inventory/traceRunner.js +439 -0
- package/lib/inventory/unicodeScan.js +147 -0
- package/lib/managers/binary.js +3307 -0
- package/lib/managers/containerutils.js +125 -0
- package/lib/managers/docker.js +2145 -0
- package/lib/managers/dockerConnection.js +162 -0
- package/lib/managers/oci.js +704 -0
- package/lib/managers/piptree.js +267 -0
- package/lib/parsers/cmakeCache.js +199 -0
- package/lib/parsers/gguf.js +492 -0
- package/lib/parsers/gitAiNotes.js +233 -0
- package/lib/parsers/gitmodules.js +239 -0
- package/lib/parsers/htmlExtract.js +610 -0
- package/lib/parsers/huggingfaceManifest.js +551 -0
- package/lib/parsers/huggingfaceUtils.js +506 -0
- package/lib/parsers/iri.js +618 -0
- package/lib/parsers/npmrc.js +99 -0
- package/lib/parsers/ollama.js +101 -0
- package/lib/parsers/xml.js +841 -0
- package/lib/server/openapi.yaml +433 -0
- package/lib/server/server.js +616 -0
- package/lib/stages/postgen/annotator.js +977 -0
- package/lib/stages/postgen/auditBom.js +468 -0
- package/lib/stages/postgen/postgen.js +1239 -0
- package/lib/stages/postgen/ruleEngine.js +731 -0
- package/lib/stages/postgen/sortBom.js +195 -0
- package/lib/stages/postgen/spdxConverter.js +796 -0
- package/lib/stages/postgen/specVersionCompat.js +703 -0
- package/lib/stages/pregen/envAudit.js +388 -0
- package/lib/stages/pregen/pregen.js +637 -0
- package/lib/third-party/README.md +9 -0
- package/lib/third-party/arborist/CHANGELOG.md +1109 -0
- package/lib/third-party/arborist/LICENSE.md +20 -0
- package/lib/third-party/arborist/README.md +315 -0
- package/lib/third-party/arborist/lib/arborist/index.js +258 -0
- package/lib/third-party/arborist/lib/arborist/load-actual.js +605 -0
- package/lib/third-party/arborist/lib/arborist/load-virtual.js +300 -0
- package/lib/third-party/arborist/lib/bin-links.js +120 -0
- package/lib/third-party/arborist/lib/calc-dep-flags.js +130 -0
- package/lib/third-party/arborist/lib/case-insensitive-map.js +51 -0
- package/lib/third-party/arborist/lib/consistent-resolve.js +42 -0
- package/lib/third-party/arborist/lib/debug.js +50 -0
- package/lib/third-party/arborist/lib/dep-valid.js +190 -0
- package/lib/third-party/arborist/lib/edge.js +417 -0
- package/lib/third-party/arborist/lib/from-path.js +36 -0
- package/lib/third-party/arborist/lib/gather-dep-set.js +43 -0
- package/lib/third-party/arborist/lib/index.js +22 -0
- package/lib/third-party/arborist/lib/inventory.js +138 -0
- package/lib/third-party/arborist/lib/link.js +169 -0
- package/lib/third-party/arborist/lib/node.js +1673 -0
- package/lib/third-party/arborist/lib/npm-extension.js +45 -0
- package/lib/third-party/arborist/lib/override-resolves.js +11 -0
- package/lib/third-party/arborist/lib/override-set.js +319 -0
- package/lib/third-party/arborist/lib/package-extensions.js +289 -0
- package/lib/third-party/arborist/lib/printable.js +210 -0
- package/lib/third-party/arborist/lib/proc-log.js +30 -0
- package/lib/third-party/arborist/lib/realpath.js +100 -0
- package/lib/third-party/arborist/lib/relpath.js +4 -0
- package/lib/third-party/arborist/lib/shrinkwrap.js +1291 -0
- package/lib/third-party/arborist/lib/spec-from-lock.js +34 -0
- package/lib/third-party/arborist/lib/tree-check.js +165 -0
- package/lib/third-party/arborist/lib/validate-npm-package-name.js +107 -0
- package/lib/third-party/arborist/lib/version-from-tgz.js +51 -0
- package/lib/third-party/arborist/lib/yarn-lock.js +397 -0
- package/lib/validator/bomValidator.js +985 -0
- package/lib/validator/complianceEngine.js +241 -0
- package/lib/validator/complianceRules.js +1680 -0
- package/lib/validator/generated/runtime.mjs +17 -0
- package/lib/validator/generated/validate-1.6.mjs +21258 -0
- package/lib/validator/generated/validate-1.7.mjs +24803 -0
- package/lib/validator/generated/validate-2.0.mjs +22931 -0
- package/lib/validator/index.js +246 -0
- package/lib/validator/reporters/annotations.js +142 -0
- package/lib/validator/reporters/console.js +160 -0
- package/lib/validator/reporters/index.js +41 -0
- package/lib/validator/reporters/json.js +37 -0
- package/lib/validator/reporters/sarif.js +184 -0
- package/package.json +209 -26
- package/types/bin/audit.d.ts +3 -0
- package/types/bin/audit.d.ts.map +1 -0
- package/types/bin/cdxgen.d.ts +3 -0
- package/types/bin/cdxgen.d.ts.map +1 -0
- package/types/bin/convert.d.ts +3 -0
- package/types/bin/convert.d.ts.map +1 -0
- package/types/bin/evinse.d.ts +3 -0
- package/types/bin/evinse.d.ts.map +1 -0
- package/types/bin/hbom.d.ts +3 -0
- package/types/bin/hbom.d.ts.map +1 -0
- package/types/bin/repl.d.ts +3 -0
- package/types/bin/repl.d.ts.map +1 -0
- package/types/bin/sign.d.ts +3 -0
- package/types/bin/sign.d.ts.map +1 -0
- package/types/bin/tracebom.d.ts +3 -0
- package/types/bin/tracebom.d.ts.map +1 -0
- package/types/bin/validate.d.ts +14 -0
- package/types/bin/validate.d.ts.map +1 -0
- package/types/bin/verify.d.ts +3 -0
- package/types/bin/verify.d.ts.map +1 -0
- package/types/lib/audit/index.d.ts +153 -0
- package/types/lib/audit/index.d.ts.map +1 -0
- package/types/lib/audit/progress.d.ts +31 -0
- package/types/lib/audit/progress.d.ts.map +1 -0
- package/types/lib/audit/reporters.d.ts +62 -0
- package/types/lib/audit/reporters.d.ts.map +1 -0
- package/types/lib/audit/scoring.d.ts +36 -0
- package/types/lib/audit/scoring.d.ts.map +1 -0
- package/types/lib/audit/targets.d.ts +77 -0
- package/types/lib/audit/targets.d.ts.map +1 -0
- package/types/lib/cli/bomAssembly.d.ts +315 -0
- package/types/lib/cli/bomAssembly.d.ts.map +1 -0
- package/types/lib/cli/cliOptions.d.ts +156 -0
- package/types/lib/cli/cliOptions.d.ts.map +1 -0
- package/types/lib/cli/index.d.ts +107 -0
- package/types/lib/cli/index.d.ts.map +1 -0
- package/types/lib/cli/jsBom.d.ts +94 -0
- package/types/lib/cli/jsBom.d.ts.map +1 -0
- package/types/lib/cli/jvmBom.d.ts +54 -0
- package/types/lib/cli/jvmBom.d.ts.map +1 -0
- package/types/lib/cli/managedBom.d.ts +105 -0
- package/types/lib/cli/managedBom.d.ts.map +1 -0
- package/types/lib/cli/nativeBom.d.ts +143 -0
- package/types/lib/cli/nativeBom.d.ts.map +1 -0
- package/types/lib/core/activity.d.ts +178 -0
- package/types/lib/core/activity.d.ts.map +1 -0
- package/types/lib/core/env.d.ts +192 -0
- package/types/lib/core/env.d.ts.map +1 -0
- package/types/lib/core/fs.d.ts +158 -0
- package/types/lib/core/fs.d.ts.map +1 -0
- package/types/lib/core/httpClient.d.ts +149 -0
- package/types/lib/core/httpClient.d.ts.map +1 -0
- package/types/lib/core/logger.d.ts +28 -0
- package/types/lib/core/logger.d.ts.map +1 -0
- package/types/lib/core/parallel.d.ts +95 -0
- package/types/lib/core/parallel.d.ts.map +1 -0
- package/types/lib/core/paths.d.ts +36 -0
- package/types/lib/core/paths.d.ts.map +1 -0
- package/types/lib/core/projectConfig.d.ts +23 -0
- package/types/lib/core/projectConfig.d.ts.map +1 -0
- package/types/lib/core/propertySanitizer.d.ts +23 -0
- package/types/lib/core/propertySanitizer.d.ts.map +1 -0
- package/types/lib/core/spdx.d.ts +5 -0
- package/types/lib/core/spdx.d.ts.map +1 -0
- package/types/lib/core/state.d.ts +20 -0
- package/types/lib/core/state.d.ts.map +1 -0
- package/types/lib/core/text.d.ts +78 -0
- package/types/lib/core/text.d.ts.map +1 -0
- package/types/lib/core/ui.d.ts +87 -0
- package/types/lib/core/ui.d.ts.map +1 -0
- package/types/lib/core/urls.d.ts +43 -0
- package/types/lib/core/urls.d.ts.map +1 -0
- package/types/lib/ecosystems/asarutils.d.ts +71 -0
- package/types/lib/ecosystems/asarutils.d.ts.map +1 -0
- package/types/lib/ecosystems/bunutils.d.ts +38 -0
- package/types/lib/ecosystems/bunutils.d.ts.map +1 -0
- package/types/lib/ecosystems/caxa.d.ts +8 -0
- package/types/lib/ecosystems/caxa.d.ts.map +1 -0
- package/types/lib/ecosystems/chromextutils.d.ts +97 -0
- package/types/lib/ecosystems/chromextutils.d.ts.map +1 -0
- package/types/lib/ecosystems/cmakeResolver.d.ts +176 -0
- package/types/lib/ecosystems/cmakeResolver.d.ts.map +1 -0
- package/types/lib/ecosystems/cppEvidence.d.ts +35 -0
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -0
- package/types/lib/ecosystems/denoutils.d.ts +76 -0
- package/types/lib/ecosystems/denoutils.d.ts.map +1 -0
- package/types/lib/ecosystems/dotnetutils.d.ts +45 -0
- package/types/lib/ecosystems/dotnetutils.d.ts.map +1 -0
- package/types/lib/ecosystems/ecosystems.d.ts +279 -0
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -0
- package/types/lib/ecosystems/golem.d.ts +60 -0
- package/types/lib/ecosystems/golem.d.ts.map +1 -0
- package/types/lib/ecosystems/gradleutils.d.ts +139 -0
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -0
- package/types/lib/ecosystems/jsEvidence.d.ts +17 -0
- package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -0
- package/types/lib/ecosystems/npmutils.d.ts +183 -0
- package/types/lib/ecosystems/npmutils.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-bazel.d.ts +36 -0
- package/types/lib/ecosystems/parsers-bazel.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-dotnet.d.ts +116 -0
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-gleam.d.ts +33 -0
- package/types/lib/ecosystems/parsers-gleam.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-go.d.ts +92 -0
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-js.d.ts +242 -0
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-jvm.d.ts +100 -0
- package/types/lib/ecosystems/parsers-jvm.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-misc.d.ts +450 -0
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-python.d.ts +145 -0
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-rust.d.ts +56 -0
- package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-zig.d.ts +83 -0
- package/types/lib/ecosystems/parsers-zig.d.ts.map +1 -0
- package/types/lib/ecosystems/pep770.d.ts +38 -0
- package/types/lib/ecosystems/pep770.d.ts.map +1 -0
- package/types/lib/ecosystems/pylockutils.d.ts +68 -0
- package/types/lib/ecosystems/pylockutils.d.ts.map +1 -0
- package/types/lib/ecosystems/pythonutils.d.ts +70 -0
- package/types/lib/ecosystems/pythonutils.d.ts.map +1 -0
- package/types/lib/ecosystems/registryProvenance.d.ts +26 -0
- package/types/lib/ecosystems/registryProvenance.d.ts.map +1 -0
- package/types/lib/ecosystems/remote/huggingface.d.ts +31 -0
- package/types/lib/ecosystems/remote/huggingface.d.ts.map +1 -0
- package/types/lib/ecosystems/rubyutils.d.ts +182 -0
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -0
- package/types/lib/ecosystems/rusi.d.ts +40 -0
- package/types/lib/ecosystems/rusi.d.ts.map +1 -0
- package/types/lib/ecosystems/sbtutils.d.ts +179 -0
- package/types/lib/ecosystems/sbtutils.d.ts.map +1 -0
- package/types/lib/ecosystems/tea.d.ts +180 -0
- package/types/lib/ecosystems/tea.d.ts.map +1 -0
- package/types/lib/ecosystems/utils.d.ts +41 -0
- package/types/lib/ecosystems/utils.d.ts.map +1 -0
- package/types/lib/ecosystems/zigResolver.d.ts +70 -0
- package/types/lib/ecosystems/zigResolver.d.ts.map +1 -0
- package/types/lib/evinser/db.d.ts +17 -0
- package/types/lib/evinser/db.d.ts.map +1 -0
- package/types/lib/evinser/evinser.d.ts +354 -0
- package/types/lib/evinser/evinser.d.ts.map +1 -0
- package/types/lib/evinser/scalasem.d.ts +15 -0
- package/types/lib/evinser/scalasem.d.ts.map +1 -0
- package/types/lib/evinser/swiftsem.d.ts +103 -0
- package/types/lib/evinser/swiftsem.d.ts.map +1 -0
- package/types/lib/helpers/annotationFormatter.d.ts +23 -0
- package/types/lib/helpers/annotationFormatter.d.ts.map +1 -0
- package/types/lib/helpers/bomSigner.d.ts +28 -0
- package/types/lib/helpers/bomSigner.d.ts.map +1 -0
- package/types/lib/helpers/exportUtils.d.ts +52 -0
- package/types/lib/helpers/exportUtils.d.ts.map +1 -0
- package/types/lib/helpers/remote/dependency-track.d.ts +23 -0
- package/types/lib/helpers/remote/dependency-track.d.ts.map +1 -0
- package/types/lib/helpers/versutils.d.ts +8 -0
- package/types/lib/helpers/versutils.d.ts.map +1 -0
- package/types/lib/helpers/vsixutils.d.ts +130 -0
- package/types/lib/helpers/vsixutils.d.ts.map +1 -0
- package/types/lib/inventory/agentFormulationParser.d.ts +21 -0
- package/types/lib/inventory/agentFormulationParser.d.ts.map +1 -0
- package/types/lib/inventory/aiCollector.d.ts +61 -0
- package/types/lib/inventory/aiCollector.d.ts.map +1 -0
- package/types/lib/inventory/aiInventory.d.ts +103 -0
- package/types/lib/inventory/aiInventory.d.ts.map +1 -0
- package/types/lib/inventory/aiModelVariants.d.ts +31 -0
- package/types/lib/inventory/aiModelVariants.d.ts.map +1 -0
- package/types/lib/inventory/aiOversightCollector.d.ts +28 -0
- package/types/lib/inventory/aiOversightCollector.d.ts.map +1 -0
- package/types/lib/inventory/aiProvenanceCollector.d.ts +13 -0
- package/types/lib/inventory/aiProvenanceCollector.d.ts.map +1 -0
- package/types/lib/inventory/analyzer.d.ts +157 -0
- package/types/lib/inventory/analyzer.d.ts.map +1 -0
- package/types/lib/inventory/analyzerScope.d.ts +106 -0
- package/types/lib/inventory/analyzerScope.d.ts.map +1 -0
- package/types/lib/inventory/astWorker.d.ts +9 -0
- package/types/lib/inventory/astWorker.d.ts.map +1 -0
- package/types/lib/inventory/atomUtils.d.ts +159 -0
- package/types/lib/inventory/atomUtils.d.ts.map +1 -0
- package/types/lib/inventory/auditCategories.d.ts +80 -0
- package/types/lib/inventory/auditCategories.d.ts.map +1 -0
- package/types/lib/inventory/bomUtils.d.ts +145 -0
- package/types/lib/inventory/bomUtils.d.ts.map +1 -0
- package/types/lib/inventory/cacheCommands.d.ts +28 -0
- package/types/lib/inventory/cacheCommands.d.ts.map +1 -0
- package/types/lib/inventory/cacheDir.d.ts +55 -0
- package/types/lib/inventory/cacheDir.d.ts.map +1 -0
- package/types/lib/inventory/cbomutils.d.ts +37 -0
- package/types/lib/inventory/cbomutils.d.ts.map +1 -0
- package/types/lib/inventory/cdxrs.d.ts +90 -0
- package/types/lib/inventory/cdxrs.d.ts.map +1 -0
- package/types/lib/inventory/ciParsers/azurePipelines.d.ts +27 -0
- package/types/lib/inventory/ciParsers/azurePipelines.d.ts.map +1 -0
- package/types/lib/inventory/ciParsers/circleCi.d.ts +27 -0
- package/types/lib/inventory/ciParsers/circleCi.d.ts.map +1 -0
- package/types/lib/inventory/ciParsers/common.d.ts +11 -0
- package/types/lib/inventory/ciParsers/common.d.ts.map +1 -0
- package/types/lib/inventory/ciParsers/githubActions.d.ts +38 -0
- package/types/lib/inventory/ciParsers/githubActions.d.ts.map +1 -0
- package/types/lib/inventory/ciParsers/gitlabCi.d.ts +26 -0
- package/types/lib/inventory/ciParsers/gitlabCi.d.ts.map +1 -0
- package/types/lib/inventory/ciParsers/jenkins.d.ts +26 -0
- package/types/lib/inventory/ciParsers/jenkins.d.ts.map +1 -0
- package/types/lib/inventory/citations.d.ts +90 -0
- package/types/lib/inventory/citations.d.ts.map +1 -0
- package/types/lib/inventory/communityAiConfigParser.d.ts +14 -0
- package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -0
- package/types/lib/inventory/containerRisk.d.ts +20 -0
- package/types/lib/inventory/containerRisk.d.ts.map +1 -0
- package/types/lib/inventory/cryptoAlgorithmFamily.d.ts +37 -0
- package/types/lib/inventory/cryptoAlgorithmFamily.d.ts.map +1 -0
- package/types/lib/inventory/deps.d.ts +140 -0
- package/types/lib/inventory/deps.d.ts.map +1 -0
- package/types/lib/inventory/depsUtils.d.ts +74 -0
- package/types/lib/inventory/depsUtils.d.ts.map +1 -0
- package/types/lib/inventory/display.d.ts +227 -0
- package/types/lib/inventory/display.d.ts.map +1 -0
- package/types/lib/inventory/dosai.d.ts +130 -0
- package/types/lib/inventory/dosai.d.ts.map +1 -0
- package/types/lib/inventory/dosaiParsers.d.ts +59 -0
- package/types/lib/inventory/dosaiParsers.d.ts.map +1 -0
- package/types/lib/inventory/dynamic.d.ts +25 -0
- package/types/lib/inventory/dynamic.d.ts.map +1 -0
- package/types/lib/inventory/envcontext.d.ts +377 -0
- package/types/lib/inventory/envcontext.d.ts.map +1 -0
- package/types/lib/inventory/evidenceUtils.d.ts +74 -0
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -0
- package/types/lib/inventory/fetchBatch.d.ts +127 -0
- package/types/lib/inventory/fetchBatch.d.ts.map +1 -0
- package/types/lib/inventory/fetchRate.d.ts +118 -0
- package/types/lib/inventory/fetchRate.d.ts.map +1 -0
- package/types/lib/inventory/forgeEnricher.d.ts +31 -0
- package/types/lib/inventory/forgeEnricher.d.ts.map +1 -0
- package/types/lib/inventory/formulationParsers.d.ts +50 -0
- package/types/lib/inventory/formulationParsers.d.ts.map +1 -0
- package/types/lib/inventory/gtfobins.d.ts +27 -0
- package/types/lib/inventory/gtfobins.d.ts.map +1 -0
- package/types/lib/inventory/hbom.d.ts +58 -0
- package/types/lib/inventory/hbom.d.ts.map +1 -0
- package/types/lib/inventory/hbomAnalysis.d.ts +56 -0
- package/types/lib/inventory/hbomAnalysis.d.ts.map +1 -0
- package/types/lib/inventory/hbomLoader.d.ts +7 -0
- package/types/lib/inventory/hbomLoader.d.ts.map +1 -0
- package/types/lib/inventory/hostTopology.d.ts +47 -0
- package/types/lib/inventory/hostTopology.d.ts.map +1 -0
- package/types/lib/inventory/inventoryStats.d.ts +42 -0
- package/types/lib/inventory/inventoryStats.d.ts.map +1 -0
- package/types/lib/inventory/jsonLike.d.ts +23 -0
- package/types/lib/inventory/jsonLike.d.ts.map +1 -0
- package/types/lib/inventory/licenseEnhancer.d.ts +70 -0
- package/types/lib/inventory/licenseEnhancer.d.ts.map +1 -0
- package/types/lib/inventory/lolbas.d.ts +16 -0
- package/types/lib/inventory/lolbas.d.ts.map +1 -0
- package/types/lib/inventory/mcp.d.ts +29 -0
- package/types/lib/inventory/mcp.d.ts.map +1 -0
- package/types/lib/inventory/mcpConfigParser.d.ts +20 -0
- package/types/lib/inventory/mcpConfigParser.d.ts.map +1 -0
- package/types/lib/inventory/mcpDiscovery.d.ts +33 -0
- package/types/lib/inventory/mcpDiscovery.d.ts.map +1 -0
- package/types/lib/inventory/mcpPinning.d.ts +11 -0
- package/types/lib/inventory/mcpPinning.d.ts.map +1 -0
- package/types/lib/inventory/osPackageResolver.d.ts +49 -0
- package/types/lib/inventory/osPackageResolver.d.ts.map +1 -0
- package/types/lib/inventory/osinfo.d.ts +120 -0
- package/types/lib/inventory/osinfo.d.ts.map +1 -0
- package/types/lib/inventory/osqueryTransform.d.ts +84 -0
- package/types/lib/inventory/osqueryTransform.d.ts.map +1 -0
- package/types/lib/inventory/plugins.d.ts +58 -0
- package/types/lib/inventory/plugins.d.ts.map +1 -0
- package/types/lib/inventory/protobom.d.ts +71 -0
- package/types/lib/inventory/protobom.d.ts.map +1 -0
- package/types/lib/inventory/protobomLoader.d.ts +17 -0
- package/types/lib/inventory/protobomLoader.d.ts.map +1 -0
- package/types/lib/inventory/provenanceUtils.d.ts +98 -0
- package/types/lib/inventory/provenanceUtils.d.ts.map +1 -0
- package/types/lib/inventory/purl.d.ts +313 -0
- package/types/lib/inventory/purl.d.ts.map +1 -0
- package/types/lib/inventory/rustFormulationParser.d.ts +17 -0
- package/types/lib/inventory/rustFormulationParser.d.ts.map +1 -0
- package/types/lib/inventory/sbomDocument.d.ts +59 -0
- package/types/lib/inventory/sbomDocument.d.ts.map +1 -0
- package/types/lib/inventory/source.d.ts +163 -0
- package/types/lib/inventory/source.d.ts.map +1 -0
- package/types/lib/inventory/spdx.d.ts +66 -0
- package/types/lib/inventory/spdx.d.ts.map +1 -0
- package/types/lib/inventory/spdxExpression.d.ts +58 -0
- package/types/lib/inventory/spdxExpression.d.ts.map +1 -0
- package/types/lib/inventory/spdxUtils.d.ts +12 -0
- package/types/lib/inventory/spdxUtils.d.ts.map +1 -0
- package/types/lib/inventory/table.d.ts +19 -0
- package/types/lib/inventory/table.d.ts.map +1 -0
- package/types/lib/inventory/traceRunner.d.ts +80 -0
- package/types/lib/inventory/traceRunner.d.ts.map +1 -0
- package/types/lib/inventory/unicodeScan.d.ts +46 -0
- package/types/lib/inventory/unicodeScan.d.ts.map +1 -0
- package/types/lib/managers/binary.d.ts +76 -0
- package/types/lib/managers/binary.d.ts.map +1 -0
- package/types/lib/managers/containerutils.d.ts +30 -0
- package/types/lib/managers/containerutils.d.ts.map +1 -0
- package/types/lib/managers/docker.d.ts +157 -0
- package/types/lib/managers/docker.d.ts.map +1 -0
- package/types/lib/managers/dockerConnection.d.ts +42 -0
- package/types/lib/managers/dockerConnection.d.ts.map +1 -0
- package/types/lib/managers/oci.d.ts +21 -0
- package/types/lib/managers/oci.d.ts.map +1 -0
- package/types/lib/managers/piptree.d.ts +13 -0
- package/types/lib/managers/piptree.d.ts.map +1 -0
- package/types/lib/parsers/cmakeCache.d.ts +70 -0
- package/types/lib/parsers/cmakeCache.d.ts.map +1 -0
- package/types/lib/parsers/gguf.d.ts +39 -0
- package/types/lib/parsers/gguf.d.ts.map +1 -0
- package/types/lib/parsers/gitAiNotes.d.ts +15 -0
- package/types/lib/parsers/gitAiNotes.d.ts.map +1 -0
- package/types/lib/parsers/gitmodules.d.ts +88 -0
- package/types/lib/parsers/gitmodules.d.ts.map +1 -0
- package/types/lib/parsers/htmlExtract.d.ts +34 -0
- package/types/lib/parsers/htmlExtract.d.ts.map +1 -0
- package/types/lib/parsers/huggingfaceManifest.d.ts +153 -0
- package/types/lib/parsers/huggingfaceManifest.d.ts.map +1 -0
- package/types/lib/parsers/huggingfaceUtils.d.ts +155 -0
- package/types/lib/parsers/huggingfaceUtils.d.ts.map +1 -0
- package/types/lib/parsers/iri.d.ts +68 -0
- package/types/lib/parsers/iri.d.ts.map +1 -0
- package/types/lib/parsers/npmrc.d.ts +33 -0
- package/types/lib/parsers/npmrc.d.ts.map +1 -0
- package/types/lib/parsers/ollama.d.ts +22 -0
- package/types/lib/parsers/ollama.d.ts.map +1 -0
- package/types/lib/parsers/xml.d.ts +47 -0
- package/types/lib/parsers/xml.d.ts.map +1 -0
- package/types/lib/server/server.d.ts +51 -0
- package/types/lib/server/server.d.ts.map +1 -0
- package/types/lib/stages/postgen/annotator.d.ts +36 -0
- package/types/lib/stages/postgen/annotator.d.ts.map +1 -0
- package/types/lib/stages/postgen/auditBom.d.ts +92 -0
- package/types/lib/stages/postgen/auditBom.d.ts.map +1 -0
- package/types/lib/stages/postgen/postgen.d.ts +59 -0
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -0
- package/types/lib/stages/postgen/ruleEngine.d.ts +18 -0
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -0
- package/types/lib/stages/postgen/sortBom.d.ts +34 -0
- package/types/lib/stages/postgen/sortBom.d.ts.map +1 -0
- package/types/lib/stages/postgen/spdxConverter.d.ts +11 -0
- package/types/lib/stages/postgen/spdxConverter.d.ts.map +1 -0
- package/types/lib/stages/postgen/specVersionCompat.d.ts +71 -0
- package/types/lib/stages/postgen/specVersionCompat.d.ts.map +1 -0
- package/types/lib/stages/pregen/envAudit.d.ts +14 -0
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -0
- package/types/lib/stages/pregen/pregen.d.ts +59 -0
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/arborist/index.d.ts +47 -0
- package/types/lib/third-party/arborist/lib/arborist/index.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/arborist/load-actual.d.ts +4 -0
- package/types/lib/third-party/arborist/lib/arborist/load-actual.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/arborist/load-virtual.d.ts +4 -0
- package/types/lib/third-party/arborist/lib/arborist/load-virtual.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/bin-links.d.ts +18 -0
- package/types/lib/third-party/arborist/lib/bin-links.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/calc-dep-flags.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/calc-dep-flags.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/case-insensitive-map.d.ts +9 -0
- package/types/lib/third-party/arborist/lib/case-insensitive-map.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/consistent-resolve.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/consistent-resolve.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/debug.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/debug.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/dep-valid.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/dep-valid.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/edge.d.ts +46 -0
- package/types/lib/third-party/arborist/lib/edge.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/from-path.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/from-path.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/gather-dep-set.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/gather-dep-set.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/index.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/index.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/inventory.d.ts +14 -0
- package/types/lib/third-party/arborist/lib/inventory.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/link.d.ts +18 -0
- package/types/lib/third-party/arborist/lib/link.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/node.d.ts +112 -0
- package/types/lib/third-party/arborist/lib/node.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/npm-extension.d.ts +18 -0
- package/types/lib/third-party/arborist/lib/npm-extension.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/override-resolves.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/override-resolves.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/override-set.d.ts +27 -0
- package/types/lib/third-party/arborist/lib/override-set.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/package-extensions.d.ts +36 -0
- package/types/lib/third-party/arborist/lib/package-extensions.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/printable.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/printable.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/proc-log.d.ts +20 -0
- package/types/lib/third-party/arborist/lib/proc-log.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/realpath.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/realpath.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/relpath.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/relpath.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/shrinkwrap.d.ts +54 -0
- package/types/lib/third-party/arborist/lib/shrinkwrap.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/spec-from-lock.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/spec-from-lock.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/tree-check.d.ts +3 -0
- package/types/lib/third-party/arborist/lib/tree-check.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/validate-npm-package-name.d.ts +13 -0
- package/types/lib/third-party/arborist/lib/validate-npm-package-name.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/version-from-tgz.d.ts +6 -0
- package/types/lib/third-party/arborist/lib/version-from-tgz.d.ts.map +1 -0
- package/types/lib/third-party/arborist/lib/yarn-lock.d.ts +35 -0
- package/types/lib/third-party/arborist/lib/yarn-lock.d.ts.map +1 -0
- package/types/lib/validator/bomValidator.d.ts +40 -0
- package/types/lib/validator/bomValidator.d.ts.map +1 -0
- package/types/lib/validator/complianceEngine.d.ts +72 -0
- package/types/lib/validator/complianceEngine.d.ts.map +1 -0
- package/types/lib/validator/complianceRules.d.ts +61 -0
- package/types/lib/validator/complianceRules.d.ts.map +1 -0
- package/types/lib/validator/index.d.ts +101 -0
- package/types/lib/validator/index.d.ts.map +1 -0
- package/types/lib/validator/reporters/annotations.d.ts +37 -0
- package/types/lib/validator/reporters/annotations.d.ts.map +1 -0
- package/types/lib/validator/reporters/console.d.ts +34 -0
- package/types/lib/validator/reporters/console.d.ts.map +1 -0
- package/types/lib/validator/reporters/index.d.ts +30 -0
- package/types/lib/validator/reporters/index.d.ts.map +1 -0
- package/types/lib/validator/reporters/json.d.ts +11 -0
- package/types/lib/validator/reporters/json.d.ts.map +1 -0
- package/types/lib/validator/reporters/sarif.d.ts +22 -0
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -0
- package/mod.d.ts +0 -7
- package/mod.js +0 -22
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges two CycloneDX dependency arrays into a single deduplicated list.
|
|
3
|
+
* For each unique ref, the dependsOn and provides sets from both arrays are
|
|
4
|
+
* combined. Self-referential entries pointing to the parent component are
|
|
5
|
+
* removed from all dependsOn and provides lists.
|
|
6
|
+
*
|
|
7
|
+
* @param {Object[]} dependencies First array of dependency objects
|
|
8
|
+
* @param {Object[]} newDependencies Second array of dependency objects to merge
|
|
9
|
+
* @param {Object} parentComponent Parent component whose bom-ref is used to filter self-references
|
|
10
|
+
* @returns {Object[]} Merged and deduplicated array of dependency objects
|
|
11
|
+
*/
|
|
12
|
+
export declare function mergeDependencies(dependencies: Object[], newDependencies: Object[], parentComponent?: Object): Object[];
|
|
13
|
+
/**
|
|
14
|
+
* Marks npm @types packages as excluded from runtime scope.
|
|
15
|
+
*
|
|
16
|
+
* @param {Object[]} components CycloneDX component objects
|
|
17
|
+
* @returns {Object[]} The same component array with scopes updated in place
|
|
18
|
+
*/
|
|
19
|
+
export declare function markNpmTypesPackagesAsExcluded(components?: Object[]): Object[];
|
|
20
|
+
/**
|
|
21
|
+
* Propagates required scope through a dependency graph.
|
|
22
|
+
*
|
|
23
|
+
* If component A has `scope: "required"` and dependency metadata says A depends
|
|
24
|
+
* on B, B is also runtime-relevant. Keep packages optional when lockfile/parser
|
|
25
|
+
* metadata explicitly identifies them as development, optional, or peer-only.
|
|
26
|
+
*
|
|
27
|
+
* @param {Object[]} components CycloneDX component objects
|
|
28
|
+
* @param {Object[]} dependencies CycloneDX dependency entries
|
|
29
|
+
* @returns {Object[]} The same component array with scopes updated in place
|
|
30
|
+
*/
|
|
31
|
+
export declare function propagateRequiredScopeFromDependencies(components?: Object[], dependencies?: Object[]): Object[];
|
|
32
|
+
/**
|
|
33
|
+
* Merge CycloneDX services using bom-ref or group/name/version identity.
|
|
34
|
+
*
|
|
35
|
+
* @param {Object[]|Object} services Existing service list
|
|
36
|
+
* @param {Object[]|Object} newServices New service list
|
|
37
|
+
* @returns {Object[]} Merged and deduplicated services
|
|
38
|
+
*/
|
|
39
|
+
export declare function mergeServices(services: Object[] | Object, newServices: Object[] | Object): Object[];
|
|
40
|
+
/**
|
|
41
|
+
* Trim duplicate components by retaining all the properties
|
|
42
|
+
*
|
|
43
|
+
* @param {Array} components Components
|
|
44
|
+
*
|
|
45
|
+
* @returns {Array} Filtered components
|
|
46
|
+
*/
|
|
47
|
+
export declare function trimComponents(components: any[]): any[];
|
|
48
|
+
/**
|
|
49
|
+
* Filter out invalid cryptographic-asset components from a component list.
|
|
50
|
+
* Removes algorithm components without a valid cryptoProperties.oid and
|
|
51
|
+
* certificate components without cryptoProperties.algorithmProperties.
|
|
52
|
+
*
|
|
53
|
+
* @param {Object[] | undefined | null} components Array of CycloneDX components
|
|
54
|
+
* @returns {Object[]} Filtered array with invalid crypto components removed
|
|
55
|
+
*/
|
|
56
|
+
export declare function filterInvalidCryptoComponents(components: Object[] | undefined | null): Object[];
|
|
57
|
+
/**
|
|
58
|
+
* Method to check if a given dependency tree is partial or not.
|
|
59
|
+
*
|
|
60
|
+
* @param {Array} dependencies List of dependencies
|
|
61
|
+
* @param {Number} componentsCount Number of components
|
|
62
|
+
* @returns {Boolean} True if the dependency tree lacks any non-root parents without children. False otherwise.
|
|
63
|
+
*/
|
|
64
|
+
export declare function isPartialTree(dependencies: any[], componentsCount?: number): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Re-compute and set the scope based on the dependency tree
|
|
67
|
+
*
|
|
68
|
+
* @param {Array} pkgList List of components
|
|
69
|
+
* @param {Array} dependencies List of dependencies
|
|
70
|
+
*
|
|
71
|
+
* @returns {Array} Updated list
|
|
72
|
+
*/
|
|
73
|
+
export declare function recomputeScope(pkgList: any[], dependencies: any[]): any[];
|
|
74
|
+
//# sourceMappingURL=depsUtils.d.ts.map
|
|
@@ -0,0 +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,EACf,YAAY,GALH,MAAM,EAKE,GAJN,MAAM,EAAE,CA8DpB;AAoCD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAJ3B,MAAM,EAAE,GAAC,MAIkB,EAAE,WAAW,EAHxC,MAAM,EAAE,GAAC,MAG+B,GAFtC,MAAM,EAAE,CAmEpB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,OAAA,SAoIxC;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAH7C,MAAM,EAAE,GAAG,SAAS,GAAG,IAGsB,GAF3C,MAAM,EAAE,CA0CpB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,YAAY,OAAA,EAAE,eAAe,SAAI,WAsB9D;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,OAAO,OAAA,EAAE,YAAY,OAAA,SAgCnD"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build operator-facing AI-BOM summary lines.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
5
|
+
* @returns {string[]} formatted AI-BOM summary lines
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildAiBomInsightLines(bomJson: Object): string[];
|
|
8
|
+
/**
|
|
9
|
+
* Print operator-facing AI-BOM summary lines.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
12
|
+
*/
|
|
13
|
+
export declare function printAiBomInsights(bomJson: Object): void;
|
|
14
|
+
/**
|
|
15
|
+
* Build AI-BOM pedigree lines for REPL inspection.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
18
|
+
* @returns {string[]} formatted pedigree lines
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildAiBomPedigreeLines(bomJson: Object): string[];
|
|
21
|
+
/**
|
|
22
|
+
* Print AI-BOM pedigree lines.
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
25
|
+
*/
|
|
26
|
+
export declare function printAiBomPedigree(bomJson: Object): void;
|
|
27
|
+
/**
|
|
28
|
+
* Build AI-BOM model variant lines for REPL inspection.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
31
|
+
* @returns {string[]} formatted variant lines
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildAiBomVariantLines(bomJson: Object): string[];
|
|
34
|
+
/**
|
|
35
|
+
* Print AI-BOM model variant lines.
|
|
36
|
+
*
|
|
37
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
38
|
+
*/
|
|
39
|
+
export declare function printAiBomVariants(bomJson: Object): void;
|
|
40
|
+
/**
|
|
41
|
+
* Build AI-BOM dataset usage lines for REPL inspection.
|
|
42
|
+
*
|
|
43
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
44
|
+
* @returns {string[]} formatted dataset lines
|
|
45
|
+
*/
|
|
46
|
+
export declare function buildAiBomDatasetLines(bomJson: Object): string[];
|
|
47
|
+
/**
|
|
48
|
+
* Print AI-BOM dataset usage lines.
|
|
49
|
+
*
|
|
50
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
51
|
+
*/
|
|
52
|
+
export declare function printAiBomDatasets(bomJson: Object): void;
|
|
53
|
+
/**
|
|
54
|
+
* Builds the summary and provenance lines printed after the component table.
|
|
55
|
+
*
|
|
56
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
57
|
+
* @param {string[]|undefined} filterTypes Optional list of component types to include
|
|
58
|
+
* @param {string|undefined} summaryText Optional summary message to print after the table
|
|
59
|
+
* @param {number} displayedProvenanceCount Number of displayed components with registry provenance
|
|
60
|
+
* @returns {string[]} Summary lines to print
|
|
61
|
+
*/
|
|
62
|
+
export declare const buildTableSummaryLines: (bomJson: Object, filterTypes: string[] | undefined, summaryText: string | undefined, displayedProvenanceCount?: number) => string[];
|
|
63
|
+
/**
|
|
64
|
+
* Builds legend lines for dependency tree marker icons.
|
|
65
|
+
*
|
|
66
|
+
* @param {string[]} treeGraphics Dependency tree lines
|
|
67
|
+
* @returns {string[]} Legend lines to print after the tree output
|
|
68
|
+
*/
|
|
69
|
+
export declare const buildDependencyTreeLegendLines: (treeGraphics: string[]) => string[];
|
|
70
|
+
/**
|
|
71
|
+
* Aggregate recorded activities into a summary payload with mode and status counts.
|
|
72
|
+
*
|
|
73
|
+
* @param {Object[]} activities Recorded activity objects with a status field
|
|
74
|
+
* @param {boolean} [dryRunMode] Whether the run was a dry run; defaults to the global dry-run flag
|
|
75
|
+
* @returns {Object} Payload containing the activities, mode ("dry-run" or "debug"), and summary counts
|
|
76
|
+
*/
|
|
77
|
+
export declare function buildActivitySummaryPayload(activities: Object[], dryRunMode?: boolean): Object;
|
|
78
|
+
/**
|
|
79
|
+
* Serialize an activity summary into report lines for the given report type.
|
|
80
|
+
*
|
|
81
|
+
* Produces a single pretty-printed JSON document for "json", newline-delimited
|
|
82
|
+
* JSON records (a summary record followed by one record per activity) for
|
|
83
|
+
* "jsonl", and no lines otherwise.
|
|
84
|
+
*
|
|
85
|
+
* @param {Object[]} activities Recorded activity objects
|
|
86
|
+
* @param {string} [reportType] Report format: "json" or "jsonl"
|
|
87
|
+
* @param {boolean} [dryRunMode] Whether the run was a dry run; defaults to the global dry-run flag
|
|
88
|
+
* @returns {string[]} Serialized report lines; empty when the report type is unsupported
|
|
89
|
+
*/
|
|
90
|
+
export declare function serializeActivitySummary(activities: Object[], reportType?: string, dryRunMode?: boolean): string[];
|
|
91
|
+
/**
|
|
92
|
+
* Prints the BOM components as a streaming table to the console.
|
|
93
|
+
* Delegates to {@link printOSTable} automatically when the BOM metadata indicates
|
|
94
|
+
* an operating-system or platform component type.
|
|
95
|
+
*
|
|
96
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
97
|
+
* @param {string[]} [filterTypes] Optional list of component types to include; all types shown when omitted
|
|
98
|
+
* @param {string} [highlight] Optional string to highlight in the output
|
|
99
|
+
* @param {string} [summaryText] Optional summary message to print after the table
|
|
100
|
+
* @returns {void}
|
|
101
|
+
*/
|
|
102
|
+
export declare function printTable(bomJson: Object, filterTypes?: string[], highlight?: string, summaryText?: string): void;
|
|
103
|
+
/**
|
|
104
|
+
* Prints OS package components from the BOM as a formatted streaming table.
|
|
105
|
+
*
|
|
106
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
107
|
+
* @returns {void}
|
|
108
|
+
*/
|
|
109
|
+
export declare function printOSTable(bomJson: Object): void;
|
|
110
|
+
/**
|
|
111
|
+
* Prints the services listed in the BOM as a formatted table.
|
|
112
|
+
* Includes endpoint URLs, authentication flag, and cross-trust-boundary flag.
|
|
113
|
+
*
|
|
114
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
115
|
+
* @returns {void}
|
|
116
|
+
*/
|
|
117
|
+
export declare function printServices(bomJson: Object): void;
|
|
118
|
+
/**
|
|
119
|
+
* Prints the formulation components from the BOM as a formatted table.
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
122
|
+
* @returns {void}
|
|
123
|
+
*/
|
|
124
|
+
export declare function printFormulation(bomJson: Object): void;
|
|
125
|
+
/**
|
|
126
|
+
* Prints component evidence occurrences (file locations) as a streaming table.
|
|
127
|
+
* Only components that have `evidence.occurrences` are included.
|
|
128
|
+
*
|
|
129
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
130
|
+
* @returns {void}
|
|
131
|
+
*/
|
|
132
|
+
export declare function printOccurrences(bomJson: Object): void;
|
|
133
|
+
/**
|
|
134
|
+
* Prints the call stack evidence for each component in the BOM as a formatted table.
|
|
135
|
+
* Only components that have `evidence.callstack.frames` are included.
|
|
136
|
+
*
|
|
137
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
138
|
+
* @returns {void}
|
|
139
|
+
*/
|
|
140
|
+
export declare function printCallStack(bomJson: Object): void;
|
|
141
|
+
/**
|
|
142
|
+
* Prints the dependency tree from the BOM as an ASCII tree diagram.
|
|
143
|
+
* Uses the `table` library for small trees and plain console output for larger ones.
|
|
144
|
+
*
|
|
145
|
+
* @param {Object} bomJson CycloneDX BOM JSON object containing a `dependencies` array
|
|
146
|
+
* @param {string} [mode="dependsOn"] Dependency relation to traverse (`"dependsOn"` or `"provides"`)
|
|
147
|
+
* @param {string} [highlight] Optional string to highlight in the tree output
|
|
148
|
+
* @returns {void}
|
|
149
|
+
*/
|
|
150
|
+
export declare function printDependencyTree(bomJson: Object, mode?: string, highlight?: string): void;
|
|
151
|
+
/**
|
|
152
|
+
* Builds printable dependency tree lines from a BOM dependency graph.
|
|
153
|
+
* Produces a spanning forest so shared children are rendered once, while
|
|
154
|
+
* disconnected or cyclic subgraphs are still emitted as dangling trees.
|
|
155
|
+
*
|
|
156
|
+
* @param {Object[]} dependencies CycloneDX dependency objects
|
|
157
|
+
* @param {string} [mode="dependsOn"] Dependency relation to traverse
|
|
158
|
+
* @returns {string[]} Dependency tree lines ready for console rendering
|
|
159
|
+
*/
|
|
160
|
+
export declare const buildDependencyTreeLines: (dependencies: Object[], mode?: string) => string[];
|
|
161
|
+
/**
|
|
162
|
+
* Prints a table of reachable components derived from a reachability slices file.
|
|
163
|
+
* Aggregates per-purl reachable-flow counts and sorts them descending.
|
|
164
|
+
*
|
|
165
|
+
* @param {Object} sliceArtefacts Slice artefact paths, must include `reachablesSlicesFile`
|
|
166
|
+
* @returns {void}
|
|
167
|
+
*/
|
|
168
|
+
export declare function printReachables(sliceArtefacts: Object): void;
|
|
169
|
+
/**
|
|
170
|
+
* Prints a formatted table of CycloneDX vulnerability objects.
|
|
171
|
+
*
|
|
172
|
+
* @param {Object[]} vulnerabilities Array of CycloneDX vulnerability objects
|
|
173
|
+
* @returns {void}
|
|
174
|
+
*/
|
|
175
|
+
export declare function printVulnerabilities(vulnerabilities: Object[]): void;
|
|
176
|
+
/**
|
|
177
|
+
* Prints an OWASP donation banner when running in a CI environment.
|
|
178
|
+
* The banner is suppressed when `options.noBanner` is set or the repository
|
|
179
|
+
* belongs to the cdxgen project itself.
|
|
180
|
+
*
|
|
181
|
+
* @param {Object} options CLI options
|
|
182
|
+
* @returns {void}
|
|
183
|
+
*/
|
|
184
|
+
export declare function printSponsorBanner(options: Object): void;
|
|
185
|
+
/**
|
|
186
|
+
* Prints a BOM summary table including generator tool names, component package types,
|
|
187
|
+
* and component namespaces extracted from BOM metadata properties.
|
|
188
|
+
*
|
|
189
|
+
* @param {Object} bomJson CycloneDX BOM JSON object
|
|
190
|
+
* @returns {void}
|
|
191
|
+
*/
|
|
192
|
+
export declare function printSummary(bomJson: Object): void;
|
|
193
|
+
/**
|
|
194
|
+
* Print the recorded activity summary to the console.
|
|
195
|
+
*
|
|
196
|
+
* For "json"/"jsonl" report types the serialized lines are printed verbatim;
|
|
197
|
+
* otherwise a human-readable console summary with status counts is shown.
|
|
198
|
+
*
|
|
199
|
+
* @param {string} [reportType] Report format: "json", "jsonl", or undefined for console output
|
|
200
|
+
* @returns {void}
|
|
201
|
+
*/
|
|
202
|
+
export declare function printActivitySummary(reportType?: string): void;
|
|
203
|
+
export type EnvAuditFinding = {
|
|
204
|
+
type: string;
|
|
205
|
+
variable: string;
|
|
206
|
+
severity: string;
|
|
207
|
+
message: string;
|
|
208
|
+
mitigation: string;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Prints a grouped secure-mode environment audit call-out panel.
|
|
212
|
+
*
|
|
213
|
+
* @param {EnvAuditFinding[]} envAuditFindings Audit findings to display
|
|
214
|
+
* @returns {void}
|
|
215
|
+
*/
|
|
216
|
+
export declare function printEnvironmentAuditFindings(envAuditFindings?: EnvAuditFinding[]): void;
|
|
217
|
+
/**
|
|
218
|
+
* Runs the pre-generation environment audit and renders the results as formatted
|
|
219
|
+
* tables to the console. Called when the --env-audit CLI flag is set.
|
|
220
|
+
*
|
|
221
|
+
* @param {string} filePath Project path being scanned
|
|
222
|
+
* @param {Object} config Loaded .cdxgenrc / config-file values
|
|
223
|
+
* @param {Object} options Effective CLI options
|
|
224
|
+
* @param {EnvAuditFinding[]} envAuditFindings Audit findings to display
|
|
225
|
+
*/
|
|
226
|
+
export declare function displaySelfThreatModel(filePath: string, config: Object, options: Object, envAuditFindings: EnvAuditFinding[]): void;
|
|
227
|
+
//# sourceMappingURL=display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../lib/inventory/display.js"],"names":[],"mappings":"AAwKA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAHnC,MAGmC,GAFjC,MAAM,EAAE,CAkFpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAF/B,MAE+B,QAKzC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CA2CpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAF/B,MAE+B,QAKzC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAHnC,MAGmC,GAFjC,MAAM,EAAE,CAyBpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAF/B,MAE+B,QAKzC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAHnC,MAGmC,GAFjC,MAAM,EAAE,CAwBpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAF/B,MAE+B,QAKzC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,YANxB,MAAM,eACN,MAAM,EAAE,GAAC,SAAS,eAClB,MAAM,GAAC,SAAS,6BAChB,MAAM,KACJ,MAAM,EAkGlB,CAAC;AAqNF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,iBAHhC,MAAM,EAAE,KACN,MAAM,EAclB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAJ3C,MAAM,EAIqC,EAAE,UAAU,AAH/D,CACA,EADQ,OAGkE,GAFhE,MAAM,CAsBlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAND,MAAM,EAML,EACV,UAAU,AANT,CACA,EADQ,MAMU,EACnB,UAAU,AANT,CACA,EADQ,OAMY,GALV,MAAM,EAAE,CA8BpB;AA6BD;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAPE,MAOF,EACP,WAAW,AAPV,CACA,EADQ,MAAM,EAOQ,EACvB,SAAS,AAPR,CACA,EADQ,MAOY,EACrB,WAAW,AAPV,CACA,EADQ,MAOc,GANZ,IAAI,CA+EhB;AAQD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAHzB,MAGyB,GAFvB,IAAI,CAsBhB;AACD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAH1B,MAG0B,GAFxB,IAAI,CAwBhB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAH7B,MAG6B,GAF3B,IAAI,CAuBhB;AA0BD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAH7B,MAG6B,GAF3B,IAAI,CAwChB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAH3B,MAG2B,GAFzB,IAAI,CA+ChB;AACD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EANE,MAMF,EACP,IAAI,AANH,CACA,EADQ,MAMS,EAClB,SAAS,AANR,CACA,EADQ,MAMY,GALV,IAAI,CAoChB;AAkJD;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,iBAJ1B,MAAM,EAAE,SACR,MAAM,KACJ,MAAM,EAyClB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,cAAc,EAHnC,MAGmC,GAFjC,IAAI,CAoChB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAHzC,MAAM,EAGmC,GAFvC,IAAI,CA4BhB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAH/B,MAG+B,GAF7B,IAAI,CAwBhB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAHzB,MAGyB,GAFvB,IAAI,CAsDhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,AAH5C,CACA,EADQ,MAGgD,GAF9C,IAAI,CAwHhB;AAGE,YAAmG,eAAe,GAAxG;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,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"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check whether a language is a .NET language supported by dosai analysis.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} language Project type or language name
|
|
5
|
+
* @returns {boolean} True when the language maps to a supported .NET/dotnet identifier
|
|
6
|
+
*/
|
|
7
|
+
export declare function isDosaiDotnetLanguage(language: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Read and parse a dosai JSON output file.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} jsonFile Path to the dosai JSON file
|
|
12
|
+
* @returns {Object|undefined} Parsed JSON content, or undefined when missing or invalid
|
|
13
|
+
*/
|
|
14
|
+
export declare function readDosaiJsonFile(jsonFile: string): Object | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Run a dosai subcommand ("methods", "dataflows", or "crypto") against a source
|
|
17
|
+
* tree and write its JSON output to the given file.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} command Dosai subcommand to execute
|
|
20
|
+
* @param {string} src Source directory to analyze
|
|
21
|
+
* @param {string} outputFile Path where the dosai JSON output is written
|
|
22
|
+
* @param {Object} [options] Options carrying dosaiCommand, dataFlowPatterns, or patternPacks overrides
|
|
23
|
+
* @returns {boolean} True when the command succeeded and produced the output file, false otherwise
|
|
24
|
+
*/
|
|
25
|
+
export declare function runDosaiCommand(command: string, src: string, outputFile: string, options?: Object): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Produce the dosai methods (call graph) slice for a source tree.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} src Source directory to analyze
|
|
30
|
+
* @param {string} outputFile Path where the methods slice JSON is written
|
|
31
|
+
* @param {Object} [options] Options forwarded to runDosaiCommand
|
|
32
|
+
* @returns {boolean} True when the slice was produced successfully
|
|
33
|
+
*/
|
|
34
|
+
export declare function createDosaiMethodsSlice(src: string, outputFile: string, options?: Object): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Produce the dosai data-flow slice for a source tree.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} src Source directory to analyze
|
|
39
|
+
* @param {string} outputFile Path where the data-flow slice JSON is written
|
|
40
|
+
* @param {Object} [options] Options carrying dataFlowPatterns or patternPacks overrides
|
|
41
|
+
* @returns {boolean} True when the slice was produced successfully
|
|
42
|
+
*/
|
|
43
|
+
export declare function createDosaiDataFlowSlice(src: string, outputFile: string, options?: Object): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Produce the dosai crypto analysis output for a source tree.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} src Source directory to analyze
|
|
48
|
+
* @param {string} outputFile Path where the crypto analysis JSON is written
|
|
49
|
+
* @param {Object} [options] Options forwarded to runDosaiCommand
|
|
50
|
+
* @returns {boolean} True when the analysis was produced successfully
|
|
51
|
+
*/
|
|
52
|
+
export declare function createDosaiCryptoAnalysis(src: string, outputFile: string, options?: Object): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Run dosai crypto analysis in a temporary directory and return the parsed result.
|
|
55
|
+
*
|
|
56
|
+
* @param {string} src Source directory to analyze
|
|
57
|
+
* @param {Object} [options] Options forwarded to createDosaiCryptoAnalysis
|
|
58
|
+
* @returns {Object|undefined} Parsed crypto analysis JSON, or undefined when the analysis fails
|
|
59
|
+
*/
|
|
60
|
+
export declare function analyzeDosaiCrypto(src: string, options?: Object): Object | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Persist the combined native dosai report to options.semanticsSlicesFile.
|
|
63
|
+
*
|
|
64
|
+
* Mirrors the rusi/golem persistence contract (analyzeRusiProject /
|
|
65
|
+
* analyzeGolemProject on branch feat/rusi-persist-report): when a semantics-
|
|
66
|
+
* slices path is provided, the FULL native report is written there and kept so
|
|
67
|
+
* downstream tools (depscan) can consume the complete methods + data-flow
|
|
68
|
+
* facts that cdxgen only projects a subset of into the SBOM evidence. dotnet
|
|
69
|
+
* does not otherwise use the semantics slice (atom is never run for dotnet),
|
|
70
|
+
* so the path is free to carry the combined dosai report. Returns the resolved
|
|
71
|
+
* durable path when something was persisted, otherwise undefined.
|
|
72
|
+
*/
|
|
73
|
+
export declare function persistDosaiSemanticsReport(options: any, methodsSlice: any, dataFlowSlice: any): any;
|
|
74
|
+
/**
|
|
75
|
+
* Build a purl alias map for a list of components.
|
|
76
|
+
*
|
|
77
|
+
* @param {Object[]} [components] Component objects with purl fields
|
|
78
|
+
* @returns {Map<string, string>} Map of exact purls and normalized type/namespace/name keys to canonical purls
|
|
79
|
+
*/
|
|
80
|
+
export declare function buildPurlAliasMap(components?: Object[]): Map<string, string>;
|
|
81
|
+
/**
|
|
82
|
+
* Resolve a possibly-aliased purl to the canonical component purl.
|
|
83
|
+
*
|
|
84
|
+
* @param {string} purl Purl from a dosai report
|
|
85
|
+
* @param {Map<string, string>} purlAliasMap Alias map built by buildPurlAliasMap
|
|
86
|
+
* @returns {string|undefined} Canonical component purl, the input purl when unaliased, or undefined when empty
|
|
87
|
+
*/
|
|
88
|
+
export declare function resolveComponentPurl(purl: string, purlAliasMap: Map<string, string>): string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Map a dosai methods slice to per-purl occurrence evidence.
|
|
91
|
+
*
|
|
92
|
+
* Extracts source locations, imported modules, and called methods from the
|
|
93
|
+
* Dependencies and PackageReachability sections of the slice.
|
|
94
|
+
*
|
|
95
|
+
* @param {Object} methodsSlice Parsed dosai methods slice JSON
|
|
96
|
+
* @param {Object[]} [components] BOM components used to resolve purl aliases
|
|
97
|
+
* @returns {Object} Object with purlLocationMap, purlModulesMap, and purlMethodsMap keyed by purl
|
|
98
|
+
*/
|
|
99
|
+
export declare function collectDosaiPurlEvidence(methodsSlice: Object, components?: Object[]): Object;
|
|
100
|
+
/**
|
|
101
|
+
* Extract data-flow call frames per component purl from a dosai data-flow result.
|
|
102
|
+
*
|
|
103
|
+
* Frames are derived from slice and PackageReachability node ids, and grouped
|
|
104
|
+
* under every purl referenced by each flow (source, sink, and intermediate).
|
|
105
|
+
*
|
|
106
|
+
* @param {Object} dataFlowResult Parsed dosai data-flow slice JSON
|
|
107
|
+
* @param {Object[]} [components] BOM components used to resolve purl aliases
|
|
108
|
+
* @returns {Object} Map of canonical purl to arrays of call-stack frame objects
|
|
109
|
+
*/
|
|
110
|
+
export declare function collectDosaiDataFlowFrames(dataFlowResult: Object, components?: Object[]): Object;
|
|
111
|
+
/**
|
|
112
|
+
* Infer service and endpoint definitions from a dosai methods slice.
|
|
113
|
+
*
|
|
114
|
+
* Sanitizes API endpoint routes, derives stable service names, and records
|
|
115
|
+
* `cdx:dosai:*` properties (http method, auth requirements, claim counts) per
|
|
116
|
+
* service in the supplied map, mutating it in place.
|
|
117
|
+
*
|
|
118
|
+
* @param {Object} methodsSlice Parsed dosai methods slice JSON
|
|
119
|
+
* @param {Object} [servicesMap] Map of service name to service definition, mutated in place
|
|
120
|
+
* @returns {Object} The updated services map
|
|
121
|
+
*/
|
|
122
|
+
export declare function collectDosaiServicesFromMethods(methodsSlice: Object, servicesMap?: Object): Object;
|
|
123
|
+
/**
|
|
124
|
+
* Normalize a services map into a sorted array of CycloneDX service objects.
|
|
125
|
+
*
|
|
126
|
+
* @param {Object} [servicesMap] Map of service name to service definition with Set-backed endpoints
|
|
127
|
+
* @returns {Object[]} Array of service objects with sorted endpoint arrays and properties
|
|
128
|
+
*/
|
|
129
|
+
export declare function normalizeDosaiServiceMap(servicesMap?: Object): Object[];
|
|
130
|
+
//# sourceMappingURL=dosai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dosai.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dosai.js"],"names":[],"mappings":"AAmJA;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAHnC,MAGmC,GAFjC,OAAO,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,MAAM,GAAC,SAAS,CAW5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAN5B,MAM4B,EAAE,GAAG,EALjC,MAKiC,EAAE,UAAU,EAJ7C,MAI6C,EAAE,OAAO,AAH9D,CACA,EADQ,MAG2D,GAFzD,OAAO,CAyDnB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EALhC,MAKgC,EAAE,UAAU,EAJ5C,MAI4C,EAAE,OAAO,AAH7D,CACA,EADQ,MAG0D,GAFxD,OAAO,CAInB;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EALjC,MAKiC,EAAE,UAAU,EAJ7C,MAI6C,EAAE,OAAO,AAH9D,CACA,EADQ,MAG2D,GAFzD,OAAO,CAInB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EALlC,MAKkC,EAAE,UAAU,EAJ9C,MAI8C,EAAE,OAAO,AAH/D,CACA,EADQ,MAG4D,GAF1D,OAAO,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAJ3B,MAI2B,EAAE,OAAO,AAH5C,CACA,EADQ,MAGyC,GAFvC,MAAM,GAAC,SAAS,CAe5B;AAuBD;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,KAAA,EACP,YAAY,KAAA,EACZ,aAAa,KAAA,OAiBd;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,AAHzC,CACA,EADQ,MAAM,EAGgC,GAFpC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAI/B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAJ9B,MAI8B,EAAE,YAAY,EAH5C,GAAG,CAAC,MAAM,EAAE,MAAM,CAG0B,GAF1C,MAAM,GAAC,SAAS,CAI5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAJ1C,MAI0C,EAAE,UAAU,AAH9D,CACA,EADQ,MAAM,EAGqD,GAFzD,MAAM,CAmElB;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,cAAc,EAJ9C,MAI8C,EAAE,UAAU,AAHlE,CACA,EADQ,MAAM,EAGyD,GAF7D,MAAM,CAsClB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EALH,MAKG,EACZ,WAAW,AALV,CACA,EADQ,MAKO,GAJL,MAAM,CA2ElB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,AAHjD,CACA,EADQ,MAG8C,GAF5C,MAAM,EAAE,CAUpB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build a lowercase type/namespace/name lookup key for a purl.
|
|
3
|
+
*
|
|
4
|
+
* Falls back to a stripped, lowercased form of the raw string when the purl
|
|
5
|
+
* cannot be parsed.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} purl Package URL string
|
|
8
|
+
* @returns {string|undefined} Normalized key, or undefined when the input is empty or not a string
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizeDosaiPurlKey(purl: string): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Append a value to the Set stored under a key in a map, creating the Set when absent.
|
|
13
|
+
*
|
|
14
|
+
* @param {Object} map Map of key to Set of values, mutated in place
|
|
15
|
+
* @param {string} key Map key (usually a purl)
|
|
16
|
+
* @param {string} value Value to add; no-op when key or value is falsy
|
|
17
|
+
* @returns {void}
|
|
18
|
+
*/
|
|
19
|
+
export declare function addDosaiSetValue(map: Object, key: string, value: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Format a `file#line` location string from a dosai node or location item.
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} item Dosai node, edge, or location object carrying Path/FileName and LineNumber fields
|
|
24
|
+
* @returns {string|undefined} Location string with a `#line` suffix when available, or undefined when no file is known
|
|
25
|
+
*/
|
|
26
|
+
export declare function dosaiLocation(item: Object): string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Return a validated source location for .NET source extensions, from a call graph node.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} node Dosai call graph node object
|
|
31
|
+
* @returns {string|undefined} Location string, or undefined unless the file is .cs/.vb/.fs/.fsx/.r with a positive line number
|
|
32
|
+
*/
|
|
33
|
+
export declare function dosaiSourceLocationFromNode(node: Object): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Return a validated source location for .NET source extensions, from a location object.
|
|
36
|
+
*
|
|
37
|
+
* @param {Object} location Dosai location object carrying Path/FileName and LineNumber fields
|
|
38
|
+
* @returns {string|undefined} Location string, or undefined unless the file is .cs/.vb/.fs/.fsx/.r with a positive line number
|
|
39
|
+
*/
|
|
40
|
+
export declare function dosaiSourceLocation(location: Object): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Build a purl alias map from BOM components.
|
|
43
|
+
*
|
|
44
|
+
* Maps both exact component purls and normalized type/namespace/name keys to
|
|
45
|
+
* the canonical component purl so dosai-reported purls can be reconciled.
|
|
46
|
+
*
|
|
47
|
+
* @param {Object[]} [components] Component objects with purl fields
|
|
48
|
+
* @returns {Map<string, string>} Map of purl or normalized key to canonical component purl
|
|
49
|
+
*/
|
|
50
|
+
export declare function buildDosaiPurlAliasMap(components?: Object[]): Map<string, string>;
|
|
51
|
+
/**
|
|
52
|
+
* Resolve a purl to the canonical component purl via the alias map.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} purl Purl reported by dosai
|
|
55
|
+
* @param {Map<string, string>} purlAliasMap Alias map built by buildDosaiPurlAliasMap
|
|
56
|
+
* @returns {string|undefined} Canonical component purl, the input purl when unaliased, or undefined when empty
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveDosaiComponentPurl(purl: string, purlAliasMap: Map<string, string>): string | undefined;
|
|
59
|
+
//# sourceMappingURL=dosaiParsers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dosaiParsers.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dosaiParsers.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAH/B,MAG+B,GAF7B,MAAM,GAAC,SAAS,CAgB5B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EALzB,MAKyB,EAAE,GAAG,EAJ9B,MAI8B,EAAE,KAAK,EAHrC,MAGqC,GAFnC,IAAI,CAQhB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAHvB,MAGuB,GAFrB,MAAM,GAAC,SAAS,CAc5B;AAcD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAHrC,MAGqC,GAFnC,MAAM,GAAC,SAAS,CAa5B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAHjC,MAGiC,GAF/B,MAAM,GAAC,SAAS,CAa5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,AAH9C,CACA,EADQ,MAAM,EAGqC,GAFzC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAe/B;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAJnC,MAImC,EAAE,YAAY,EAHjD,GAAG,CAAC,MAAM,EAAE,MAAM,CAG+B,GAF/C,MAAM,GAAC,SAAS,CAW5B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds a flat list of CycloneDX component objects and services by executing
|
|
3
|
+
* the given command and inspecting which shared libraries it loads at runtime
|
|
4
|
+
* and which HTTP URLs it accesses.
|
|
5
|
+
*
|
|
6
|
+
* Each component receives:
|
|
7
|
+
* - type: "library"
|
|
8
|
+
* - scope: "required" (loaded at runtime — definitely required)
|
|
9
|
+
* - hashes: SHA-256 of the on-disk file
|
|
10
|
+
* - evidence.identity[].methods[].technique: "instrumentation"
|
|
11
|
+
* - confidence: 0.8 when the OS package manager reports a version, 0.5 otherwise
|
|
12
|
+
*
|
|
13
|
+
* Services are detected from HTTP request URLs collected during tracing and
|
|
14
|
+
* follow the CycloneDX service schema with endpoints.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} commandStr - Shell command to execute and trace (e.g. "node --version")
|
|
17
|
+
* @param {string} workingDir - Working directory for the traced process
|
|
18
|
+
* @param {Object} [traceOptions] - Additional sandbox options forwarded to executeAndTrace
|
|
19
|
+
* @returns {Promise<{components: Array<Object>, services: Array<Object>}>} Components and services
|
|
20
|
+
*/
|
|
21
|
+
export declare function buildDynamicComponents(commandStr: string, workingDir: string, traceOptions?: Object): Promise<{
|
|
22
|
+
components: Array<Object>;
|
|
23
|
+
services: Array<Object>;
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=dynamic.d.ts.map
|
|
@@ -0,0 +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"}
|