@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,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-host rate policy for batched registry fetches.
|
|
3
|
+
*
|
|
4
|
+
* This is the single source of truth for the JS transport's concurrency and
|
|
5
|
+
* minimum-interval decisions. The numbers are shared with the Rust transport
|
|
6
|
+
* (`cdxgen-plugins-bin/thirdparty/cdxrs/src/fetch/rate.rs`); a change to one
|
|
7
|
+
* side must be reflected in the other, and `fetchRate.poku.js` pins them so a
|
|
8
|
+
* drift is visible.
|
|
9
|
+
*
|
|
10
|
+
* Why a per-host table rather than a single global interval: a single-registry
|
|
11
|
+
* project — which is to say, almost every npm project — has exactly one host,
|
|
12
|
+
* so a conservative per-host cap *is* the global cap. Applying crates.io's
|
|
13
|
+
* 250 ms to every host caps an npm run at 4 requests per second, which is
|
|
14
|
+
* slower than the serial JS path once connection reuse is taken into account.
|
|
15
|
+
* Hosts that publish a limit get an interval; hosts that do not are bounded by
|
|
16
|
+
* the per-host concurrency cap alone, and by whatever `Retry-After` they send.
|
|
17
|
+
*/
|
|
18
|
+
export type Credentials = ("anonymous" | "authenticated");
|
|
19
|
+
export type HostPolicy = {
|
|
20
|
+
/**
|
|
21
|
+
* Minimum gap between requests, in milliseconds.
|
|
22
|
+
*/
|
|
23
|
+
minInterval: number;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum requests in flight to this host.
|
|
26
|
+
*/
|
|
27
|
+
maxConcurrency: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Concurrency allowed for a host with no published limit. Registries that are
|
|
31
|
+
* CDN-fronted document store fronts (npm, PyPI, RubyGems, NuGet, pub.dev) sit
|
|
32
|
+
* here; the global cap is what bounds them.
|
|
33
|
+
*/
|
|
34
|
+
export declare const DEFAULT_HOST_CONCURRENCY = 16;
|
|
35
|
+
/**
|
|
36
|
+
* Global cap on in-flight requests across every host. Per-host caps cannot
|
|
37
|
+
* sum past this; a 16-way global batch saturates a large npm run without
|
|
38
|
+
* putting any single host above its published allowance.
|
|
39
|
+
*/
|
|
40
|
+
export declare const DEFAULT_GLOBAL_CONCURRENCY = 16;
|
|
41
|
+
/**
|
|
42
|
+
* Resolve the credential class for a host based on the environment.
|
|
43
|
+
*
|
|
44
|
+
* Only token presence is considered, never its value. A host we hold no token
|
|
45
|
+
* for keeps the anonymous budget even if some other host has one. Today only
|
|
46
|
+
* GitHub tokens are honoured, matching the Rust client.
|
|
47
|
+
*
|
|
48
|
+
* @param {string} host The hostname to classify.
|
|
49
|
+
* @returns {Credentials}
|
|
50
|
+
*/
|
|
51
|
+
export declare function credentialsFor(host: string): Credentials;
|
|
52
|
+
/**
|
|
53
|
+
* Resolve the published policy for a host, or the CDN default.
|
|
54
|
+
*
|
|
55
|
+
* @param {string} host The hostname.
|
|
56
|
+
* @param {Credentials} [credentials] Credential class; defaults to what the
|
|
57
|
+
* environment would actually send to this host.
|
|
58
|
+
* @returns {HostPolicy}
|
|
59
|
+
*/
|
|
60
|
+
export declare function policyFor(host: string, credentials?: Credentials): HostPolicy;
|
|
61
|
+
/**
|
|
62
|
+
* The table of published policies, exposed for the parity test. The shape is
|
|
63
|
+
* stable: changing an entry is a policy change that must be mirrored in
|
|
64
|
+
* `rate.rs`.
|
|
65
|
+
*/
|
|
66
|
+
export declare const PUBLISHED_HOST_POLICIES: {
|
|
67
|
+
host: string;
|
|
68
|
+
anonInterval: number;
|
|
69
|
+
anonConcurrency: number;
|
|
70
|
+
authInterval: number;
|
|
71
|
+
authConcurrency: number;
|
|
72
|
+
}[];
|
|
73
|
+
/**
|
|
74
|
+
* Create a minimum-interval gate for one host.
|
|
75
|
+
*
|
|
76
|
+
* `wait()` queues the caller so that successive calls are at least
|
|
77
|
+
* `minInterval` apart. `externalDelay()` pushes the gate out by a server-side
|
|
78
|
+
* back-off (`Retry-After`, `X-RateLimit-Reset`) and is counted.
|
|
79
|
+
*/
|
|
80
|
+
export declare class RateLimiter {
|
|
81
|
+
_minInterval: number;
|
|
82
|
+
_nextAvailable: number;
|
|
83
|
+
_externalDelays: number;
|
|
84
|
+
/**
|
|
85
|
+
* @param {number} minInterval Minimum gap between requests, in milliseconds.
|
|
86
|
+
*/
|
|
87
|
+
constructor(minInterval: number);
|
|
88
|
+
/**
|
|
89
|
+
* Wait until this host's gate opens, then reserve the next slot. Callers
|
|
90
|
+
* that arrive while the gate is closed queue up rather than all being
|
|
91
|
+
* released together.
|
|
92
|
+
*
|
|
93
|
+
* @returns {Promise<void>}
|
|
94
|
+
*/
|
|
95
|
+
wait(): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Record a server-imposed delay and push the gate out to at least now plus
|
|
98
|
+
* the delay. The caller is still responsible for actually waiting before it
|
|
99
|
+
* retries; recording alone does not sleep.
|
|
100
|
+
*
|
|
101
|
+
* @param {number} delayMs Delay in milliseconds.
|
|
102
|
+
*/
|
|
103
|
+
externalDelay(delayMs: number): void;
|
|
104
|
+
/** @returns {number} How many times this host asked us to slow down. */
|
|
105
|
+
get externalDelayCount(): number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Create a counting semaphore with a FIFO wait queue. Used both for the global
|
|
109
|
+
* concurrency cap and the per-host cap.
|
|
110
|
+
*
|
|
111
|
+
* @param {number} limit Maximum simultaneous holders.
|
|
112
|
+
* @returns {{acquire: () => Promise<() => void>}} An `acquire` function that
|
|
113
|
+
* resolves once a slot is free, with a `release` function as its value.
|
|
114
|
+
*/
|
|
115
|
+
export declare function makeSemaphore(limit: number): {
|
|
116
|
+
acquire: () => Promise<() => void>;
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=fetchRate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchRate.d.ts","sourceRoot":"","sources":["../../../lib/inventory/fetchRate.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYA,YAAyC,WAAW,GAA1C,CAAC,WAAW,GAAC,eAAe,CAAC,CAAa;AAOpD,YAAkB,UAAU,GAC5B;;;;IAAmB,WAAW,EAAnB,MAAM,CACjB;;;;IAAmB,cAAc,EAAtB,MAAM,CACnB;CAAA,CAAA;AAsDD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAHxB,MAGwB,GAFtB,WAAW,CAYvB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,IAAI,EALnB,MAKmB,EAAE,WAAW,AAJxC,CAEA,EAFQ,WAIgC,GAF9B,UAAU,CAuBtB;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;GAEjC,CAAC;AAEJ;;;;;;GAMG;AACH,qBAAa,WAAW;IAKf,YAAY;IACZ,cAAc;IACd,eAAe;IANtB;;OAEG;IACH,YAAY,WAAW,EAFZ,MAEY,EAItB;IAED;;;;;;OAMG;IACG,IAAI,IAFG,OAAO,CAAC,IAAI,CAAC,CAYzB;IAED;;;;;;OAMG;IACH,aAAa,CAAC,OAAO,EAFV,MAEU,QAMpB;IAED,wEAAwE;IACxE,IAAI,kBAAkB,IADR,MAAM,CAGnB;CACF;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAJxB,MAIwB,GAHtB;IAAC,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,IAAI,CAAC,CAAA;CAAC,CAwBhD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a GitHub repository URL into its owner and repository name.
|
|
3
|
+
*
|
|
4
|
+
* Only accepts URLs where github.com is the actual host (rejecting spoofed
|
|
5
|
+
* hosts such as `https://evil.com/github.com/o/r`) and only git-safe path
|
|
6
|
+
* segments, so an untrusted remote URL cannot steer authenticated API requests.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} url The git origin url
|
|
9
|
+
* @returns {{owner: string, repo: string}|null} Object containing owner and repo, or null
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseGitHubUrl(url: string): {
|
|
12
|
+
owner: string;
|
|
13
|
+
repo: string;
|
|
14
|
+
} | null;
|
|
15
|
+
/**
|
|
16
|
+
* Parses GitLab repository origin URL to extract project path/ID.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} url The git origin url
|
|
19
|
+
* @returns {string|null} The project path (owner/repo) or null
|
|
20
|
+
*/
|
|
21
|
+
export declare function parseGitLabUrl(url: string): string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Enriches AI commits with details from GitHub or GitLab API if tokens are present.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} dir Root directory of the repository
|
|
26
|
+
* @param {Array<Object>} aiCommits List of AI commit objects
|
|
27
|
+
* @param {Object} options Options containing forgeToken or env context
|
|
28
|
+
* @returns {Promise<Object>} Object containing reviews list and authoritative flags
|
|
29
|
+
*/
|
|
30
|
+
export declare function enrichFromForge(dir: string, aiCommits: Array<Object>, options?: Object): Promise<Object>;
|
|
31
|
+
//# sourceMappingURL=forgeEnricher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeEnricher.d.ts","sourceRoot":"","sources":["../../../lib/inventory/forgeEnricher.js"],"names":[],"mappings":"AAiDA;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAHvB,MAGuB,GAFrB;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAAC,IAAI,CAa9C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAHvB,MAGuB,GAFrB,MAAM,GAAC,IAAI,CAWvB;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAL9B,MAK8B,EAAE,SAAS,EAJzC,KAAK,CAAC,MAAM,CAI6B,EAAE,OAAO,GAHlD,MAGuD,GAFrD,OAAO,CAAC,MAAM,CAAC,CA4M3B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register an external formulation parser.
|
|
3
|
+
*
|
|
4
|
+
* The parser is appended to the registry and will be invoked by
|
|
5
|
+
* {@link addFormulationSection} on the next call.
|
|
6
|
+
*
|
|
7
|
+
* @param {{ id: string, patterns: string[], parse: Function }} parser
|
|
8
|
+
*/
|
|
9
|
+
export declare function registerParser(parser: {
|
|
10
|
+
id: string;
|
|
11
|
+
patterns: string[];
|
|
12
|
+
parse: Function;
|
|
13
|
+
}): void;
|
|
14
|
+
/**
|
|
15
|
+
* Return a shallow copy of the currently registered parsers.
|
|
16
|
+
*
|
|
17
|
+
* @returns {Array<{ id: string, patterns: string[], parse: Function }>}
|
|
18
|
+
*/
|
|
19
|
+
export declare function getParsers(): Array<{
|
|
20
|
+
id: string;
|
|
21
|
+
patterns: string[];
|
|
22
|
+
parse: Function;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Build the formulation section for a CycloneDX BOM.
|
|
26
|
+
*
|
|
27
|
+
* This function is the top-level aggregator: it collects git metadata,
|
|
28
|
+
* invokes every registered CI parser, and merges the results into a single
|
|
29
|
+
* CycloneDX formulation entry.
|
|
30
|
+
*
|
|
31
|
+
* The function falls back to a minimal stub workflow when no CI config files
|
|
32
|
+
* are detected at the given path.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} filePath File path
|
|
35
|
+
* @param {Object} options CLI options; `options.path` is used as the
|
|
36
|
+
* project root for file discovery.
|
|
37
|
+
* @param {Object} [context={}] Optional context object. If it contains a
|
|
38
|
+
* non-empty `formulationList` array those
|
|
39
|
+
* components are merged into the result.
|
|
40
|
+
*
|
|
41
|
+
* @returns {{ formulation: Object[], dependencies: Object[] }}
|
|
42
|
+
* `formulation` – array to be placed at `bomJson.formulation`
|
|
43
|
+
* `dependencies` – dependency objects to be merged into
|
|
44
|
+
* `bomJson.dependencies` via `mergeDependencies`
|
|
45
|
+
*/
|
|
46
|
+
export declare function addFormulationSection(filePath: string, options: Object, context?: Object): {
|
|
47
|
+
formulation: Object[];
|
|
48
|
+
dependencies: Object[];
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=formulationParsers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formulationParsers.d.ts","sourceRoot":"","sources":["../../../lib/inventory/formulationParsers.js"],"names":[],"mappings":"AA0GA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAF1B;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,WAAU;CAEvB,QAkBpC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAFb,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,WAAU;CAAE,CAAC,CAItE;AAgDD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAZnC,MAYmC,EAAE,OAAO,EAX5C,MAW4C,EAAE,OAAO,AAT7D,CAIA,EAJQ,MAS0D,GALxD;IAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAuN7D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Look up GTFOBins metadata for a binary, falling back to its linked (symlink) name.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} name Binary name to look up
|
|
5
|
+
* @param {string} [linkedName] Optional symlinked/linked binary name used as a fallback match
|
|
6
|
+
* @returns {Object|undefined} Metadata with canonicalName, contexts, functions, mitreTechniques,
|
|
7
|
+
* privilegedContexts, reference, riskTags, and source details, or undefined when unmatched
|
|
8
|
+
*/
|
|
9
|
+
export declare function getGtfoBinsMetadata(name: string, linkedName?: string): Object | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Build `cdx:gtfobins:*` custom properties for a binary matched against the
|
|
12
|
+
* GTFOBins index.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} name Binary name to look up
|
|
15
|
+
* @param {string} [linkedName] Optional symlinked/linked binary name used as a fallback match
|
|
16
|
+
* @returns {Object[]} CycloneDX custom properties; empty when the binary is not matched
|
|
17
|
+
*/
|
|
18
|
+
export declare function createGtfoBinsProperties(name: string, linkedName?: string): Object[];
|
|
19
|
+
/**
|
|
20
|
+
* Resolve GTFOBins properties for a live Linux osquery row.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} queryCategory Osquery query category
|
|
23
|
+
* @param {object} row Osquery row
|
|
24
|
+
* @returns {Array<object>} CycloneDX custom properties
|
|
25
|
+
*/
|
|
26
|
+
export declare function createGtfoBinsPropertiesFromRow(queryCategory: string, row: object): Array<object>;
|
|
27
|
+
//# sourceMappingURL=gtfobins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gtfobins.d.ts","sourceRoot":"","sources":["../../../lib/inventory/gtfobins.js"],"names":[],"mappings":"AAwJA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAL7B,MAK6B,EAAE,UAAU,AAJjD,CACA,EADQ,MAIyC,GAHvC,MAAM,GAAC,SAAS,CAyC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,UAAU,AAHtD,CACA,EADQ,MAG8C,GAF5C,MAAM,EAAE,CAmCpB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,aAAa,EAJlD,MAIkD,EAAE,GAAG,EAHvD,MAGuD,GAFrD,KAAK,CAAC,MAAM,CAAC,CA0FzB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determine whether the supplied project types include HBOM.
|
|
3
|
+
*
|
|
4
|
+
* @param {string|string[]|undefined|null} projectTypes Project types.
|
|
5
|
+
* @returns {boolean} True when HBOM is requested.
|
|
6
|
+
*/
|
|
7
|
+
export declare function hasHbomProjectType(projectTypes: string | string[] | undefined | null): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Determine whether the supplied project types are exclusively HBOM-oriented.
|
|
10
|
+
*
|
|
11
|
+
* @param {string|string[]|undefined|null} projectTypes Project types.
|
|
12
|
+
* @returns {boolean} True when at least one project type is supplied and all are HBOM-oriented.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isHbomOnlyProjectTypes(projectTypes: string | string[] | undefined | null): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Reject mixed HBOM and non-HBOM project types.
|
|
17
|
+
*
|
|
18
|
+
* @param {string|string[]|undefined|null} projectTypes Project types.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ensureNoMixedHbomProjectTypes(projectTypes: string | string[] | undefined | null): void;
|
|
21
|
+
/**
|
|
22
|
+
* Ensure HBOM generation uses the supported CycloneDX version.
|
|
23
|
+
*
|
|
24
|
+
* @param {number|string|undefined|null} specVersion Requested spec version.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ensureSupportedHbomSpecVersion(specVersion: number | string | undefined | null): void;
|
|
27
|
+
/**
|
|
28
|
+
* Ensure merged HBOM + runtime collection has access to osquery.
|
|
29
|
+
*
|
|
30
|
+
* @param {object} [options={}] CLI options.
|
|
31
|
+
* @param {string} [commandName="hbom"] Invoked command name for tailored guidance.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ensureHbomRuntimeSupport(options?: object, commandName?: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Translate cdxgen CLI options to cdx-hbom collector options.
|
|
36
|
+
*
|
|
37
|
+
* @param {object} [options={}] CLI options.
|
|
38
|
+
* @returns {object} cdx-hbom collector options.
|
|
39
|
+
*/
|
|
40
|
+
export declare function normalizeHbomOptions(options?: object): object;
|
|
41
|
+
/**
|
|
42
|
+
* Recompute and attach `cdx:hbom:analysis:*` summary properties to an HBOM.
|
|
43
|
+
*
|
|
44
|
+
* Existing analysis properties are dropped and rebuilt from the BOM's
|
|
45
|
+
* `cdx:hbom:evidence:commandDiagnostic` payload.
|
|
46
|
+
*
|
|
47
|
+
* @param {Object} bomJson CycloneDX HBOM document
|
|
48
|
+
* @returns {Object} The same BOM with refreshed analysis properties
|
|
49
|
+
*/
|
|
50
|
+
export declare function addHbomAnalysisProperties(bomJson: Object): Object;
|
|
51
|
+
/**
|
|
52
|
+
* Generate an HBOM using the optional cdx-hbom package.
|
|
53
|
+
*
|
|
54
|
+
* @param {object} [options={}] CLI options.
|
|
55
|
+
* @returns {Promise<object>} CycloneDX HBOM document.
|
|
56
|
+
*/
|
|
57
|
+
export declare function createHbomDocument(options?: object): Promise<object>;
|
|
58
|
+
//# sourceMappingURL=hbom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hbom.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbom.js"],"names":[],"mappings":"AAwSA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAHpC,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAAC,IAGU,GAFlC,OAAO,CAMnB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAHxC,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAAC,IAGc,GAFtC,OAAO,CAUnB;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,YAAY,EAF/C,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAAC,IAEqB,QAgBzD;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,WAAW,EAF/C,MAAM,GAAC,MAAM,GAAC,SAAS,GAAC,IAEuB,QAOzD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,AAH7C,CACA,EADQ,MAG0C,EAAE,WAAW,AAF/D,CACF,EADU,MAEgE,QAmB1E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,AAHzC,CACA,EADQ,MAGsC,GAFpC,MAAM,CA2BlB;AA8GD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAHtC,MAGsC,GAFpC,MAAM,CA8HlB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,AAH7C,CACA,EADQ,MAG0C,GAFxC,OAAO,CAAC,MAAM,CAAC,CAiC3B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse command diagnostic values carried as `cdx:hbom:evidence:commandDiagnostic` properties.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} bomJson CycloneDX HBOM document
|
|
5
|
+
* @returns {Object[]} Parsed command diagnostic objects, skipping unparseable entries
|
|
6
|
+
*/
|
|
7
|
+
export declare function getHbomCommandDiagnostics(bomJson: Object): Object[];
|
|
8
|
+
/**
|
|
9
|
+
* Summarize HBOM command diagnostics by issue kind with counts and identifiers.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} bomJson CycloneDX HBOM document
|
|
12
|
+
* @returns {Object} Summary with per-issue counts, sorted command/id/hint lists, and a `requiresPrivilegedEnrichment` flag
|
|
13
|
+
*/
|
|
14
|
+
export declare function getHbomCommandDiagnosticSummary(bomJson: Object): Object;
|
|
15
|
+
/**
|
|
16
|
+
* Determine whether a BOM carries HBOM markers (`cdx:hbom:*` properties).
|
|
17
|
+
*
|
|
18
|
+
* @param {Object} bomJson CycloneDX BOM document
|
|
19
|
+
* @returns {boolean} `true` when the BOM looks like an HBOM
|
|
20
|
+
*/
|
|
21
|
+
export declare function isHbomLikeBom(bomJson: Object): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Return a component's `cdx:hbom:hardwareClass` property value.
|
|
24
|
+
*
|
|
25
|
+
* @param {Object} component CycloneDX component
|
|
26
|
+
* @returns {string|undefined} Hardware class value when present
|
|
27
|
+
*/
|
|
28
|
+
export declare function getHbomHardwareClass(component: Object): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Count components per `cdx:hbom:hardwareClass`, sorted by count descending.
|
|
31
|
+
*
|
|
32
|
+
* @param {Object[]} [components=[]] CycloneDX components
|
|
33
|
+
* @returns {{hardwareClass: string, count: number}[]} Sorted hardware class counts
|
|
34
|
+
*/
|
|
35
|
+
export declare function getHbomHardwareClassCounts(components?: Object[]): {
|
|
36
|
+
hardwareClass: string;
|
|
37
|
+
count: number;
|
|
38
|
+
}[];
|
|
39
|
+
/**
|
|
40
|
+
* Format the top hardware-class counts as a `class (count)` comma-separated string.
|
|
41
|
+
*
|
|
42
|
+
* @param {{hardwareClass: string, count: number}[]} [hardwareClassCounts=[]] Hardware class counts
|
|
43
|
+
* @returns {string} Summary string covering at most five entries
|
|
44
|
+
*/
|
|
45
|
+
export declare function formatHbomHardwareClassSummary(hardwareClassCounts?: {
|
|
46
|
+
hardwareClass: string;
|
|
47
|
+
count: number;
|
|
48
|
+
}[]): string;
|
|
49
|
+
/**
|
|
50
|
+
* Build an overall HBOM summary from metadata, components, evidence, and diagnostics.
|
|
51
|
+
*
|
|
52
|
+
* @param {Object} bomJson CycloneDX HBOM document
|
|
53
|
+
* @returns {Object} HBOM summary with collector profile, platform, architecture, hardware class counts, evidence counts, and command diagnostic details
|
|
54
|
+
*/
|
|
55
|
+
export declare function getHbomSummary(bomJson: Object): Object;
|
|
56
|
+
//# sourceMappingURL=hbomAnalysis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hbomAnalysis.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbomAnalysis.js"],"names":[],"mappings":"AAoDA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAHtC,MAGsC,GAFpC,MAAM,EAAE,CAMpB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAH5C,MAG4C,GAF1C,MAAM,CAuElB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAH1B,MAG0B,GAFxB,OAAO,CA6BnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAHnC,MAGmC,GAFjC,MAAM,GAAC,SAAS,CAI5B;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,AAHlD,CACA,EADQ,MAAM,EAGyC,GAF7C;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,EAAE,CAkBpD;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,mBAAmB,AAH/D,CACA,EADQ;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,EAGsB,GAF1D,MAAM,CAOlB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAH3B,MAG2B,GAFzB,MAAM,CAkFlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hbomLoader.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbomLoader.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,wBAAsB,gBAAgB,IAFzB,OAAO,CAAC,MAAM,CAAC,CAqB3B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determine whether a BOM is a merged HBOM+OBOM host view.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} bomJson CycloneDX BOM document
|
|
5
|
+
* @returns {boolean} `true` when the BOM declares the merged host-view mode or mixes HBOM components with osquery runtime components
|
|
6
|
+
*/
|
|
7
|
+
export declare function isMergedHostViewBom(bomJson: Object): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Extract `cdx:hostview:*` summary values from a host-view BOM.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} bomJson CycloneDX BOM document
|
|
12
|
+
* @returns {{linkedHardwareComponentCount: number, linkedRuntimeCategories: string[], mode: string|undefined, runtimeAnchorCount: number, runtimeComponentCount: number, topologyLinkCount: number}} Host view summary
|
|
13
|
+
*/
|
|
14
|
+
export declare function getHostViewSummary(bomJson: Object): {
|
|
15
|
+
linkedHardwareComponentCount: number;
|
|
16
|
+
linkedRuntimeCategories: string[];
|
|
17
|
+
mode: string | undefined;
|
|
18
|
+
runtimeAnchorCount: number;
|
|
19
|
+
runtimeComponentCount: number;
|
|
20
|
+
topologyLinkCount: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Annotate an HBOM with host-inventory topology links.
|
|
24
|
+
*
|
|
25
|
+
* Links osquery runtime components and host anchor components to hardware
|
|
26
|
+
* components through dependency edges and rebuilds the `cdx:hostview:*`
|
|
27
|
+
* summary properties.
|
|
28
|
+
*
|
|
29
|
+
* @param {Object} bomJson CycloneDX HBOM document
|
|
30
|
+
* @returns {Object} The annotated BOM, returned unchanged when the BOM is not HBOM-like
|
|
31
|
+
*/
|
|
32
|
+
export declare function applyHostInventoryTopology(bomJson: Object): Object;
|
|
33
|
+
/**
|
|
34
|
+
* Merge an HBOM with OBOM runtime data into a single host-view BOM.
|
|
35
|
+
*
|
|
36
|
+
* Combines components, dependencies, services, and metadata from both BOMs,
|
|
37
|
+
* then applies host-inventory topology annotations to the merged result.
|
|
38
|
+
*
|
|
39
|
+
* @param {Object} hbomJson CycloneDX HBOM document
|
|
40
|
+
* @param {{bomJson?: Object, parentComponent?: Object}} obomData OBOM result carrying its BOM document and optional parent component
|
|
41
|
+
* @returns {Object} Merged host-view BOM, or the HBOM alone when OBOM data is absent
|
|
42
|
+
*/
|
|
43
|
+
export declare function mergeHostInventoryBoms(hbomJson: Object, obomData: {
|
|
44
|
+
bomJson?: Object;
|
|
45
|
+
parentComponent?: Object;
|
|
46
|
+
}): Object;
|
|
47
|
+
//# sourceMappingURL=hostTopology.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostTopology.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hostTopology.js"],"names":[],"mappings":"AA2mBA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAHhC,MAGgC,GAF9B,OAAO,CAUnB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAH/B,MAG+B,GAF7B;IAAC,4BAA4B,EAAE,MAAM,CAAC;IAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,GAAC,SAAS,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAC,CA0BnM;AAYD;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAHvC,MAGuC,GAFrC,MAAM,CAiFlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAJpC,MAIoC,EAAE,QAAQ,EAH9C;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAGG,GAF5C,MAAM,CA0DlB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the value of a named CycloneDX property.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object[]|Object} propertiesOrObject Property array or an object with a `properties` array
|
|
5
|
+
* @param {string} propertyName Property name to look up
|
|
6
|
+
* @returns {string|undefined} First matching property value, or undefined when absent
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPropertyValue(propertiesOrObject: Object[] | Object, propertyName: string): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Filter components down to unpackaged executable file components.
|
|
11
|
+
*
|
|
12
|
+
* @param {Object[]} [components=[]] CycloneDX components
|
|
13
|
+
* @returns {Object[]} File components flagged `internal:is_executable=true`
|
|
14
|
+
*/
|
|
15
|
+
export declare function getUnpackagedExecutableComponents(components?: Object[]): Object[];
|
|
16
|
+
/**
|
|
17
|
+
* Filter components down to unpackaged shared-library file components.
|
|
18
|
+
*
|
|
19
|
+
* @param {Object[]} [components=[]] CycloneDX components
|
|
20
|
+
* @returns {Object[]} File components flagged `internal:is_shared_library=true`
|
|
21
|
+
*/
|
|
22
|
+
export declare function getUnpackagedSharedLibraryComponents(components?: Object[]): Object[];
|
|
23
|
+
/**
|
|
24
|
+
* Filter components down to source-derived (js-ast) cryptographic-asset components.
|
|
25
|
+
*
|
|
26
|
+
* @param {Object[]} [components=[]] CycloneDX components
|
|
27
|
+
* @returns {Object[]} Crypto assets whose `cdx:crypto:sourceType` starts with `js-ast:`
|
|
28
|
+
*/
|
|
29
|
+
export declare function getSourceDerivedCryptoComponents(components?: Object[]): Object[];
|
|
30
|
+
/**
|
|
31
|
+
* Compute counts and lists of unpackaged executables and shared libraries.
|
|
32
|
+
*
|
|
33
|
+
* @param {Object[]} [components=[]] CycloneDX components
|
|
34
|
+
* @returns {{unpackagedExecutables: Object[], unpackagedSharedLibraries: Object[], unpackagedExecutableCount: number, unpackagedSharedLibraryCount: number}} Container file inventory stats
|
|
35
|
+
*/
|
|
36
|
+
export declare function getContainerFileInventoryStats(components?: Object[]): {
|
|
37
|
+
unpackagedExecutables: Object[];
|
|
38
|
+
unpackagedSharedLibraries: Object[];
|
|
39
|
+
unpackagedExecutableCount: number;
|
|
40
|
+
unpackagedSharedLibraryCount: number;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=inventoryStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryStats.d.ts","sourceRoot":"","sources":["../../../lib/inventory/inventoryStats.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,kBAAkB,EAJxC,MAAM,EAAE,GAAC,MAI+B,EAAE,YAAY,EAHtD,MAGsD,GAFpD,MAAM,GAAC,SAAS,CAM5B;AAkBD;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,UAAU,AAHzD,CACA,EADQ,MAAM,EAGgD,GAFpD,MAAM,EAAE,CAQpB;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAAC,UAAU,AAH5D,CACA,EADQ,MAAM,EAGmD,GAFvD,MAAM,EAAE,CAQpB;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,AAHxD,CACA,EADQ,MAAM,EAG+C,GAFnD,MAAM,EAAE,CAUpB;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,AAHtD,CACA,EADQ,MAAM,EAG6C,GAFjD;IAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,CAAC;IAAC,4BAA4B,EAAE,MAAM,CAAA;CAAC,CAY3J"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strip line (`//`) and block comments from JSON-like text without altering
|
|
3
|
+
* string literals.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} raw Raw JSON-like text
|
|
6
|
+
* @returns {string} Text with comments removed
|
|
7
|
+
*/
|
|
8
|
+
export declare function stripJsonComments(raw: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Remove trailing commas before `}` or `]` without altering string literals.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} raw Raw JSON-like text
|
|
13
|
+
* @returns {string} Text with trailing commas removed
|
|
14
|
+
*/
|
|
15
|
+
export declare function stripJsonTrailingCommas(raw: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Parse JSONC/JSON5-like text (comments and trailing commas allowed) into a value.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} raw Raw JSON-like text
|
|
20
|
+
* @returns {*} Parsed value; throws when the normalized text is not valid JSON
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseJsonLike(raw: string): any;
|
|
23
|
+
//# sourceMappingURL=jsonLike.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonLike.d.ts","sourceRoot":"","sources":["../../../lib/inventory/jsonLike.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAH1B,MAG0B,GAFxB,MAAM,CA8ClB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAHhC,MAGgC,GAF9B,MAAM,CAkClB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAHtB,MAGsB,GAFpB,GAAC,CAIb"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { parseSpdxExpression } from "./spdxExpression.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parses a compliance policy file.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} policyPath Path to policy file
|
|
6
|
+
* @returns {object|null} Parsed policy object
|
|
7
|
+
*/
|
|
8
|
+
export declare function loadPolicy(policyPath: string): object | null;
|
|
9
|
+
export { parseSpdxExpression };
|
|
10
|
+
/**
|
|
11
|
+
* Resolves a raw license ID or expression to a CycloneDX license object shape.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} raw Raw license string
|
|
14
|
+
* @param {object} opts Options
|
|
15
|
+
* @returns {object|null} Resolved license object: { id } or { expression } or { name }
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveLicenseId(raw: string, opts?: object): object | null;
|
|
18
|
+
/**
|
|
19
|
+
* Upgrades deprecated SPDX license identifiers or expressions.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} idOrExpr License ID or expression
|
|
22
|
+
* @returns {string} Upgraded identifier or expression
|
|
23
|
+
*/
|
|
24
|
+
export declare function upgradeDeprecated(idOrExpr: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Normalizes a single CycloneDX license object or string.
|
|
27
|
+
*
|
|
28
|
+
* @param {object|string} license License object or string
|
|
29
|
+
* @param {object} opts Options
|
|
30
|
+
* @returns {object} Normalized license object
|
|
31
|
+
*/
|
|
32
|
+
export declare function normalizeLicense(license: object | string, opts?: object): object;
|
|
33
|
+
/**
|
|
34
|
+
* Normalizes and deduplicates a component's licenses array.
|
|
35
|
+
*
|
|
36
|
+
* @param {object} component CycloneDX Component
|
|
37
|
+
* @param {object} opts Options
|
|
38
|
+
* @returns {object} Modified component
|
|
39
|
+
*/
|
|
40
|
+
export declare function enhanceComponentLicenses(component: object, opts?: object): object;
|
|
41
|
+
/**
|
|
42
|
+
* Opt-in: enriches a license object with metadata properties and compliance policy.
|
|
43
|
+
*
|
|
44
|
+
* @param {object} licenseWrapper License wrapper object
|
|
45
|
+
* @param {object} policy Compliance policy
|
|
46
|
+
* @param {object} opts Options
|
|
47
|
+
* @returns {object} Enriched license wrapper
|
|
48
|
+
*/
|
|
49
|
+
export declare function enrichLicenseMetadata(licenseWrapper: object, policy: object, _opts?: {}): object;
|
|
50
|
+
/**
|
|
51
|
+
* Walks a whole BOM and enhances all metadata and component licenses.
|
|
52
|
+
*
|
|
53
|
+
* @param {object} bom CycloneDX BOM JSON Object
|
|
54
|
+
* @param {object} opts Options
|
|
55
|
+
* @returns {object} Enhanced BOM
|
|
56
|
+
*/
|
|
57
|
+
export declare function enhanceBom(bom: object, opts?: object): object;
|
|
58
|
+
/**
|
|
59
|
+
* Walks every component license in a BOM and returns the entries that violate
|
|
60
|
+
* the supplied compliance policy (alert `error`, or `warning` when
|
|
61
|
+
* `includeWarnings` is set). Recurses into nested components and the metadata
|
|
62
|
+
* component.
|
|
63
|
+
*
|
|
64
|
+
* @param {object} bom CycloneDX BOM
|
|
65
|
+
* @param {object} policy Parsed policy object (see loadPolicy)
|
|
66
|
+
* @param {object} [opts] { includeWarnings?: boolean }
|
|
67
|
+
* @returns {object[]} Violations: { ref, name, version, license, category, alert }
|
|
68
|
+
*/
|
|
69
|
+
export declare function collectPolicyViolations(bom: object, policy: object, opts?: object): object[];
|
|
70
|
+
//# sourceMappingURL=licenseEnhancer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"licenseEnhancer.d.ts","sourceRoot":"","sources":["../../../lib/inventory/licenseEnhancer.js"],"names":[],"mappings":"AAOA,OAAO,EAIL,mBAAmB,EAIpB,MAAM,qBAAqB,CAAC;AAkF7B;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAH1B,MAG0B,GAFxB,MAAM,GAAC,IAAI,CAavB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAJzB,MAIyB,EAAE,IAAI,GAH/B,MAGoC,GAFlC,MAAM,GAAC,IAAI,CAwFvB;AAgBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,MAAM,CA8BlB;AA0DD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAJ7B,MAAM,GAAC,MAIsB,EAAE,IAAI,GAHnC,MAGwC,GAFtC,MAAM,CAqFlB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAJvC,MAIuC,EAAE,IAAI,GAH7C,MAGkD,GAFhD,MAAM,CA4ClB;AAoGD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,cAAc,EALzC,MAKyC,EAAE,MAAM,EAJjD,MAIiD,EAAE,KAAK,KAAK,GAF3D,MAAM,CAyElB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAJnB,MAImB,EAAE,IAAI,GAHzB,MAG8B,GAF5B,MAAM,CAgDlB;AA4KD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EALhC,MAKgC,EAAE,MAAM,EAJxC,MAIwC,EAAE,IAAI,AAHtD,CACA,EADQ,MAGmD,GAFjD,MAAM,EAAE,CA0CpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve LOLBAS metadata for a binary or script name.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} candidate Binary or script path/name
|
|
5
|
+
* @returns {object|undefined} Matched LOLBAS metadata
|
|
6
|
+
*/
|
|
7
|
+
export declare function getLolbasMetadata(candidate: string): object | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Resolve LOLBAS properties for an osquery row.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} queryCategory Osquery query category
|
|
12
|
+
* @param {object} row Osquery row
|
|
13
|
+
* @returns {Array<object>} CycloneDX custom properties
|
|
14
|
+
*/
|
|
15
|
+
export declare function createLolbasProperties(queryCategory: string, row: object): Array<object>;
|
|
16
|
+
//# sourceMappingURL=lolbas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lolbas.d.ts","sourceRoot":"","sources":["../../../lib/inventory/lolbas.js"],"names":[],"mappings":"AA2JA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAHhC,MAGgC,GAF9B,MAAM,GAAC,SAAS,CAqB5B;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAJzC,MAIyC,EAAE,GAAG,EAH9C,MAG8C,GAF5C,KAAK,CAAC,MAAM,CAAC,CAiGzB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classify a package/component/import reference as MCP-related.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object|string} ref Package/component reference or import source
|
|
5
|
+
* @returns {{
|
|
6
|
+
* isMcp: boolean,
|
|
7
|
+
* isOfficial: boolean,
|
|
8
|
+
* isKnownIntegration: boolean,
|
|
9
|
+
* role: string | undefined,
|
|
10
|
+
* catalogSource: string | undefined,
|
|
11
|
+
* packageName: string
|
|
12
|
+
* }}
|
|
13
|
+
*/
|
|
14
|
+
export declare function classifyMcpReference(ref: Object | string): {
|
|
15
|
+
isMcp: boolean;
|
|
16
|
+
isOfficial: boolean;
|
|
17
|
+
isKnownIntegration: boolean;
|
|
18
|
+
role: string | undefined;
|
|
19
|
+
catalogSource: string | undefined;
|
|
20
|
+
packageName: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Add MCP catalog metadata to a CycloneDX component.
|
|
24
|
+
*
|
|
25
|
+
* @param {Object} component CycloneDX component
|
|
26
|
+
* @returns {Object} Same component reference
|
|
27
|
+
*/
|
|
28
|
+
export declare function enrichComponentWithMcpMetadata(component: Object): Object;
|
|
29
|
+
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../lib/inventory/mcp.js"],"names":[],"mappings":"AAsFA;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAV7B,MAAM,GAAC,MAUsB,GAT3B;IACR,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,WAAW,EAAE,MAAM,CAAA;CACpB,CA8EH;AAYD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAH7C,MAG6C,GAF3C,MAAM,CA6DlB"}
|