From e1e49a50adb1c240ceb48fb79e6904ebc53f3406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20L=C3=A9pine?= Date: Sun, 8 Nov 2026 20:52:18 +0100 Subject: [PATCH 1/2] feat: GitLab setup popin --- public/index.html | 38 ++++++++++++++++++++++++++++++++++++++ tests/add-to-github.mjs | 14 ++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/public/index.html b/public/index.html index e71454a..9dc9d82 100644 --- a/public/index.html +++ b/public/index.html @@ -189,6 +189,22 @@ .one .add p { max-width: none; margin-top: 12px; color: var(--muted); font-size: 15px; letter-spacing: 0; line-height: 1.45; } .add .link { padding: 0; border: 0; background: none; color: var(--pink-text); font: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; } .code { position: relative; } +.pop { width: min(100% - 32px, 640px); max-height: calc(100% - 32px); padding: 40px 40px 36px; border: 0; border-radius: 28px; background: var(--bg); color: var(--body); box-shadow: 0 40px 80px -30px rgba(13,17,23,.5); overflow-y: auto; } +.pop::backdrop { background: rgba(13,17,23,.55); backdrop-filter: blur(4px); } +.pop[open] { animation: pop .25s cubic-bezier(.3,1.4,.5,1); } +@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } } +@media (prefers-reduced-motion: reduce) { .pop[open] { animation: none; } } +.pop h3 { margin: 0 0 14px; color: var(--ink); font-size: 1.9rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; } +.pop p { margin: 0 0 20px; font-size: 16px; line-height: 1.5; } +.pop p.small { margin: 20px 0 0; color: var(--muted); font-size: 14px; } +.pop code { color: var(--ink); font-size: .9em; } +.pop a { color: var(--pink-text); } +.pop pre { padding: 24px 24px 24px 24px; padding-right: 96px; border-radius: 20px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; } +.pop .code { margin-bottom: 20px; } +.pop .code button { top: 12px; right: 12px; } +.pop .close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 28px/1 var(--sans); cursor: pointer; } +.pop .close:hover { background: var(--soft); color: var(--ink); } +@media (max-width: 480px) { .pop { padding: 32px 20px 24px; } .pop pre { padding: 20px; padding-top: 56px; } } .code button { position: absolute; top: 14px; right: 14px; } pre { margin: 0; padding: 30px 32px; overflow-x: auto; background: var(--soft); border-radius: 28px; color: var(--body); font-size: 14px; line-height: 1.7; } pre b { color: var(--pink-text); font-weight: 500; } @@ -333,6 +349,7 @@

On your repo in one click.

Pull requests from forks or Dependabot cannot comment on their own: that posts for them.

+

On GitLab? .

@@ -352,6 +369,19 @@

On your repo in one click.

+ + +

Cribelo on GitLab

+

Add this to your .gitlab-ci.yml. Every merge request then gets its reading plan, in the job log and as an artifact linked from the merge request.

+
+
include:
+  - remote: https://raw.githubusercontent.com/cribelo/cribelo/v2/ci/gitlab-ci.yml
+ +
+

Want the plan as a comment, updated on each push? Store a token with the api scope in a masked CRIBELO_TOKEN variable. A project access token with the Reporter role is best; on GitLab.com Free, use a personal access token.

+

Merge requests from forks run without your variables, so their plan stays in the artifact. Budget, gates and the rest are in the README.

+
+

It won't find your bugs. It tells you what to read.

curl -fsSL https://cribelo.github.io/install.sh | sh
@@ -659,6 +689,14 @@

On your repo in one click.

