Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
redact: the demo's notebook has a square icon and its entries under the header
yetonea41d0d5098c7
diff --git a/internal/gui/assets/plugins/redact/demo.js b/internal/gui/assets/plugins/redact/demo.jsindex 3e4869a40..bf10a5186 100644--- a/internal/gui/assets/plugins/redact/demo.js+++ b/internal/gui/assets/plugins/redact/demo.js@@ -60,7 +60,7 @@ function maskDemoStage() {const stage = el("div", "xq-stage");const at = (node, k) => { node.dataset.k = k; return node; };const box = (k, icon, title, sub) => {- const b = at(el("div", "xq-box"), k), h = el("div", "xq-bh"), ic = el("div", "xq-ic" + (icon === "book" ? " acc" : ""));+ const b = at(el("div", "xq-box"), k), h = el("div", "xq-bh"), ic = el("div", "xq-ic" + (icon === "book" ? " xq-acc" : ""));ic.innerHTML = xqdIcon[icon];const words = el("div");words.append(xqdSay("xq-h", title));@@ -78,12 +78,14 @@ function maskDemoStage() {const ledger = box("ledger", "book", "Little Magpie's notebook", "Kept on your computer only");ledger.append(at(xqdSay("xq-lempty", "Nothing in it yet"), "lempty"));- [[XQD_PM, XQD_MAIL, 40], [XQD_PP, XQD_PASS, 81]].forEach(([code, real, top], i) => {+ // the entries follow the header, so a taller font moves them down with it+ const entries = el("div", "xq-llist");+ [[XQD_PM, XQD_MAIL], [XQD_PP, XQD_PASS]].forEach(([code, real], i) => {const r = at(el("div", "xq-lrow xq-mv"), "row" + i);- r.style.top = top + "px";r.append(el("span", "xq-lc xq-pillc", code), el("span", "xq-lv", real));- ledger.append(r);+ entries.append(r);});+ ledger.append(entries);const browser = at(el("div", "xq-box"), "browser"), bar = el("div", "xq-bbar");bar.innerHTML = `<i></i><i></i><i></i><div class="xq-url">${xqdIcon.lock}github.com/login</div>`;diff --git a/internal/gui/assets/plugins/redact/i18n.js b/internal/gui/assets/plugins/redact/i18n.jsindex 258fea842..1de8a9de3 100644--- a/internal/gui/assets/plugins/redact/i18n.js+++ b/internal/gui/assets/plugins/redact/i18n.js@@ -343,7 +343,7 @@ magpie.strings({"The tool signs in with the real password on your computer. The password never left it.": "Das Tool meldet sich auf Ihrem Computer mit dem echten Passwort an. Das Passwort hat ihn nie verlassen.","Over the network": "Netzwerk","You tell the agent": "Sie sagen dem Agenten",- "Little Magpie's notebook": "Notizbuch der kleinen Elster",+ "Little Magpie's notebook": "Notizbuch der Elster","Kept on your computer only": "Nur auf Ihrem Computer","Nothing in it yet": "Noch leer","Signed in to github.com": "Bei github.com angemeldet",diff --git a/internal/gui/assets/plugins/redact/redact.css b/internal/gui/assets/plugins/redact/redact.cssindex 901ec407b..a264f7271 100644--- a/internal/gui/assets/plugins/redact/redact.css+++ b/internal/gui/assets/plugins/redact/redact.css@@ -284,21 +284,22 @@ body.window .msk-onebar::before { inset: -6px -16px; }.xq-divider { position: absolute; left: 784px; top: 6px; bottom: 6px; width: 0; border-left: 1px dashed var(--line); }.xq-divider span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg); padding: 2px 8px; border-radius: 6px; background: var(--card); font-size: 10.5px; white-space: nowrap; color: var(--faint); }.xq-box { position: absolute; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(20, 22, 30, .04); }-.xq-h { display: block; font-size: 12px; font-weight: 600; }-.xq-sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); }+.xq-h { display: block; font-size: 12px; line-height: 16px; font-weight: 600; }+.xq-sub { display: block; font-size: 10.5px; line-height: 14px; font-weight: 400; color: var(--muted); }.xq-bh { display: flex; align-items: center; gap: 8px; padding: 9px 11px 0; }.xq-bh > div:last-child { min-width: 0; }.xq-ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--pill); color: var(--fg-2); }-.xq-ic.acc { background: var(--accent-soft); color: var(--accent); }+.xq-ic.xq-acc { background: var(--accent-soft); color: var(--accent); }.xq-stage [data-k="req"] { left: 16px; top: 28px; width: 220px; height: 112px; }.xq-msg { margin: 5px 11px 0; font-size: 12px; line-height: 1.4; color: var(--fg-2); overflow-wrap: anywhere; }.xq-msg b { font-weight: 600; color: var(--fg); }.xq-caret { display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--accent); }.xq-stage [data-k="ledger"] { left: 16px; top: 148px; width: 220px; height: 126px; }-.xq-lrow { position: absolute; left: 7px; right: 7px; height: 40px; padding: 0 6px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-radius: 8px; opacity: 0; transition: background-color .2s; }-.xq-lv { padding-left: 1px; font-family: var(--code); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }+.xq-llist { margin: 6px 11px 0; display: flex; flex-direction: column; gap: 5px; }+.xq-lrow { position: relative; margin: 0 -5px; padding: 0 5px; display: flex; flex-direction: column; gap: 2px; border-radius: 7px; opacity: 0; transition: background-color .2s, box-shadow .2s; }+.xq-lv { padding-left: 1px; font-family: var(--code); font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }.xq-lc { align-self: flex-start; }-.xq-lrow.hot { background: var(--accent-soft); }+.xq-lrow.hot { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }.xq-lempty { position: absolute; left: 11px; right: 11px; top: 68px; text-align: center; font-size: 11px; color: var(--faint); }.xq-stage [data-k="browser"] { left: 16px; top: 282px; width: 220px; height: 130px; }.xq-bbar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--line-2); }diff --git a/internal/gui/tests/masking-demo.test.cjs b/internal/gui/tests/masking-demo.test.cjsindex 55000193d..e4bf81d05 100644--- a/internal/gui/tests/masking-demo.test.cjs+++ b/internal/gui/tests/masking-demo.test.cjs@@ -129,6 +129,15 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",return (end - low) / k < ({ req: 4, prov: 4 }[b.dataset.k] ?? 0) - .5 ? [`${b.dataset.k} ${Math.round((end - low) / k)}px to spare`] : [];});}), []);+ // each box's icon is a 22px square (the app's own .acc once made the notebook's+ // 38px tall), and the notebook's entries sit under its header, one after the other+ assert.deepEqual(await page.evaluate(() => {+ const k = document.querySelector(".xq-stage").getBoundingClientRect().width / 1000, r = (n) => n.getBoundingClientRect();+ const bad = [...document.querySelectorAll(".xq-stage .xq-ic")].map((n) => [Math.round(r(n).width / k), Math.round(r(n).height / k)]).filter(([w, h]) => w !== 22 || h !== 22);+ const book = document.querySelector('.xq-stage [data-k="ledger"]'), head = r(book.querySelector(".xq-bh")).bottom;+ const rows = [...book.querySelectorAll(".xq-lrow")].map(r);+ return { bad, gaps: [rows[0].top - head, rows[1].top - rows[0].bottom].map((g) => g / k >= 4) };+ }), { bad: [], gaps: [true, true] });if (process.env.MASK_SHOTS) await page.screenshot({ path: path.join(process.env.MASK_SHOTS, `demo_${engine}_${lang}_${width}.png`), fullPage: true });await row.click();