@socketsecurity/cli-with-sentry 1.1.131 → 1.1.133

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cli.js +1302 -139
  3. package/dist/cli.js.map +1 -1
  4. package/dist/constants.js +4 -4
  5. package/dist/constants.js.map +1 -1
  6. package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
  7. package/dist/manifest-scripts/socket-facts.init.gradle +479 -0
  8. package/dist/manifest-scripts/socket-facts.plugin.scala +444 -0
  9. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  10. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
  11. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
  12. package/dist/types/commands/manifest/cmd-manifest-maven.d.mts.map +1 -1
  13. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +5 -6
  14. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts.map +1 -1
  15. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +5 -6
  16. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts.map +1 -1
  17. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +7 -8
  18. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts.map +1 -1
  19. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +6 -1
  20. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
  21. package/dist/types/commands/manifest/run-manifest-facts.d.mts +21 -0
  22. package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -0
  23. package/dist/types/commands/manifest/scripts/assemble.d.mts +16 -0
  24. package/dist/types/commands/manifest/scripts/assemble.d.mts.map +1 -0
  25. package/dist/types/commands/manifest/scripts/build-tool.d.mts +3 -0
  26. package/dist/types/commands/manifest/scripts/build-tool.d.mts.map +1 -0
  27. package/dist/types/commands/manifest/scripts/facts.d.mts +46 -0
  28. package/dist/types/commands/manifest/scripts/facts.d.mts.map +1 -0
  29. package/dist/types/commands/manifest/scripts/records.d.mts +64 -0
  30. package/dist/types/commands/manifest/scripts/records.d.mts.map +1 -0
  31. package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts +10 -0
  32. package/dist/types/commands/manifest/scripts/resolution-report-gradle.d.mts.map +1 -0
  33. package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts +7 -0
  34. package/dist/types/commands/manifest/scripts/resolution-report-ivy.d.mts.map +1 -0
  35. package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts +8 -0
  36. package/dist/types/commands/manifest/scripts/resolution-report-maven.d.mts.map +1 -0
  37. package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts +41 -0
  38. package/dist/types/commands/manifest/scripts/resolution-report-render.d.mts.map +1 -0
  39. package/dist/types/commands/manifest/scripts/resolution-report.d.mts +12 -0
  40. package/dist/types/commands/manifest/scripts/resolution-report.d.mts.map +1 -0
  41. package/dist/types/commands/manifest/scripts/run.d.mts +31 -0
  42. package/dist/types/commands/manifest/scripts/run.d.mts.map +1 -0
  43. package/dist/types/commands/manifest/scripts/sidecar.d.mts +27 -0
  44. package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +1 -0
  45. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
  46. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  47. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +4 -2
  48. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
  49. package/dist/utils.js +1 -78
  50. package/dist/utils.js.map +1 -1
  51. package/package.json +3 -2
  52. package/dist/types/commands/manifest/coana-manifest-facts.d.mts +0 -27
  53. package/dist/types/commands/manifest/coana-manifest-facts.d.mts.map +0 -1
  54. package/dist/types/utils/auto-manifest-config.d.mts +0 -55
  55. package/dist/types/utils/auto-manifest-config.d.mts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "1.1.131",
3
+ "version": "1.1.133",
4
4
  "description": "CLI for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
5
5
  "homepage": "https://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT",
@@ -37,6 +37,7 @@
37
37
  "build:dist": "pnpm build:dist:src && pnpm build:dist:types",
38
38
  "build:dist:src": "run-p -c clean:dist clean:external && dotenvx -q run -f .env.local -- rollup -c .config/rollup.dist.config.mjs",
39
39
  "build:dist:types": "pnpm clean:dist:types && tsgo --project tsconfig.dts.json",
40
+ "build:maven-extension": "bash src/commands/manifest/scripts/maven-extension/build-jar.sh",
40
41
  "build:sea": "node src/sea/build-sea.mts",
41
42
  "build:sea:internal:bootstrap": "rollup -c .config/rollup.sea.config.mjs",
42
43
  "check": "pnpm check:lint && pnpm check:tsc",
