yolont 0.6.0 β 0.7.1
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 +63 -0
- package/dist/cli.js +3481 -2793
- package/dist/cli.js.map +4 -4
- package/docs/GUIDE.md +62 -0
- package/package.json +2 -1
- package/templates/zones-example.yaml +62 -0
package/docs/GUIDE.md
CHANGED
|
@@ -27,6 +27,25 @@ npx yolont # first run: offers to install the `yolont` command, then th
|
|
|
27
27
|
yolont panel # browse reviews, authors and memory in your browser
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
**Even more in a hurry?** Let your coding agent read this guide for you. Paste this into Claude
|
|
31
|
+
Code, Cursor, Codex or any agent, inside your project:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
Read Yolont's docs:
|
|
35
|
+
https://raw.githubusercontent.com/srcgrp/yolont/main/README.md
|
|
36
|
+
https://raw.githubusercontent.com/srcgrp/yolont/main/docs/GUIDE.md
|
|
37
|
+
|
|
38
|
+
Then, for the project in this directory:
|
|
39
|
+
1. In a few lines: what Yolont does, and whether it's useful here (git host, team size,
|
|
40
|
+
stack, existing CI/review tools). Be honest if it isn't worth it.
|
|
41
|
+
2. If it is: check what's missing (Node 22.13+, gitleaks) and list the exact steps.
|
|
42
|
+
Ask me before installing anything.
|
|
43
|
+
3. Setup needs my tokens and API keys. Don't ask me to paste them here: tell me to run
|
|
44
|
+
`npx yolont` in my own terminal, and what to pick in each wizard step.
|
|
45
|
+
4. Explain daily use: reviewing a PR, the panel, CI, and connecting you to `yolont mcp`
|
|
46
|
+
(the wizard's "Connect your coding agent" item) so you can run /yolont-check before I open a PR.
|
|
47
|
+
```
|
|
48
|
+
|
|
30
49
|
The [README](../README.md) shows what each step looks like. This guide covers everything
|
|
31
50
|
else.
|
|
32
51
|
|
|
@@ -361,6 +380,43 @@ Last 5 score(s): 71, 78, 80, 84, 86. Recurring weak category: **maintainability*
|
|
|
361
380
|
|
|
362
381
|
π’ at or above the threshold, π‘ within 15 points of it, π΄ below that. Yolont edits its own comment on later runs instead of piling up new ones.
|
|
363
382
|
|
|
383
|
+
### Before the PR: in your coding agent (MCP)
|
|
384
|
+
|
|
385
|
+
The review is the referee. `yolont mcp` is the coach: an MCP server that gives your coding
|
|
386
|
+
agent (Claude Code, Cursor, VS Code, Codexβ¦) what this team expects *while* you write, so the
|
|
387
|
+
PR arrives with less to find. It makes no LLM call and needs no Yolont LLM key: your agent's own
|
|
388
|
+
model does the thinking. It doesn't score, store or post anything.
|
|
389
|
+
|
|
390
|
+
Easiest: `yolont` β **Connect your coding agent**. It runs the agent's own setup command
|
|
391
|
+
(asking first) or shows what to paste. By hand:
|
|
392
|
+
|
|
393
|
+
```bash
|
|
394
|
+
claude mcp add --scope user --transport stdio yolont -- yolont mcp # Claude Code
|
|
395
|
+
code --add-mcp '{"name":"yolont","type":"stdio","command":"yolont","args":["mcp"]}' # VS Code
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
Cursor, Codex and others: add a stdio MCP server with command `yolont` and args `["mcp"]` in
|
|
399
|
+
the agent's MCP settings.
|
|
400
|
+
|
|
401
|
+
Which project it checks: the one your agent has open (Claude Code says so with
|
|
402
|
+
`CLAUDE_PROJECT_DIR`, other agents through MCP "roots"), else the directory it was started in.
|
|
403
|
+
A tool's `repo` argument overrides both. It gives your agent:
|
|
404
|
+
|
|
405
|
+
| | What it gives |
|
|
406
|
+
|---|---|
|
|
407
|
+
| `yolont_guidelines` | the team's conventions, the zones of the files you're about to touch (why they're risky, what to watch for), and lessons from past reviews of **your** PRs |
|
|
408
|
+
| `yolont_check_my_changes` | a checklist for your branch: committed, staged and unstaged changes against the base. A local gitleaks scan, size, the change type's checks (a bug fix wants a regression test), zones touched, conventions, your lessons |
|
|
409
|
+
| `/yolont-check` (a prompt) | "check my changes, fix what fails, check again" in one command |
|
|
410
|
+
|
|
411
|
+
Why no score? Nobody needs to audit their own score, and an agent can loop until it reports
|
|
412
|
+
100. The real score still comes from the PR review.
|
|
413
|
+
|
|
414
|
+
What leaves your machine: Yolont sends nothing. Your agent sends the checklist (conventions,
|
|
415
|
+
zones, your lessons) to *its* LLM, like any other context it reads. Only your own lessons are
|
|
416
|
+
included, never a colleague's. "You" means the username behind your saved token for the repo's
|
|
417
|
+
host. If that can't be checked (VPN off, keychain unavailable to the agent), the lessons are left
|
|
418
|
+
out and the checklist says why.
|
|
419
|
+
|
|
364
420
|
---
|
|
365
421
|
|
|
366
422
|
## 5. How the score is made
|
|
@@ -471,6 +527,11 @@ zones:
|
|
|
471
527
|
`nextjs`, `node-api`, plus `generic`, which applies to every stack). It keeps only globs that
|
|
472
528
|
match real files and shows each zone with its file count. Then you save, edit (validated
|
|
473
529
|
before saving), or skip. **Nothing is sent anywhere**: no LLM is involved.
|
|
530
|
+
- **Generate with the LLM** (optional, when an LLM is set up): sends the folder tree (folder
|
|
531
|
+
names only, no file contents) and the project's conventions, scanned by gitleaks first, plus a
|
|
532
|
+
format example (`templates/zones-example.yaml`). The LLM covers topics like bootstrap,
|
|
533
|
+
providers, shell, tracking/config, routing, store, shared helpers, primitives, lazy pages and
|
|
534
|
+
tests. Globs that match no real file are dropped before you save, edit or generate again.
|
|
474
535
|
- **See them:** `yolont zones web/shop` prints the zone map as Mermaid.
|
|
475
536
|
- **Import graph:** `yolont zones graph web/shop --repo .` writes `zones.graph.json`. A file
|
|
476
537
|
that *imports into* a red zone gets flagged too. Commit it as `.yolont/zones.graph.json` for
|
|
@@ -903,6 +964,7 @@ yolont sync-replies <MR/PR URL>
|
|
|
903
964
|
yolont distill [--author <user>] [--project <id>] [--host h]
|
|
904
965
|
yolont backfill <project-id | group/project> [--host h] [--max-mrs 1000] [--with-llm] [--zones]
|
|
905
966
|
yolont panel [--port 4173] (alias: dashboard)
|
|
967
|
+
yolont mcp MCP server for coding agents (guidelines + pre-PR checklist)
|
|
906
968
|
|
|
907
969
|
yolont conventions generate|edit [<address>] [--repo <checkout>]
|
|
908
970
|
yolont zones generate|edit [<address>] [--repo <checkout>]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yolont",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Yolont: LLM pull request reviewer for GitHub and GitLab. Guided setup, team conventions, sensitive zones, a 0-100 score and a local panel.",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@clack/prompts": "^1.8.0",
|
|
31
31
|
"@fastify/static": "^10.1.3",
|
|
32
32
|
"@gitbeaker/rest": "^43.8.0",
|
|
33
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
33
34
|
"@napi-rs/keyring": "^2.1.2",
|
|
34
35
|
"fastify": "^5.12.3",
|
|
35
36
|
"js-yaml": "^4.1.0",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Format example for LLM-generated zones (a React SPA with SSR, Redux and separate device bundles).
|
|
2
|
+
# Not a template: the wizard shows it to the LLM as the shape and depth to aim for.
|
|
3
|
+
zones:
|
|
4
|
+
- id: app-bootstrap
|
|
5
|
+
level: red
|
|
6
|
+
paths: ["app/index.ts*", "app/client.ts*", "app/App.tsx", "app/*.ssr.ts*", "server/**"]
|
|
7
|
+
why: "Entry, hydration and SSR: runs before first paint on every page load"
|
|
8
|
+
watch_for: ["new top-level import", "await before render/hydrate", "new global side effect at module scope"]
|
|
9
|
+
budget: "initial JS +0 KB; no new blocking work before hydrate"
|
|
10
|
+
|
|
11
|
+
- id: root-providers
|
|
12
|
+
level: red
|
|
13
|
+
paths: ["app/**/*Provider.tsx", "app/**/providers/**", "app/core/configureStore.ts"]
|
|
14
|
+
why: "Wraps every route: a change re-renders or delays the whole tree"
|
|
15
|
+
watch_for: ["new context value not memoized", "fetch/await at mount", "heavy import", "new store middleware"]
|
|
16
|
+
|
|
17
|
+
- id: app-shell
|
|
18
|
+
level: red
|
|
19
|
+
paths: ["app/**/Layout/**", "app/**/Header/**", "app/**/Navbar/**"]
|
|
20
|
+
why: "Shell and first viewport: on screen for every route, drives LCP/CLS"
|
|
21
|
+
watch_for: ["layout shift (missing size/skeleton)", "new image without dimensions", "data fetch blocking shell render"]
|
|
22
|
+
|
|
23
|
+
- id: tracking-and-config
|
|
24
|
+
level: red
|
|
25
|
+
paths: ["app/helpers/config/**", "app/**/tracker*/**", "app/**/serviceWorker*"]
|
|
26
|
+
why: "Device config, trackers, feature flags and service worker load with the shell"
|
|
27
|
+
watch_for: ["sync third-party script", "new tracker on load instead of idle", "config read that blocks render"]
|
|
28
|
+
|
|
29
|
+
- id: routing
|
|
30
|
+
level: amber
|
|
31
|
+
paths: ["app/**/router/**", "app/**/Loadable.ts"]
|
|
32
|
+
why: "Route table decides what is lazy: an eager import here moves a page into the initial chunk"
|
|
33
|
+
watch_for: ["route imported directly instead of via Loadable", "new eager route"]
|
|
34
|
+
|
|
35
|
+
- id: store
|
|
36
|
+
level: amber
|
|
37
|
+
paths: ["app/core/**"]
|
|
38
|
+
why: "Slices, selectors and thunks: selector churn re-renders every subscriber"
|
|
39
|
+
watch_for: ["selector returning new object/array", "thunk fired on every mount"]
|
|
40
|
+
|
|
41
|
+
- id: shared-hooks-utils
|
|
42
|
+
level: amber
|
|
43
|
+
paths: ["app/helpers/**"]
|
|
44
|
+
why: "Shared by many routes: a cost here is paid everywhere it is used"
|
|
45
|
+
watch_for: ["effect without cleanup", "missing deps causing loops", "heavy work in render path"]
|
|
46
|
+
|
|
47
|
+
- id: ui-primitives
|
|
48
|
+
level: amber
|
|
49
|
+
paths: ["app/components/ui/**"]
|
|
50
|
+
why: "Atoms render many times per page and inside lists"
|
|
51
|
+
watch_for: ["inline object/function props breaking memo", "list item doing per-item fetch or selector"]
|
|
52
|
+
|
|
53
|
+
- id: lazy-pages
|
|
54
|
+
level: green
|
|
55
|
+
paths: ["app/pages/**"]
|
|
56
|
+
why: "Lazy route chunks: cost only paid when the route is visited"
|
|
57
|
+
watch_for: ["import that leaks back into the shared/initial chunk"]
|
|
58
|
+
|
|
59
|
+
- id: tests-docs-tooling
|
|
60
|
+
level: green
|
|
61
|
+
paths: ["**/*.test.ts*", "**/__tests__/**", "**/*.md", "**/*.stories.tsx"]
|
|
62
|
+
why: "Does not ship to users"
|