@codacy/verity-cli 0.35.0-experimental.3211f79 → 0.35.0-experimental.3a13a5e

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.
@@ -50,8 +50,26 @@ verity standard history
50
50
  - **It prints "No Standard versions found."** → question 2 is **2b**.
51
51
  - **It fails** (for example, not signed in) → question 2 is **2b** for now.
52
52
  Step 2 checks again after sign-in.
53
+
54
+ Then check whether the service writes project rules for this project:
55
+
56
+ ```bash
57
+ verity standard generate --status
58
+ ```
59
+
60
+ It prints one word, and sends nothing:
61
+
62
+ - **`on`** or **`unknown`** → ask 2b, and offer "Create a new one from a repo
63
+ profile" in 2a.
64
+ - **`off`** or **`unsupported`** → the service would not use a profile. Do not
65
+ ask 2b, and do not offer "Create a new one from a repo profile" in 2a.
66
+ Pass `--profile skip`.
67
+ - **It fails** (not signed in) → decide as for `unknown`. Step 2 runs it again
68
+ after sign-in.
53
69
  - **`memory.trackedFiles > 0` and `memory.optedOut` is false** → question 3 applies.
54
70
  - **`trackedState.files > 0`** → question 4 applies.
71
+ - **`telemetry.enabled` is false and `answers.telemetry` is not `declined`** →
72
+ question 5 applies. An earlier "no" is an answer: do not ask again.
55
73
 
56
74
  ## Step 1: Ask, once, in one prompt
57
75
 
@@ -80,7 +98,8 @@ contents of their repositories.
80
98
  | `Create a new one with the built-in rules` | The new Standard becomes the next version for the whole team. It has the built-in rules only. Nothing is sent. |
81
99
 
82
100
  **2b — "Let Verity write review rules for this repository?"** (only when
83
- `artifacts.standard` is false and 2a does not apply)
101
+ `artifacts.standard` is false, 2a does not apply, and the status is `on` or
102
+ `unknown`)
84
103
 
85
104
  | Option | Description |
86
105
  |---|---|
@@ -106,6 +125,17 @@ say how many files)
106
125
  | `Yes, untrack it (recommended)` | These files are machine-local and can include copies of flagged secrets. The files stay on disk, and the removal is staged. |
107
126
  | `No, not now` | Nothing changes. |
108
127
 
128
+ **5 — "Send Claude Code cost and usage from this machine to Verity?"** (only
129
+ when it applies)
130
+
131
+ | Option | Description |
132
+ |---|---|
133
+ | `Yes (recommended)` | Token counts, cost, models, tool names and the repository name, from every Claude Code session on this machine. No prompts, no code, no file contents. It needs sign-in. See it on the /usage page. Turn it off any time: `verity telemetry uninstall`. |
134
+ | `No` | Nothing changes, and init does not ask again. Turn it on later: `verity telemetry install`. |
135
+
136
+ Say that the scope is the whole machine: Claude Code takes these settings only
137
+ from user settings, never from one project.
138
+
109
139
  Do not ask when Verity reviews. All three moments are on by default: each turn,
110
140
  each commit and each push. Step 4 tells the user how to change them.
111
141
 
@@ -137,7 +167,9 @@ It prints one JSON object on stdout:
137
167
  **After a new sign-in, check the Standard again.** If Step 0 could not run
138
168
  `verity standard history` (it failed) and `artifacts.standard` is false, run it
139
169
  now. If it lists versions, ask question 2a now, in its own prompt. Its answer
140
- replaces the answer to 2b.
170
+ replaces the answer to 2b. Also run `verity standard generate --status` again.
171
+ If it prints `off` or `unsupported`, the answer to 2b has no effect: pass
172
+ `--profile skip`.
141
173
 
142
174
  When the user says it is approved, or asks you to check:
143
175
 
@@ -166,7 +198,7 @@ can sign the machine in to a different server, and the plugin follows that sign-
166
198
  One command. It asks nothing:
167
199
 
168
200
  ```bash
169
- verity init --yes [--standard <use|new>] --profile <send|skip> [--untrack-memory] [--untrack-state]
201
+ verity init --yes [--standard <use|new>] --profile <send|skip> [--telemetry <on|off>] [--untrack-memory] [--untrack-state]
170
202
  ```
171
203
 
172
204
  - Question 2a: `Use it` → `--standard use`. `Create a new one from a repo
@@ -176,8 +208,10 @@ verity init --yes [--standard <use|new>] --profile <send|skip> [--untrack-memory
176
208
  Otherwise `--profile skip`.
177
209
  - When question 2 was not asked, leave `--standard` and `--profile` off.
178
210
  - `--untrack-memory` and `--untrack-state` only on a yes.
179
- - Do not pass `--moments` or `--telemetry`. Without them, init keeps the moments
180
- the project has, or turns on all three for a new project.
211
+ - Question 5: `--telemetry on` on a yes, `--telemetry off` on a no. When it was
212
+ not asked, leave `--telemetry` off.
213
+ - Do not pass `--moments`. Without it, init keeps the moments the project has,
214
+ or turns on all three for a new project.
181
215
  - If init exits non-zero, show its error and stop.
182
216
 
183
217
  Init is idempotent. It removes the project's own `.claude/skills/verity-*` copies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.35.0-experimental.3211f79",
3
+ "version": "0.35.0-experimental.3a13a5e",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://verity.md",
@@ -42,15 +42,8 @@
42
42
  "web-tree-sitter": "0.27.0"
43
43
  },
44
44
  "dependencies": {
45
+ "@codacy/analysis-cli": "0.25.0",
45
46
  "commander": "^12",
46
47
  "yaml": "^2"
47
- },
48
- "peerDependencies": {
49
- "@codacy/analysis-cli": ">=1.0.0"
50
- },
51
- "peerDependenciesMeta": {
52
- "@codacy/analysis-cli": {
53
- "optional": true
54
- }
55
48
  }
56
49
  }