@brokkai/slopcop 0.0.13 → 0.0.15
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 +163 -81
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SlopCop
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Hosted static analysis and local review for every change.**
|
|
4
4
|
|
|
5
5
|
[](https://github.com/BrokkAi/slopcop/actions/workflows/ci.yml)
|
|
6
6
|
[](https://github.com/BrokkAi/slopcop/releases/latest)
|
|
@@ -9,26 +9,50 @@
|
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
[](https://go.dev/)
|
|
11
11
|
|
|
12
|
-
`slopcop` sends one git patch, from the base commit
|
|
13
|
-
hosted check API at <https://slopcop.com>. The
|
|
14
|
-
hosted policy catalog plus the repository rules you
|
|
15
|
-
report: every finding with its severity, the file and
|
|
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
|
|
19
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
|
146
|
-
|
|
|
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
|
-
|
|
150
|
-
|
|
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.
|
|
156
|
-
|
|
157
|
-
so an agent follows the instructions of the
|
|
158
|
-
install records the version that wrote it, and
|
|
159
|
-
`.slopcop-skill.json` in the skill folder. An update
|
|
160
|
-
replaces, the new one and the files that changed, for
|
|
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
|
|
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
|
|
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
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
|
|
@@ -243,8 +276,9 @@ put `slopcop` on `PATH`, and each user still signs in.
|
|
|
243
276
|
`managed-settings.d/`): a `Stop` group with `"type": "command"`,
|
|
244
277
|
`"command": "slopcop hook claude || true"`, `"timeout": 720` and
|
|
245
278
|
`"statusMessage": "Checking the change with SlopCop"`. Under
|
|
246
|
-
`allowManagedHooksOnly` the
|
|
247
|
-
|
|
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
|
|
248
282
|
an identical handler from several settings files once.
|
|
249
283
|
- **Codex:** define the `Stop` hook under `[hooks]` in the managed
|
|
250
284
|
`requirements.toml` (`command = "slopcop hook codex || true"`,
|
|
@@ -252,6 +286,10 @@ put `slopcop` on `PATH`, and each user still signs in.
|
|
|
252
286
|
Managed hooks are trusted by policy, so users skip `/hooks`. Codex installs
|
|
253
287
|
nothing from `managed_dir`.
|
|
254
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
|
+
|
|
255
293
|
Users then run `slopcop init --no-hooks` to install only the skill. See
|
|
256
294
|
[Managed rollout](https://docs.slopcop.com/agents/managed-rollout/).
|
|
257
295
|
|
|
@@ -262,6 +300,9 @@ slopcop login # browser device flow
|
|
|
262
300
|
slopcop login --token "$SLOPCOP_TOKEN" # existing credential, for CI and agents
|
|
263
301
|
```
|
|
264
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
|
+
|
|
265
306
|
The browser flow prints a link that opens the approval page with the code
|
|
266
307
|
filled in, plus the page and code to type in instead, and stores the token once
|
|
267
308
|
the login is approved. Approve only if the page shows the code your terminal
|
|
@@ -323,19 +364,19 @@ one that is already active is left alone. An agent runs with your login and
|
|
|
323
364
|
the service cannot tell it from you, so adding a repository stays a step you
|
|
324
365
|
take yourself.
|
|
325
366
|
|
|
326
|
-
|
|
327
|
-
exits `4` with `repository_not_enabled` and sends nothing; `status` shows
|
|
328
|
-
same state, and a check that is not at a terminal asks nothing. Once a
|
|
329
|
-
has approved adding one, `check --add-repository --workspace <name|id>`
|
|
330
|
-
carries that approval without a terminal; the flag needs `--workspace` (the
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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.
|
|
339
380
|
|
|
340
381
|
## Check
|
|
341
382
|
|
|
@@ -366,22 +407,27 @@ clone explains the failure: origin's default branch was renamed and
|
|
|
366
407
|
`origin/HEAD` still names the old one, or the base is not on origin's default
|
|
367
408
|
branch.
|
|
368
409
|
|
|
369
|
-
Every run sends one check request, even when the working tree
|
|
370
|
-
and the patch is empty.
|
|
371
|
-
service. A report for an empty patch comes with a
|
|
372
|
-
`--base`, and `json` adds `"emptyChange": true`
|
|
373
|
-
`properties["slopcop.emptyChange"]`): a clean result then means
|
|
374
|
-
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.
|
|
375
416
|
|
|
376
417
|
Flags:
|
|
377
418
|
|
|
378
419
|
| Flag | Meaning |
|
|
379
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`) |
|
|
380
425
|
| `--root PATH` | repository to check (default `.`) |
|
|
381
426
|
| `--base REV` | branch or revision the change started from; the base is its merge base with `HEAD` |
|
|
382
427
|
| `--base-exact REV` | exact base commit or revision, without a merge base |
|
|
383
428
|
| `--format human\|json\|sarif` | report format (default `human`) |
|
|
384
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 |
|
|
385
431
|
| `--policy PATH` | repository-relative `.rqlp` file to evaluate (repeatable) |
|
|
386
432
|
| `--no-policy-discovery` | skip `.slopcop/policies` rules |
|
|
387
433
|
| `--timeout DURATION` | how long to wait for the result (default `10m`) |
|
|
@@ -390,14 +436,50 @@ Flags:
|
|
|
390
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 |
|
|
391
437
|
| `--verbose` | print the resolved request to stderr, and name each inconclusive check in `human` |
|
|
392
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
|
+
|
|
393
475
|
### What is sent
|
|
394
476
|
|
|
395
|
-
|
|
396
|
-
sent as an empty patch, not filtered
|
|
397
|
-
unpushed work, unstaged edits, untracked
|
|
398
|
-
changes, and binary content. Git-ignored files
|
|
399
|
-
`.slopcop/policies` rules, which must travel because
|
|
400
|
-
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.
|
|
401
483
|
|
|
402
484
|
A check run by a Claude Code, Codex or OpenCode agent also sends which models wrote the
|
|
403
485
|
change, so the service can tie each finding to the model that wrote its file.
|
|
@@ -416,24 +498,25 @@ session's own record:
|
|
|
416
498
|
subagents included. Each completed edit, write or patch gives the files,
|
|
417
499
|
and its step gives the model and its variant as the effort.
|
|
418
500
|
|
|
419
|
-
|
|
420
|
-
contents. What it sends is the harness, its
|
|
421
|
-
opaque identifier, and each model and effort with
|
|
422
|
-
files it wrote. A check run outside an agent session
|
|
423
|
-
is analytics only, asserted by the client, and never
|
|
424
|
-
`--verbose` prints it.
|
|
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.
|
|
425
507
|
|
|
426
508
|
The service owns the limits on what a check accepts. When a change is too
|
|
427
509
|
large or touches too many files, the service's `payload_too_large` response is
|
|
428
510
|
printed verbatim; the CLI does not impose its own limits.
|
|
429
511
|
|
|
430
|
-
Every check also runs the hosted catalog. Rules under
|
|
512
|
+
Every check with a static half also runs the hosted catalog. Rules under
|
|
431
513
|
`.slopcop/policies/**/*.rqlp` are added automatically unless
|
|
432
514
|
`--no-policy-discovery` is set.
|
|
433
515
|
|
|
434
516
|
### New and pre-existing findings
|
|
435
517
|
|
|
436
|
-
|
|
518
|
+
The static half fails only on findings the change introduced or touched:
|
|
519
|
+
the service
|
|
437
520
|
marks a finding new when it is in a file the change writes and its lines meet a
|
|
438
521
|
line the change added, or the line beside one it removed. Findings that were
|
|
439
522
|
already in the code are counted (`summary.existingFindings`, and `N already in
|
|
@@ -594,15 +677,14 @@ Each finding in the response carries an `id`; a service from before findings
|
|
|
594
677
|
could be ignored omits it.
|
|
595
678
|
|
|
596
679
|
`slopcop ignore <id>` calls `POST <service>/v1/ignore` with the same bearer
|
|
597
|
-
token and `{"findingId": "<id>"}`, and gets back
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
`
|
|
604
|
-
(
|
|
605
|
-
`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).
|
|
606
688
|
|
|
607
689
|
The account commands use the same bearer token. `GET <service>/v1/whoami`
|
|
608
690
|
answers `account`, `workspace` (`id`, `name`, `kind`, `role`, `current`),
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|