@socketsecurity/cli 1.1.101 → 1.1.151
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/CHANGELOG.md +277 -1
- package/README.md +9 -0
- package/bin/cli.js +33 -1
- package/dist/cli.js +9914 -5001
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +8 -6
- package/dist/constants.js.map +1 -1
- package/dist/init.gradle +73 -0
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/manifest-scripts/socket-facts.init.gradle +581 -0
- package/dist/manifest-scripts/socket-facts.plugin.scala +544 -0
- package/dist/shadow-npm-bin2.js +6 -6
- package/dist/shadow-npm-bin2.js.map +1 -1
- package/dist/shadow-npm-inject.js +10 -10
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/shadow-pnpm-bin2.js +13 -13
- package/dist/shadow-pnpm-bin2.js.map +1 -1
- package/dist/shadow-yarn-bin.js +3 -3
- package/dist/shadow-yarn-bin.js.map +1 -1
- package/dist/socket-completion.bash +0 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +1 -1
- package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-set.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/types.d.mts +1 -0
- package/dist/types/commands/fix/types.d.mts.map +1 -1
- package/dist/types/commands/manifest/bazel/bazel-cquery.d.mts +70 -0
- package/dist/types/commands/manifest/bazel/bazel-cquery.d.mts.map +1 -0
- package/dist/types/commands/manifest/bazel/bazel-pypi-discovery.d.mts +44 -0
- package/dist/types/commands/manifest/bazel/bazel-pypi-discovery.d.mts.map +1 -0
- package/dist/types/commands/manifest/bazel/bazel-pypi-parser.d.mts +46 -0
- package/dist/types/commands/manifest/bazel/bazel-pypi-parser.d.mts.map +1 -0
- package/dist/types/commands/manifest/bazel/bazel-query-runner.d.mts +66 -8
- package/dist/types/commands/manifest/bazel/bazel-query-runner.d.mts.map +1 -1
- package/dist/types/commands/manifest/bazel/bazel-repo-discovery.d.mts +69 -29
- package/dist/types/commands/manifest/bazel/bazel-repo-discovery.d.mts.map +1 -1
- package/dist/types/commands/manifest/bazel/bazel-workspace-walk.d.mts +18 -0
- package/dist/types/commands/manifest/bazel/bazel-workspace-walk.d.mts.map +1 -0
- package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts +26 -0
- package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts.map +1 -1
- package/dist/types/commands/manifest/bazel/extract_bazel_to_maven.d.mts +110 -7
- package/dist/types/commands/manifest/bazel/extract_bazel_to_maven.d.mts.map +1 -1
- package/dist/types/commands/manifest/bazel/extract_bazel_to_pypi.d.mts +20 -0
- package/dist/types/commands/manifest/bazel/extract_bazel_to_pypi.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-maven.d.mts +9 -0
- package/dist/types/commands/manifest/cmd-manifest-maven.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +15 -0
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +15 -0
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +19 -0
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -1
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +1 -1
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts +1 -0
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +12 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/parse-build-tool-opts.d.mts +9 -0
- package/dist/types/commands/manifest/parse-build-tool-opts.d.mts.map +1 -0
- package/dist/types/commands/manifest/run-manifest-facts.d.mts +24 -0
- package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/assemble.d.mts +16 -0
- package/dist/types/commands/manifest/scripts/assemble.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/build-tool.d.mts +3 -0
- package/dist/types/commands/manifest/scripts/build-tool.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/facts.d.mts +46 -0
- package/dist/types/commands/manifest/scripts/facts.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/records.d.mts +66 -0
- package/dist/types/commands/manifest/scripts/records.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts +10 -0
- package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts +7 -0
- package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts +8 -0
- package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts +43 -0
- package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/resolution-report.d.mts +18 -0
- package/dist/types/commands/manifest/scripts/resolution-report.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/run.d.mts +43 -0
- package/dist/types/commands/manifest/scripts/run.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/sidecar.d.mts +27 -0
- package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +1 -0
- package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-organization-list.d.mts +2 -2
- package/dist/types/commands/organization/fetch-organization-list.d.mts.map +1 -1
- package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-create-repo.d.mts +2 -2
- package/dist/types/commands/repository/fetch-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-delete-repo.d.mts +2 -2
- package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-list-all-repos.d.mts +2 -2
- package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-list-repos.d.mts +2 -2
- package/dist/types/commands/repository/fetch-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-update-repo.d.mts +2 -2
- package/dist/types/commands/repository/fetch-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/fetch-view-repo.d.mts +2 -2
- package/dist/types/commands/repository/fetch-view-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/handle-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/output-create-repo.d.mts +2 -2
- package/dist/types/commands/repository/output-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/output-delete-repo.d.mts +2 -2
- package/dist/types/commands/repository/output-delete-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/output-list-repos.d.mts +2 -2
- package/dist/types/commands/repository/output-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/output-update-repo.d.mts +2 -2
- package/dist/types/commands/repository/output-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repository/output-view-repo.d.mts +2 -2
- package/dist/types/commands/repository/output-view-repo.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
- package/dist/types/commands/scan/exclude-paths.d.mts +2 -2
- package/dist/types/commands/scan/exclude-paths.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +2 -2
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +2 -2
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +2 -2
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +2 -2
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-scan.d.mts +4 -0
- package/dist/types/commands/scan/fetch-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +2 -1
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +1 -1
- package/dist/types/commands/scan/finalize-tier1-scan.d.mts +9 -5
- package/dist/types/commands/scan/finalize-tier1-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/output-create-new-scan.d.mts +2 -2
- package/dist/types/commands/scan/output-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/output-delete-scan.d.mts +2 -2
- package/dist/types/commands/scan/output-delete-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/output-list-scans.d.mts +2 -2
- package/dist/types/commands/scan/output-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-metadata.d.mts +2 -2
- package/dist/types/commands/scan/output-scan-metadata.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-reach.d.mts +2 -1
- package/dist/types/commands/scan/output-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts +10 -3
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
- package/dist/types/commands/scan/reachability-units.d.mts +18 -0
- package/dist/types/commands/scan/reachability-units.d.mts.map +1 -0
- package/dist/types/commands/scan/stream-scan.d.mts +3 -1
- package/dist/types/commands/scan/stream-scan.d.mts.map +1 -1
- package/dist/types/constants.d.mts +2 -0
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/utils/api.d.mts +53 -7
- package/dist/types/utils/api.d.mts.map +1 -1
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/dlx.d.mts +4 -3
- package/dist/types/utils/dlx.d.mts.map +1 -1
- package/dist/types/utils/ecosystem.d.mts +8 -1
- package/dist/types/utils/ecosystem.d.mts.map +1 -1
- package/dist/types/utils/fs.d.mts +1 -0
- package/dist/types/utils/fs.d.mts.map +1 -1
- package/dist/types/utils/glob.d.mts +5 -4
- package/dist/types/utils/glob.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/path-resolve.d.mts +1 -1
- package/dist/types/utils/path-resolve.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +6 -0
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/types/utils/self-update.d.mts +3 -0
- package/dist/types/utils/self-update.d.mts.map +1 -0
- package/dist/types/utils/socket-json.d.mts +18 -0
- package/dist/types/utils/socket-json.d.mts.map +1 -1
- package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
- package/dist/utils.js +614 -283
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +50578 -27781
- package/external/blessed/lib/tput.js +5 -5
- package/package.json +60 -132
- package/requirements.json +1 -1
- package/shadow-bin/npm +0 -0
- package/shadow-bin/npx +0 -0
- package/shadow-bin/pnpm +0 -0
- package/shadow-bin/yarn +0 -0
- package/dist/types/commands/manifest/bazel/bazel-build-parser.d.mts +0 -34
- package/dist/types/commands/manifest/bazel/bazel-build-parser.d.mts.map +0 -1
- package/external/blessed/usr/fonts/AUTHORS +0 -1
- package/external/blessed/usr/fonts/LICENSE +0 -94
- package/external/blessed/usr/fonts/README +0 -340
- package/external/blessed/usr/fonts/ter-u14b.json +0 -17826
- package/external/blessed/usr/fonts/ter-u14n.json +0 -17826
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractedArtifact } from './bazel-
|
|
1
|
+
import type { ExtractedArtifact } from './bazel-cquery.mts';
|
|
2
2
|
export type ExtractBazelOptions = {
|
|
3
3
|
bazelFlags: string | undefined;
|
|
4
4
|
bazelOutputBase: string | undefined;
|
|
@@ -7,27 +7,130 @@ export type ExtractBazelOptions = {
|
|
|
7
7
|
cwd: string;
|
|
8
8
|
// Optional env override used for python-shim PATH augmentation.
|
|
9
9
|
env?: NodeJS.ProcessEnv;
|
|
10
|
+
// Directory basenames the workspace walker must not descend into.
|
|
11
|
+
// Caller-supplied so the orchestrator stays generic; the CLI command
|
|
12
|
+
// composes the codebase-wide `IGNORED_DIRS` with Bazel-specific dirs
|
|
13
|
+
// like `.socket-auto-manifest`.
|
|
14
|
+
ignoreDirNames?: ReadonlySet<string> | undefined;
|
|
15
|
+
// Directory basename prefixes the workspace walker must not descend
|
|
16
|
+
// into. Caller-supplied so the orchestrator stays generic; the CLI
|
|
17
|
+
// command supplies `bazel-` for Bazel's output_base symlinks.
|
|
18
|
+
ignoreDirPrefixes?: readonly string[] | undefined;
|
|
10
19
|
out: string;
|
|
11
20
|
// Use the auto-manifest sibling directory instead of writing directly to `out`.
|
|
12
21
|
outLayout?: 'flat';
|
|
22
|
+
// Per-repo cquery timeout in milliseconds. When the caller leaves this
|
|
23
|
+
// unset the orchestrator falls back to DEFAULT_PER_REPO_TIMEOUT_MS (the
|
|
24
|
+
// auto-manifest default, kept short so the wider scan is not stalled). The
|
|
25
|
+
// explicit `socket manifest bazel` command wires this to a CLI flag with a
|
|
26
|
+
// longer default.
|
|
27
|
+
perRepoTimeoutMs?: number | undefined;
|
|
13
28
|
verbose: boolean;
|
|
14
29
|
};
|
|
30
|
+
// Best-effort-per-hub produces four distinct run outcomes a single `ok`
|
|
31
|
+
// boolean would conflate:
|
|
32
|
+
// - `complete` — every discovered hub extracted cleanly; >=1 manifest.
|
|
33
|
+
// - `partial` — >=1 manifest written, but at least one hub failed,
|
|
34
|
+
// timed out, or dropped edges. Worth uploading, but the
|
|
35
|
+
// graph is known-incomplete.
|
|
36
|
+
// - `noEcosystem` — no Bazel/Maven found. Whether that's an error is
|
|
37
|
+
// caller-dependent (tolerated in auto mode, error in
|
|
38
|
+
// explicit mode), so it must NOT be flattened into the
|
|
39
|
+
// failure states.
|
|
40
|
+
// - `hardFailure` — zero manifests written and it wasn't `noEcosystem`
|
|
41
|
+
// (discovery threw, or every discovered hub failed).
|
|
42
|
+
// Always an error for every caller.
|
|
43
|
+
export type ExtractBazelStatus = 'complete' | 'hardFailure' | 'noEcosystem' | 'partial';
|
|
44
|
+
// Per-hub extraction state inside one workspace. Recorded so the CLI can emit
|
|
45
|
+
// a machine-readable completeness signal instead of presenting a partial
|
|
46
|
+
// extraction as complete.
|
|
47
|
+
// - `populated` — the hub yielded >=1 artifact and a manifest was written.
|
|
48
|
+
// - `empty` — the hub is defined but has no Maven targets.
|
|
49
|
+
// - `not-defined` — the probed conventional name does not exist here.
|
|
50
|
+
// - `skipped-lockfile` — a committed maven_install.json already covers this
|
|
51
|
+
// hub, so the CLI deliberately did not re-emit it.
|
|
52
|
+
// - `failed` — the hub's cquery errored, timed out, or its graph was
|
|
53
|
+
// known-incomplete (dropped/pruned edges, --keep_going).
|
|
54
|
+
// - `indeterminate` — discovery could not classify the hub (probe threw or
|
|
55
|
+
// returned an unrecognized error); NOT evidence of absence.
|
|
56
|
+
export type HubState = 'populated' | 'empty' | 'not-defined' | 'skipped-lockfile' | 'failed' | 'indeterminate';
|
|
57
|
+
export type HubOutcome = {
|
|
58
|
+
hub: string;
|
|
59
|
+
state: HubState;
|
|
60
|
+
// Short, machine-stable reason when the hub is `failed`/`indeterminate`.
|
|
61
|
+
reason?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
// Per-workspace outcome. `load` distinguishes a workspace we could not even
|
|
64
|
+
// read (`failed` — e.g. an unbound-var MODULE.bazel fragment) from one we
|
|
65
|
+
// analyzed (`loaded`). A workspace that failed to load contributes to a
|
|
66
|
+
// hard failure when nothing else was analyzable, and to a partial otherwise.
|
|
67
|
+
export type WorkspaceOutcome = {
|
|
68
|
+
relPath: string;
|
|
69
|
+
load: 'loaded' | 'failed';
|
|
70
|
+
hubs: HubOutcome[];
|
|
71
|
+
// Set when the workspace itself could not be analyzed.
|
|
72
|
+
reason?: string | undefined;
|
|
73
|
+
};
|
|
15
74
|
export type ExtractBazelResult = {
|
|
16
75
|
artifactCount: number;
|
|
17
|
-
|
|
18
|
-
|
|
76
|
+
manifestPaths: string[];
|
|
77
|
+
status: ExtractBazelStatus;
|
|
78
|
+
// True only when `status === 'complete'`. Surfaced so downstream consumers
|
|
79
|
+
// (and the CLI's emitted summary) get a single machine-readable
|
|
80
|
+
// completeness flag without re-deriving it from `status`.
|
|
81
|
+
complete: boolean;
|
|
82
|
+
// Per-workspace / per-hub analyzability breakdown backing the completeness
|
|
83
|
+
// signal. Empty for `noEcosystem` and early `hardFailure` (toolchain setup
|
|
84
|
+
// failed before any workspace was inspected).
|
|
85
|
+
workspaceOutcomes: WorkspaceOutcome[];
|
|
19
86
|
};
|
|
87
|
+
// Default directory-prune policy for the Bazel workspace walk. The
|
|
88
|
+
// orchestrator applies this unconditionally so neither caller (the explicit
|
|
89
|
+
// `socket manifest bazel` command nor `--auto-manifest`) can omit it and let
|
|
90
|
+
// the walk descend `node_modules`/VCS/vendored trees. Callers may
|
|
91
|
+
// pass extra names/prefixes to EXTEND, not replace, this set.
|
|
92
|
+
export declare const DEFAULT_BAZEL_WALKER_IGNORE_DIR_NAMES: ReadonlySet<string>;
|
|
93
|
+
// Bazel's `bazel-*` output_base symlinks.
|
|
94
|
+
export declare const DEFAULT_BAZEL_WALKER_IGNORE_DIR_PREFIXES: readonly string[];
|
|
20
95
|
type MavenInstallJsonCurrent = {
|
|
21
96
|
artifacts: Record<string, {
|
|
22
|
-
shasums: {
|
|
23
|
-
jar?: string;
|
|
24
|
-
};
|
|
25
97
|
version: string;
|
|
26
98
|
}>;
|
|
27
99
|
dependencies: Record<string, string[]>;
|
|
28
100
|
repositories?: Record<string, string[]>;
|
|
29
101
|
};
|
|
30
|
-
export
|
|
102
|
+
export type NormalizeResult = {
|
|
103
|
+
json: MavenInstallJsonCurrent;
|
|
104
|
+
// Versionless keys skipped because the coordinate was malformed (key shape
|
|
105
|
+
// outside 2-4 non-empty segments, or an empty version). Known data loss.
|
|
106
|
+
droppedArtifacts: string[];
|
|
107
|
+
// `source -> target` edges pruned because one endpoint wasn't an emitted
|
|
108
|
+
// artifact. Known data loss.
|
|
109
|
+
prunedEdges: string[];
|
|
110
|
+
};
|
|
111
|
+
// Builds a modern `maven_install.json` from artifacts whose `deps` already
|
|
112
|
+
// hold resolved versionless coordinates (the cquery parser resolves edge
|
|
113
|
+
// labels against each repo's own targets while `repoName` is in scope, so no
|
|
114
|
+
// label-to-coordinate resolution happens here). Keys are versionless `g:a`
|
|
115
|
+
// (preserving any packaging/classifier segments); dependency values are the
|
|
116
|
+
// resolved coordinate sets.
|
|
117
|
+
//
|
|
118
|
+
// Two-phase so the emitted graph is internally closed and survives the server
|
|
119
|
+
// parser, which rejects malformed coordinates and edges referencing unlisted
|
|
120
|
+
// artifacts (and can abort after enough errors). Phase 1 builds (and
|
|
121
|
+
// validates) the artifact keys; phase 2 emits only edges whose source AND
|
|
122
|
+
// target are valid emitted keys. Anything dropped is reported so the caller
|
|
123
|
+
// can flip the hub partial — never silently lost post-upload.
|
|
124
|
+
export declare function normalizeToMavenInstallJson(artifacts: ExtractedArtifact[]): NormalizeResult;
|
|
125
|
+
// Cross-workspace dedup keyed on the full Maven coordinate string
|
|
126
|
+
// (`g:a:v[:classifier]`). The metadata cquery emits one entry per rule,
|
|
127
|
+
// so the same `androidx.annotation:annotation:1.8.2` can show up in
|
|
128
|
+
// `examples/dagger/@maven` and `examples/ksp/@maven` in rules_kotlin —
|
|
129
|
+
// downstream only needs it once. Each occurrence resolves its edges against
|
|
130
|
+
// its own repo's targets, so the resolved `deps` can legitimately differ
|
|
131
|
+
// between occurrences; union them rather than keeping only the first, or
|
|
132
|
+
// real graph edges would be silently dropped.
|
|
133
|
+
export declare function dedupArtifactsByCoord(artifacts: ExtractedArtifact[]): ExtractedArtifact[];
|
|
31
134
|
export declare function extractBazelToMaven(opts: ExtractBazelOptions): Promise<ExtractBazelResult>;
|
|
32
135
|
export {};
|
|
33
136
|
//# sourceMappingURL=extract_bazel_to_maven.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract_bazel_to_maven.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/bazel/extract_bazel_to_maven.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract_bazel_to_maven.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/bazel/extract_bazel_to_maven.mts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ExtractBazelToPypiOptions = {
|
|
2
|
+
bazelFlags: string | undefined;
|
|
3
|
+
bazelOutputBase: string | undefined;
|
|
4
|
+
bazelRc: string | undefined;
|
|
5
|
+
bin: string | undefined;
|
|
6
|
+
cwd: string;
|
|
7
|
+
env?: NodeJS.ProcessEnv;
|
|
8
|
+
out: string;
|
|
9
|
+
outLayout?: 'flat' | 'standalone';
|
|
10
|
+
verbose: boolean;
|
|
11
|
+
explicitEcosystem?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type ExtractBazelToPypiResult = {
|
|
14
|
+
artifactCount: number;
|
|
15
|
+
manifestPath?: string | undefined;
|
|
16
|
+
ok: boolean;
|
|
17
|
+
noEcosystemFound?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function extractBazelToPypi(opts: ExtractBazelToPypiOptions): Promise<ExtractBazelToPypiResult>;
|
|
20
|
+
//# sourceMappingURL=extract_bazel_to_pypi.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract_bazel_to_pypi.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/bazel/extract_bazel_to_pypi.mts"],"names":[],"mappings":"AAyCA,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAmBD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,wBAAwB,CAAC,CA8NnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-manifest-auto.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-auto.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-manifest-auto.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-auto.mts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAqC9C,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CAyEf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-manifest-gradle.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-gradle.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-manifest-gradle.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-gradle.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAuF9C,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CAoMf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-manifest-kotlin.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-kotlin.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-manifest-kotlin.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-kotlin.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AA4F9C,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CAkMf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CliCommandContext } from '../../utils/meow-with-subcommands.mts';
|
|
2
|
+
export declare const cmdManifestMaven: {
|
|
3
|
+
description: string;
|
|
4
|
+
hidden: boolean;
|
|
5
|
+
run: typeof run;
|
|
6
|
+
};
|
|
7
|
+
declare function run(argv: string[] | readonly string[], importMeta: ImportMeta, { parentName }: CliCommandContext): Promise<void>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=cmd-manifest-maven.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd-manifest-maven.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-maven.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAqE9C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CA8If"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-manifest-scala.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-scala.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-manifest-scala.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-scala.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AA2G9C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CA0Of"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-manifest.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-manifest.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest.mts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAqC9C,eAAO,MAAM,WAAW;;;;CAIvB,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CA8Bf"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
2
|
+
// Generates `.socket.facts.json` for a Gradle project via the bundled init script.
|
|
3
|
+
export declare function convertGradleToFacts({ bin, cwd, excludeConfigs, excludePaths, gradleOpts, ignoreUnresolved, includeConfigs, sidecarAcc, verbose, withFiles }: {
|
|
4
|
+
bin: string;
|
|
5
|
+
cwd: string;
|
|
6
|
+
excludeConfigs: string;
|
|
7
|
+
excludePaths?: string[] | undefined;
|
|
8
|
+
gradleOpts: string[];
|
|
9
|
+
ignoreUnresolved: boolean;
|
|
10
|
+
includeConfigs: string;
|
|
11
|
+
sidecarAcc?: SidecarAccumulator | undefined;
|
|
12
|
+
verbose: boolean;
|
|
13
|
+
withFiles?: boolean | undefined;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=convert-gradle-to-facts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-gradle-to-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/convert-gradle-to-facts.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,mFAAmF;AACnF,wBAAsB,oBAAoB,CAAC,EACzC,GAAG,EACH,GAAG,EACH,cAAc,EACd,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,OAAO,EACP,SAAS,EACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAchB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
2
|
+
// Generates `.socket.facts.json` for a Maven project via the bundled extension.
|
|
3
|
+
export declare function convertMavenToFacts({ bin, cwd, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, mavenOpts, sidecarAcc, verbose, withFiles }: {
|
|
4
|
+
bin: string;
|
|
5
|
+
cwd: string;
|
|
6
|
+
excludeConfigs: string;
|
|
7
|
+
excludePaths?: string[] | undefined;
|
|
8
|
+
ignoreUnresolved: boolean;
|
|
9
|
+
includeConfigs: string;
|
|
10
|
+
mavenOpts: string[];
|
|
11
|
+
sidecarAcc?: SidecarAccumulator | undefined;
|
|
12
|
+
verbose: boolean;
|
|
13
|
+
withFiles?: boolean | undefined;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=convert-maven-to-facts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-maven-to-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/convert-maven-to-facts.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,gFAAgF;AAChF,wBAAsB,mBAAmB,CAAC,EACxC,GAAG,EACH,GAAG,EACH,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAchB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
2
|
+
// Generates `.socket.facts.json` for an sbt project via the bundled sbt plugin.
|
|
3
|
+
// sbt 0.13/early 1.x can't run on modern JDKs — pass a compatible JDK via
|
|
4
|
+
// `--sbt-opts "--java-home <path>"` or `JAVA_HOME`.
|
|
5
|
+
export declare function convertSbtToFacts({ bin, cwd, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, sbtOpts, sidecarAcc, tmpDir, verbose, withFiles }: {
|
|
6
|
+
bin: string;
|
|
7
|
+
cwd: string;
|
|
8
|
+
excludeConfigs: string;
|
|
9
|
+
excludePaths?: string[] | undefined;
|
|
10
|
+
ignoreUnresolved: boolean;
|
|
11
|
+
includeConfigs: string;
|
|
12
|
+
sbtOpts: string[];
|
|
13
|
+
sidecarAcc?: SidecarAccumulator | undefined;
|
|
14
|
+
// Caller-owned; see ManifestScriptOptions.tmpDir.
|
|
15
|
+
tmpDir: string;
|
|
16
|
+
verbose: boolean;
|
|
17
|
+
withFiles?: boolean | undefined;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
//# sourceMappingURL=convert-sbt-to-facts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-sbt-to-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/convert-sbt-to-facts.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,gFAAgF;AAChF,4EAA0E;AAC1E,oDAAoD;AACpD,wBAAsB,iBAAiB,CAAC,EACtC,GAAG,EACH,GAAG,EACH,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,EACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC3C,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAehB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare function convertGradleToMaven({ bin, cwd, gradleOpts, verbose }: {
|
|
1
|
+
export declare function convertGradleToMaven({ bin, cwd, excludePaths, gradleOpts, verbose }: {
|
|
2
2
|
bin: string;
|
|
3
3
|
cwd: string;
|
|
4
|
+
excludePaths?: string[] | undefined;
|
|
4
5
|
verbose: boolean;
|
|
5
6
|
gradleOpts: string[];
|
|
6
7
|
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert_gradle_to_maven.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/convert_gradle_to_maven.mts"],"names":[],"mappings":"AAQA,wBAAsB,oBAAoB,CAAC,EACzC,GAAG,EACH,GAAG,EACH,UAAU,EACV,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,
|
|
1
|
+
{"version":3,"file":"convert_gradle_to_maven.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/convert_gradle_to_maven.mts"],"names":[],"mappings":"AAQA,wBAAsB,oBAAoB,CAAC,EACzC,GAAG,EACH,GAAG,EACH,YAAY,EACZ,UAAU,EACV,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,iBA8FA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect-manifest-actions.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/detect-manifest-actions.mts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE7D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,GAAG,EAAE,OAAO,CAAA;CACb;AAED,wBAAsB,qBAAqB;AACzC,0EAA0E;AAC1E,kEAAkE;AAClE,QAAQ,EAAE,UAAU,GAAG,IAAI,EAC3B,GAAG,SAAgB,GAClB,OAAO,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"detect-manifest-actions.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/detect-manifest-actions.mts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE7D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,OAAO,CAAA;CACb;AAED,wBAAsB,qBAAqB;AACzC,0EAA0E;AAC1E,kEAAkE;AAClE,QAAQ,EAAE,UAAU,GAAG,IAAI,EAC3B,GAAG,SAAgB,GAClB,OAAO,CAAC,oBAAoB,CAAC,CAqF/B"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import type { GeneratableManifests } from './detect-manifest-actions.mts';
|
|
2
|
+
import type { ResolvedPathsSidecar } from './scripts/sidecar.mts';
|
|
2
3
|
import type { OutputKind } from '../../types.mts';
|
|
3
4
|
export type GenerateAutoManifestResult = {
|
|
4
5
|
generatedFiles: string[];
|
|
6
|
+
// Reachability path only: resolved on-disk paths from the build-tool run.
|
|
7
|
+
resolvedPathsSidecar?: ResolvedPathsSidecar | undefined;
|
|
5
8
|
};
|
|
6
|
-
export declare function generateAutoManifest({ cwd, detected, outputKind, verbose }: {
|
|
9
|
+
export declare function generateAutoManifest({ computeArtifactsSidecar, cwd, detected, excludePaths, outputKind, tmpDir, verbose }: {
|
|
10
|
+
// Reachability path: run build tools with files to emit the sidecar.
|
|
11
|
+
computeArtifactsSidecar?: boolean | undefined;
|
|
7
12
|
detected: GeneratableManifests;
|
|
8
13
|
cwd: string;
|
|
14
|
+
// Scan-root-relative `--exclude-paths`: skip excluded subprojects and drop
|
|
15
|
+
// excluded source roots from the resolved-paths sidecar.
|
|
16
|
+
excludePaths?: string[] | undefined;
|
|
9
17
|
outputKind: OutputKind;
|
|
18
|
+
// Caller-owned; see ManifestScriptOptions.tmpDir. Only sbt reads it, but
|
|
19
|
+
// required here so every caller allocates one via withTmpDir uniformly.
|
|
20
|
+
tmpDir: string;
|
|
10
21
|
verbose: boolean;
|
|
11
22
|
}): Promise<GenerateAutoManifestResult>;
|
|
12
23
|
//# sourceMappingURL=generate_auto_manifest.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate_auto_manifest.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/generate_auto_manifest.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate_auto_manifest.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/generate_auto_manifest.mts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAA;CACxD,CAAA;AAmBD,wBAAsB,oBAAoB,CAAC,EACzC,uBAAuB,EACvB,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,MAAM,EACN,OAAO,EACR,EAAE;IACD,qEAAqE;IACrE,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7C,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,2EAA2E;IAC3E,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,UAAU,EAAE,UAAU,CAAA;IACtB,yEAAyE;IACzE,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;CACjB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAiMtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Tokenizes a build-tool options string (e.g. the value of `--gradle-opts`,
|
|
2
|
+
// `--sbt-opts`, `--maven-opts`) into individual argv tokens. Splits on
|
|
3
|
+
// whitespace but honors single and double quotes so a value containing spaces,
|
|
4
|
+
// such as a settings path (`-s "my settings.xml"`), survives as one token
|
|
5
|
+
// instead of being shredded into three. Quotes are consumed (not emitted), and
|
|
6
|
+
// quoting is intra-token aware (`-Dkey="a b"` -> `-Dkey=a b`). For unquoted
|
|
7
|
+
// input this is equivalent to the previous whitespace split.
|
|
8
|
+
export declare function parseBuildToolOpts(opts: string | undefined): string[];
|
|
9
|
+
//# sourceMappingURL=parse-build-tool-opts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-build-tool-opts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/parse-build-tool-opts.mts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,uEAAuE;AACvE,+EAA+E;AAC/E,0EAA0E;AAC1E,+EAA+E;AAC/E,4EAA4E;AAC5E,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CA4CrE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BuildTool } from './scripts/build-tool.mts';
|
|
2
|
+
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
3
|
+
// Runs the bundled build-tool resolution script for a JVM project and writes
|
|
4
|
+
// `.socket.facts.json`. `withFiles` (reachability only) additionally folds
|
|
5
|
+
// resolved artifact paths into `sidecarAcc`. A blocking resolution failure sets
|
|
6
|
+
// a non-zero exit code and returns (matching the `--pom` generator) unless
|
|
7
|
+
// `ignoreUnresolved`; a crashed build — a process failure, not an unresolved
|
|
8
|
+
// dependency — always fails.
|
|
9
|
+
export declare function runManifestFacts({ bin, buildOpts, cwd, ecosystem, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, sidecarAcc, tmpDir, verbose, withFiles }: {
|
|
10
|
+
bin: string;
|
|
11
|
+
buildOpts: string[];
|
|
12
|
+
cwd: string;
|
|
13
|
+
ecosystem: BuildTool;
|
|
14
|
+
excludeConfigs: string;
|
|
15
|
+
excludePaths?: string[] | undefined;
|
|
16
|
+
ignoreUnresolved: boolean;
|
|
17
|
+
includeConfigs: string;
|
|
18
|
+
sidecarAcc?: SidecarAccumulator | undefined;
|
|
19
|
+
// sbt only; see ManifestScriptOptions.tmpDir.
|
|
20
|
+
tmpDir?: string | undefined;
|
|
21
|
+
verbose: boolean;
|
|
22
|
+
withFiles?: boolean | undefined;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
//# sourceMappingURL=run-manifest-facts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-manifest-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/run-manifest-facts.mts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAc/D,6EAA6E;AAC7E,2EAA2E;AAC3E,gFAAgF;AAChF,2EAA2E;AAC3E,+EAA6E;AAC7E,+BAA6B;AAC7B,wBAAsB,gBAAgB,CAAC,EACrC,GAAG,EACH,SAAS,EACT,GAAG,EACH,SAAS,EACT,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,EACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,SAAS,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC3C,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAoIhB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ResolvedArtifactPaths, type SocketFactsSbom } from './facts.mts';
|
|
2
|
+
import type { ParsedRecords } from './records.mts';
|
|
3
|
+
import type { ResolutionReport } from './resolution-report.mts';
|
|
4
|
+
export type AssembleResult = {
|
|
5
|
+
facts: SocketFactsSbom;
|
|
6
|
+
report: ResolutionReport;
|
|
7
|
+
artifactPaths: ResolvedArtifactPaths;
|
|
8
|
+
};
|
|
9
|
+
export type AssembleOptions = {
|
|
10
|
+
emitProjects?: boolean | undefined;
|
|
11
|
+
// Injectable for tests; an uncompiled module's output dir is dropped (module
|
|
12
|
+
// stays resolvable via its sources).
|
|
13
|
+
fileExists?: ((path: string) => boolean) | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare function assembleFacts(parsed: ParsedRecords, opts?: AssembleOptions): AssembleResult;
|
|
16
|
+
//# sourceMappingURL=assemble.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assemble.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/assemble.mts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EAKrB,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,eAAe,CAAA;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI/D,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,EAAE,gBAAgB,CAAA;IACxB,aAAa,EAAE,qBAAqB,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAClC,6EAA6E;IAC7E,qCAAqC;IACrC,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAA;CACrD,CAAA;AAmBD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,aAAa,EACrB,IAAI,GAAE,eAAoB,GACzB,cAAc,CAgChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-tool.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/build-tool.mts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;AAkBlD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,GACvB,MAAM,CASR"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type AnyPURL = {
|
|
2
|
+
type: string;
|
|
3
|
+
namespace?: string | undefined;
|
|
4
|
+
name: string;
|
|
5
|
+
version?: string | undefined;
|
|
6
|
+
qualifiers?: Record<string, string> | undefined;
|
|
7
|
+
};
|
|
8
|
+
// No sources/targets here: those are local absolute paths, returned in-memory
|
|
9
|
+
// as ResolvedArtifactPaths, never serialized into the SBOM.
|
|
10
|
+
export type SocketFactsSbom = {
|
|
11
|
+
metadata?: SocketFactsSbomMetadata | undefined;
|
|
12
|
+
projects?: SocketFactsSbomProject[] | undefined;
|
|
13
|
+
components: SocketFactsSbomComponent[];
|
|
14
|
+
};
|
|
15
|
+
export type SocketFactsSbomMetadata = {
|
|
16
|
+
format: 'socket-facts-sbom';
|
|
17
|
+
tool: 'gradle' | 'maven' | 'sbt';
|
|
18
|
+
toolVersion: string;
|
|
19
|
+
javaVersion?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type SocketFactsSbomComponent = AnyPURL & {
|
|
22
|
+
id: string;
|
|
23
|
+
direct?: boolean | undefined;
|
|
24
|
+
dev?: boolean | undefined;
|
|
25
|
+
dependencies?: string[] | undefined;
|
|
26
|
+
};
|
|
27
|
+
export type SocketFactsSbomProject = AnyPURL & {
|
|
28
|
+
subprojectDir: string;
|
|
29
|
+
dependencies: string[];
|
|
30
|
+
resolvedAs: string[];
|
|
31
|
+
};
|
|
32
|
+
// Resolved on-disk paths for a --with-files run, keyed by coordinate. `targets`
|
|
33
|
+
// = classpath entries (jars / module output dirs); `sources` = module source
|
|
34
|
+
// roots.
|
|
35
|
+
export type ResolvedArtifactPaths = {
|
|
36
|
+
targetsByCoord: Map<string, string[]>;
|
|
37
|
+
// ext/classifier-agnostic, to recover the variant when an ingested ext is
|
|
38
|
+
// untrustworthy (Gradle lockfile / version-catalog hardcode ext=jar).
|
|
39
|
+
targetsByGav: Map<string, string[]>;
|
|
40
|
+
sourcesByCoord: Map<string, string[]>;
|
|
41
|
+
coords: Set<string>;
|
|
42
|
+
};
|
|
43
|
+
// Coordinate-based (not `id`-based) so it also matches foreign SBOMs like
|
|
44
|
+
// CycloneDX. Empty segments dropped.
|
|
45
|
+
export declare function mavenCoordinateKey(groupId: string | undefined, artifactId: string | undefined, type: string | undefined, classifier: string | undefined, version: string | undefined): string;
|
|
46
|
+
//# sourceMappingURL=facts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facts.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/facts.mts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CAChD,CAAA;AAED,8EAA8E;AAC9E,4DAA4D;AAC5D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAA;IAC9C,QAAQ,CAAC,EAAE,sBAAsB,EAAE,GAAG,SAAS,CAAA;IAC/C,UAAU,EAAE,wBAAwB,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,mBAAmB,CAAA;IAC3B,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,gFAAgF;AAChF,6EAA6E;AAC7E,SAAS;AACT,MAAM,MAAM,qBAAqB,GAAG;IAClC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACrC,0EAA0E;IAC1E,sEAAsE;IACtE,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACnC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACrC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CACpB,CAAA;AAED,0EAA0E;AAC1E,qCAAqC;AACrC,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,CAIR"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ResolutionFailure, UnscannableConfig } from './resolution-report.mts';
|
|
2
|
+
// Line-protocol the build-tool scripts emit to a records file (NOT stdout — sbt
|
|
3
|
+
// prints unsilenceable resolution noise there). One record per line, fields
|
|
4
|
+
// backslash-escaped (\\, \t, \n, \r) so a value can't break framing:
|
|
5
|
+
//
|
|
6
|
+
// <tag>\t<field>\t<field>...
|
|
7
|
+
//
|
|
8
|
+
// meta tool toolVersion javaVersion
|
|
9
|
+
// project projectKey group name version dir
|
|
10
|
+
// projectSrc projectKey path (--with-files only)
|
|
11
|
+
// projectTgt projectKey path (--with-files only)
|
|
12
|
+
// root rootId projectKey config prod(0|1)
|
|
13
|
+
// node rootId coordId group name version ext classifier direct(0|1)
|
|
14
|
+
// edge rootId parentCoordId childCoordId
|
|
15
|
+
// file rootId coordId path (--with-files only)
|
|
16
|
+
// scanned config
|
|
17
|
+
// failure coord detail config
|
|
18
|
+
// unscannable config detail
|
|
19
|
+
//
|
|
20
|
+
// A `root` is one (subproject, configuration) resolution root; `coordId` is the
|
|
21
|
+
// coordinate key (`group:name:ext:classifier:version`, empty segments dropped),
|
|
22
|
+
// used opaquely as the per-root node key. Unknown tags are ignored.
|
|
23
|
+
export type RawCoord = {
|
|
24
|
+
group: string;
|
|
25
|
+
name: string;
|
|
26
|
+
version: string;
|
|
27
|
+
ext: string;
|
|
28
|
+
classifier: string;
|
|
29
|
+
};
|
|
30
|
+
export type RawNode = {
|
|
31
|
+
coordId: string;
|
|
32
|
+
coord: RawCoord;
|
|
33
|
+
direct: boolean;
|
|
34
|
+
// --with-files only.
|
|
35
|
+
targets: string[];
|
|
36
|
+
};
|
|
37
|
+
export type RawRoot = {
|
|
38
|
+
rootId: string;
|
|
39
|
+
projectKey: string;
|
|
40
|
+
config: string;
|
|
41
|
+
prod: boolean;
|
|
42
|
+
nodes: Map<string, RawNode>;
|
|
43
|
+
edges: Array<[string, string]>;
|
|
44
|
+
};
|
|
45
|
+
export type RawProject = {
|
|
46
|
+
projectKey: string;
|
|
47
|
+
group: string;
|
|
48
|
+
name: string;
|
|
49
|
+
version: string;
|
|
50
|
+
dir: string;
|
|
51
|
+
sources: string[];
|
|
52
|
+
targets: string[];
|
|
53
|
+
};
|
|
54
|
+
export type ParsedRecords = {
|
|
55
|
+
tool: string;
|
|
56
|
+
toolVersion: string;
|
|
57
|
+
javaVersion: string;
|
|
58
|
+
projects: Map<string, RawProject>;
|
|
59
|
+
roots: Map<string, RawRoot>;
|
|
60
|
+
scannedConfigs: string[];
|
|
61
|
+
failures: ResolutionFailure[];
|
|
62
|
+
unscannable: UnscannableConfig[];
|
|
63
|
+
};
|
|
64
|
+
export declare function unescapeField(s: string): string;
|
|
65
|
+
export declare function parseRecords(text: string): ParsedRecords;
|
|
66
|
+
//# sourceMappingURL=records.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/records.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAEhC,kFAAgF;AAChF,4EAA4E;AAC5E,qEAAqE;AACrE,EAAE;AACF,+BAA+B;AAC/B,EAAE;AACF,+CAA+C;AAC/C,sDAAsD;AACtD,6EAA6E;AAC7E,6EAA6E;AAC7E,sDAAsD;AACtD,oFAAoF;AACpF,oDAAoD;AACpD,6EAA6E;AAC7E,uBAAuB;AACvB,sCAAsC;AACtC,+BAA+B;AAC/B,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,oEAAoE;AAEpE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,QAAQ,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,qBAAqB;IACrB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3B,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACjC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAA;IAC7B,WAAW,EAAE,iBAAiB,EAAE,CAAA;CACjC,CAAA;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAe/C;AAMD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CA6IxD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FailureCategory, ResolutionDialect } from './resolution-report-render.mts';
|
|
2
|
+
// Gradle's variant-aware resolver: distinct exceptions give mutually-exclusive
|
|
3
|
+
// phrasing, so most-specific-first substring checks classify reliably.
|
|
4
|
+
export declare function classifyGradleFailure(detail: string): FailureCategory;
|
|
5
|
+
// Every kind blocks except variant-ambiguity: the module demonstrably exists
|
|
6
|
+
// and is almost always captured via another configuration, so it's benign for
|
|
7
|
+
// the SBOM (non-blocking, count only). A module that resolves in NO config
|
|
8
|
+
// surfaces as not-found / no-matching-variant, which stay blocking.
|
|
9
|
+
export declare const GRADLE_DIALECT: ResolutionDialect;
|
|
10
|
+
//# sourceMappingURL=resolution-report-gradle.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolution-report-gradle.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/resolution-report-gradle.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAEvC,+EAA+E;AAC/E,uEAAuE;AACvE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAoCrE;AAED,6EAA6E;AAC7E,8EAA8E;AAC9E,2EAA2E;AAC3E,oEAAoE;AACpE,eAAO,MAAM,cAAc,EAAE,iBA+C5B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FailureCategory, ResolutionDialect } from './resolution-report-render.mts';
|
|
2
|
+
// Ivy/sbt resolver: no attribute-based variants, so no variant categories
|
|
3
|
+
// (Gradle-only). Ivy degrades transport failures to "not found".
|
|
4
|
+
export declare function classifyIvyFailure(detail: string): FailureCategory;
|
|
5
|
+
// Every kind blocks; no non-blocking kind because Ivy has no variant ambiguity.
|
|
6
|
+
export declare const SBT_DIALECT: ResolutionDialect;
|
|
7
|
+
//# sourceMappingURL=resolution-report-ivy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolution-report-ivy.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/resolution-report-ivy.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAEvC,0EAA0E;AAC1E,iEAAiE;AACjE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAsBlE;AAED,gFAAgF;AAChF,eAAO,MAAM,WAAW,EAAE,iBA4BzB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FailureCategory, ResolutionDialect } from './resolution-report-render.mts';
|
|
2
|
+
// Maven's resolver (Aether/maven-resolver): no attribute-based variants. Two
|
|
3
|
+
// failure shapes (artifact-resolution miss with config = scope, dependency-graph
|
|
4
|
+
// build failure with config = "graph") both classify off the root-cause message.
|
|
5
|
+
export declare function classifyMavenFailure(detail: string): FailureCategory;
|
|
6
|
+
// Every kind blocks; no non-blocking kind because Maven has no variant ambiguity.
|
|
7
|
+
export declare const MAVEN_DIALECT: ResolutionDialect;
|
|
8
|
+
//# sourceMappingURL=resolution-report-maven.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolution-report-maven.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/resolution-report-maven.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAEvC,6EAA6E;AAC7E,iFAAiF;AACjF,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAmCpE;AAED,kFAAkF;AAClF,eAAO,MAAM,aAAa,EAAE,iBA4B3B,CAAA"}
|