cognium-dev 3.90.1 → 3.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +27 -0
  2. package/dist/cli.js +4 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -213,6 +213,33 @@ Found 2 vulnerability(ies) in 1 file(s)
213
213
 
214
214
  Use `-v` flag to see all scanned files including clean ones.
215
215
 
216
+ ### Output streams (stdout vs stderr)
217
+
218
+ `cognium-dev` follows the standard CLI convention: machine-readable payload on **stdout**, diagnostics on **stderr**.
219
+
220
+ | Output | Stream | Notes |
221
+ |--------|--------|-------|
222
+ | `--format json` document | **stdout** | Pure JSON starting at character 1. No banner, no preamble. Safe to pipe directly to `jq`, `json_pp`, etc. |
223
+ | `--format sarif` document | **stdout** | Pure SARIF 2.1.0 JSON. Same contract as `--format json`. |
224
+ | `--format text` report | **stdout** | The human-readable report (default). |
225
+ | Status lines (`Loaded config: …`, `Suppressed N finding(s) …`, `Results written to …`) | **stderr** | |
226
+ | Spinner animation and final status (`✔ Scanned N file(s)`) | **stderr** | |
227
+ | Error messages and usage hints | **stderr** | |
228
+ | Library log output (cross-file phase markers, budget warnings, etc.) | **stderr** | Silent by default; enable with `--log-level <level>` or `COGNIUM_LOG_LEVEL`. |
229
+ | Findings instrumentation (`CIRCLE_IR_INSTRUMENT_FINDINGS=1`) | **stderr** | JSONL `[finding] …` / `[findings-summary] …` lines. |
230
+
231
+ The stdout contract for `--format json` and `--format sarif` is **stable**: pure parseable payload, version included inside the JSON object (not as a stdout preamble). Consumers can safely pipe stdout to a parser without skip-the-first-line idioms.
232
+
233
+ ```bash
234
+ # Safe — stdout is pure JSON
235
+ cognium-dev scan ./src --format json | jq '.summary'
236
+
237
+ # Status lines and warnings on stderr, JSON on stdout
238
+ cognium-dev scan ./src --format json > results.json 2> scan.log
239
+ ```
240
+
241
+ If you previously relied on a `tail -n +2` or `split("\n",1)[1]` idiom against pre-3.89.2 builds, drop it — there is no longer a stdout banner to skip.
242
+
216
243
  ## Detected Vulnerabilities
217
244
 
218
245
  | Type | CWE | Severity | Description |
package/dist/cli.js CHANGED
@@ -25001,6 +25001,9 @@ var TIER_1_METHOD_ANNOTATIONS = new Set([
25001
25001
  var TIER_1_CLASS_ANNOTATIONS = new Set([
25002
25002
  "RestController",
25003
25003
  "Controller",
25004
+ "Service",
25005
+ "Repository",
25006
+ "Component",
25004
25007
  "Path",
25005
25008
  "WebServlet",
25006
25009
  "ServerEndpoint",
@@ -34517,7 +34520,7 @@ var colors = {
34517
34520
  };
34518
34521
 
34519
34522
  // src/version.ts
34520
- var version = "3.90.1";
34523
+ var version = "3.91.0";
34521
34524
 
34522
34525
  // src/formatters.ts
34523
34526
  var SINK_SEVERITY = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cognium-dev",
3
- "version": "3.90.1",
3
+ "version": "3.91.0",
4
4
  "description": "Static Application Security Testing CLI for detecting security vulnerabilities via taint tracking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -65,7 +65,7 @@
65
65
  "registry": "https://registry.npmjs.org/"
66
66
  },
67
67
  "dependencies": {
68
- "circle-ir": "^3.90.1"
68
+ "circle-ir": "^3.91.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/node": "^25.5.0",