Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
gui: the dot on Plugins says what it is, and leads to the plugins with an update
yetone8e44c2f3511d
diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.cssindex 0cc917123..fb4c6462d 100644--- a/internal/gui/assets/app.css+++ b/internal/gui/assets/app.css@@ -391,6 +391,8 @@ body.side-nav #nav button.has-dot::after { top: 50%; right: 10px; margin-top: -3.nav-sub > button { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--ctl-fg); text-align: left; white-space: nowrap; transition: color .2s var(--ease); }.nav-sub > button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }.nav-sub > button > em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }+/* an update waiting, in the sidebar's dot colour, as the words the dot means */+.nav-sub > button > em.up { color: var(--accent); font-weight: 500; }/* the selection (.nav-hl) is the only shape in the list: a row hovered orpressed has no ground of its own, which would show where the finger isbefore the selection slides there */diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.jsindex 36ecfeb9a..afbbfdf2a 100644--- a/internal/gui/assets/app.js+++ b/internal/gui/assets/app.js@@ -22571,6 +22571,7 @@ async function show(v) {// and one a built-in plugin switched off has, Agentsif (featureHides($(`#nav button[data-view="${v}"]`))) v = gatewayMode ? "providers" : "agents";if (v !== view) {+ if (v === "plugins" && pluginUpdates) window.pluginTabTo?.("installed");if (view === "providers" && (editing !== null || importing || importingApps)) {if (!await cancelEdit(true)) return false;} else if (!$("#modal").hidden && !$("#modal").classList.contains("out")) {@@ -23137,7 +23138,7 @@ function navSubs() {const side = sideNav();const items = side ? navSubItems(view) : [];const at = view === "settings" ? $("#prefs") : nav.querySelector(`button[data-view="${view}"]`);- const sig = [side, view, locale, ...items.map((b) => b.textContent.trim() + (b.classList.contains("on") ? "*" : ""))].join("|");+ const sig = [side, view, locale, pluginUpdates, ...items.map((b) => b.textContent.trim() + (b.classList.contains("on") ? "*" : ""))].join("|");if (sig === navSubsAt) return;navSubsAt = sig;let box = document.querySelector(".nav-sub:not(.leaving)");@@ -23173,7 +23174,11 @@ function navSubs() {s.setAttribute("aria-selected", String(cur));s.tabIndex = cur ? 0 : -1;s.append(el("span", "", name));- if (n) s.append(el("em", "", n));+ if (b.dataset.sub === "installed" && pluginUpdates) {+ const up = el("em", "up", t(pluginUpdates === 1 ? "1 update" : "{n} updates", { n: pluginUpdates }));+ s.title = t("Newer versions of your plugins are out: update them under Installed");+ s.append(up);+ } else if (n) s.append(el("em", "", n));// the selection goes as the finger comes down, as iOS's does, not once// the page has drawn the tab; let go off the row, it goes backs.onpointerdown = (e) => { if (e.button === 0) navSubGlide(box, s); };@@ -23436,9 +23441,13 @@ async function renderPluginDot() {const u = await api("plugins/updates").catch(() => null);const n = u?.waiting?.length || 0;b.classList.toggle("has-dot", n > 0);+ // the dot says itself where the reader acts on it: Installed, under+ // Plugins in the sidebar, reads "1 update" in its count's place+ if (pluginUpdates !== n) { pluginUpdates = n; navSubs(); }if (n) b.title = t(n === 1 ? "An update for {name} is out" : "Updates for {n} plugins are out", { n, name: u.waiting[0].package });else b.removeAttribute("title");}+var pluginUpdates = 0;window.renderPluginDot = renderPluginDot;renderPluginDot();window.addEventListener("focus", renderPluginDot);diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.jsindex 719ce4a87..06c497cdc 100644--- a/internal/gui/assets/i18n.js+++ b/internal/gui/assets/i18n.js@@ -3498,6 +3498,11 @@ const I18N = {"Sign in to {name}": "登录 {name}","Open {name} in Providers": "在供应商中打开 {name}","Installed": "已安装",+ "1 update": "1 个更新",+ "A newer version of {name} is out": "{name} 有新版本",+ "Newer versions of {n} plugins are out: {names}": "{n} 个插件有新版本:{names}",+ "{n} updates": "{n} 个更新",+ "Newer versions of your plugins are out: update them under Installed": "你的插件有新版本,在「已安装」里更新","magpie community": "magpie 社区","Written for magpie by its community, in github.com/magpie-community/plugins": "由 magpie 社区编写,源码在 github.com/magpie-community/plugins","{n}/week": "{n}/周",@@ -7174,6 +7179,11 @@ const I18N = {"Sign in to {name}": "登入 {name}","Open {name} in Providers": "在供應商中開啟 {name}","Installed": "已安裝",+ "1 update": "1 個更新",+ "A newer version of {name} is out": "{name} 有新版本",+ "Newer versions of {n} plugins are out: {names}": "{n} 個外掛有新版本:{names}",+ "{n} updates": "{n} 個更新",+ "Newer versions of your plugins are out: update them under Installed": "你的外掛有新版本,在「已安裝」裡更新","magpie community": "magpie 社群","Written for magpie by its community, in github.com/magpie-community/plugins": "由 magpie 社群編寫,原始碼在 github.com/magpie-community/plugins","{n}/week": "{n}/週",@@ -10872,6 +10882,11 @@ const I18N = {"Sign in to {name}": "{name} にサインイン","Open {name} in Providers": "プロバイダで {name} を開く","Installed": "インストール済み",+ "1 update": "1 件のアップデート",+ "A newer version of {name} is out": "{name} の新しいバージョンがあります",+ "Newer versions of {n} plugins are out: {names}": "{n} 個のプラグインに新しいバージョンがあります:{names}",+ "{n} updates": "{n} 件のアップデート",+ "Newer versions of your plugins are out: update them under Installed": "プラグインの新しいバージョンがあります。「インストール済み」でアップデートできます","magpie community": "magpie コミュニティ","Written for magpie by its community, in github.com/magpie-community/plugins": "magpie のコミュニティが magpie のために作成(github.com/magpie-community/plugins)","{n}/week": "{n}/週",@@ -14583,6 +14598,11 @@ const I18N = {"Sign in to {name}": "Bei {name} anmelden","Open {name} in Providers": "{name} unter Anbieter öffnen","Installed": "Installiert",+ "1 update": "1 Update",+ "A newer version of {name} is out": "Eine neue Version von {name} ist da",+ "Newer versions of {n} plugins are out: {names}": "Neue Versionen von {n} Erweiterungen sind da: {names}",+ "{n} updates": "{n} Updates",+ "Newer versions of your plugins are out: update them under Installed": "Neue Versionen Ihrer Erweiterungen sind da: unter „Installiert“ aktualisieren","magpie community": "magpie-Community","Written for magpie by its community, in github.com/magpie-community/plugins": "Von der magpie-Community für magpie geschrieben, in github.com/magpie-community/plugins","{n}/week": "{n}/Woche",diff --git a/internal/gui/assets/plugins.css b/internal/gui/assets/plugins.cssindex a7aaf7fe2..389afc265 100644--- a/internal/gui/assets/plugins.css+++ b/internal/gui/assets/plugins.css@@ -189,6 +189,11 @@ button.pm-chip:disabled { cursor: default; opacity: .6; }/* Installed */.pm-listhead { margin: 0 0 -10px; padding: 0 2px; }+/* the plugins with an update, above the list: the sidebar's dot, named */+.pm-updates { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 10px 9px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 12px; line-height: 1.35; }+.pm-updates .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }+.pm-updates .pm-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }+.pm-updates .pm-up { flex: none; }.pm-list .row { min-height: 54px; padding: 8px 10px 8px 12px; gap: 11px; cursor: default; transition: background .14s var(--ease); }.pm-list .row:hover { background: var(--card-2); }.pm-list .row + .row { border-top: 1px solid var(--line-2); }diff --git a/internal/gui/assets/plugins.js b/internal/gui/assets/plugins.jsindex a127cc112..e5b226dcc 100644--- a/internal/gui/assets/plugins.js+++ b/internal/gui/assets/plugins.js@@ -233,6 +233,9 @@askGit();}window.loadPlugins = load;+ // the sidebar's dot, followed: Plugins opens on Installed, where the+ // plugins with an update are named at the top+ window.pluginTabTo = (id) => { tab = id; };// pluginQuery: Discover, looking for q (the add sheet found nothing by it)window.pluginQuery = (q) => {if (q === query && !q) return;@@ -765,6 +768,7 @@drawBody();});tabs.classList.add("lib-tabs");+ tabs.querySelectorAll(".opt")[2].dataset.sub = "installed";q.placeholder = t("Search plugins and npm…");if (q.value !== query) q.value = query;q.setAttribute("aria-label", t("Search plugins"));@@ -1025,6 +1029,22 @@body.append(none);return;}+ // what the sidebar's dot is about, said where it's acted on: which+ // plugins have a newer version, and one press to update them all+ const outdated = es.filter((e) => (e.latest && e.version && newer(e.latest, e.version)) || (gitBehind(e) && !e.off));+ if (outdated.length) {+ const bar = el("div", "pm-updates");+ const names = outdated.map(shownName).join(t(", "));+ bar.append(el("span", "pm-dot"), el("span", "grow", outdated.length === 1+ ? t("A newer version of {name} is out", { name: names })+ : t("Newer versions of {n} plugins are out: {names}", { n: outdated.length, names })));+ const up = el("button", "pm-act pm-up", busy.has("*") ? t("Updating…") : t("Update all ({n})", { n: outdated.length }));+ up.type = "button";+ up.disabled = busy.size > 0 || checking;+ up.onclick = () => act("*", "update", {}, () => status(t("Plugins updated"), "ok"));+ bar.append(up);+ body.append(bar);+ }// by name, in the order the reader picked (#481), not the order they// were installed inconst list = el("div", "list pm-list");@@ -1037,7 +1057,6 @@fill();body.append(list);const foot = el("div", "pm-foot");- const outdated = es.filter((e) => (e.latest && e.version && newer(e.latest, e.version)) || (gitBehind(e) && !e.off));foot.append(el("span", "", mine.bun ? t("Plugins run on Bun {v}", { v: mine.bunVersion }) : ""), el("span", "grow"));// npm has versions to ask for, and a git one's repository commits; a// folder has none@@ -1050,13 +1069,6 @@c.onclick = () => checkUpdates();foot.append(c);}- if (outdated.length) {- const up = el("button", "pm-act pm-up", busy.has("*") ? t("Updating…") : t("Update all ({n})", { n: outdated.length }));- up.type = "button";- up.disabled = busy.size > 0 || checking;- up.onclick = () => act("*", "update", {}, () => status(t("Plugins updated"), "ok"));- foot.append(up);- }body.append(foot);}diff --git a/internal/gui/tests/plugin-git.test.cjs b/internal/gui/tests/plugin-git.test.cjsindex 661805f82..66ec07273 100644--- a/internal/gui/tests/plugin-git.test.cjs+++ b/internal/gui/tests/plugin-git.test.cjs@@ -133,9 +133,11 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",assert.match(await row.locator(".pm-ver", { hasText: HAVE }).getAttribute("title"), /github:owner\/repo/);const up = row.locator(".val button", { hasText: new RegExp("^" + w.update + "$") });const foot = view.locator(".pm-foot");+ // Update all is with the plugins it names, above the list+ const bar = view.locator(".pm-updates");assert.equal(await up.count(), 0, "at its repository's commit, a git plugin has no Update");assert.equal(await row.locator(".pm-chip", { hasText: w.fresh }).count(), 0);- assert.equal(await foot.locator("button", { hasText: w.all }).count(), 0, "nor is it in Update all");+ assert.equal(await bar.locator("button", { hasText: w.all }).count(), 0, "nor is it in Update all");await shot(view, `plugins-git-current-${engine}-${lang}`);// the repository moves on, its package.json's version the same:@@ -146,7 +148,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",assert.match(await row.locator(".pm-chip", { hasText: w.fresh }).getAttribute("title"), new RegExp(HAVE + ".*github:owner/repo.*" + NEXT));assert.equal(await up.count(), 1, "a git plugin behind its repository can be updated");assert.match(await up.getAttribute("title"), /github:owner\/repo/);- assert.match(await foot.locator("button", { hasText: w.all }).innerText(), /1/);+ assert.match(await bar.locator("button", { hasText: w.all }).innerText(), /1/);await shot(view, `plugins-git-installed-${engine}-${lang}`);const before2 = await scrolls(page);await up.click();@@ -158,7 +160,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",assert.deepEqual(await vers(), ["v1.0.0", NEXT]);assert.equal(await up.count(), 0, "updated, there is nothing to update");assert.equal(await row.locator(".pm-chip", { hasText: w.fresh }).count(), 0);- assert.equal(await foot.locator("button", { hasText: w.all }).count(), 0);+ assert.equal(await bar.locator("button", { hasText: w.all }).count(), 0);// its page: the README it came with, no npm link, the repository as Sourceawait row.locator(".who").click();diff --git a/internal/gui/tests/plugin-update-button.test.cjs b/internal/gui/tests/plugin-update-button.test.cjsindex 7f43c9a3d..0ec4b751f 100644--- a/internal/gui/tests/plugin-update-button.test.cjs+++ b/internal/gui/tests/plugin-update-button.test.cjs@@ -106,7 +106,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",const r = await look(rowUp);sameSize(r, install, "row");assert.equal(r.bg, card.bg, "the row's Update looks as the card's does");- const all = view.locator(".pm-foot button.pm-act.pm-up");+ const all = view.locator(".pm-updates button.pm-act.pm-up");await all.waitFor();assert.equal((await all.textContent()).trim(), w.all);const a = await look(all);diff --git a/internal/gui/tests/plugin-updates.test.cjs b/internal/gui/tests/plugin-updates.test.cjsindex 87accdd57..94b2b2c5f 100644--- a/internal/gui/tests/plugin-updates.test.cjs+++ b/internal/gui/tests/plugin-updates.test.cjs@@ -1,8 +1,11 @@// Run with Node's test runner and Playwright on the module path; see README.md.// Plugin updates: a plugin whose update waits for the reader (someone// else's, or one pinned) puts a dot on Plugins, which goes once it's-// updated; a plugin magpie updated by itself says so on its row. English-// and Chinese; the API is faked here.+// updated; a plugin magpie updated by itself says so on its row. The dot+// says itself in the sidebar: under Plugins, Installed reads "1 update" in+// its count's place while it waits, and Plugins opens on Installed, where+// the plugins with an update are named above the list. Every language, wide and narrow; the+// API is faked here.const assert = require("node:assert/strict");const fs = require("node:fs/promises");const path = require("node:path");@@ -40,18 +43,21 @@ function server(lang) {}const L = {- en: { installed: "Installed", update: "Update", auto: "Auto-updated", out: "An update for opencode-copilot-auth is out", from: /from v0\.1\.3 to v0\.1\.4/ },- zh: { installed: "已安装", update: "更新", auto: "已自动更新", out: "opencode-copilot-auth 有新版本", from: /从 v0\.1\.3 更新到 v0\.1\.4/ },+ en: { bar: "A newer version of opencode-copilot-auth is out", installed: "Installed", update: "Update", auto: "Auto-updated", out: "An update for opencode-copilot-auth is out", from: /from v0\.1\.3 to v0\.1\.4/, one: "1 update" },+ zh: { bar: "opencode-copilot-auth 有新版本", installed: "已安装", update: "更新", auto: "已自动更新", out: "opencode-copilot-auth 有新版本", from: /从 v0\.1\.3 更新到 v0\.1\.4/, one: "1 个更新" },+ "zh-TW": { bar: "opencode-copilot-auth 有新版本", out: "opencode-copilot-auth 有新版本", installed: "已安裝", one: "1 個更新" },+ ja: { bar: "opencode-copilot-auth の新しいバージョンがあります", out: "opencode-copilot-auth のアップデートが公開されました", installed: "インストール済み", one: "1 件のアップデート" },+ de: { bar: "Eine neue Version von opencode-copilot-auth ist da", out: "Ein Update für opencode-copilot-auth ist da", installed: "Installiert", one: "1 Update" },};for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {test(engine + ": plugin updates", async (t) => {const browser = await (engine === "webkit" ? webkit.launch() : chromium.launch({ channel: "chromium" }));t.after(() => browser.close());- for (const lang of ["en", "zh"]) {- await t.test(lang, async () => {+ for (const lang of Object.keys(L)) for (const width of [1024, 600]) {+ await t.test(lang + " " + width, async () => {const w = L[lang];- const page = await (await browser.newContext({ viewport: { width: 980, height: 820 } })).newPage();+ const page = await (await browser.newContext({ viewport: { width, height: 820 } })).newPage();page.setDefaultTimeout(5000);const errors = [];page.on("pageerror", (e) => errors.push(e.message));@@ -67,8 +73,28 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",assert.deepEqual(dot, { w: await page.evaluate(() => document.body.classList.contains("side-nav")) ? "6px" : "5px", pos: "absolute" });await nav.click();+ // in the sidebar, the row the reader acts on says what the dot is+ const side = await page.evaluate(() => document.body.classList.contains("side-nav"));+ const up = page.locator(".nav-s em.up");+ assert.equal(side, width >= 1024, "a sidebar at " + width);+ if (side) {+ await up.waitFor();+ assert.equal(await up.textContent(), w.one);+ assert.match(await up.evaluate((e) => e.parentElement.textContent), new RegExp("^" + w.installed));+ assert.equal(await up.evaluate((e) => getComputedStyle(e).color), await page.evaluate(() => { const p = document.createElement("i"); p.style.color = "var(--accent)"; document.body.append(p); const c = getComputedStyle(p).color; p.remove(); return c; }), "in the dot's colour");+ const box = await up.evaluate((e) => { const r = e.getBoundingClientRect(), b = e.parentElement.getBoundingClientRect(); return r.right <= b.right + 0.5 && r.left >= b.left; });+ assert.ok(box, "the label fits its row");+ }+ // the dot, followed, lands on Installed (the page was last on+ // Discover), which names the plugins with an update firstconst view = page.locator("#view-plugins");- await view.page().locator(":is(.lib-tabs .opt, .nav-s):visible", { hasText: w.installed }).click();+ const bar = view.locator(".pm-updates");+ await bar.waitFor();+ assert.equal(await bar.locator(".grow").textContent(), w.bar);+ assert.equal(await view.locator(".lib-tabs .opt.on").getAttribute("data-sub"), "installed");+ assert.ok(await bar.evaluate((b) => b.getBoundingClientRect().right <= b.closest("#view-plugins").getBoundingClientRect().right + 0.5), "the bar fits");+ assert.ok(await bar.evaluate((b) => b.compareDocumentPosition(b.parentElement.querySelector(".pm-list")) & Node.DOCUMENT_POSITION_FOLLOWING), "above the list");+ if (!w.update) { assert.deepEqual(errors, []); return; }const chip = view.locator(".pm-chip.soft", { hasText: w.auto });await chip.waitFor();assert.match(await chip.getAttribute("title"), w.from);@@ -77,6 +103,9 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",await view.getByRole("button", { name: w.update, exact: true }).first().click();await page.waitForFunction(() => !document.querySelector('#nav button[data-view="plugins"]').classList.contains("has-dot"));assert.equal(await nav.getAttribute("title"), null);+ if (side) await page.locator(".nav-s", { hasText: w.installed }).locator("em:not(.up)").waitFor();+ assert.equal(await up.count(), 0);+ assert.equal(await bar.count(), 0);assert.deepEqual(errors, []);});}diff --git a/site/public/docs/ja/plugins.html b/site/public/docs/ja/plugins.htmlindex 495347b78..848c3d4fd 100644--- a/site/public/docs/ja/plugins.html+++ b/site/public/docs/ja/plugins.html@@ -217,7 +217,7 @@ magpie quota <span class="c"># acme · Pro · 5h 37%<li><b>更新。</b><ul><li>コミュニティのパッケージ(<code>@magpie-community/*</code>)は、magpie の起動から少し後に自動で更新され、その後は 1 時間ごとに更新されます。</li>- <li>そのほかのパッケージは、新しいバージョンがあると <span class="ui">プラグイン</span> にドットが表示され、ユーザーがクリックか <code>magpie plugin update</code> で更新します。</li>+ <li>そのほかのパッケージは、新しいバージョンがあると <span class="ui">プラグイン</span> にドットが表示され、サイドバーの <span class="ui">インストール済み</span> に「1 件のアップデート」と出ます。このときプラグインを開くとインストール済みが開き、新しいバージョンのあるプラグインが上部に <span class="ui">すべてアップデート</span> と並んで表示されます。ユーザーはクリックか <code>magpie plugin update</code> で更新します。</li><li>バージョンを固定した指定(<code>[email protected]</code>)は、ユーザーが更新するまでそのバージョンのままです。<span class="ui">… にアップデート</span>、<span class="ui">すべてアップデート</span>、<code>magpie plugin update</code> は最新版をインストールし、固定を外します。</li><li>git リポジトリには比べるバージョンがありません。ブランチやタグ(<code>#ref</code> がなければデフォルトブランチ)が Bun のインストールしたコミットと違うときだけ、アップデートが表示されます。GitHub のものは GitHub の API に、ほかのホストは <code>git ls-remote</code> で、最大 10 分に 1 回問い合わせ、1 時間ごとのチェックでも問い合わせます。コミットに固定した指定にはアップデートはありません。行にはインストールしたコミットが表示されます。</li></ul></li>diff --git a/site/public/docs/plugins.html b/site/public/docs/plugins.htmlindex bf4479bda..e86c7f18d 100644--- a/site/public/docs/plugins.html+++ b/site/public/docs/plugins.html@@ -217,7 +217,7 @@ magpie quota <span class="c"># acme · Pro · 5h 37%<li><b>Updates.</b><ul><li>The community’s packages (<code>@magpie-community/*</code>) update by themselves a little after magpie starts, then every hour.</li>- <li>Any other package with a newer version shows a dot on <span class="ui">Plugins</span>, and the user updates it with a click or <code>magpie plugin update</code>.</li>+ <li>Any other package with a newer version shows a dot on <span class="ui">Plugins</span>, and in the sidebar <span class="ui">Installed</span> reads “1 update”. Plugins then opens on Installed, which names the plugins with a newer version at the top beside <span class="ui">Update all</span>; the user updates them with a click or <code>magpie plugin update</code>.</li><li>A spec pinned to a version (<code>[email protected]</code>) stays on it until the user updates it: <span class="ui">Update to …</span>, <span class="ui">Update all</span> and <code>magpie plugin update</code> install the newest version and unpin it.</li><li>A git repository has no version to compare. It shows an update when its branch or tag (the default branch without <code>#ref</code>) is at another commit than the one Bun installed: GitHub is asked through its API, any other host with <code>git ls-remote</code>, at most every ten minutes, and the hourly check asks again. A spec pinned to a commit never has one. The row shows the commit installed.</li></ul></li>diff --git a/site/public/docs/zh/plugins.html b/site/public/docs/zh/plugins.htmlindex f396c0098..6b7f439fe 100644--- a/site/public/docs/zh/plugins.html+++ b/site/public/docs/zh/plugins.html@@ -217,7 +217,7 @@ magpie quota <span class="c"># acme · Pro · 5h 37%<li><b>更新。</b><ul><li>社区的包(<code>@magpie-community/*</code>)在 magpie 启动后不久自动更新,之后每小时一次。</li>- <li>其他包有新版本时,<span class="ui">插件</span>上会出现一个小圆点,用户点一下或运行 <code>magpie plugin update</code> 更新。</li>+ <li>其他包有新版本时,<span class="ui">插件</span>上会出现一个小圆点,侧栏里的<span class="ui">已安装</span>显示“1 个更新”。这时打开插件会直接到已安装,顶部列出有新版本的插件和<span class="ui">全部更新</span>;用户点一下或运行 <code>magpie plugin update</code> 更新。</li><li>固定了版本的写法(<code>[email protected]</code>)会停在那个版本,直到用户自己更新:<span class="ui">更新到 …</span>、<span class="ui">全部更新</span>和 <code>magpie plugin update</code> 会装上最新版并取消固定。</li><li>git 仓库没有版本号可比。它的分支或标签(不写 <code>#ref</code> 时是默认分支)指向的提交和 Bun 装的那个不一样时,才显示有更新:GitHub 上的通过 GitHub API 查询,其他主机用 <code>git ls-remote</code>,最多每十分钟问一次,每小时的检查也会再问。固定到某个提交的写法不会有更新。这一行会显示已安装的提交。</li></ul></li>