@cdxgen/cdxgen 13.1.0 → 13.2.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 +8 -7
- package/bin/cdxgen.js +16 -3
- package/bin/evinse.js +2 -0
- package/data/crypto-oid.json +88 -12
- package/data/remediations.json +23 -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 +12 -0
- package/lib/cli/index.js +192 -1
- package/lib/cli/jsBom.js +59 -2
- package/lib/cli/jvmBom.js +22 -0
- package/lib/cli/managedBom.js +152 -0
- package/lib/cli/nativeBom.js +798 -1
- package/lib/core/activity.js +120 -2
- package/lib/core/env.js +39 -1
- package/lib/core/userAgent.js +151 -0
- package/lib/ecosystems/cargoCache.js +364 -0
- package/lib/ecosystems/caxa.js +13 -5
- package/lib/ecosystems/cppEvidence.js +40 -2
- package/lib/ecosystems/ecosystems.js +241 -91
- package/lib/ecosystems/golem.js +11 -1
- package/lib/ecosystems/gradleutils.js +143 -2
- package/lib/ecosystems/kosi.js +1256 -0
- package/lib/ecosystems/parsers-crystal.js +179 -0
- package/lib/ecosystems/parsers-dotnet.js +69 -39
- package/lib/ecosystems/parsers-elm.js +816 -0
- package/lib/ecosystems/parsers-gleam.js +1 -1
- package/lib/ecosystems/parsers-julia.js +268 -0
- package/lib/ecosystems/parsers-lua.js +218 -0
- package/lib/ecosystems/parsers-misc.js +172 -0
- 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 +1 -1
- package/lib/ecosystems/parsers-r.js +148 -0
- package/lib/ecosystems/parsers-rebar.js +411 -0
- package/lib/ecosystems/parsers-rust.js +932 -17
- 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/rusi.js +126 -6
- package/lib/evinser/evinser.js +111 -1
- package/lib/helpers/agenticToolutils.js +925 -0
- 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/auditCategories.js +8 -0
- package/lib/inventory/cbomutils.js +30 -0
- package/lib/inventory/cdxrs.js +7 -2
- package/lib/inventory/communityAiConfigParser.js +215 -2
- package/lib/inventory/dosai.js +77 -0
- package/lib/inventory/envcontext.js +9 -6
- package/lib/inventory/evidenceUtils.js +13 -0
- package/lib/inventory/fetchBatch.js +74 -2
- 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 +54 -88
- package/lib/inventory/protobomLoader.js +4 -0
- package/lib/inventory/rustFormulationParser.js +1 -1
- package/lib/inventory/source.js +10 -4
- package/lib/inventory/stylePackageRefs.js +41 -0
- package/lib/inventory/svelteUtils.js +524 -0
- package/lib/parsers/huggingfaceUtils.js +15 -7
- 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 +169 -1
- package/lib/third-party/arborist/snapshots/calc-dep-flags.test.cjs +462 -0
- package/package.json +25 -25
- package/types/lib/audit/targets.d.ts.map +1 -1
- package/types/lib/cli/bomAssembly.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/userAgent.d.ts +56 -0
- package/types/lib/core/userAgent.d.ts.map +1 -0
- 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.map +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts +1 -1
- 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/gradleutils.d.ts +20 -0
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/kosi.d.ts +73 -0
- package/types/lib/ecosystems/kosi.d.ts.map +1 -0
- 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-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 +23 -0
- 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-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/rusi.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +29 -0
- package/types/lib/evinser/evinser.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/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/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/communityAiConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +23 -0
- package/types/lib/inventory/dosai.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/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/parsers/huggingfaceUtils.d.ts +8 -1
- package/types/lib/parsers/huggingfaceUtils.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
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/* IMPORTANT
|
|
2
|
+
* This snapshot file is auto-generated, but designed for humans.
|
|
3
|
+
* It should be checked into source control and tracked carefully.
|
|
4
|
+
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
|
|
5
|
+
* Make sure to inspect the output below. Do not ignore changes!
|
|
6
|
+
*/
|
|
7
|
+
'use strict'
|
|
8
|
+
exports[`test/calc-dep-flags.js TAP flag stuff > after 1`] = `
|
|
9
|
+
ArboristNode {
|
|
10
|
+
"children": Map {
|
|
11
|
+
"dev" => ArboristNode {
|
|
12
|
+
"dev": true,
|
|
13
|
+
"edgesIn": Set {
|
|
14
|
+
EdgeIn {
|
|
15
|
+
"from": "",
|
|
16
|
+
"name": "dev",
|
|
17
|
+
"spec": "*",
|
|
18
|
+
"type": "dev",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
"edgesOut": Map {
|
|
22
|
+
"devdep" => EdgeOut {
|
|
23
|
+
"name": "devdep",
|
|
24
|
+
"spec": "*",
|
|
25
|
+
"to": "node_modules/devdep",
|
|
26
|
+
"type": "prod",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
"location": "node_modules/dev",
|
|
30
|
+
"name": "dev",
|
|
31
|
+
"path": "/x/node_modules/dev",
|
|
32
|
+
"version": "1.2.3",
|
|
33
|
+
},
|
|
34
|
+
"devandoptional" => ArboristNode {
|
|
35
|
+
"dev": true,
|
|
36
|
+
"edgesIn": Set {
|
|
37
|
+
EdgeIn {
|
|
38
|
+
"from": "node_modules/devdep",
|
|
39
|
+
"name": "devandoptional",
|
|
40
|
+
"spec": "*",
|
|
41
|
+
"type": "optional",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
"location": "node_modules/devandoptional",
|
|
45
|
+
"name": "devandoptional",
|
|
46
|
+
"optional": true,
|
|
47
|
+
"path": "/x/node_modules/devandoptional",
|
|
48
|
+
"version": "1.2.3",
|
|
49
|
+
},
|
|
50
|
+
"devdep" => ArboristNode {
|
|
51
|
+
"children": Map {
|
|
52
|
+
"linky" => ArboristLink {
|
|
53
|
+
"dev": true,
|
|
54
|
+
"edgesIn": Set {
|
|
55
|
+
EdgeIn {
|
|
56
|
+
"from": "node_modules/devdep",
|
|
57
|
+
"name": "linky",
|
|
58
|
+
"spec": "*",
|
|
59
|
+
"type": "prod",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
"location": "node_modules/devdep/node_modules/linky",
|
|
63
|
+
"name": "linky",
|
|
64
|
+
"path": "/x/node_modules/devdep/node_modules/linky",
|
|
65
|
+
"realpath": "/x/y/z",
|
|
66
|
+
"resolved": "file:../../../y/z",
|
|
67
|
+
"target": ArboristNode {
|
|
68
|
+
"location": "y/z",
|
|
69
|
+
},
|
|
70
|
+
"version": "1.2.3",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
"dev": true,
|
|
74
|
+
"edgesIn": Set {
|
|
75
|
+
EdgeIn {
|
|
76
|
+
"from": "node_modules/dev",
|
|
77
|
+
"name": "devdep",
|
|
78
|
+
"spec": "*",
|
|
79
|
+
"type": "prod",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
"edgesOut": Map {
|
|
83
|
+
"devandoptional" => EdgeOut {
|
|
84
|
+
"name": "devandoptional",
|
|
85
|
+
"spec": "*",
|
|
86
|
+
"to": "node_modules/devandoptional",
|
|
87
|
+
"type": "optional",
|
|
88
|
+
},
|
|
89
|
+
"devoptional" => EdgeOut {
|
|
90
|
+
"name": "devoptional",
|
|
91
|
+
"spec": "*",
|
|
92
|
+
"to": "node_modules/devoptional",
|
|
93
|
+
"type": "prod",
|
|
94
|
+
},
|
|
95
|
+
"linky" => EdgeOut {
|
|
96
|
+
"name": "linky",
|
|
97
|
+
"spec": "*",
|
|
98
|
+
"to": "node_modules/devdep/node_modules/linky",
|
|
99
|
+
"type": "prod",
|
|
100
|
+
},
|
|
101
|
+
"proddep" => EdgeOut {
|
|
102
|
+
"name": "proddep",
|
|
103
|
+
"spec": "*",
|
|
104
|
+
"to": "node_modules/proddep",
|
|
105
|
+
"type": "prod",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
"location": "node_modules/devdep",
|
|
109
|
+
"name": "devdep",
|
|
110
|
+
"path": "/x/node_modules/devdep",
|
|
111
|
+
"version": "1.2.3",
|
|
112
|
+
},
|
|
113
|
+
"devoptional" => ArboristNode {
|
|
114
|
+
"devOptional": true,
|
|
115
|
+
"edgesIn": Set {
|
|
116
|
+
EdgeIn {
|
|
117
|
+
"from": "node_modules/devdep",
|
|
118
|
+
"name": "devoptional",
|
|
119
|
+
"spec": "*",
|
|
120
|
+
"type": "prod",
|
|
121
|
+
},
|
|
122
|
+
EdgeIn {
|
|
123
|
+
"from": "node_modules/optional",
|
|
124
|
+
"name": "devoptional",
|
|
125
|
+
"spec": "*",
|
|
126
|
+
"type": "prod",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
"location": "node_modules/devoptional",
|
|
130
|
+
"name": "devoptional",
|
|
131
|
+
"path": "/x/node_modules/devoptional",
|
|
132
|
+
"version": "1.2.3",
|
|
133
|
+
},
|
|
134
|
+
"extraneous" => ArboristNode {
|
|
135
|
+
"dev": true,
|
|
136
|
+
"extraneous": true,
|
|
137
|
+
"location": "node_modules/extraneous",
|
|
138
|
+
"name": "extraneous",
|
|
139
|
+
"optional": true,
|
|
140
|
+
"path": "/x/node_modules/extraneous",
|
|
141
|
+
"peer": true,
|
|
142
|
+
},
|
|
143
|
+
"metapeer" => ArboristNode {
|
|
144
|
+
"edgesIn": Set {
|
|
145
|
+
EdgeIn {
|
|
146
|
+
"from": "node_modules/prod",
|
|
147
|
+
"name": "metapeer",
|
|
148
|
+
"spec": "*",
|
|
149
|
+
"type": "peer",
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
"edgesOut": Map {
|
|
153
|
+
"metapeerdep" => EdgeOut {
|
|
154
|
+
"name": "metapeerdep",
|
|
155
|
+
"spec": "*",
|
|
156
|
+
"to": "node_modules/metapeerdep",
|
|
157
|
+
"type": "prod",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
"location": "node_modules/metapeer",
|
|
161
|
+
"name": "metapeer",
|
|
162
|
+
"path": "/x/node_modules/metapeer",
|
|
163
|
+
"peer": true,
|
|
164
|
+
"version": "1.2.3",
|
|
165
|
+
},
|
|
166
|
+
"metapeerdep" => ArboristNode {
|
|
167
|
+
"edgesIn": Set {
|
|
168
|
+
EdgeIn {
|
|
169
|
+
"from": "node_modules/metapeer",
|
|
170
|
+
"name": "metapeerdep",
|
|
171
|
+
"spec": "*",
|
|
172
|
+
"type": "prod",
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
"location": "node_modules/metapeerdep",
|
|
176
|
+
"name": "metapeerdep",
|
|
177
|
+
"path": "/x/node_modules/metapeerdep",
|
|
178
|
+
"peer": true,
|
|
179
|
+
"version": "1.2.3",
|
|
180
|
+
},
|
|
181
|
+
"optional" => ArboristNode {
|
|
182
|
+
"edgesIn": Set {
|
|
183
|
+
EdgeIn {
|
|
184
|
+
"from": "",
|
|
185
|
+
"name": "optional",
|
|
186
|
+
"spec": "*",
|
|
187
|
+
"type": "optional",
|
|
188
|
+
},
|
|
189
|
+
EdgeIn {
|
|
190
|
+
"from": "node_modules/peeroptional",
|
|
191
|
+
"name": "optional",
|
|
192
|
+
"spec": "*",
|
|
193
|
+
"type": "prod",
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
"edgesOut": Map {
|
|
197
|
+
"devoptional" => EdgeOut {
|
|
198
|
+
"name": "devoptional",
|
|
199
|
+
"spec": "*",
|
|
200
|
+
"to": "node_modules/devoptional",
|
|
201
|
+
"type": "prod",
|
|
202
|
+
},
|
|
203
|
+
"missing" => EdgeOut {
|
|
204
|
+
"error": "MISSING",
|
|
205
|
+
"name": "missing",
|
|
206
|
+
"spec": "*",
|
|
207
|
+
"to": null,
|
|
208
|
+
"type": "prod",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
"location": "node_modules/optional",
|
|
212
|
+
"name": "optional",
|
|
213
|
+
"optional": true,
|
|
214
|
+
"path": "/x/node_modules/optional",
|
|
215
|
+
"version": "1.2.3",
|
|
216
|
+
},
|
|
217
|
+
"peer" => ArboristNode {
|
|
218
|
+
"edgesIn": Set {
|
|
219
|
+
EdgeIn {
|
|
220
|
+
"from": "",
|
|
221
|
+
"name": "peer",
|
|
222
|
+
"spec": "*",
|
|
223
|
+
"type": "peer",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
"edgesOut": Map {
|
|
227
|
+
"peerdep" => EdgeOut {
|
|
228
|
+
"name": "peerdep",
|
|
229
|
+
"spec": "*",
|
|
230
|
+
"to": "node_modules/peerdep",
|
|
231
|
+
"type": "prod",
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
"location": "node_modules/peer",
|
|
235
|
+
"name": "peer",
|
|
236
|
+
"path": "/x/node_modules/peer",
|
|
237
|
+
"peer": true,
|
|
238
|
+
"version": "1.2.3",
|
|
239
|
+
},
|
|
240
|
+
"peerdep" => ArboristNode {
|
|
241
|
+
"edgesIn": Set {
|
|
242
|
+
EdgeIn {
|
|
243
|
+
"from": "node_modules/peer",
|
|
244
|
+
"name": "peerdep",
|
|
245
|
+
"spec": "*",
|
|
246
|
+
"type": "prod",
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
"location": "node_modules/peerdep",
|
|
250
|
+
"name": "peerdep",
|
|
251
|
+
"path": "/x/node_modules/peerdep",
|
|
252
|
+
"peer": true,
|
|
253
|
+
"version": "1.2.3",
|
|
254
|
+
},
|
|
255
|
+
"peeroptional" => ArboristNode {
|
|
256
|
+
"edgesIn": Set {
|
|
257
|
+
EdgeIn {
|
|
258
|
+
"from": "",
|
|
259
|
+
"name": "peeroptional",
|
|
260
|
+
"spec": "*",
|
|
261
|
+
"type": "peerOptional",
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
"edgesOut": Map {
|
|
265
|
+
"optional" => EdgeOut {
|
|
266
|
+
"name": "optional",
|
|
267
|
+
"spec": "*",
|
|
268
|
+
"to": "node_modules/optional",
|
|
269
|
+
"type": "prod",
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
"extraneous": true,
|
|
273
|
+
"location": "node_modules/peeroptional",
|
|
274
|
+
"name": "peeroptional",
|
|
275
|
+
"optional": true,
|
|
276
|
+
"path": "/x/node_modules/peeroptional",
|
|
277
|
+
"peer": true,
|
|
278
|
+
"version": "1.2.3",
|
|
279
|
+
},
|
|
280
|
+
"prod" => ArboristNode {
|
|
281
|
+
"edgesIn": Set {
|
|
282
|
+
EdgeIn {
|
|
283
|
+
"from": "",
|
|
284
|
+
"name": "prod",
|
|
285
|
+
"spec": "*",
|
|
286
|
+
"type": "prod",
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
"edgesOut": Map {
|
|
290
|
+
"metapeer" => EdgeOut {
|
|
291
|
+
"name": "metapeer",
|
|
292
|
+
"spec": "*",
|
|
293
|
+
"to": "node_modules/metapeer",
|
|
294
|
+
"type": "peer",
|
|
295
|
+
},
|
|
296
|
+
"proddep" => EdgeOut {
|
|
297
|
+
"name": "proddep",
|
|
298
|
+
"spec": "*",
|
|
299
|
+
"to": "node_modules/proddep",
|
|
300
|
+
"type": "prod",
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
"location": "node_modules/prod",
|
|
304
|
+
"name": "prod",
|
|
305
|
+
"path": "/x/node_modules/prod",
|
|
306
|
+
"version": "1.2.3",
|
|
307
|
+
},
|
|
308
|
+
"proddep" => ArboristNode {
|
|
309
|
+
"edgesIn": Set {
|
|
310
|
+
EdgeIn {
|
|
311
|
+
"from": "node_modules/devdep",
|
|
312
|
+
"name": "proddep",
|
|
313
|
+
"spec": "*",
|
|
314
|
+
"type": "prod",
|
|
315
|
+
},
|
|
316
|
+
EdgeIn {
|
|
317
|
+
"from": "node_modules/prod",
|
|
318
|
+
"name": "proddep",
|
|
319
|
+
"spec": "*",
|
|
320
|
+
"type": "prod",
|
|
321
|
+
},
|
|
322
|
+
EdgeIn {
|
|
323
|
+
"from": "node_modules/proddep",
|
|
324
|
+
"name": "proddep",
|
|
325
|
+
"spec": "*",
|
|
326
|
+
"type": "prod",
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
"edgesOut": Map {
|
|
330
|
+
"proddep" => EdgeOut {
|
|
331
|
+
"name": "proddep",
|
|
332
|
+
"spec": "*",
|
|
333
|
+
"to": "node_modules/proddep",
|
|
334
|
+
"type": "prod",
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
"location": "node_modules/proddep",
|
|
338
|
+
"name": "proddep",
|
|
339
|
+
"path": "/x/node_modules/proddep",
|
|
340
|
+
"version": "1.2.3",
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
"edgesOut": Map {
|
|
344
|
+
"dev" => EdgeOut {
|
|
345
|
+
"name": "dev",
|
|
346
|
+
"spec": "*",
|
|
347
|
+
"to": "node_modules/dev",
|
|
348
|
+
"type": "dev",
|
|
349
|
+
},
|
|
350
|
+
"optional" => EdgeOut {
|
|
351
|
+
"name": "optional",
|
|
352
|
+
"spec": "*",
|
|
353
|
+
"to": "node_modules/optional",
|
|
354
|
+
"type": "optional",
|
|
355
|
+
},
|
|
356
|
+
"peer" => EdgeOut {
|
|
357
|
+
"name": "peer",
|
|
358
|
+
"spec": "*",
|
|
359
|
+
"to": "node_modules/peer",
|
|
360
|
+
"type": "peer",
|
|
361
|
+
},
|
|
362
|
+
"peeroptional" => EdgeOut {
|
|
363
|
+
"name": "peeroptional",
|
|
364
|
+
"spec": "*",
|
|
365
|
+
"to": "node_modules/peeroptional",
|
|
366
|
+
"type": "peerOptional",
|
|
367
|
+
},
|
|
368
|
+
"prod" => EdgeOut {
|
|
369
|
+
"name": "prod",
|
|
370
|
+
"spec": "*",
|
|
371
|
+
"to": "node_modules/prod",
|
|
372
|
+
"type": "prod",
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
"fsChildren": Set {
|
|
376
|
+
ArboristNode {
|
|
377
|
+
"children": Map {
|
|
378
|
+
"linklink" => ArboristLink {
|
|
379
|
+
"dev": true,
|
|
380
|
+
"edgesIn": Set {
|
|
381
|
+
EdgeIn {
|
|
382
|
+
"from": "y/z",
|
|
383
|
+
"name": "linklink",
|
|
384
|
+
"spec": "*",
|
|
385
|
+
"type": "prod",
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
"location": "y/z/node_modules/linklink",
|
|
389
|
+
"name": "linklink",
|
|
390
|
+
"path": "/x/y/z/node_modules/linklink",
|
|
391
|
+
"realpath": "/l/i/n/k/link",
|
|
392
|
+
"resolved": "file:../../../../l/i/n/k/link",
|
|
393
|
+
"target": ArboristNode {
|
|
394
|
+
"dev": true,
|
|
395
|
+
"location": "../l/i/n/k/link",
|
|
396
|
+
"name": "link",
|
|
397
|
+
"packageName": "linklink",
|
|
398
|
+
"path": "/l/i/n/k/link",
|
|
399
|
+
"version": "1.2.3",
|
|
400
|
+
},
|
|
401
|
+
"version": "1.2.3",
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
"dev": true,
|
|
405
|
+
"edgesOut": Map {
|
|
406
|
+
"linklink" => EdgeOut {
|
|
407
|
+
"name": "linklink",
|
|
408
|
+
"spec": "*",
|
|
409
|
+
"to": "y/z/node_modules/linklink",
|
|
410
|
+
"type": "prod",
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
"location": "y/z",
|
|
414
|
+
"name": "z",
|
|
415
|
+
"packageName": "linky",
|
|
416
|
+
"path": "/x/y/z",
|
|
417
|
+
"version": "1.2.3",
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
"isProjectRoot": true,
|
|
421
|
+
"location": "",
|
|
422
|
+
"name": "x",
|
|
423
|
+
"path": "/x",
|
|
424
|
+
}
|
|
425
|
+
`
|
|
426
|
+
|
|
427
|
+
exports[`test/calc-dep-flags.js TAP no reset > after 1`] = `
|
|
428
|
+
ArboristNode {
|
|
429
|
+
"children": Map {
|
|
430
|
+
"foo" => ArboristNode {
|
|
431
|
+
"dev": true,
|
|
432
|
+
"edgesIn": Set {
|
|
433
|
+
EdgeIn {
|
|
434
|
+
"from": "",
|
|
435
|
+
"name": "foo",
|
|
436
|
+
"spec": "*",
|
|
437
|
+
"type": "prod",
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
"location": "node_modules/foo",
|
|
441
|
+
"name": "foo",
|
|
442
|
+
"path": "/some/path/node_modules/foo",
|
|
443
|
+
"peer": true,
|
|
444
|
+
"version": "1.2.3",
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
"dev": true,
|
|
448
|
+
"edgesOut": Map {
|
|
449
|
+
"foo" => EdgeOut {
|
|
450
|
+
"name": "foo",
|
|
451
|
+
"spec": "*",
|
|
452
|
+
"to": "node_modules/foo",
|
|
453
|
+
"type": "prod",
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
"isProjectRoot": true,
|
|
457
|
+
"location": "",
|
|
458
|
+
"name": "path",
|
|
459
|
+
"path": "/some/path",
|
|
460
|
+
"peer": true,
|
|
461
|
+
}
|
|
462
|
+
`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdxgen/cdxgen",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.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.
|
|
126
|
+
"@babel/parser": "8.0.5",
|
|
127
|
+
"@babel/traverse": "8.0.5",
|
|
128
128
|
"@cdxgen/cdx-purl": "0.0.5",
|
|
129
|
-
"@iarna/toml": "2.2.5",
|
|
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.10.
|
|
147
|
+
"undici": "8.10.2",
|
|
148
148
|
"walk-up-path": "4.0.0",
|
|
149
|
-
"yaml": "2.9.
|
|
149
|
+
"yaml": "2.9.1",
|
|
150
150
|
"yargs": "18.1.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.7.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.0.0",
|
|
166
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-amd64": "4.0.0",
|
|
167
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-arm64": "4.0.0",
|
|
168
|
+
"@cdxgen/cdxgen-plugins-bin-linux-amd64": "4.0.0",
|
|
169
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm": "4.0.0",
|
|
170
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm64": "4.0.0",
|
|
171
|
+
"@cdxgen/cdxgen-plugins-bin-linux-ppc64": "4.0.0",
|
|
172
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-amd64": "4.0.0",
|
|
173
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-arm64": "4.0.0",
|
|
174
|
+
"@cdxgen/cdxgen-plugins-bin-windows-amd64": "4.0.0",
|
|
175
|
+
"@cdxgen/cdxgen-plugins-bin-windows-arm64": "4.0.0",
|
|
176
|
+
"@cdxgen/safer-exec": "0.16.0",
|
|
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;A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gB,wBAAwB,CAAC,wBAAwB,EAHtD,MAAM,EAGgD,GAFpD,OAAO,CAInB;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EALvC,MAAM,EAKiC,EAAE,aAAa,EAJtD,MAIsD,EAAE,OAAO,EAH/D,GAAG,CAAC,MAAM,CAGqD,GAF7D,MAAM,EAAE,CAgBpB;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAH9C,MAAM,EAGwC,GAF5C,MAAM,EAAE,CAQpB;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EALvC,MAKuC,EAAE,KAAK,EAJ9C,MAI8C,EAAE,QAAQ,EAHxD,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"}
|
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;AAuCnE,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,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACb,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OA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AAsB,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;AA0XD;;;;;;;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":"AAqGA;;;;;;;;;;;;;;;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,CAy1C3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAFtB,MAE4C,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,YAJ9B,KAAK,CAAC,MAAM,CAAC,cACb,MAAM,KACJ,KAAK,CAAC,MAAM,CAwExB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CA6C3B;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,IAAI,EAJxC,MAIwC,EAAE,OAAO,EAHjD,MAGiD,GAF/C,OAAO,CAAC,MAAM,CAAC,CA+F3B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EANhC,MAMgC,EAAE,OAAO,EAHzC,MAGyC,GAFvC,OAAO,CAAC,MAAM,CAAC,CA6B3B;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CAoN3B;AAED;;;;;;GAMG;AACH,wBAAsB,wBAAwB,CAAC,IAAI,EAJxC,MAIwC,EAAE,OAAO,EAHjD,MAGiD,GAF/C,OAAO,CAAC,MAAM,CAAC,CAoD3B;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAJrC,MAIqC,EAAE,OAAO,EAH9C,MAG8C,GAF5C,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC,CA2ChE;AAED;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CACjD,aAAa,EANJ,MAMI,EACb,OAAO,EANE,MAMF,EACP,OAAO,EANE,MAAM,EAMR,EACP,YAAY,EANH,MAAM,EAMH,iBAsBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jvmBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jvmBom.js"],"names":[],"mappings":"
|
|
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,CA8DpB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CAwtD3B"}
|