@brokkai/slopcop 0.0.16 → 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 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. The service URL defaults to `https://slopcop.com`; `--service`,
310
- `$SLOPCOP_SERVICE`, or a stored value override it.
309
+ printed.
311
310
 
312
- The credential lives in `slopcop/config.json` under the user config directory
313
- and is written owner-only. `slopcop logout` clears it.
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 value |
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
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.16",
3
+ "version": "0.0.17",
4
4
  "description": "Static analysis for coding agents and CI: check a change through the hosted SlopCop API",
5
5
  "keywords": [
6
6
  "agents",