@codacy/verity-cli 0.35.3-experimental.f980d82 → 0.35.4
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/CHANGELOG.md +68 -0
- package/bin/verity.js +686 -245
- package/data/skills/verity-init/SKILL.md +23 -8
- package/data/skills/verity-setup/SKILL.md +12 -5
- package/package.json +1 -1
|
@@ -37,9 +37,15 @@ Use this one report:
|
|
|
37
37
|
- **`hooks.versions.skew` is set** → tell the user first, in one line, with
|
|
38
38
|
`hooks.versions.skew.remedy`.
|
|
39
39
|
- **`artifacts.standard` or `artifacts.legacyStandard` is true** → this project
|
|
40
|
-
already has a Standard here. `legacyStandard` is an old GATE.md Standard at
|
|
41
|
-
`.gate/standard.yaml`: init moves it to `.verity/` first
|
|
42
|
-
|
|
40
|
+
already has a Standard file here. `legacyStandard` is an old GATE.md Standard at
|
|
41
|
+
`.gate/standard.yaml`: init moves it to `.verity/` first. Do not ask question 2,
|
|
42
|
+
and init sends no profile. The file is this machine's working copy of the
|
|
43
|
+
team's Standard: init keeps it when it is the team's or the team has none yet
|
|
44
|
+
(then it shares it), and writes the team's here when the two differ (the file
|
|
45
|
+
is kept as a copy, `.verity/standard.<time>.yaml`). Reviews read the Standard
|
|
46
|
+
on the service either way.
|
|
47
|
+
- **`standard.tracked` is true** → `.verity/standard.yaml` is tracked in git, from
|
|
48
|
+
an install older than 0.36.0. Question 3b applies.
|
|
43
49
|
|
|
44
50
|
When both are false, also run:
|
|
45
51
|
|
|
@@ -119,6 +125,14 @@ say how many files)
|
|
|
119
125
|
| `Yes, untrack it (recommended)` | The files stay on disk. Their removal from the index is staged for you to commit. Generated notes stop appearing in every diff. |
|
|
120
126
|
| `No, not now` | Nothing changes. `verity memory track` records it as deliberate. |
|
|
121
127
|
|
|
128
|
+
**3b — "Stop tracking `.verity/standard.yaml` in git?"** (only when
|
|
129
|
+
`standard.tracked` is true)
|
|
130
|
+
|
|
131
|
+
| Option | Description |
|
|
132
|
+
|---|---|
|
|
133
|
+
| `Yes, untrack it (recommended)` | Verity keeps the Standard on the service and writes the file on each machine (`verity init`, `verity standard pull`). The file stays on disk here; its removal from the index is staged for you to commit. Teammates lose the file on their next pull and get it back with `verity standard pull`. Reviews are not affected: they read the service. |
|
|
134
|
+
| `No, not now` | Nothing changes. `verity doctor` keeps reporting it; `verity standard untrack` does it later. |
|
|
135
|
+
|
|
122
136
|
**4 — "Untrack committed Verity state?"** (only when `trackedState.files > 0`;
|
|
123
137
|
say how many files)
|
|
124
138
|
|
|
@@ -201,7 +215,7 @@ can sign the machine in to a different server, and the plugin follows that sign-
|
|
|
201
215
|
One command. It asks nothing:
|
|
202
216
|
|
|
203
217
|
```bash
|
|
204
|
-
verity init --yes [--standard <use|new>] --profile <send|skip> [--telemetry <on|off>] [--untrack-memory] [--untrack-state]
|
|
218
|
+
verity init --yes [--standard <use|new>] --profile <send|skip> [--telemetry <on|off>] [--untrack-memory] [--untrack-standard] [--untrack-state]
|
|
205
219
|
```
|
|
206
220
|
|
|
207
221
|
- Question 2a: `Use it` → `--standard use`. `Create a new one from a repo
|
|
@@ -210,7 +224,7 @@ verity init --yes [--standard <use|new>] --profile <send|skip> [--telemetry <on|
|
|
|
210
224
|
- Question 2b: `--profile send` only when the user said yes and signed in.
|
|
211
225
|
Otherwise `--profile skip`.
|
|
212
226
|
- When question 2 was not asked, leave `--standard` and `--profile` off.
|
|
213
|
-
- `--untrack-memory` and `--untrack-state` only on a yes.
|
|
227
|
+
- `--untrack-memory`, `--untrack-standard` and `--untrack-state` only on a yes.
|
|
214
228
|
- Question 5: `--telemetry on` on a yes, `--telemetry off` on a no. When it was
|
|
215
229
|
not asked, leave `--telemetry` off.
|
|
216
230
|
- Do not pass `--moments`. Without it, init keeps the moments the project has,
|
|
@@ -235,9 +249,10 @@ verity doctor --json
|
|
|
235
249
|
|
|
236
250
|
Summarise from this report and from init's output, not from memory:
|
|
237
251
|
|
|
238
|
-
- the Standard: **kept**, **adopted** from the team
|
|
239
|
-
|
|
240
|
-
|
|
252
|
+
- the Standard: **kept**, **adopted** from the team (when the file here differed,
|
|
253
|
+
say that the old file is kept as a copy and where), **written** from the
|
|
254
|
+
profile (with its rules), or built from the catalogue. When it is a new one
|
|
255
|
+
that replaced the team's, say which version it replaced;
|
|
241
256
|
- the moments in effect. Say: "Verity reviews every turn, every commit and every
|
|
242
257
|
push. To change it, run `verity config moments`, or just ask me.";
|
|
243
258
|
- what init removed (superseded skills, duplicate hooks). Those skill folders are
|
|
@@ -82,10 +82,13 @@ Branch on the same `doctor` output:
|
|
|
82
82
|
- **`artifacts.standard` is true and `phases.setup.done` is true** → the
|
|
83
83
|
project already has a Standard, derived or adopted. Your job is the part the CLI
|
|
84
84
|
leaves empty: propose 2–5 `custom_patterns` from the codebase, show them, and on
|
|
85
|
-
the user's agreement
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
the user's agreement run `verity standard pull` first (the file here is this
|
|
86
|
+
machine's working copy and can be behind the team's), add them to
|
|
87
|
+
`.verity/standard.yaml`, and run `verity standard push`. Do NOT rewrite the rest
|
|
88
|
+
of the Standard — `standard push` auto-versions, so a full re-synthesis lands as
|
|
89
|
+
the version everybody is then held to. A push that answers "the team's Standard
|
|
90
|
+
is vN now" means someone changed it since the pull: pull again, re-apply the
|
|
91
|
+
patterns, push again.
|
|
89
92
|
- **`artifacts.verityMd` is true and the user did not pass `--force`** → already
|
|
90
93
|
configured. Say "Already configured. Run `/verity-setup --force` to
|
|
91
94
|
reconfigure." and stop.
|
|
@@ -249,7 +252,11 @@ The `verity` CLI handles YAML→JSON conversion automatically:
|
|
|
249
252
|
verity standard push
|
|
250
253
|
```
|
|
251
254
|
|
|
252
|
-
This reads `.verity/standard.yaml`, converts it to JSON, and uploads it
|
|
255
|
+
This reads `.verity/standard.yaml`, converts it to JSON, and uploads it as the next
|
|
256
|
+
version after the one this machine last saw. Verify the output shows `version: 1`.
|
|
257
|
+
If it answers that the team's Standard moved, run `verity standard pull`, re-apply
|
|
258
|
+
the changes to the pulled file, and push again. The file is machine-local: do not
|
|
259
|
+
commit it.
|
|
253
260
|
|
|
254
261
|
### Seed the knowledge base
|
|
255
262
|
|