@@ -98,7 +99,7 @@
98
99
  "@babel/preset-typescript": "7.27.1",
99
100
  "@babel/runtime": "7.28.4",
100
101
  "@biomejs/biome": "2.2.4",
101
- "@coana-tech/cli": "15.6.2",
102
+ "@coana-tech/cli": "15.6.6",
102
103
  "@cyclonedx/cdxgen": "12.1.2",
103
104
  "@dotenvx/dotenvx": "1.49.0",
104
105
  "@eslint/compat": "1.3.2",
@@ -1,27 +0,0 @@
1
- // Delegates Socket facts generation for a JVM build tool to the Coana CLI's
2
- // `manifest <ecosystem>` command. The build-tool resolution scripts (the Gradle
3
- // init script and the sbt plugin) live in Coana now, so socket-cli no longer
4
- // runs them itself; it only asks Coana for the uploadable `.socket.facts.json`.
5
- //
6
- // The resolved artifact-paths sidecar is intentionally NOT requested here: it
7
- // only matters for reachability analysis, which is internal to Coana, so Coana
8
- // emits it itself when it runs reachability. `socket manifest` only needs the
9
- // facts file.
10
- //
11
- // `spawnCoanaDlx` resolves the Coana CLI via dlx (or a local build when
12
- // `SOCKET_CLI_COANA_LOCAL_PATH` is set). `bin` (the gradle/maven/sbt executable)
13
- // is always resolved by the caller to a concrete default (`<cwd>/gradlew`, or
14
- // `mvn`/`sbt` on PATH) before we get here, so it is forwarded verbatim; the
15
- // empty guard below is just a cheap safeguard against passing `--bin ''`.
16
- export declare function runCoanaManifestFacts({ bin, buildOpts, buildOptsFlag, cwd, ecosystem, excludeConfigs, ignoreUnresolved, includeConfigs, verbose }: {
17
- bin: string;
18
- buildOpts: string[];
19
- buildOptsFlag: '--gradle-opts' | '--maven-opts' | '--sbt-opts';
20
- cwd: string;
21
- ecosystem: 'gradle' | 'maven' | 'sbt';
22
- excludeConfigs: string;
23
- ignoreUnresolved: boolean;
24
- includeConfigs: string;
25
- verbose: boolean;
26
- }): Promise<void>;
27
- //# sourceMappingURL=coana-manifest-facts.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coana-manifest-facts.d.mts","sourceRoot":"","sources":["../../../../src/commands/manifest/coana-manifest-facts.mts"],"names":[],"mappings":"AAQA,4EAA4E;AAC5E,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,cAAc;AACd,EAAE;AACF,wEAAwE;AACxE,iFAAiF;AACjF,8EAA8E;AAC9E,4EAA4E;AAC5E,0EAA0E;AAC1E,wBAAsB,qBAAqB,CAAC,EAC1C,GAAG,EACH,SAAS,EACT,aAAa,EACb,GAAG,EACH,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,aAAa,EAAE,eAAe,GAAG,cAAc,GAAG,YAAY,CAAA;IAC9D,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;IACrC,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,OAAO,CAAA;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFhB"}
@@ -1,55 +0,0 @@
1
- import type { SocketJson } from './socket-json.mts';
2
- // Per-ecosystem build-tool options handed off to the Coana CLI — used both when
3
- // generating manifests (`coana manifest <ecosystem>`) and, in socket mode, for
4
- // reach-time dependency resolution (`coana run`). This mirrors the Coana-side
5
- // `--auto-manifest-config` shape: socket-cli owns mapping `socket.json` onto it,
6
- // so Coana stays uncoupled from `socket.json`'s schema. Keeping the
7
- // per-ecosystem options namespaced (rather than as flat CLI flags) avoids the
8
- // ambiguity of a bare `--bin`/`--include-configs` when a repo has more than one
9
- // build tool.
10
- export type BuildToolOptions = {
11
- // Build-tool executable override (e.g. `./gradlew`, `atlas-mvn`).
12
- bin?: string | undefined;
13
- // Comma-separated config-name globs to skip.
14
- excludeConfigs?: string | undefined;
15
- // `socket.json`'s per-ecosystem `ignoreUnresolved` (warn vs fail on unresolved
16
- // dependencies), forwarded verbatim. NOTE: this is NOT the reach-time
17
- // fail-closed switch — that's the run-wide `failOnBuildToolError` below.
18
- ignoreUnresolved?: boolean | undefined;
19
- // Comma-separated config-name globs to resolve.
20
- includeConfigs?: string | undefined;
21
- // Extra build-tool options, pre-split into argv. Coana maps these straight to
22
- // the tool's opts (no splitting on its side). Mapped from `socket.json`'s
23
- // `gradleOpts`/`sbtOpts` string.
24
- opts?: string[] | undefined;
25
- };
26
- // The Coana hand-off config. `failOnBuildToolError` is run-wide (top level)
27
- // because `--auto-manifest` is a single CLI mode, not a per-package-manager
28
- // setting. The per-ecosystem entries are present only for ecosystems configured
29
- // (and not disabled) in `socket.json`; absent ecosystems fall to Coana's own
30
- // defaults.
31
- export type AutoManifestConfig = {
32
- // Run-wide fail-closed switch. When true, Coana treats a build-tool step
33
- // failure as fatal rather than tolerating it. socket-cli sets it true under
34
- // `--auto-manifest`; left unset on plain `--reach` (permissive — Coana's
35
- // default best-effort behaviour).
36
- failOnBuildToolError?: boolean | undefined;
37
- gradle?: BuildToolOptions | undefined;
38
- sbt?: BuildToolOptions | undefined;
39
- };
40
- // Maps `socket.json`'s `defaults.manifest.<ecosystem>` build-tool options onto
41
- // the Coana hand-off config.
42
- //
43
- // `autoManifest` reflects whether the run is `--auto-manifest` (fail-closed:
44
- // `failOnBuildToolError=true`) vs plain `--reach` (permissive:
45
- // `failOnBuildToolError` left unset so Coana's default applies). Per-ecosystem
46
- // options are forwarded verbatim from `socket.json`; disabled ecosystems are
47
- // omitted so they fall back to Coana's defaults.
48
- export declare function buildAutoManifestConfig(sockJson: SocketJson, { autoManifest }: {
49
- autoManifest: boolean;
50
- }): AutoManifestConfig;
51
- // True when there's nothing to hand to Coana: no per-ecosystem options and the
52
- // run mode is left at Coana's permissive default. When true, the
53
- // `--auto-manifest-config` option should be omitted entirely.
54
- export declare function isAutoManifestConfigEmpty(config: AutoManifestConfig): boolean;
55
- //# sourceMappingURL=auto-manifest-config.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auto-manifest-config.d.mts","sourceRoot":"","sources":["../../../src/utils/auto-manifest-config.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,kFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,iFAAiF;AACjF,oEAAoE;AACpE,8EAA8E;AAC9E,gFAAgF;AAChF,cAAc;AACd,MAAM,MAAM,gBAAgB,GAAG;IAC7B,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,+EAA+E;IAC/E,sEAAsE;IACtE,2EAAyE;IACzE,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACtC,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,8EAA8E;IAC9E,0EAA0E;IAC1E,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAC5B,CAAA;AAED,4EAA4E;AAC5E,4EAA4E;AAC5E,gFAAgF;AAChF,6EAA6E;AAC7E,YAAY;AACZ,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yEAAyE;IACzE,4EAA4E;IAC5E,2EAAyE;IACzE,kCAAkC;IAClC,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC1C,MAAM,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACrC,GAAG,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACnC,CAAA;AAgBD,+EAA+E;AAC/E,6BAA6B;AAC7B,EAAE;AACF,6EAA6E;AAC7E,+DAA+D;AAC/D,+EAA+E;AAC/E,6EAA6E;AAC7E,iDAAiD;AACjD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,UAAU,EACpB,EAAE,YAAY,EAAE,EAAE;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GAC1C,kBAAkB,CAiCpB;AAED,+EAA+E;AAC/E,iEAAiE;AACjE,8DAA8D;AAC9D,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAI7E"}