@codacy/verity-cli 0.25.0 → 0.26.0-experimental.d7dfc00
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/bin/verity.js +885 -580
- package/data/skills/verity-analyze/SKILL.md +7 -1
- package/data/skills/verity-setup/SKILL.md +49 -10
- package/package.json +1 -1
|
@@ -15,7 +15,13 @@ You are running an on-demand Verity analysis. This is like a "second opinion"
|
|
|
15
15
|
|
|
16
16
|
1. Verify `.verity/standard.yaml` exists. If not: "Run `/verity-setup` first."
|
|
17
17
|
2. Verify `verity` CLI is available: `which verity`. If not: "Re-run the Verity installer: `curl -fsSL https://raw.githubusercontent.com/codacy/verity/main/install.sh | bash`"
|
|
18
|
-
3. Run `verity auth verify` to check token is valid.
|
|
18
|
+
3. Run `verity auth verify` to check the token is valid.
|
|
19
|
+
- **Valid**: proceed with the full deep review.
|
|
20
|
+
- **Fails / not authenticated**: don't stop. Tell the user Verity is in
|
|
21
|
+
**local-only mode**, so the review will run static analysis and show findings
|
|
22
|
+
but won't perform the deep (LLM) review or upload anything. To unlock the deep
|
|
23
|
+
review they can authenticate with `verity init` (or `verity auth register`).
|
|
24
|
+
Continue — `verity review` degrades to a local static-only report on its own.
|
|
19
25
|
|
|
20
26
|
---
|
|
21
27
|
|
|
@@ -310,25 +310,60 @@ Expected: single-digit findings per file, not hundreds. If you see 50+ issues fr
|
|
|
310
310
|
|
|
311
311
|
---
|
|
312
312
|
|
|
313
|
-
## Step 6:
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
## Step 6: Verify authentication
|
|
314
|
+
|
|
315
|
+
Login now happens in `verity init` (an optional, skippable step), **not** here.
|
|
316
|
+
This step only checks whether the user authenticated during init, and branches
|
|
317
|
+
the rest of setup accordingly.
|
|
318
|
+
|
|
319
|
+
**If the user asks what signing in does or why it matters, tell them:**
|
|
320
|
+
- It confirms they have **write access to this repository** — the GitHub token is
|
|
321
|
+
used **once** to verify that, then discarded. Verity never stores it.
|
|
322
|
+
- It does **not** give Verity access to their code. Code checked by the gate is
|
|
323
|
+
analyzed **in memory and discarded** — Verity never stores their code.
|
|
324
|
+
- It is **required to store and access run history** for the repo (past results,
|
|
325
|
+
trends, and shareable reports).
|
|
326
|
+
- Skipping keeps Verity fully **local-only**: the gate still runs and shows
|
|
327
|
+
findings, but nothing is uploaded.
|
|
316
328
|
|
|
317
329
|
```bash
|
|
318
|
-
verity auth
|
|
330
|
+
verity auth verify
|
|
319
331
|
```
|
|
320
332
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
- **
|
|
325
|
-
|
|
326
|
-
|
|
333
|
+
- **Token valid** (prints the project name): The user authenticated during
|
|
334
|
+
`verity init`. Continue to Step 7 — the Standard, config, and knowledge base
|
|
335
|
+
will upload.
|
|
336
|
+
- **Not authenticated / no token**: The user skipped login in `verity init` (or
|
|
337
|
+
lacks write access). Verity runs in **local-only mode** — the gate still runs on
|
|
338
|
+
every stop and surfaces static findings, but nothing uploads and no
|
|
339
|
+
history/org/repo data is stored. **Skip Steps 7 and 7b** (they require a token)
|
|
340
|
+
and continue to Step 8. Tell the user they can authenticate anytime to unlock
|
|
341
|
+
deep review, history, and shareable reports by running:
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
verity init # re-runs init; offers the auth prompt again
|
|
345
|
+
# or, directly:
|
|
346
|
+
verity auth register --project "PROJECT_NAME" --remote "GIT_REMOTE_URL"
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
Registration is **provider-gated** (GitHub today): the CLI runs a GitHub OAuth
|
|
350
|
+
**device flow** ("open https://github.com/login/device and enter code
|
|
351
|
+
WXYZ-1234"), proving the user has **write access** to the repo before the
|
|
352
|
+
service issues a token.
|
|
353
|
+
|
|
354
|
+
When authenticated, `.verity/credentials` contains `token`, `service_url`, and
|
|
355
|
+
`provider_token` — all subsequent `verity` upload commands work.
|
|
327
356
|
|
|
328
357
|
---
|
|
329
358
|
|
|
330
359
|
## Step 7: Upload Standard and config
|
|
331
360
|
|
|
361
|
+
> **Skip this entire step if the user is not authenticated** (Step 6 reported
|
|
362
|
+
> local-only mode). These commands require a token and will fail without one. The
|
|
363
|
+
> `.verity/standard.yaml` and `.codacy/codacy.config.json` you generated locally
|
|
364
|
+
> still drive the gate; they'll upload the next time the user authenticates and
|
|
365
|
+
> re-runs setup.
|
|
366
|
+
|
|
332
367
|
### Upload the Standard
|
|
333
368
|
|
|
334
369
|
The `verity` CLI handles YAML→JSON conversion automatically:
|
|
@@ -359,6 +394,10 @@ This derives a small set of descriptive memory nodes from what you already analy
|
|
|
359
394
|
|
|
360
395
|
## Step 7b: Enable telemetry (only if the user opted in at Step 3b)
|
|
361
396
|
|
|
397
|
+
> **Skip this step if the user is not authenticated** (local-only mode) — telemetry
|
|
398
|
+
> export requires the token. Note that `/usage` stays empty until they authenticate
|
|
399
|
+
> and run `verity telemetry install`.
|
|
400
|
+
|
|
362
401
|
If — and only if — the user said **Yes** in Step 3b, enable the Claude Code telemetry export
|
|
363
402
|
now (the token from Step 6 must already exist):
|
|
364
403
|
|