diff --git a/site/i18n.js b/site/i18n.js index 8f3429e96..30b663a8f 100644 --- a/site/i18n.js +++ b/site/i18n.js @@ -138,6 +138,10 @@ const zh = { "fin.gh": "在 GitHub 上查看", "plat.mac": "11 及以上", "plat.win": "10 及以上", + "chan.label": "版本", + "chan.latest": "最新版", + "chan.stable": "稳定版", + "chan.title": "每周一个版本,先经过三天使用", "foot.start": "快速上手", "foot.feed": "更新源", "foot.contrib": "贡献墙", @@ -291,6 +295,10 @@ const ja = { "fin.gh": "GitHub で見る", "plat.mac": "11 以降", "plat.win": "10 以降", + "chan.label": "リリース", + "chan.latest": "最新版", + "chan.stable": "安定版", + "chan.title": "週に 1 バージョン、3 日間使われてから", "foot.start": "はじめに", "foot.feed": "更新フィード", "foot.contrib": "コントリビューター", @@ -444,6 +452,10 @@ const de = { "fin.gh": "Auf GitHub ansehen", "plat.mac": "11 oder neuer", "plat.win": "10 oder neuer", + "chan.label": "Version", + "chan.latest": "Neueste", + "chan.stable": "Stabil", + "chan.title": "Eine Version pro Woche, nach drei Tagen Nutzung", "foot.start": "Erste Schritte", "foot.feed": "Update-Feed", "foot.contrib": "Mitwirkende", diff --git a/site/public/index.html b/site/public/index.html index 42b5bb2d8..bc1619432 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -244,6 +244,16 @@ html[data-os="windows"] .btn .os-windows, html[data-os="linux"] .btn .os-linux { .plats span { color: var(--ink3); font-size: 12.5px; justify-self: end; } .plats a { color: var(--ink2); text-decoration: none; } .plats a:hover { color: var(--ink); text-decoration: underline; } +/* Latest or Stable: which release the platform links download */ +.chan { display: inline-flex; gap: 2px; margin-top: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); } +.chan button { display: inline-flex; align-items: baseline; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink3); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .15s ease, color .15s ease; } +.chan button b { font-weight: 500; color: var(--ink2); transition: color .15s ease; } +.chan button[aria-pressed="true"] { background: var(--card); color: var(--ink2); box-shadow: 0 1px 2px rgba(0,0,0,.06); } +.chan button[aria-pressed="true"] b { color: var(--ink); } +@media (hover: hover) and (pointer: fine) { .chan button:hover b { color: var(--ink); } } +.chan button:focus-visible { outline: 2px solid var(--ink3); outline-offset: 1px; } +.chan + .plats { margin-top: 16px; } +.chan[hidden], .to-stable[hidden] { display: none; } footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink3); } footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; } footer .links { margin-left: auto; display: flex; gap: 20px; } @@ -443,7 +453,7 @@ footer a:hover { color: var(--ink); } Install from terminal -
Free · Open source · macOS 12+ · Intel Mac · Windows & Linux
+
Free · Open source · macOS 12+ · Intel Mac · Windows & Linux
Codex's model picker in magpie, listing DeepSeek, Kimi and GLM models @@ -740,6 +750,10 @@ magpie tui # t

Every agent. Every model.

Free, open source, native. For macOS, Windows and Linux.

+
macOS11 or laterApple SiliconIntel
Windows10 or laterx64ARM
@@ -836,10 +850,30 @@ magpie tui # t }; try { navigator.userAgentData?.getHighEntropyValues(["architecture"]).then((v) => setArch(v.architecture)).catch(() => {}); } catch {} - fetch("/api/latest").then((r) => (r.ok ? r.json() : null)).then((rel) => { + // The newest version, and Stable's beside it (fishmagic80 on X): the + // platform links download either; the hero's Stable link picks Stable. + const feed = (q) => fetch("/api/latest" + q).then((r) => (r.ok ? r.json() : null)).catch(() => null); + const chan = document.querySelector(".chan"); + const plats = [...document.querySelectorAll(".plats a")].map((a) => [a, a.getAttribute("href").replace("/download/", "")]); + const pick = (ch) => { + chan.querySelectorAll("button").forEach((b) => b.setAttribute("aria-pressed", String(b.dataset.ch === ch))); + plats.forEach(([a, p]) => (a.href = (ch === "stable" ? "/download/stable/" : "/download/") + p)); + }; + chan.querySelectorAll("button").forEach((b) => b.addEventListener("click", () => pick(b.dataset.ch))); + Promise.all([feed(""), feed("?channel=stable")]).then(([rel, st]) => { if (!rel) return; document.querySelectorAll(".ver").forEach((e) => (e.textContent = T("Version ", "版本 ", "バージョン ", "Version ") + rel.version)); - }).catch(() => {}); + if (!st || !st.version || st.version === rel.version) return; + chan.querySelector('[data-ch="latest"] .v').textContent = rel.version; + document.querySelectorAll('[data-ch="stable"] .v, .stable-v').forEach((e) => (e.textContent = st.version)); + chan.hidden = false; + document.querySelector(".final > .meta").hidden = true; // the choice names both versions + document.querySelectorAll(".to-stable").forEach((e) => { + e.hidden = false; + e.querySelector("a").addEventListener("click", () => pick("stable")); + }); + if (location.hash === "#stable") { pick("stable"); chan.scrollIntoView({ block: "center" }); } + }); })();