no-mistakes 0.51.2 → 0.51.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 +29 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,12 @@
1
1
  # no-mistakes
2
2
 
3
3
  Unified static codebase intelligence CLI for TS/JS module graphs, symbols,
4
- React traits, queue hops, server routes, and project checks.
4
+ React traits, queue hops, server routes, configured language graphs, and project
5
+ checks.
6
+
7
+ Use it when an agent needs a deterministic impact map or focused test plan in
8
+ the same process as a Node tool. The async N-API facade avoids subprocess
9
+ parsing and reuses one prepared analysis for related reports.
5
10
 
6
11
  ```bash
7
12
  npm install --save-dev no-mistakes
@@ -14,6 +19,26 @@ npx no-mistakes check --json
14
19
 
15
20
  Programmatic Node usage loads the same Rust analysis through N-API:
16
21
 
22
+ ```js
23
+ const { analyzeProject } = require("no-mistakes");
24
+
25
+ const report = await analyzeProject({
26
+ root: process.cwd(),
27
+ reports: [
28
+ { type: "dependents", files: ["src/api.mts"] },
29
+ { type: "symbols", files: ["src/api.mts"], include: "both" },
30
+ {
31
+ type: "testsPlan",
32
+ framework: "vitest",
33
+ changedFiles: ["src/api.mts"],
34
+ },
35
+ ],
36
+ });
37
+ ```
38
+
39
+ Use `analyzeProject()` when reports share a root and configuration. Dedicated
40
+ functions remain convenient for a single query:
41
+
17
42
  ````js
18
43
  const {
19
44
  dependencies,
@@ -66,7 +91,7 @@ const {
66
91
  });
67
92
  const plan = await testsPlan({
68
93
  root: process.cwd(),
69
- framework: "vitest", // also python, go, cargo, rails, php, playwright, dotnet, swift
94
+ framework: "vitest", // also jest, python, go, cargo, rails, php, java, kotlin, elixir, dart, playwright, dotnet, swift
70
95
  changedFiles: ["src/utils.mts"],
71
96
  });
72
97
  // Complete changed-file inventory, including paths that selected no tests.
@@ -155,4 +180,5 @@ npx no-mistakes rust-max-lines-per-file crates/*/src crates/*/tests
155
180
 
156
181
  See the full documentation in [docs/](../../docs/README.md), the
157
182
  [CLI command index](../../docs/cli/README.md), and the
158
- [Node/N-API guide](../../docs/node-api.md).
183
+ [Node/N-API guide](../../docs/node-api.md). Agents can use the compact
184
+ [packaged skill](../../skills/no-mistakes/SKILL.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.51.2",
3
+ "version": "0.51.4",
4
4
  "description": "Static codebase analysis tools for TS/JS dependencies, dependents, and symbols",
5
5
  "license": "MIT",
6
6
  "repository": {