@brokkai/slopcop 0.0.15 → 0.0.17
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 +34 -8
- package/native/darwin_amd64/slopcop +0 -0
- package/native/darwin_arm64/slopcop +0 -0
- package/native/linux_amd64/slopcop +0 -0
- package/native/linux_arm64/slopcop +0 -0
- package/native/windows_amd64/slopcop.exe +0 -0
- package/native/windows_arm64/slopcop.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -306,18 +306,26 @@ already approved in your browser, so it needs neither.
|
|
|
306
306
|
The browser flow prints a link that opens the approval page with the code
|
|
307
307
|
filled in, plus the page and code to type in instead, and stores the token once
|
|
308
308
|
the login is approved. Approve only if the page shows the code your terminal
|
|
309
|
-
printed.
|
|
310
|
-
`$SLOPCOP_SERVICE`, or a stored value override it.
|
|
309
|
+
printed.
|
|
311
310
|
|
|
312
|
-
The
|
|
313
|
-
|
|
311
|
+
The service URL defaults to `https://slopcop.com`; `--service` or
|
|
312
|
+
`$SLOPCOP_SERVICE` names another for one command. Each service keeps its own
|
|
313
|
+
login: `slopcop --service <url> login` leaves the others signed in and the
|
|
314
|
+
default as it is, and a login is only sent to the service that issued it.
|
|
315
|
+
`slopcop login --default` or `slopcop service use <url>` changes the default,
|
|
316
|
+
after asking at a terminal, and `slopcop service list` shows the stored logins. A command that talks to
|
|
317
|
+
another service than `https://slopcop.com` says so on stderr.
|
|
318
|
+
|
|
319
|
+
The credentials live in `slopcop/config.json` under the user config directory,
|
|
320
|
+
which is written owner-only. `slopcop logout` forgets the login for one
|
|
321
|
+
service, and `slopcop logout --all` every one.
|
|
314
322
|
|
|
315
323
|
Precedence:
|
|
316
324
|
|
|
317
325
|
| Value | Order |
|
|
318
326
|
| --- | --- |
|
|
319
|
-
| Service URL | `--service`, `$SLOPCOP_SERVICE`, stored by `slopcop login`, `https://slopcop.com` |
|
|
320
|
-
| Token | `$SLOPCOP_TOKEN`, stored
|
|
327
|
+
| Service URL | `--service`, `$SLOPCOP_SERVICE`, the default stored by `slopcop login --default` or `slopcop service use`, `https://slopcop.com` |
|
|
328
|
+
| Token | `$SLOPCOP_TOKEN`, the login stored for that service |
|
|
321
329
|
| Workspace (`check`, `enable`, `status`, `ignore`, `unignore`, `ignored`, `repo`) | `-w`/`--workspace`, `$SLOPCOP_WORKSPACE`, the one the login is bound to |
|
|
322
330
|
|
|
323
331
|
## Workspace and repositories
|
|
@@ -429,6 +437,9 @@ Flags:
|
|
|
429
437
|
| `--fail-on never\|finding\|note\|warning\|error` | exit-1 threshold for new findings (default `finding`) |
|
|
430
438
|
| `--certainty definite\|all` | report and fail on only `definite` findings (default), or on `possible` and `heuristic` ones too |
|
|
431
439
|
| `--policy PATH` | repository-relative `.rqlp` file to evaluate (repeatable) |
|
|
440
|
+
| `--policy-id ID` | built-in policy ID (repeatable) |
|
|
441
|
+
| `--policy-pack PACK` | policy pack (repeatable) |
|
|
442
|
+
| `--policy-category CATEGORY` | policy category (repeatable) |
|
|
432
443
|
| `--no-policy-discovery` | skip `.slopcop/policies` rules |
|
|
433
444
|
| `--timeout DURATION` | how long to wait for the result (default `10m`) |
|
|
434
445
|
| `-w`, `--workspace NAME\|ID` | check in, and bill, this workspace of the account instead of the login's |
|
|
@@ -436,6 +447,18 @@ Flags:
|
|
|
436
447
|
| `--add-repository` | add the repository to the workspace `--workspace` names, which then pays for it, without asking at a terminal; for after the user approved it. A check without it never adds a repository |
|
|
437
448
|
| `--verbose` | print the resolved request to stderr, and name each inconclusive check in `human` |
|
|
438
449
|
|
|
450
|
+
The hosted `slopcop.similarity` check runs by default, including when the
|
|
451
|
+
repository has `.slopcop/policies` files. It reports similar
|
|
452
|
+
existing functions for functions in the change, with candidate paths, lines,
|
|
453
|
+
and a probability. Similarity findings have `info` severity, are always shown
|
|
454
|
+
regardless of `--certainty`, and are advisory: they never affect the push gate
|
|
455
|
+
or the check's exit code. Check notices, including partial comparison notices,
|
|
456
|
+
appear as notes and do not make analysis incomplete. To select only
|
|
457
|
+
similarity, pass `--policy-id slopcop.similarity`.
|
|
458
|
+
|
|
459
|
+
For this check, function source from the change is sent to third-party
|
|
460
|
+
embedding and model providers used by the hosted service.
|
|
461
|
+
|
|
439
462
|
### Modes and local review
|
|
440
463
|
|
|
441
464
|
`slopcop check` runs hosted static analysis and local LLM review concurrently
|
|
@@ -582,8 +605,11 @@ whichever is used.
|
|
|
582
605
|
| `4` | The service refused the check, and only a person can clear it |
|
|
583
606
|
| `130`, `143` | Interrupted before the check answered: `130` for Ctrl-C, `143` for SIGTERM |
|
|
584
607
|
|
|
585
|
-
|
|
586
|
-
|
|
608
|
+
`--fail-on` decides only the exit code: `status` is `findings` whenever the
|
|
609
|
+
change has new findings, so `--fail-on never` reports them and still exits `0`.
|
|
610
|
+
Otherwise only `clean` exits `0`: a status this CLI does not know exits `2`, so
|
|
611
|
+
a newer service can never pass a check by accident, and stderr names the
|
|
612
|
+
status. An
|
|
587
613
|
interrupted check prints no report. Interrupted before it was sent, nothing
|
|
588
614
|
reached the service; after, a service that received it keeps running it, and
|
|
589
615
|
running the same check again picks up its result.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|