@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubyHostProbe.d.ts","sourceRoot":"","sources":["../../../lib/inventory/rubyHostProbe.js"],"names":[],"mappings":"AAwDA,eAAO,MAAM,gCAAgC,UAQ5C,CAAC;AAEF,eAAO,MAAM,YAAY;IACvB,KAAK;IACL,MAAM;CACP,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAJ3B,MAI2B,EAAE,OAAO,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CAwBpB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAH5B;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAGP,GAF1B,MAAM,EAAE,CAiBpB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAH7B,MAG6B,GAF3B,MAAM,EAAE,CAiBpB;AA0BD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,AAHlC,CACA,EADQ,MAG+B,GAF7B;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAmC1D"}
|
|
@@ -5,12 +5,17 @@
|
|
|
5
5
|
* formulation components carrying build-tool, build-script capability, native
|
|
6
6
|
* build dependency, and maturin metadata properties.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* Components record the manifest path relative to context.rootDir, the
|
|
9
|
+
* scanned project root.
|
|
10
|
+
*
|
|
11
|
+
* @type {{id: string, patterns: string[], parse(files: string[], options?: Object, context?: {rootDir?: string}): {components: Object[]}}}
|
|
9
12
|
*/
|
|
10
13
|
export declare const rustFormulationParser: {
|
|
11
14
|
id: string;
|
|
12
15
|
patterns: string[];
|
|
13
|
-
parse(files: string[]
|
|
16
|
+
parse(files: string[], options?: Object, context?: {
|
|
17
|
+
rootDir?: string;
|
|
18
|
+
}): {
|
|
14
19
|
components: Object[];
|
|
15
20
|
};
|
|
16
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rustFormulationParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/rustFormulationParser.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rustFormulationParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/rustFormulationParser.js"],"names":[],"mappings":"AA0TA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,EAFxB;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG;QAAC,UAAU,EAAE,MAAM,EAAE,CAAA;KAAC,CAAA;CAwBxI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalaCoords.d.ts","sourceRoot":"","sources":["../../../lib/inventory/scalaCoords.js"],"names":[],"mappings":"AAWA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAR5B,MAQ4B,GAP1B;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,GAAC,IAAI,CAAC;IACjF,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CA+B9C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAc,EACd,KAAU,EACV,YAAiB,EACjB,cAAmB,EACnB,OAAY,GACb,GAbE;IAAuB,IAAI,AAA3B,CACA,EADQ,MAAM,CACd;IAAuB,KAAK,AAA5B,CACA,EADQ,MAAM,CACd;IAAsB,YAAY,EAA1B,MAAM,CACd;IAAuB,cAAc,AAArC,CACA,EADQ,MAAM,CACd;IAAuB,OAAO,AAA9B,CACA,EADQ,MAAM,CACd;CAQG,GARO,MAAM,CAUlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAJrC,MAIqC,GAHnC,MAAM,GAAC,SAAS,CAK5B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAJrC,MAIqC,GAHnC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,GAAC,IAAI,CAAA;CAAE,GAAC,SAAS,CA2BjE;
|
|
1
|
+
{"version":3,"file":"scalaCoords.d.ts","sourceRoot":"","sources":["../../../lib/inventory/scalaCoords.js"],"names":[],"mappings":"AAWA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAR5B,MAQ4B,GAP1B;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,GAAC,IAAI,CAAC;IACjF,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CA+B9C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAc,EACd,KAAU,EACV,YAAiB,EACjB,cAAmB,EACnB,OAAY,GACb,GAbE;IAAuB,IAAI,AAA3B,CACA,EADQ,MAAM,CACd;IAAuB,KAAK,AAA5B,CACA,EADQ,MAAM,CACd;IAAsB,YAAY,EAA1B,MAAM,CACd;IAAuB,cAAc,AAArC,CACA,EADQ,MAAM,CACd;IAAuB,OAAO,AAA9B,CACA,EADQ,MAAM,CACd;CAQG,GARO,MAAM,CAUlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAJrC,MAIqC,GAHnC,MAAM,GAAC,SAAS,CAK5B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAJrC,MAIqC,GAHnC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,GAAC,IAAI,CAAA;CAAE,GAAC,SAAS,CA2BjE;AASD;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAH5B,MAG4B,GAF1B,MAAM,CAWlB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collapse the components that stand for one Scala library.
|
|
3
|
+
*
|
|
4
|
+
* A build tool such as sbt reports a library as `group:name@version` with the
|
|
5
|
+
* Scala binary suffix moved into `cdx:scala:compilerVersion`. The jars a scan
|
|
6
|
+
* finds on disk name the same library again, and not in the same way: with the
|
|
7
|
+
* suffix (`cats-core_3`), without a repository, or, for a jar without a Maven
|
|
8
|
+
* descriptor, only as the staged file name `<group>.<artifact>-<version>.jar`,
|
|
9
|
+
* which a filename-based guess splits at the wrong dot
|
|
10
|
+
* (`pkg:maven/cpg2-protos/io.appthreat.cpg2-protos_3`). Each of those is merged
|
|
11
|
+
* into the component the build tool reported. A staged jar of another version
|
|
12
|
+
* of a reported library, such as a stale build, keeps its own component but is
|
|
13
|
+
* renamed to the coordinates the reported library has.
|
|
14
|
+
*
|
|
15
|
+
* Spellings of the same coordinates merge only when they were built for the
|
|
16
|
+
* same Scala binary version, so the `_2.12` and `_2.13` artifacts of one
|
|
17
|
+
* library stay two components. Components that no reported library accounts
|
|
18
|
+
* for are left as they are.
|
|
19
|
+
*
|
|
20
|
+
* @param {Object[]} components BOM components
|
|
21
|
+
* @param {Object[]} dependencies BOM dependencies
|
|
22
|
+
* @returns {{components: Object[], dependencies: Object[], purlMap: Map<string, string>}}
|
|
23
|
+
* The collapsed components, the dependencies with references to merged
|
|
24
|
+
* components pointed at the component that remains, and the purl each
|
|
25
|
+
* merged or renamed component now has, keyed by the purl it had
|
|
26
|
+
*/
|
|
27
|
+
export declare function mergeScalaDuplicateComponents(components: Object[], dependencies: Object[]): {
|
|
28
|
+
components: Object[];
|
|
29
|
+
dependencies: Object[];
|
|
30
|
+
purlMap: Map<string, string>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Key the jar namespace map by the purls the components have after
|
|
34
|
+
* {@link mergeScalaDuplicateComponents}, so a merged or renamed jar still
|
|
35
|
+
* finds its namespaces. A purl that already has an entry keeps it, with the
|
|
36
|
+
* namespaces of the merged entry added.
|
|
37
|
+
*
|
|
38
|
+
* @param {Object} mapping Jar namespace map keyed by purl
|
|
39
|
+
* @param {Map<string, string>} purlMap New purl keyed by old purl
|
|
40
|
+
* @returns {Object} The re-keyed map
|
|
41
|
+
*/
|
|
42
|
+
export declare function rekeyNamespaceMapping(mapping: Object, purlMap: Map<string, string>): Object;
|
|
43
|
+
//# sourceMappingURL=scalaDedupe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalaDedupe.d.ts","sourceRoot":"","sources":["../../../lib/inventory/scalaDedupe.js"],"names":[],"mappings":"AAkMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAP7C,MAAM,EAOuC,EAAE,YAAY,EAN3D,MAAM,EAMqD,GALzD;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAC,CAoIxF;AAuDD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAJlC,MAIkC,EAAE,OAAO,EAH3C,GAAG,CAAC,MAAM,EAAE,MAAM,CAGyB,GAFzC,MAAM,CA6BlB"}
|
|
@@ -9,9 +9,24 @@ export declare const SUPPORTED_PURL_SOURCE_TYPES: string[];
|
|
|
9
9
|
* @returns {boolean} true if safe
|
|
10
10
|
*/
|
|
11
11
|
export declare function isSafeGitRefName(refName: string | undefined): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Determine whether git must refuse HTTP redirects. A git host allowlist is
|
|
14
|
+
* checked against the URL cdxgen is given, and git would otherwise follow
|
|
15
|
+
* the server's redirect on its first request to a host the allowlist never
|
|
16
|
+
* saw. Secure mode refuses redirects in the HTTP client too.
|
|
17
|
+
*
|
|
18
|
+
* @returns {boolean} true when a git host allowlist or secure mode applies
|
|
19
|
+
*/
|
|
20
|
+
export declare function gitRedirectsRefused(): boolean;
|
|
12
21
|
/**
|
|
13
22
|
* Execute git with hardened defaults.
|
|
14
23
|
*
|
|
24
|
+
* Every call runs with command-scope settings that keep the repository from
|
|
25
|
+
* running fsmonitor hooks or being opened as a bare repository. While a git
|
|
26
|
+
* host allowlist or secure mode applies, git also refuses HTTP redirects, so
|
|
27
|
+
* an allowed host cannot send a clone or ls-remote to a host the allowlist
|
|
28
|
+
* does not name.
|
|
29
|
+
*
|
|
15
30
|
* @param {string[]} args git arguments
|
|
16
31
|
* @param {Object} options command options
|
|
17
32
|
* @param {string|undefined} options.cwd working directory
|
|
@@ -104,6 +119,16 @@ export declare function validateAndRejectGitSource(filePath: string): Object | n
|
|
|
104
119
|
* @returns {string|undefined} lower-cased host, or undefined when it is ambiguous
|
|
105
120
|
*/
|
|
106
121
|
export declare function getGitRemoteHost(remote: string): string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Remove credentials from git output before it is logged. Every URL in the
|
|
124
|
+
* text loses its user name and password, which git copies into its error
|
|
125
|
+
* messages from the remote it was given.
|
|
126
|
+
*
|
|
127
|
+
* @param {string|undefined} text Output of a git command
|
|
128
|
+
* @param {string|undefined} repoUrl Remote the command was given
|
|
129
|
+
* @returns {string|undefined} Output with credentials replaced by ***
|
|
130
|
+
*/
|
|
131
|
+
export declare function redactGitOutput(text: string | undefined, repoUrl: string | undefined): string | undefined;
|
|
107
132
|
/**
|
|
108
133
|
* Clone a git repository into a temporary directory.
|
|
109
134
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../lib/inventory/source.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../lib/inventory/source.js"],"names":[],"mappings":"AAsCA,6FAA6F;AAC7F,eAAO,MAAM,4BAA4B,wIAC8F,CAAC;AAExI,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B,UAWvC,CAAC;AAuBF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAH7B,MAAM,GAAC,SAGsB,GAF3B,OAAO,CAUnB;AAuBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAFtB,OAAO,CAInB;AAiBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAR5B,MAAM,EAQsB,EAAE,OAAO,GAN7C;IAAkC,GAAG,EAA7B,MAAM,GAAC,SAAS,CACxB;IAAmC,YAAY,EAAvC,OAAO,GAAC,SAAS,CAGzB;CAEkD,GAFxC,MAAM,CAiElB;AA+ED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,C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oB,0DAJtB,MAAM,QACN,MAAM,KACJ;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAC,GAAC,SAsD/C,CAAC;AAyHF;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAAC,UAAU,AALvD,CACA,EADQ,MAAM,EAK8C,GAJlD;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAC,CA8FnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EALzB,MAKyB,GAJvB,MAAM,GAAC,SAAS,CA8D5B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAJxB,MAIwB,EAAE,UAAU,EAHpC,MAGoC,WA6C9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,GAAG,EANrB,MAMqB,EAAE,aAAa,EALpC,MAKoC,EAAE,QAAQ,EAJ9C,OAI8C,GAF7C,OAAO,CAiClB"}
|
|
@@ -157,6 +157,18 @@ export declare const extractFromManifest: (manifestFile: string, localData: Obje
|
|
|
157
157
|
* Returns the location of the layers with additional packages related metadata
|
|
158
158
|
*/
|
|
159
159
|
export declare const exportImage: (fullImageName: any, options: any) => Promise<any>;
|
|
160
|
+
/**
|
|
161
|
+
* The gem directories an image's environment names in GEM_HOME, GEM_PATH and
|
|
162
|
+
* BUNDLE_PATH. Only absolute paths without `..` segments are kept, so an image
|
|
163
|
+
* cannot steer the scan outside its own root, and each is normalized; the root
|
|
164
|
+
* and broad system directories such as /usr or /var are refused, so an image
|
|
165
|
+
* cannot turn the gem scan into a scan of the whole tree.
|
|
166
|
+
*
|
|
167
|
+
* @param {string[]|undefined} env image config Env entries, `NAME=value`
|
|
168
|
+
* @returns {string[]} absolute in-image directories, deduplicated, at most
|
|
169
|
+
* MAX_IMAGE_GEM_DIRS
|
|
170
|
+
*/
|
|
171
|
+
export declare function imageGemDirs(env: string[] | undefined): string[];
|
|
160
172
|
/**
|
|
161
173
|
* Method to retrieve path list for system-level packages
|
|
162
174
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../../lib/managers/docker.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../../lib/managers/docker.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAiDrC,yDAAyD;AACzD,eAAO,MAAM,KAAK,SAA0B,CAAC;AAC7C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAFtB,MAEoC,CAAC;AAkS/C;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,SAHnB,MAAM,KACJ,MAiBZ,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,QAoB3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,QA2CnC;AAyTD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,aANf,MAAM,gBAEN,MAAM,KACJ,OAAO,CAAC,MAAM,GAAC,SAAS,CA6HpC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,SANb,MAAM,UACN,MAAM,gBACN,MAAM,KACJ,OAAO,CAAC,MAAM,GAAC,MAAM,GAAC,SAAS,CAgC3C,CAAC;AA8CF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,gBAAgB,kBAHlB,MAAM,KACJ,OAsEZ,CAAC;AAgBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,kBAJ3B,MAAM,aACN,MAAM,KACJ,OAmBZ,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;;;CA2E1B,CAAC;AAyFF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,QAFlB,MAgCZ,CAAC;AAkBF;;GAEG;AACH,eAAO,MAAM,QAAQ,sCA6MpB,CAAC;AAkBC,YAA4B,gBAAgB,GAAlC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAkB;AAmH/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,kBANZ,MAAM,OACN,MAAM,WACN,MAAM,KACJ,OAAO,CAAC,OAAO,CAqF3B,CAAC;AAiGF;;;GAGG;AACH,eAAO,MAAM,aAAa,mEAqGzB,CAAC;AA2KF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,iBATrB,MAAM,aACN,MAAM,WACN,MAAM,wBACN,MAAM,WACN,MAAM,KACJ,OAAO,CAAC,MAAM,CAwK1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,oDAyJvB,CAAC;AAgCF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAJrB,MAAM,EAAE,GAAC,SAIY,GAHnB,MAAM,EAAE,CA+BpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,iDAyJ1B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,kBALb,MAAM,UACN,OAAO,KACL,OAAO,CAAC,MAAM,GAAC,SAAS,CAKpC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,cALpB,MAAM,iBACN,MAAM,KACJ,MAAM,GAAC,SA2CnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,qBAHpB,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,CAAC,cACnC,KAAK,CAAC,MAAM,CAAC,SA4BvB,CAAC"}
|
|
@@ -42,13 +42,17 @@ export declare function repoIdFromFixtureDirectory(filePath: string): string | u
|
|
|
42
42
|
*
|
|
43
43
|
* @param {string} modelRef model, dataset, or space reference
|
|
44
44
|
* @param {{ includeDatasetPurl?: boolean }} [options={}] pedigree reference options
|
|
45
|
-
* @returns {{ "bom-ref": string, group: string, name: string, purl?: string, type: string }|undefined} component reference
|
|
45
|
+
* @returns {{ "bom-ref": string, group: string, name: string, purl?: string, supplier?: { name: string, url?: string[] }, type: string }|undefined} component reference
|
|
46
46
|
*/
|
|
47
47
|
export declare function createHuggingFaceComponentReference(modelRef: string, _options?: {}): {
|
|
48
48
|
"bom-ref": string;
|
|
49
49
|
group: string;
|
|
50
50
|
name: string;
|
|
51
51
|
purl?: string;
|
|
52
|
+
supplier?: {
|
|
53
|
+
name: string;
|
|
54
|
+
url?: string[];
|
|
55
|
+
};
|
|
52
56
|
type: string;
|
|
53
57
|
} | undefined;
|
|
54
58
|
/**
|
|
@@ -75,6 +79,7 @@ export declare function createHuggingFaceComponentReference(modelRef: string, _o
|
|
|
75
79
|
* properties?: Array<object>,
|
|
76
80
|
* purl?: string,
|
|
77
81
|
* scope?: string,
|
|
82
|
+
* supplier?: { name: string, url?: string[] },
|
|
78
83
|
* tags?: string[],
|
|
79
84
|
* type: "data",
|
|
80
85
|
* },
|
|
@@ -110,6 +115,10 @@ export declare function createHuggingFaceDatasetReference(dataset: object | stri
|
|
|
110
115
|
properties?: Array<object>;
|
|
111
116
|
purl?: string;
|
|
112
117
|
scope?: string;
|
|
118
|
+
supplier?: {
|
|
119
|
+
name: string;
|
|
120
|
+
url?: string[];
|
|
121
|
+
};
|
|
113
122
|
tags?: string[];
|
|
114
123
|
type: "data";
|
|
115
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"huggingfaceManifest.d.ts","sourceRoot":"","sources":["../../../lib/parsers/huggingfaceManifest.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"huggingfaceManifest.d.ts","sourceRoot":"","sources":["../../../lib/parsers/huggingfaceManifest.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,EAFnC,MAAM,EAE6D,CAAC;AAC9E;;;;GAIG;AACH,eAAO,MAAM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AAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAC,SAAS,KAAK,MAAM,GAAC,SAAS,CAAA;CAOzD,GAND,MAAM,GAAC,SAAS,CAsF5B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,AATP,CACA,EADQ,MASD,EACR,aAAa,AATZ,CACA,EADQ,MASI,EACb,YAAY,EATH,MAAM,GAAC,SASJ,EACZ,OAAO,AATN,CAGA,EAHQ;IACN,4BAA4B,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAC,SAAS,CAAC;CAQ7D,GAND,MAAM,GAAC,SAAS,CAiD5B"}
|
|
@@ -71,6 +71,18 @@ export declare function toHuggingFaceAssetPath(assetType: string, repoId: string
|
|
|
71
71
|
* @returns {string|undefined} canonical URL under huggingface.co
|
|
72
72
|
*/
|
|
73
73
|
export declare function toHuggingFaceAssetUrl(assetType: string, repoId: string): string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Build the supplier entity for a Hugging Face namespace: the namespace as
|
|
76
|
+
* the name and its organisation or user page as the url. The url is left
|
|
77
|
+
* out when the namespace has characters a Hub account name cannot have.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} namespace Hugging Face organisation or user name
|
|
80
|
+
* @returns {{ name: string, url?: string[] }|undefined} supplier entity
|
|
81
|
+
*/
|
|
82
|
+
export declare function toHuggingFaceSupplier(namespace: string): {
|
|
83
|
+
name: string;
|
|
84
|
+
url?: string[];
|
|
85
|
+
} | undefined;
|
|
74
86
|
/**
|
|
75
87
|
* Convert a Hugging Face repo reference to a package URL.
|
|
76
88
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"huggingfaceUtils.d.ts","sourceRoot":"","sources":["../../../lib/parsers/huggingfaceUtils.js"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAFd,MAEyC,CAAC;AACpD;;;;;;GAMG;AACH,eAAO,MAAM,+BA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AyBtG;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,AAHhD,CACA,EADQ,KAAK,CAAC,MAAM,CAGiC,GAF3C,KAAK,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAyBlE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,kBAAkB,EAHnD,MAAM,GAAC,MAG4C,GAFjD,MAAM,GAAC,SAAS,CAoB5B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Summarize Kiro CLI V3 permission documents into policy-safe posture facts.
|
|
3
|
+
*
|
|
4
|
+
* Kiro V3 describes what an agent may do with `capability`/`effect` rules that
|
|
5
|
+
* live in an agent definition's `permissions` object, in the user-scope
|
|
6
|
+
* `~/.kiro/settings/permissions.yaml`, and in the per-workspace
|
|
7
|
+
* `~/.kiro/workspace-roots/<hash>/permissions.yaml`. The rules carry `match`
|
|
8
|
+
* pattern lists, free-text reasons, and paths, none of which belong in a BOM.
|
|
9
|
+
* This module reduces a document to counts, allowlisted effect counts,
|
|
10
|
+
* validated capability names, and booleans, and never returns the patterns or
|
|
11
|
+
* any other free text.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Summarize a Kiro V3 permission document.
|
|
15
|
+
*
|
|
16
|
+
* Accepts the parsed `permissions` object of an agent definition or a parsed
|
|
17
|
+
* `permissions.yaml` document. A bare rules array is accepted as well. The
|
|
18
|
+
* result carries only counts, booleans, and validated token lists; `match`
|
|
19
|
+
* patterns, `exclude` lists, reasons, and paths are never returned.
|
|
20
|
+
*
|
|
21
|
+
* @param {Object|Array|undefined} rulesOrDoc Parsed permissions object, YAML
|
|
22
|
+
* document, or rules array
|
|
23
|
+
* @returns {{
|
|
24
|
+
* ruleCount: number,
|
|
25
|
+
* allowRuleCount: number,
|
|
26
|
+
* denyRuleCount: number,
|
|
27
|
+
* askRuleCount: number,
|
|
28
|
+
* evaluateRuleCount: number,
|
|
29
|
+
* capabilities: string[],
|
|
30
|
+
* allowsAllCapabilities: boolean,
|
|
31
|
+
* unrestrictedAllowCapabilities: string[],
|
|
32
|
+
* workspaceTrusted: boolean|undefined,
|
|
33
|
+
* policyPresets: string[],
|
|
34
|
+
* unknownPolicyPresetCount: number,
|
|
35
|
+
* }} Permission posture summary
|
|
36
|
+
*/
|
|
37
|
+
export declare function summarizeKiroPermissions(rulesOrDoc: Object | any[] | undefined): {
|
|
38
|
+
ruleCount: number;
|
|
39
|
+
allowRuleCount: number;
|
|
40
|
+
denyRuleCount: number;
|
|
41
|
+
askRuleCount: number;
|
|
42
|
+
evaluateRuleCount: number;
|
|
43
|
+
capabilities: string[];
|
|
44
|
+
allowsAllCapabilities: boolean;
|
|
45
|
+
unrestrictedAllowCapabilities: string[];
|
|
46
|
+
workspaceTrusted: boolean | undefined;
|
|
47
|
+
policyPresets: string[];
|
|
48
|
+
unknownPolicyPresetCount: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Flatten a permission summary into property suffix/value pairs.
|
|
52
|
+
*
|
|
53
|
+
* Both scans that consume Kiro permission documents emit the same suffixes;
|
|
54
|
+
* the host scan prefixes them with `cdx:agentic:` and the project scan with
|
|
55
|
+
* `cdx:agent:`. Values are numbers, booleans, or comma-separated validated
|
|
56
|
+
* tokens, so no free text reaches a BOM through this mapping.
|
|
57
|
+
*
|
|
58
|
+
* @param {ReturnType<summarizeKiroPermissions>} summary Permission posture summary
|
|
59
|
+
* @returns {Record<string, number|boolean|string>} Property suffix mapped to its value
|
|
60
|
+
*/
|
|
61
|
+
export declare function kiroPermissionSummaryEntries(summary: ReturnType<summarizeKiroPermissions>): Record<string, number | boolean | string>;
|
|
62
|
+
//# sourceMappingURL=kiroPermissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kiroPermissions.d.ts","sourceRoot":"","sources":["../../../lib/parsers/kiroPermissions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA+BH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAhBxC,MAAM,WAAO,SAgB2B,GAdtC;IACR,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,gBAAgB,EAAE,OAAO,GAAC,SAAS,CAAC;IACpC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAyDH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAHzC,UAAU,CAAC,wBAAwB,CAGM,GAFvC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAC,OAAO,GAAC,MAAM,CAAC,CAiCjD"}
|
|
@@ -35,9 +35,10 @@ export declare function readJsonMember(filePath: string, name: string, options?:
|
|
|
35
35
|
* more than a bounded run of it in one string.
|
|
36
36
|
*
|
|
37
37
|
* `spec` narrows what is kept. `{ members: { name: spec } }` keeps only the
|
|
38
|
-
* named members of an object, each narrowed by its own spec. `{
|
|
39
|
-
*
|
|
40
|
-
* keeps the
|
|
38
|
+
* named members of an object, each narrowed by its own spec. `{ map }`
|
|
39
|
+
* transforms each element of an array, an undefined result dropping it, and
|
|
40
|
+
* `{ filter }` keeps the mapped elements that `filter(element)` accepts.
|
|
41
|
+
* Anything else keeps the whole value.
|
|
41
42
|
*
|
|
42
43
|
* @param {string} filePath JSON file
|
|
43
44
|
* @param {{start: number, end: number}} range Byte range of the value, such as one returned by indexJsonObject
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"largeJson.d.ts","sourceRoot":"","sources":["../../../lib/parsers/largeJson.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"largeJson.d.ts","sourceRoot":"","sources":["../../../lib/parsers/largeJson.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAA8B,CAAC;AAqZ/D;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAL7B,MAK6B,EAAE,OAAO,AAJ9C,CACA,EADQ,MAI2C,GAHzC,GAAG,CAAC,MAAM,EAAE;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,CAAC,CAarD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAN5B,MAM4B,EAAE,IAAI,EALlC,MAKkC,EAAE,OAAO,AAJnD,CACA,EADQ,MAIgD,GAH9C,GAAC,CAiBb;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAP3B,MAO2B,EAAE,KAAK,EANlC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAMO,EAAE,IAAI,AALhD,CACA,EADQ,MAKoD,EAAE,OAAO,AAJrE,CACA,EADQ,MAIkE,GAHhE,GAAC,CAOb;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAN1B,MAM0B,EAAE,IAAI,AALxC,CACA,EADQ,MAK4C,EAAE,OAAO,AAJ7D,CACA,EADQ,MAI0D,GAHxD,GAAC,CASb"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Target platforms a VS Code-family marketplace publishes an extension for.
|
|
3
|
+
* `universal` and `web` builds are the same artefact on every platform and are
|
|
4
|
+
* not part of the extension's identity.
|
|
5
|
+
*/
|
|
6
|
+
export declare const VSCODE_TARGET_PLATFORMS: Set<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Normalize a target platform value from a manifest, an `extensions.json`
|
|
9
|
+
* record, or a folder name. Values that do not name a specific platform, such
|
|
10
|
+
* as `universal`, `web`, `undefined`, or an empty string, return an empty
|
|
11
|
+
* string.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} value Raw target platform
|
|
14
|
+
* @returns {string} A value from VSCODE_TARGET_PLATFORMS, or an empty string
|
|
15
|
+
*/
|
|
16
|
+
export declare function normalizeVscodeTargetPlatform(value: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Split an installed extension folder name into its publisher, name, version
|
|
19
|
+
* and target platform.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} dirName Folder name, such as `ms-python.python-2025.4.0` or
|
|
22
|
+
* `anthropic.claude-code-2.1.313-darwin-arm64`
|
|
23
|
+
* @returns {{publisher: string, name: string, version: string, platform: string}|undefined}
|
|
24
|
+
* The parts, or undefined when the name does not follow the pattern
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseVscodeExtensionDirName(dirName: string): {
|
|
27
|
+
publisher: string;
|
|
28
|
+
name: string;
|
|
29
|
+
version: string;
|
|
30
|
+
platform: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Check a string is a semantic version: three numeric parts, then an optional
|
|
34
|
+
* `-prerelease` and `+build`.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} text Candidate version
|
|
37
|
+
* @returns {boolean} true for a semver
|
|
38
|
+
*/
|
|
39
|
+
export declare function isSemver(text: string): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Read the target platform from the path of an installed extension folder.
|
|
42
|
+
*
|
|
43
|
+
* @param {string} extensionPath Path to the extension folder, with either
|
|
44
|
+
* separator
|
|
45
|
+
* @returns {string} The target platform, or an empty string
|
|
46
|
+
*/
|
|
47
|
+
export declare function vscodeExtensionPlatformFromPath(extensionPath: string): string;
|
|
48
|
+
//# sourceMappingURL=vscodeExtensionId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vscodeExtensionId.d.ts","sourceRoot":"","sources":["../../../lib/parsers/vscodeExtensionId.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,aAWlC,CAAC;AAKH;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAHxC,MAGwC,GAFtC,MAAM,CAKlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EALxC,MAKwC,GAHtC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAyD1F;AA+BD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAHlB,MAGkB,GAFhB,OAAO,CAuBnB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,aAAa,EAJlD,MAIkD,GAFhD,MAAM,CAQlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../lib/server/server.js"],"names":[],"mappings":"AAWA,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../lib/server/server.js"],"names":[],"mappings":"AAWA,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAwF7B,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAc7B;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAJnB,MAAM,GAAC,MAAM,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,CAId,GAHjB,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAC,CAwC9D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EALvB,MAKuB,EAAE,IAAI,AAJrC,CACA,EADQ,MAIkC,EAAE,OAAO,AAHnD,CACA,EADQ,MAGgD,GAF9C,MAAM,CAwBlB;AA0CD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAJtC,MAIsC,EAAE,eAAe,GAHvD,MAG4D,GAF1D,MAAM,GAAC,IAAI,CA0FvB;AAUD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAHvB,MAGuB,GAFrB,MAAM,CAiClB;AAiBD;;;;;GAKG;AACH,QAAA,MAAM,eAAe,iBAHV,OAAO,WAAW,EAAE,MAAM,KACxB,IAOZ,CAAC;AAwBF;;;;;;;;;GASG;AACH,QAAA,MAAM,KAAK,YAHA,MAAM,KACJ,IAwYZ,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Filter and enhance BOM post generation.
|
|
3
3
|
*
|
|
4
|
+
* At CycloneDX 2.0 the returned `bomNSData` carries two documents:
|
|
5
|
+
* `bomJson` is the rendered 2.0 document (what library users, the server and
|
|
6
|
+
* the writer see), and `internalBomJson` is the 1.x-shaped model the audit,
|
|
7
|
+
* evinse, display and SPDX-export readers use. `internalBomJson` is never
|
|
8
|
+
* serialized; `refreshRenderedBom` re-renders `bomJson` from it after any
|
|
9
|
+
* later mutation. At 1.x `internalBomJson` is unset.
|
|
10
|
+
*
|
|
4
11
|
* @param {Object} bomNSData BOM with namespaces object
|
|
5
12
|
* @param {Object} options CLI options
|
|
6
13
|
* @param {string} [filePath] Source path used for formulation and metadata context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgen.d.ts","sourceRoot":"","sources":["../../../../lib/stages/postgen/postgen.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postgen.d.ts","sourceRoot":"","sources":["../../../../lib/stages/postgen/postgen.js"],"names":[],"mappings":"AAuiBA;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,WAAW,CAAC,SAAS,EANhC,MAMgC,EAAE,OAAO,EALzC,MAKyC,EAAE,QAAQ,AAJ3D,CAEA,EAFQ,MAImD,GAFjD,OAAO,CAAC,MAAM,CAAC,CAiG3B;AAgHD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAL1B,MAK0B,EAAE,OAAO,EAJnC,MAImC,GAFjC,MAAM,CA2JlB;AAuCD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAL3B,MAK2B,EAAE,OAAO,EAJpC,MAIoC,GAFlC,MAAM,CAqClB;AAqHD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EALvC,MAKuC,EAAE,OAAO,EAJhD,MAIgD,GAF9C,MAAM,EAAE,CAmBpB;AAgBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EALrC,MAKqC,EAAE,OAAO,EAJ9C,MAI8C,GAF5C,MAAM,CAiClB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,OAAO,EALtB,MAKsB,EAAE,OAAO,EAJ/B,MAI+B,GAF7B,MAAM,CAoNlB;AAUD;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,KAAA,QAUlC;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,IAFhB,IAAI,CAYhB;AAMD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EALrB,MAKqB,EAAE,OAAO,EAJ9B,MAI8B,GAF5B,MAAM,CA2HlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleEngine.d.ts","sourceRoot":"","sources":["../../../../lib/stages/postgen/ruleEngine.js"],"names":[],"mappings":"AAkiBA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAJpC,GAIoC,GAHlC,MAAM,GAAC,SAAS,CA0B5B;AAED,wBAAsB,SAAS,CAAC,QAAQ,KAAA,kBAqFvC;
|
|
1
|
+
{"version":3,"file":"ruleEngine.d.ts","sourceRoot":"","sources":["../../../../lib/stages/postgen/ruleEngine.js"],"names":[],"mappings":"AAkiBA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAJpC,GAIoC,GAHlC,MAAM,GAAC,SAAS,CA0B5B;AAED,wBAAsB,SAAS,CAAC,QAAQ,KAAA,kBAqFvC;AAyCD;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,EAAE,OAAO,KAAK,GAFjD,OAAO,OAAO,CAuF1B;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA,EAAE,OAAO,KAAK,kBAY/D"}
|
|
@@ -68,4 +68,29 @@ export declare function collectFieldPaths(subject: Object, prefix?: string, path
|
|
|
68
68
|
* @returns {string[]} Sorted field paths that no longer appear
|
|
69
69
|
*/
|
|
70
70
|
export declare function diffRemovedFieldPaths(sourceBomJson: Object, normalizedBomJson: Object): string[];
|
|
71
|
+
/**
|
|
72
|
+
* Count the leaf values of a JSON document as `path=value` strings, using
|
|
73
|
+
* the dotted, index-free paths of collectFieldPaths. Array order is ignored,
|
|
74
|
+
* so two documents that differ only in member order give the same counts,
|
|
75
|
+
* but a repeated entry counts once per occurrence. Empty arrays and objects
|
|
76
|
+
* count as leaves.
|
|
77
|
+
*
|
|
78
|
+
* @param {*} subject JSON value
|
|
79
|
+
* @param {string} [prefix] Path so far
|
|
80
|
+
* @param {Map<string, number>} [leaves] Accumulator
|
|
81
|
+
* @returns {Map<string, number>} Occurrences of each `path=value` string
|
|
82
|
+
*/
|
|
83
|
+
export declare function collectLeafValues(subject: any, prefix?: string, leaves?: Map<string, number>): Map<string, number>;
|
|
84
|
+
/**
|
|
85
|
+
* Report the leaf values of `sourceBomJson` that `convertedBomJson` lacks,
|
|
86
|
+
* ignoring member order (see collectLeafValues). A value the source holds
|
|
87
|
+
* more often than the output is reported once for every missing occurrence,
|
|
88
|
+
* so dropping one of two identical entries counts.
|
|
89
|
+
*
|
|
90
|
+
* @param {Object} sourceBomJson BOM before conversion
|
|
91
|
+
* @param {Object} convertedBomJson BOM after conversion
|
|
92
|
+
* @returns {string[]} Sorted `path=value` strings missing from the output,
|
|
93
|
+
* repeated per missing occurrence
|
|
94
|
+
*/
|
|
95
|
+
export declare function diffMissingLeafValues(sourceBomJson: Object, convertedBomJson: Object): string[];
|
|
71
96
|
//# sourceMappingURL=specVersionCompat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specVersionCompat.d.ts","sourceRoot":"","sources":["../../../../lib/stages/postgen/specVersionCompat.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"specVersionCompat.d.ts","sourceRoot":"","sources":["../../../../lib/stages/postgen/specVersionCompat.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AA+TH;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAJrC,MAIqC,EAAE,OAAO,EAH9C,MAG8C,GAF5C,MAAM,CAclB;AAsUD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAJ1C,MAI0C,EAAE,OAAO,EAHnD,MAGmD,GAFjD,MAAM,CAgClB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAL9B,MAK8B,EAAE,MAAM,AAJ9C,CACA,EADQ,MAI2C,EAAE,KAAK,AAH1D,CACA,EADQ,GAAG,CAAC,MAAM,CAGoD,GAF5D,GAAG,CAAC,MAAM,CAAC,CAkBvB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAJxC,MAIwC,EAAE,iBAAiB,EAH3D,MAG2D,GAFzD,MAAM,EAAE,CAOpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAL9B,GAK8B,EAAE,MAAM,AAJ9C,CACA,EADQ,MAI2C,EAAE,MAAM,AAH3D,CACA,EADQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAG6C,GAF7D,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6B/B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EALxC,MAKwC,EAAE,gBAAgB,EAJ1D,MAI0D,GAHxD,MAAM,EAAE,CAYpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envAudit.d.ts","sourceRoot":"","sources":["../../../../lib/stages/pregen/envAudit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"envAudit.d.ts","sourceRoot":"","sources":["../../../../lib/stages/pregen/envAudit.js"],"names":[],"mappings":"AA4JA;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,AAJjC,CACA,EADQ,MAIuC,EAAE,OAAO,AAHxD,CACA,EADQ,MAGqD,GAFnD,MAAM,EAAE,CAsQpB"}
|
|
@@ -23,6 +23,13 @@ export declare function prepareDotnetEnv(filePath: string, options: Object): voi
|
|
|
23
23
|
* @param {String} projectType Project type
|
|
24
24
|
*/
|
|
25
25
|
export declare function prepareSdkmanBuild(projectType: string): boolean | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* JDK major a versioned java project type names, such as 27 for `java27`.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} projectType Project type
|
|
30
|
+
* @returns {number|undefined} The major, or undefined for any other type
|
|
31
|
+
*/
|
|
32
|
+
export declare function javaMajorFromProjectType(projectType: string): number | undefined;
|
|
26
33
|
/**
|
|
27
34
|
* Method to detect and provision JVM build tools (maven, gradle, sbt, scala)
|
|
28
35
|
* plus a compatible JDK before BOM generation.
|
|
@@ -79,11 +86,14 @@ export declare function detectJvmToolsFromRepo(filePath: string, explicitPins: a
|
|
|
79
86
|
* and to pick defaults.
|
|
80
87
|
*
|
|
81
88
|
* @param {Object} pin `{ tool, version?, source }`
|
|
89
|
+
* @param {Number|undefined} javaMajor JDK major the project declared or
|
|
90
|
+
* configured, when known. Constrains the default Gradle install so a
|
|
91
|
+
* project on a new JDK never resolves a Gradle that cannot run on it.
|
|
82
92
|
*
|
|
83
93
|
* @returns {Object|undefined} Pin with an exact version, or undefined when no
|
|
84
94
|
* version could be determined.
|
|
85
95
|
*/
|
|
86
|
-
export declare function resolveJvmToolPinVersion(pin: Object): Object | undefined;
|
|
96
|
+
export declare function resolveJvmToolPinVersion(pin: Object, javaMajor: number | undefined): Object | undefined;
|
|
87
97
|
/**
|
|
88
98
|
* Fetch the versions available for a candidate via `sdk list`.
|
|
89
99
|
*
|
|
@@ -193,11 +203,5 @@ export declare function doNpmInstall(filePath: string, nvmNodePath: string, opti
|
|
|
193
203
|
* @param {Object} options CLI Options
|
|
194
204
|
*/
|
|
195
205
|
export declare function prepareSwiftEnv(filePath: string, options: Object): void;
|
|
196
|
-
|
|
197
|
-
* Method to check and prepare the environment for Ruby projects
|
|
198
|
-
*
|
|
199
|
-
* @param {String} filePath Path
|
|
200
|
-
* @param {Object} options CLI Options
|
|
201
|
-
*/
|
|
202
|
-
export declare function prepareRubyEnv(filePath: string, options: Object): void;
|
|
206
|
+
export declare function prepareRubyEnv(filePath: any, options: any): void;
|
|
203
207
|
//# sourceMappingURL=pregen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pregen.d.ts","sourceRoot":"","sources":["../../../../lib/stages/pregen/pregen.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pregen.d.ts","sourceRoot":"","sources":["../../../../lib/stages/pregen/pregen.js"],"names":[],"mappings":"AAiFA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,QAAQ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6BAA6B,CAAC,iBAAiB,OAAA,EAAE,SAAS,QAAA,QAwBzE;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EALzB,MAKyB,EAAE,OAAO,EAJlC,MAIkC,WA4C5C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAF7B,MAE6B,QA2BvC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,QAAA,EAAE,OAAO,EAFxC,MAEwC,QAwDlD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,QAAA,EAAE,OAAO,EAFrC,MAEqC,QAuE/C;AA+BD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,QAAA,WAsBnD;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,QAAA,EAAE,WAAW,QAAA,EAAE,OAAO,AAFxD,CACF,EADU,MAEqD,QA8D/D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,QAAA,EAAE,OAAO,EAFtC,MAEsC,QAmGhD;AAmBD,wBAAgB,cAAc,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAA,QA4T/C"}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
* Validate the generated bom using jsonschema
|
|
3
3
|
*
|
|
4
4
|
* @param {object} bomJson content
|
|
5
|
+
* @param {object} [options] Validation options
|
|
6
|
+
* @param {boolean} [options.deep] Run the deep validators after the schema check. Defaults to true.
|
|
5
7
|
*
|
|
6
8
|
* @returns {Promise<Boolean>} true if the BOM is valid. false otherwise.
|
|
7
9
|
*/
|
|
8
|
-
export declare const validateBom: (bomJson: object
|
|
10
|
+
export declare const validateBom: (bomJson: object, options?: {
|
|
11
|
+
deep?: boolean;
|
|
12
|
+
}) => Promise<boolean>;
|
|
9
13
|
/**
|
|
10
14
|
* Validate the generated SPDX export.
|
|
11
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bomValidator.d.ts","sourceRoot":"","sources":["../../../lib/validator/bomValidator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bomValidator.d.ts","sourceRoot":"","sources":["../../../lib/validator/bomValidator.js"],"names":[],"mappings":"AA4QA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,YANb,MAAM,YAEd;IAA0B,IAAI,AAA9B,CAEA,EAFQ,OAAO,CAEf;CAAA,KAAU,OAAO,SAsCnB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,aAHd,MAAM,GAAC,MAAM,KACX,OAyLZ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAFlB,MAAM,YAmEhB,CAAC;AA4CF;;;;GAIG;AACH,eAAO,MAAM,aAAa,YAFf,MAAM,YA+HhB,CAAC;AA2CF;;;;GAIG;AACH,eAAO,MAAM,YAAY,YAFd,MAAM,YAmFhB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAF1B,MAE0B,WAkIpC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Orchestrates evaluation of internal compliance rule packs (SCVS + CRA)
|
|
3
|
-
* aggregates results into per-benchmark scorecards.
|
|
2
|
+
* Orchestrates evaluation of internal compliance rule packs (SCVS + CRA + CISA)
|
|
3
|
+
* and aggregates results into per-benchmark scorecards.
|
|
4
4
|
*
|
|
5
5
|
* This module is deliberately independent of the CycloneDX BOM audit engine
|
|
6
6
|
* (lib/stages/postgen/auditBom.js). The two engines share similar *Finding*
|
|
7
7
|
* output shape so reporters can consume either source uniformly.
|
|
8
8
|
*/
|
|
9
|
-
import { getAllComplianceRules, getCraRules, getScvsRules } from "./complianceRules.js";
|
|
9
|
+
import { getAllComplianceRules, getCisaAiRules, getCisaRules, getCraRules, getScvsRules } from "./complianceRules.js";
|
|
10
10
|
/**
|
|
11
11
|
* Resolve a benchmark alias (case-insensitive). Returns null when unknown.
|
|
12
12
|
*
|
|
@@ -68,5 +68,5 @@ export declare function scoreBenchmark(benchmark: object, findings: Array<object
|
|
|
68
68
|
* @returns {Array<object>}
|
|
69
69
|
*/
|
|
70
70
|
export declare function buildBenchmarkReports(findings: Array<object>, requestedAliases?: Array<string>): Array<object>;
|
|
71
|
-
export { getAllComplianceRules, getCraRules, getScvsRules };
|
|
71
|
+
export { getAllComplianceRules, getCisaAiRules, getCisaRules, getCraRules, getScvsRules, };
|
|
72
72
|
//# sourceMappingURL=complianceEngine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complianceEngine.d.ts","sourceRoot":"","sources":["../../../lib/validator/complianceEngine.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,YAAY,EACb,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"complianceEngine.d.ts","sourceRoot":"","sources":["../../../lib/validator/complianceEngine.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACb,MAAM,sBAAsB,CAAC;AAyE9B;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAH3B,MAG2B,GAFzB,MAAM,GAAG,IAAI,CAKzB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAFjB,KAAK,CAAC,MAAM,CAAC,CAIzB;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAJtB,MAIsB,EAAE,OAAO,EAH/B,MAG+B,GAF7B,MAAM,CA6ClB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,OAAO,EANxB,MAMwB,EAAE,IAAI,AALtC,CAGA,EAFA;IAA6B,UAAU,AAAvC,CACA,EADQ,KAAK,CAAC,MAAM,CAAC,CACrB;IAA6B,UAAU,AAAvC,CACA,EADQ,KAAK,CAAC,MAAM,CAAC,CACrB;CAE2C,GAFjC,KAAK,CAAC,MAAM,CAAC,CAqBzB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAJ7B,MAI6B,EAAE,QAAQ,EAHvC,KAAK,CAAC,MAAM,CAG2B,GAFrC,MAAM,CAuClB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAJnC,KAAK,CAAC,MAAM,CAIuB,EAAE,gBAAgB,AAH7D,CACA,EADQ,KAAK,CAAC,MAAM,CAGyC,GAFnD,KAAK,CAAC,MAAM,CAAC,CAOzB;AAED,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,GACb,CAAC"}
|