@brokkai/slopcop 0.0.20 → 0.0.21

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 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 run `slopcop enable` in each repository you want checked.
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
 
@@ -363,7 +365,7 @@ unless this machine maps the repository to another of your workspaces.
363
365
  ```console
364
366
  slopcop whoami # account, this login's workspace, its plan, the service URL
365
367
  slopcop status # this checkout's repository, and whether the workspace checks it
366
- slopcop enable # add this checkout's repository to the workspace, at a terminal
368
+ slopcop enable # optional: add this checkout's repository now, and say which workspace
367
369
  slopcop workspace list # the account's workspaces; * marks this login's
368
370
  slopcop workspace map "Acme team" # check this checkout's repository there from now on, at a terminal
369
371
  slopcop workspace unmap # go back to the login's workspace for this repository
@@ -408,23 +410,25 @@ has the repository; the check still runs.
408
410
  Names match without regard to case; when two workspaces share a name, or two
409
411
  providers a repository name, pass the id the listing prints.
410
412
 
411
- `slopcop enable`, run inside a checkout at a terminal, adds the repository the
412
- `origin` remote names to the workspace that checks and bills it, and runs its
413
- first check. It names the workspace and what adding the repository costs, asks
414
- you to type the repository's `owner/name`, and refuses when stdin is not a
415
- terminal. A repository that is already added but disabled is enabled again;
416
- one that is already active is left alone. Turning a disabled repository back
417
- on stays a step you take yourself.
418
-
419
- When your account has more than one workspace and the repository is in neither
420
- the login's nor the one `--workspace` names, `enable` first lists the
421
- workspaces by number, marking the login's own and any that already have the
422
- repository, and asks which one should check and bill it. Before it adds a
423
- repository another of your workspaces already has, it says so, since both would
424
- then check and bill it. After enabling in a workspace other than the login's it
425
- reminds you that a plain check still runs in the login's workspace, and would
426
- add the repository there: pass `--workspace`, or set `SLOPCOP_WORKSPACE`, to
427
- check where you enabled it.
413
+ `slopcop enable` is optional. Run inside a checkout, it adds the repository the
414
+ `origin` remote names to the workspace that checks and bills it, runs its first
415
+ check, and maps this machine's checkouts of it to that workspace. It does not
416
+ ask: the workspace is the one `--workspace` names, else the one the checkout is
417
+ mapped to, else the login's, and it says which one on stderr along with how to
418
+ undo it:
419
+
420
+ ```console
421
+ $ slopcop enable
422
+ slopcop: added Acme/widgets to "Acme team"; your agent's changes here are checked there from now on.
423
+ 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".
424
+ ```
425
+
426
+ An account with one workspace gets the first line alone, ending with the
427
+ `slopcop repo disable owner/name` that undoes it. Before it adds a repository another of your
428
+ workspaces already has, it says so, since both would then check and bill it.
429
+ A repository that is already active is left alone. One that someone disabled
430
+ is enabled again, but only at a terminal: an agent running with your login does
431
+ not undo that choice.
428
432
 
429
433
  A check does not need `enable` first: a check of a repository the workspace has
430
434
  never added adds it to the workspace the check runs in (the login's, or the one
@@ -432,8 +436,7 @@ never added adds it to the workspace the check runs in (the login's, or the one
432
436
  stopped to ask. A check of one the workspace has disabled exits `4` with
433
437
  `repository_disabled`, and one past the active limit with
434
438
  `active_repository_limit_reached`; these stop before the local reviewers start,
435
- so the report has no review. A check that adds a repository, like `slopcop
436
- enable`, says `added owner/name to "Workspace"` on stderr, and `json` reports
439
+ so the report has no review. A check that adds a repository says `added owner/name to "Workspace"` on stderr, and `json` reports
437
440
  `"repositoryAdded": true` and `addedToWorkspace`: the workspace, how it was
438
441
  chosen, and how to check the repository in another one instead. `--add-repository` is no longer needed; it is still
439
442
  accepted. Deleting repositories, archiving workspaces, members, credits and
@@ -510,8 +513,11 @@ or the check's exit code. Check notices, including partial comparison notices,
510
513
  appear as notes and do not make analysis incomplete. To select only
511
514
  similarity, pass `--policy-id slopcop.similarity`.
512
515
 
513
- For this check, function source from the change is sent to third-party
514
- embedding and model providers used by the hosted service.
516
+ This is the one hosted check that is not rule-based: the hosted service sends
517
+ function source to third-party providers. An embedding provider receives the
518
+ functions the change adds or edits and, to index the repository, the functions
519
+ in the rest of its source files, not only the ones the change touches. A model
520
+ receives each changed function with the existing functions closest to it.
515
521
 
516
522
  A finding of the hosted `slopcop.dependencies.known-vulnerability` check is a
517
523
  known-vulnerable dependency version the change brings in. Its location is the
@@ -577,7 +583,9 @@ files; Slopcop refuses their requests to run commands or change files. Codex
577
583
  reviewers run in Codex's read-only sandbox.
578
584
  CI normally uses `--mode static`.
579
585
 
580
- Review state and logs are under `<git-dir>/slopcop/`. A complete review is
586
+ Review state and logs are under `<git-dir>/slopcop/`. `slopcop review show
587
+ [--format human|json|sarif]` prints the latest review again, rebuilding each
588
+ reviewer's reply from its log, without running a reviewer. A complete review is
581
589
  reused when nothing relevant changed. A nonempty check with a clean review
582
590
  and a completed static result with no new findings at or above
583
591
  `gate.blockOn` (default `error`) records `refs/slopcop/reviewed/<tree>`.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brokkai/slopcop",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Static analysis for coding agents and CI: check a change through the hosted SlopCop API",
5
5
  "keywords": [
6
6
  "agents",