@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
|
@@ -44,6 +44,205 @@ export declare function parseCargoManifestDependencyData(cargoTomlFile: string,
|
|
|
44
44
|
* @returns {Object[]} Array of dependency relationship objects with ref and dependsOn fields
|
|
45
45
|
*/
|
|
46
46
|
export declare function parseCargoDependencyData(cargoLockData: string): Object[];
|
|
47
|
+
/**
|
|
48
|
+
* Normalize a cargo dependency kind to the vocabulary used by the cargo
|
|
49
|
+
* manifest parsers.
|
|
50
|
+
*
|
|
51
|
+
* `cargo metadata` encodes a normal dependency as `null` rather than a string,
|
|
52
|
+
* so a truthiness test would silently leave runtime dependencies unlabelled.
|
|
53
|
+
*
|
|
54
|
+
* @param {string|null|undefined} kind Dependency kind as reported by cargo
|
|
55
|
+
* @returns {string} One of `runtime`, `build` or `dev`
|
|
56
|
+
*/
|
|
57
|
+
export declare function normalizeCargoDepKind(kind: string | null | undefined): string;
|
|
58
|
+
/**
|
|
59
|
+
* Parse a cargo package id into its name and version.
|
|
60
|
+
*
|
|
61
|
+
* cargo 1.77 and later emit the package id spec form
|
|
62
|
+
* (`registry+https://...#name@1.0.0`, or `path+file:///p/foo#1.0.0` where the
|
|
63
|
+
* name is carried by the path); earlier releases emit `name 1.0.0 (source)`.
|
|
64
|
+
*
|
|
65
|
+
* @param {string} packageId cargo package id
|
|
66
|
+
* @returns {{name: string, version: string}|undefined} Parsed identity
|
|
67
|
+
*/
|
|
68
|
+
export declare function parseCargoPackageId(packageId: string): {
|
|
69
|
+
name: string;
|
|
70
|
+
version: string;
|
|
71
|
+
} | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Build the `name@version` key used to correlate cargo components across the
|
|
74
|
+
* lock file, the manifests and `cargo metadata`.
|
|
75
|
+
*
|
|
76
|
+
* @param {{name: string, version: string}} pkg Package identity
|
|
77
|
+
* @returns {string} Correlation key
|
|
78
|
+
*/
|
|
79
|
+
export declare function cargoComponentKey(pkg: {
|
|
80
|
+
name: string;
|
|
81
|
+
version: string;
|
|
82
|
+
}): string;
|
|
83
|
+
/**
|
|
84
|
+
* Convert a cargo purl or bom-ref into a `name@version` correlation key.
|
|
85
|
+
*
|
|
86
|
+
* @param {string} purl cargo purl
|
|
87
|
+
* @returns {string} Correlation key
|
|
88
|
+
*/
|
|
89
|
+
export declare function cargoPurlToComponentKey(purl: string): string;
|
|
90
|
+
/**
|
|
91
|
+
* Collect the dependency kinds and platform gates declared by a single
|
|
92
|
+
* `Cargo.toml`, keyed by the crate name that cargo resolves the entry to.
|
|
93
|
+
*
|
|
94
|
+
* Manifests declare version requirements rather than resolved versions, so the
|
|
95
|
+
* returned map is keyed by name alone and is meant to label the edges leaving a
|
|
96
|
+
* workspace member in the lock file graph.
|
|
97
|
+
*
|
|
98
|
+
* @param {string} cargoTomlFile Cargo.toml path
|
|
99
|
+
* @param {object} [context] Workspace resolution context
|
|
100
|
+
* @returns {Map<string, {kinds: Set<string>, targets: Set<string>, optional: boolean}>} Declared edges
|
|
101
|
+
*/
|
|
102
|
+
export declare function parseCargoManifestDependencyKinds(cargoTomlFile: string, context?: object): Map<string, {
|
|
103
|
+
kinds: Set<string>;
|
|
104
|
+
targets: Set<string>;
|
|
105
|
+
optional: boolean;
|
|
106
|
+
}>;
|
|
107
|
+
/**
|
|
108
|
+
* Roll per-edge cargo dependency kinds up to an effective kind per component.
|
|
109
|
+
*
|
|
110
|
+
* A crate is only dev-only when *every* path reaching it from a workspace root
|
|
111
|
+
* traverses a dev edge, so a crate shared between a dev dependency and a normal
|
|
112
|
+
* one keeps its runtime kind. Cargo never builds the dev dependencies of a
|
|
113
|
+
* dependency, so dev edges are followed from the workspace roots alone.
|
|
114
|
+
*
|
|
115
|
+
* @param {object} graph Dependency graph
|
|
116
|
+
* @param {string[]} graph.rootKeys Workspace member component keys
|
|
117
|
+
* @param {Map<string, Array<{to: string, kind: string, target?: string}>>} graph.edges Adjacency map
|
|
118
|
+
* @returns {Map<string, {kind: string, kinds: Set<string>, targets: Set<string>, targetGated: boolean}>} Effective kinds
|
|
119
|
+
*/
|
|
120
|
+
export declare function rollupCargoDependencyKinds({ rootKeys, edges }: {
|
|
121
|
+
rootKeys: string[];
|
|
122
|
+
edges: Map<string, Array<{
|
|
123
|
+
to: string;
|
|
124
|
+
kind: string;
|
|
125
|
+
target?: string;
|
|
126
|
+
}>>;
|
|
127
|
+
}): Map<string, {
|
|
128
|
+
kind: string;
|
|
129
|
+
kinds: Set<string>;
|
|
130
|
+
targets: Set<string>;
|
|
131
|
+
targetGated: boolean;
|
|
132
|
+
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Build a cargo dependency graph from the `resolve` section of
|
|
135
|
+
* `cargo metadata --format-version 1`.
|
|
136
|
+
*
|
|
137
|
+
* @param {object} metadata Parsed `cargo metadata` output
|
|
138
|
+
* @returns {{rootKeys: string[], edges: Map<string, Array<object>>, packageInfo: Map<string, object>, resolvedKeys: Set<string>}} Graph
|
|
139
|
+
*/
|
|
140
|
+
export declare function parseCargoMetadataResolve(metadata: object): {
|
|
141
|
+
rootKeys: string[];
|
|
142
|
+
edges: Map<string, Array<object>>;
|
|
143
|
+
packageInfo: Map<string, object>;
|
|
144
|
+
resolvedKeys: Set<string>;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Build a cargo dependency graph from the lock file relationships, labelling
|
|
148
|
+
* the edges that leave a workspace member with the kinds declared by its
|
|
149
|
+
* manifest.
|
|
150
|
+
*
|
|
151
|
+
* The lock file is the union of every dependency kind and every target triple,
|
|
152
|
+
* so only the manifests can distinguish them. The resulting labels are exact at
|
|
153
|
+
* depth one and inherited below it, which is enough to identify dev-only and
|
|
154
|
+
* build-only subtrees without invoking cargo.
|
|
155
|
+
*
|
|
156
|
+
* @param {object[]} lockDependencies Relationships from {@link parseCargoDependencyData}
|
|
157
|
+
* @param {Map<string, Map<string, object>>} declaredEdgesByRoot Declared edges keyed by root component key
|
|
158
|
+
* @returns {{rootKeys: string[], edges: Map<string, Array<object>>}} Graph
|
|
159
|
+
*/
|
|
160
|
+
export declare function buildCargoLockDependencyGraph(lockDependencies: object[], declaredEdgesByRoot: Map<string, Map<string, object>>): {
|
|
161
|
+
rootKeys: string[];
|
|
162
|
+
edges: Map<string, Array<object>>;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Annotate cargo components with their effective dependency kind, platform
|
|
166
|
+
* gates and scope.
|
|
167
|
+
*
|
|
168
|
+
* Components reachable only through dev edges are scoped `excluded` so
|
|
169
|
+
* `--required-only` drops them. Build dependencies stay required because a
|
|
170
|
+
* build script is part of producing the artifact; the kind is recorded as a
|
|
171
|
+
* property so a consumer can filter on it.
|
|
172
|
+
*
|
|
173
|
+
* @param {object[]} pkgList Components to annotate
|
|
174
|
+
* @param {Map<string, object>} rollup Effective kinds from {@link rollupCargoDependencyKinds}
|
|
175
|
+
* @param {Map<string, object>} [packageInfo] Extra per-package facts
|
|
176
|
+
* @param {object} [options] Annotation options
|
|
177
|
+
* @param {boolean} [options.resolveIsComplete] The rollup covers every workspace in the scan, so a
|
|
178
|
+
* component missing from it is an optional dependency no feature activates
|
|
179
|
+
* @returns {object[]} The annotated components
|
|
180
|
+
*/
|
|
181
|
+
export declare function applyCargoDependencyKindMetadata(pkgList: object[], rollup: Map<string, object>, packageInfo?: Map<string, object>, options?: {
|
|
182
|
+
resolveIsComplete?: boolean;
|
|
183
|
+
}): object[];
|
|
184
|
+
/**
|
|
185
|
+
* Recover the upstream version of a native library from the version of the
|
|
186
|
+
* crate that ships it.
|
|
187
|
+
*
|
|
188
|
+
* The `-sys` and `-src` crates carry the upstream version as semver build
|
|
189
|
+
* metadata, because the crate's own version tracks the binding's releases
|
|
190
|
+
* rather than the library's: `openssl-src@300.6.1+3.6.3` ships OpenSSL 3.6.3
|
|
191
|
+
* and `curl-sys@0.4.74+curl-8.9.0` ships curl 8.9.0.
|
|
192
|
+
*
|
|
193
|
+
* @param {string} crateVersion Version of the providing crate
|
|
194
|
+
* @returns {string} Upstream version, or an empty string when it is not encoded
|
|
195
|
+
*/
|
|
196
|
+
export declare function cargoUpstreamVersionFromCrateVersion(crateVersion: string): string;
|
|
197
|
+
/**
|
|
198
|
+
* Recover the version of a vendored native library from the C source the crate
|
|
199
|
+
* ships.
|
|
200
|
+
*
|
|
201
|
+
* A `-sys` crate that bundles its library carries the upstream version in a
|
|
202
|
+
* header define - `ZLIB_VERSION`, `SQLITE_VERSION`, `OPENSSL_VERSION_TEXT` -
|
|
203
|
+
* which is the only statement of the version for the crates that do not encode
|
|
204
|
+
* it in their own version. A crate often ships more than one variant, so a
|
|
205
|
+
* candidate sitting in a directory named after a feature this build did not
|
|
206
|
+
* enable is dropped: `libz-sys` ships both `src/zlib` and `src/zlib-ng`, and
|
|
207
|
+
* only one of them is compiled.
|
|
208
|
+
*
|
|
209
|
+
* @param {object} args Resolution inputs
|
|
210
|
+
* @param {string} args.crateDir Directory holding the crate's unpacked source
|
|
211
|
+
* @param {string} args.links The crate's `links` value
|
|
212
|
+
* @param {string} args.libraryName Normalized library name
|
|
213
|
+
* @param {string[]} [args.declaredFeatures] Features the crate declares
|
|
214
|
+
* @param {Set<string>} [args.resolvedFeatures] Features the resolver enabled
|
|
215
|
+
* @returns {{version: string, evidence: string, candidates: string[]}} Version and where it came from
|
|
216
|
+
*/
|
|
217
|
+
export declare function resolveCargoVendoredLibraryVersion({ crateDir, links, libraryName, declaredFeatures, resolvedFeatures, }: {
|
|
218
|
+
crateDir: string;
|
|
219
|
+
links: string;
|
|
220
|
+
libraryName: string;
|
|
221
|
+
declaredFeatures?: string[];
|
|
222
|
+
resolvedFeatures?: Set<string>;
|
|
223
|
+
}): {
|
|
224
|
+
version: string;
|
|
225
|
+
evidence: string;
|
|
226
|
+
candidates: string[];
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Build components for the native libraries that `-sys` crates link.
|
|
230
|
+
*
|
|
231
|
+
* A crate declaring `links = "openssl"` puts a C library into the artifact that
|
|
232
|
+
* the cargo dependency graph cannot describe: its advisories and its license
|
|
233
|
+
* obligations belong to OpenSSL, not to the Rust binding. When the resolver
|
|
234
|
+
* enabled a vendoring feature, that library is compiled into the binary, which
|
|
235
|
+
* makes it a component of the delivered assembly.
|
|
236
|
+
*
|
|
237
|
+
* @param {Map<string, object>} packageInfo Per-package facts from {@link parseCargoMetadataResolve}
|
|
238
|
+
* @param {Map<string, Array<object>>} edges Dependency edges keyed by component key
|
|
239
|
+
* @param {Map<string, object>} rollup Effective kinds, used to skip crates no build reaches
|
|
240
|
+
* @returns {{components: object[], dependencies: object[]}} Native library components and their edges
|
|
241
|
+
*/
|
|
242
|
+
export declare function buildCargoNativeLibraryComponents(packageInfo: Map<string, object>, edges: Map<string, Array<object>>, rollup: Map<string, object>): {
|
|
243
|
+
components: object[];
|
|
244
|
+
dependencies: object[];
|
|
245
|
+
};
|
|
47
246
|
/**
|
|
48
247
|
* Parses tab-separated cargo-auditable binary metadata output and returns a list
|
|
49
248
|
* of Rust package components. Optionally fetches crates.io metadata when
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-rust.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-rust.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parsers-rust.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-rust.js"],"names":[],"mappings":"AAisBA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACtC,aAAa,QAAA,EACb,MAAM,GAPG,OAOK,EACd,WAAW,GAPF,MAOO,EAChB,OAAO,KAAK,SAuQb;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,aAAa,QAAA,EACb,MAAM,GAPG,OAOK,EACd,WAAW,GAPF,MAOO,SAyGjB;AAgCD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,aAAa,EAJnD,MAImD,EAAE,OAAO,AAHpE,CACA,EADQ,MAGiE,GAF/D,MAAM,EAAE,CAs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gB,kCAAkC,CAAC,EACjD,QAAQ,EACR,KAAK,EACL,WAAW,EACX,gBAAqB,EACrB,gBAA4B,GAC7B,EAbE;IAAqB,QAAQ,EAArB,MAAM,CACd;IAAqB,KAAK,EAAlB,MAAM,CACd;IAAqB,WAAW,EAAxB,MAAM,CACd;IAAwB,gBAAgB,AAAxC,CACA,EADQ,MAAM,EAAE,CAChB;IAA2B,gBAAgB,AAA3C,CACA,EADQ,GAAG,CAAC,MAAM,CAAC,CACnB;CAQF,GARY;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAC,CA2FrE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,EALlD,GAAG,CAAC,MAAM,EAAE,MAAM,CAKgC,EAAE,KAAK,EAJzD,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAIgC,EAAE,MAAM,EAHjE,GAAG,CAAC,MAAM,EAAE,MAAM,CAG+C,GAF/D;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAwJ1D;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAAC,SAAS,EAH5C,MAG4C,GAF1C,OAAO,CAAC,MAAM,EAAE,CAAC,CA4B7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HPC Spack parser for `spack.lock`.
|
|
3
|
+
*
|
|
4
|
+
* Spack writes a JSON lock file when an environment is concretised:
|
|
5
|
+
*
|
|
6
|
+
* - `roots` — the specs the user asked for, each as `{hash, spec}`.
|
|
7
|
+
* - `concrete_specs` — every node of the resolved DAG, keyed by its DAG
|
|
8
|
+
* hash. A node carries its `name`, `version`, `namespace`, the compiler
|
|
9
|
+
* and architecture it was built for, and a `dependencies` list whose
|
|
10
|
+
* entries reference other nodes by hash.
|
|
11
|
+
*
|
|
12
|
+
* The DAG hash is the identity Spack itself uses: two builds of the same
|
|
13
|
+
* version with different variants or compilers are different hashes, so the
|
|
14
|
+
* graph is keyed by hash throughout and the hash is carried into each
|
|
15
|
+
* component's bom-ref.
|
|
16
|
+
*
|
|
17
|
+
* No `spack` purl type is registered, so nodes are identified as generic
|
|
18
|
+
* packages carrying a `cdx:purl:proposedType=spack` property, following the
|
|
19
|
+
* convention used for nix and zig. The DAG hash is kept as a property because
|
|
20
|
+
* it identifies the concrete build, not the artifact bytes.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Parse a `spack.lock` file.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} spackLockFile Path to `spack.lock`
|
|
26
|
+
* @returns {{ pkgList: object[], dependencies: object[], rootInputs: string[] }}
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseSpackLock(spackLockFile: string): {
|
|
29
|
+
pkgList: object[];
|
|
30
|
+
dependencies: object[];
|
|
31
|
+
rootInputs: string[];
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=parsers-spack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsers-spack.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-spack.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAHjC,MAGiC,GAF/B;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CAgE/E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Haskell Stack parser for `stack.yaml` and its lock file.
|
|
3
|
+
*
|
|
4
|
+
* Stack resolves packages from a snapshot plus the `extra-deps` a project
|
|
5
|
+
* declares, and writes the completed locations to `stack.yaml.lock` (named
|
|
6
|
+
* after the configuration file, so a custom `foo.yaml` locks to
|
|
7
|
+
* `foo.yaml.lock`). The lock is YAML with two lists:
|
|
8
|
+
*
|
|
9
|
+
* - `packages` — one entry per extra-dep, each holding the `original`
|
|
10
|
+
* incomplete specification and the `completed` location. A Hackage
|
|
11
|
+
* location is the string `<name>-<version>@sha256:<hex>,<size>`; a
|
|
12
|
+
* repository location carries `url`, `commit` and `subdir`.
|
|
13
|
+
* - `snapshots` — the resolved snapshot chain, each with the `original`
|
|
14
|
+
* name (`lts-22.28`) and the `completed` url, size and sha256.
|
|
15
|
+
*
|
|
16
|
+
* The lock pins only the extra-deps: packages taken from the snapshot are not
|
|
17
|
+
* listed, because the snapshot url and digest already pin them. The snapshot
|
|
18
|
+
* is therefore recorded on the parent component rather than expanded.
|
|
19
|
+
*
|
|
20
|
+
* Hackage packages are identified with the registered `hackage` purl type
|
|
21
|
+
* (`pkg:hackage/<name>@<version>`).
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Parse a Stack project from its lock file, with optional `stack.yaml`.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} stackLockFile Path to `stack.yaml.lock` or `stack.lock`
|
|
27
|
+
* @param {string} [stackYamlFile] Path to `stack.yaml`, if present
|
|
28
|
+
* @returns {{ pkgList: object[], parentComponent: object, rootInputs: string[] }}
|
|
29
|
+
*/
|
|
30
|
+
export declare function parseStackProject(stackLockFile: string, stackYamlFile?: string): {
|
|
31
|
+
pkgList: object[];
|
|
32
|
+
parentComponent: object;
|
|
33
|
+
rootInputs: string[];
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=parsers-stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsers-stack.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-stack.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAJpC,MAIoC,EAAE,aAAa,AAH3D,CACA,EADQ,MAGmD,GAFjD;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CA0ChF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terraform and OpenTofu parser for `.terraform.lock.hcl`.
|
|
3
|
+
*
|
|
4
|
+
* The lock file pins every provider the configuration resolves to, with its
|
|
5
|
+
* exact version, the version constraints that produced it, and content
|
|
6
|
+
* hashes. It is written in a small, regular subset of HCL: provider blocks,
|
|
7
|
+
* `version` and `constraints` attributes, and a `hashes` list of prefixed
|
|
8
|
+
* digests. A line scanner is sufficient and avoids a general HCL parser.
|
|
9
|
+
*
|
|
10
|
+
* Provider addresses look like `registry.terraform.io/hashicorp/aws`; the
|
|
11
|
+
* registry host and namespace identify the provider upstream, so they are
|
|
12
|
+
* kept in the component group and a generic purl
|
|
13
|
+
* (`pkg:generic/<host>/<namespace>/<type>@<version>`), with the intended type
|
|
14
|
+
* recorded as a `cdx:purl:proposedType` property because no `terraform`
|
|
15
|
+
* purl type is registered.
|
|
16
|
+
*
|
|
17
|
+
* The two hash schemes in the `hashes` list mean different things. A `zh:`
|
|
18
|
+
* digest is a SHA-256 of the official `.zip` package as the registry indexes
|
|
19
|
+
* it, so it is the one a consumer can check an artifact against and the one
|
|
20
|
+
* emitted in the CycloneDX `hashes` array. An `h1:` digest is base64 over a
|
|
21
|
+
* hash of the package's *contents* rather than the archive, which lets
|
|
22
|
+
* Terraform verify an unpacked directory but makes it useless as an artifact
|
|
23
|
+
* checksum; it is kept as a property instead of being mislabelled SHA-256.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Parse a `.terraform.lock.hcl` file.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} lockFile Path to the lock file
|
|
29
|
+
* @returns {{ pkgList: object[] }} Provider components
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseTerraformLockFile(lockFile: string): {
|
|
32
|
+
pkgList: object[];
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=parsers-terraform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsers-terraform.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-terraform.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAHpC,MAGoC,GAFlC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAkEjC"}
|
|
@@ -71,9 +71,9 @@ export declare function createUVLock(basePath: string, options: Object): void;
|
|
|
71
71
|
*/
|
|
72
72
|
export declare function getPipFrozenTree(basePath: string, reqOrSetupFile: string, tempVenvDir: string, parentComponent: Object, projectRoot: any, getTreeWithPluginFn: any): Object;
|
|
73
73
|
export declare function getPipTreeForPackages(basePath: any, pkgList: any, tempVenvDir: any, parentComponent: any, getTreeWithPluginFn: any): {
|
|
74
|
+
failedPkgList?: undefined;
|
|
74
75
|
rootList?: undefined;
|
|
75
76
|
dependenciesList?: undefined;
|
|
76
|
-
failedPkgList?: undefined;
|
|
77
77
|
} | {
|
|
78
78
|
failedPkgList: any[];
|
|
79
79
|
rootList: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rusi.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/rusi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rusi.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/rusi.js"],"names":[],"mappings":"AAqtBA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAHhC,MAGgC,GAF9B,OAAO,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAH9B,MAG8B,GAF5B,MAAM,GAAC,SAAS,CAW5B;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,EALxB,MAKwB,EAAE,UAAU,EAJpC,MAIoC,EAAE,OAAO,GAH7C,MAGkD,GAFhD,OAAO,CAuDnB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAJ3B,MAI2B,EAAE,OAAO,GAHpC,MAGyC,GAFvC,MAAM,GAAC,SAAS,CA2B5B;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,GAJnC,MAIwC,EAAE,UAAU,QAAK,GAFvD,MAAM,CA8DlB"}
|
|
@@ -115,6 +115,7 @@ export declare function analyzeProject(dbObjMap: Object, options: Object): Promi
|
|
|
115
115
|
userDefinedTypesMap: {};
|
|
116
116
|
componentPropertiesMap?: undefined;
|
|
117
117
|
metadataProperties?: undefined;
|
|
118
|
+
workspaceComponent?: undefined;
|
|
118
119
|
atomFile?: undefined;
|
|
119
120
|
usagesSlicesFile?: undefined;
|
|
120
121
|
dataFlowSlicesFile?: undefined;
|
|
@@ -135,6 +136,32 @@ export declare function analyzeProject(dbObjMap: Object, options: Object): Promi
|
|
|
135
136
|
cryptoGeneratePurls: any;
|
|
136
137
|
servicesMap: {};
|
|
137
138
|
userDefinedTypesMap: {};
|
|
139
|
+
workspaceComponent?: undefined;
|
|
140
|
+
atomFile?: undefined;
|
|
141
|
+
usagesSlicesFile?: undefined;
|
|
142
|
+
dataFlowSlicesFile?: undefined;
|
|
143
|
+
reachablesSlicesFile?: undefined;
|
|
144
|
+
semanticsSlicesFile?: undefined;
|
|
145
|
+
tempDir?: undefined;
|
|
146
|
+
tempDirOwned?: undefined;
|
|
147
|
+
aiComponents?: undefined;
|
|
148
|
+
openapiSpecFile?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
purlLocationMap: {};
|
|
151
|
+
dataFlowFrames: {};
|
|
152
|
+
componentPropertiesMap: {};
|
|
153
|
+
metadataProperties: any[];
|
|
154
|
+
cryptoComponents: any[];
|
|
155
|
+
cryptoGeneratePurls: {};
|
|
156
|
+
servicesMap: {};
|
|
157
|
+
userDefinedTypesMap: {};
|
|
158
|
+
workspaceComponent: {
|
|
159
|
+
type: string;
|
|
160
|
+
name: any;
|
|
161
|
+
version: any;
|
|
162
|
+
purl: any;
|
|
163
|
+
"bom-ref": any;
|
|
164
|
+
} | undefined;
|
|
138
165
|
atomFile?: undefined;
|
|
139
166
|
usagesSlicesFile?: undefined;
|
|
140
167
|
dataFlowSlicesFile?: undefined;
|
|
@@ -147,6 +174,7 @@ export declare function analyzeProject(dbObjMap: Object, options: Object): Promi
|
|
|
147
174
|
} | {
|
|
148
175
|
componentPropertiesMap?: undefined;
|
|
149
176
|
metadataProperties?: undefined;
|
|
177
|
+
workspaceComponent?: undefined;
|
|
150
178
|
usagesSlicesFile: any;
|
|
151
179
|
dataFlowSlicesFile: any;
|
|
152
180
|
semanticsSlicesFile: any;
|
|
@@ -165,6 +193,7 @@ export declare function analyzeProject(dbObjMap: Object, options: Object): Promi
|
|
|
165
193
|
} | {
|
|
166
194
|
componentPropertiesMap?: undefined;
|
|
167
195
|
metadataProperties?: undefined;
|
|
196
|
+
workspaceComponent?: undefined;
|
|
168
197
|
atomFile: any;
|
|
169
198
|
usagesSlicesFile: any;
|
|
170
199
|
dataFlowSlicesFile: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evinser.d.ts","sourceRoot":"","sources":["../../../lib/evinser/evinser.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evinser.d.ts","sourceRoot":"","sources":["../../../lib/evinser/evinser.js"],"names":[],"mappings":"AAqGA;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAF5B,MAE4B;;;;;;;eAuDtC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAPE,MAOF,EACP,SAAS,wBAAA,EACT,UAAU,EAPD,MAOC,EACV,OAAO,GAPE,MAOG,GAND,OAAO,CAAC,IAAI,CAAC,CAmDz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IAAI,EAHpC,MAGoC,GAFlC,MAAM,EAAE,GAAC,SAAS,CAwF9B;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,cAAc,EAJ1C,MAI0C,EAAE,OAAO,EAHnD,MAGmD,gBAqM7D;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EARC,MAQD,EACR,mBAAmB,EARV,MAQU,EACnB,aAAa,EARJ,MAQI,EACb,QAAQ,EARC,MAQD,EACR,gBAAgB,EARP,MAQO,EAChB,cAAc,EARL,MAQK,eA4Gf;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAHrC,MAGqC,EAAE,eAAe,EAFtD,MAEsD;;;;;;;;YAgFzD,SAAS;YACT,GAAG;;;;EASV;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,QAAQ,OAAA,qBA4DnC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAH9B,MAG8B,UAExC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAJvC,MAIuC,EAAE,YAAY,EAHrD,MAGqD,GAFnD,MAAM,GAAC,SAAS,CAmD5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The purl type used for installed agentic CLI tools. These tools ship as
|
|
3
|
+
* self-contained executables rather than as a resolvable source package, so a
|
|
4
|
+
* `pkg:generic/...` identifier is the honest representation.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENTIC_TOOL_PURL_TYPE = "generic";
|
|
7
|
+
/**
|
|
8
|
+
* Rewrite an absolute path under the user's home directory to a `~`-relative
|
|
9
|
+
* form so the emitted BOM does not carry the local username.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} filePath Absolute path
|
|
12
|
+
* @returns {string} Home-relative path when applicable, else the input
|
|
13
|
+
*/
|
|
14
|
+
export declare function redactHomePath(filePath: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Describe where each supported agentic CLI tool stores its per-user state.
|
|
17
|
+
*
|
|
18
|
+
* Each entry lists the tool key, a display name, and the candidate home
|
|
19
|
+
* directories per platform (mirroring how `getIdeExtensionDirs` models IDE
|
|
20
|
+
* extension locations). Only the current platform's directories plus
|
|
21
|
+
* always-present dot-directories are included.
|
|
22
|
+
*
|
|
23
|
+
* @returns {Array<{tool: string, name: string, dirs: string[], supportDirs?: string[]}>}
|
|
24
|
+
* One entry per known agentic CLI tool.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getAgenticToolDirs(): Array<{
|
|
27
|
+
tool: string;
|
|
28
|
+
name: string;
|
|
29
|
+
dirs: string[];
|
|
30
|
+
supportDirs?: string[];
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Discover which agentic CLI tools are installed for the current user by
|
|
34
|
+
* checking their known home directories.
|
|
35
|
+
*
|
|
36
|
+
* @returns {Array<{tool: string, name: string, dir: string, supportDir?: string}>}
|
|
37
|
+
* One entry per discovered tool, using the first existing directory.
|
|
38
|
+
*/
|
|
39
|
+
export declare function discoverAgenticTools(): Array<{
|
|
40
|
+
tool: string;
|
|
41
|
+
name: string;
|
|
42
|
+
dir: string;
|
|
43
|
+
supportDir?: string;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Compute safe, redacted signal counts for a discovered tool. Only structural
|
|
47
|
+
* counts and small enumerated values are returned; no credential, transcript,
|
|
48
|
+
* or telemetry content is read.
|
|
49
|
+
*
|
|
50
|
+
* @param {string} tool Tool key
|
|
51
|
+
* @param {string} dir Discovered tool home directory
|
|
52
|
+
* @param {string} [supportDir] Optional platform support directory
|
|
53
|
+
* @returns {Object} Map of signal name to count/boolean/small-string value
|
|
54
|
+
*/
|
|
55
|
+
export declare function collectToolSignals(tool: string, dir: string, supportDir?: string): Object;
|
|
56
|
+
/**
|
|
57
|
+
* Build a CycloneDX application component for one discovered agentic tool.
|
|
58
|
+
*
|
|
59
|
+
* @param {{tool: string, name: string, dir: string, supportDir?: string}} entry
|
|
60
|
+
* Discovered tool entry
|
|
61
|
+
* @returns {Object} CycloneDX component
|
|
62
|
+
*/
|
|
63
|
+
export declare function componentForAgenticTool(entry: {
|
|
64
|
+
tool: string;
|
|
65
|
+
name: string;
|
|
66
|
+
dir: string;
|
|
67
|
+
supportDir?: string;
|
|
68
|
+
}): Object;
|
|
69
|
+
/**
|
|
70
|
+
* Discover installed agentic CLI tools on the current host and return CycloneDX
|
|
71
|
+
* components describing each one, plus the child agents, plugins, and providers
|
|
72
|
+
* they define and the dependency edges linking children to their tool.
|
|
73
|
+
*
|
|
74
|
+
* This host scan is unconditional: it does not consult scan filters such as
|
|
75
|
+
* `--exclude` or profile/technique options, because it inventories fixed tool
|
|
76
|
+
* home directories rather than a project tree. The `options` argument is
|
|
77
|
+
* accepted for signature parity and is intentionally not used to alter results.
|
|
78
|
+
*
|
|
79
|
+
* @param {Object} [options={}] Collection options (accepted but not applied)
|
|
80
|
+
* @returns {{components: Object[], services: Object[], dependencies: Object[]}} Discovered inventory
|
|
81
|
+
*/
|
|
82
|
+
export declare function collectAgenticTools(_options?: {}): {
|
|
83
|
+
components: Object[];
|
|
84
|
+
services: Object[];
|
|
85
|
+
dependencies: Object[];
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=agenticToolutils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenticToolutils.d.ts","sourceRoot":"","sources":["../../../lib/helpers/agenticToolutils.js"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,YAAY,CAAC;AA8BhD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAH5B,MAG4B,GAF1B,MAAM,CAgBlB;AAqBD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,IAHrB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC,CAyGvF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAHvB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,CAgBjF;AAoUD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAL5B,MAK4B,EAAE,GAAG,EAJjC,MAIiC,EAAE,UAAU,AAHrD,CACA,EADQ,MAG6C,GAF3C,MAAM,CAkClB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAJlC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAI3B,GAFhC,MAAM,CA8ClB;AA0OD;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,KAAK,GAFpC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAoC9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentFormulationParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/agentFormulationParser.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agentFormulationParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/agentFormulationParser.js"],"names":[],"mappings":"AA4LA;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;CAsLlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiCollector.d.ts","sourceRoot":"","sources":["../../../lib/inventory/a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IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAQhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiInventory.d.ts","sourceRoot":"","sources":["../../../lib/inventory/aiInventory.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aiInventory.d.ts","sourceRoot":"","sources":["../../../lib/inventory/aiInventory.js"],"names":[],"mappings":"AAgBA,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,UAA4B,CAAC;AACpE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,aAapC,CAAC;AACH,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAqEjD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAJnC,MAImC,EAAE,IAAI,EAHzC,MAGyC,GAFvC,MAAM,GAAC,SAAS,CAI5B;AAYD;;;;;;GAMG;AACH,wBAAgB,oCAAoC,CAAC,WAAW,EAJrD,MAAM,GAAC,MAAM,EAAE,GAAC,SAIqC,EAAE,IAAI,EAH3D,MAG2D,GAFzD,OAAO,CAkBnB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAHrC,MAGqC,GAFnC,MAAM,EAAE,CAiCpB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAJnC,MAImC,EAAE,IAAI,EAHzC,MAGyC,GAFvC,OAAO,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAJ1C,MAI0C,EAAE,IAAI,EAHhD,MAGgD,GAF9C,OAAO,CAiBnB;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAJ5C,MAAM,EAIsC,EAAE,KAAK,EAHnD,MAAM,EAG6C,GAFjD,MAAM,EAAE,CAYpB;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EANH,MAAM,EAMH,EACZ,UAAU,EAND,MAAM,EAML,EACV,QAAQ,EANC,MAAM,EAMP,GALG,MAAM,EAAE,CAgCpB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EALrC,MAKqC,EAAE,OAAO,EAJ9C,MAI8C,EAAE,KAAK,EAHrD,MAAM,EAG+C,GAFnD;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAyFhF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EATnC;IAAE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAST,GARjC;IACR,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CA+BH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../lib/inventory/analyzer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../lib/inventory/analyzer.js"],"names":[],"mappings":"AA2sDA;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,QAJ3B,MAAM,QACN,MAAM,KACJ;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAO7C,CAAC;AAoqBF;;;GAGG;AACH,eAAO,MAAM,wCAAwC,UAQpD,CAAC;AA4JF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,UAQpC,CAAC;AA+JF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAHrC,MAGqC,GAFnC;IAAC,m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D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,QAJzB,MAAM,SACN,OAAO,KACL,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAC,CAiC/D,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,QAN7B,MAAM,SACN,OAAO,KACL;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,2BAA0B;CAuGzE,CAAC;AAg9BF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,QAJ1B,MAAM,SACN,OAAO,KACL;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAiJ7E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,QAJpB,MAAM,SACN,OAAO,KACL;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAqrB7E,CAAC"}
|
|
@@ -6,6 +6,8 @@ export declare const CBOM_AUDIT_CATEGORIES: readonly string[];
|
|
|
6
6
|
export declare const HOST_TOPOLOGY_AUDIT_CATEGORIES: readonly string[];
|
|
7
7
|
/** Frozen list of Golem (Go Evinse) audit categories. */
|
|
8
8
|
export declare const GOLEM_AUDIT_CATEGORIES: readonly string[];
|
|
9
|
+
/** Frozen list of Cargo (Rust) audit categories. */
|
|
10
|
+
export declare const CARGO_AUDIT_CATEGORIES: readonly string[];
|
|
9
11
|
/**
|
|
10
12
|
* Frozen list of audit categories that never activate on their own. These
|
|
11
13
|
* rule packs serve a specific feature (`--introspect` for build-fidelity) and
|
|
@@ -28,10 +30,12 @@ export declare const BOM_AUDIT_CATEGORY_ALIASES: Readonly<{
|
|
|
28
30
|
"ai-bom": string[];
|
|
29
31
|
"ai-provenance": string[];
|
|
30
32
|
"ai-oversight": string[];
|
|
33
|
+
cargo: string[];
|
|
31
34
|
cbom: string[];
|
|
32
35
|
"crypto-bom": string[];
|
|
33
36
|
golem: string[];
|
|
34
37
|
hbom: string[];
|
|
38
|
+
rust: string[];
|
|
35
39
|
host: string[];
|
|
36
40
|
}>;
|
|
37
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditCategories.d.ts","sourceRoot":"","sources":["../../../lib/inventory/auditCategories.js"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,mBAIhC,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,mBAGhC,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,mBAAmC,CAAC;AAE/E,yDAAyD;AACzD,eAAO,MAAM,sBAAsB,mBAIjC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,mBAAoC,CAAC;AAE7E,4DAA4D;AAC5D,eAAO,MAAM,uBAAuB,mBAIlC,CAAC;AAEH,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,QAAkC,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"auditCategories.d.ts","sourceRoot":"","sources":["../../../lib/inventory/auditCategories.js"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,mBAIhC,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,mBAGhC,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,mBAAmC,CAAC;AAE/E,yDAAyD;AACzD,eAAO,MAAM,sBAAsB,mBAIjC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,mBAGjC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,mBAAoC,CAAC;AAE7E,4DAA4D;AAC5D,eAAO,MAAM,uBAAuB,mBAIlC,CAAC;AAEH,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,QAAkC,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;EAarC,CAAC;AAMH;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAH3C,MAAM,GAAC,MAAM,EAG8B,GAFzC,MAAM,EAAE,CAiBpB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAHxC,MAAM,GAAC,MAAM,EAG2B,GAFtC,MAAM,EAAE,CAapB;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAHtC,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAC,CAGa,GAFpC,MAAM,EAAE,CAMpB;AAUD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAJ1C,MAAM,GAAC,MAAM,EAI6B,EAAE,KAAK,EAHjD,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAC,CAGwB,GAF/C;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,MAAM,EAAE,CAAA;CAAC,CAyB3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAJzC,MAIyC,EAAE,WAAW,AAH9D,CACA,EADQ,MAGsD,GAFpD,MAAM,GAAG,SAAS,CA8B9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cbomutils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/cbomutils.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAHhC,MAGgC,EAAE,gBAAgB,KAAA,SAiC5D;
|
|
1
|
+
{"version":3,"file":"cbomutils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/cbomutils.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAHhC,MAGgC,EAAE,gBAAgB,KAAA,SAiC5D;AAiXD;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CAAC,GAAG,EAL5C,MAK4C,EAAE,OAAO,AAJ7D,CAEA,EADA;IAA0B,IAAI,AAA9B,CACA,EADQ,OAAO,CACf;CAEkE,GAFxD,OAAO,CAAC,MAAM,EAAE,CAAC,CAkD7B;AAED;;;;;;;;GAQG;AACH,wBAAsB,4BAA4B,CAAC,GAAG,EAJ3C,MAI2C,EAAE,OAAO,AAH5D,CACA,EADQ,MAGyD,GAFvD,OAAO,CAAC,MAAM,EAAE,CAAC,CAuG7B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAHzB,MAGyB,SAanC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communityAiConfigParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/communityAiConfigParser.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"communityAiConfigParser.d.ts","sourceRoot":"","sources":["../../../lib/inventory/communityAiConfigParser.js"],"names":[],"mappings":"AA21BA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,EAL1B,MAsGT,CAAC"}
|
|
@@ -86,6 +86,29 @@ export declare function buildPurlAliasMap(components?: Object[]): Map<string, st
|
|
|
86
86
|
* @returns {string|undefined} Canonical component purl, the input purl when unaliased, or undefined when empty
|
|
87
87
|
*/
|
|
88
88
|
export declare function resolveComponentPurl(purl: string, purlAliasMap: Map<string, string>): string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Copy one dosai PackageReachability fact onto a component as properties.
|
|
91
|
+
*
|
|
92
|
+
* The occurrence/location consumers of PackageReachability read SourceLocations, EdgeIds,
|
|
93
|
+
* and NodeIds only, so dosai's Confidence, EvidenceKinds, ReachabilityKind, and
|
|
94
|
+
* ConfidenceReasons never reached the BOM: an unbuilt tree (Low confidence, unresolved
|
|
95
|
+
* evidence) was indistinguishable from a package that really is only imported. These
|
|
96
|
+
* properties carry that distinction to BOM consumers. They use the consumer-facing
|
|
97
|
+
* `cdx:dosai:reachability:*` namespace - not `internal:`, which is cdxgen's private
|
|
98
|
+
* bookkeeping namespace stripped or ignored by downstream tooling.
|
|
99
|
+
*
|
|
100
|
+
* @param {Object} component BOM component object (mutated; properties created on demand)
|
|
101
|
+
* @param {Object} reachability dosai PackageReachability entry
|
|
102
|
+
*/
|
|
103
|
+
export declare function addDosaiReachabilityProperties(component: Object, reachability: Object): void;
|
|
104
|
+
/**
|
|
105
|
+
* Attach dosai PackageReachability confidence facts to matching BOM components.
|
|
106
|
+
*
|
|
107
|
+
* @param {Object} methodsSlice Parsed dosai methods slice JSON
|
|
108
|
+
* @param {Object[]} [components] BOM components used to resolve purl aliases and mutate
|
|
109
|
+
* @returns {number} Number of distinct components enriched
|
|
110
|
+
*/
|
|
111
|
+
export declare function applyDosaiReachabilityEvidence(methodsSlice: Object, components?: Object[]): number;
|
|
89
112
|
/**
|
|
90
113
|
* Map a dosai methods slice to per-purl occurrence evidence.
|
|
91
114
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dosai.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dosai.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dosai.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dosai.js"],"names":[],"mappings":"AA8LA;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAHnC,MAGmC,GAFjC,OAAO,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,MAAM,GAAC,SAAS,CAW5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAN5B,MAM4B,EAAE,GAAG,EALjC,MAKiC,EAAE,UAAU,EAJ7C,MAI6C,EAA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