@codacy/verity-cli 0.28.0 → 0.28.1-experimental.5ec7373
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 +6 -1
- package/bin/verity.js +6287 -3313
- package/data/skills/verity-analyze/SKILL.md +2 -1
- package/data/skills/verity-setup/SKILL.md +30 -19
- package/package.json +1 -5
|
@@ -20,7 +20,8 @@ You are running an on-demand Verity analysis. This is like a "second opinion"
|
|
|
20
20
|
- **Fails / not authenticated**: don't stop. Tell the user Verity is in
|
|
21
21
|
**local-only mode**, so the review will run static analysis and show findings
|
|
22
22
|
but won't perform the deep (LLM) review or upload anything. To unlock the deep
|
|
23
|
-
review they can authenticate with `verity
|
|
23
|
+
review they can authenticate with `verity login` (one login covers every
|
|
24
|
+
repository they can write to).
|
|
24
25
|
Continue — `verity review` degrades to a local static-only report on its own.
|
|
25
26
|
|
|
26
27
|
---
|
|
@@ -341,20 +341,26 @@ verity auth verify
|
|
|
341
341
|
deep review, history, and shareable reports by running:
|
|
342
342
|
|
|
343
343
|
```bash
|
|
344
|
-
verity
|
|
345
|
-
# or
|
|
346
|
-
verity auth register --project "PROJECT_NAME" --remote "GIT_REMOTE_URL"
|
|
344
|
+
verity login # one GitHub login covers every repo you can write to
|
|
345
|
+
# or: verity init # re-runs init; offers the same auth prompt
|
|
347
346
|
```
|
|
348
347
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
348
|
+
Login is **provider-gated** (GitHub today): the CLI runs a GitHub App **device
|
|
349
|
+
flow** ("open https://github.com/login/device and enter code WXYZ-1234"),
|
|
350
|
+
proving the user has **write access** before the service issues a token. The
|
|
351
|
+
GitHub App requests only read-only permissions (Metadata + Email addresses);
|
|
352
|
+
the provider token is used once server-side to sweep the repositories the user
|
|
353
|
+
can write to, and is never persisted.
|
|
355
354
|
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
**One login covers every repository** the user can write to, not just this one.
|
|
356
|
+
Re-running `verity login` is also how access to newly-granted repos is picked
|
|
357
|
+
up, and how an expired verification is restored. If login reports this
|
|
358
|
+
repository is **not covered**, the Verity GitHub App has not been granted
|
|
359
|
+
access to it — grant it, then re-run `verity login`.
|
|
360
|
+
|
|
361
|
+
When authenticated, the user's `token` and `service_url` are stored in the single
|
|
362
|
+
global credentials file `~/.verity/credentials` — nothing secret is written into
|
|
363
|
+
the repo. All subsequent `verity` upload commands work.
|
|
358
364
|
|
|
359
365
|
---
|
|
360
366
|
|
|
@@ -407,10 +413,12 @@ now (the token from Step 6 must already exist):
|
|
|
407
413
|
verity telemetry install
|
|
408
414
|
```
|
|
409
415
|
|
|
410
|
-
This writes the `OTEL_*` env block
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
416
|
+
This writes the `OTEL_*` env block plus an `otelHeadersHelper` to `.claude/settings.local.json`
|
|
417
|
+
and points Claude Code's OpenTelemetry exporter at Verity's OTLP endpoint. No token is written to
|
|
418
|
+
the file — the helper (`verity telemetry headers`) resolves the project token from
|
|
419
|
+
`~/.verity/credentials` at session start, so the secret never lands in the repo. Tell the user it
|
|
420
|
+
takes effect on their **next** Claude Code session, that first metrics appear within ~60s of
|
|
421
|
+
activity, and point them at `/usage`.
|
|
414
422
|
|
|
415
423
|
If the user declined, skip this step and note that `/usage` will stay empty until they run
|
|
416
424
|
`verity telemetry install`.
|
|
@@ -534,7 +542,6 @@ Add these entries to `.gitignore` (create it if it doesn't exist, append if it d
|
|
|
534
542
|
|
|
535
543
|
```
|
|
536
544
|
# Verity
|
|
537
|
-
.verity/credentials
|
|
538
545
|
.verity/.cache/
|
|
539
546
|
.verity/.logs/
|
|
540
547
|
.verity/.last-analysis
|
|
@@ -546,14 +553,18 @@ Add these entries to `.gitignore` (create it if it doesn't exist, append if it d
|
|
|
546
553
|
.claude/settings.local.json
|
|
547
554
|
```
|
|
548
555
|
|
|
549
|
-
`.claude/settings.local.json`
|
|
550
|
-
|
|
556
|
+
`.claude/settings.local.json` is machine-local Claude Code config (telemetry endpoint + an
|
|
557
|
+
`otelHeadersHelper` reference — no token). `verity telemetry install` adds this entry
|
|
558
|
+
automatically.
|
|
551
559
|
|
|
552
560
|
Do NOT gitignore `.verity/standard.yaml` or `VERITY.md` — those should be committed.
|
|
553
561
|
|
|
554
562
|
**Commit the knowledge graph, but not its log.** The nodes under `.verity/memory/<domain>/` and `.verity/memory/index.md` are durable project knowledge meant to be committed and reviewed. But `.verity/memory/log.md` is an append-only, per-run timestamped activity log — it churns on every analysis and carries no reviewable content, so it is gitignored above. If a project already committed it, untrack it once with `git rm --cached .verity/memory/log.md`.
|
|
555
563
|
|
|
556
|
-
|
|
564
|
+
**No secrets live in the repo anymore.** The project token is stored only in the single global
|
|
565
|
+
file `~/.verity/credentials` (outside the repo, keyed by git remote), so there is no
|
|
566
|
+
`.verity/credentials` to ignore. If an older install left one behind, the CLI folds it into the
|
|
567
|
+
global store and removes it automatically on the next `verity` command.
|
|
557
568
|
|
|
558
569
|
---
|
|
559
570
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/verity-cli",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.1-experimental.5ec7373",
|
|
4
4
|
"description": "CLI for Verity quality gate service",
|
|
5
5
|
"homepage": "https://verity.md",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/codacy/verity.git"
|
|
9
|
-
},
|
|
10
6
|
"bugs": {
|
|
11
7
|
"url": "https://github.com/codacy/verity/issues"
|
|
12
8
|
},
|