@cdxgen/cdxgen 13.5.0 → 13.7.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 +17 -10
- package/bin/audit.js +7 -4
- package/bin/cdxgen.js +260 -37
- package/bin/convert.js +146 -22
- package/bin/evinse.js +28 -3
- package/bin/repl.js +47 -3
- package/bin/sign.js +211 -34
- package/bin/tracebom.js +18 -6
- package/bin/validate.js +24 -3
- package/bin/verify.js +113 -5
- package/data/behavior-taxonomy.schema.json +1491 -0
- package/data/cyclonedx-2.0-bundled.schema.json +18606 -5528
- package/data/cyclonedx-2.0-cryptography-defs.schema.json +857 -0
- package/data/license-aliases.json +24 -2
- package/data/pqc-migration.json +239 -0
- package/data/remediations.json +176 -0
- package/data/rules/ai-bom.yaml +1 -1
- package/data/rules/brotli-decoder.yaml +107 -0
- package/data/rules/cbom-security.yaml +4 -3
- package/data/rules/package-integrity.yaml +28 -0
- package/data/rules/vscode-extensions.yaml +75 -0
- package/data/spdx-license-list.json +121 -7
- package/data/spdx-licenses.json +69 -0
- package/data/spdx.schema.json +845 -2
- package/lib/audit/index.js +25 -3
- package/lib/cli/bomAssembly.js +172 -4
- package/lib/cli/cliOptions.js +121 -17
- package/lib/cli/index.js +720 -902
- package/lib/cli/jsBom.js +156 -64
- package/lib/cli/jvmBom.js +602 -86
- package/lib/cli/managedBom.js +161 -19
- package/lib/cli/nativeBom.js +52 -5
- package/lib/core/boundedFile.js +344 -0
- package/lib/core/brotliProbe.js +182 -0
- package/lib/core/env.js +34 -0
- package/lib/core/fs.js +138 -3
- package/lib/core/globPatterns.js +218 -0
- package/lib/core/httpClient.js +98 -1
- package/lib/core/lockPaths.js +38 -0
- package/lib/core/paths.js +24 -1
- package/lib/core/processTree.js +100 -8
- package/lib/core/projectConfig.js +332 -25
- package/lib/core/toolRegistry.js +184 -0
- package/lib/ecosystems/cppEvidence.js +263 -106
- package/lib/ecosystems/cppIncludeResolver.js +16 -5
- package/lib/ecosystems/denoutils.js +2 -2
- package/lib/ecosystems/ecosystems.js +25 -10
- package/lib/ecosystems/gemHostProbe.js +301 -0
- package/lib/ecosystems/golem.js +3 -8
- package/lib/ecosystems/gradleutils.js +1909 -229
- package/lib/ecosystems/jsEvidence.js +90 -38
- package/lib/ecosystems/kosi.js +3 -5
- package/lib/ecosystems/npmVersionResolution.js +376 -0
- package/lib/ecosystems/parsers-bazel.js +107 -6
- package/lib/ecosystems/parsers-js.js +505 -22
- package/lib/ecosystems/parsers-misc.js +209 -20
- package/lib/ecosystems/parsers-python.js +178 -30
- package/lib/ecosystems/parsers-rust.js +117 -15
- package/lib/ecosystems/pythonutils.js +128 -2
- package/lib/ecosystems/remote/huggingface.js +22 -0
- package/lib/ecosystems/rubyutils.js +538 -31
- package/lib/ecosystems/rusi.js +2 -4
- package/lib/ecosystems/scalacliutils.js +2 -0
- package/lib/ecosystems/scalasem.js +798 -152
- package/lib/ecosystems/vendoredCode.js +237 -3
- package/lib/ecosystems/venvProbe.js +360 -0
- package/lib/evinser/evinser.js +536 -71
- package/lib/evinser/scalasem.js +5 -1
- package/lib/helpers/agenticToolutils.js +525 -94
- package/lib/helpers/bomSigner.js +43 -9
- package/lib/helpers/jssSigner.js +1276 -0
- package/lib/helpers/vsixutils.js +1574 -315
- package/lib/inventory/agentBlueprint.js +193 -0
- package/lib/inventory/agentToolNames.js +145 -0
- package/lib/inventory/aiCollector.js +153 -7
- package/lib/inventory/aiInventory.js +44 -8
- package/lib/inventory/aiProviders.js +324 -0
- package/lib/inventory/atomUtils.js +77 -0
- package/lib/inventory/bomUtils.js +8 -1
- package/lib/inventory/brotliDecoder.js +142 -0
- package/lib/inventory/buildToolRateLimit.js +1 -1
- package/lib/inventory/cbomutils.js +56 -7
- package/lib/inventory/ciParsers/githubActionsLock.js +821 -0
- package/lib/inventory/citations.js +31 -2
- package/lib/inventory/communityAiConfigParser.js +978 -80
- package/lib/inventory/cyclonedx20.js +152 -0
- package/lib/inventory/cyclonedx20Common.js +286 -0
- package/lib/inventory/cyclonedx20Derived.js +159 -0
- package/lib/inventory/cyclonedx20Parties.js +552 -0
- package/lib/inventory/cyclonedx20Read.js +768 -0
- package/lib/inventory/cyclonedx20ReadCommon.js +374 -0
- package/lib/inventory/cyclonedx20ReadComponents.js +692 -0
- package/lib/inventory/cyclonedx20ReadContext.js +380 -0
- package/lib/inventory/cyclonedx20ReadEvidence.js +466 -0
- package/lib/inventory/cyclonedx20ReadSections.js +599 -0
- package/lib/inventory/cyclonedx20Render.js +766 -0
- package/lib/inventory/cyclonedx20RenderComponents.js +716 -0
- package/lib/inventory/cyclonedx20RenderDefinitions.js +405 -0
- package/lib/inventory/cyclonedx20RenderEvidence.js +726 -0
- package/lib/inventory/cyclonedx20RenderHardware.js +203 -0
- package/lib/inventory/cyclonedx20RenderPatents.js +174 -0
- package/lib/inventory/cyclonedx20RenderRefIds.js +314 -0
- package/lib/inventory/cyclonedx20RenderSections.js +499 -0
- package/lib/inventory/cyclonedx20Tables.js +594 -0
- package/lib/inventory/deps.js +141 -13
- package/lib/inventory/dosai.js +375 -6
- package/lib/inventory/dosaiParsers.js +3 -6
- package/lib/inventory/dotnetRuntime.js +367 -0
- package/lib/inventory/ecosystemFormulationParsers.js +979 -0
- package/lib/inventory/envcontext.js +436 -48
- package/lib/inventory/evidenceUtils.js +13 -1
- package/lib/inventory/fetchBatch.js +1 -1
- package/lib/inventory/formulationParsers.js +124 -14
- package/lib/inventory/gtfobins.js +13 -0
- package/lib/inventory/hbom.js +45 -6
- package/lib/inventory/hbomLoader.js +166 -0
- package/lib/inventory/hostRuntimeProbe.js +686 -0
- package/lib/inventory/jvmLocalRepos.js +9 -2
- package/lib/inventory/jvmToolEnv.js +29 -0
- package/lib/inventory/licenseEnhancer.js +12 -0
- package/lib/inventory/mavenCentralMirror.js +534 -0
- package/lib/inventory/mcpConfigParser.js +5 -0
- package/lib/inventory/nodeBuildInfo.js +218 -0
- package/lib/inventory/nodeHostProbe.js +202 -0
- package/lib/inventory/occurrenceKey.js +90 -0
- package/lib/inventory/osPackageResolver.js +182 -0
- package/lib/inventory/phpBuildInfo.js +10 -59
- package/lib/inventory/phpHostProbe.js +32 -488
- package/lib/inventory/pqcMigration.js +426 -0
- package/lib/inventory/rubyBuildInfo.js +972 -0
- package/lib/inventory/rubyHostProbe.js +218 -0
- package/lib/inventory/rustFormulationParser.js +21 -10
- package/lib/inventory/scalaCoords.js +4 -3
- package/lib/inventory/scalaDedupe.js +440 -0
- package/lib/inventory/source.js +114 -8
- package/lib/managers/binary.js +337 -3
- package/lib/managers/docker.js +79 -0
- package/lib/parsers/huggingfaceManifest.js +9 -1
- package/lib/parsers/huggingfaceUtils.js +18 -0
- package/lib/parsers/kiroPermissions.js +166 -0
- package/lib/parsers/largeJson.js +28 -11
- package/lib/parsers/vscodeExtensionId.js +183 -0
- package/lib/server/server.js +48 -35
- package/lib/stages/postgen/postgen.js +41 -1
- package/lib/stages/postgen/ruleEngine.js +13 -5
- package/lib/stages/postgen/specVersionCompat.js +76 -0
- package/lib/stages/pregen/envAudit.js +1 -0
- package/lib/stages/pregen/pregen.js +114 -57
- package/lib/validator/bomValidator.js +14 -2
- package/lib/validator/complianceEngine.js +30 -3
- package/lib/validator/complianceRules.js +1416 -4
- package/lib/validator/generated/validate-1.6.mjs +1 -1
- package/lib/validator/generated/validate-1.7.mjs +1 -1
- package/lib/validator/generated/validate-2.0.mjs +57554 -13851
- package/lib/validator/index.js +49 -8
- package/lib/validator/reporters/json.js +6 -0
- package/package.json +11 -10
- package/types/bin/repl.d.ts.map +1 -1
- package/types/lib/audit/index.d.ts +6 -2
- package/types/lib/audit/index.d.ts.map +1 -1
- package/types/lib/cli/bomAssembly.d.ts +29 -1
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +6 -0
- package/types/lib/cli/cliOptions.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/cli/jsBom.d.ts +3 -18
- package/types/lib/cli/jsBom.d.ts.map +1 -1
- package/types/lib/cli/jvmBom.d.ts +15 -0
- package/types/lib/cli/jvmBom.d.ts.map +1 -1
- package/types/lib/cli/managedBom.d.ts.map +1 -1
- package/types/lib/cli/nativeBom.d.ts.map +1 -1
- package/types/lib/core/boundedFile.d.ts +100 -0
- package/types/lib/core/boundedFile.d.ts.map +1 -0
- package/types/lib/core/brotliProbe.d.ts +37 -0
- package/types/lib/core/brotliProbe.d.ts.map +1 -0
- package/types/lib/core/env.d.ts +14 -0
- package/types/lib/core/env.d.ts.map +1 -1
- package/types/lib/core/fs.d.ts +4 -0
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/globPatterns.d.ts +70 -0
- package/types/lib/core/globPatterns.d.ts.map +1 -0
- package/types/lib/core/httpClient.d.ts +24 -0
- package/types/lib/core/httpClient.d.ts.map +1 -1
- package/types/lib/core/lockPaths.d.ts +19 -0
- package/types/lib/core/lockPaths.d.ts.map +1 -0
- package/types/lib/core/paths.d.ts +9 -0
- package/types/lib/core/paths.d.ts.map +1 -1
- package/types/lib/core/processTree.d.ts +17 -4
- package/types/lib/core/processTree.d.ts.map +1 -1
- package/types/lib/core/projectConfig.d.ts +47 -8
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/core/toolRegistry.d.ts +36 -0
- package/types/lib/core/toolRegistry.d.ts.map +1 -0
- package/types/lib/ecosystems/cppEvidence.d.ts +40 -13
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/cppIncludeResolver.d.ts +2 -1
- package/types/lib/ecosystems/cppIncludeResolver.d.ts.map +1 -1
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
- package/types/lib/ecosystems/gemHostProbe.d.ts +28 -0
- package/types/lib/ecosystems/gemHostProbe.d.ts.map +1 -0
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +294 -20
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/jsEvidence.d.ts +14 -1
- package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/kosi.d.ts.map +1 -1
- package/types/lib/ecosystems/npmVersionResolution.d.ts +119 -0
- package/types/lib/ecosystems/npmVersionResolution.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-bazel.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-js.d.ts +17 -20
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +19 -0
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts +10 -0
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +19 -1
- package/types/lib/ecosystems/pythonutils.d.ts.map +1 -1
- package/types/lib/ecosystems/remote/huggingface.d.ts.map +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts +144 -12
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/ecosystems/scalacliutils.d.ts.map +1 -1
- package/types/lib/ecosystems/scalasem.d.ts +58 -16
- package/types/lib/ecosystems/scalasem.d.ts.map +1 -1
- package/types/lib/ecosystems/vendoredCode.d.ts +26 -0
- package/types/lib/ecosystems/vendoredCode.d.ts.map +1 -1
- package/types/lib/ecosystems/venvProbe.d.ts +40 -0
- package/types/lib/ecosystems/venvProbe.d.ts.map +1 -0
- package/types/lib/evinser/evinser.d.ts +120 -13
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/scalasem.d.ts.map +1 -1
- package/types/lib/helpers/agenticToolutils.d.ts +53 -19
- package/types/lib/helpers/agenticToolutils.d.ts.map +1 -1
- package/types/lib/helpers/bomSigner.d.ts +20 -3
- package/types/lib/helpers/bomSigner.d.ts.map +1 -1
- package/types/lib/helpers/jssSigner.d.ts +288 -0
- package/types/lib/helpers/jssSigner.d.ts.map +1 -0
- package/types/lib/helpers/vsixutils.d.ts +303 -19
- package/types/lib/helpers/vsixutils.d.ts.map +1 -1
- package/types/lib/inventory/agentBlueprint.d.ts +70 -0
- package/types/lib/inventory/agentBlueprint.d.ts.map +1 -0
- package/types/lib/inventory/agentToolNames.d.ts +51 -0
- package/types/lib/inventory/agentToolNames.d.ts.map +1 -0
- package/types/lib/inventory/aiCollector.d.ts.map +1 -1
- package/types/lib/inventory/aiInventory.d.ts.map +1 -1
- package/types/lib/inventory/aiProviders.d.ts +85 -0
- package/types/lib/inventory/aiProviders.d.ts.map +1 -0
- package/types/lib/inventory/atomUtils.d.ts +19 -0
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/bomUtils.d.ts.map +1 -1
- package/types/lib/inventory/brotliDecoder.d.ts +58 -0
- package/types/lib/inventory/brotliDecoder.d.ts.map +1 -0
- package/types/lib/inventory/cbomutils.d.ts +17 -0
- package/types/lib/inventory/cbomutils.d.ts.map +1 -1
- package/types/lib/inventory/ciParsers/githubActionsLock.d.ts +101 -0
- package/types/lib/inventory/ciParsers/githubActionsLock.d.ts.map +1 -0
- package/types/lib/inventory/citations.d.ts +5 -0
- package/types/lib/inventory/citations.d.ts.map +1 -1
- package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/cyclonedx20.d.ts +99 -0
- package/types/lib/inventory/cyclonedx20.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20Common.d.ts +102 -0
- package/types/lib/inventory/cyclonedx20Common.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20Derived.d.ts +74 -0
- package/types/lib/inventory/cyclonedx20Derived.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20Parties.d.ts +91 -0
- package/types/lib/inventory/cyclonedx20Parties.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20Read.d.ts +51 -0
- package/types/lib/inventory/cyclonedx20Read.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20ReadCommon.d.ts +69 -0
- package/types/lib/inventory/cyclonedx20ReadCommon.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20ReadComponents.d.ts +77 -0
- package/types/lib/inventory/cyclonedx20ReadComponents.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20ReadContext.d.ts +118 -0
- package/types/lib/inventory/cyclonedx20ReadContext.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20ReadEvidence.d.ts +40 -0
- package/types/lib/inventory/cyclonedx20ReadEvidence.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20ReadSections.d.ts +45 -0
- package/types/lib/inventory/cyclonedx20ReadSections.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20Render.d.ts +53 -0
- package/types/lib/inventory/cyclonedx20Render.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderComponents.d.ts +73 -0
- package/types/lib/inventory/cyclonedx20RenderComponents.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderDefinitions.d.ts +29 -0
- package/types/lib/inventory/cyclonedx20RenderDefinitions.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderEvidence.d.ts +110 -0
- package/types/lib/inventory/cyclonedx20RenderEvidence.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderHardware.d.ts +42 -0
- package/types/lib/inventory/cyclonedx20RenderHardware.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderPatents.d.ts +26 -0
- package/types/lib/inventory/cyclonedx20RenderPatents.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderRefIds.d.ts +55 -0
- package/types/lib/inventory/cyclonedx20RenderRefIds.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20RenderSections.d.ts +45 -0
- package/types/lib/inventory/cyclonedx20RenderSections.d.ts.map +1 -0
- package/types/lib/inventory/cyclonedx20Tables.d.ts +134 -0
- package/types/lib/inventory/cyclonedx20Tables.d.ts.map +1 -0
- package/types/lib/inventory/deps.d.ts +35 -2
- package/types/lib/inventory/deps.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +36 -1
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dosaiParsers.d.ts.map +1 -1
- package/types/lib/inventory/dotnetRuntime.d.ts +91 -0
- package/types/lib/inventory/dotnetRuntime.d.ts.map +1 -0
- package/types/lib/inventory/ecosystemFormulationParsers.d.ts +73 -0
- package/types/lib/inventory/ecosystemFormulationParsers.d.ts.map +1 -0
- package/types/lib/inventory/envcontext.d.ts +74 -12
- package/types/lib/inventory/envcontext.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/formulationParsers.d.ts.map +1 -1
- package/types/lib/inventory/gtfobins.d.ts.map +1 -1
- package/types/lib/inventory/hbom.d.ts +11 -0
- package/types/lib/inventory/hbom.d.ts.map +1 -1
- package/types/lib/inventory/hbomLoader.d.ts +54 -0
- package/types/lib/inventory/hbomLoader.d.ts.map +1 -1
- package/types/lib/inventory/hostRuntimeProbe.d.ts +44 -0
- package/types/lib/inventory/hostRuntimeProbe.d.ts.map +1 -0
- package/types/lib/inventory/jvmLocalRepos.d.ts +5 -1
- package/types/lib/inventory/jvmLocalRepos.d.ts.map +1 -1
- package/types/lib/inventory/jvmToolEnv.d.ts +12 -0
- package/types/lib/inventory/jvmToolEnv.d.ts.map +1 -1
- package/types/lib/inventory/licenseEnhancer.d.ts.map +1 -1
- package/types/lib/inventory/mavenCentralMirror.d.ts +170 -0
- package/types/lib/inventory/mavenCentralMirror.d.ts.map +1 -0
- package/types/lib/inventory/mcpConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/nodeBuildInfo.d.ts +95 -0
- package/types/lib/inventory/nodeBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/nodeHostProbe.d.ts +15 -0
- package/types/lib/inventory/nodeHostProbe.d.ts.map +1 -0
- package/types/lib/inventory/occurrenceKey.d.ts +52 -0
- package/types/lib/inventory/occurrenceKey.d.ts.map +1 -0
- package/types/lib/inventory/osPackageResolver.d.ts +38 -0
- package/types/lib/inventory/osPackageResolver.d.ts.map +1 -1
- package/types/lib/inventory/phpBuildInfo.d.ts.map +1 -1
- package/types/lib/inventory/phpHostProbe.d.ts.map +1 -1
- package/types/lib/inventory/pqcMigration.d.ts +84 -0
- package/types/lib/inventory/pqcMigration.d.ts.map +1 -0
- package/types/lib/inventory/rubyBuildInfo.d.ts +271 -0
- package/types/lib/inventory/rubyBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/rubyHostProbe.d.ts +47 -0
- package/types/lib/inventory/rubyHostProbe.d.ts.map +1 -0
- package/types/lib/inventory/rustFormulationParser.d.ts +7 -2
- package/types/lib/inventory/rustFormulationParser.d.ts.map +1 -1
- package/types/lib/inventory/scalaCoords.d.ts.map +1 -1
- package/types/lib/inventory/scalaDedupe.d.ts +43 -0
- package/types/lib/inventory/scalaDedupe.d.ts.map +1 -0
- package/types/lib/inventory/source.d.ts +25 -0
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +12 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/parsers/huggingfaceManifest.d.ts +10 -1
- package/types/lib/parsers/huggingfaceManifest.d.ts.map +1 -1
- package/types/lib/parsers/huggingfaceUtils.d.ts +12 -0
- package/types/lib/parsers/huggingfaceUtils.d.ts.map +1 -1
- package/types/lib/parsers/kiroPermissions.d.ts +62 -0
- package/types/lib/parsers/kiroPermissions.d.ts.map +1 -0
- package/types/lib/parsers/largeJson.d.ts +4 -3
- package/types/lib/parsers/largeJson.d.ts.map +1 -1
- package/types/lib/parsers/vscodeExtensionId.d.ts +48 -0
- package/types/lib/parsers/vscodeExtensionId.d.ts.map +1 -0
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts +7 -0
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -1
- package/types/lib/stages/postgen/specVersionCompat.d.ts +25 -0
- package/types/lib/stages/postgen/specVersionCompat.d.ts.map +1 -1
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -1
- package/types/lib/stages/pregen/pregen.d.ts +12 -8
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts +5 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
- package/types/lib/validator/complianceEngine.d.ts +4 -4
- package/types/lib/validator/complianceEngine.d.ts.map +1 -1
- package/types/lib/validator/complianceRules.d.ts +14 -2
- package/types/lib/validator/complianceRules.d.ts.map +1 -1
- package/types/lib/validator/index.d.ts +10 -0
- package/types/lib/validator/index.d.ts.map +1 -1
- package/types/lib/validator/reporters/json.d.ts.map +1 -1
package/types/lib/core/env.d.ts
CHANGED
|
@@ -113,6 +113,10 @@ export declare let CDXGEN_TEMP_DIR: string;
|
|
|
113
113
|
export declare const SWIFT_CMD: string;
|
|
114
114
|
/** Resolved Ruby executable command (RUBY_CMD env var, or "ruby"). */
|
|
115
115
|
export declare const RUBY_CMD: string;
|
|
116
|
+
/** Resolved RubyGems executable command (CDXGEN_GEM_CMD env var, or "gem"). */
|
|
117
|
+
export declare const GEM_CMD: string;
|
|
118
|
+
/** Resolved Bundler executable command (CDXGEN_BUNDLE_CMD env var, or "bundle"). */
|
|
119
|
+
export declare const BUNDLE_CMD: string;
|
|
116
120
|
/** Resolved PHP executable command (PHP_CMD env var, or "php"). */
|
|
117
121
|
export declare const PHP_CMD: string;
|
|
118
122
|
/** Resolved Composer executable command (COMPOSER_CMD env var, or "composer"). */
|
|
@@ -177,6 +181,16 @@ export declare const PROJECT_TYPE_ALIASES: {
|
|
|
177
181
|
dynamic: string[];
|
|
178
182
|
"ai-provenance": string[];
|
|
179
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
* Project types, with their aliases, that inventory the host cdxgen runs on
|
|
186
|
+
* rather than the scan path: installed packages, users, shell history, IDE
|
|
187
|
+
* and browser extensions, or the Maven, Gradle, sbt, Cargo and Helm caches in
|
|
188
|
+
* the user's home directory. Only the operator may select them; neither a
|
|
189
|
+
* server request nor a config file in the scanned directory can.
|
|
190
|
+
*
|
|
191
|
+
* @type {Set<string>}
|
|
192
|
+
*/
|
|
193
|
+
export declare const HOST_SCOPE_PROJECT_TYPES: Set<string>;
|
|
180
194
|
/** Map of base package manager to the array of accepted alias strings. */
|
|
181
195
|
export declare const PACKAGE_MANAGER_ALIASES: {
|
|
182
196
|
scala: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../lib/core/env.js"],"names":[],"mappings":"AAUA,uCAAuC;AACvC,eAAO,MAAM,MAAM,SAAmD,CAAC;AACvE,mCAAmC;AACnC,eAAO,MAAM,KAAK,SAAwC,CAAC;AAC3D,oCAAoC;AACpC,eAAO,MAAM,MAAM,SAA+C,CAAC;AAEnE,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,oBAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAIrB,CAAC;AAEX,sJAAsJ;AACtJ,eAAO,MAAM,qBAAqB,SAI/B,CAAC;AAEJ,sIAAsI;AACtI,eAAO,MAAM,sBAAsB,SAElC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAH9B,MAG8B,GAF5B,MAAM,EAAE,CAiDpB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAFrB,OAAO,CAOnB;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,IAFhC,OAAO,CAMnB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAF7B,OAAO,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAFjB,OAAO,CAOnB;AAED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AAC,WAAW,EAH9C,MAG8C,GAF5C,OAAO,CAUnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EALhC,MAKgC,EAAE,OAAO,QAAA,WAiBnD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,OAAA,EAAE,OAAO,EAH5C,MAG4C,EAAE,aAAa,UAAO,OA2G5E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,WAAW,AAHvC,CACA,EADQ,MAG+B,GAF7B,MAAM,CAOlB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAJxC,MAIwC,EAAE,WAAW,AAH7D,CACA,EADQ,MAGqD,GAFnD,OAAO,CA8BnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,QAAA,EAAE,mBAAmB,OAAA,EAAE,OAAO,EAJ/D,MAI+D,WAezE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,KAAA,OA8CvC"}
|
package/types/lib/core/fs.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export declare function safeIsExecutableSync(filePath: string): boolean;
|
|
|
19
19
|
* Permission- and dry-run-aware wrapper around writeFileSync. Records the
|
|
20
20
|
* activity and returns undefined when blocked.
|
|
21
21
|
*
|
|
22
|
+
* The last component of the path is never followed when it is a symbolic
|
|
23
|
+
* link: the link is replaced with a regular file. Paths under /dev and /proc,
|
|
24
|
+
* such as /dev/stdout, are written through as given.
|
|
25
|
+
*
|
|
22
26
|
* @param {string} filePath File path to write.
|
|
23
27
|
* @param {string|Buffer} data Data to write.
|
|
24
28
|
* @param {Object} [options] writeFileSync options (encoding, mode, flag).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../lib/core/fs.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{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;AA4BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,SAGtC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EARE,MAQF,EACP,OAAO,EARE,MAQF,EACP,UAAU,SAAA,EACV,UAAU,OAAA,OAmDX;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAFf,MAAM,CAIlB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,IAFZ,MAAM,CAYlB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAJ1B,MAI0B,EAAE,IAAI,EAHhC,MAGgC,GAF9B,OAAO,QAAQ,CAU3B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,KAAA,EAAE,IAAI,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CA8B3B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Longest exclude or include pattern cdxgen accepts from an untrusted source,
|
|
3
|
+
* such as a server request or a config file in the scanned directory.
|
|
4
|
+
*/
|
|
5
|
+
export declare const UNTRUSTED_GLOB_PATTERN_MAX_LENGTH = 512;
|
|
6
|
+
/**
|
|
7
|
+
* Most patterns a list of untrusted exclude or include patterns may stand
|
|
8
|
+
* for once brace expressions are expanded. Every expanded pattern is matched
|
|
9
|
+
* against every file the scan walks, so the total, not the length of the
|
|
10
|
+
* list as written, is what decides the cost.
|
|
11
|
+
*/
|
|
12
|
+
export declare const UNTRUSTED_GLOB_EXPANSION_BUDGET = 128;
|
|
13
|
+
/**
|
|
14
|
+
* Count, from above, how many patterns a glob's brace expressions expand to,
|
|
15
|
+
* following the brace-expansion package that minimatch uses:
|
|
16
|
+
*
|
|
17
|
+
* - alternatives in `{a,b}` add up, and groups side by side or inside one
|
|
18
|
+
* another multiply;
|
|
19
|
+
* - a range such as `{1..9}`, `{a..z}` or `{0..100..5}` counts its members;
|
|
20
|
+
* - a group with no comma of its own but a list inside it, such as
|
|
21
|
+
* `{{a,b}c}`, is expanded and each result is braced and expanded again,
|
|
22
|
+
* so it counts as its contents, unless its text holds `..` and a result
|
|
23
|
+
* could become a range of any size.
|
|
24
|
+
*
|
|
25
|
+
* brace-expansion reads braces that form neither a list nor a range in ways
|
|
26
|
+
* that depend on the rest of the pattern, so a group that is neither, a
|
|
27
|
+
* closing brace with no group open, a group left open, and the `..` case
|
|
28
|
+
* above all count as more than `cap`. Patterns that list alternatives or
|
|
29
|
+
* ranges, such as `{test,tests}` or `*.{js,ts}`, get the exact count, or one
|
|
30
|
+
* slightly above it where a letter range such as `{Z..c}` spans the `\` that
|
|
31
|
+
* brace-expansion leaves out. `\` escapes the next character. The count stops growing at
|
|
32
|
+
* `cap + 1` and each character is read once, so a pattern that would expand
|
|
33
|
+
* to millions costs no more to count than its length.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} pattern glob pattern
|
|
36
|
+
* @param {number} [cap] largest count of interest
|
|
37
|
+
* @returns {number} upper bound on the number of expanded patterns, at most
|
|
38
|
+
* `cap + 1`
|
|
39
|
+
*/
|
|
40
|
+
export declare function globBraceExpansionCount(pattern: string, cap?: number): number;
|
|
41
|
+
/**
|
|
42
|
+
* Split exclude or include patterns from an untrusted source into the ones
|
|
43
|
+
* cdxgen uses and the ones it refuses. Patterns are taken in order while
|
|
44
|
+
* they fit the expansion budget, so a list cannot multiply the work of a
|
|
45
|
+
* scan by brace expansion or sheer number.
|
|
46
|
+
*
|
|
47
|
+
* @param {unknown} patterns a pattern, a list of patterns, or nothing
|
|
48
|
+
* @param {Object} [options] bound options
|
|
49
|
+
* @param {boolean} [options.allowBraces=true] refuse every pattern with a
|
|
50
|
+
* brace when false
|
|
51
|
+
* @param {number} [options.budget] expanded patterns allowed in all
|
|
52
|
+
* @param {number} [options.used=0] expanded patterns earlier lists have
|
|
53
|
+
* already taken from the budget
|
|
54
|
+
* @returns {{accepted: string[], refused: {pattern: string, reason: string}[], expansions: number}}
|
|
55
|
+
* the patterns to use, the ones refused with the reason, and the expanded
|
|
56
|
+
* patterns the accepted ones use
|
|
57
|
+
*/
|
|
58
|
+
export declare function boundUntrustedGlobPatterns(patterns: unknown, { allowBraces, budget, used, }?: {
|
|
59
|
+
allowBraces?: boolean;
|
|
60
|
+
budget?: number;
|
|
61
|
+
used?: number;
|
|
62
|
+
}): {
|
|
63
|
+
accepted: string[];
|
|
64
|
+
refused: {
|
|
65
|
+
pattern: string;
|
|
66
|
+
reason: string;
|
|
67
|
+
}[];
|
|
68
|
+
expansions: number;
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=globPatterns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globPatterns.d.ts","sourceRoot":"","sources":["../../../lib/core/globPatterns.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,MAAM,CAAC;AA0DnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EANE,MAMF,EACP,GAAG,AANF,CACA,EADQ,MAMwB,GALtB,MAAM,CAmDlB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAZC,OAYD,EACR,EACE,WAAkB,EAClB,MAAwC,EACxC,IAAQ,GACT,AAhBA,CAMA,EALA;IAA0B,WAAW,AAArC,CAEA,EAFQ,OAAO,CAEf;IAAyB,MAAM,AAA/B,CACA,EADQ,MAAM,CACd;IAAyB,IAAI,AAA7B,CAEA,EAFQ,MAAM,CAEd;CAUK,GAVK;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAyDlG"}
|
|
@@ -84,6 +84,30 @@ export declare function getDefaultHttpTimeoutMs(): number;
|
|
|
84
84
|
* @returns {number|undefined} Total timeout in milliseconds, or `undefined`.
|
|
85
85
|
*/
|
|
86
86
|
export declare function resolveTimeout(timeout?: number | Object): number | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Set or clear the cached runtime Brotli verdict. Exported for unit tests only.
|
|
89
|
+
*
|
|
90
|
+
* @param {boolean|undefined} verdict verdict to use, or undefined to re-check
|
|
91
|
+
*/
|
|
92
|
+
export declare function _setRuntimeBrotliVerdict(verdict: boolean | undefined): void;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the Brotli decoder of the runtime cdxgen runs on carries the
|
|
95
|
+
* CVE-2026-111497 fix, read once from the decoder itself: the node binary, or
|
|
96
|
+
* the shared libbrotlidec a `--shared-brotli` build (Homebrew, distro
|
|
97
|
+
* packages) loads; under Bun, the bun binary, which carries its own copy.
|
|
98
|
+
* process.versions.brotli cannot answer this, since Node.js backports the fix
|
|
99
|
+
* without changing it. Deno decodes Brotli in Rust, which was never affected.
|
|
100
|
+
*
|
|
101
|
+
* On Node.js cdxgen never asks for `br`, so a Brotli response comes only from
|
|
102
|
+
* a server that sends it unasked. When the decoder cannot be shown to be
|
|
103
|
+
* patched, such a body is left undecoded rather than handed to a decoder an
|
|
104
|
+
* attacker can write past. Bun decodes in its transport, so there the client
|
|
105
|
+
* stops asking for `br` instead.
|
|
106
|
+
*
|
|
107
|
+
* @param {Object} [runtime] the runtime to judge, for tests
|
|
108
|
+
* @returns {boolean} true when Brotli bodies may be decoded
|
|
109
|
+
*/
|
|
110
|
+
export declare function runtimeBrotliDecoderIsPatched(runtime?: Object): boolean;
|
|
87
111
|
/**
|
|
88
112
|
* Override the response cache bounds. Returns the previous bounds so tests can
|
|
89
113
|
* restore them. Not part of the public API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../lib/core/httpClient.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,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FZ,MAEY,EAOtB;CACF;AASD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAJ1B,CAAC,GAAG,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,MAAM,GAAC,IAAI,CAIlG,GAFxB,IAAI,CAIhB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAFvB,IAAI,CAIhB;AA8VD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,AAJtC,CACA,EADQ,MAImC,YAwC7C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Containment check for a path taken from a lockfile (issue #3816). A crafted
|
|
3
|
+
* npm lockfile can name `file:`/`link:` specifiers or link targets built from
|
|
4
|
+
* `..` chains or absolute paths, so a parser that is about to list such an
|
|
5
|
+
* entry checks the resolved path against the project root first.
|
|
6
|
+
*
|
|
7
|
+
* The candidate is resolved against `projectRoot`, so both relative values
|
|
8
|
+
* and the absolute paths arborist already normalised are accepted. The root
|
|
9
|
+
* itself counts as inside: a lockfile may legitimately link the project to
|
|
10
|
+
* its own directory.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} candidate Path to check, absolute or relative to projectRoot
|
|
13
|
+
* @param {string} projectRoot Project root the path must stay inside; a falsy
|
|
14
|
+
* root means the current working directory, mirroring `node:path`
|
|
15
|
+
*
|
|
16
|
+
* @returns {Boolean} True when the path is inside projectRoot
|
|
17
|
+
*/
|
|
18
|
+
export declare function isPathInsideProject(candidate: string, projectRoot: string): boolean;
|
|
19
|
+
//# sourceMappingURL=lockPaths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockPaths.d.ts","sourceRoot":"","sources":["../../../lib/core/lockPaths.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EANlC,MAMkC,EAAE,WAAW,EAL/C,MAK+C,WAkBzD"}
|
|
@@ -33,4 +33,13 @@ export declare function isValidDriveRoot(root: string): boolean;
|
|
|
33
33
|
* @returns {string} camelCase representation of the input.
|
|
34
34
|
*/
|
|
35
35
|
export declare function toCamel(str: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Rewrite an absolute path under the user's home directory to a `~`-relative
|
|
38
|
+
* form so the emitted BOM does not carry the local username.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} filePath Absolute path
|
|
41
|
+
* @param {string} [home] Home directory, defaulting to the current user's
|
|
42
|
+
* @returns {string} Home-relative path when applicable, else the input
|
|
43
|
+
*/
|
|
44
|
+
export declare function redactHomePath(filePath: string, home?: string): string;
|
|
36
45
|
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../lib/core/paths.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,iFAAiF;AACjF,eAAO,MAAM,UAAU,KAEV,CAAC;AAEd,oCAAoC;AACpC,eAAO,MAAM,KAAK,SAAyB,CAAC;AAC5C,kCAAkC;AAClC,eAAO,MAAM,KAAK,SAA0B,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAH1B,MAG0B,GAFxB,OAAO,CAmBnB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAHhB,MAGgB,GAFd,MAAM,CAIlB"}
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../lib/core/paths.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,iFAAiF;AACjF,eAAO,MAAM,UAAU,KAEV,CAAC;AAEd,oCAAoC;AACpC,eAAO,MAAM,KAAK,SAAyB,CAAC;AAC5C,kCAAkC;AAClC,eAAO,MAAM,KAAK,SAA0B,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAH1B,MAG0B,GAFxB,OAAO,CAmBnB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAHhB,MAGgB,GAFd,MAAM,CAIlB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAJ5B,MAI4B,EAAE,IAAI,AAH1C,CACA,EADQ,MAG8C,GAF5C,MAAM,CAelB"}
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
* @returns {string} Human-readable duration
|
|
13
13
|
*/
|
|
14
14
|
export declare function formatDuration(ms: number): string;
|
|
15
|
+
/**
|
|
16
|
+
* A UTC instant as a DMTF datetime, the form WQL compares CIM_DATETIME
|
|
17
|
+
* properties such as Win32_Process.CreationDate against.
|
|
18
|
+
*
|
|
19
|
+
* @param {number} ms Epoch milliseconds
|
|
20
|
+
* @returns {string} The instant as `yyyymmddHHMMSS.mmmmmm+000`
|
|
21
|
+
*/
|
|
22
|
+
export declare function toDmtfUtc(ms: number): string;
|
|
15
23
|
/**
|
|
16
24
|
* Stop the descendants a timed-out run left behind on Windows.
|
|
17
25
|
*
|
|
@@ -20,11 +28,16 @@ export declare function formatDuration(ms: number): string;
|
|
|
20
28
|
* workers, or the build hosts a .NET analyzer starts keep running while still
|
|
21
29
|
* pointing at the dead process's pid. `taskkill /T` on that pid finds nothing,
|
|
22
30
|
* because the root is already gone. The live descendants are therefore found
|
|
23
|
-
* by parent pid in a process snapshot
|
|
24
|
-
* created after the run started. The root's own
|
|
25
|
-
* its end: once the root is gone its pid can be
|
|
26
|
-
* process, whose children would otherwise look like
|
|
31
|
+
* by parent pid in a PowerShell process snapshot, limited to processes
|
|
32
|
+
* created after the run started, and stopped from Node.js. The root's own
|
|
33
|
+
* children must also predate its end: once the root is gone its pid can be
|
|
34
|
+
* handed to an unrelated process, whose children would otherwise look like
|
|
35
|
+
* the run's. Elsewhere this
|
|
27
36
|
* does nothing: an orphan is re-parented and can no longer be told apart.
|
|
37
|
+
* It returns once the stopped processes have exited, or after ten seconds,
|
|
38
|
+
* so the caller can remove files the run left half-written. When the
|
|
39
|
+
* snapshot itself fails or runs past its time limit it warns and returns an
|
|
40
|
+
* empty list, since processes may then still be running.
|
|
28
41
|
*
|
|
29
42
|
* @param {number|undefined} rootPid pid of the process cdxgen spawned
|
|
30
43
|
* @param {number} startedAt Epoch milliseconds at which the run started
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processTree.d.ts","sourceRoot":"","sources":["../../../lib/core/processTree.js"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"processTree.d.ts","sourceRoot":"","sources":["../../../lib/core/processTree.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAHtB,MAGsB,GAFpB,MAAM,CAQlB;AAqCD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAHjB,MAGiB,GAFf,MAAM,CAMlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAPE,MAAM,GAAC,SAOT,EACP,SAAS,EAPA,MAOA,EACT,OAAO,AAPN,CACA,EADQ,MAOW,EACpB,QAAQ,AAPP,CACA,EADQ,MAOY,GANV,MAAM,EAAE,CA4FpB"}
|
|
@@ -2,26 +2,65 @@
|
|
|
2
2
|
* Config file names cdxgen reads from the directory it is invoked in.
|
|
3
3
|
*/
|
|
4
4
|
export declare const PROJECT_CONFIG_FILENAMES: string[];
|
|
5
|
+
/**
|
|
6
|
+
* Options a config file may set, by their kebab-case name. A config file may
|
|
7
|
+
* also use the camelCase spelling of each, or one of the aliases in
|
|
8
|
+
* PROJECT_CONFIG_OPTION_ALIASES. Every other key is ignored: options that
|
|
9
|
+
* only library callers pass (such as `dosaiCommand` or `traceCmd`), yargs'
|
|
10
|
+
* own `extends`, and anything cdxgen does not know.
|
|
11
|
+
*
|
|
12
|
+
* Every option bin/cdxgen.js declares is either here or in
|
|
13
|
+
* OPERATOR_ONLY_OPTIONS, which projectConfig.poku.js checks.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PROJECT_CONFIG_OPTIONS: Set<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Options only the operator may set, on the command line or through a
|
|
18
|
+
* CDXGEN_* environment variable. They choose an executable, start a listener,
|
|
19
|
+
* turn off certificate checks on the operator's own upload, opt into
|
|
20
|
+
* experimental tool installation, or end the run without a BOM. A config file
|
|
21
|
+
* that sets one is told so and ignored.
|
|
22
|
+
*/
|
|
23
|
+
export declare const OPERATOR_ONLY_OPTIONS: Set<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Alternate option names a config file may use, with the option each one
|
|
26
|
+
* stands for. yargs applies its aliases to config keys too, so each is
|
|
27
|
+
* checked as the option it names.
|
|
28
|
+
*/
|
|
29
|
+
export declare const PROJECT_CONFIG_OPTION_ALIASES: Map<string, string>;
|
|
5
30
|
/**
|
|
6
31
|
* Apply the trust boundary between cdxgen and the directory it is scanning.
|
|
7
32
|
*
|
|
8
33
|
* A config file lives in the tree under analysis, so it is attacker-controlled
|
|
9
|
-
* whenever that tree is.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
34
|
+
* whenever that tree is. It may therefore only set the options listed in
|
|
35
|
+
* PROJECT_CONFIG_OPTIONS: options that choose an executable, start a listener
|
|
36
|
+
* or weaken the operator's own checks, and every key cdxgen does not declare
|
|
37
|
+
* as an option, are dropped. Path options are confined to the config's own
|
|
38
|
+
* directory - a scanned project may choose where in itself the BOM lands, but
|
|
39
|
+
* not write outside it - and project types that inventory the host rather
|
|
40
|
+
* than the scan path are dropped. Exclude and include patterns are kept
|
|
41
|
+
* within the bounds of boundUntrustedGlobPatterns, so a project cannot make
|
|
42
|
+
* every file match against thousands of brace-expanded patterns. Options that
|
|
43
|
+
* redirect data off the host or widen what cdxgen does are announced on the
|
|
44
|
+
* console. A project may describe itself with custom metadata properties, but
|
|
45
|
+
* not in the namespaces cdxgen reserves for the facts it establishes, so a
|
|
46
|
+
* scanned tree cannot pass its own claims off as cdxgen's.
|
|
16
47
|
*
|
|
17
48
|
* @param {Object} config parsed config file contents
|
|
18
49
|
* @param {string} configDir directory the config file was read from
|
|
19
|
-
* @returns {{config: Object, rejected: string[], announced: string[], reservedProperties: string[]}} sanitized config and what it did
|
|
50
|
+
* @returns {{config: Object, rejected: string[], announced: string[], reservedProperties: string[], ignored: string[], operatorOnly: string[], hostScopeTypes: string[], refusedPatterns: {key: string, pattern: string, reason: string}[]}} sanitized config and what it did
|
|
20
51
|
*/
|
|
21
52
|
export declare function sanitizeProjectConfig(config: Object, configDir: string): {
|
|
22
53
|
config: Object;
|
|
23
54
|
rejected: string[];
|
|
24
55
|
announced: string[];
|
|
25
56
|
reservedProperties: string[];
|
|
57
|
+
ignored: string[];
|
|
58
|
+
operatorOnly: string[];
|
|
59
|
+
hostScopeTypes: string[];
|
|
60
|
+
refusedPatterns: {
|
|
61
|
+
key: string;
|
|
62
|
+
pattern: string;
|
|
63
|
+
reason: string;
|
|
64
|
+
}[];
|
|
26
65
|
};
|
|
27
66
|
//# sourceMappingURL=projectConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"AAYA;;GAEG;AACH,eAAO,MAAM,wBAAwB,UAKpC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,aA2GjC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,aAQhC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,qBASxC,CAAC;AA6IH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAJjC,MAIiC,EAAE,SAAS,EAH5C,MAG4C,GAF1C;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,EAAE,CAAA;CAAC,CA2H3O"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Record an external tool cdxgen executed. The first version seen wins unless
|
|
3
|
+
* it was unknown, so an enriched probe never overwrites a concrete version
|
|
4
|
+
* with `undefined` and a later concrete version fills an earlier gap.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} name Tool name as invoked (a bare name or a path)
|
|
7
|
+
* @param {string|undefined} version Version when cheaply known
|
|
8
|
+
*/
|
|
9
|
+
export declare function recordExecutedTool(name: string, version: string | undefined): void;
|
|
10
|
+
/**
|
|
11
|
+
* Remember the version a stage already resolved for a tool, such as the JVM
|
|
12
|
+
* build tool pregen provisioned. The version shows in `metadata.tools` only if
|
|
13
|
+
* the tool is executed; the first version recorded wins.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} name Tool name as it will be invoked (a bare name or a path)
|
|
16
|
+
* @param {string} version Resolved version
|
|
17
|
+
*/
|
|
18
|
+
export declare function recordToolVersion(name: string, version: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Snapshot of the tools recorded so far, sorted by name so the assembled
|
|
21
|
+
* `metadata.tools` diff stays stable between runs.
|
|
22
|
+
*
|
|
23
|
+
* @returns {Array<{name: string, version: (string|undefined)}>} Sorted tool records
|
|
24
|
+
*/
|
|
25
|
+
export declare function getExecutedTools(): Array<{
|
|
26
|
+
name: string;
|
|
27
|
+
version: (string | undefined);
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Clear the registry. The server calls it between scans through the run-state
|
|
31
|
+
* reset; tests call it directly.
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
35
|
+
export declare function resetExecutedTools(): void;
|
|
36
|
+
//# sourceMappingURL=toolRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolRegistry.d.ts","sourceRoot":"","sources":["../../../lib/core/toolRegistry.js"],"names":[],"mappings":"AAgGA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAH5B,MAG4B,EAAE,OAAO,EAFrC,MAAM,GAAC,SAE8B,QAwB/C;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAH3B,MAG2B,EAAE,OAAO,EAFpC,MAEoC,QAW9C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAFnB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAA;CAAC,CAAC,CAe9D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAFrB,IAAI,CAKhB"}
|
|
@@ -10,6 +10,46 @@
|
|
|
10
10
|
* @returns {boolean} true when the directory holds at least one C or C++ file
|
|
11
11
|
*/
|
|
12
12
|
export declare function hasCppSources(src: string, options?: Object): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The ports vcpkg installed into the `vcpkg_installed` directories of a
|
|
15
|
+
* project and its build trees, by lower-case port name.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} src project directory
|
|
18
|
+
* @param {Object} options CLI options, for the build-directory candidates
|
|
19
|
+
* @returns {Map<string, {version: string, triplet: string}>}
|
|
20
|
+
*/
|
|
21
|
+
export declare function installedVcpkgPorts(src: string, options?: Object): Map<string, {
|
|
22
|
+
version: string;
|
|
23
|
+
triplet: string;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Read a vcpkg manifest (vcpkg.json) in a directory: the project it describes
|
|
27
|
+
* and the ports it declares. A port's version comes from what vcpkg installed
|
|
28
|
+
* in the build tree when that is known, otherwise from the manifest's
|
|
29
|
+
* `overrides`, which pin it exactly. A `version>=` constraint is only a
|
|
30
|
+
* minimum, so it is kept as a property, never as the version.
|
|
31
|
+
* https://learn.microsoft.com/vcpkg/reference/vcpkg-json
|
|
32
|
+
*
|
|
33
|
+
* The read is cheap and runs no tool, so it does not wait for the atom-based
|
|
34
|
+
* analysis that getCppModules adds.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} src directory that may hold vcpkg.json
|
|
37
|
+
* @param {Object} [options] options
|
|
38
|
+
* @param {Map<string, {version: string, triplet: string}>} [options.installedPorts]
|
|
39
|
+
* ports vcpkg installed, by lower-case name
|
|
40
|
+
* @param {function(string): boolean} [options.isListed] whether another source
|
|
41
|
+
* already lists a port by that name
|
|
42
|
+
* @returns {{parentComponent: Object|undefined, pkgList: Object[]}}
|
|
43
|
+
*/
|
|
44
|
+
export declare function parseVcpkgManifest(src: string, options?: {
|
|
45
|
+
installedPorts?: Map<string, {
|
|
46
|
+
version: string;
|
|
47
|
+
triplet: string;
|
|
48
|
+
}>;
|
|
49
|
+
}): {
|
|
50
|
+
parentComponent: Object | undefined;
|
|
51
|
+
pkgList: Object[];
|
|
52
|
+
};
|
|
13
53
|
/**
|
|
14
54
|
* Method to find c/c++ modules by collecting usages with atom
|
|
15
55
|
*
|
|
@@ -24,19 +64,6 @@ export declare function hasCppSources(src: string, options?: Object): boolean;
|
|
|
24
64
|
*/
|
|
25
65
|
export declare function getCppModules(src: string, options: object, osPkgsList: array, epkgList: array, isFirstPartyHeader?: Function): {
|
|
26
66
|
parentComponent: Object | {
|
|
27
|
-
name: any;
|
|
28
|
-
version: any;
|
|
29
|
-
description: any;
|
|
30
|
-
license: any;
|
|
31
|
-
purl: any;
|
|
32
|
-
type: string;
|
|
33
|
-
"bom-ref": string;
|
|
34
|
-
group?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
description?: undefined;
|
|
37
|
-
license?: undefined;
|
|
38
|
-
purl?: undefined;
|
|
39
|
-
"bom-ref"?: undefined;
|
|
40
67
|
group: any;
|
|
41
68
|
name: any;
|
|
42
69
|
version: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cppEvidence.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cppEvidence.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cppEvidence.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cppEvidence.js"],"names":[],"mappings":"AA4MA;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAJtB,MAIsB,EAAE,OAAO,GAH/B,MAGoC,GAFlC,OAAO,CAOnB;AAID;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAJ5B,MAI4B,EAAE,OAAO,GAHrC,MAG0C,GAFxC,GAAG,CAAC,MAAM,EAAE;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAAC,CAsB3D;AAgCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAR3B,MAQ2B,EAAE,OAAO,AAP5C,CAGA,EAFA;IAAkE,cAAc,AAAhF,CAEA,EAFQ,GAAG,CAAC,MAAM,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC,CAEvD;CAIiD,GAFvC;IAAC,eAAe,EAAE,MAAM,GAAC,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,CA4JlE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAVM,MAUN,EACH,OAAO,EAVE,MAUF,EACP,UAAU,EAVD,KAUC,EACV,QAAQ,EAVC,KAUD,EACR,kBAAkB,WAAY;;;;;;;;;;;;EAmX/B"}
|
|
@@ -33,12 +33,13 @@ export declare function parseCIncludeSlices(sliceData: Object): Map<string, {
|
|
|
33
33
|
* line relative to the installed directory.
|
|
34
34
|
*
|
|
35
35
|
* @param {string[]} installedDirs `vcpkg_installed` directories
|
|
36
|
-
* @returns {Map<string, {port: string, version: string, triplet: string}>}
|
|
36
|
+
* @returns {Map<string, {port: string, version: string, triplet: string, portVersion?: string}>}
|
|
37
37
|
*/
|
|
38
38
|
export declare function readVcpkgInstalledIndex(installedDirs: string[]): Map<string, {
|
|
39
39
|
port: string;
|
|
40
40
|
version: string;
|
|
41
41
|
triplet: string;
|
|
42
|
+
portVersion?: string;
|
|
42
43
|
}>;
|
|
43
44
|
/**
|
|
44
45
|
* The package folders of a Conan 2 cache, from its database
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cppIncludeResolver.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cppIncludeResolver.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAYH;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAHlC,MAGkC,GAFhC,GAAG,CAAC,MAAM,EAAE;IAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAC,CAAC,CA+BpF;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAH1C,MAAM,EAGoC,GAFxC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MAAM,CACd;IAA2B,UAAU,AAArC,CAGA,EAHQ,MAAM,EAAE,CAGhB;IAA2B,SAAS,AAApC,CAEA,EAFQ,MAAM,EAAE,CAEhB;CAQ4C,YA2F9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystems.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/ecosystems.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecosystems.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/ecosystems.js"],"names":[],"mappings":"AAmHA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,IAAK,CAAC;AAqDjC;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAH1C,MAAM,EAGoC,GAFxC,OAAO,CAAC,MAAM,EAAE,CAAC,CAmC7B;AA8LD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,OAAO,OAAA,EAAE,WAAW,AAPtD,CACA,EADQ,MAO8C,EAAE,OAAO,AAN/D,CAKF,EAJE;IAAyB,WAAW,AAApC,CAEA,EAFQ,MAAM,CAEd;IAA0B,UAAU,AAApC,CAEF,EAFU,OAAO,CAEjB;CACsE,kBAgItE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAL/B,MAK+B,EAAE,IAAI,EAJrC,MAIqC,EAAE,OAAO,EAH9C,MAG8C,GAF5C,MAAM,GAAC,IAAI,CAYvB;AAscD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,cAAc,CAClC,OAAO,OAAA,EACP,YAAY,GATH,MASQ,EACjB,KAAK,UAAQ,EACb,OAAO,AATN,CAGA,EAHQ;IAAC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CASrB,SAmHb;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAA,UAGnE;AA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U,OAAO,CAEjB;CAC4D,kBAmK5D;AA8GD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,OAAO,OAAA,EAAE,OAAO,AAJnD,CAGF,EAFE;IAA0B,UAAU,AAApC,CAEF,EAFU,OAAO,CAEjB;CAC0D,kBAwF1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAHtC,MAGsC,GAFpC,MAAM,GAAC,SAAS,CA6B5B;AAwDD;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EANpC,MAMoC,EAAE,OAAO,EAL7C,MAK6C,EAAE,YAAY,GAJ3D,MAIgE,kBAoe1E;AAkbD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,OAAA,EAAE,YAAY,QAAY;;;GA4IvE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The gem homes of a host, each a directory with a `specifications` directory.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} rootPath root directory
|
|
5
|
+
* @param {string} platform `linux`, `darwin` or `win32`
|
|
6
|
+
* @returns {string[]} absolute gem home directories
|
|
7
|
+
*/
|
|
8
|
+
export declare function findGemHomes(rootPath: string, platform: string): string[];
|
|
9
|
+
/**
|
|
10
|
+
* Inventory the gems of a host's gem homes. One component per distinct gem
|
|
11
|
+
* and version, with an occurrence for each gemspec it was read from, so no
|
|
12
|
+
* host path reaches a purl.
|
|
13
|
+
*
|
|
14
|
+
* @param {Object} [options] options
|
|
15
|
+
* @param {string} [options.rootPath="/"] root directory; tests point it at a built tree
|
|
16
|
+
* @param {string} [options.platform] `linux`, `darwin` or `win32`
|
|
17
|
+
* @param {function(string): (Object[]|undefined)} [options.executeOsQuery] runs
|
|
18
|
+
* an osquery query, for rpm ownership
|
|
19
|
+
* @param {Object[]} [options.packageComponents] the OS packages the scan has
|
|
20
|
+
* inventoried, which name the owners
|
|
21
|
+
* @param {Object} [options.packageDatabases] where the package databases are
|
|
22
|
+
* @returns {Promise<Object[]>} gem components
|
|
23
|
+
*/
|
|
24
|
+
export declare function probeHostRubyGems(options?: {
|
|
25
|
+
rootPath?: string;
|
|
26
|
+
platform?: string;
|
|
27
|
+
}): Promise<Object[]>;
|
|
28
|
+
//# sourceMappingURL=gemHostProbe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemHostProbe.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/gemHostProbe.js"],"names":[],"mappings":"AA+FA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAJ1B,MAI0B,EAAE,QAAQ,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CAmCpB;AAWD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,AAV5C,CAGA,EAFA;IAAyB,QAAQ,AAAjC,CACA,EADQ,MAAM,CACd;IAAyB,QAAQ,AAAjC,CACA,EADQ,MAAM,CACd;CAOiD,GAFvC,OAAO,CAAC,MAAM,EAAE,CAAC,CA6I7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"golem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/golem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"golem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/golem.js"],"names":[],"mappings":"AAumDA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,OAAO,CAInB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAL/B,MAK+B,GAJ7B,MAAM,GAAC,SAAS,CAgB5B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EALzB,MAKyB,EAAE,UAAU,EAJrC,MAIqC,EAAE,OAAO,AAHtD,CACA,EADQ,MAGmD,GAFjD,OAAO,CA4DnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,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