@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
|
@@ -33,7 +33,8 @@ export declare function getOriginUrl(dir: string): string | undefined;
|
|
|
33
33
|
* @param {string} configKey Git config key
|
|
34
34
|
* @param {string} dir repo directory
|
|
35
35
|
*
|
|
36
|
-
* @returns
|
|
36
|
+
* @returns {string|undefined} The branch name, or undefined when git fails,
|
|
37
|
+
* for example when the directory is not a git working tree or has no commit
|
|
37
38
|
*/
|
|
38
39
|
export declare function getBranch(_configKey: any, dir: string): string | undefined;
|
|
39
40
|
/**
|
|
@@ -44,19 +45,28 @@ export declare function getBranch(_configKey: any, dir: string): string | undefi
|
|
|
44
45
|
*/
|
|
45
46
|
export declare function gitTreeHashes(dir: string): {};
|
|
46
47
|
/**
|
|
47
|
-
* Retrieves the files
|
|
48
|
-
*
|
|
48
|
+
* Retrieves the files git tracks under a directory at HEAD. Only the
|
|
49
|
+
* directory's own subtree is listed, with names relative to it, so a scan of
|
|
50
|
+
* one directory of a larger repository does not record the rest of that
|
|
51
|
+
* repository.
|
|
49
52
|
*
|
|
50
|
-
* @
|
|
53
|
+
* @param {string} dir directory inside a git working tree
|
|
54
|
+
*
|
|
55
|
+
* @returns {Object[]} files with their blob hash, name, OmniBOR id and SWHID;
|
|
56
|
+
* empty when git fails, for example when the directory is not a git working
|
|
57
|
+
* tree or has no commit
|
|
51
58
|
*/
|
|
52
|
-
export declare function listFiles(dir: string):
|
|
59
|
+
export declare function listFiles(dir: string): Object[];
|
|
53
60
|
/**
|
|
54
61
|
* Execute a git command
|
|
55
62
|
*
|
|
56
63
|
* @param {string} dir Repo directory
|
|
57
64
|
* @param {Array} args arguments to git command
|
|
58
65
|
*
|
|
59
|
-
* @returns
|
|
66
|
+
* @returns {string|undefined} git's standard output, or undefined when git
|
|
67
|
+
* could not run or exited with a non-zero status. Text git writes to standard
|
|
68
|
+
* error, including warnings of a successful command, is never part of the
|
|
69
|
+
* result.
|
|
60
70
|
*/
|
|
61
71
|
export declare function execGitCommand(dir: string, args: any[]): string | undefined;
|
|
62
72
|
/**
|
|
@@ -102,6 +112,12 @@ export declare function collectJavaInfo(dir: string): {
|
|
|
102
112
|
/**
|
|
103
113
|
* Collect dotnet version
|
|
104
114
|
*
|
|
115
|
+
* `version` is the version `dotnet --version` prints, which is the SDK's. .NET
|
|
116
|
+
* advisories name runtime versions, so the component itself carries no purl
|
|
117
|
+
* and no CPE. Each shared framework `dotnet --list-runtimes` reports is a
|
|
118
|
+
* nested component built by createHostDotnetRuntimeComponent, without a
|
|
119
|
+
* bom-ref like the other toolchains.
|
|
120
|
+
*
|
|
105
121
|
* @param {string} dir Working directory
|
|
106
122
|
* @returns Object containing dotnet details
|
|
107
123
|
*/
|
|
@@ -177,16 +193,51 @@ export declare function collectSwiftInfo(dir: string): {
|
|
|
177
193
|
version: string;
|
|
178
194
|
} | undefined;
|
|
179
195
|
/**
|
|
180
|
-
*
|
|
196
|
+
* Whether a Ruby executable is one the operating system or a package manager
|
|
197
|
+
* that patches it owns. Distros backport fixes under the old upstream version,
|
|
198
|
+
* so its version must not be matched against upstream advisories by CPE.
|
|
199
|
+
*
|
|
200
|
+
* @param {string|undefined} realPath real path of the executable
|
|
201
|
+
* @returns {boolean}
|
|
202
|
+
*/
|
|
203
|
+
export declare function isPackagedRubyPath(realPath: string | undefined): boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Collect the Ruby on the PATH.
|
|
206
|
+
*
|
|
207
|
+
* `ruby --version` prints the interpreter's description, such as
|
|
208
|
+
* `ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [x86_64-linux]`, which is kept
|
|
209
|
+
* as the component description. The identity is `pkg:generic/ruby@3.3.6`
|
|
210
|
+
* (or jruby, truffleruby), with the CPE of the release unless a package
|
|
211
|
+
* manager owns the executable: a distro backports fixes under the old upstream
|
|
212
|
+
* version.
|
|
181
213
|
*
|
|
182
214
|
* @param {string} dir Working directory
|
|
183
215
|
* @returns Object containing Ruby details
|
|
184
216
|
*/
|
|
185
|
-
export declare function collectRubyInfo(dir: string):
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
217
|
+
export declare function collectRubyInfo(dir: string): Object | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Whether the Ruby collectRubyInfo found is the MRI release a project needs.
|
|
220
|
+
*
|
|
221
|
+
* @param {Object|undefined} info result of collectRubyInfo
|
|
222
|
+
* @param {string} version wanted MRI version
|
|
223
|
+
* @returns {boolean}
|
|
224
|
+
*/
|
|
225
|
+
export declare function isRubyVersionActive(info: Object | undefined, version: string): boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Collect the RubyGems version. `gem --version` prints the bare version.
|
|
228
|
+
*
|
|
229
|
+
* @param {string} dir Working directory
|
|
230
|
+
* @returns {Object|undefined} the RubyGems component
|
|
231
|
+
*/
|
|
232
|
+
export declare function collectRubyGemsInfo(dir: string): Object | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Collect the Bundler version. `bundle --version` prints `Bundler version
|
|
235
|
+
* 2.5.22`, or the bare version from Bundler 2.6 on.
|
|
236
|
+
*
|
|
237
|
+
* @param {string} dir Working directory
|
|
238
|
+
* @returns {Object|undefined} the Bundler component
|
|
239
|
+
*/
|
|
240
|
+
export declare function collectBundlerInfo(dir: string): Object | undefined;
|
|
190
241
|
/**
|
|
191
242
|
* Collect the PHP version of the PHP found on the PATH.
|
|
192
243
|
*
|
|
@@ -381,6 +432,17 @@ export declare function gitAiNotes(dir: string, options?: {
|
|
|
381
432
|
* @returns {Array<Object>} Array of { hash, message } revert/hotfix commits
|
|
382
433
|
*/
|
|
383
434
|
export declare function gitRevertsAndHotfixes(dir: string, maxCount?: number): Array<Object>;
|
|
435
|
+
/**
|
|
436
|
+
* Whether the running Node.js links a bundled dependency as a shared library,
|
|
437
|
+
* from the `node_shared_<name>` configure variables it reports.
|
|
438
|
+
*
|
|
439
|
+
* @param {string} name key of process.versions
|
|
440
|
+
* @param {Object} [variables] configure variables, process.config.variables
|
|
441
|
+
* by default
|
|
442
|
+
* @returns {string|undefined} `shared`, `bundled`, or undefined when the build
|
|
443
|
+
* does not say
|
|
444
|
+
*/
|
|
445
|
+
export declare function nodeComponentLinkage(name: string, variables?: Object): string | undefined;
|
|
384
446
|
/**
|
|
385
447
|
* Get information about the runtime.
|
|
386
448
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envcontext.d.ts","sourceRoot":"","sources":["../../../lib/inventory/envcontext.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"envcontext.d.ts","sourceRoot":"","sources":["../../../lib/inventory/envcontext.js"],"names":[],"mappings":"AAsEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAFd,MAE4D,CAAC;AAwDvE;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,wBAkBpC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAL3B,MAK2B,EAAE,GAAG,EAJhC,MAIgC,sBAE1C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAJrB,MAIqB,sBAE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;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAJ9B,MAI8B,EAAE,QAAQ,GAHxC,MAG6C,GAF3C,KAAK,CAAC,MAAM,CAAC,CA+BzB;AAUD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAPK,MAOL,EACJ,SAAS,AAPR,CAEA,EAFQ,MAOwC,GALtC,MAAM,GAAC,SAAS,CAa5B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAFxB,MAAM,CAsHlB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,WAUpC;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,IAF9B,MAAM,GAAC,SAAS,CAc5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidenceUtils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/evidenceUtils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evidenceUtils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/evidenceUtils.js"],"names":[],"mappings":"AA+CA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAJtC,MAIsC,EAAE,OAAO,AAHvD,CACA,EADQ,MAGoD,GAFlD,MAAM,GAAC,SAAS,CAgB5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,+BAA+B,CAAC,QAAQ,EAJ7C,MAI6C,EAAE,OAAO,AAH9D,CACA,EADQ,MAG2D,GAFzD,MAAM,GAAC,SAAS,CA8B5B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAHxC,MAGwC,GAFtC,MAAM,CAalB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAJ1B,MAAM,EAAE,GAAC,MAIiB,EAAE,SAAS,UAAA,GAFnC,MAAM,EAAE,CAmDpB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAJjC,MAAM,GAAC,MAAM,EAIoB,EAAE,QAAQ,EAH3C,MAAM,EAGqC,GAFzC,MAAM,GAAC,MAAM,EAAE,CAwB3B;AAsCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAPjC,MAAM,EAO2B,EAAE,UAAU,EAN7C,MAM6C,EAAE,OAAO,AAL9D,CAGA,EAFA;IAAyB,OAAO,AAAhC,CAEA,EAFQ,MAAM,CAEd;CAEmE,GAFzD,MAAM,EAAE,CAsQpB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EANJ,MAMI,EACb,QAAQ,EANC,MAMD,EACR,OAAO,OAAA,EACP,OAAO,UAAQ,EACf,gBAAgB,YAAY,SA6O7B;AAgJD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAHhC,MAAM,EAG0B,GAF9B,MAAM,EAAE,CAqCpB;AAgCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAHlC,MAAM,EAG4B,GAFhC,MAAM,EAAE,CAgEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formulationParsers.d.ts","sourceRoot":"","sources":["../../../lib/inventory/formulationParsers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formulationParsers.d.ts","sourceRoot":"","sources":["../../../lib/inventory/formulationParsers.js"],"names":[],"mappings":"AA6HA;;;;;;;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;AAqGD;;;;;;;;;;;;;;;;;;;;;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,CA8P7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfobins.d.ts","sourceRoot":"","sources":["../../../lib/inventory/gtfobins.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gtfobins.d.ts","sourceRoot":"","sources":["../../../lib/inventory/gtfobins.js"],"names":[],"mappings":"AAiKA;;;;;;;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,CA8FzB"}
|
|
@@ -48,6 +48,17 @@ export declare function normalizeHbomOptions(options?: object): object;
|
|
|
48
48
|
* @returns {Object} The same BOM with refreshed analysis properties
|
|
49
49
|
*/
|
|
50
50
|
export declare function addHbomAnalysisProperties(bomJson: Object): Object;
|
|
51
|
+
/**
|
|
52
|
+
* The 1.x-shaped model of a collector result. cdxgen asks the collector for
|
|
53
|
+
* 1.7; a collector that still answers with a CycloneDX 2.0 document (a
|
|
54
|
+
* `specFormat`, or specVersion 2.0) is read with readCycloneDx20, so the
|
|
55
|
+
* 1.x pipeline that follows never mistakes it for a 1.x BOM and loses its
|
|
56
|
+
* inventories.
|
|
57
|
+
*
|
|
58
|
+
* @param {object} collected What collectHardware returned
|
|
59
|
+
* @returns {object} The 1.x-shaped HBOM
|
|
60
|
+
*/
|
|
61
|
+
export declare function toInternalHbom(collected: object): object;
|
|
51
62
|
/**
|
|
52
63
|
* Generate an HBOM using the optional cdx-hbom package.
|
|
53
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hbom.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hbom.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbom.js"],"names":[],"mappings":"AAoWA;;;;;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,QAQzD;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,CAkClB;AA8GD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAHtC,MAGsC,GAFpC,MAAM,CA8HlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAH7B,MAG6B,GAF3B,MAAM,CAsBlB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,AAH7C,CACA,EADQ,MAG0C,GAFxC,OAAO,CAAC,MAAM,CAAC,CAgC3B"}
|
|
@@ -1,7 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The places cdx-hbom is loaded from, in order: a local checkout next to
|
|
3
|
+
* cdxgen, else the installed package.
|
|
4
|
+
*/
|
|
5
|
+
export declare const HBOM_MODULE_LOCATIONS: Readonly<{
|
|
6
|
+
localModulePath: any;
|
|
7
|
+
localMapperPath: any;
|
|
8
|
+
packageMapperSpecifier: "@cdxgen/cdx-hbom/cdx20";
|
|
9
|
+
}>;
|
|
1
10
|
/**
|
|
2
11
|
* Resolve the optional cdx-hbom module.
|
|
3
12
|
*
|
|
4
13
|
* @returns {Promise<object>} Loaded cdx-hbom module namespace.
|
|
5
14
|
*/
|
|
6
15
|
export declare function importHbomModule(): Promise<object>;
|
|
16
|
+
/**
|
|
17
|
+
* Load the optional CycloneDX 2.0 hardware mapper,
|
|
18
|
+
* `toCdx20HardwareComponent`, from the same cdx-hbom that importHbomModule
|
|
19
|
+
* loads: the local checkout when it exists (its src/common/cdx20.js), else
|
|
20
|
+
* the installed package's `./cdx20` export. A cdx-hbom without the mapper
|
|
21
|
+
* (the published 0.7.0 has no `./cdx20` export) or one that fails to load
|
|
22
|
+
* gives null, and the 2.0 render then keeps its generic conversion.
|
|
23
|
+
*
|
|
24
|
+
* @param {object} [locations] Where to look; defaults to
|
|
25
|
+
* HBOM_MODULE_LOCATIONS
|
|
26
|
+
* @returns {Promise<Function|null>} The mapper, or null
|
|
27
|
+
*/
|
|
28
|
+
export declare function loadHardwareMapper(locations?: object): Promise<Function | null>;
|
|
29
|
+
/** The identifier policy cdx-hbom records when raw identifiers were kept. */
|
|
30
|
+
export declare const RAW_IDENTIFIER_POLICY = "raw-identifiers-enabled";
|
|
31
|
+
/**
|
|
32
|
+
* The identifier policy the collector recorded for the run, on the HBOM
|
|
33
|
+
* subject (`metadata.component`) or in `metadata.properties`.
|
|
34
|
+
*
|
|
35
|
+
* @param {object} internalBom The 1.x-shaped internal model
|
|
36
|
+
* @returns {string|undefined} The `cdx:hbom:identifierPolicy` value
|
|
37
|
+
*/
|
|
38
|
+
export declare function recordedIdentifierPolicy(internalBom: object): string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The renderCycloneDx20 context for an internal model: the hardware mapper
|
|
41
|
+
* and its identifier options when the model has a component with a
|
|
42
|
+
* cdx:hbom:* property and a mapper is available, otherwise an empty context,
|
|
43
|
+
* so a BOM without hardware never loads cdx-hbom. Hardware identifiers are
|
|
44
|
+
* asserted only when the collector recorded `raw-identifiers-enabled` for the
|
|
45
|
+
* run (it does when HBOM generation was asked to include sensitive
|
|
46
|
+
* identifiers); a redacted run never yields identifiers, whichever command
|
|
47
|
+
* renders it.
|
|
48
|
+
*
|
|
49
|
+
* @param {object} internalBom The 1.x-shaped internal model
|
|
50
|
+
* @param {object} [locations] Passed to loadHardwareMapper
|
|
51
|
+
* @returns {Promise<{hardwareMapper?: Function, hardwareOptions?: {includeSensitiveIdentifiers: boolean, identifierPolicy?: string}}>}
|
|
52
|
+
* The render context
|
|
53
|
+
*/
|
|
54
|
+
export declare function hardwareRenderContext(internalBom: object, locations?: object): Promise<{
|
|
55
|
+
hardwareMapper?: Function;
|
|
56
|
+
hardwareOptions?: {
|
|
57
|
+
includeSensitiveIdentifiers: boolean;
|
|
58
|
+
identifierPolicy?: string;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
7
61
|
//# sourceMappingURL=hbomLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hbomLoader.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbomLoader.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hbomLoader.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbomLoader.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;EAIhC,CAAC;AAEH;;;;GAIG;AACH,wBAAsB,gBAAgB,IAFzB,OAAO,CAAC,MAAM,CAAC,CAqB3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CAAC,SAAS,AAJ/C,CAEA,EAFQ,MAI+D,GAF7D,OAAO,CAAC,WAAS,IAAI,CAAC,CA2BlC;AAgCD,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAHzC,MAGyC,GAFvC,MAAM,GAAC,SAAS,CAe5B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,qBAAqB,CAAC,WAAW,EAL5C,MAK4C,EAAE,SAAS,AAJ/D,CACA,EADQ,MAIuD,GAHrD,OAAO,CAAC;IAAC,cAAc,CAAC,WAAW;IAAC,eAAe,CAAC,EAAE;QAAC,2BAA2B,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,CAAC,CAmBrI"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare function listDirectory(directory: any): any;
|
|
2
|
+
export declare function isDirectory(path: any): any;
|
|
3
|
+
/**
|
|
4
|
+
* Look for a runtime no package manager owns, in the directories a spec names.
|
|
5
|
+
* Components come back only for the files nothing owns: a `file` component for
|
|
6
|
+
* each runtime binary or library the spec could read a build from, the
|
|
7
|
+
* components the spec's inventory builds from them, and the edges between them.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} options probe options, as probeHostPhp documents them
|
|
10
|
+
* @param {Object} spec the runtime: `label`, `ecosystem`, `capability`,
|
|
11
|
+
* `remediationId` (a remediation catalog id, spelled out by the caller),
|
|
12
|
+
* `maxProbes`, `directories(context)`, `classify(name, platform)`,
|
|
13
|
+
* `readBuild(context, candidate)`, `createInventory()`,
|
|
14
|
+
* `attach(inventory, component, build, candidate)`, `finish(inventory)`,
|
|
15
|
+
* optional `chocolateyPackages` and `chocolateyDirectories(context)` (where
|
|
16
|
+
* those packages unpack outside Chocolatey's folder), and `hooks` carrying
|
|
17
|
+
* the caller's
|
|
18
|
+
* `isDryRun`, `readEnvironmentVariable`, `recordActivity` and
|
|
19
|
+
* `recordDegradation`
|
|
20
|
+
* @returns {{components: Object[], dependencies: Object[]}}
|
|
21
|
+
*/
|
|
22
|
+
export declare function probeHostRuntime(options: Object, spec: Object): {
|
|
23
|
+
components: Object[];
|
|
24
|
+
dependencies: Object[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Ask the package databases of a POSIX host which package owns each path.
|
|
28
|
+
* The paths are named as the host names them (`/usr/lib/ruby/...`). A
|
|
29
|
+
* database that exists but cannot be read is reported, so the caller can tell
|
|
30
|
+
* "no owner" from "unknown".
|
|
31
|
+
*
|
|
32
|
+
* @param {Object} options probe options, as probeHostRuntime takes them
|
|
33
|
+
* @param {string[]} paths logical paths to look up
|
|
34
|
+
* @returns {{owners: Map<string, {database: string, packageName: string}>,
|
|
35
|
+
* unreadable: string[]}}
|
|
36
|
+
*/
|
|
37
|
+
export declare function findHostPathOwners(options: Object, paths: string[]): {
|
|
38
|
+
owners: Map<string, {
|
|
39
|
+
database: string;
|
|
40
|
+
packageName: string;
|
|
41
|
+
}>;
|
|
42
|
+
unreadable: string[];
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=hostRuntimeProbe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostRuntimeProbe.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hostRuntimeProbe.js"],"names":[],"mappings":"AAmDA,wBAAgB,aAAa,CAAC,SAAS,KAAA,OAMtC;AAED,wBAAgB,WAAW,CAAC,IAAI,KAAA,OAM/B;AAgeD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAb7B,MAa6B,EAAE,IAAI,EAZnC,MAYmC,GAFjC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CA2D1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAL/B,MAK+B,EAAE,KAAK,EAJtC,MAAM,EAIgC,GAHpC;IAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACtE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAC,CAqDzB"}
|
|
@@ -84,7 +84,11 @@ export declare function coursierCacheDir(): string | undefined;
|
|
|
84
84
|
*/
|
|
85
85
|
export declare function coursierPrefixToUrl(parts: string[]): string | null;
|
|
86
86
|
/**
|
|
87
|
-
* Locate a Maven coordinate's directory in the Coursier cache.
|
|
87
|
+
* Locate a Maven coordinate's directory in the Coursier cache. Coursier
|
|
88
|
+
* leaves an empty version directory behind in every repository it asked and
|
|
89
|
+
* missed, so a directory counts only when it holds the artifact's jar or POM;
|
|
90
|
+
* otherwise a project's own module would be credited to whichever repository
|
|
91
|
+
* the build happened to probe first.
|
|
88
92
|
*
|
|
89
93
|
* @param {string} group Maven groupId.
|
|
90
94
|
* @param {string} name Maven artifactId, including any Scala suffix.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jvmLocalRepos.d.ts","sourceRoot":"","sources":["../../../lib/inventory/jvmLocalRepos.js"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAF1B,IAAI,CAShB;AAuDD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAH7C,MAG6C,GAF3C,MAAM,GAAC,SAAS,CAkC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAJvB,MAAM,EAIiB,EAAE,OAAO,AAHxC,CACA,EADQ,MAGgD,GAF9C;IAAC,SAAS,CAA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FzD;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,GAAC,IAAI,CAmFtF;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EANnC,MAMmC,EAAE,IAAI,EALzC,MAKyC,EAAE,OAAO,EAJlD,MAIkD,GAHhD;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAsB7D;AA0ED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAH3C,MAG2C,GAFzC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAmD1H;AAiHD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAHpC,MAGoC,GAFlC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAqBzH"}
|
|
@@ -126,6 +126,18 @@ export declare function determineRequiredJavaVersion(toolPins: Array<{
|
|
|
126
126
|
* @returns {string|undefined} Minimum Gradle version, when capped.
|
|
127
127
|
*/
|
|
128
128
|
export declare function minimumGradleVersionForJava(javaMajor: number): string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Pick the newest stable Gradle version from `sdk list` output that can run on
|
|
131
|
+
* the given JDK major. Without a known cap this is the newest stable version,
|
|
132
|
+
* matching the plain default install; with a cap, versions below it are
|
|
133
|
+
* skipped so a project that declared a new JDK never gets a Gradle that
|
|
134
|
+
* refuses to run on it, even when the sdkman list is stale.
|
|
135
|
+
*
|
|
136
|
+
* @param {string} stdout Raw `sdk list gradle` output
|
|
137
|
+
* @param {number|undefined} javaMajor JDK major the Gradle daemon must run on
|
|
138
|
+
* @returns {string|undefined} Best matching version identifier.
|
|
139
|
+
*/
|
|
140
|
+
export declare function resolveGradleVersionForJava(stdout: string, javaMajor: number | undefined): string | undefined;
|
|
129
141
|
/**
|
|
130
142
|
* Collect the version tokens printed by `sdk list <candidate>`. The output is
|
|
131
143
|
* a fixed-width table whose cells may carry `+`, `*`, or `>` status markers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jvmToolEnv.d.ts","sourceRoot":"","sources":["../../../lib/inventory/jvmToolEnv.js"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,OAAO,EACL,eAAe,IAAI,qBAAqB,EACxC,gBAAgB,EAChB,mBAAmB,GACpB,CAAC;AAuBF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAHjC,MAGiC,GAF/B,OAAO,CASnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EALxC,MAKwC,GAJtC,MAAM,GAAC,SAAS,CAmB5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAJ3B,MAI2B,GAHzB,MAAM,GAAC,SAAS,CA4C5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAJtC,MAIsC,GAHpC,MAAM,GAAC,SAAS,CAwC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAJrC,MAIqC,GAHnC,MA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1 +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,
|
|
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,CAoGvB;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,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opt-in switch that points every Maven Central consumer at Google's public
|
|
3
|
+
* mirror: cdxgen's own POM, licence and metadata lookups, and every JVM build
|
|
4
|
+
* tool cdxgen runs (Maven and its wrapper, Gradle, sbt, Mill, Bazel and the
|
|
5
|
+
* Clojure tools). The value selects the mirror:
|
|
6
|
+
*
|
|
7
|
+
* `true`/`google` the global mirror bucket
|
|
8
|
+
* `eu` the Europe bucket
|
|
9
|
+
* `asia` the Asia bucket
|
|
10
|
+
* `http(s)://...` any other mirror or repository manager of Maven Central
|
|
11
|
+
*
|
|
12
|
+
* An explicit `MAVEN_CENTRAL_URL` still wins for cdxgen's own lookups, and a
|
|
13
|
+
* repository the user or the project already configures is never replaced:
|
|
14
|
+
* only the default Maven Central URLs are moved. Nothing is written to the
|
|
15
|
+
* scanned project or the user's home directory; the injection goes through
|
|
16
|
+
* command-line arguments and environment variables, and any settings or init
|
|
17
|
+
* script it needs is written under cdxgen's temp directory and removed again.
|
|
18
|
+
*/
|
|
19
|
+
export declare const MAVEN_CENTRAL_MIRROR_VAR = "MAVEN_CENTRAL_MIRROR";
|
|
20
|
+
/**
|
|
21
|
+
* Google's public Maven Central mirror buckets, named by region.
|
|
22
|
+
*
|
|
23
|
+
* @type {Object<string, string>}
|
|
24
|
+
*/
|
|
25
|
+
export declare const MAVEN_CENTRAL_MIRROR_URLS: Record<string, string>;
|
|
26
|
+
/**
|
|
27
|
+
* The default Maven Central repository URLs that the mirror replaces, for
|
|
28
|
+
* tools that name repositories by URL.
|
|
29
|
+
*
|
|
30
|
+
* @type {string[]}
|
|
31
|
+
*/
|
|
32
|
+
export declare const MAVEN_CENTRAL_DEFAULT_URLS: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Read the mirror switch. Undefined when cdxgen should use Maven Central
|
|
35
|
+
* itself, the mirror URL otherwise.
|
|
36
|
+
*
|
|
37
|
+
* @returns {string|undefined} Mirror base URL with a trailing slash
|
|
38
|
+
*/
|
|
39
|
+
export declare function mavenCentralMirrorUrl(): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the mirror switch is on. Names and URLs that do not resolve to a
|
|
42
|
+
* mirror leave it off, so a typo never silently redirects builds.
|
|
43
|
+
*
|
|
44
|
+
* @returns {boolean}
|
|
45
|
+
*/
|
|
46
|
+
export declare function isMavenCentralMirrorEnabled(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The repository cdxgen's own POM, licence and metadata lookups should fetch
|
|
49
|
+
* from. An explicit `MAVEN_CENTRAL_URL` is a deliberate choice, often a
|
|
50
|
+
* repository manager holding private artefacts, so it keeps winning over the
|
|
51
|
+
* mirror.
|
|
52
|
+
*
|
|
53
|
+
* @returns {string|undefined} Mirror URL, or undefined to keep the existing
|
|
54
|
+
* `MAVEN_CENTRAL_URL` behaviour
|
|
55
|
+
*/
|
|
56
|
+
export declare function mavenCentralFetchUrl(): string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Insert the mirror into the content of a settings file that is passed to
|
|
59
|
+
* Maven anyway, keeping every other element as it is. The mirror is appended
|
|
60
|
+
* to the existing ones, so the file's own mirror of Central still wins.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} content Existing settings.xml content
|
|
63
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
64
|
+
* @returns {string|undefined} Merged content, or undefined when the file
|
|
65
|
+
* holds no recognisable settings element to merge into
|
|
66
|
+
*/
|
|
67
|
+
export declare function mergeMavenMirrorSettings(content: string, mirrorUrl: string): string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Extra Maven arguments that send Central to the mirror, written as a global
|
|
70
|
+
* settings file under cdxgen's temp directory. An existing `-gs` settings
|
|
71
|
+
* file named by the caller is merged with the mirror instead, so a project
|
|
72
|
+
* that ships its own settings.xml keeps its repositories and its own mirror.
|
|
73
|
+
* A settings file the user named themselves (in `MVN_ARGS`/`MAVEN_ARGS`) is
|
|
74
|
+
* never touched, and neither is secure mode.
|
|
75
|
+
*
|
|
76
|
+
* @param {string} [existingSettingsFile] Settings file the caller already
|
|
77
|
+
* passes to Maven
|
|
78
|
+
* @returns {string[]} Arguments to append to the Maven command line
|
|
79
|
+
*/
|
|
80
|
+
export declare function mavenMirrorSettingsArgs(existingSettingsFile?: string): string[];
|
|
81
|
+
/**
|
|
82
|
+
* Environment for a Maven or Maven wrapper invocation that moves the
|
|
83
|
+
* wrapper's own distribution download off Maven Central. Plain `mvn`
|
|
84
|
+
* invocations ignore it.
|
|
85
|
+
*
|
|
86
|
+
* @returns {Object} Environment variables to add to the child process
|
|
87
|
+
*/
|
|
88
|
+
export declare function mavenWrapperMirrorEnv(): Object;
|
|
89
|
+
/**
|
|
90
|
+
* A Gradle init script that rewrites Maven Central repository URLs to the
|
|
91
|
+
* mirror as the settings and every project declare them. Repositories that are
|
|
92
|
+
* not Maven Central keep their URL, so private repositories and declared
|
|
93
|
+
* mirrors are untouched.
|
|
94
|
+
*
|
|
95
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
96
|
+
* @returns {string}
|
|
97
|
+
*/
|
|
98
|
+
export declare function gradleMirrorInitScript(mirrorUrl: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Extra Gradle arguments that install the mirror init script. Gradle applies
|
|
101
|
+
* every init script it is given, so cdxgen's own helper script keeps working.
|
|
102
|
+
*
|
|
103
|
+
* @returns {string[]} Arguments to append to the Gradle command line
|
|
104
|
+
*/
|
|
105
|
+
export declare function gradleMirrorInitScriptArgs(): string[];
|
|
106
|
+
/**
|
|
107
|
+
* An sbt launcher repositories file that resolves Maven Central from the
|
|
108
|
+
* mirror. The launcher replaces its default list with this file, so the
|
|
109
|
+
* plugin and Typesafe repositories it must still reach are named here, and
|
|
110
|
+
* only the Central entry points at the mirror.
|
|
111
|
+
*
|
|
112
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
113
|
+
* @returns {string}
|
|
114
|
+
*/
|
|
115
|
+
export declare function sbtRepositoriesFile(mirrorUrl: string): string;
|
|
116
|
+
/**
|
|
117
|
+
* Environment for an sbt invocation that resolves Maven Central from the
|
|
118
|
+
* mirror: a repositories file under cdxgen's temp directory, named through
|
|
119
|
+
* `SBT_OPTS`. A user who already configures repositories (`~/.sbt/repositories`
|
|
120
|
+
* or their own `sbt.repository.config`) keeps their configuration, and the
|
|
121
|
+
* mirror stays out of the way.
|
|
122
|
+
*
|
|
123
|
+
* @returns {Object} Environment variables to add to the child process
|
|
124
|
+
*/
|
|
125
|
+
export declare function sbtMirrorEnv(): Object;
|
|
126
|
+
/**
|
|
127
|
+
* Environment for tools that resolve through the Coursier CLI.
|
|
128
|
+
*
|
|
129
|
+
* @returns {Object} Environment variables to add to the child process
|
|
130
|
+
*/
|
|
131
|
+
export declare function coursierMirrorEnv(): Object;
|
|
132
|
+
/**
|
|
133
|
+
* Extra Bazel build arguments that hand the mirror to repository rules, whose
|
|
134
|
+
* environment Bazel otherwise keeps isolated from the client's. Repositories
|
|
135
|
+
* whose URLs the project pins, as rules_jvm_external projects do, are not
|
|
136
|
+
* changed by this; it covers the ones that resolve through Coursier defaults.
|
|
137
|
+
*
|
|
138
|
+
* @returns {string[]} Arguments to append to the Bazel build command line
|
|
139
|
+
*/
|
|
140
|
+
export declare function bazelMirrorArgs(): string[];
|
|
141
|
+
/**
|
|
142
|
+
* The `-Sdeps` data that repoints the default `central` repository of the
|
|
143
|
+
* Clojure CLI at the mirror. Repositories merge by name, so a project's other
|
|
144
|
+
* repositories, including Clojars, keep resolving as declared.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
147
|
+
* @returns {string}
|
|
148
|
+
*/
|
|
149
|
+
export declare function clojureMirrorSdeps(mirrorUrl: string): string;
|
|
150
|
+
/**
|
|
151
|
+
* Extra arguments for a Clojure CLI invocation. Skipped when the user already
|
|
152
|
+
* passes `-Sdeps`, whose data would otherwise be replaced.
|
|
153
|
+
*
|
|
154
|
+
* @param {string[]} baseArgs Arguments the caller already assembled
|
|
155
|
+
* @returns {string[]} Arguments to append
|
|
156
|
+
*/
|
|
157
|
+
export declare function clojureMirrorArgs(baseArgs?: string[]): string[];
|
|
158
|
+
/**
|
|
159
|
+
* Arguments for a Leiningen invocation that repoint its `central` repository
|
|
160
|
+
* at the mirror, through `lein update-in`, which changes the project map in
|
|
161
|
+
* memory and never the project.clj file. Skipped when the project declares
|
|
162
|
+
* its own `:mirrors`, which must keep winning.
|
|
163
|
+
*
|
|
164
|
+
* @param {string[]} baseArgs Arguments the caller already assembled
|
|
165
|
+
* @param {string} [projectFileContent] The project's project.clj, when the
|
|
166
|
+
* caller has it at hand
|
|
167
|
+
* @returns {string[]} Full argument list to invoke Leiningen with
|
|
168
|
+
*/
|
|
169
|
+
export declare function leiningenMirrorArgs(baseArgs: string[], projectFileContent?: string): string[];
|
|
170
|
+
//# sourceMappingURL=mavenCentralMirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mavenCentralMirror.d.ts","sourceRoot":"","sources":["../../../lib/inventory/mavenCentralMirror.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wBAIrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAF7B,MAAM,EAKf,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qB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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpConfigParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/mcpConfigParser.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcpConfigParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/mcpConfigParser.js"],"names":[],"mappings":"AAwxBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,EAFlB;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAC,CAAA;CAiD9H,CAAC"}
|