@brokkai/slopcop 0.0.20 → 0.0.22
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 +62 -30
- 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
|
@@ -49,7 +49,9 @@ CLI, and keeps the login the machine has. `SLOPCOP_VERSION`,
|
|
|
49
49
|
|
|
50
50
|
Without a code, `curl -fsSL https://slopcop.com/install | sh` does the same and
|
|
51
51
|
signs in through the browser device flow instead (see [Sign in](#sign-in)).
|
|
52
|
-
Then
|
|
52
|
+
Then open your agent in any repository you want checked: its first check adds
|
|
53
|
+
the repository to your workspace (repositories are free; a check uses a free
|
|
54
|
+
check, then credits). `slopcop enable` is optional; see [Account](#account).
|
|
53
55
|
|
|
54
56
|
### Other channels
|
|
55
57
|
|
|
@@ -86,9 +88,12 @@ pip install brokk-slopcop
|
|
|
86
88
|
|
|
87
89
|
`pipx install brokk-slopcop` or `uv tool install brokk-slopcop` puts it in an
|
|
88
90
|
environment of its own. The wheels carry the release binary, so no Go toolchain
|
|
89
|
-
is needed either.
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
is needed either.
|
|
92
|
+
|
|
93
|
+
The package is [`brokk-slopcop`](https://pypi.org/project/brokk-slopcop/),
|
|
94
|
+
published from this repository. Do not run `pip install slopcop`: PyPI's
|
|
95
|
+
`slopcop` is an unrelated project by someone else. The command `brokk-slopcop`
|
|
96
|
+
installs is still `slopcop`, and `python -m brokk_slopcop` runs the same binary.
|
|
92
97
|
|
|
93
98
|
### Release archive
|
|
94
99
|
|
|
@@ -363,7 +368,7 @@ unless this machine maps the repository to another of your workspaces.
|
|
|
363
368
|
```console
|
|
364
369
|
slopcop whoami # account, this login's workspace, its plan, the service URL
|
|
365
370
|
slopcop status # this checkout's repository, and whether the workspace checks it
|
|
366
|
-
slopcop enable # add this checkout's repository
|
|
371
|
+
slopcop enable # optional: add this checkout's repository now, and say which workspace
|
|
367
372
|
slopcop workspace list # the account's workspaces; * marks this login's
|
|
368
373
|
slopcop workspace map "Acme team" # check this checkout's repository there from now on, at a terminal
|
|
369
374
|
slopcop workspace unmap # go back to the login's workspace for this repository
|
|
@@ -408,23 +413,25 @@ has the repository; the check still runs.
|
|
|
408
413
|
Names match without regard to case; when two workspaces share a name, or two
|
|
409
414
|
providers a repository name, pass the id the listing prints.
|
|
410
415
|
|
|
411
|
-
`slopcop enable
|
|
412
|
-
`origin` remote names to the workspace that checks and bills it,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
416
|
+
`slopcop enable` is optional. Run inside a checkout, it adds the repository the
|
|
417
|
+
`origin` remote names to the workspace that checks and bills it, runs its first
|
|
418
|
+
check, and maps this machine's checkouts of it to that workspace. It does not
|
|
419
|
+
ask: the workspace is the one `--workspace` names, else the one the checkout is
|
|
420
|
+
mapped to, else the login's, and it says which one on stderr along with how to
|
|
421
|
+
undo it:
|
|
422
|
+
|
|
423
|
+
```console
|
|
424
|
+
$ slopcop enable
|
|
425
|
+
slopcop: added Acme/widgets to "Acme team"; your agent's changes here are checked there from now on.
|
|
426
|
+
slopcop: wrong workspace? Run `slopcop workspace map <name>` here to check it in another (`slopcop workspace list` names them), then `slopcop repo disable Acme/widgets --workspace "Acme team"` to remove it from "Acme team".
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
An account with one workspace gets the first line alone, ending with the
|
|
430
|
+
`slopcop repo disable owner/name` that undoes it. Before it adds a repository another of your
|
|
431
|
+
workspaces already has, it says so, since both would then check and bill it.
|
|
432
|
+
A repository that is already active is left alone. One that someone disabled
|
|
433
|
+
is enabled again, but only at a terminal: an agent running with your login does
|
|
434
|
+
not undo that choice.
|
|
428
435
|
|
|
429
436
|
A check does not need `enable` first: a check of a repository the workspace has
|
|
430
437
|
never added adds it to the workspace the check runs in (the login's, or the one
|
|
@@ -432,8 +439,7 @@ never added adds it to the workspace the check runs in (the login's, or the one
|
|
|
432
439
|
stopped to ask. A check of one the workspace has disabled exits `4` with
|
|
433
440
|
`repository_disabled`, and one past the active limit with
|
|
434
441
|
`active_repository_limit_reached`; these stop before the local reviewers start,
|
|
435
|
-
so the report has no review. A check that adds a repository,
|
|
436
|
-
enable`, says `added owner/name to "Workspace"` on stderr, and `json` reports
|
|
442
|
+
so the report has no review. A check that adds a repository says `added owner/name to "Workspace"` on stderr, and `json` reports
|
|
437
443
|
`"repositoryAdded": true` and `addedToWorkspace`: the workspace, how it was
|
|
438
444
|
chosen, and how to check the repository in another one instead. `--add-repository` is no longer needed; it is still
|
|
439
445
|
accepted. Deleting repositories, archiving workspaces, members, credits and
|
|
@@ -489,7 +495,7 @@ Flags:
|
|
|
489
495
|
| `--base REV` | branch or revision the change started from; the base is its merge base with `HEAD` |
|
|
490
496
|
| `--base-exact REV` | exact base commit or revision, without a merge base |
|
|
491
497
|
| `--format human\|json\|sarif` | report format (default `human`) |
|
|
492
|
-
| `--fail-on never\|finding\|note\|warning\|error` | exit-1 threshold for new findings (default `finding`) |
|
|
498
|
+
| `--fail-on never\|finding\|note\|warning\|error` | exit-1 threshold for new static findings (default `finding`); a review finding exits `1` at every level but `never` |
|
|
493
499
|
| `--certainty definite\|all` | report and fail on only `definite` findings (default), or on `possible` and `heuristic` ones too |
|
|
494
500
|
| `--policy PATH` | repository-relative `.rqlp` file to evaluate (repeatable) |
|
|
495
501
|
| `--policy-id ID` | built-in policy ID (repeatable) |
|
|
@@ -510,8 +516,11 @@ or the check's exit code. Check notices, including partial comparison notices,
|
|
|
510
516
|
appear as notes and do not make analysis incomplete. To select only
|
|
511
517
|
similarity, pass `--policy-id slopcop.similarity`.
|
|
512
518
|
|
|
513
|
-
|
|
514
|
-
|
|
519
|
+
This is the one hosted check that is not rule-based: the hosted service sends
|
|
520
|
+
function source to third-party providers. An embedding provider receives the
|
|
521
|
+
functions the change adds or edits and, to index the repository, the functions
|
|
522
|
+
in the rest of its source files, not only the ones the change touches. A model
|
|
523
|
+
receives each changed function with the existing functions closest to it.
|
|
515
524
|
|
|
516
525
|
A finding of the hosted `slopcop.dependencies.known-vulnerability` check is a
|
|
517
526
|
known-vulnerable dependency version the change brings in. Its location is the
|
|
@@ -577,14 +586,22 @@ files; Slopcop refuses their requests to run commands or change files. Codex
|
|
|
577
586
|
reviewers run in Codex's read-only sandbox.
|
|
578
587
|
CI normally uses `--mode static`.
|
|
579
588
|
|
|
580
|
-
Review state and logs are under `<git-dir>/slopcop/`.
|
|
589
|
+
Review state and logs are under `<git-dir>/slopcop/`. `slopcop review show
|
|
590
|
+
[--format human|json|sarif]` prints the latest review again, rebuilding each
|
|
591
|
+
reviewer's reply from its log, without running a reviewer. A complete review is
|
|
581
592
|
reused when nothing relevant changed. A nonempty check with a clean review
|
|
582
593
|
and a completed static result with no new findings at or above
|
|
583
594
|
`gate.blockOn` (default `error`) records `refs/slopcop/reviewed/<tree>`.
|
|
584
595
|
Warnings and notes are advisory for push approval, though they still exit `1`
|
|
585
596
|
by default. The Claude Code gate checks HEAD's tree, so
|
|
586
597
|
after checking a dirty tree, commit exactly that state. For demonstrably wrong
|
|
587
|
-
complete review findings, `slopcop override --reason "..."`
|
|
598
|
+
complete review findings, `slopcop override <rv-id> --reason "..."` overrides
|
|
599
|
+
one finding, by the `rv-` id in `review.findings`, for every later review in the
|
|
600
|
+
clone: check again and the reused review leaves it out, later reviewers are
|
|
601
|
+
told not to raise it, and a finding that repeats it, even reworded near the
|
|
602
|
+
same lines, is listed under `review.overridden` instead of failing the check.
|
|
603
|
+
`--undo <rv-id>` and `--list` manage them. Without an id,
|
|
604
|
+
`slopcop override --reason "..."` records acceptance
|
|
588
605
|
when the static half has no findings at or above the push level
|
|
589
606
|
and completed, was skipped, or did not run. Never override real bugs or failed or incomplete reviews.
|
|
590
607
|
|
|
@@ -725,7 +742,7 @@ whichever is used.
|
|
|
725
742
|
| Exit | Meaning |
|
|
726
743
|
| --- | --- |
|
|
727
744
|
| `0` | Check completed; no new finding crossed the `--fail-on` level |
|
|
728
|
-
| `1` | A new finding crossed `--fail-on` |
|
|
745
|
+
| `1` | A new static finding crossed `--fail-on`, or a reviewer reported a finding (unless `--fail-on never`); JSON `exitReason` says which |
|
|
729
746
|
| `2` | No new finding crossed `--fail-on`, but a check was incomplete; or the CLI or service failed |
|
|
730
747
|
| `3` | The check was still running when `--timeout` ran out |
|
|
731
748
|
| `4` | The service refused the check, and only a person can clear it |
|
|
@@ -740,6 +757,21 @@ interrupted check prints no report. Interrupted before it was sent, nothing
|
|
|
740
757
|
reached the service; after, a service that received it keeps running it, and
|
|
741
758
|
running the same check again picks up its result.
|
|
742
759
|
|
|
760
|
+
A reviewer's finding fails the check by default, under every `--fail-on` level
|
|
761
|
+
but `never`. Review findings carry a priority (`P0` to `P3`), not a static
|
|
762
|
+
severity, so `note`, `warning` and `error` do not filter them. They fail by
|
|
763
|
+
default because a script, CI job or agent loop that reads only the exit code
|
|
764
|
+
would otherwise pass a change a reviewer flagged. The static counts in
|
|
765
|
+
`summary` (`findings`, `newFindings`) never include them, so a check the review
|
|
766
|
+
alone fails can show `summary.findings: 0` and `staticStatus: clean` and still
|
|
767
|
+
exit `1`. JSON `exitReason` names what failed it, and stderr says so in every
|
|
768
|
+
format, with the count and where the review findings are listed. Fix the real
|
|
769
|
+
ones and check again. For a wrong one, `slopcop override <rv-id> --reason "..."`
|
|
770
|
+
and check again: the reused review leaves it out and later reviews do not
|
|
771
|
+
report it. `slopcop override --reason "..."` without an id approves the tree
|
|
772
|
+
for push but does not change the exit code; `--fail-on never` keeps review
|
|
773
|
+
findings, and static ones, from exiting `1`.
|
|
774
|
+
|
|
743
775
|
An inconclusive check, one that ran but could not prove there is nothing
|
|
744
776
|
more to find, never changes the exit code or the status. Complete proof is
|
|
745
777
|
rare in static analysis, typically at a library boundary, so this is the norm
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|