@brokkai/slopcop 0.0.12 → 0.0.14

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
@@ -1,6 +1,6 @@
1
1
  # SlopCop
2
2
 
3
- **Static analysis deep enough for CI, fast enough to run on every edit.**
3
+ **Hosted static analysis and local review for every change.**
4
4
 
5
5
  [![CI](https://github.com/BrokkAi/slopcop/actions/workflows/ci.yml/badge.svg)](https://github.com/BrokkAi/slopcop/actions/workflows/ci.yml)
6
6
  [![Release](https://img.shields.io/github/v/release/BrokkAi/slopcop)](https://github.com/BrokkAi/slopcop/releases/latest)
@@ -9,26 +9,50 @@
9
9
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
10
10
  [![Go](https://img.shields.io/badge/Go-1.25%2B-blue.svg)](https://go.dev/)
11
11
 
12
- `slopcop` sends one git patch, from the base commit to the working tree, to the
13
- hosted check API at <https://slopcop.com>. The service applies it, runs the
14
- hosted policy catalog plus the repository rules you selected, and returns the
15
- report: every finding with its severity, the file and line that triggered it,
16
- and the certainty behind it. The analysis is
12
+ In its default `both` mode, `slopcop` sends one git patch, from the base commit
13
+ to the working tree, to the hosted check API at <https://slopcop.com>. The
14
+ service applies it, runs the hosted policy catalog plus the repository rules you
15
+ selected, and returns the report: every finding with its severity, the file and
16
+ line that triggered it, and the certainty behind it. The analysis is
17
17
  [Bifrost](https://github.com/BrokkAi/bifrost), an open-source static analysis
18
- engine rather than a language model, so a finding traces back to a rule instead
19
- of to a guess.
18
+ engine, so a static finding traces back to a rule. Local review findings are
19
+ model judgments that need inspection.
20
20
 
21
21
  The full documentation is at <https://docs.slopcop.com>.
22
22
 
23
- There is no local analyzer and nothing to install per language: the CLI ships
24
- the change and prints what comes back, and it never reports a check as passed
25
- without the service. The command is built for agents and one-shot CI: no
26
- prompts, one request, and the analyzer's exit contract. A check never adds a
23
+ The hosted static analyzer needs no per-language install. Local review uses your
24
+ existing harness logins and Node.js with `npx`. `--mode ai` needs no SlopCop
25
+ login, enabled repository, or supported origin. Use `--mode static` for a
26
+ hosted-only check or CI without reviewer harness logins. A check never adds a
27
27
  repository; `--if-enabled` skips one the workspace has not enabled, and says it
28
28
  was skipped.
29
29
 
30
30
  ## Install
31
31
 
32
+ ### One command
33
+
34
+ On macOS or Linux, one command installs the CLI, signs it in, and adds its
35
+ agent skill and hooks. Sign in at <https://slopcop.com>, open **Agent setup**,
36
+ choose **Create install command**, and run what it gives you:
37
+
38
+ ```console
39
+ curl -fsSL https://slopcop.com/install/<your code> | sh
40
+ ```
41
+
42
+ It takes the latest release, verifies the archive against `checksums.txt`,
43
+ installs `slopcop` to `$HOME/.local/bin` and adds that directory to the shell
44
+ profile, signs in to the workspace you made the command in, and runs
45
+ `slopcop init`. The code is yours: it signs in once and expires after 30
46
+ minutes, so don't share the command. Running it again later only upgrades the
47
+ CLI, and keeps the login the machine has. `SLOPCOP_VERSION`,
48
+ `SLOPCOP_INSTALL_DIR`, and `SLOPCOP_NO_MODIFY_PATH` override its defaults.
49
+
50
+ Without a code, `curl -fsSL https://slopcop.com/install | sh` does the same and
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.
53
+
54
+ ### Other channels
55
+
32
56
  npm, PyPI, the release archive, and the shell and PowerShell installers all
33
57
  install the same release binary for macOS, Linux, and Windows on x64 and
34
58
  arm64, so `slopcop version` reports which release it came from. The Go
@@ -36,6 +60,7 @@ toolchain can build that binary from source instead.
36
60
 
37
61
  | Channel | Platforms | Needs |
38
62
  | --- | --- | --- |
63
+ | [One command](#one-command) | macOS, Linux | curl, a slopcop.com account |
39
64
  | [npm](#npm) | macOS, Linux, Windows | Node 22 or newer |
40
65
  | [PyPI](#pypi) | macOS, Linux, Windows | Python 3.9 or newer |
41
66
  | [Release archive](#release-archive) | macOS, Linux, Windows | nothing |
@@ -135,32 +160,33 @@ its version; in a clone, `make install` stamps the version from `git describe`.
135
160
 
136
161
  ## Set it up in an agent
137
162
 
138
- The binary carries the agent skill that teaches a coding agent how to run
139
- slopcop, plus an automatic check hook for Claude Code and Codex. `slopcop init`
140
- installs the skill into each well-known skills directory whose harness is
141
- present, and names what it did:
163
+ The binary carries two agent skills. `slopcop` teaches a coding agent how
164
+ to check a change. `slopcop-audit` audits code that has already landed: it
165
+ splits a commit range into module slices and checks them in parallel with
166
+ hosted checks, then triages the findings into a fix plan. The binary also
167
+ carries an automatic check hook for Claude Code and Codex. Run `slopcop init`
168
+ inside the repository. It installs both skills into the repository-local
169
+ directories below and names what it did:
142
170
 
143
171
  | Location | Harness |
144
172
  | --- | --- |
145
- | `~/.agents/skills/slopcop/` | Codex, opencode, Cursor, and other agents |
146
- | `~/.claude/skills/slopcop/` | Claude Code, opencode |
147
- | `$CODEX_HOME/skills/slopcop/`, or `~/.codex/skills/slopcop/` | Codex home |
173
+ | `.agents/skills/slopcop/`, `.agents/skills/slopcop-audit/` | Codex and other agents |
174
+ | `.claude/skills/slopcop/`, `.claude/skills/slopcop-audit/` | Claude Code and other agents |
148
175
 
149
- When none of those harness directories is present, init writes the
150
- vendor-neutral `~/.agents/skills/slopcop/` instead, which Codex, opencode,
151
- Cursor and other agents read. A fresh machine therefore has the skill before
152
- any harness has created its configuration directory.
176
+ Init adds these paths to `.git/info/exclude`, leaves tracked files alone, and
177
+ removes SlopCop's old user-level skill copies and hooks.
153
178
 
154
179
  A skill that is already there is left alone by init, so running it again is
155
- safe. `slopcop login` and every check also install the skill in those
156
- directories, rewriting one that differs from the skill bundled into the binary,
157
- so an agent follows the instructions of the slopcop version it runs. Each
158
- install records the version that wrote it, and what each file held, in
159
- `.slopcop-skill.json` in the skill folder. An update names the version it
160
- replaces, the new one and the files that changed, for example:
180
+ safe. A check updates copies already in the repository, but creates none; login
181
+ does not install the skill. An existing copy is rewritten when it differs from
182
+ the skill bundled into the binary, so an agent follows the instructions of the
183
+ slopcop version it runs. Each install records the version that wrote it, and
184
+ what each file held, in `.slopcop-skill.json` in the skill folder. An update
185
+ names the version it replaces, the new one and the files that changed, for
186
+ example:
161
187
 
162
188
  ```
163
- slopcop: updated the slopcop skill at ~/.claude/skills/slopcop from v0.0.9 to v0.0.10 (changed: SKILL.md). Reread it if you loaded the old one.
189
+ slopcop: updated the slopcop skill at .claude/skills/slopcop from v0.0.9 to v0.0.10 (changed: SKILL.md). Reread it if you loaded the old one.
164
190
  ```
165
191
 
166
192
  It removes the files the new skill no longer has. A skill with local edits,
@@ -171,16 +197,23 @@ notice says where. A check's `json` and `sarif` reports carry the same update
171
197
  (see below). `slopcop init --no-skill` skips the install and any update of
172
198
  it.
173
199
 
174
- Init also adds a `Stop` hook for each harness installed here, and leaves
175
- everything else in the file as it was:
200
+ Init also adds a static-only `Stop` hook for Claude Code and Codex, and
201
+ leaves everything else in the file as it was:
176
202
 
177
203
  | File | Harness |
178
204
  | --- | --- |
179
- | `settings.json` under `CLAUDE_CONFIG_DIR`, or `~/.claude` | Claude Code |
180
- | `hooks.json` under `CODEX_HOME`, or `~/.codex` | Codex |
181
-
182
- Codex runs a new or changed hook only once you trust it: open Codex and review
183
- it with `/hooks`. Init never writes that trust itself, and reminds you each
205
+ | `.claude/settings.local.json` in the repository | Claude Code |
206
+ | `.codex/hooks.json` in the repository | Codex |
207
+
208
+ The Claude Code and Codex settings also get a PreToolUse push gate. It
209
+ blocks `git push`, `gh pr create`, and the GitHub MCP tools that push files or
210
+ open a pull request until HEAD's tree has a passing check or valid override.
211
+ Grok runs the Claude Code gate too, in a folder it trusts. Codex runs its gate
212
+ only once you trust it with `/hooks`.
213
+
214
+ Codex reads the repository's `.codex/hooks.json` only once you trust the
215
+ project in Codex, and runs a new or changed hook only once you trust it too:
216
+ open Codex in the repository and review it with `/hooks`. Init never writes that trust itself, and reminds you each
184
217
  time it runs, since Codex says nothing of a hook it skips. The hook stays the
185
218
  same from one release to the next, so an update does not ask for it again.
186
219
 
@@ -232,6 +265,34 @@ The hook is dormant in a repository until it is enabled in the workspace. Run
232
265
  check. The hook then checks what an agent writes and hands findings back; it
233
266
  never adds a repository and sends nothing for one that is not active.
234
267
 
268
+ ### Managed rollout
269
+
270
+ An administrator can deploy the `Stop` hook through managed configuration
271
+ instead of having each user run `slopcop init`. Device management must still
272
+ put `slopcop` on `PATH`, and each user still signs in.
273
+
274
+ - **Claude Code:** add the handler `slopcop init` writes to the `hooks` key of
275
+ the managed settings (`managed-settings.json` or a file in
276
+ `managed-settings.d/`): a `Stop` group with `"type": "command"`,
277
+ `"command": "slopcop hook claude || true"`, `"timeout": 720` and
278
+ `"statusMessage": "Checking the change with SlopCop"`. Under
279
+ `allowManagedHooksOnly` the hooks init writes to the repository's
280
+ `.claude/settings.local.json`, the push gate included, are blocked, so the
281
+ managed hook is the only one that runs. Claude Code runs
282
+ an identical handler from several settings files once.
283
+ - **Codex:** define the `Stop` hook under `[hooks]` in the managed
284
+ `requirements.toml` (`command = "slopcop hook codex || true"`,
285
+ `command_windows = "slopcop hook codex || exit /b 0"`, `timeout = 720`).
286
+ Managed hooks are trusted by policy, so users skip `/hooks`. Codex installs
287
+ nothing from `managed_dir`.
288
+
289
+ To keep the push gate, deploy its `PreToolUse` handler the same way
290
+ (`"command": "slopcop gate --hook claude"`, or `slopcop gate --hook codex`,
291
+ with no `|| true`); the Managed rollout page has both.
292
+
293
+ Users then run `slopcop init --no-hooks` to install only the skill. See
294
+ [Managed rollout](https://docs.slopcop.com/agents/managed-rollout/).
295
+
235
296
  ## Sign in
236
297
 
237
298
  ```console
@@ -239,6 +300,9 @@ slopcop login # browser device flow
239
300
  slopcop login --token "$SLOPCOP_TOKEN" # existing credential, for CI and agents
240
301
  ```
241
302
 
303
+ The [one-command install](#one-command) signs in for you: its code is a login
304
+ already approved in your browser, so it needs neither.
305
+
242
306
  The browser flow prints a link that opens the approval page with the code
243
307
  filled in, plus the page and code to type in instead, and stores the token once
244
308
  the login is approved. Approve only if the page shows the code your terminal
@@ -300,19 +364,19 @@ one that is already active is left alone. An agent runs with your login and
300
364
  the service cannot tell it from you, so adding a repository stays a step you
301
365
  take yourself.
302
366
 
303
- A check never adds a repository. A check of one the workspace has not added
304
- exits `4` with `repository_not_enabled` and sends nothing; `status` shows the
305
- same state, and a check that is not at a terminal asks nothing. Once a person
306
- has approved adding one, `check --add-repository --workspace <name|id>`
307
- carries that approval without a terminal; the flag needs `--workspace` (the
308
- flag itself, not `$SLOPCOP_WORKSPACE`), so an approval given for one workspace
309
- cannot add the repository to the one the login happens to point at. The flag
310
- changes nothing for a repository already in that workspace. `slopcop enable`
311
- says `added owner/name to "Workspace"` on stderr, and `json` reports
312
- `"repositoryAdded": true`. Deleting repositories, archiving workspaces,
313
- members, credits and repository settings stay in the web app. `enable` exits
314
- with its first check's result; the other account commands exit `0` on success
315
- and `2` with the service's message and remedy otherwise, as `ignore` does.
367
+ The static half never adds a repository. A check of one the workspace has not
368
+ added exits `4` with `repository_not_enabled` and sends nothing; `status` shows
369
+ the same state, and a check that is not at a terminal asks nothing. Once a
370
+ person has approved adding one, `check --add-repository --workspace <name|id>`
371
+ carries that approval without a terminal; the flag needs `--workspace` (the flag
372
+ itself, not `$SLOPCOP_WORKSPACE`), so an approval given for one workspace cannot
373
+ add the repository to the one the login happens to point at. The flag changes
374
+ nothing for a repository already in that workspace. `slopcop enable` says `added
375
+ owner/name to "Workspace"` on stderr, and `json` reports `"repositoryAdded":
376
+ true`. Deleting repositories, archiving workspaces, members, credits and
377
+ repository settings stay in the web app. `enable` exits with its first check's
378
+ result; the other account commands exit `0` on success and `2` with the
379
+ service's message and remedy otherwise, as `ignore` does.
316
380
 
317
381
  ## Check
318
382
 
@@ -330,7 +394,12 @@ pushed, the CLI uses the merge base with `origin/HEAD` instead, so a check
330
394
  right after a push still covers the branch. `--base REV` names the branch the
331
395
  change started from and, like `git diff REV...HEAD`, uses the merge base of
332
396
  `REV` and `HEAD`, so commits that landed on `REV` after the branch point are not
333
- sent as reverse edits. `--base-exact REV` diffs against `REV` itself. The
397
+ sent as reverse edits. A branch stacked on `REV` that has since merged a newer
398
+ `origin/HEAD`, or `REV`'s own upstream, moves the base to that line's merge base
399
+ once it holds `REV`'s, as after `REV` landed, so the merged-in commits are not
400
+ sent either. When the lines have diverged, no fetchable commit holds both, so
401
+ the base stays and the CLI warns that the patch carries the merged-in commits.
402
+ `--base-exact REV` diffs against `REV` itself. The
334
403
  service must already have the base commit in its clone; a missing one comes back as the service's
335
404
  `base_not_found` message and remedy. The CLI then asks origin for its default
336
405
  branch (`git ls-remote`, no prompt, 10 second limit) and adds a line when the
@@ -338,22 +407,27 @@ clone explains the failure: origin's default branch was renamed and
338
407
  `origin/HEAD` still names the old one, or the base is not on origin's default
339
408
  branch.
340
409
 
341
- Every run sends one check request, even when the working tree matches the base
342
- and the patch is empty. A clean result or a failure always comes from the
343
- service. A report for an empty patch comes with a note on stderr that suggests
344
- `--base`, and `json` adds `"emptyChange": true` (`sarif`:
345
- `properties["slopcop.emptyChange"]`): a clean result then means nothing
346
- changed was checked.
410
+ Every run with a static half sends one check request, even when the working tree
411
+ matches the base and the patch is empty. The static result comes from the
412
+ service; local review runs separately. A report for an empty patch comes with a
413
+ note on stderr that suggests `--base`, and `json` adds `"emptyChange": true`
414
+ (`sarif`: `properties["slopcop.emptyChange"]`): a clean result then means
415
+ nothing changed was checked.
347
416
 
348
417
  Flags:
349
418
 
350
419
  | Flag | Meaning |
351
420
  | --- | --- |
421
+ | `--mode both\|static\|ai` | both halves (the default where reviewers are configured, outside CI), static only (the default otherwise), or review only |
422
+ | `--static`, `--ai` | shortcuts for the corresponding mode |
423
+ | `--intent TEXT` | user request when no session transcript is found |
424
+ | `--review-timeout DURATION` | local review timeout (default `20m`) |
352
425
  | `--root PATH` | repository to check (default `.`) |
353
426
  | `--base REV` | branch or revision the change started from; the base is its merge base with `HEAD` |
354
427
  | `--base-exact REV` | exact base commit or revision, without a merge base |
355
428
  | `--format human\|json\|sarif` | report format (default `human`) |
356
429
  | `--fail-on never\|finding\|note\|warning\|error` | exit-1 threshold for new findings (default `finding`) |
430
+ | `--certainty definite\|all` | report and fail on only `definite` findings (default), or on `possible` and `heuristic` ones too |
357
431
  | `--policy PATH` | repository-relative `.rqlp` file to evaluate (repeatable) |
358
432
  | `--no-policy-discovery` | skip `.slopcop/policies` rules |
359
433
  | `--timeout DURATION` | how long to wait for the result (default `10m`) |
@@ -362,16 +436,52 @@ Flags:
362
436
  | `--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 |
363
437
  | `--verbose` | print the resolved request to stderr, and name each inconclusive check in `human` |
364
438
 
439
+ ### Modes and local review
440
+
441
+ `slopcop check` runs hosted static analysis and local LLM review concurrently
442
+ by default. Use `--mode static` or `--static` for only the hosted check; use
443
+ `--mode ai` or `--ai` for only local review. A single captured snapshot
444
+ includes committed, uncommitted, and untracked work, except ignored files.
445
+ Reviewers read `git diff <baseTree> <snapshotTree>` themselves.
446
+
447
+ Reviewers, in priority order, are GPT Terra (`terra`) and GPT Sol (`sol`) through
448
+ Codex ACP, DeepSeek Flash (`flash`) through dsh ACP, and Claude Haiku (`haiku`)
449
+ through Claude ACP. Each uses the newest model of its family at high effort.
450
+ `slopcop init` probes each family once when reviewers are not configured and
451
+ mode is not static, then saves the first two that work (or one). Configured
452
+ reviewers are left alone; unset `review.reviewers` and run init to pick again.
453
+ `slopcop init --no-reviewers` skips probing. A check runs exactly the configured
454
+ reviewers and fails with exit `2` if one cannot run. Set the ordered list (1–4
455
+ entries; duplicates allowed) with `slopcop config set review.reviewers terra,sol`.
456
+ Set `review.timeout` (default `20m`) or `mode` with `slopcop config set`;
457
+ adapter commands are under `review.adapters.<codex|dsh|claude>.command`.
458
+ The prompt carries the captured diff. Reviewers read repository content,
459
+ which is untrusted. Claude and DeepSeek reviewers may only read and search
460
+ files; Slopcop refuses their requests to run commands or change files. Codex
461
+ reviewers run in Codex's read-only sandbox.
462
+ CI normally uses `--mode static`.
463
+
464
+ Review state and logs are under `<git-dir>/slopcop/`. A complete review is
465
+ reused when nothing relevant changed. A nonempty check with a clean review
466
+ and a completed static result with no new findings at or above
467
+ `gate.blockOn` (default `error`) records `refs/slopcop/reviewed/<tree>`.
468
+ Warnings and notes are advisory for push approval, though they still exit `1`
469
+ by default. The Claude Code gate checks HEAD's tree, so
470
+ after checking a dirty tree, commit exactly that state. For demonstrably wrong
471
+ complete review findings, `slopcop override --reason "..."` records acceptance
472
+ when the static half has no findings at or above the push level
473
+ and completed, was skipped, or did not run. Never override real bugs or failed or incomplete reviews.
474
+
365
475
  ### What is sent
366
476
 
367
- One git patch from the base commit to the working tree. An empty change is
368
- sent as an empty patch, not filtered out. The patch carries committed but
369
- unpushed work, unstaged edits, untracked files, deletions, renames, mode
370
- changes, and binary content. Git-ignored files stay out, except selected
371
- `.slopcop/policies` rules, which must travel because the service evaluates them
372
- from the patched checkout.
477
+ In modes with the static half, the CLI sends one git patch from the base commit
478
+ to the working tree. An empty change is sent as an empty patch, not filtered
479
+ out. The patch carries committed but unpushed work, unstaged edits, untracked
480
+ files, deletions, renames, mode changes, and binary content. Git-ignored files
481
+ stay out, except selected `.slopcop/policies` rules, which must travel because
482
+ the service evaluates them from the patched checkout.
373
483
 
374
- A check run by a Claude Code or Codex agent also sends which models wrote the
484
+ A check run by a Claude Code, Codex or OpenCode agent also sends which models wrote the
375
485
  change, so the service can tie each finding to the model that wrote its file.
376
486
  The CLI finds the agent's session from its environment and reads that
377
487
  session's own record:
@@ -383,25 +493,30 @@ session's own record:
383
493
  - **Codex:** `CODEX_THREAD_ID` names the rollout under `~/.codex/sessions` (or
384
494
  `$CODEX_HOME/sessions`). Each completed file change gives the files, and its
385
495
  turn gives the model and effort. A move counts as writing its destination.
386
-
387
- It reads only those fields, never the conversation, tool input or file
388
- contents. What it sends is the harness, its version, the session id as an
389
- opaque identifier, and each model and effort with the repository-relative
390
- files it wrote. A check run outside an agent session sends none of this. It
391
- is analytics only, asserted by the client, and never decides a check.
392
- `--verbose` prints it.
496
+ - **OpenCode:** `OPENCODE_SESSION_ID` names the session in OpenCode's
497
+ database, `~/.local/share/opencode/opencode.db` (or `$OPENCODE_DB`),
498
+ subagents included. Each completed edit, write or patch gives the files,
499
+ and its step gives the model and its variant as the effort.
500
+
501
+ For static attribution, it reads only those fields, never the conversation, tool
502
+ input, or file contents from the session. What it sends is the harness, its
503
+ version, the session id as an opaque identifier, and each model and effort with
504
+ the repository-relative files it wrote. A check run outside an agent session
505
+ sends none of this. It is analytics only, asserted by the client, and never
506
+ decides a check. `--verbose` prints it.
393
507
 
394
508
  The service owns the limits on what a check accepts. When a change is too
395
509
  large or touches too many files, the service's `payload_too_large` response is
396
510
  printed verbatim; the CLI does not impose its own limits.
397
511
 
398
- Every check also runs the hosted catalog. Rules under
512
+ Every check with a static half also runs the hosted catalog. Rules under
399
513
  `.slopcop/policies/**/*.rqlp` are added automatically unless
400
514
  `--no-policy-discovery` is set.
401
515
 
402
516
  ### New and pre-existing findings
403
517
 
404
- A check fails only on findings the change introduced or touched: the service
518
+ The static half fails only on findings the change introduced or touched:
519
+ the service
405
520
  marks a finding new when it is in a file the change writes and its lines meet a
406
521
  line the change added, or the line beside one it removed. Findings that were
407
522
  already in the code are counted (`summary.existingFindings`, and `N already in
@@ -562,15 +677,14 @@ Each finding in the response carries an `id`; a service from before findings
562
677
  could be ignored omits it.
563
678
 
564
679
  `slopcop ignore <id>` calls `POST <service>/v1/ignore` with the same bearer
565
- token and `{"findingId": "<id>"}`, and gets back
566
- `{"findingId": "<id>", "status": "ignored"}`. Failures use the same closed
567
- contract, including `finding_not_found`. `slopcop unignore <id>` calls
568
- `POST <service>/v1/unignore` the same way and gets back
569
- `{"findingId": "<id>", "status": "unignored"}`, also when the finding was not
570
- ignored.
571
- `slopcop ignored` calls `GET <service>/v1/ignores?repoUrl=<url>&page=<n>`
572
- (`page` zero-based) and gets back `repository`, `total`, `page`, `pageSize` and
573
- `ignores`, newest first; see the [API reference](docs/src/content/docs/reference/api.md).
680
+ token and `{"findingId": "<id>"}`, and gets back `{"findingId": "<id>",
681
+ "status": "ignored"}`. Failures use the same closed contract, including
682
+ `finding_not_found`. `slopcop unignore <id>` calls `POST <service>/v1/unignore`
683
+ the same way and gets back `{"findingId": "<id>", "status": "unignored"}`, also
684
+ when the finding was not ignored. `slopcop ignored` calls `GET
685
+ <service>/v1/ignores?repoUrl=<url>&page=<n>` (`page` zero-based) and gets back
686
+ `repository`, `total`, `page`, `pageSize` and `ignores`, newest first; see the
687
+ [API reference](docs/src/content/docs/reference/api.md).
574
688
 
575
689
  The account commands use the same bearer token. `GET <service>/v1/whoami`
576
690
  answers `account`, `workspace` (`id`, `name`, `kind`, `role`, `current`),
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.12",
3
+ "version": "0.0.14",
4
4
  "description": "Static analysis for coding agents and CI: check a change through the hosted SlopCop API",
5
5
  "keywords": [
6
6
  "agents",