@getcodesentinel/codesentinel 1.38.0 → 1.40.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/README.md +11 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
<a href="https://github.com/getcodesentinel/codesentinel/actions/workflows/release.yml"><img src="https://github.com/getcodesentinel/codesentinel/actions/workflows/release.yml/badge.svg?branch=main" alt="Release" /></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/@getcodesentinel/codesentinel"><img src="https://img.shields.io/npm/v/@getcodesentinel/codesentinel" alt="npm version" /></a>
|
|
8
8
|
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D22-339933?logo=node.js&logoColor=white" alt="Node.js >=22" /></a>
|
|
9
|
-
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a
|
|
9
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
|
|
10
|
+
<a href="https://getcodesentinel.github.io/codesentinel/"><img src="https://img.shields.io/badge/live%20report-GitHub%20Pages-222?logo=github" alt="Live report" /></a>
|
|
10
11
|
</p>
|
|
11
12
|
|
|
12
13
|
CodeSentinel is a structural and evolutionary risk analysis engine for modern TypeScript/JavaScript codebases. It turns architecture, change history, and dependency health into a unified risk model that helps engineering teams spot fragility before it becomes failure.
|
|
@@ -294,7 +295,7 @@ pnpm dev -- ci . --baseline baseline.json --snapshot current.json --report repor
|
|
|
294
295
|
`codesentinel report` produces deterministic engineering artifacts from existing analysis outputs.
|
|
295
296
|
|
|
296
297
|
- default format: `md`
|
|
297
|
-
- formats: `text`, `md`, `json`
|
|
298
|
+
- formats: `text`, `md`, `json`, `html` (`--format html` writes a self-contained `index.html` into the `--output` directory)
|
|
298
299
|
- optional file output: `--output <path>`
|
|
299
300
|
- optional snapshot export: `--snapshot <path>`
|
|
300
301
|
- optional diff mode: `--compare <baseline.json>`
|
|
@@ -307,6 +308,8 @@ Diff mode compares snapshots and reports:
|
|
|
307
308
|
- new/resolved cycles
|
|
308
309
|
- dependency exposure list changes
|
|
309
310
|
|
|
311
|
+
The live report at <https://getcodesentinel.github.io/codesentinel/> is this project's own HTML report generated by CodeSentinel from this repository and refreshed on every push to `main`.
|
|
312
|
+
|
|
310
313
|
## Run Output
|
|
311
314
|
|
|
312
315
|
`codesentinel run` is a convenience command that emits `analyze + explain + report` in one execution.
|
|
@@ -374,6 +377,12 @@ GitHub Actions recommendation for deterministic CI with `--baseline-ref auto`:
|
|
|
374
377
|
git fetch origin "+refs/heads/${BASE_REF}:refs/remotes/origin/${BASE_REF}"
|
|
375
378
|
```
|
|
376
379
|
|
|
380
|
+
This repository runs CodeSentinel on its own pull requests. `.github/workflows/codesentinel.yml`
|
|
381
|
+
builds the CLI from the checked-out revision and runs `ci --baseline-ref auto` with risk `<= 52`,
|
|
382
|
+
health `>= 80`, risk delta `<= 1`, no new cycles and no new hotspots against `main`; it uploads
|
|
383
|
+
the ownership SARIF to code scanning under the `codesentinel-ownership` category, keeps one sticky
|
|
384
|
+
summary comment per pull request, and stores the snapshot as a 90-day artifact.
|
|
385
|
+
|
|
377
386
|
Exit codes:
|
|
378
387
|
|
|
379
388
|
- `0`: no failing violations
|
package/package.json
CHANGED