@cdxgen/cdxgen 13.1.0 → 13.3.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 +32 -15
- package/bin/cdxgen.js +243 -122
- package/bin/evinse.js +7 -0
- package/bin/sign.js +88 -14
- package/bin/tracebom.js +64 -4
- package/bin/validate.js +29 -7
- package/bin/verify.js +79 -39
- package/data/crypto-oid.json +88 -12
- package/data/remediations.json +47 -0
- package/data/rules/ai-bom.yaml +78 -0
- package/data/rules/cargo-rust.yaml +132 -0
- package/data/rules/mcp-servers.yaml +122 -0
- package/lib/audit/targets.js +6 -1
- package/lib/cli/bomAssembly.js +117 -15
- package/lib/cli/cliOptions.js +93 -1
- package/lib/cli/index.js +235 -5
- package/lib/cli/jsBom.js +108 -26
- package/lib/cli/jvmBom.js +68 -12
- package/lib/cli/managedBom.js +264 -41
- package/lib/cli/nativeBom.js +923 -15
- package/lib/core/activity.js +120 -2
- package/lib/core/env.js +44 -7
- package/lib/core/fs.js +174 -6
- package/lib/core/metadataProperties.js +97 -0
- package/lib/core/projectConfig.js +31 -4
- package/lib/core/userAgent.js +151 -0
- package/lib/ecosystems/bunutils.js +269 -101
- package/lib/ecosystems/cargoCache.js +364 -0
- package/lib/ecosystems/caxa.js +447 -7
- package/lib/ecosystems/cmakeResolver.js +66 -0
- package/lib/ecosystems/cppEvidence.js +104 -33
- package/lib/ecosystems/ecosystems.js +260 -99
- package/lib/ecosystems/golem.js +11 -1
- package/lib/ecosystems/gradleutils.js +185 -9
- package/lib/ecosystems/jsEvidence.js +19 -20
- package/lib/ecosystems/kosi.js +1263 -0
- package/lib/ecosystems/npmutils.js +110 -9
- package/lib/ecosystems/parsers-crystal.js +179 -0
- package/lib/ecosystems/parsers-dotnet.js +120 -49
- package/lib/ecosystems/parsers-elm.js +816 -0
- package/lib/ecosystems/parsers-gleam.js +1 -1
- package/lib/ecosystems/parsers-go.js +47 -9
- package/lib/ecosystems/parsers-js.js +171 -50
- package/lib/ecosystems/parsers-julia.js +268 -0
- package/lib/ecosystems/parsers-lua.js +218 -0
- package/lib/ecosystems/parsers-misc.js +919 -161
- package/lib/ecosystems/parsers-nim.js +221 -0
- package/lib/ecosystems/parsers-opam.js +180 -0
- package/lib/ecosystems/parsers-perl.js +277 -0
- package/lib/ecosystems/parsers-python.js +27 -15
- package/lib/ecosystems/parsers-r.js +148 -0
- package/lib/ecosystems/parsers-rebar.js +411 -0
- package/lib/ecosystems/parsers-rust.js +954 -33
- package/lib/ecosystems/parsers-spack.js +204 -0
- package/lib/ecosystems/parsers-stack.js +264 -0
- package/lib/ecosystems/parsers-terraform.js +194 -0
- package/lib/ecosystems/rubyutils.js +1426 -166
- package/lib/ecosystems/rusi.js +158 -7
- package/lib/evinser/evinser.js +547 -129
- package/lib/evinser/swiftsem.js +1914 -302
- package/lib/helpers/agenticToolutils.js +925 -0
- package/lib/helpers/bomSigner.js +652 -221
- package/lib/inventory/agentFormulationParser.js +57 -4
- package/lib/inventory/aiCollector.js +504 -10
- package/lib/inventory/aiInventory.js +12 -0
- package/lib/inventory/analyzer.js +488 -30
- package/lib/inventory/astWorker.js +6 -0
- package/lib/inventory/atomUtils.js +568 -31
- package/lib/inventory/auditCategories.js +8 -0
- package/lib/inventory/cbomutils.js +30 -0
- package/lib/inventory/cdxrs.js +110 -14
- package/lib/inventory/communityAiConfigParser.js +215 -2
- package/lib/inventory/depsUtils.js +183 -11
- package/lib/inventory/display.js +4 -5
- package/lib/inventory/dosai.js +627 -13
- package/lib/inventory/dynamic.js +39 -1
- package/lib/inventory/envcontext.js +9 -6
- package/lib/inventory/evidenceUtils.js +26 -5
- package/lib/inventory/fetchBatch.js +190 -19
- package/lib/inventory/fetchRate.js +74 -11
- package/lib/inventory/forgeEnricher.js +3 -2
- package/lib/inventory/jvmToolEnv.js +6 -5
- package/lib/inventory/mcpConfigParser.js +166 -2
- package/lib/inventory/mcpDiscovery.js +11 -0
- package/lib/inventory/mcpServerManifest.js +389 -0
- package/lib/inventory/mcpbBundle.js +419 -0
- package/lib/inventory/plugins.js +3 -0
- package/lib/inventory/protobom.js +62 -89
- package/lib/inventory/protobomLoader.js +4 -0
- package/lib/inventory/purl.js +152 -3
- package/lib/inventory/rustFormulationParser.js +1 -1
- package/lib/inventory/sbomDocument.js +2 -70
- package/lib/inventory/source.js +47 -23
- package/lib/inventory/stylePackageRefs.js +41 -0
- package/lib/inventory/svelteUtils.js +524 -0
- package/lib/inventory/traceRunner.js +210 -21
- package/lib/managers/binary.js +115 -24
- package/lib/managers/docker.js +440 -20
- package/lib/managers/oci.js +39 -1
- package/lib/parsers/cmakeLists.js +452 -0
- package/lib/parsers/huggingfaceUtils.js +15 -7
- package/lib/parsers/largeJson.js +454 -0
- package/lib/parsers/npmrc.js +19 -1
- package/lib/parsers/onnx.js +294 -0
- package/lib/parsers/safetensors.js +114 -0
- package/lib/stages/postgen/introspection/markers.js +29 -6
- package/lib/stages/postgen/postgen.js +237 -16
- package/lib/third-party/arborist/snapshots/calc-dep-flags.test.cjs +462 -0
- package/lib/validator/bomValidator.js +6 -16
- package/lib/validator/index.js +48 -10
- package/lib/validator/reporters/console.js +3 -0
- package/lib/validator/reporters/json.js +1 -0
- package/lib/validator/reporters/sarif.js +7 -0
- package/package.json +27 -27
- package/types/lib/audit/targets.d.ts.map +1 -1
- package/types/lib/cli/bomAssembly.d.ts +2 -1
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +33 -1
- package/types/lib/cli/cliOptions.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts +2 -2
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/cli/jsBom.d.ts +23 -0
- package/types/lib/cli/jsBom.d.ts.map +1 -1
- package/types/lib/cli/jvmBom.d.ts.map +1 -1
- package/types/lib/cli/managedBom.d.ts +33 -0
- package/types/lib/cli/managedBom.d.ts.map +1 -1
- package/types/lib/cli/nativeBom.d.ts +88 -8
- package/types/lib/cli/nativeBom.d.ts.map +1 -1
- package/types/lib/core/activity.d.ts.map +1 -1
- package/types/lib/core/env.d.ts +21 -0
- package/types/lib/core/env.d.ts.map +1 -1
- package/types/lib/core/fs.d.ts +55 -0
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/metadataProperties.d.ts +39 -0
- package/types/lib/core/metadataProperties.d.ts.map +1 -0
- package/types/lib/core/projectConfig.d.ts +6 -2
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/core/userAgent.d.ts +56 -0
- package/types/lib/core/userAgent.d.ts.map +1 -0
- package/types/lib/ecosystems/bunutils.d.ts +12 -5
- package/types/lib/ecosystems/bunutils.d.ts.map +1 -1
- package/types/lib/ecosystems/cargoCache.d.ts +75 -0
- package/types/lib/ecosystems/cargoCache.d.ts.map +1 -0
- package/types/lib/ecosystems/caxa.d.ts +14 -0
- package/types/lib/ecosystems/caxa.d.ts.map +1 -1
- package/types/lib/ecosystems/cmakeResolver.d.ts +23 -0
- package/types/lib/ecosystems/cmakeResolver.d.ts.map +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts +2 -2
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/ecosystems.d.ts +15 -1
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +40 -4
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/jsEvidence.d.ts +5 -2
- package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/kosi.d.ts +86 -0
- package/types/lib/ecosystems/kosi.d.ts.map +1 -0
- package/types/lib/ecosystems/npmutils.d.ts +42 -0
- package/types/lib/ecosystems/npmutils.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-crystal.d.ts +27 -0
- package/types/lib/ecosystems/parsers-crystal.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-dotnet.d.ts +19 -0
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-elm.d.ts +79 -0
- package/types/lib/ecosystems/parsers-elm.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-go.d.ts +10 -0
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-js.d.ts +10 -4
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-julia.d.ts +57 -0
- package/types/lib/ecosystems/parsers-julia.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-lua.d.ts +50 -0
- package/types/lib/ecosystems/parsers-lua.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-misc.d.ts +90 -3
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-nim.d.ts +43 -0
- package/types/lib/ecosystems/parsers-nim.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-opam.d.ts +31 -0
- package/types/lib/ecosystems/parsers-opam.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-perl.d.ts +36 -0
- package/types/lib/ecosystems/parsers-perl.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-r.d.ts +35 -0
- package/types/lib/ecosystems/parsers-r.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-rebar.d.ts +42 -0
- package/types/lib/ecosystems/parsers-rebar.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-rust.d.ts +199 -0
- package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-spack.d.ts +33 -0
- package/types/lib/ecosystems/parsers-spack.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-stack.d.ts +35 -0
- package/types/lib/ecosystems/parsers-stack.d.ts.map +1 -0
- package/types/lib/ecosystems/parsers-terraform.d.ts +34 -0
- package/types/lib/ecosystems/parsers-terraform.d.ts.map +1 -0
- package/types/lib/ecosystems/pythonutils.d.ts +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts +143 -2
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts +13 -0
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +81 -2
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +280 -15
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/helpers/agenticToolutils.d.ts +87 -0
- package/types/lib/helpers/agenticToolutils.d.ts.map +1 -0
- package/types/lib/helpers/bomSigner.d.ts +106 -13
- package/types/lib/helpers/bomSigner.d.ts.map +1 -1
- package/types/lib/inventory/agentFormulationParser.d.ts.map +1 -1
- package/types/lib/inventory/aiCollector.d.ts.map +1 -1
- package/types/lib/inventory/aiInventory.d.ts.map +1 -1
- package/types/lib/inventory/analyzer.d.ts.map +1 -1
- package/types/lib/inventory/atomUtils.d.ts +145 -3
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/auditCategories.d.ts +4 -0
- package/types/lib/inventory/auditCategories.d.ts.map +1 -1
- package/types/lib/inventory/cbomutils.d.ts.map +1 -1
- package/types/lib/inventory/cdxrs.d.ts +8 -3
- package/types/lib/inventory/cdxrs.d.ts.map +1 -1
- package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/depsUtils.d.ts +15 -0
- package/types/lib/inventory/depsUtils.d.ts.map +1 -1
- package/types/lib/inventory/display.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +87 -1
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dynamic.d.ts.map +1 -1
- package/types/lib/inventory/envcontext.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/fetchBatch.d.ts +34 -0
- package/types/lib/inventory/fetchBatch.d.ts.map +1 -1
- package/types/lib/inventory/fetchRate.d.ts +9 -6
- package/types/lib/inventory/fetchRate.d.ts.map +1 -1
- package/types/lib/inventory/forgeEnricher.d.ts.map +1 -1
- package/types/lib/inventory/jvmToolEnv.d.ts +5 -4
- package/types/lib/inventory/jvmToolEnv.d.ts.map +1 -1
- package/types/lib/inventory/mcpConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/mcpDiscovery.d.ts.map +1 -1
- package/types/lib/inventory/mcpServerManifest.d.ts +19 -0
- package/types/lib/inventory/mcpServerManifest.d.ts.map +1 -0
- package/types/lib/inventory/mcpbBundle.d.ts +19 -0
- package/types/lib/inventory/mcpbBundle.d.ts.map +1 -0
- package/types/lib/inventory/plugins.d.ts.map +1 -1
- package/types/lib/inventory/protobom.d.ts +18 -13
- package/types/lib/inventory/protobom.d.ts.map +1 -1
- package/types/lib/inventory/protobomLoader.d.ts.map +1 -1
- package/types/lib/inventory/purl.d.ts +71 -2
- package/types/lib/inventory/purl.d.ts.map +1 -1
- package/types/lib/inventory/sbomDocument.d.ts.map +1 -1
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/inventory/stylePackageRefs.d.ts +17 -0
- package/types/lib/inventory/stylePackageRefs.d.ts.map +1 -0
- package/types/lib/inventory/svelteUtils.d.ts +124 -0
- package/types/lib/inventory/svelteUtils.d.ts.map +1 -0
- package/types/lib/inventory/traceRunner.d.ts +47 -1
- package/types/lib/inventory/traceRunner.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +30 -1
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +29 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +14 -0
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/parsers/cmakeLists.d.ts +76 -0
- package/types/lib/parsers/cmakeLists.d.ts.map +1 -0
- package/types/lib/parsers/huggingfaceUtils.d.ts +8 -1
- package/types/lib/parsers/huggingfaceUtils.d.ts.map +1 -1
- package/types/lib/parsers/largeJson.d.ts +52 -0
- package/types/lib/parsers/largeJson.d.ts.map +1 -0
- package/types/lib/parsers/npmrc.d.ts +5 -0
- package/types/lib/parsers/npmrc.d.ts.map +1 -1
- package/types/lib/parsers/onnx.d.ts +28 -0
- package/types/lib/parsers/onnx.d.ts.map +1 -0
- package/types/lib/parsers/safetensors.d.ts +22 -0
- package/types/lib/parsers/safetensors.d.ts.map +1 -0
- package/types/lib/stages/postgen/introspection/markers.d.ts +3 -2
- package/types/lib/stages/postgen/introspection/markers.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts +33 -0
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
- package/types/lib/validator/index.d.ts +10 -1
- package/types/lib/validator/index.d.ts.map +1 -1
- package/types/lib/validator/reporters/console.d.ts.map +1 -1
- package/types/lib/validator/reporters/json.d.ts.map +1 -1
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdxgen/cdxgen",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"description": "Creates CycloneDX Software Bill of Materials (SBOM) from source or container image",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sbom",
|
|
@@ -123,10 +123,9 @@
|
|
|
123
123
|
"index.cjs"
|
|
124
124
|
],
|
|
125
125
|
"dependencies": {
|
|
126
|
-
"@babel/parser": "8.0.
|
|
127
|
-
"@babel/traverse": "8.0.
|
|
128
|
-
"@cdxgen/cdx-purl": "0.0.
|
|
129
|
-
"@iarna/toml": "2.2.5",
|
|
126
|
+
"@babel/parser": "8.0.6",
|
|
127
|
+
"@babel/traverse": "8.0.6",
|
|
128
|
+
"@cdxgen/cdx-purl": "0.0.6",
|
|
130
129
|
"@isaacs/string-locale-compare": "1.1.0",
|
|
131
130
|
"@npmcli/fs": "6.0.0",
|
|
132
131
|
"@npmcli/map-workspaces": "6.0.0",
|
|
@@ -141,16 +140,17 @@
|
|
|
141
140
|
"npm-package-arg": "14.0.0",
|
|
142
141
|
"parse-conflict-json": "6.0.0",
|
|
143
142
|
"semver": "7.8.5",
|
|
143
|
+
"smol-toml": "1.8.0",
|
|
144
144
|
"ssri": "14.0.0",
|
|
145
145
|
"tar": "7.5.22",
|
|
146
146
|
"treeverse": "3.0.0",
|
|
147
|
-
"undici": "8.
|
|
147
|
+
"undici": "8.11.0",
|
|
148
148
|
"walk-up-path": "4.0.0",
|
|
149
|
-
"yaml": "2.9.
|
|
150
|
-
"yargs": "18.
|
|
149
|
+
"yaml": "2.9.1",
|
|
150
|
+
"yargs": "18.2.0"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
|
-
"@biomejs/biome": "2.5.
|
|
153
|
+
"@biomejs/biome": "2.5.14",
|
|
154
154
|
"esmock": "2.7.6",
|
|
155
155
|
"poku": "4.5.0",
|
|
156
156
|
"sinon": "22.1.0",
|
|
@@ -158,30 +158,30 @@
|
|
|
158
158
|
},
|
|
159
159
|
"optionalDependencies": {
|
|
160
160
|
"@appthreat/atom": "3.1.1",
|
|
161
|
-
"@appthreat/atom-parsetools": "1.
|
|
162
|
-
"@bufbuild/protobuf": "2.
|
|
161
|
+
"@appthreat/atom-parsetools": "1.8.0",
|
|
162
|
+
"@bufbuild/protobuf": "2.15.0",
|
|
163
163
|
"@cdxgen/cdx-hbom": "0.5.1",
|
|
164
|
-
"@cdxgen/cdx-proto": "2.
|
|
165
|
-
"@cdxgen/cdxgen-plugins-bin": "
|
|
166
|
-
"@cdxgen/cdxgen-plugins-bin-darwin-amd64": "
|
|
167
|
-
"@cdxgen/cdxgen-plugins-bin-darwin-arm64": "
|
|
168
|
-
"@cdxgen/cdxgen-plugins-bin-linux-amd64": "
|
|
169
|
-
"@cdxgen/cdxgen-plugins-bin-linux-arm": "
|
|
170
|
-
"@cdxgen/cdxgen-plugins-bin-linux-arm64": "
|
|
171
|
-
"@cdxgen/cdxgen-plugins-bin-linux-ppc64": "
|
|
172
|
-
"@cdxgen/cdxgen-plugins-bin-linuxmusl-amd64": "
|
|
173
|
-
"@cdxgen/cdxgen-plugins-bin-linuxmusl-arm64": "
|
|
174
|
-
"@cdxgen/cdxgen-plugins-bin-windows-amd64": "
|
|
175
|
-
"@cdxgen/cdxgen-plugins-bin-windows-arm64": "
|
|
176
|
-
"@cdxgen/safer-exec": "0.
|
|
164
|
+
"@cdxgen/cdx-proto": "2.3.0",
|
|
165
|
+
"@cdxgen/cdxgen-plugins-bin": "4.1.0",
|
|
166
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-amd64": "4.1.0",
|
|
167
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-arm64": "4.1.0",
|
|
168
|
+
"@cdxgen/cdxgen-plugins-bin-linux-amd64": "4.1.0",
|
|
169
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm": "4.1.0",
|
|
170
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm64": "4.1.0",
|
|
171
|
+
"@cdxgen/cdxgen-plugins-bin-linux-ppc64": "4.1.0",
|
|
172
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-amd64": "4.1.0",
|
|
173
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-arm64": "4.1.0",
|
|
174
|
+
"@cdxgen/cdxgen-plugins-bin-windows-amd64": "4.1.0",
|
|
175
|
+
"@cdxgen/cdxgen-plugins-bin-windows-arm64": "4.1.0",
|
|
176
|
+
"@cdxgen/safer-exec": "1.0.1",
|
|
177
177
|
"body-parser": "2.3.0",
|
|
178
|
-
"compression": "1.8.
|
|
178
|
+
"compression": "1.8.2",
|
|
179
179
|
"connect": "3.7.0",
|
|
180
180
|
"jsonata": "2.2.2"
|
|
181
181
|
},
|
|
182
182
|
"engines": {
|
|
183
183
|
"node": ">=24",
|
|
184
|
-
"pnpm": ">=
|
|
184
|
+
"pnpm": ">=12"
|
|
185
185
|
},
|
|
186
186
|
"devEngines": {
|
|
187
187
|
"runtime": [
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"name": "bun",
|
|
195
|
-
"version": "1.
|
|
195
|
+
"version": "1.4.2",
|
|
196
196
|
"onFail": "ignore"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../lib/audit/targets.js"],"names":[],"mappings":"AAcA,8EAA8E;AAC9E,QAAA,MAAM,oBAAoB,aAAoC,CAAC;AAsJ/D;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAHnC,MAAM,GAAG,SAG0B,GAFjC,OAAO,CAOnB;AAuOD;;;;;;;GAOG;AACH,wBAAsB,mCAAmC,CAAC,SAAS,EAHxD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAGqB,GAFtD,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../lib/audit/targets.js"],"names":[],"mappings":"AAcA,8EAA8E;AAC9E,QAAA,MAAM,oBAAoB,aAAoC,CAAC;AAsJ/D;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAHnC,MAAM,GAAG,SAG0B,GAFjC,OAAO,CAOnB;AAuOD;;;;;;;GAOG;AACH,wBAAsB,mCAAmC,CAAC,SAAS,EAHxD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAGqB,GAFtD,OAAO,CAAC,IAAI,CAAC,CAoFzB;AAkBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAHrC,MAAM,GAAG,SAG4B,GAFnC,MAAM,CAOlB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EALtC,MAKsC,EAAE,UAAU,EAJlD,MAIkD,EAAE,OAAO,AAHnE,CACA,EADQ,MAAM,GAAG,MAAM,GAAG,SAGyC,GAFzD;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAmGpD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAflC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAeD,EAAE,OAAO,AAdnD,CACA,EADQ,MAAM,GAAG,MAAM,GAAG,SAcyB,GAbzC;IACR,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE;QACL,gBAAgB,EAAE,MAAM,CAAC;QACzB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAmJH;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -65,7 +65,8 @@ export declare const componentToSimpleFullName: (comp: object) => string;
|
|
|
65
65
|
/**
|
|
66
66
|
* Strips transient keys (`evidence`, `_integrity`, `license`, `qualifiers`,
|
|
67
67
|
* `repository`, `homepage`) from a parent component while preserving licenses
|
|
68
|
-
* and external references (bug #1519).
|
|
68
|
+
* and external references (bug #1519). External references whose URL is not a
|
|
69
|
+
* valid IRI reference are dropped.
|
|
69
70
|
*
|
|
70
71
|
* @param {object} comp Parent component to clean in place
|
|
71
72
|
* @returns {object} The cleaned parent component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bomAssembly.d.ts","sourceRoot":"","sources":["../../../lib/cli/bomAssembly.js"],"names":[],"mappings":"
|
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MAAM,EAGkD,GAFtD,MAAM,CAIlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAJvC,MAIuC,EAAE,aAAa,EAHtD,MAGsD,GAFpD,IAAI,CAyDhB;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAPtB,MAOsB,EAAE,UAAU,OAAA,EAAE,eAAe,EALnD,MAKmD,EAAE,YAAY,OAAA,GAF/D,MAAM,CA8ClB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,YAJjC,MAAM,mBACN,MAAM,KACJ,OAYZ,CAAC"}
|
|
@@ -37,6 +37,33 @@ export declare function validateSpecVersion(specVersion: number, commandName?: s
|
|
|
37
37
|
* @returns {boolean} True when the user explicitly set this flag
|
|
38
38
|
*/
|
|
39
39
|
export declare function isUserProvided(value: any, yaDefault: any): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Combine the custom metadata properties of every source (discussion 4391):
|
|
42
|
+
* the `--metadata-property` flag, the CDXGEN_METADATA_PROPERTY and
|
|
43
|
+
* CDXGEN_METADATA_PROPERTIES environment variables, and a config file's
|
|
44
|
+
* `metadata-property` or `metadataProperties` entry.
|
|
45
|
+
*
|
|
46
|
+
* yargs would let the highest-precedence source replace the others outright,
|
|
47
|
+
* so each is read on its own and they are merged instead. A name set by more
|
|
48
|
+
* than one source takes its values from the one that wins in the usual order
|
|
49
|
+
* — the command line, then the environment, then the config file — while a
|
|
50
|
+
* source may repeat a name for a multi-valued property.
|
|
51
|
+
*
|
|
52
|
+
* @param {object} args Parsed yargs argv
|
|
53
|
+
* @param {object} [context]
|
|
54
|
+
* @param {string[]} [context.argv] Raw command-line arguments, which tell a
|
|
55
|
+
* flag on the command line from one yargs filled in from elsewhere
|
|
56
|
+
* @param {object} [context.projectConfig] The sanitized config file contents.
|
|
57
|
+
* Without it, a programmatic caller's `args` are taken as the config.
|
|
58
|
+
* @returns {{name: string, value: string}[]} The merged properties
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveMetadataProperties(args: object, { argv, projectConfig }?: {
|
|
61
|
+
argv?: string[];
|
|
62
|
+
projectConfig?: object;
|
|
63
|
+
}): {
|
|
64
|
+
name: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}[];
|
|
40
67
|
/**
|
|
41
68
|
* Apply command-name-based defaults to the raw parsed args. When cdxgen is
|
|
42
69
|
* invoked via a symlink or alias (e.g. `obom`, `cbom`, `spdxgen`, `aibom`),
|
|
@@ -50,10 +77,11 @@ export declare function isUserProvided(value: any, yaDefault: any): boolean;
|
|
|
50
77
|
* @returns {object} A shallow copy of args with alias-based defaults applied
|
|
51
78
|
*/
|
|
52
79
|
export declare function applyCommandNameDefaults(args: object, invokedCommandName: string): object;
|
|
53
|
-
export declare function buildInitialOptions(args: any, { filePath, isRemoteOrPurl, argv }: {
|
|
80
|
+
export declare function buildInitialOptions(args: any, { filePath, isRemoteOrPurl, argv, projectConfig }: {
|
|
54
81
|
argv?: any;
|
|
55
82
|
filePath: any;
|
|
56
83
|
isRemoteOrPurl: any;
|
|
84
|
+
projectConfig: any;
|
|
57
85
|
}): any;
|
|
58
86
|
export type OptionsWarning = {
|
|
59
87
|
/**
|
|
@@ -141,6 +169,9 @@ export declare function applyAdvancedOptions(options: object, context?: {
|
|
|
141
169
|
* passed `--spec-version`
|
|
142
170
|
* @param {boolean} [context.isDryRun=false] Dry-run mode
|
|
143
171
|
* @param {boolean} [context.isSecureMode] Secure mode
|
|
172
|
+
* @param {object} [context.projectConfig] Sanitized config file contents,
|
|
173
|
+
* whose metadata properties merge
|
|
174
|
+
* with the other sources'
|
|
144
175
|
* @returns {{ options: object, warnings: OptionsWarning[] }}
|
|
145
176
|
*/
|
|
146
177
|
export declare function buildOptionsFromArgs(args: object, context: {
|
|
@@ -150,6 +181,7 @@ export declare function buildOptionsFromArgs(args: object, context: {
|
|
|
150
181
|
userSetSpecVersion: boolean;
|
|
151
182
|
isDryRun?: boolean;
|
|
152
183
|
isSecureMode?: boolean;
|
|
184
|
+
projectConfig?: object;
|
|
153
185
|
}): {
|
|
154
186
|
options: object;
|
|
155
187
|
warnings: OptionsWarning[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliOptions.d.ts","sourceRoot":"","sources":["../../../lib/cli/cliOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"cliOptions.d.ts","sourceRoot":"","sources":["../../../lib/cli/cliOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAwBH;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAJpC,MAIoC,EAAE,WAAW,AAHzD,CACA,EADQ,MAG4D,GAF1D,MAAM,GAAC,IAAI,CAoBvB;AA4CD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAJzB,GAIyB,EAAE,SAAS,EAHpC,GAGoC,GAFlC,OAAO,CAInB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EATK,MASL,EACJ,EAAE,IAAmB,EAAE,aAAa,EAAE,AATrC,CAKA,EAJA;IAA2B,IAAI,AAA/B,CAEA,EAFQ,MAAM,EAAE,CAEhB;IAAyB,aAAa,AAAtC,CAEA,EAFQ,MAAM,CAEd;CAI0C,GAJhC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,EAAE,CAsD3C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,kBAAkB,EAHtD,MAGsD,GAFpD,MAAM,CAoBlB;AAuED,wBAAgB,mBAAmB,CACjC,IAAI,KAAA,EACJ,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAmB,EAAE,aAAa,EAAE;;;;;CAAA,OAqDjE;AAqBE,YAAkB,cAAc,GAChC;;;;IAAkC,KAAK,EAA5B,MAAM,GAAC,MAAM,GAAC,OAAO,CAChC;;;;IAAkC,OAAO,EAA9B,MAAM,CACnB;CAAA,CAAA;AAJD;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAR3C,MAQ2C,EAAE,OAAO,EAN5D;IAAwB,kBAAkB,EAAlC,MAAM,CACd;IAAyB,kBAAkB,EAAnC,OAAO,CAEf;IAA0B,QAAQ,AAAlC,CACA,EADQ,OAAO,CACf;CAE4D,GAFlD,cAAc,EAAE,CA6G5B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EALjC,MAKiC,EAAE,OAAO,AAJlD,CAEA,EADA;IAA0B,YAAY,AAAtC,CACA,EADQ,OAAO,CACf;CAEuD,GAF7C,cAAc,EAAE,CAqI5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAd9B,MAc8B,EAAE,OAAO,EAZ/C;IAAwB,kBAAkB,EAAlC,MAAM,CACd;IAAwB,QAAQ,EAAxB,MAAM,CACd;IAAyB,cAAc,EAA/B,OAAO,CACf;IAAyB,kBAAkB,EAAnC,OAAO,CAEf;IAA0B,QAAQ,AAAlC,CACA,EADQ,OAAO,CACf;IAA0B,YAAY,AAAtC,CACA,EADQ,OAAO,CACf;IAAyB,aAAa,AAAtC,CAGA,EAHQ,MAAM,CAGd;CAE+C,GAFrC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,cAAc,EAAE,CAAA;CAAE,CA+B3D"}
|
package/types/lib/cli/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { summarizeAiInventory } from "../inventory/aiInventory.js";
|
|
|
2
2
|
export { createAndroidBom, createBinaryBom, dedupeBom, listComponents, } from "./bomAssembly.js";
|
|
3
3
|
export { createAsarBom, createCaxaBom, createChromeExtensionBom, createNodejsBom, createVscodeExtensionBom, } from "./jsBom.js";
|
|
4
4
|
export { createJarBom, createJavaBom } from "./jvmBom.js";
|
|
5
|
-
export { createCloudBuildBom, createCryptoCertsBom, createCsharpBom, createGitHubBom, createHelmBom, createJenkinsBom, createPHPBom, createPixiBom, createPythonBom, createRubyBom, } from "./managedBom.js";
|
|
6
|
-
export { createClojureBom, createCocoaBom, createCppBom, createDartBom, createElixirBom, createGleamBom, createGoBom, createHaskellBom, createNixBom, createRustBom, createSwiftBom, createZigBom, } from "./nativeBom.js";
|
|
5
|
+
export { createCloudBuildBom, createCryptoCertsBom, createCsharpBom, createGitHubBom, createHelmBom, createJenkinsBom, createPerlBom, createPHPBom, createPixiBom, createPythonBom, createRBom, createRubyBom, createTerraformBom, } from "./managedBom.js";
|
|
6
|
+
export { createClojureBom, createCocoaBom, createCppBom, createCrystalBom, createDartBom, createElixirBom, createElmBom, createErlangBom, createGleamBom, createGoBom, createHaskellBom, createJuliaBom, createLuaBom, createNimBom, createNixBom, createOCamlBom, createRustBom, createSpackBom, createSwiftBom, createZigBom, } from "./nativeBom.js";
|
|
7
7
|
/**
|
|
8
8
|
* Function to create obom string for the current OS using osquery
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"AAyEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAwCnE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA0C1D,OAAO,EACL,mBAAmB,EACnB,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3B;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAJ1B,MAI0B,EAAE,OAAO,EAHnC,MAGmC,GAFjC,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CA0gBrC;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAJ3B,MAI2B,EAAE,OAAO,EAHpC,MAGoC,GAFlC,OAAO,CAAC,MAAM,CAAC,CAsB3B;AAED;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAJzB,MAIyB,EAAE,OAAO,EAHlC,MAGkC,GAFhC,OAAO,CAAC,MAAM,CAAC,CAa3B;AAgYD;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAAC,IAAI,EALzB,MAKyB,EAAE,WAAW,EAJtC,MAIsC,GAHrC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CA+FjD"}
|
package/types/lib/cli/jsBom.d.ts
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
* local Modelfile/`.gguf` file input. Returns the explicit selection from
|
|
4
4
|
* `getExactAiInventoryType` when one is present.
|
|
5
5
|
*
|
|
6
|
+
* Direct HuggingFace interpretation of the source path is opt-in: only
|
|
7
|
+
* unambiguous references (`pkg:huggingface/...` purls and huggingface.co
|
|
8
|
+
* URLs) are recognized on their own. Bare `owner/repo`-shaped values are
|
|
9
|
+
* ordinary relative paths (eg: `repotests/sveltejs-realworld`) unless an AI
|
|
10
|
+
* inventory type such as `-t ai` is explicitly selected, in which case
|
|
11
|
+
* `getExactAiInventoryType` already returned it above.
|
|
12
|
+
*
|
|
6
13
|
* @param {string} path Project or file path
|
|
7
14
|
* @param {object} options CLI options
|
|
8
15
|
* @returns {string|undefined} The detected AI inventory type (`"ai"`) or undefined
|
|
@@ -52,6 +59,22 @@ export declare function createCaxaBom(path: string, options: Object): Promise<Ob
|
|
|
52
59
|
* @returns {Promise<Object>} Promise resolving to BOM object
|
|
53
60
|
*/
|
|
54
61
|
export declare function createVscodeExtensionBom(path: string, options: Object): Promise<Object>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a BOM that catalogs agentic CLI tools installed for the current user
|
|
64
|
+
* (for example Kiro CLI, zcode, opencode, and Claude Code), along with the
|
|
65
|
+
* agents, plugins, and providers they define.
|
|
66
|
+
*
|
|
67
|
+
* The scan is read-only and value-redacting: it records tool versions where a
|
|
68
|
+
* declarative source exists, plus structural counts, but never reads
|
|
69
|
+
* credentials, transcripts, session logs, or telemetry.
|
|
70
|
+
*
|
|
71
|
+
* @param {string} path Positional input. A host scan does not read a project
|
|
72
|
+
* tree, so an explicit path other than the current directory is rejected
|
|
73
|
+
* rather than silently ignored.
|
|
74
|
+
* @param {Object} options Parse options from the CLI
|
|
75
|
+
* @returns {Promise<Object>} Promise resolving to BOM data
|
|
76
|
+
*/
|
|
77
|
+
export declare function createAgenticBom(path: string, options: Object): Promise<Object>;
|
|
55
78
|
/**
|
|
56
79
|
* Function to create BOM for Electron ASAR archives.
|
|
57
80
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jsBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jsBom.js"],"names":[],"mappings":"AAyGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,OAAO,EAH3C,MAG2C,GAFzC,MAAM,GAAC,SAAS,CAwB5B;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC,OAAO,CAAC,MAAM,CAAC,CAw2C3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAFtB,MAE4C,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MA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1
|
+
{"version":3,"file":"jvmBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jvmBom.js"],"names":[],"mappings":"AAiGA;;;;;GAKG;AACH,eAAO,IAAI,gBAAgB,EAFjB,MAIsD,CAAC;AAUjE;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,EAHrB,MAQT,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,EAHhB,MAIqE,CAAC;AAEhF;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAL5B,MAK4B,EAAE,OAAO,EAJrC,MAIqC,GAFnC,MAAM,CA8ElB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EALxC,MAKwC,EAAE,MAAM,EAJhD,MAIgD,EAAE,GAAG,EAHrD,MAGqD,GAFnD,MAAM,EAAE,CAgEpB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CAwvD3B"}
|
|
@@ -102,4 +102,37 @@ export declare function createCsharpBom(path: string, options: Object): Promise<
|
|
|
102
102
|
* @returns {Promise<Object>} Promise resolving to BOM object
|
|
103
103
|
*/
|
|
104
104
|
export declare function createCryptoCertsBom(path: string, options: Object): Promise<Object>;
|
|
105
|
+
/**
|
|
106
|
+
* Function to create bom string for R projects using renv.
|
|
107
|
+
*
|
|
108
|
+
* The `renv.lock` file carries the resolved package set for the project
|
|
109
|
+
* library, including the R version it was produced under.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} path to the project
|
|
112
|
+
* @param {Object} options Parse options from the cli
|
|
113
|
+
* @returns {Object} BOM object
|
|
114
|
+
*/
|
|
115
|
+
export declare function createRBom(path: string, options: Object): Object;
|
|
116
|
+
/**
|
|
117
|
+
* Function to create bom string for Perl projects using Carton.
|
|
118
|
+
*
|
|
119
|
+
* The `cpanfile.snapshot` carries the resolved install set; the declared
|
|
120
|
+
* `cpanfile` is consulted to distinguish direct dependencies.
|
|
121
|
+
*
|
|
122
|
+
* @param {string} path to the project
|
|
123
|
+
* @param {Object} options Parse options from the cli
|
|
124
|
+
* @returns {Object} BOM object
|
|
125
|
+
*/
|
|
126
|
+
export declare function createPerlBom(path: string, options: Object): Object;
|
|
127
|
+
/**
|
|
128
|
+
* Function to create bom string for Terraform and OpenTofu projects.
|
|
129
|
+
*
|
|
130
|
+
* The `.terraform.lock.hcl` file pins the providers the configuration
|
|
131
|
+
* resolves to, with content hashes suitable for the CycloneDX hashes array.
|
|
132
|
+
*
|
|
133
|
+
* @param {string} path to the project
|
|
134
|
+
* @param {Object} options Parse options from the cli
|
|
135
|
+
* @returns {Object} BOM object
|
|
136
|
+
*/
|
|
137
|
+
export declare function createTerraformBom(path: string, options: Object): Object;
|
|
105
138
|
//# sourceMappingURL=managedBom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/managedBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"managedBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/managedBom.js"],"names":[],"mappings":"AA+HA;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,QAJ5B,MAAM,YACN,MAAM,KACJ,OAMZ,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,QAJ1B,MAAM,YACN,MAAM,KACJ,OAeZ,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,IAAI,QAAA,EAAE,OAAO,EAHhC,MAGgC,GAF9B,MAAM,GAAG,IAAI,CAsEzB;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC,OAAO,CAAC,MAAM,CAAC,CAoqB3B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAA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AE,OAAO,EAHrC,MAGqC,GAFnC,MAAM,CAyBlB"}
|
|
@@ -13,14 +13,7 @@ export declare function getCargoCacheDir(): string | undefined;
|
|
|
13
13
|
* @returns {Promise<Object | undefined>} Promise resolving to a BOM object or `undefined`
|
|
14
14
|
*/
|
|
15
15
|
export declare function createGoBom(path: string, options: Object): Promise<Object | undefined>;
|
|
16
|
-
|
|
17
|
-
* Function to create bom string for Rust projects
|
|
18
|
-
*
|
|
19
|
-
* @param {string} path to the project
|
|
20
|
-
* @param {Object} options Parse options from the cli
|
|
21
|
-
* @returns {Promise<Object|undefined>} Promise resolving to a BOM object or undefined
|
|
22
|
-
*/
|
|
23
|
-
export declare function createRustBom(path: string, options: Object): Promise<Object | undefined>;
|
|
16
|
+
export declare function createRustBom(path: any, options: any): Promise<Object | undefined>;
|
|
24
17
|
/**
|
|
25
18
|
* Parses a `.crate` file name into a CycloneDX component (name, version, purl,
|
|
26
19
|
* bom-ref, and source/cache properties). Returns undefined when the file name
|
|
@@ -73,6 +66,19 @@ export declare function createCppBom(path: string, options: Object): Object;
|
|
|
73
66
|
* @returns {Object} BOM object
|
|
74
67
|
*/
|
|
75
68
|
export declare function createClojureBom(path: string, options: Object): Object;
|
|
69
|
+
/**
|
|
70
|
+
* Locate the Stack lock files under a path.
|
|
71
|
+
*
|
|
72
|
+
* Stack names the lock after the configuration file it completes, so the
|
|
73
|
+
* default `stack.yaml` produces `stack.yaml.lock` and a project with several
|
|
74
|
+
* configurations produces one lock per configuration. `stack.lock` is also
|
|
75
|
+
* accepted because tooling and documentation examples have used that name.
|
|
76
|
+
*
|
|
77
|
+
* @param {string} path Project path
|
|
78
|
+
* @param {Object} options Parse options from the cli
|
|
79
|
+
* @returns {string[]} Lock file paths, deduplicated
|
|
80
|
+
*/
|
|
81
|
+
export declare function findStackLockFiles(path: string, options: Object): string[];
|
|
76
82
|
/**
|
|
77
83
|
* Function to create bom string for Haskell projects
|
|
78
84
|
*
|
|
@@ -140,4 +146,78 @@ export declare function createZigBom(path: string, options: Object): Promise<Obj
|
|
|
140
146
|
* @returns {Promise<Object>} Promise resolving to BOM object
|
|
141
147
|
*/
|
|
142
148
|
export declare function createGleamBom(path: string, options: Object): Promise<Object>;
|
|
149
|
+
/**
|
|
150
|
+
* Function to create bom string for Julia projects.
|
|
151
|
+
*
|
|
152
|
+
* The resolved `Manifest.toml` is preferred over the declared `Project.toml`
|
|
153
|
+
* so the BOM carries pinned versions and the package graph.
|
|
154
|
+
*
|
|
155
|
+
* @param {string} path to the project
|
|
156
|
+
* @param {Object} options Parse options from the cli
|
|
157
|
+
* @returns {Promise<Object>} BOM object
|
|
158
|
+
*/
|
|
159
|
+
export declare function createJuliaBom(path: string, options: Object): Promise<Object>;
|
|
160
|
+
/**
|
|
161
|
+
* Function to create bom string for Erlang projects using rebar3.
|
|
162
|
+
*
|
|
163
|
+
* @param {string} path to the project
|
|
164
|
+
* @param {Object} options Parse options from the cli
|
|
165
|
+
* @returns {Promise<Object>} BOM object
|
|
166
|
+
*/
|
|
167
|
+
export declare function createErlangBom(path: string, options: Object): Promise<Object>;
|
|
168
|
+
/**
|
|
169
|
+
* Function to create bom string for OCaml projects using opam.
|
|
170
|
+
*
|
|
171
|
+
* Resolved `.opam.locked` files are preferred; a plain `.opam` file is used
|
|
172
|
+
* as a declared fallback with unpinned versions.
|
|
173
|
+
*
|
|
174
|
+
* @param {string} path to the project
|
|
175
|
+
* @param {Object} options Parse options from the cli
|
|
176
|
+
* @returns {Promise<Object>} BOM object
|
|
177
|
+
*/
|
|
178
|
+
export declare function createOCamlBom(path: string, options: Object): Promise<Object>;
|
|
179
|
+
/**
|
|
180
|
+
* Function to create bom string for Elm projects.
|
|
181
|
+
*
|
|
182
|
+
* @param {string} path to the project
|
|
183
|
+
* @param {Object} options Parse options from the cli
|
|
184
|
+
* @returns {Promise<Object>} BOM object
|
|
185
|
+
*/
|
|
186
|
+
export declare function createElmBom(path: string, options: Object): Promise<Object>;
|
|
187
|
+
/**
|
|
188
|
+
* Function to create bom string for Crystal projects using shards.
|
|
189
|
+
*
|
|
190
|
+
* @param {string} path to the project
|
|
191
|
+
* @param {Object} options Parse options from the cli
|
|
192
|
+
* @returns {Promise<Object>} BOM object
|
|
193
|
+
*/
|
|
194
|
+
export declare function createCrystalBom(path: string, options: Object): Promise<Object>;
|
|
195
|
+
/**
|
|
196
|
+
* Function to create bom string for Nim projects using nimble.
|
|
197
|
+
*
|
|
198
|
+
* @param {string} path to the project
|
|
199
|
+
* @param {Object} options Parse options from the cli
|
|
200
|
+
* @returns {Promise<Object>} BOM object
|
|
201
|
+
*/
|
|
202
|
+
export declare function createNimBom(path: string, options: Object): Promise<Object>;
|
|
203
|
+
/**
|
|
204
|
+
* Function to create bom string for Lua projects using LuaRocks.
|
|
205
|
+
*
|
|
206
|
+
* When a `luarocks.lock` is present next to a rockspec it supplies the
|
|
207
|
+
* resolved versions; otherwise the rockspec's declared dependencies are
|
|
208
|
+
* inventoried without versions.
|
|
209
|
+
*
|
|
210
|
+
* @param {string} path to the project
|
|
211
|
+
* @param {Object} options Parse options from the cli
|
|
212
|
+
* @returns {Promise<Object>} BOM object
|
|
213
|
+
*/
|
|
214
|
+
export declare function createLuaBom(path: string, options: Object): Promise<Object>;
|
|
215
|
+
/**
|
|
216
|
+
* Function to create bom string for Spack environments.
|
|
217
|
+
*
|
|
218
|
+
* @param {string} path to the project
|
|
219
|
+
* @param {Object} options Parse options from the cli
|
|
220
|
+
* @returns {Promise<Object>} BOM object
|
|
221
|
+
*/
|
|
222
|
+
export declare function createSpackBom(path: string, options: Object): Promise<Object>;
|
|
143
223
|
//# sourceMappingURL=nativeBom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/nativeBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/nativeBom.js"],"names":[],"mappings":"AAgLA;;;;;GA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CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CAoE3B;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAJhC,MAIgC,EAAE,OAAO,EAHzC,MAGyC,GAFvC,OAAO,CAAC,MAAM,CAAC,CAuC3B;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CA0C3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CA2D3B;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAJ9B,MAI8B,EAAE,OAAO,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CAwD3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../lib/core/activity.js"],"names":[],"mappings":"AAOA,oFAAoF;AACpF,eAAO,MAAM,UAAU,SAEkB,CAAC;AAE1C,+GAA+G;AAC/G,eAAO,MAAM,YAAY,KAE4B,CAAC;AAQtD,8IAA8I;AAC9I,eAAO,IAAI,QAAQ,KACkD,CAAC;AAEtE,gGAAgG;AAChG,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../lib/core/activity.js"],"names":[],"mappings":"AAOA,oFAAoF;AACpF,eAAO,MAAM,UAAU,SAEkB,CAAC;AAE1C,+GAA+G;AAC/G,eAAO,MAAM,YAAY,KAE4B,CAAC;AAQtD,8IAA8I;AAC9I,eAAO,IAAI,QAAQ,KACkD,CAAC;AAEtE,gGAAgG;AAChG,eAAO,MAAM,kBAAkB,mBAAmB,C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AM,EARG,MAQH,EACN,MAAM,EARG,MAQH,EACN,MAAM,AARL,CACA,EADQ,MAQS,EAClB,QAAQ,AARP,CACA,EADQ,MAQI,GAPF,MAAM,GAAC,SAAS,CAgB5B;AAED,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,UAAY,CAAC;AAE7C;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EALC,MAKD,EACR,eAAe,AALd,CACA,EADQ,MAKwD,GAJtD,OAAO,CA+BnB;AAED;;;;;GAKG;AAEH,wBAAgB,mBAAmB,CAAC,GAAG,EAJ5B,MAI4B,GAH1B,OAAO,CAmBnB;AAmED,uLAAuL;AACvL,eAAO,MAAM,WAAW,UAyItB,CAAC;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,CAAC"}
|
package/types/lib/core/env.d.ts
CHANGED
|
@@ -85,6 +85,15 @@ export declare let RUSTC_CMD: string;
|
|
|
85
85
|
export declare let GO_CMD: string;
|
|
86
86
|
/** Resolved Cargo executable command (CARGO_CMD env var, or "cargo"). */
|
|
87
87
|
export declare let CARGO_CMD: string;
|
|
88
|
+
/**
|
|
89
|
+
* Target triple the cargo resolve graph is filtered to, so that a
|
|
90
|
+
* cross-compiled project can be described for the triple it ships on rather
|
|
91
|
+
* than for the union of every triple its lock file covers.
|
|
92
|
+
*
|
|
93
|
+
* `CDXGEN_CARGO_TARGET` is cdxgen's own name for it; `CARGO_BUILD_TARGET` is
|
|
94
|
+
* cargo's standard variable, which a cross-compiling build already sets.
|
|
95
|
+
*/
|
|
96
|
+
export declare const CARGO_TARGET: string | undefined;
|
|
88
97
|
/** Resolved Clojure CLI executable command (CLJ_CMD env var, or "clj"). */
|
|
89
98
|
export declare let CLJ_CMD: string;
|
|
90
99
|
/** Resolved Leiningen executable command (LEIN_CMD env var, or "lein"). */
|
|
@@ -109,6 +118,7 @@ export declare const PROJECT_TYPE_ALIASES: {
|
|
|
109
118
|
js: string[];
|
|
110
119
|
mcp: string[];
|
|
111
120
|
"ai-skill": string[];
|
|
121
|
+
agentic: string[];
|
|
112
122
|
py: string[];
|
|
113
123
|
go: string[];
|
|
114
124
|
rust: string[];
|
|
@@ -118,6 +128,17 @@ export declare const PROJECT_TYPE_ALIASES: {
|
|
|
118
128
|
dart: string[];
|
|
119
129
|
haskell: string[];
|
|
120
130
|
elixir: string[];
|
|
131
|
+
erlang: string[];
|
|
132
|
+
julia: string[];
|
|
133
|
+
r: string[];
|
|
134
|
+
ocaml: string[];
|
|
135
|
+
elm: string[];
|
|
136
|
+
crystal: string[];
|
|
137
|
+
nim: string[];
|
|
138
|
+
lua: string[];
|
|
139
|
+
perl: string[];
|
|
140
|
+
spack: string[];
|
|
141
|
+
terraform: string[];
|
|
121
142
|
c: string[];
|
|
122
143
|
clojure: string[];
|
|
123
144
|
github: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../lib/core/env.js"],"names":[],"mappings":"AAUA,uCAAuC;AACvC,eAAO,MAAM,MAAM,SAAmD,CAAC;AACvE,mCAAmC;AACnC,eAAO,MAAM,KAAK,SAAwC,CAAC;AAC3D,oCAAoC;AACpC,eAAO,MAAM,MAAM,SAA+C,CAAC;AAEnE,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,oBAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAIrB,CAAC;AAEX,sJAAsJ;AACtJ,eAAO,MAAM,qBAAqB,SAI/B,CAAC;AAEJ,sIAAsI;AACtI,eAAO,MAAM,sBAAsB,SAElC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAH9B,MAG8B,GAF5B,MAAM,EAAE,CAiDpB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAFrB,OAAO,CAOnB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAF7B,OAAO,CAUnB;AAED;;;;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AChB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB;IAClC,KAAK;CACN,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAF/B,MAAM,EAQf,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAH9C,MAG8C,GAF5C,OAAO,CAUnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EALhC,MAKgC,EAAE,OAAO,QAAA,WAiBnD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,OAAA,EAAE,OAAO,EAH5C,MAG4C,EAAE,aAAa,UAAO,OA2G5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAJxC,MAIwC,EAAE,WAAW,AAH7D,CACA,EADQ,MAGqD,GAFnD,OAAO,CAiCnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,QAAA,EAAE,mBAAmB,OAAA,EAAE,OAAO,EAJ/D,MAI+D,WAezE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,KAAA,OA8CvC"}
|
package/types/lib/core/fs.d.ts
CHANGED
|
@@ -25,6 +25,18 @@ export declare function safeIsExecutableSync(filePath: string): boolean;
|
|
|
25
25
|
* @returns {void}
|
|
26
26
|
*/
|
|
27
27
|
export declare function safeWriteSync(filePath: string, data: string | Buffer, options?: Object): void;
|
|
28
|
+
/**
|
|
29
|
+
* Permission- and dry-run-aware write of a sequence of chunks, for content too
|
|
30
|
+
* large to join into one string first. The chunks go to a temporary file next
|
|
31
|
+
* to the target, which is renamed into place once complete, so a chunk may be
|
|
32
|
+
* read from the file being replaced and a failed write leaves the target as it
|
|
33
|
+
* was.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} filePath File path to write.
|
|
36
|
+
* @param {Iterable<string|Buffer>} chunks Chunks written in order.
|
|
37
|
+
* @returns {void}
|
|
38
|
+
*/
|
|
39
|
+
export declare function safeWriteChunksSync(filePath: string, chunks: Iterable<string | Buffer>): void;
|
|
28
40
|
/**
|
|
29
41
|
* Permission-aware wrapper around readFileSync that returns undefined instead
|
|
30
42
|
* of throwing. Reads are allowed in dry-run mode, so unlike the write wrappers
|
|
@@ -97,6 +109,49 @@ export declare function safeExtractArchive(sourcePath: string, targetPath: strin
|
|
|
97
109
|
export declare const temporaryFiles: Set<any>;
|
|
98
110
|
/** Set accumulating every executable command spawned via safeSpawnSync. */
|
|
99
111
|
export declare const commandsExecuted: Set<any>;
|
|
112
|
+
/**
|
|
113
|
+
* Quote one argument of a shell command line that is built as a single
|
|
114
|
+
* string. The shell flag exists so cmd.exe can resolve bare command names,
|
|
115
|
+
* `.cmd` shims and scripts, and every argument is data (paths, flags) that
|
|
116
|
+
* must arrive as one token whatever it contains: joined unquoted, an
|
|
117
|
+
* argument with spaces splits into several and hands the tool the wrong
|
|
118
|
+
* tokens.
|
|
119
|
+
*
|
|
120
|
+
* Windows follows the quoting rules cmd.exe and the MSVC runtimes share:
|
|
121
|
+
* wrap in double quotes, doubling the backslashes that precede a quote and
|
|
122
|
+
* escaping the quote itself. Inside double quotes cmd.exe already treats
|
|
123
|
+
* `&`, `|`, `<`, `>`, `^` and parentheses as literals, and the
|
|
124
|
+
* shell-metacharacter block above refuses `%` and the rest before this
|
|
125
|
+
* runs. A POSIX shell gets single quotes, which no expansion can leave.
|
|
126
|
+
*
|
|
127
|
+
* The same quoting is applied to the command itself when it names an
|
|
128
|
+
* existing file under a path with spaces; a command the shell must parse
|
|
129
|
+
* (a bare name, `sh -c`) never names a file as a whole and stays verbatim.
|
|
130
|
+
*
|
|
131
|
+
* @param {string} arg Argument to quote
|
|
132
|
+
* @param {boolean} [forWindows] Quote for cmd.exe rather than a POSIX shell; defaults to the current platform
|
|
133
|
+
* @returns {string} The argument, quoted when the shell needs it
|
|
134
|
+
*/
|
|
135
|
+
export declare function shellQuoteArgument(arg: string, forWindows?: boolean): string;
|
|
136
|
+
/**
|
|
137
|
+
* Build the single command string a shell spawn runs. Every argument is
|
|
138
|
+
* quoted for the platform shell, so an argument containing spaces stays one
|
|
139
|
+
* token and cannot alter the command, and a command that is itself a file
|
|
140
|
+
* under a path with spaces (`C:\Program Files\...\node.exe`) is quoted too;
|
|
141
|
+
* a command the shell must parse (`sh -c`, a bare name) never names an
|
|
142
|
+
* existing file as a whole and is left verbatim.
|
|
143
|
+
*
|
|
144
|
+
* The one exception is a caller that composes shell fragments itself (sbt
|
|
145
|
+
* command lines embed their own quoting for the shell to strip): it passes
|
|
146
|
+
* `rawShellArgs` and keeps the verbatim join, under the shell-metacharacter
|
|
147
|
+
* block in safeSpawnSync like every other argument.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} command The executable
|
|
150
|
+
* @param {string[]|undefined} args Arguments, when the caller passed any
|
|
151
|
+
* @param {boolean} [rawShellArgs] Join the arguments verbatim instead of quoting them
|
|
152
|
+
* @returns {string} The command line the shell will run
|
|
153
|
+
*/
|
|
154
|
+
export declare function joinShellCommand(command: string, args: string[] | undefined, rawShellArgs?: boolean): string;
|
|
100
155
|
/**
|
|
101
156
|
* Safe wrapper around spawnSync that enforces permission checks, injects default
|
|
102
157
|
* options (maxBuffer, encoding, timeout), warns about unsafe Python and pip/uv
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../lib/core/fs.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../lib/core/fs.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA8ErC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,QAAA,OAmCtC;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAHlC,MAGkC,GAFhC,OAAO,CAY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