document.addEventListener('keydown', function (e) { if (e.key === 'Escape') go.classList.add('quiet'); }); go.addEventListener('mouseleave', function () { go.classList.remove('quiet'); }); go.addEventListener('focusout', function () { go.classList.remove('quiet'); }); + // Popins: a native , closed by its button, Escape or a click outside. + document.querySelectorAll('[data-open]').forEach(function (b) { + var d = document.getElementById(b.getAttribute('data-open')); + if (!d || !d.showModal) { b.closest('p').hidden = true; return; } + b.addEventListener('click', function () { d.showModal(); }); + d.querySelector('.close').addEventListener('click', function () { d.close(); }); + d.addEventListener('click', function (e) { if (e.target === d) d.close(); }); + }); add.addEventListener('submit', function (e) { e.preventDefault(); var repo = slug(repoIn.value), branch = branchIn.value.trim(); diff --git a/tests/add-to-github.mjs b/tests/add-to-github.mjs index 15983d5..c7f4961 100644 --- a/tests/add-to-github.mjs +++ b/tests/add-to-github.mjs @@ -76,6 +76,20 @@ await page.fill('#repo', 'not a repo'); await page.getByRole('button', { name: 'Add to GitHub' }).click(); ok((await page.evaluate(() => window.__opened.length)) === 0, 'invalid repository opens nothing'); +// The GitLab popin opens, shows the include line, and closes on Escape. +await page.reload(); +const opener = page.getByRole('button', { name: 'One line in .gitlab-ci.yml' }); +await opener.click(); +const dialog = page.getByRole('dialog', { name: 'Cribelo on GitLab' }); +ok(await dialog.isVisible(), 'GitLab popin opens'); +ok((await dialog.locator('pre').textContent()).includes('remote: https://raw.githubusercontent.com/cribelo/cribelo/v2/ci/gitlab-ci.yml'), 'popin holds the include line'); +await page.keyboard.press('Escape'); +ok(!(await dialog.isVisible()), 'Escape closes the popin'); +ok(await opener.evaluate(b => document.activeElement === b), 'focus returns to the opener'); +await opener.click(); +await dialog.getByRole('button', { name: 'Close' }).click(); +ok(!(await dialog.isVisible()), 'the close button closes the popin'); + console.log(`ok add-to-github, ${checks} checks`); await browser.close(); server.close(); From a90c238652b9a06a949412ac83c1c6b907663ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20L=C3=A9pine?= Date: Thu, 12 Nov 2026 16:03:49 +0100 Subject: [PATCH 2/2] feat: agent time limit block on the home page, drop the measures line and the references footer --- public/index.html | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 9dc9d82..0074467 100644 --- a/public/index.html +++ b/public/index.html @@ -160,11 +160,14 @@ .dark { background: var(--ink); color: var(--bg); padding: clamp(110px, 20vh, 220px) 0; } .dark h2 { color: var(--bg); } .dark .big { max-width: 19em; margin-top: 30px; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; } -.dark .measures { max-width: 19em; margin-top: 56px; color: var(--inv-accent); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; } .dark .fine { margin-top: 44px; opacity: .72; font-size: 17px; max-width: 34em; } .dark code { font-size: .92em; } .one { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; padding: clamp(110px, 20vh, 220px) 0 0; } +.one.gate { padding-bottom: clamp(110px, 20vh, 220px); } +.one.gate .out p { max-width: none; margin-top: 0; color: #d6dbe5; font-size: 15px; line-height: 1.6; letter-spacing: 0; } +.one.gate .out .head { margin-top: 10px; color: #fff; } +.one.gate .out .why { padding-left: 2ch; } .one p { max-width: 22em; margin-top: 26px; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.3; letter-spacing: -.02em; } .one p + p { margin-top: 14px; color: var(--muted); font-size: 17px; letter-spacing: 0; } .one code { font-size: .9em; } @@ -324,11 +327,29 @@

How long do you have?

+ +
+
+
+

Hold your agent to thirty minutes.

+

One hook, and it cannot open a pull request you have no time to read.

+

How to set it up.

+
+
+ +
$ cribelo --fail-over 30m
+
+

Gate: failed

+

reading time 44 min, over the 30 min allowed

+
+
+
+
+

No AI. No guessing.

Same pull request, same answer, on every machine. Every line of the plan is true by construction, or checkable in the repository in a minute.

-

Moves. Renames. Cycles. Signatures. Clones. Fix history. Test coverage.

Real parsers and your git history. cribelo backtest replays your past changes and says how many lines a reviewer would have skipped. How it works.

@@ -389,7 +410,6 @@

Cribelo on GitLab