@staff0rd/assist 0.147.4 → 0.149.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 +1 -0
- package/claude/commands/test-cover.md +4 -2
- package/claude/settings.json +1 -0
- package/dist/index.js +381 -346
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -152,6 +152,7 @@ After installation, the `assist` command will be available globally. You can als
|
|
|
152
152
|
- `assist seq query <filter> --json` - Output raw JSON
|
|
153
153
|
- `assist seq query <filter> -n <count>` - Fetch a specific number of events (default 50)
|
|
154
154
|
- `assist screenshot <process>` - Capture a screenshot of a running application window (e.g. `assist screenshot notepad`). Output directory is configurable via `screenshot.outputDir` (default `./screenshots`)
|
|
155
|
+
- `assist coverage` - Print global statement coverage percentage
|
|
155
156
|
- `assist complexity <pattern>` - Analyze a file (all metrics if single match, maintainability if multiple)
|
|
156
157
|
- `assist complexity cyclomatic [pattern]` - Calculate cyclomatic complexity per function
|
|
157
158
|
- `assist complexity halstead [pattern]` - Calculate Halstead metrics per function
|
|
@@ -7,7 +7,9 @@ You are increasing test coverage for this project. Your goal is to pick the high
|
|
|
7
7
|
|
|
8
8
|
## Step 1: Measure current coverage
|
|
9
9
|
|
|
10
|
-
Run coverage
|
|
10
|
+
Run `assist coverage` to get the current global statement coverage percentage.
|
|
11
|
+
|
|
12
|
+
Then run coverage with JSON output to identify what is untested:
|
|
11
13
|
|
|
12
14
|
```
|
|
13
15
|
npx vitest run --coverage --coverage.include='src/**/*.ts' --coverage.all --coverage.reporter=json 2>&1
|
|
@@ -116,4 +118,4 @@ File | Before | After
|
|
|
116
118
|
<file path> | 0% | 95%
|
|
117
119
|
```
|
|
118
120
|
|
|
119
|
-
And the new repo-wide coverage number.
|
|
121
|
+
And the new repo-wide coverage number (run `assist coverage`).
|
package/claude/settings.json
CHANGED