sentinello 3.0.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.
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/cli.cjs +35531 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Walk of Code LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# sentinello
|
|
2
|
+
|
|
3
|
+
<!-- Absolute URLs throughout: npm does not resolve relative links, and this file ships in the package. -->
|
|
4
|
+
<p>
|
|
5
|
+
<a href="https://github.com/walkofcode/sentinello/actions/workflows/ci.yml"><img src="https://github.com/walkofcode/sentinello/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
|
|
6
|
+
<a href="https://github.com/walkofcode/sentinello/blob/main/CONTRIBUTING.md#tests"><img src="https://img.shields.io/badge/coverage-99%25-brightgreen" alt="Statement coverage 99%, enforced by CI" /></a>
|
|
7
|
+
<img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT licensed" />
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
Scan the projects in a folder for vulnerable dependencies and get back an advisory an agent can act on.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx sentinello
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Walks the current directory for JavaScript projects, checks their dependencies against **npm audit**,
|
|
17
|
+
**OSV**, and **GitLab gemnasium**, and writes a markdown advisory with a remediation prompt attached.
|
|
18
|
+
|
|
19
|
+
It is `npm audit` with two differences that matter: it covers a folder of repositories rather than one
|
|
20
|
+
project, and it sees things npm audit cannot — including OSV's ~214,000 malicious-package records.
|
|
21
|
+
|
|
22
|
+
## Use it
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx sentinello # scan here, write a dated .md, print a summary
|
|
26
|
+
npx sentinello ~/Developer # scan every project under a directory
|
|
27
|
+
npx sentinello | claude -p "$(cat -)" # pipe the advisory straight to an agent
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or add it to a project and run it like any other check:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install -D sentinello
|
|
34
|
+
npx sentinello --fail-on high # exit 2 when a high or critical finding exists
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
In a terminal you get a summary and a dated `.md` file. Piped, stdout is pure markdown — every status
|
|
40
|
+
line goes to stderr, so the document is never corrupted.
|
|
41
|
+
|
|
42
|
+
The markdown contains the findings **and** a remediation prompt that tells an agent to triage before
|
|
43
|
+
touching anything, prefer parent upgrades over overrides, verify fixes in the lockfile rather than the
|
|
44
|
+
manifest, and never close a finding by muting it. Print it with `--print-prompt`, replace it with
|
|
45
|
+
`--prompt ./yours.md`, or drop it with `--no-prompt`.
|
|
46
|
+
|
|
47
|
+
## The advisory cache
|
|
48
|
+
|
|
49
|
+
The first run downloads the advisory databases (~200 MB for OSV, ~80 MB for gemnasium) and asks before
|
|
50
|
+
it does. After that every run refreshes incrementally: OSV answers `304 Not Modified` when nothing was
|
|
51
|
+
published, and gemnasium is gated on its repository's HEAD commit, so a routine scan transfers almost
|
|
52
|
+
nothing and completes in about a second.
|
|
53
|
+
|
|
54
|
+
The cache lives in `$XDG_CACHE_HOME/sentinello` or `~/.cache/sentinello`. It is the only thing written
|
|
55
|
+
outside your project.
|
|
56
|
+
|
|
57
|
+
## Privacy
|
|
58
|
+
|
|
59
|
+
**Nothing about your code is uploaded.** No source, no paths, no dependency list, no telemetry, and no
|
|
60
|
+
history is kept between runs.
|
|
61
|
+
|
|
62
|
+
Outbound requests go to `osv-vulnerabilities.storage.googleapis.com` and `gitlab.com` to download public
|
|
63
|
+
advisory data, and `npm audit` talks to your configured npm registry exactly as it always does. Use
|
|
64
|
+
`--source osv,gemnasium` to skip npm audit, or `--offline` to make no network requests at all.
|
|
65
|
+
|
|
66
|
+
## Options
|
|
67
|
+
|
|
68
|
+
Run `sentinello --help` for the full list. The ones people reach for:
|
|
69
|
+
|
|
70
|
+
| | |
|
|
71
|
+
|---|---|
|
|
72
|
+
| `--depth <n\|all>` | how far to descend. Default `all`, stopping at each project |
|
|
73
|
+
| `--exclude <glob>` | skip paths. `.gitignore` and `.sentinelloignore` are always honoured |
|
|
74
|
+
| `--source <list>` | `npm-audit`, `osv`, `gemnasium`. Default: all three |
|
|
75
|
+
| `--severity <level>` | report at this severity or above |
|
|
76
|
+
| `--fail-on <level>` | exit 2 when matched, for CI |
|
|
77
|
+
| `--out <file\|->` | where the advisory goes |
|
|
78
|
+
| `--json` | machine-readable output |
|
|
79
|
+
| `-y, --yes` | accept the first-run download without asking |
|
|
80
|
+
| `--offline` | use the cache as-is, no network |
|
|
81
|
+
| `--doctor` | cache status, resolved settings, and what was skipped and why |
|
|
82
|
+
|
|
83
|
+
Exit codes: `0` completed, `1` a scan or configuration error, `2` the `--fail-on` threshold was met.
|
|
84
|
+
Findings alone are not a failure.
|
|
85
|
+
|
|
86
|
+
## Requires
|
|
87
|
+
|
|
88
|
+
Node 22 or newer. No dependencies, no install scripts, no native modules.
|
|
89
|
+
|
|
90
|
+
## The portal
|
|
91
|
+
|
|
92
|
+
This CLI is one half of [Sentinello](https://sentinello.org). The other is a self-hosted portal that
|
|
93
|
+
watches your projects continuously, tracks findings over time, and notifies you when something new
|
|
94
|
+
appears — the same scanners and the same advisory sources, with history.
|
|
95
|
+
|
|
96
|
+
MIT © [Walk of Code](https://walkofcode.io)
|