gadriel 0.10.3 → 0.10.4

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 (2) hide show
  1. package/README.md +64 -23
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -5,8 +5,12 @@ SAST, SCA, secret, config, container, and API scans over your codebase and
5
5
  integrates with AI coding agents (Claude Code, Cursor, Copilot) via git hooks
6
6
  and an MCP server.
7
7
 
8
- > Platform support: this release ships a prebuilt **Linux x64 (glibc)** binary.
9
- > Other platforms are not yet published.
8
+ > **Beta program:** This release is part of the Gadriel developer beta.
9
+ > Sign up at [https://app.gadriel.ai/developers/](https://app.gadriel.ai/developers/)
10
+ > to get your CLI token.
11
+
12
+ > **Platform support:** Linux x64 (glibc). macOS and Windows platform packages
13
+ > will follow in the next release.
10
14
 
11
15
  ## Install
12
16
 
@@ -17,61 +21,98 @@ gadriel --version
17
21
 
18
22
  The `gadriel` package is a thin launcher; the actual binary is delivered by the
19
23
  platform package `@gadriel/cli-linux-x64`, selected automatically at install
20
- time via npm `optionalDependencies` (matched on `os` + `cpu`).
24
+ time via npm `optionalDependencies`.
21
25
 
22
26
  ## Quick start
23
27
 
24
28
  ```bash
25
- # 1. Authenticate (one-time; uses the Gadriel portal)
29
+ # 1. Authenticate paste a token from https://app.gadriel.ai/developers/tokens
26
30
  gadriel auth login
27
31
 
28
- # 2. Scaffold code-security in your repo
29
- # Creates .security/, git hooks, MCP server config, and CLAUDE.md.
32
+ # 2. Sync the vulnerability database (one-time, ~500 MB, enables CVE detection)
33
+ gadriel code policies --osv
34
+
35
+ # 3. Scaffold code-security in your repo
36
+ # Creates .security/, git hooks, MCP server config, and CLAUDE.md
30
37
  gadriel code init
31
38
 
32
- # 3. Scan the current repo
33
- gadriel code scan
39
+ # 4. Scan the current repo
40
+ gadriel code scan .
34
41
 
35
- # 4. Read findings
36
- gadriel code findings
42
+ # 5. Open the HTML report
43
+ open .security/reports/index.html
37
44
  ```
38
45
 
39
- `gadriel code init` bundles the GVL rule corpus inside the binary, so scans work
40
- offline with no extra download. Add `--offline` to skip the OSV CVE sync.
46
+ > **New in 0.10.3:** When the OSV database is absent, `gadriel code scan`
47
+ > now prompts you to sync it inline rather than silently running in degraded
48
+ > mode. The CLI also shows a clear recovery message when no token is found.
49
+
50
+ ## Getting started (full guide)
51
+
52
+ Full onboarding guide: [docs/beta/getting-started.md](https://github.com/Gadriel-ai/preflight/blob/main/docs/beta/getting-started.md)
41
53
 
42
54
  ## Code-security commands
43
55
 
44
56
  | Command | What it does |
45
57
  |---|---|
58
+ | `gadriel auth login` | Authenticate with your portal token |
59
+ | `gadriel auth status` | Show current token name, expiry, and scopes |
46
60
  | `gadriel code init` | Scaffold `.security/`, git hooks, MCP server, `CLAUDE.md` |
47
61
  | `gadriel code scan` | Run SAST + SCA + secrets + config + container + API scans |
62
+ | `gadriel code policies --osv` | Sync the OSV CVE vulnerability database (required once) |
48
63
  | `gadriel code watch` | Watch files and scan on save (Layer-1 fast path) |
49
64
  | `gadriel code findings` | Read findings from `.security/findings.json` |
50
65
  | `gadriel code fix <id>` | Confirm, dismiss, or hand a finding to an AI agent |
51
66
  | `gadriel code sbom` | Export an SBOM (SPDX 2.3 + CycloneDX 1.4) |
52
67
  | `gadriel code report` | Per-framework compliance reports + static HTML bundle |
53
68
  | `gadriel code dashboard` | Local web dashboard (binds `127.0.0.1`) |
54
- | `gadriel code mcp` | Start the MCP server (JSON-RPC 2.0 over stdio) |
69
+ | `gadriel code mcp` | Start the MCP server for Claude Code / IDE integrations |
70
+
71
+ Output formats: `--format table|json|html|ocsf`.
72
+
73
+ ## Scan flags
74
+
75
+ | Flag | Default | Description |
76
+ |------|---------|-------------|
77
+ | `--fail-on <severity>` | `none` | Exit non-zero on findings at or above level (`low`, `medium`, `high`, `critical`) |
78
+ | `--format <fmt>` | `table` | Terminal summary format |
79
+ | `--no-html` | false | Skip HTML report (faster in CI) |
80
+ | `--no-osv` | false | Skip CVE detection entirely |
81
+ | `--offline` | false | No network calls at all |
82
+ | `--staged` | false | Scan only git-staged files (pre-commit) |
83
+ | `--git-history` | false | Deep sweep of all git commits (Layer-4) |
84
+
85
+ ## Claude Code integration
55
86
 
56
- Output formats: `--format table|json|sarif|junit|csv|html|ocsf`.
87
+ After `gadriel code init`, open Claude Code in your project directory:
88
+
89
+ ```bash
90
+ claude
91
+ ```
92
+
93
+ Slash commands available:
94
+
95
+ | Command | What it does |
96
+ |---------|-------------|
97
+ | `/gadriel-scan` | Full scan of the repo |
98
+ | `/gadriel-scan src/auth` | Scan a specific path |
99
+ | `/gadriel-fix CODE-W1-L1-001` | AI-assisted fix for a finding |
100
+ | `/gadriel-reports` | Generate compliance PDFs (EU AI Act, NIST, OWASP…) |
57
101
 
58
102
  ## Exit codes
59
103
 
60
104
  | Code | Meaning |
61
- |---|---|
105
+ |------|---------|
62
106
  | `0` | Clean — no gate tripped |
63
- | `1` | Security gate tripped (`--fail-on <severity>` threshold breached) |
107
+ | `1` | Security gate tripped (`--fail-on` threshold breached) |
64
108
  | `2` | Tooling error / crash |
65
- | `7` | License check failed |
66
-
67
- Git hooks branch on these: `0` passes, `1` blocks, anything else warns and
68
- lets the commit through. Set `GADRIEL_SKIP=1` to bypass.
109
+ | `7` | Auth required run `gadriel auth login` |
69
110
 
70
111
  ## Documentation
71
112
 
72
- See https://gadriel.ai for full documentation, scenario catalogs, and the
73
- compliance-framework mappings (EU AI Act, NIST AI RMF, SOC 2, HIPAA, PCI-DSS,
74
- OWASP LLM Top 10).
113
+ - Getting started: https://app.gadriel.ai/developers/
114
+ - Full docs: https://gadriel.ai
115
+ - Issues: https://github.com/Gadriel-ai/preflight/issues
75
116
 
76
117
  ## License
77
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gadriel",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Gadriel - Code-security CLI for AI-assisted development",
5
5
  "keywords": [
6
6
  "security",
@@ -35,10 +35,10 @@
35
35
  "node": ">=16"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@gadriel/cli-linux-x64": "0.10.3",
39
- "@gadriel/cli-linux-arm64": "0.10.3",
40
- "@gadriel/cli-darwin-x64": "0.10.3",
41
- "@gadriel/cli-darwin-arm64": "0.10.3",
42
- "@gadriel/cli-win32-x64": "0.10.3"
38
+ "@gadriel/cli-linux-x64": "0.10.4",
39
+ "@gadriel/cli-linux-arm64": "0.10.4",
40
+ "@gadriel/cli-darwin-x64": "0.10.4",
41
+ "@gadriel/cli-darwin-arm64": "0.10.4",
42
+ "@gadriel/cli-win32-x64": "0.10.4"
43
43
  }
44
44
  }