yolont 0.1.0 → 0.3.0
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 +182 -142
- package/dist/cli.js +101 -46
- package/dist/cli.js.map +3 -3
- package/docs/GUIDE.md +43 -32
- package/local/backoffice/web/dist/assets/{index-DreArTli.js → index-Bzq5mSEa.js} +2 -2
- package/local/backoffice/web/dist/index.html +1 -1
- package/package.json +9 -1
- package/templates/yolont.github-workflow.yml +1 -1
package/docs/GUIDE.md
CHANGED
|
@@ -17,7 +17,16 @@ checks it against *your* team's conventions and the parts of the codebase that b
|
|
|
17
17
|
0–100, and posts one comment. Run it in a terminal, where you get the last word on every
|
|
18
18
|
finding, or in CI, where it comments on every MR.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
**In a hurry?**
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
cd ~/code/your-project
|
|
24
|
+
npx yolont # first run: offers to install the `yolont` command, then the wizard
|
|
25
|
+
yolont panel # browse reviews, authors and memory in your browser
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The [README](../README.md) shows what each step looks like. This guide covers everything
|
|
29
|
+
else.
|
|
21
30
|
|
|
22
31
|
---
|
|
23
32
|
|
|
@@ -126,32 +135,34 @@ What Yolont is **not**:
|
|
|
126
135
|
No gitleaks means no LLM call. That's on purpose: *fail closed* (see
|
|
127
136
|
[chapter 17](#17-security-model-the-paranoid-chapter)).
|
|
128
137
|
|
|
129
|
-
###
|
|
130
|
-
|
|
131
|
-
Don't want to install anything? Try it first:
|
|
138
|
+
### Quick install: npx, once
|
|
132
139
|
|
|
133
140
|
```bash
|
|
134
141
|
cd ~/code/your-project
|
|
135
|
-
npx yolont
|
|
136
|
-
npx yolont panel # the local panel
|
|
137
|
-
npx yolont review https://github.com/acme/api/pull/42
|
|
138
|
-
npx yolont --help
|
|
142
|
+
npx yolont
|
|
139
143
|
```
|
|
140
144
|
|
|
141
|
-
|
|
142
|
-
tokens and reviews live in your home folder (see [chapter 16](#16-where-things-live)), not in
|
|
143
|
-
the npx cache, so they survive between runs and when you switch to a global install.
|
|
145
|
+
The first time you run it through npx, Yolont asks:
|
|
144
146
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
npx yolont@0.1.0 # exactly this version
|
|
149
|
-
npx yolont@latest # check the registry for a newer one
|
|
147
|
+
```
|
|
148
|
+
◆ Install the `yolont` command, so next time you just type `yolont`? (npm install -g yolont@0.1.0)
|
|
149
|
+
│ ● Yes / ○ No
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
Say yes, and from then on it's just `yolont`, `yolont panel` and so on. It installs the same
|
|
153
|
+
version you just ran. It asks only once. If you say no, `npx yolont …` keeps working, and you
|
|
154
|
+
can install later with `npm install -g yolont`.
|
|
153
155
|
|
|
154
|
-
|
|
156
|
+
Your settings, tokens and reviews live in your home folder (see
|
|
157
|
+
[chapter 16](#16-where-things-live)), not in the npx cache, so nothing is lost when you switch
|
|
158
|
+
from npx to the installed command.
|
|
159
|
+
|
|
160
|
+
**Permission error during install?** npm's global folder needs admin rights on some systems.
|
|
161
|
+
Don't use `sudo`. Point npm at a folder you own instead
|
|
162
|
+
([npm's guide](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally)),
|
|
163
|
+
or use a Node version manager like `nvm` or `fnm`, which does this for you.
|
|
164
|
+
|
|
165
|
+
### Or install it directly
|
|
155
166
|
|
|
156
167
|
```bash
|
|
157
168
|
npm install -g yolont
|
|
@@ -159,13 +170,10 @@ yolont --help
|
|
|
159
170
|
npm update -g yolont # later, to upgrade
|
|
160
171
|
```
|
|
161
172
|
|
|
162
|
-
A global install starts instantly and works offline once installed. Use it once you're past the
|
|
163
|
-
"trying it" stage.
|
|
164
|
-
|
|
165
173
|
### From a checkout (contributors)
|
|
166
174
|
|
|
167
175
|
```bash
|
|
168
|
-
git clone
|
|
176
|
+
git clone https://github.com/srcgrp/yolont.git && cd yolont
|
|
169
177
|
npm ci
|
|
170
178
|
npm pack # builds the panel and the CLI, makes yolont-<version>.tgz
|
|
171
179
|
npm install -g ./yolont-*.tgz
|
|
@@ -292,9 +300,10 @@ What happens:
|
|
|
292
300
|
4. **Change type.** Depending on [the mode](#9-change-type), you confirm or pick what kind of
|
|
293
301
|
change this is.
|
|
294
302
|
5. **LLM review.** One call covers all LLM categories.
|
|
295
|
-
6. **You're the boss.**
|
|
296
|
-
score?"* If not, pick the
|
|
297
|
-
|
|
303
|
+
6. **You're the boss.** You see the score and every finding. *"Agree with the computed
|
|
304
|
+
score?"* If not, pick the categories (or the overall score) to correct, give the score each
|
|
305
|
+
one deserves, optionally fix its description, and **say why**. That "why" is what Yolont
|
|
306
|
+
learns from (see [chapter 10](#10-memory-yolont-learns-from-you)).
|
|
298
307
|
7. **Post?** Default **no**. If yes, one summary comment goes up, plus one inline thread per
|
|
299
308
|
finding that has a file and line. The author can reply right on the finding.
|
|
300
309
|
8. **Sync.** If the project uses a memory repo with auto-sync on, your review is sent to it.
|
|
@@ -555,8 +564,9 @@ train it.
|
|
|
555
564
|
1. **Review**, and correct the score when it's wrong. *"Security 60 → 90: this endpoint is
|
|
556
565
|
internal-only behind the gateway."* **The reason is what matters.** A bare number teaches
|
|
557
566
|
nothing.
|
|
558
|
-
2. **
|
|
559
|
-
|
|
567
|
+
2. **Get replies** (optional). If you posted findings as threads and the author replied, click
|
|
568
|
+
**Get latest replies** on that review's page in the panel, or run
|
|
569
|
+
`yolont sync-replies <url>`. New and edited replies are collected, with no LLM cost.
|
|
560
570
|
3. **Distill** when a batch has piled up (around 5–10 corrections per author):
|
|
561
571
|
`yolont distill --author alice --project 123`. One LLM call turns corrections and replies
|
|
562
572
|
into a few short **insights**. A plain "fixed it" reply teaches nothing. A reply that shows
|
|
@@ -661,7 +671,7 @@ intended).
|
|
|
661
671
|
| Page | What's there |
|
|
662
672
|
|---|---|
|
|
663
673
|
| **Reviews** | Every review, with score, author, change type, filters, and average score per type |
|
|
664
|
-
| **Review detail** | Findings
|
|
674
|
+
| **Review detail** | Findings with the authors' replies (**Get latest replies** fetches new and edited ones), 👍/👎, nearby mined human comments |
|
|
665
675
|
| **Findings** | All findings across reviews |
|
|
666
676
|
| **Authors** | Per-author trends, comment volume, history |
|
|
667
677
|
| **Memory** | Corrections and insights, and which repo each one belongs to |
|
|
@@ -685,7 +695,7 @@ threads are mirrored as one reply per thread, edited in place, and 👎 resolves
|
|
|
685
695
|
1. Add one LLM key as a repo secret (Settings → Secrets and variables → Actions), e.g.
|
|
686
696
|
`ANTHROPIC_API_KEY`.
|
|
687
697
|
2. Copy [`templates/yolont.github-workflow.yml`](../templates/yolont.github-workflow.yml) to
|
|
688
|
-
`.github/workflows/yolont.yml` and point `uses:` at
|
|
698
|
+
`.github/workflows/yolont.yml` and point `uses:` at `srcgrp/yolont`, **pinned to a tag or SHA**.
|
|
689
699
|
3. Optionally commit `.yolont/conventions.md`, `.yolont/zones.yaml` and `.yolont/rubric.yml`.
|
|
690
700
|
|
|
691
701
|
```yaml
|
|
@@ -701,7 +711,7 @@ jobs:
|
|
|
701
711
|
needs: [lint, test] # only jobs in this same workflow are visible
|
|
702
712
|
steps:
|
|
703
713
|
- uses: actions/checkout@v4
|
|
704
|
-
- uses:
|
|
714
|
+
- uses: srcgrp/yolont@<tag-or-sha>
|
|
705
715
|
env:
|
|
706
716
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
707
717
|
# YOLONT_CHANGE_TYPE: steer
|
|
@@ -939,8 +949,9 @@ Every `ETHOS_*` spelling still works.
|
|
|
939
949
|
**`yolont: command not found`**
|
|
940
950
|
It isn't installed globally. Use `npx yolont`, or `npm install -g yolont`. See [Install](#2-install).
|
|
941
951
|
|
|
942
|
-
|
|
943
|
-
|
|
952
|
+
**How do I upgrade?**
|
|
953
|
+
`npm update -g yolont`. If you only use npx, `npx yolont@latest` checks for a newer version
|
|
954
|
+
(npx reuses its cache otherwise).
|
|
944
955
|
|
|
945
956
|
**"secret scan could not run"**
|
|
946
957
|
gitleaks isn't on `PATH`. Install it. Yolont won't send a diff it couldn't scan, and that's by
|