@codacy/verity-cli 0.28.0 → 0.28.1-experimental.39013ce

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.
@@ -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 init` (or `verity auth register`).
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 init # re-runs init; offers the auth prompt again
345
- # or, directly:
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
- Registration is **provider-gated** (GitHub today): the CLI runs a GitHub App
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. The GitHub App requests only read-only permissions
353
- (Metadata + Email addresses); the resulting token is used once server-side to
354
- check repo access and is never persisted.
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
- When authenticated, `.verity/credentials` contains `token` and `service_url`
357
- all subsequent `verity` upload commands work.
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 to the gitignored `.claude/settings.local.json` (which
411
- holds your token) and points Claude Code's OpenTelemetry exporter at Verity's OTLP endpoint.
412
- Tell the user it takes effect on their **next** Claude Code session, that first metrics appear
413
- within ~60s of activity, and point them at `/usage`.
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` holds the telemetry env block **including your token**, so it
550
- must never be committed (`verity telemetry install` also adds this entry automatically).
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
- The `.verity/credentials` file contains the project token and MUST be gitignored.
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.0",
3
+ "version": "0.28.1-experimental.39013ce",
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
  },