@codacy/verity-cli 0.27.2 → 0.28.1-experimental.9155758

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.
@@ -353,8 +353,9 @@ verity auth verify
353
353
  (Metadata + Email addresses); the resulting token is used once server-side to
354
354
  check repo access and is never persisted.
355
355
 
356
- When authenticated, `.verity/credentials` contains `token` and `service_url`
357
- all subsequent `verity` upload commands work.
356
+ When authenticated, the project's `token` and `service_url` are stored in the
357
+ single global credentials file `~/.verity/credentials` (keyed by git remote) —
358
+ nothing secret is written into the repo. All subsequent `verity` upload commands work.
358
359
 
359
360
  ---
360
361
 
@@ -407,10 +408,12 @@ now (the token from Step 6 must already exist):
407
408
  verity telemetry install
408
409
  ```
409
410
 
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`.
411
+ This writes the `OTEL_*` env block plus an `otelHeadersHelper` to `.claude/settings.local.json`
412
+ and points Claude Code's OpenTelemetry exporter at Verity's OTLP endpoint. No token is written to
413
+ the file the helper (`verity telemetry headers`) resolves the project token from
414
+ `~/.verity/credentials` at session start, so the secret never lands in the repo. Tell the user it
415
+ takes effect on their **next** Claude Code session, that first metrics appear within ~60s of
416
+ activity, and point them at `/usage`.
414
417
 
415
418
  If the user declined, skip this step and note that `/usage` will stay empty until they run
416
419
  `verity telemetry install`.
@@ -534,7 +537,6 @@ Add these entries to `.gitignore` (create it if it doesn't exist, append if it d
534
537
 
535
538
  ```
536
539
  # Verity
537
- .verity/credentials
538
540
  .verity/.cache/
539
541
  .verity/.logs/
540
542
  .verity/.last-analysis
@@ -546,14 +548,18 @@ Add these entries to `.gitignore` (create it if it doesn't exist, append if it d
546
548
  .claude/settings.local.json
547
549
  ```
548
550
 
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).
551
+ `.claude/settings.local.json` is machine-local Claude Code config (telemetry endpoint + an
552
+ `otelHeadersHelper` reference no token). `verity telemetry install` adds this entry
553
+ automatically.
551
554
 
552
555
  Do NOT gitignore `.verity/standard.yaml` or `VERITY.md` — those should be committed.
553
556
 
554
557
  **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
558
 
556
- The `.verity/credentials` file contains the project token and MUST be gitignored.
559
+ **No secrets live in the repo anymore.** The project token is stored only in the single global
560
+ file `~/.verity/credentials` (outside the repo, keyed by git remote), so there is no
561
+ `.verity/credentials` to ignore. If an older install left one behind, the CLI folds it into the
562
+ global store and removes it automatically on the next `verity` command.
557
563
 
558
564
  ---
559
565
 
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.27.2",
3
+ "version": "0.28.1-experimental.9155758",
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
  },