@corgea/cli 1.8.7 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,6 +26,65 @@ Once the binary is installed, login with your token from the Corgea app.
26
26
  corgea login <token>
27
27
  ```
28
28
 
29
+ ## Dependency Inventory (offline)
30
+
31
+ `corgea deps` builds a dependency inventory from npm, Python, and Java manifests
32
+ and lockfiles, then evaluates a pinning policy (DEP rules). Runs fully offline —
33
+ no token or network required.
34
+
35
+ ```bash
36
+ corgea deps scan # table report for the current directory
37
+ corgea deps scan --format agent # compact TSV for coding agents
38
+ corgea deps scan --format json # JSON inventory on stdout
39
+ corgea deps scan --format quiet # no stdout; exit code still applies
40
+ corgea deps scan --fail-on high # exit 1 if any finding is >= high
41
+ corgea deps scan --out-format json # machine-readable (json or sarif)
42
+ corgea deps graph --format json # print the resolved dependency graph
43
+ corgea deps explain <package> --format agent # show why a package is present
44
+ corgea deps diff --base origin/main --format json
45
+ corgea deps sbom --format cyclonedx # emit a CycloneDX SBOM
46
+ corgea deps policy init --exist-ok # write starter policy, or keep existing file
47
+ ```
48
+
49
+ `corgea deps` defaults to `--format agent` when an agent environment is detected (`AI_AGENT`, `CODEX_SANDBOX`, `CLAUDECODE`, and related agent variables). Use `--format human` to force the normal terminal output.
50
+
51
+ See [Dependency Scanning (CLI)](https://docs.corgea.app/cli/deps) for the full flag and exit-code reference.
52
+
53
+ ## Install Gate
54
+
55
+ Prefix a package-manager install with `corgea` to vet every package it would
56
+ install — named **and transitive** — against Corgea's vulnerability API *before*
57
+ anything lands on disk. Known-vulnerable or malicious versions block the install;
58
+ a clean set runs the underlying command untouched. Works with `pip`, `npm`,
59
+ `yarn`, `pnpm`, and `uv`.
60
+
61
+ No token required — baseline public CVE checks run out of the box. Try it:
62
+
63
+ ```bash
64
+ corgea npm install lodash@4.17.20 # blocks: known-vulnerable (CVE-2025-13465), exits 1
65
+ corgea pip install requests # resolves, checks the verdict, then runs pip
66
+ corgea npm install axios@^1.0.0 # ranges resolve to a concrete version first
67
+ corgea pip --force install <pkg> # print findings but install anyway
68
+ corgea pip list # non-install subcommands pass straight through
69
+ ```
70
+
71
+ `corgea pip install` and `corgea npm install` resolve the **full would-install
72
+ set** (named + transitive) via a safe dry-run, so a vulnerable *transitive*
73
+ dependency blocks too. Blocked findings steer to the fix: each advisory shows
74
+ `fixed in <version>`, and the gate prints the safe version to install instead.
75
+
76
+ The gate also blocks **freshly published** packages — anything published within
77
+ the recency window (default 14 days) — to catch just-shipped typosquats and
78
+ hijacks before advisory feeds catch up. It is on by default; turn it off with
79
+ `recency_gate = false` in `~/.corgea/config.toml`, retune the window with
80
+ `recency_threshold_days`, or pass `--force` for a one-off install.
81
+
82
+ Logging in (`corgea login`) upgrades the gate to authenticated enforcement —
83
+ unverifiable packages, resolution errors, and lookup failures then fail closed
84
+ (public mode warns and continues). Wrapper flags (`--force`, `--json`) go between
85
+ the manager and its command: `corgea npm --force install <pkg>`.
86
+
87
+ See [the CLI docs](https://docs.corgea.app/cli) for the full flag and exit-code reference.
29
88
 
30
89
  ## Development Setup
31
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corgea/cli",
3
- "version": "1.8.7",
3
+ "version": "1.9.1",
4
4
  "description": "The Corgea CLI. Scan for vulnerabilities, create fixes.",
5
5
  "license": "LGPL-2.1-only",
6
6
  "homepage": "https://corgea.com",