@socketsecurity/cli 1.1.152 → 1.1.153
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 +5 -0
- package/dist/cli.js +2348 -629
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/manifest-scripts/socket-facts.init.gradle +14 -45
- package/dist/manifest-scripts/socket-facts.plugin.scala +15 -46
- package/dist/manifest-scripts/socket-workspaces.init.gradle +99 -0
- package/dist/manifest-scripts/socket-workspaces.plugin.scala +112 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/manifest/cmd-manifest-dynamic-sbom-inference.d.mts +9 -0
- package/dist/types/commands/manifest/cmd-manifest-dynamic-sbom-inference.d.mts.map +1 -0
- 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.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-setup.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 +2 -1
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +2 -1
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +2 -1
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/discover-manifest-roots.d.mts +18 -0
- package/dist/types/commands/manifest/discover-manifest-roots.d.mts.map +1 -0
- package/dist/types/commands/manifest/enumerate-workspaces.d.mts +19 -0
- package/dist/types/commands/manifest/enumerate-workspaces.d.mts.map +1 -0
- package/dist/types/commands/manifest/expand-env-var-refs.d.mts +10 -0
- package/dist/types/commands/manifest/expand-env-var-refs.d.mts.map +1 -0
- package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +37 -0
- package/dist/types/commands/manifest/generate-recursive-manifests.d.mts.map +1 -0
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/handle-manifest-dynamic-sbom-inference.d.mts +8 -0
- package/dist/types/commands/manifest/handle-manifest-dynamic-sbom-inference.d.mts.map +1 -0
- package/dist/types/commands/manifest/handle-manifest-setup.d.mts +1 -1
- package/dist/types/commands/manifest/handle-manifest-setup.d.mts.map +1 -1
- package/dist/types/commands/manifest/manifest-flags.d.mts +6 -0
- package/dist/types/commands/manifest/manifest-flags.d.mts.map +1 -0
- package/dist/types/commands/manifest/output-manifest-dynamic-sbom-inference.d.mts +4 -0
- package/dist/types/commands/manifest/output-manifest-dynamic-sbom-inference.d.mts.map +1 -0
- package/dist/types/commands/manifest/run-manifest-facts.d.mts +13 -2
- package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/scripts/exclude-paths-glob.d.mts +8 -0
- package/dist/types/commands/manifest/scripts/exclude-paths-glob.d.mts.map +1 -0
- package/dist/types/commands/manifest/scripts/run.d.mts +10 -1
- package/dist/types/commands/manifest/scripts/run.d.mts.map +1 -1
- package/dist/types/commands/manifest/setup-manifest-config.d.mts +19 -0
- package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
- package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts +120 -0
- package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts.map +1 -0
- package/dist/types/commands/scan/create-scan-from-github.d.mts +17 -0
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
- package/dist/types/utils/github-errors.d.mts +51 -0
- package/dist/types/utils/github-errors.d.mts.map +1 -0
- package/dist/types/utils/socket-json.d.mts +38 -14
- package/dist/types/utils/socket-json.d.mts.map +1 -1
- package/dist/utils.js +307 -3
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CliCommandContext } from '../../utils/meow-with-subcommands.mts';
|
|
2
|
+
export declare const cmdManifestDynamicSbomInference: {
|
|
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-dynamic-sbom-inference.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd-manifest-dynamic-sbom-inference.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-dynamic-sbom-inference.mts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAuC9C,eAAO,MAAM,+BAA+B;;;;CAI3C,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,CAuEf"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CAwMf"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CAsMf"}
|
|
@@ -1 +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,
|
|
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,CAkJf"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CA8Of"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-manifest-setup.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-setup.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cmd-manifest-setup.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/cmd-manifest-setup.mts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AA4D9C,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,CA+Bf"}
|
|
@@ -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":"AAeA,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,CA+Bf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
2
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 }: {
|
|
3
|
+
export declare function convertGradleToFacts({ bin, cwd, excludeConfigs, excludePaths, gradleOpts, ignoreUnresolved, includeConfigs, javaHome, sidecarAcc, verbose, withFiles }: {
|
|
4
4
|
bin: string;
|
|
5
5
|
cwd: string;
|
|
6
6
|
excludeConfigs: string;
|
|
@@ -8,6 +8,7 @@ export declare function convertGradleToFacts({ bin, cwd, excludeConfigs, exclude
|
|
|
8
8
|
gradleOpts: string[];
|
|
9
9
|
ignoreUnresolved: boolean;
|
|
10
10
|
includeConfigs: string;
|
|
11
|
+
javaHome?: string | undefined;
|
|
11
12
|
sidecarAcc?: SidecarAccumulator | undefined;
|
|
12
13
|
verbose: boolean;
|
|
13
14
|
withFiles?: boolean | undefined;
|
|
@@ -1 +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,
|
|
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,QAAQ,EACR,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,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,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,CAehB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
2
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 }: {
|
|
3
|
+
export declare function convertMavenToFacts({ bin, cwd, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, javaHome, mavenOpts, sidecarAcc, verbose, withFiles }: {
|
|
4
4
|
bin: string;
|
|
5
5
|
cwd: string;
|
|
6
6
|
excludeConfigs: string;
|
|
7
7
|
excludePaths?: string[] | undefined;
|
|
8
8
|
ignoreUnresolved: boolean;
|
|
9
9
|
includeConfigs: string;
|
|
10
|
+
javaHome?: string | undefined;
|
|
10
11
|
mavenOpts: string[];
|
|
11
12
|
sidecarAcc?: SidecarAccumulator | undefined;
|
|
12
13
|
verbose: boolean;
|
|
@@ -1 +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,
|
|
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,QAAQ,EACR,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,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,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,CAehB"}
|
|
@@ -2,13 +2,14 @@ import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
|
2
2
|
// Generates `.socket.facts.json` for an sbt project via the bundled sbt plugin.
|
|
3
3
|
// sbt 0.13/early 1.x can't run on modern JDKs — pass a compatible JDK via
|
|
4
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 }: {
|
|
5
|
+
export declare function convertSbtToFacts({ bin, cwd, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, javaHome, sbtOpts, sidecarAcc, tmpDir, verbose, withFiles }: {
|
|
6
6
|
bin: string;
|
|
7
7
|
cwd: string;
|
|
8
8
|
excludeConfigs: string;
|
|
9
9
|
excludePaths?: string[] | undefined;
|
|
10
10
|
ignoreUnresolved: boolean;
|
|
11
11
|
includeConfigs: string;
|
|
12
|
+
javaHome?: string | undefined;
|
|
12
13
|
sbtOpts: string[];
|
|
13
14
|
sidecarAcc?: SidecarAccumulator | undefined;
|
|
14
15
|
// Caller-owned; see ManifestScriptOptions.tmpDir.
|
|
@@ -1 +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,
|
|
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,QAAQ,EACR,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,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,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,CAgBhB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BuildTool } from './scripts/build-tool.mts';
|
|
2
|
+
import type { SocketJson } from '../../utils/socket-json.mts';
|
|
3
|
+
// A disabled ecosystem is skipped entirely by the glob scan below, so a
|
|
4
|
+
// nested socket.json re-enabling it would never even be searched for. Callers
|
|
5
|
+
// that need the cascade (not just the root file) to decide skip vs. include
|
|
6
|
+
// must strip `disabled` here first, and let their own per-directory cascade
|
|
7
|
+
// check apply it instead.
|
|
8
|
+
export declare function withoutDisabledFlags(sockJson: SocketJson): SocketJson;
|
|
9
|
+
export declare function realpathOrResolved(dir: string): Promise<string>;
|
|
10
|
+
// Depth-sorted (root-most first) so the caller, using each build root's
|
|
11
|
+
// `subprojectDir` facts, visits a reactor root before its own members and can
|
|
12
|
+
// skip subprojects a parent root already covers.
|
|
13
|
+
export declare function findBuildToolCandidates({ cwd, excludePaths, sockJson }: {
|
|
14
|
+
cwd: string;
|
|
15
|
+
excludePaths?: string[] | undefined;
|
|
16
|
+
sockJson: SocketJson;
|
|
17
|
+
}): Promise<Map<BuildTool, string[]>>;
|
|
18
|
+
//# sourceMappingURL=discover-manifest-roots.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover-manifest-roots.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/discover-manifest-roots.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AA2B7D,wEAAwE;AACxE,8EAA8E;AAC9E,4EAA4E;AAC5E,4EAA4E;AAC5E,0BAA0B;AAC1B,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAgBrE;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMrE;AAeD,wEAAwE;AACxE,8EAA8E;AAC9E,iDAAiD;AACjD,wBAAsB,uBAAuB,CAAC,EAC5C,GAAG,EACH,YAAY,EACZ,QAAQ,EACT,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,QAAQ,EAAE,UAAU,CAAA;CACrB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CA4CpC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BuildTool } from './scripts/build-tool.mts';
|
|
2
|
+
import type { SocketFactsSbomProject } from './scripts/facts.mts';
|
|
3
|
+
export type EnumerateWorkspacesResult = {
|
|
4
|
+
projects: SocketFactsSbomProject[];
|
|
5
|
+
};
|
|
6
|
+
// Cheap subproject discovery (no dependency resolution) for
|
|
7
|
+
// `socket manifest setup --dynamic-sbom-inference`; dynamic-sbom-inference
|
|
8
|
+
// itself instead gets this list for free as a side effect of its own full
|
|
9
|
+
// facts run.
|
|
10
|
+
export declare function enumerateWorkspaces({ bin, buildOpts, cwd, ecosystem, excludePaths, javaHome, verbose }: {
|
|
11
|
+
bin: string;
|
|
12
|
+
buildOpts: string[];
|
|
13
|
+
cwd: string;
|
|
14
|
+
ecosystem: BuildTool;
|
|
15
|
+
excludePaths?: string[] | undefined;
|
|
16
|
+
javaHome?: string | undefined;
|
|
17
|
+
verbose: boolean;
|
|
18
|
+
}): Promise<EnumerateWorkspacesResult | undefined>;
|
|
19
|
+
//# sourceMappingURL=enumerate-workspaces.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enumerate-workspaces.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/enumerate-workspaces.mts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAEjE,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,sBAAsB,EAAE,CAAA;CACnC,CAAA;AAED,4DAA4D;AAC5D,2EAA2E;AAC3E,0EAA0E;AAC1E,aAAa;AACb,wBAAsB,mBAAmB,CAAC,EACxC,GAAG,EACH,SAAS,EACT,GAAG,EACH,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,OAAO,EAAE,OAAO,CAAA;CACjB,GAAG,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAiDjD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Expands `$VAR`/`${VAR}` references (e.g. a team-shared `javaHome:
|
|
2
|
+
// "$JAVA11_HOME"`) against the CLI process's own environment, so a socket.json
|
|
3
|
+
// value works across machines instead of hardcoding one developer's path.
|
|
4
|
+
// `$$` is a literal `$`, for a value that must contain a literal `$WORD`.
|
|
5
|
+
export declare function expandEnvVarRefs(value: string): {
|
|
6
|
+
missing?: string[];
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function formatMissingEnvVarRefs(missing: readonly string[]): string;
|
|
10
|
+
//# sourceMappingURL=expand-env-var-refs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expand-env-var-refs.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/expand-env-var-refs.mts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,+EAA+E;AAC/E,0EAA0E;AAC1E,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG;IAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd,CAiBA;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAI1E"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BuildTool } from './scripts/build-tool.mts';
|
|
2
|
+
import type { SocketJson } from '../../utils/socket-json.mts';
|
|
3
|
+
export type RecursiveManifestOutcomeStatus = 'aborted' | 'empty' | 'failed' | 'generated' | 'skippedCovered' | 'skippedDisabled';
|
|
4
|
+
export type RecursiveManifestOutcome = {
|
|
5
|
+
dir: string;
|
|
6
|
+
ecosystem: BuildTool;
|
|
7
|
+
factsPath?: string | undefined;
|
|
8
|
+
status: RecursiveManifestOutcomeStatus;
|
|
9
|
+
};
|
|
10
|
+
export type EcosystemBuildConfig = {
|
|
11
|
+
bin: string;
|
|
12
|
+
buildOpts: string[];
|
|
13
|
+
excludeConfigs: string;
|
|
14
|
+
ignoreUnresolved: boolean;
|
|
15
|
+
includeConfigs: string;
|
|
16
|
+
javaHome: string | undefined;
|
|
17
|
+
// Set when this build root should be skipped entirely (never invoked).
|
|
18
|
+
skipReason: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
// A wrapper-preferred `bin` default is resolved per-root (`dir`, not `cwd`)
|
|
21
|
+
// since a wrapper script only exists at the actual build root. Exported for
|
|
22
|
+
// reuse by the recursive setup wizard's reactor-coverage pruning.
|
|
23
|
+
export declare function resolveEcosystemConfig(ecosystem: BuildTool, dir: string, sockJson: SocketJson): EcosystemBuildConfig;
|
|
24
|
+
// Generates one .socket.facts.json per independent gradle/sbt/maven build
|
|
25
|
+
// root under `cwd`. Coverage is tracked per ecosystem via the facts SBOM's
|
|
26
|
+
// own projects[].subprojectDir, not by pruning the whole discovered subtree,
|
|
27
|
+
// so an unrelated nested project a reactor doesn't declare still gets its
|
|
28
|
+
// own invocation. Fail-closed per ecosystem, not globally: a root whose
|
|
29
|
+
// workspace layout can't be determined aborts only that ecosystem's own
|
|
30
|
+
// remaining walk (marking its untried candidates 'aborted'), since coverage
|
|
31
|
+
// is tracked per ecosystem and an unrelated one has nothing to lose from it.
|
|
32
|
+
export declare function generateRecursiveManifests({ cwd, excludePaths, verbose }: {
|
|
33
|
+
cwd: string;
|
|
34
|
+
excludePaths?: string[] | undefined;
|
|
35
|
+
verbose: boolean;
|
|
36
|
+
}): Promise<RecursiveManifestOutcome[]>;
|
|
37
|
+
//# sourceMappingURL=generate-recursive-manifests.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-recursive-manifests.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/generate-recursive-manifests.mts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE7D,MAAM,MAAM,8BAA8B,GACtC,SAAS,GACT,OAAO,GACP,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,iBAAiB,CAAA;AAErB,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,8BAA8B,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,uEAAuE;IACvE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B,CAAA;AAwCD,4EAA4E;AAC5E,4EAA4E;AAC5E,kEAAkE;AAClE,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,UAAU,GACnB,oBAAoB,CAsCtB;AAED,0EAA0E;AAC1E,2EAA2E;AAC3E,6EAA6E;AAC7E,0EAA0E;AAC1E,wEAAwE;AACxE,wEAAwE;AACxE,4EAA4E;AAC5E,6EAA6E;AAC7E,wBAAsB,0BAA0B,CAAC,EAC/C,GAAG,EACH,YAAY,EACZ,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,OAAO,EAAE,OAAO,CAAA;CACjB,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAgHtC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CAsMtC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OutputKind } from '../../types.mts';
|
|
2
|
+
export declare function handleManifestDynamicSbomInference({ cwd, excludePaths, outputKind, verbose }: {
|
|
3
|
+
cwd: string;
|
|
4
|
+
excludePaths: string[];
|
|
5
|
+
outputKind: OutputKind;
|
|
6
|
+
verbose: boolean;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=handle-manifest-dynamic-sbom-inference.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-manifest-dynamic-sbom-inference.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/handle-manifest-dynamic-sbom-inference.mts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE1D,wBAAsB,kCAAkC,CAAC,EACvD,GAAG,EACH,YAAY,EACZ,UAAU,EACV,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,OAAO,CAAA;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function handleManifestSetup(cwd: string, defaultOnReadError: boolean): Promise<void>;
|
|
1
|
+
export declare function handleManifestSetup(cwd: string, defaultOnReadError: boolean, dynamicSbomInference?: boolean, excludePaths?: string[] | undefined): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=handle-manifest-setup.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-manifest-setup.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/handle-manifest-setup.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handle-manifest-setup.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/handle-manifest-setup.mts"],"names":[],"mappings":"AAIA,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,kBAAkB,EAAE,OAAO,EAC3B,oBAAoB,UAAQ,EAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,GAClC,OAAO,CAAC,IAAI,CAAC,CAMf"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MeowFlags } from '../../flags.mts';
|
|
2
|
+
// Manifest-scoped variant of `../scan/reachability-flags.mts`'s
|
|
3
|
+
// `excludePathsFlag`: description avoids "scan"/reachability wording since
|
|
4
|
+
// these commands only ever generate a manifest/facts file.
|
|
5
|
+
export declare const excludePathsFlag: MeowFlags;
|
|
6
|
+
//# sourceMappingURL=manifest-flags.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-flags.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/manifest-flags.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,gEAAgE;AAChE,2EAA2E;AAC3E,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAE,SAO9B,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RecursiveManifestOutcome } from './generate-recursive-manifests.mts';
|
|
2
|
+
import type { CResult, OutputKind } from '../../types.mts';
|
|
3
|
+
export declare function outputManifestDynamicSbomInference(result: CResult<RecursiveManifestOutcome[]>, outputKind: OutputKind): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=output-manifest-dynamic-sbom-inference.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-manifest-dynamic-sbom-inference.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/output-manifest-dynamic-sbom-inference.mts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAkB1D,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,OAAO,CAAC,wBAAwB,EAAE,CAAC,EAC3C,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,IAAI,CAAC,CAyCf"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type { BuildTool } from './scripts/build-tool.mts';
|
|
2
|
+
import type { SocketFactsSbomProject } from './scripts/facts.mts';
|
|
2
3
|
import type { SidecarAccumulator } from './scripts/sidecar.mts';
|
|
4
|
+
export type RunManifestFactsResult = {
|
|
5
|
+
factsPath: string;
|
|
6
|
+
projects: SocketFactsSbomProject[];
|
|
7
|
+
};
|
|
8
|
+
// `null` = a real failure (crash, missing config, blocking unresolved
|
|
9
|
+
// dependency); `undefined` = genuinely nothing to resolve, not a failure.
|
|
10
|
+
// Distinguishing the two here means callers never have to infer it from
|
|
11
|
+
// `process.exitCode`, which can already be non-zero for an unrelated reason.
|
|
12
|
+
export type RunManifestFactsOutcome = RunManifestFactsResult | null | undefined;
|
|
3
13
|
// Runs the bundled build-tool resolution script for a JVM project and writes
|
|
4
14
|
// `.socket.facts.json`. `withFiles` (reachability only) additionally folds
|
|
5
15
|
// resolved artifact paths into `sidecarAcc`. A blocking resolution failure sets
|
|
6
16
|
// a non-zero exit code and returns (matching the `--pom` generator) unless
|
|
7
17
|
// `ignoreUnresolved`; a crashed build — a process failure, not an unresolved
|
|
8
18
|
// dependency — always fails.
|
|
9
|
-
export declare function runManifestFacts({ bin, buildOpts, cwd, ecosystem, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, sidecarAcc, tmpDir, verbose, withFiles }: {
|
|
19
|
+
export declare function runManifestFacts({ bin, buildOpts, cwd, ecosystem, excludeConfigs, excludePaths, ignoreUnresolved, includeConfigs, javaHome, sidecarAcc, tmpDir, verbose, withFiles }: {
|
|
10
20
|
bin: string;
|
|
11
21
|
buildOpts: string[];
|
|
12
22
|
cwd: string;
|
|
@@ -15,10 +25,11 @@ export declare function runManifestFacts({ bin, buildOpts, cwd, ecosystem, exclu
|
|
|
15
25
|
excludePaths?: string[] | undefined;
|
|
16
26
|
ignoreUnresolved: boolean;
|
|
17
27
|
includeConfigs: string;
|
|
28
|
+
javaHome?: string | undefined;
|
|
18
29
|
sidecarAcc?: SidecarAccumulator | undefined;
|
|
19
30
|
// sbt only; see ManifestScriptOptions.tmpDir.
|
|
20
31
|
tmpDir?: string | undefined;
|
|
21
32
|
verbose: boolean;
|
|
22
33
|
withFiles?: boolean | undefined;
|
|
23
|
-
}): Promise<
|
|
34
|
+
}): Promise<RunManifestFactsOutcome>;
|
|
24
35
|
//# sourceMappingURL=run-manifest-facts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-manifest-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/run-manifest-facts.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-manifest-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/run-manifest-facts.mts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAI/D,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,sBAAsB,EAAE,CAAA;CACnC,CAAA;AAYD,sEAAsE;AACtE,0EAA0E;AAC1E,wEAAwE;AACxE,6EAA6E;AAC7E,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAAG,IAAI,GAAG,SAAS,CAAA;AAE/E,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,QAAQ,EACR,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,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,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,uBAAuB,CAAC,CAwJnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function excludePathGlobToRegexSource(glob: string): string;
|
|
2
|
+
export declare function compileExcludePathPatterns(paths: readonly string[] | undefined): string[];
|
|
3
|
+
// Transport form handed to the build-tool scripts: comma-joined pattern
|
|
4
|
+
// sources. Empty string when there are no patterns.
|
|
5
|
+
export declare function serializeExcludePathPatterns(paths: readonly string[] | undefined): string;
|
|
6
|
+
export type ExcludePathFilter = (relPath: string) => boolean;
|
|
7
|
+
export declare function createExcludePathFilter(paths: readonly string[] | undefined): ExcludePathFilter;
|
|
8
|
+
//# sourceMappingURL=exclude-paths-glob.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exclude-paths-glob.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/exclude-paths-glob.mts"],"names":[],"mappings":"AAkGA,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA+BjE;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACnC,MAAM,EAAE,CAEV;AAED,wEAAwE;AACxE,oDAAoD;AACpD,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACnC,MAAM,CAER;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;AAE5D,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACnC,iBAAiB,CAGnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuildTool } from './build-tool.mts';
|
|
2
|
-
import type { ResolvedArtifactPaths, SocketFactsSbom } from './facts.mts';
|
|
2
|
+
import type { ResolvedArtifactPaths, SocketFactsSbom, SocketFactsSbomProject } from './facts.mts';
|
|
3
3
|
import type { ResolutionReport } from './resolution-report.mts';
|
|
4
4
|
export type ManifestScriptOptions = {
|
|
5
5
|
projectDir: string;
|
|
@@ -37,7 +37,16 @@ export type ManifestRunResult = {
|
|
|
37
37
|
stderr: string;
|
|
38
38
|
stdout: string;
|
|
39
39
|
};
|
|
40
|
+
export type WorkspaceEnumerationResult = {
|
|
41
|
+
code: number;
|
|
42
|
+
projects: SocketFactsSbomProject[];
|
|
43
|
+
stderr: string;
|
|
44
|
+
stdout: string;
|
|
45
|
+
};
|
|
40
46
|
// Runs the build-tool script (which emits a records file) and assembles it.
|
|
41
47
|
// Writes no files; the caller persists facts or consumes artifactPaths.
|
|
42
48
|
export declare function runManifestScript(tool: BuildTool, opts: ManifestScriptOptions): Promise<ManifestRunResult>;
|
|
49
|
+
// Emits only `project` records, never resolving dependencies, for discovery
|
|
50
|
+
// before committing to a full `runManifestScript` resolution cost.
|
|
51
|
+
export declare function enumerateWorkspaces(tool: BuildTool, opts: ManifestScriptOptions): Promise<WorkspaceEnumerationResult>;
|
|
43
52
|
//# sourceMappingURL=run.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/run.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.mts","sourceRoot":"","sources":["../../../../../src/commands/manifest/scripts/run.mts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACvB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,CAAA;IAClB,8EAA4E;IAC5E,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,4EAA4E;IAC5E,0EAA0E;IAC1E,4EAA4E;IAC5E,wEAAwE;IACxE,4EAA0E;IAC1E,6EAA6E;IAC7E,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,gFAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gFAAgF;IAChF,iFAAiF;IACjF,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAC/B,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAA;IACnC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,EAAE,gBAAgB,CAAA;IACxB,aAAa,EAAE,qBAAqB,CAAA;IACpC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAWD,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,sBAAsB,EAAE,CAAA;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AA2FD,4EAA4E;AAC5E,wEAAwE;AACxE,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CAS5B;AAED,4EAA4E;AAC5E,mEAAmE;AACnE,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,0BAA0B,CAAC,CAYrC"}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
import type { CResult } from '../../types.mts';
|
|
2
|
+
import type { SocketJson } from '../../utils/socket-json.mts';
|
|
2
3
|
export declare function setupManifestConfig(cwd: string, defaultOnReadError?: boolean): Promise<CResult<unknown>>;
|
|
4
|
+
export declare function setupGradle(config: NonNullable<NonNullable<NonNullable<SocketJson['defaults']>['manifest']>['gradle']>,
|
|
5
|
+
// Set by the recursive dynamic-sbom-inference wizard, which has no
|
|
6
|
+
// pom-mode equivalent - skips the facts/pom question entirely.
|
|
7
|
+
{ factsOnly }?: {
|
|
8
|
+
factsOnly?: boolean;
|
|
9
|
+
}): Promise<CResult<{
|
|
10
|
+
canceled: boolean;
|
|
11
|
+
}>>;
|
|
12
|
+
export declare function setupMaven(config: NonNullable<NonNullable<NonNullable<SocketJson['defaults']>['manifest']>['maven']>): Promise<CResult<{
|
|
13
|
+
canceled: boolean;
|
|
14
|
+
}>>;
|
|
15
|
+
export declare function setupSbt(config: NonNullable<NonNullable<NonNullable<SocketJson['defaults']>['manifest']>['sbt']>,
|
|
16
|
+
// See setupGradle's matching parameter for why.
|
|
17
|
+
{ factsOnly }?: {
|
|
18
|
+
factsOnly?: boolean;
|
|
19
|
+
}): Promise<CResult<{
|
|
20
|
+
canceled: boolean;
|
|
21
|
+
}>>;
|
|
3
22
|
//# sourceMappingURL=setup-manifest-config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-manifest-config.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/setup-manifest-config.mts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"setup-manifest-config.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/setup-manifest-config.mts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE7D,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,kBAAkB,UAAQ,GACzB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAsL3B;AAqED,wBAAsB,WAAW,CAC/B,MAAM,EAAE,WAAW,CACjB,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CACvE;AACD,mEAAmE;AACnE,+DAA+D;AAC/D,EAAE,SAAiB,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GAClD,OAAO,CAAC,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAwEzC;AAED,wBAAsB,UAAU,CAC9B,MAAM,EAAE,WAAW,CACjB,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CACtE,GACA,OAAO,CAAC,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CA0DzC;AAED,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,WAAW,CACjB,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CACpE;AACD,gDAAgD;AAChD,EAAE,SAAiB,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GAClD,OAAO,CAAC,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAoGzC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { BuildTool } from './scripts/build-tool.mts';
|
|
2
|
+
import type { CResult } from '../../types.mts';
|
|
3
|
+
import type { SocketJson } from '../../utils/socket-json.mts';
|
|
4
|
+
// A single discovered build root - a directory with its own gradle/sbt/maven
|
|
5
|
+
// marker file.
|
|
6
|
+
type Candidate = {
|
|
7
|
+
dir: string;
|
|
8
|
+
ecosystem: BuildTool;
|
|
9
|
+
};
|
|
10
|
+
// The shallowest directory matching `--exclude-paths`, not necessarily a
|
|
11
|
+
// project dir itself - one write here covers every project beneath it.
|
|
12
|
+
type ExclusionRoot = {
|
|
13
|
+
dir: string;
|
|
14
|
+
ecosystems: BuildTool[];
|
|
15
|
+
};
|
|
16
|
+
// Depth-then-path sort: for exclusion roots it's just stable log ordering;
|
|
17
|
+
// for candidates it's load-bearing, since a parent must be prompted before
|
|
18
|
+
// its children so a child's shown default reflects a parent's just-written
|
|
19
|
+
// cascade instead of its pre-run value.
|
|
20
|
+
export declare function sortCandidatesForDisplay<T extends {
|
|
21
|
+
dir: string;
|
|
22
|
+
}>(candidates: readonly T[], cwd: string): T[];
|
|
23
|
+
export type ScannedBuildRoots = {
|
|
24
|
+
fullByTool: Map<BuildTool, string[]>;
|
|
25
|
+
includedByTool: Map<BuildTool, string[]>;
|
|
26
|
+
};
|
|
27
|
+
// Both the unfiltered and --exclude-paths-filtered scans, once, so ecosystem
|
|
28
|
+
// detection and later include/exclude grouping (see discoverBuildRoots)
|
|
29
|
+
// never re-walk the same tree.
|
|
30
|
+
export declare function scanBuildRoots({ cwd, excludePaths, sockJson }: {
|
|
31
|
+
cwd: string;
|
|
32
|
+
excludePaths?: string[] | undefined;
|
|
33
|
+
sockJson: SocketJson;
|
|
34
|
+
}): Promise<ScannedBuildRoots>;
|
|
35
|
+
export type DiscoveredBuildRoots = {
|
|
36
|
+
excluded: ExclusionRoot[];
|
|
37
|
+
// Every candidate --exclude-paths didn't rule out - these get the
|
|
38
|
+
// interactive configure-or-inherit walk instead of a bulk write.
|
|
39
|
+
included: Candidate[];
|
|
40
|
+
};
|
|
41
|
+
// Splits an already-scanned candidate set into `included` (the interactive
|
|
42
|
+
// walk) and `excluded`, grouped by the shallowest --exclude-paths match (see
|
|
43
|
+
// findExclusionRoot). `cwd` is excluded from both (it got its own wizard
|
|
44
|
+
// pass) and realpath-resolved to match findBuildToolCandidates' own
|
|
45
|
+
// resolution - otherwise macOS's /tmp -> /private/tmp breaks the comparison.
|
|
46
|
+
export declare function discoverBuildRoots({ cwd, excludePaths, fullByTool, includedByTool }: {
|
|
47
|
+
cwd: string;
|
|
48
|
+
excludePaths?: string[] | undefined;
|
|
49
|
+
fullByTool: Map<BuildTool, string[]>;
|
|
50
|
+
includedByTool: Map<BuildTool, string[]>;
|
|
51
|
+
}): Promise<DiscoveredBuildRoots>;
|
|
52
|
+
// Enumerates one build root's declared workspace members (see
|
|
53
|
+
// enumerate-workspaces.mts) and folds them into `coveredByEcosystem`, so a
|
|
54
|
+
// later candidate matching one is recognized as a reactor member rather than
|
|
55
|
+
// independent. Called per-candidate right after its own prompt, not as a
|
|
56
|
+
// bulk pass, so the build invocation never blocks candidates that don't need
|
|
57
|
+
// it. A disabled candidate is skipped (no point invoking an off build tool);
|
|
58
|
+
// otherwise this fails closed, same reasoning as generateRecursiveManifests -
|
|
59
|
+
// if enumeration fails there's no way to tell covered from independent, so
|
|
60
|
+
// the caller aborts rather than guess.
|
|
61
|
+
export declare function markWorkspaceCoverage({ candidate, coveredByEcosystem, cwd, excludePaths, rootSockJson }: {
|
|
62
|
+
candidate: Candidate;
|
|
63
|
+
coveredByEcosystem: Map<BuildTool, Set<string>>;
|
|
64
|
+
cwd: string;
|
|
65
|
+
excludePaths?: string[] | undefined;
|
|
66
|
+
rootSockJson: SocketJson;
|
|
67
|
+
}): Promise<CResult<undefined>>;
|
|
68
|
+
// Marks one exclusion root's own socket.json `disabled: true` for whichever
|
|
69
|
+
// of its ecosystems aren't already disabled via cascade (an already-disabled
|
|
70
|
+
// ancestor from a prior run) - a no-op write is skipped entirely so re-running
|
|
71
|
+
// the wizard doesn't keep rewriting already-disabled roots.
|
|
72
|
+
export declare function disableExclusionRoot({ cwd, dir, ecosystems, rootSockJson }: {
|
|
73
|
+
cwd: string;
|
|
74
|
+
dir: string;
|
|
75
|
+
ecosystems: readonly BuildTool[];
|
|
76
|
+
rootSockJson: SocketJson;
|
|
77
|
+
}): Promise<CResult<{
|
|
78
|
+
canceled: boolean;
|
|
79
|
+
}>>;
|
|
80
|
+
// Seeds the wizard with this candidate's effective (cascaded) value for any
|
|
81
|
+
// field its own file doesn't already set, so accepting every prompt
|
|
82
|
+
// unchanged preserves what it currently inherits, while an actual change
|
|
83
|
+
// writes an explicit override.
|
|
84
|
+
export declare function configureCandidate({ cwd, dir, ecosystem, rootSockJson }: {
|
|
85
|
+
cwd: string;
|
|
86
|
+
dir: string;
|
|
87
|
+
ecosystem: BuildTool;
|
|
88
|
+
rootSockJson: SocketJson;
|
|
89
|
+
}): Promise<CResult<{
|
|
90
|
+
canceled: boolean;
|
|
91
|
+
}>>;
|
|
92
|
+
type CandidateOutcome = 'configured' | 'inherited' | 'skipped';
|
|
93
|
+
// Prompts for configure/inherit, unless the cascade shows the candidate
|
|
94
|
+
// disabled: offer to re-enable if that's its own file, then continue into
|
|
95
|
+
// the normal prompt; stay silent if it's only inherited from an ancestor's
|
|
96
|
+
// bulk write (that's noise for a large excluded subtree).
|
|
97
|
+
export declare function processCandidate({ cwd, dir, ecosystem, rootSockJson }: {
|
|
98
|
+
cwd: string;
|
|
99
|
+
dir: string;
|
|
100
|
+
ecosystem: BuildTool;
|
|
101
|
+
rootSockJson: SocketJson;
|
|
102
|
+
}): Promise<CResult<{
|
|
103
|
+
canceled: boolean;
|
|
104
|
+
outcome: CandidateOutcome;
|
|
105
|
+
reenabled: boolean;
|
|
106
|
+
}>>;
|
|
107
|
+
// `socket manifest setup --dynamic-sbom-inference`: the up-front scan (see
|
|
108
|
+
// scanBuildRoots) only ever answers "which build tools exist", never "which
|
|
109
|
+
// projects to configure". `--exclude-paths` matches are bulk-disabled
|
|
110
|
+
// unconditionally, independent of the interactive walk below, so re-running
|
|
111
|
+
// later with one more entry (or none) never re-answers settled decisions.
|
|
112
|
+
// Everything else gets a configure-or-inherit prompt (see processCandidate),
|
|
113
|
+
// except a workspace member a parent build already declares - learned via
|
|
114
|
+
// markWorkspaceCoverage right after the parent's own prompt, not a separate
|
|
115
|
+
// bulk pass, so a reactor member is silently skipped instead of prompted.
|
|
116
|
+
export declare function setupRecursiveManifestConfig(cwd: string, defaultOnReadError: boolean, excludePaths?: string[] | undefined): Promise<CResult<{
|
|
117
|
+
canceled: boolean;
|
|
118
|
+
}>>;
|
|
119
|
+
export {};
|
|
120
|
+
//# sourceMappingURL=setup-recursive-manifest-config.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-recursive-manifest-config.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/setup-recursive-manifest-config.mts"],"names":[],"mappings":"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"}
|
|
@@ -9,4 +9,21 @@ export declare function createScanFromGithub({ all, githubApiUrl, githubToken, i
|
|
|
9
9
|
outputKind: OutputKind;
|
|
10
10
|
repos: string;
|
|
11
11
|
}): Promise<CResult<undefined>>;
|
|
12
|
+
/**
|
|
13
|
+
* Drive the per-repo scan loop and decide the overall run result.
|
|
14
|
+
*
|
|
15
|
+
* The loop stops early on a blocking GitHub error (rate limit / auth / abuse
|
|
16
|
+
* detection) because every remaining repo would fail the same way. Previously
|
|
17
|
+
* a rate-limited token made every repo fail its API calls, the loop swallowed
|
|
18
|
+
* each failure, and the final "N repos / 0 manifests" summary misled users and
|
|
19
|
+
* CI into thinking the scan succeeded when nothing was uploaded. A run where
|
|
20
|
+
* every attempted repo failed for a non-blocking reason is also surfaced as an
|
|
21
|
+
* error rather than a silent ok:true.
|
|
22
|
+
*
|
|
23
|
+
* `scanRepoFn` is injected so this decision logic can be tested without the
|
|
24
|
+
* GitHub network path.
|
|
25
|
+
*/
|
|
26
|
+
export declare function runGithubScanLoop(targetRepos: string[], scanRepoFn: (repoSlug: string) => Promise<CResult<{
|
|
27
|
+
scanCreated: boolean;
|
|
28
|
+
}>>): Promise<CResult<undefined>>;
|
|
12
29
|
//# sourceMappingURL=create-scan-from-github.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-scan-from-github.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/create-scan-from-github.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-scan-from-github.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/create-scan-from-github.mts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE1D,wBAAsB,oBAAoB,CAAC,EACzC,GAAG,EACH,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,EACT,OAAO,EACP,UAAU,EACV,KAAK,EACN,EAAE;IACD,GAAG,EAAE,OAAO,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CA8D9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EAAE,EACrB,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,GAC3E,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CA8D7B"}
|