site: a contributors page, everyone magpie's history credits with the releases that came of it (packinggoodsllc_07668 on Discord)
usemagpie.ai/docs/contributors, /docs/zh/contributors and
/docs/ja/contributors list each person the release notes' thanks line
would (the previous commit's rules), with the versions their reports,
ideas or code went into, newest first: three shown, the rest under
"N more", each linking its release. A name with a known GitHub login
links it; the platform a report came from (Discord, X, …) sits under it.
How it is built: wrangler.jsonc's build runs `node credits-cli.mjs wall`
at each deploy. It reads every tag's commits from git, the issue authors
from GitHub (reusing the last build's answers), and writes
public/contributors.json and the table in each language,
public/contributors/{en,zh,ja}.html (gitignored). worker.js puts that
table into the page's #wall with HTMLRewriter; without it the page keeps
a line pointing at the release notes. A build that can't read git leaves
the last list. The page says how names are found (only as already public
in the history, no emails, no maintainer, agents or bots) and how to be
left off: Discord, an issue, or a PR to site/contributors-exclude.txt.
Every docs page's footer and the home page's (foot.contrib in zh, ja, de)
link it. Styles reuse docs.css's table and tokens.
Run (mote, node 22): node --test site/*.test.mjs 77/77. The wall on a
clone of origin/main c991733d with a real token: 1338 people over 5933
released commits in 19s, ~1MB of table a language, no email address in
it.
Broken by hand: withWall matching /docs/contributors only → the
injection test red on /docs/zh/contributors; ja/docker.html's footer link
removed → the footer test red on it.
Not tried: the page in a browser before deploy (the worker's rewriter is
stood in for in the test; the deployed pages are checked after).
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
.wrangler/
|
||||
node_modules/
|
||||
public/contributors.json
|
||||
public/contributors.json.tmp
|
||||
public/contributors/
|
||||
|
||||
+44
-5
@@ -6,16 +6,22 @@
|
||||
// Chinese on the second, nothing when no one is credited. yetone/
|
||||
// magpie-releases' release run calls it for the commits since the last
|
||||
// tag.
|
||||
// node site/credits-cli.mjs wall [out]
|
||||
// public/contributors.json (or out) from every tag's commits, and the
|
||||
// contributors page's table in each language beside it
|
||||
// (public/contributors/en.html, zh, ja), which worker.js puts into the
|
||||
// page. wrangler.jsonc's build runs it at each deploy.
|
||||
//
|
||||
// The issue and PR authors a subject's "(#N)" names are asked of GitHub's
|
||||
// GraphQL API with GH_TOKEN, GITHUB_TOKEN or `gh auth token`. When that
|
||||
// can't be read, those people are left out; the rest still goes out. Names in
|
||||
// can't be read, those people are left out (and `wall` keeps the authors
|
||||
// its last output knew); the rest still goes out. Names in
|
||||
// contributors-exclude.txt are never given.
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { readFileSync, writeFileSync, renameSync, existsSync, mkdirSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { credit, everyone, thanks, refKey, parse } from "./credits.mjs";
|
||||
import { credit, everyone, thanks, wall, refKey, parse, renderWall } from "./credits.mjs";
|
||||
|
||||
const here = dirname(fileURLToPath(import.meta.url));
|
||||
const warn = (m) => process.stderr.write(`credits: ${m}\n`);
|
||||
@@ -101,8 +107,41 @@ async function cmdThanks(range) {
|
||||
if (en) process.stdout.write(en + "\n" + thanks(people, "zh") + "\n");
|
||||
}
|
||||
|
||||
async function cmdWall(out = join(here, "public", "contributors.json")) {
|
||||
let before = {};
|
||||
try { before = JSON.parse(readFileSync(out, "utf8")); } catch {}
|
||||
let commits;
|
||||
try {
|
||||
commits = log(["--topo-order", "--reverse", "--decorate-refs=refs/tags/v*", "HEAD"]);
|
||||
} catch (e) {
|
||||
warn(`git log failed (${e.message.split("\n")[0]}); ${existsSync(out) ? "the last list is kept" : "no list is written"}`);
|
||||
return;
|
||||
}
|
||||
// a commit goes out in the first tag at or after it
|
||||
let pending = [];
|
||||
for (const c of commits) {
|
||||
pending.push(c);
|
||||
if (c.tags.length) {
|
||||
const v = c.tags.map((t) => t.slice(1)).sort((a, b) => a.localeCompare(b, "en", { numeric: true }))[0];
|
||||
for (const p of pending) p.v = v;
|
||||
pending = [];
|
||||
}
|
||||
}
|
||||
const released = commits.filter((c) => c.v && c.parents < 2);
|
||||
const refs = released.flatMap((c) => parse(c.subject).refs);
|
||||
const issueAuthors = await authors(refs, { known: before.issueAuthors || {} });
|
||||
const people = wall(released, { issueAuthors, exclude: excluded() });
|
||||
const data = { generated: new Date().toISOString(), head: commits.length ? commits.at(-1).sha : "", issueAuthors, people };
|
||||
const put = (file, text) => { writeFileSync(file + ".tmp", text); renameSync(file + ".tmp", file); };
|
||||
put(out, JSON.stringify(data) + "\n");
|
||||
const dir = join(dirname(out), "contributors");
|
||||
mkdirSync(dir, { recursive: true });
|
||||
for (const lang of ["en", "zh", "ja"]) put(join(dir, `${lang}.html`), renderWall(data, lang) + "\n");
|
||||
warn(`${people.length} people over ${released.length} released commits → ${out}`);
|
||||
}
|
||||
|
||||
if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {
|
||||
const [cmd, arg] = process.argv.slice(2);
|
||||
const run = cmd === "thanks" ? cmdThanks(arg) : Promise.reject(new Error("usage: credits-cli.mjs thanks <from>..<to>"));
|
||||
run.catch((e) => { warn(e.message); process.exit(1); });
|
||||
const run = cmd === "thanks" ? cmdThanks(arg) : cmd === "wall" ? cmdWall(arg) : Promise.reject(new Error("usage: credits-cli.mjs thanks <range> | wall [out]"));
|
||||
run.catch((e) => { warn(e.message); process.exit(cmd === "wall" ? 0 : 1); });
|
||||
}
|
||||
|
||||
+79
-2
@@ -14,8 +14,9 @@
|
||||
// counts only when it is shaped like a handle with digits ("mrwl666") or the
|
||||
// same name is credited plainly somewhere else ("axelburks on Discord").
|
||||
//
|
||||
// Used by credits-cli.mjs for the release notes' thanks line. It imports
|
||||
// nothing, so the site's worker can use it too.
|
||||
// Used by credits-cli.mjs (the release notes' thanks line, and
|
||||
// public/contributors.json at deploy) and by worker.js (the contributors
|
||||
// page). It imports nothing, so the worker can bundle it.
|
||||
|
||||
export const MAINTAINERS = ["yetone"];
|
||||
// agents and bots that author or co-author commits
|
||||
@@ -211,3 +212,79 @@ export function thanks(people, lang) {
|
||||
const list = names.length > 1 ? names.slice(0, -1).join(", ") + " and " + names.at(-1) : names[0];
|
||||
return `Thanks to ${list}, whose reports and code went into this release. Everyone who helped: [contributors](${WALL.en}).`;
|
||||
}
|
||||
|
||||
// The subject as the page shows it: its first part, without the brackets
|
||||
// that only credit or number it.
|
||||
export function what(subject) {
|
||||
let s = String(subject).split(" — ")[0];
|
||||
s = s.replace(/\s*\(([^()]*)\)/g, (all, inner) => {
|
||||
const one = { names: [], refs: [] };
|
||||
group(inner, one);
|
||||
return one.names.length || one.refs.length ? "" : all;
|
||||
}).trim();
|
||||
return s.length > 200 ? s.slice(0, 199) + "…" : s;
|
||||
}
|
||||
|
||||
// --- the contributors page ---
|
||||
|
||||
const esc = (s) => String(s).replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c]);
|
||||
const WORDS = {
|
||||
en: { name: "Who", led: "What came of it, newest first", more: (n) => `${n} more`, none: "The list isn't available right now." },
|
||||
zh: { name: "谁", led: "带来的改动,新的在前", more: (n) => `还有 ${n} 项`, none: "名单暂时无法显示。" },
|
||||
ja: { name: "誰が", led: "そこから生まれた変更(新しい順)", more: (n) => `ほか ${n} 件`, none: "一覧は今は表示できません。" },
|
||||
};
|
||||
const SHOWN = 3;
|
||||
const RELEASE = (v) => `https://github.com/yetone/magpie-releases/releases/tag/v${encodeURIComponent(v)}`;
|
||||
|
||||
// The table the page shows from contributors.json's data.
|
||||
export function renderWall(data, lang) {
|
||||
const w = WORDS[lang] || WORDS.en;
|
||||
const people = data && Array.isArray(data.people) ? data.people : [];
|
||||
if (!people.length) return `<p>${esc(w.none)}</p>`;
|
||||
const line = (r) => r.what.map((t) => `<li><a href="${RELEASE(r.v)}"><code>v${esc(r.v)}</code></a> ${esc(t)}</li>`).join("");
|
||||
const rows = people.map((p) => {
|
||||
const name = p.github ? `<a href="https://github.com/${encodeURIComponent(p.github)}">${esc(p.name)}</a>` : esc(p.name);
|
||||
const via = (p.via || []).length ? `<br><span class="cw-via">${p.via.map(esc).join(" · ")}</span>` : "";
|
||||
const items = [];
|
||||
for (const r of p.releases || []) for (const t of r.what || []) items.push({ v: r.v, what: [t] });
|
||||
const head = items.slice(0, SHOWN).map(line).join("");
|
||||
const rest = items.slice(SHOWN);
|
||||
const more = rest.length ? `<details><summary>${esc(w.more(rest.length))}</summary><ul>${rest.map(line).join("")}</ul></details>` : "";
|
||||
return `<tr><td><b>${name}</b>${via}</td><td><ul>${head}</ul>${more}</td></tr>`;
|
||||
}).join("");
|
||||
return `<div class="table-wrap"><table class="cw"><thead><tr><th>${esc(w.name)}</th><th>${esc(w.led)}</th></tr></thead><tbody>${rows}</tbody></table></div>`;
|
||||
}
|
||||
|
||||
const vnum = (v) => String(v).split(".").map((x) => parseInt(x, 10) || 0);
|
||||
export function newer(a, b) {
|
||||
const x = vnum(a), y = vnum(b);
|
||||
for (let i = 0; i < Math.max(x.length, y.length); i++) if ((x[i] || 0) !== (y[i] || 0)) return (x[i] || 0) > (y[i] || 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
// contributors.json's people from released commits ({ ...commit, v }):
|
||||
// each person with the versions their reports led to, newest first.
|
||||
export function wall(commits, opts) {
|
||||
const per = credit(commits, opts);
|
||||
const all = new Map();
|
||||
commits.forEach((c, i) => {
|
||||
if (!c.v) return;
|
||||
for (const p of per[i]) {
|
||||
let e = all.get(p.key);
|
||||
if (!e) all.set(p.key, (e = { name: p.name, via: [], github: "", byV: new Map() }));
|
||||
for (const v of p.via) if (!e.via.includes(v)) e.via.push(v);
|
||||
if (p.github) e.github = p.github;
|
||||
if (!e.byV.has(c.v)) e.byV.set(c.v, []);
|
||||
const t = what(c.subject);
|
||||
if (t && !e.byV.get(c.v).includes(t)) e.byV.get(c.v).push(t);
|
||||
}
|
||||
});
|
||||
const people = [...all.values()].map((e) => {
|
||||
const releases = [...e.byV.entries()].map(([v, w]) => ({ v, what: w })).sort((a, b) => (newer(a.v, b.v) ? -1 : newer(b.v, a.v) ? 1 : 0));
|
||||
const out = { name: e.name, via: e.via, releases };
|
||||
if (e.github) out.github = e.github;
|
||||
return out;
|
||||
});
|
||||
people.sort((a, b) => (newer(a.releases[0].v, b.releases[0].v) ? -1 : newer(b.releases[0].v, a.releases[0].v) ? 1 : lower(a.name) < lower(b.name) ? -1 : 1));
|
||||
return people;
|
||||
}
|
||||
|
||||
+22
-1
@@ -2,7 +2,7 @@
|
||||
// one from yetone/magpie's own history, word for word.
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { parse, credit, everyone, thanks } from "./credits.mjs";
|
||||
import { parse, credit, everyone, thanks, what, wall, renderWall } from "./credits.mjs";
|
||||
import { authors, excluded } from "./credits-cli.mjs";
|
||||
import { mkdtempSync, writeFileSync, rmSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
@@ -91,6 +91,8 @@ test("commit authors and co-authors are credited, agents and machines not, and n
|
||||
test("the exclusion list leaves a person out everywhere", () => {
|
||||
const s = "library: an MCP router says which computer it is, so an agent can pick between two (packinggoodsllc_07668 on Discord)";
|
||||
assert.deepEqual(names(s, { exclude: ["PackingGoodsLLC_07668"] }), []);
|
||||
const commits = [{ subject: s, v: "0.1.2569" }];
|
||||
assert.deepEqual(wall(commits, { exclude: ["packinggoodsllc_07668"] }), []);
|
||||
assert.deepEqual(excluded(), []); // the checked-in list has comments only
|
||||
const dir = mkdtempSync(join(tmpdir(), "credits-"));
|
||||
try {
|
||||
@@ -113,6 +115,25 @@ test("the release notes' thanks line, in English and Chinese", () => {
|
||||
assert.equal(thanks([], "en"), "");
|
||||
});
|
||||
|
||||
test("the page shows what each person's reports led to, newest first", () => {
|
||||
assert.equal(what("redact: a decimal's digits are not masked as a number of their own (willz, Discord)"), "redact: a decimal's digits are not masked as a number of their own");
|
||||
assert.equal(what("plugin: gateway key limits are the Key limits plugin on the gateway's budget point (P3)"), "plugin: gateway key limits are the Key limits plugin on the gateway's budget point (P3)");
|
||||
const people = wall([
|
||||
{ subject: "search: searchers picked to follow the one named, tried in their order when it fails (axelburks on Discord)", v: "0.1.2561" },
|
||||
{ subject: "gui: Busy models last takes a custom threshold, 1 to 9999 (axelburks)", v: "0.1.2564" },
|
||||
{ subject: "redact: a decimal's digits are not masked as a number of their own (willz, Discord)", v: "0.1.2560" },
|
||||
]);
|
||||
assert.deepEqual(people.map((p) => [p.name, p.releases.map((r) => r.v)]), [["axelburks", ["0.1.2564", "0.1.2561"]], ["willz", ["0.1.2560"]]]);
|
||||
const html = renderWall({ people: [{ name: "<b>x</b>", via: ["Discord"], github: "x", releases: [{ v: "0.1.1", what: ["a & b"] }] }] }, "zh");
|
||||
assert.match(html, /<b>x<\/b>/);
|
||||
assert.match(html, /a & b/);
|
||||
assert.match(html, /releases\/tag\/v0\.1\.1/);
|
||||
assert.match(html, /新的在前/);
|
||||
assert.match(renderWall({}, "ja"), /一覧/);
|
||||
const many = renderWall({ people: [{ name: "n", releases: [1, 2, 3, 4, 5].map((i) => ({ v: `0.1.${i}`, what: ["w"] })) }] }, "en");
|
||||
assert.match(many, /<summary>2 more<\/summary>/);
|
||||
});
|
||||
|
||||
test("issue authors GitHub can't give are left out, not guessed", async () => {
|
||||
const refs = [{ repo: "yetone/magpie", n: 1 }, { repo: "yetone/magpie", n: 2 }];
|
||||
const ok = async () => ({ ok: true, json: async () => ({ data: { repository: { i1: { author: { login: "alice", __typename: "User" } }, i2: { author: { login: "dependabot", __typename: "Bot" } } } } }) });
|
||||
|
||||
@@ -138,6 +138,7 @@ const zh = {
|
||||
"plat.win": "10 及以上",
|
||||
"foot.start": "快速上手",
|
||||
"foot.feed": "更新源",
|
||||
"foot.contrib": "贡献墙",
|
||||
"foot.apache": "与 <a href=\"https://magpie.apache.org\">Apache Magpie</a> 及 <a href=\"https://apache.org\">Apache 软件基金会</a>没有隶属关系。",
|
||||
|
||||
"nav.masking": "脱敏",
|
||||
@@ -288,6 +289,7 @@ const ja = {
|
||||
"plat.win": "10 以降",
|
||||
"foot.start": "はじめに",
|
||||
"foot.feed": "更新フィード",
|
||||
"foot.contrib": "コントリビューター",
|
||||
"foot.apache": "<a href=\"https://magpie.apache.org\">Apache Magpie</a> および <a href=\"https://apache.org\">Apache Software Foundation</a> とは関係ありません。",
|
||||
|
||||
"nav.masking": "マスク",
|
||||
@@ -438,6 +440,7 @@ const de = {
|
||||
"plat.win": "10 oder neuer",
|
||||
"foot.start": "Erste Schritte",
|
||||
"foot.feed": "Update-Feed",
|
||||
"foot.contrib": "Mitwirkende",
|
||||
"foot.apache": "Nicht verbunden mit <a href=\"https://magpie.apache.org\">Apache Magpie</a> oder der <a href=\"https://apache.org\">Apache Software Foundation</a>.",
|
||||
|
||||
"nav.masking": "Maskierung",
|
||||
|
||||
@@ -154,6 +154,13 @@ pre .s { color: var(--ink2); }
|
||||
.url .v { color: var(--ink2); }
|
||||
|
||||
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 20px; background: var(--card); }
|
||||
/* the contributors page's list (credits.mjs renderWall) */
|
||||
.cw td:first-child { min-width: 8em; white-space: normal; overflow-wrap: anywhere; }
|
||||
.cw ul { margin: 0; padding: 0; list-style: none; }
|
||||
.cw li { margin: 0 0 4px; }
|
||||
.cw details summary { cursor: pointer; color: var(--ink2); font-size: 13px; }
|
||||
.cw details ul { margin-top: 4px; }
|
||||
.cw-via { color: var(--ink3); font-size: 12px; font-weight: 400; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
|
||||
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
||||
tr:last-child td { border-bottom: 0; }
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Contributors · magpie docs</title>
|
||||
<meta name="description" content="The people whose reports, ideas and code went into magpie, each with the releases that came of them.">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
<script>
|
||||
(() => {
|
||||
let mode = "system";
|
||||
try { mode = localStorage.getItem("theme") || "system"; } catch {}
|
||||
const q = matchMedia("(prefers-color-scheme: dark)");
|
||||
const apply = () => {
|
||||
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
|
||||
document.documentElement.dataset.theme = t;
|
||||
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
|
||||
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
|
||||
};
|
||||
q.addEventListener("change", () => mode === "system" && apply());
|
||||
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
|
||||
window.themeMode = () => mode;
|
||||
apply();
|
||||
})();
|
||||
</script>
|
||||
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/img/icon-256.png">
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:title" content="Contributors">
|
||||
<meta property="og:description" content="Who helped make magpie, release by release.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/contributors">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav><div class="wrap">
|
||||
<a class="brand" href="/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>Docs</small></a>
|
||||
<div class="links">
|
||||
<a href="/">Home</a>
|
||||
<a href="/docs/start">Get started</a>
|
||||
<a href="/docs/intent">Intent routing</a>
|
||||
<a href="/docs/plugins">Plugins</a>
|
||||
<a class="toc-only" href="/docs/remote">Remote magpie</a>
|
||||
<a class="toc-only" href="/docs/docker">Docker</a>
|
||||
<a class="toc-only" href="/docs/privacy">Privacy</a>
|
||||
<a class="toc-only" href="/docs/masking">Privacy masking</a>
|
||||
<a class="toc-only" href="/docs/mcp-router">MCP router</a>
|
||||
<a href="/docs/import">Add to magpie</a>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
<div class="langs">
|
||||
<button class="icon-btn lang" type="button" aria-label="Language" title="Language" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
|
||||
<div class="lang-menu" id="langs" hidden>
|
||||
<a href="/docs/contributors" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/contributors" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/contributors" hreflang="ja" lang="ja">日本語</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
|
||||
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
|
||||
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
|
||||
<a class="btn small" href="/#get">Download</a>
|
||||
</div></nav>
|
||||
|
||||
<main class="wrap doc">
|
||||
<aside class="toc">
|
||||
<p>Contributors</p>
|
||||
<a href="#overview">Overview</a>
|
||||
<a href="#list">The list</a>
|
||||
<a href="#how">How names are found</a>
|
||||
<a href="#leave">To be left off</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">Docs · Contributors</p>
|
||||
<h1>Contributors</h1>
|
||||
<p class="lede">magpie is shaped by the people who tell us what broke and ask for what is missing. Everyone below is credited in magpie’s history, with the releases their reports, ideas or code went into, newest first. Thank you.</p>
|
||||
|
||||
<h2 id="list"><a class="anchor" href="#list">The list</a></h2>
|
||||
<div id="wall"><p>The list is built from git history when the site is deployed, and isn’t here right now. Each release’s notes on <a href="https://github.com/yetone/magpie-releases/releases">GitHub</a> end with the people it thanks.</p></div>
|
||||
|
||||
<h2 id="how"><a class="anchor" href="#how">How names are found</a></h2>
|
||||
<p>A name is listed when one of these is true of a commit that went out in a release:</p>
|
||||
<ul>
|
||||
<li>its subject credits the person, as in <code>(name on Discord)</code> or <code>(spotted by @login)</code>;</li>
|
||||
<li>it names an issue or pull request (<code>#1234</code>, <code>plugins#56</code>) the person opened on GitHub;</li>
|
||||
<li>the person wrote it, or is a co-author on it.</li>
|
||||
</ul>
|
||||
<p>Only names already public in magpie’s history are used, as they are written there; no email address is shown. The maintainer, coding agents and bots aren’t listed. A name that links to GitHub is that account; a platform under a name is where the report came from. The list is brought up to date each time the site is deployed, and each release’s notes thank its own people the same way.</p>
|
||||
|
||||
<h2 id="leave"><a class="anchor" href="#leave">To be left off</a></h2>
|
||||
<p>If you don’t want your name here or in release notes, say so on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a>, <a href="https://github.com/yetone/magpie/issues/new">open an issue</a>, or send a pull request adding it to <a href="https://github.com/yetone/magpie/blob/main/site/contributors-exclude.txt"><code>site/contributors-exclude.txt</code></a>. It is left out from the next deploy and the next release. The same goes for a name that is wrong or missing.</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer><div class="wrap">
|
||||
<span>© 2026 magpie · MIT</span>
|
||||
<div class="links">
|
||||
<a href="/">Home</a>
|
||||
<a href="/docs/start">Get started</a>
|
||||
<a href="/docs/intent">Intent routing</a>
|
||||
<a href="/docs/plugins">Plugins</a>
|
||||
<a href="/docs/remote">Remote magpie</a>
|
||||
<a href="/docs/docker">Docker</a>
|
||||
<a href="/docs/privacy">Privacy</a>
|
||||
<a href="/docs/masking">Privacy masking</a>
|
||||
<a href="/docs/mcp-router">MCP router</a>
|
||||
<a href="/docs/import">Add to magpie</a>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
const next = { system: "light", light: "dark", dark: "system" };
|
||||
document.querySelectorAll("button.theme").forEach((b) => {
|
||||
b.dataset.mode = themeMode();
|
||||
b.title = "Theme: " + themeMode();
|
||||
b.addEventListener("click", () => setTheme(next[themeMode()]));
|
||||
});
|
||||
|
||||
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
|
||||
b.textContent = "Copied"; setTimeout(() => (b.textContent = "Copy"), 1400);
|
||||
} catch {}
|
||||
}));
|
||||
})();
|
||||
</script>
|
||||
<script src="/docs.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -227,6 +227,7 @@ docker logs magpie</pre>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -269,6 +269,7 @@ href = <span class="s">"https://usemagpie.ai/import#"</span> + urlencode({
|
||||
<a href="/docs/mcp-router">MCP router</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -162,6 +162,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"</
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -334,6 +334,7 @@ The number of its kind (0 for none):</pre>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>コントリビューター · magpie ドキュメント</title>
|
||||
<meta name="description" content="報告やアイデア、コードが magpie に入った人たちと、そこから生まれたリリース。">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
<script>
|
||||
(() => {
|
||||
let mode = "system";
|
||||
try { mode = localStorage.getItem("theme") || "system"; } catch {}
|
||||
const q = matchMedia("(prefers-color-scheme: dark)");
|
||||
const apply = () => {
|
||||
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
|
||||
document.documentElement.dataset.theme = t;
|
||||
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
|
||||
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
|
||||
};
|
||||
q.addEventListener("change", () => mode === "system" && apply());
|
||||
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
|
||||
window.themeMode = () => mode;
|
||||
apply();
|
||||
})();
|
||||
</script>
|
||||
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/img/icon-256.png">
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:title" content="コントリビューター">
|
||||
<meta property="og:description" content="magpie を手伝ってくれた人たち、リリースごとに。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/ja/contributors">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav><div class="wrap">
|
||||
<a class="brand" href="/ja/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>ドキュメント</small></a>
|
||||
<div class="links">
|
||||
<a href="/ja/">ホーム</a>
|
||||
<a href="/docs/ja/start">はじめに</a>
|
||||
<a href="/docs/ja/intent">インテントルーティング</a>
|
||||
<a href="/docs/ja/plugins">プラグイン</a>
|
||||
<a class="toc-only" href="/docs/ja/remote">リモート magpie</a>
|
||||
<a class="toc-only" href="/docs/ja/docker">Docker</a>
|
||||
<a class="toc-only" href="/docs/ja/privacy">プライバシー</a>
|
||||
<a class="toc-only" href="/docs/ja/masking">プライバシーマスキング</a>
|
||||
<a class="toc-only" href="/docs/ja/mcp-router">MCP ルーター</a>
|
||||
<a href="/docs/ja/import">magpie に追加</a>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
<div class="langs">
|
||||
<button class="icon-btn lang" type="button" aria-label="言語" title="言語" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
|
||||
<div class="lang-menu" id="langs" hidden>
|
||||
<a href="/docs/contributors" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/contributors" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/contributors" hreflang="ja" lang="ja">日本語</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="Discord の magpie" title="Discord に参加"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
|
||||
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="GitHub の magpie" title="GitHub のソースコード"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
|
||||
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
|
||||
<a class="btn small" href="/#get">ダウンロード</a>
|
||||
</div></nav>
|
||||
|
||||
<main class="wrap doc">
|
||||
<aside class="toc">
|
||||
<p>コントリビューター</p>
|
||||
<a href="#overview">概要</a>
|
||||
<a href="#list">一覧</a>
|
||||
<a href="#how">名前の集め方</a>
|
||||
<a href="#leave">載せないでほしいとき</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">ドキュメント · コントリビューター</p>
|
||||
<h1>コントリビューター</h1>
|
||||
<p class="lede">magpie は、何が壊れたか、何が足りないかを教えてくれる人たちによって形作られています。以下の全員が magpie の履歴に名前が記されており、その報告やアイデア、コードが入ったリリースを新しい順に並べています。ありがとうございます。</p>
|
||||
|
||||
<h2 id="list"><a class="anchor" href="#list">一覧</a></h2>
|
||||
<div id="wall"><p>一覧はサイトをデプロイするたびに git の履歴から作られますが、今はここにありません。<a href="https://github.com/yetone/magpie-releases/releases">GitHub</a> の各リリースノートの最後に、そのリリースで感謝する人が載っています。</p></div>
|
||||
|
||||
<h2 id="how"><a class="anchor" href="#how">名前の集め方</a></h2>
|
||||
<p>リリースに入ったコミットが次のどれかに当てはまると、その名前が載ります。</p>
|
||||
<ul>
|
||||
<li>コミットの件名にその人の名前がある(<code>(name on Discord)</code>、<code>(spotted by @login)</code> など)。</li>
|
||||
<li>コミットが挙げる issue や pull request(<code>#1234</code>、<code>plugins#56</code>)をその人が GitHub で開いた。</li>
|
||||
<li>その人がコミットを書いた、または共同作者である。</li>
|
||||
</ul>
|
||||
<p>magpie の履歴ですでに公開されている名前だけを、そこでの表記のまま使います。メールアドレスは表示しません。メンテナー、コーディングエージェント、ボットは載せません。GitHub へのリンクがある名前はそのアカウントで、名前の下のプラットフォームは報告が来た場所です。一覧はサイトをデプロイするたびに更新され、各リリースノートも同じ方法でそのリリースの人に感謝します。</p>
|
||||
|
||||
<h2 id="leave"><a class="anchor" href="#leave">載せないでほしいとき</a></h2>
|
||||
<p>ここやリリースノートに名前を載せたくない場合は、<a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で伝えるか、<a href="https://github.com/yetone/magpie/issues/new">issue を開く</a>か、<a href="https://github.com/yetone/magpie/blob/main/site/contributors-exclude.txt"><code>site/contributors-exclude.txt</code></a> に名前を加える pull request を送ってください。次のデプロイと次のリリースから載らなくなります。名前の間違いや漏れも同じように教えてください。</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer><div class="wrap">
|
||||
<span>© 2026 magpie · MIT</span>
|
||||
<div class="links">
|
||||
<a href="/ja/">ホーム</a>
|
||||
<a href="/docs/ja/start">はじめに</a>
|
||||
<a href="/docs/ja/intent">インテントルーティング</a>
|
||||
<a href="/docs/ja/plugins">プラグイン</a>
|
||||
<a href="/docs/ja/remote">リモート magpie</a>
|
||||
<a href="/docs/ja/docker">Docker</a>
|
||||
<a href="/docs/ja/privacy">プライバシー</a>
|
||||
<a href="/docs/ja/masking">プライバシーマスキング</a>
|
||||
<a href="/docs/ja/mcp-router">MCP ルーター</a>
|
||||
<a href="/docs/ja/import">magpie に追加</a>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
const next = { system: "light", light: "dark", dark: "system" };
|
||||
document.querySelectorAll("button.theme").forEach((b) => {
|
||||
b.dataset.mode = themeMode();
|
||||
b.title = "Theme: " + themeMode();
|
||||
b.addEventListener("click", () => setTheme(next[themeMode()]));
|
||||
});
|
||||
|
||||
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
|
||||
b.textContent = "コピーしました"; setTimeout(() => (b.textContent = "コピー"), 1400);
|
||||
} catch {}
|
||||
}));
|
||||
})();
|
||||
</script>
|
||||
<script src="/docs.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -227,6 +227,7 @@ docker logs magpie</pre>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -269,6 +269,7 @@ href = <span class="s">"https://usemagpie.ai/import#"</span> + urlencode({
|
||||
<a href="/docs/ja/mcp-router">MCP ルーター</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -334,6 +334,7 @@ The number of its kind (0 for none):</pre>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -178,6 +178,7 @@
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -141,6 +141,7 @@ magpie library mcp router off</pre>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -1027,6 +1027,7 @@ document.getElementById(<span class="s">"calls"</span>).textContent = `${s.calls
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -223,6 +223,7 @@
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -237,6 +237,7 @@ curl -s http://127.0.0.1:3425/v1/magpie/concurrency</pre>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -350,6 +350,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve</pre>
|
||||
<a href="/docs/integrate">アプリ連携</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/ja/contributors">コントリビューター</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -178,6 +178,7 @@
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -141,6 +141,7 @@ magpie library mcp router off</pre>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -1027,6 +1027,7 @@ document.getElementById(<span class="s">"calls"</span>).textContent = `${s.calls
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -223,6 +223,7 @@
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -237,6 +237,7 @@ curl -s http://127.0.0.1:3425/v1/magpie/concurrency</pre>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -350,6 +350,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve</pre>
|
||||
<a href="/docs/integrate">Integrate</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/contributors">Contributors</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>贡献墙 · magpie 文档</title>
|
||||
<meta name="description" content="反馈、建议和代码进入了 magpie 的每一个人,以及由此带来的版本。">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
<script>
|
||||
(() => {
|
||||
let mode = "system";
|
||||
try { mode = localStorage.getItem("theme") || "system"; } catch {}
|
||||
const q = matchMedia("(prefers-color-scheme: dark)");
|
||||
const apply = () => {
|
||||
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
|
||||
document.documentElement.dataset.theme = t;
|
||||
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
|
||||
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
|
||||
};
|
||||
q.addEventListener("change", () => mode === "system" && apply());
|
||||
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
|
||||
window.themeMode = () => mode;
|
||||
apply();
|
||||
})();
|
||||
</script>
|
||||
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/img/icon-256.png">
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:title" content="贡献墙">
|
||||
<meta property="og:description" content="谁帮助了 magpie,按版本列出。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/zh/contributors">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav><div class="wrap">
|
||||
<a class="brand" href="/zh/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>文档</small></a>
|
||||
<div class="links">
|
||||
<a href="/zh/">首页</a>
|
||||
<a href="/docs/zh/start">快速上手</a>
|
||||
<a href="/docs/zh/intent">意图路由</a>
|
||||
<a href="/docs/zh/plugins">插件开发</a>
|
||||
<a class="toc-only" href="/docs/zh/remote">远程 magpie</a>
|
||||
<a class="toc-only" href="/docs/zh/docker">Docker</a>
|
||||
<a class="toc-only" href="/docs/zh/privacy">隐私</a>
|
||||
<a class="toc-only" href="/docs/zh/masking">本地脱敏</a>
|
||||
<a class="toc-only" href="/docs/zh/mcp-router">MCP 路由</a>
|
||||
<a href="/docs/zh/import">Add to magpie</a>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
<div class="langs">
|
||||
<button class="icon-btn lang" type="button" aria-label="语言" title="语言" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
|
||||
<div class="lang-menu" id="langs" hidden>
|
||||
<a href="/docs/contributors" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/contributors" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/contributors" hreflang="ja" lang="ja">日本語</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
|
||||
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
|
||||
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
|
||||
<a class="btn small" href="/#get">下载</a>
|
||||
</div></nav>
|
||||
|
||||
<main class="wrap doc">
|
||||
<aside class="toc">
|
||||
<p>贡献墙</p>
|
||||
<a href="#overview">概览</a>
|
||||
<a href="#list">名单</a>
|
||||
<a href="#how">名单怎么来的</a>
|
||||
<a href="#leave">不想被列出</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">文档 · 贡献墙</p>
|
||||
<h1>贡献墙</h1>
|
||||
<p class="lede">magpie 是被告诉我们哪里坏了、还缺什么的人塑造出来的。下面每个人都在 magpie 的历史里被记了名,后面是他们的反馈、建议或代码进入的版本,新的在前。谢谢你们。</p>
|
||||
|
||||
<h2 id="list"><a class="anchor" href="#list">名单</a></h2>
|
||||
<div id="wall"><p>名单在每次部署网站时从 git 历史生成,现在暂时不在这里。<a href="https://github.com/yetone/magpie-releases/releases">GitHub</a> 上每个版本的更新说明末尾都列出了这次感谢的人。</p></div>
|
||||
|
||||
<h2 id="how"><a class="anchor" href="#how">名单怎么来的</a></h2>
|
||||
<p>进入某个已发布版本的提交满足下面任意一条,就会列出这个名字:</p>
|
||||
<ul>
|
||||
<li>提交标题里记了这个人,比如 <code>(name on Discord)</code> 或 <code>(spotted by @login)</code>;</li>
|
||||
<li>提交提到的 issue 或 pull request(<code>#1234</code>、<code>plugins#56</code>)是这个人在 GitHub 上开的;</li>
|
||||
<li>提交是这个人写的,或者这个人是共同作者。</li>
|
||||
</ul>
|
||||
<p>只用 magpie 历史里本来就公开的名字,按那里的写法;不显示任何邮箱。维护者、编码代理和机器人不列出。带 GitHub 链接的名字就是那个账号;名字下面的平台是反馈的来源。每次部署网站时名单会更新,每个版本的更新说明也按同样的方式感谢这次的人。</p>
|
||||
|
||||
<h2 id="leave"><a class="anchor" href="#leave">不想被列出</a></h2>
|
||||
<p>如果不想出现在这里或更新说明里,在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 说一声、<a href="https://github.com/yetone/magpie/issues/new">开一个 issue</a>,或者发 pull request 把名字加进 <a href="https://github.com/yetone/magpie/blob/main/site/contributors-exclude.txt"><code>site/contributors-exclude.txt</code></a>。下次部署和下个版本起就不再列出。名字写错或漏了,也一样告诉我们。</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer><div class="wrap">
|
||||
<span>© 2026 magpie · MIT</span>
|
||||
<div class="links">
|
||||
<a href="/zh/">首页</a>
|
||||
<a href="/docs/zh/start">快速上手</a>
|
||||
<a href="/docs/zh/intent">意图路由</a>
|
||||
<a href="/docs/zh/plugins">插件开发</a>
|
||||
<a href="/docs/zh/remote">远程 magpie</a>
|
||||
<a href="/docs/zh/docker">Docker</a>
|
||||
<a href="/docs/zh/privacy">隐私</a>
|
||||
<a href="/docs/zh/masking">本地脱敏</a>
|
||||
<a href="/docs/zh/mcp-router">MCP 路由</a>
|
||||
<a href="/docs/zh/import">Add to magpie</a>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
const next = { system: "light", light: "dark", dark: "system" };
|
||||
document.querySelectorAll("button.theme").forEach((b) => {
|
||||
b.dataset.mode = themeMode();
|
||||
b.title = "Theme: " + themeMode();
|
||||
b.addEventListener("click", () => setTheme(next[themeMode()]));
|
||||
});
|
||||
|
||||
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
|
||||
b.textContent = "已复制"; setTimeout(() => (b.textContent = "复制"), 1400);
|
||||
} catch {}
|
||||
}));
|
||||
})();
|
||||
</script>
|
||||
<script src="/docs.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -227,6 +227,7 @@ docker logs magpie</pre>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -269,6 +269,7 @@ href = <span class="s">"https://usemagpie.ai/import#"</span> + urlencode({
|
||||
<a href="/docs/zh/mcp-router">MCP 路由</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -162,6 +162,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"</
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -334,6 +334,7 @@ The number of its kind (0 for none):</pre>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -178,6 +178,7 @@
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -141,6 +141,7 @@ magpie library mcp router off</pre>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -1027,6 +1027,7 @@ document.getElementById(<span class="s">"calls"</span>).textContent = `${s.calls
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -223,6 +223,7 @@
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -237,6 +237,7 @@ curl -s http://127.0.0.1:3425/v1/magpie/concurrency</pre>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -350,6 +350,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve</pre>
|
||||
<a href="/docs/zh/integrate">接入应用</a>
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="/docs/zh/contributors">贡献墙</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
@@ -741,6 +741,7 @@ magpie tui <span class="c" data-i18n="cli.c.tui"># t
|
||||
<a href="https://github.com/yetone/magpie">GitHub</a>
|
||||
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
|
||||
<a href="https://github.com/yetone/magpie-releases/releases" data-i18n="nav.releases">Releases</a>
|
||||
<a href="/docs/contributors" data-i18n="foot.contrib">Contributors</a>
|
||||
<a href="/api/latest" data-i18n="foot.feed">Update feed</a>
|
||||
<a href="https://x.com/yetone">@yetone</a>
|
||||
</div>
|
||||
|
||||
+22
-2
@@ -23,6 +23,10 @@
|
||||
// a picture a plugin, market or import link names,
|
||||
// fetched here so its host sees Cloudflare, not the
|
||||
// user (the app fetches every remote icon this way)
|
||||
// /docs/contributors, /docs/zh/contributors, /docs/ja/contributors
|
||||
// the contributors page, its table put in from
|
||||
// public/contributors/<lang>.html (credits-cli.mjs
|
||||
// wall, at each deploy)
|
||||
// /download the Apple Silicon dmg
|
||||
// /download/mac-arm64 the same; /download/mac-intel the Intel dmg
|
||||
// /download/windows the Windows app (x64); /download/windows-arm64
|
||||
@@ -146,7 +150,7 @@ export default {
|
||||
// a page not written in that language yet stays English
|
||||
if (DOC_LANGS.includes(lang) && (await env.ASSETS.fetch(new Request(new URL(there, url), { method: "HEAD" }))).ok)
|
||||
return new Response(null, { status: 302, headers: { Location: there + url.search, ...vary } });
|
||||
const res = beacon(await env.ASSETS.fetch(req));
|
||||
const res = beacon(await withWall(await env.ASSETS.fetch(req), env, url));
|
||||
const out = new Response(res.body, res);
|
||||
out.headers.append("Vary", "Accept-Language, Cookie");
|
||||
out.headers.set("Cache-Control", "no-cache");
|
||||
@@ -171,7 +175,7 @@ export default {
|
||||
}
|
||||
if (url.pathname === "/install.sh" && req.method === "GET")
|
||||
ctx.waitUntil(capture("magpie site install script", { client: client(req), country: country(req) }));
|
||||
return beacon(await env.ASSETS.fetch(req));
|
||||
return beacon(await withWall(await env.ASSETS.fetch(req), env, url));
|
||||
},
|
||||
// the cron (wrangler.jsonc's triggers) keeps the ledger the Stable
|
||||
// channel is chosen from
|
||||
@@ -362,6 +366,22 @@ export async function relay(req, url) {
|
||||
const WEB_ANALYTICS = `<script>if(!(navigator.doNotTrack=="1"||window.doNotTrack=="1"||navigator.globalPrivacyControl)){!function(t,e){var o,n,p,r;e.__SV||(window.posthog&&window.posthog.__loaded)||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+" (stub)"},o="capture register unregister opt_out_capturing opt_in_capturing has_opted_out_capturing set_config".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init("${POSTHOG_KEY}",{api_host:location.origin+"/r",ui_host:"https://us.posthog.com",persistence:"localStorage",person_profiles:"identified_only",capture_pageview:true,capture_pageleave:true,autocapture:true,enable_heatmaps:true,capture_dead_clicks:true,capture_exceptions:true,capture_performance:{web_vitals:true,network_timing:true},session_recording:{maskAllInputs:true},disable_surveys:true,respect_dnt:true})}</script>`;
|
||||
const BEACON = `<script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "c09e76abf16b40b2aa5571c196efb847"}'></script>` + WEB_ANALYTICS;
|
||||
|
||||
// The contributors page: its #wall gets the table credits-cli.mjs rendered
|
||||
// for that language at deploy. Without it (a deploy that couldn't build
|
||||
// it) the page keeps the line it is written with.
|
||||
const WALL_PAGE = /^\/docs\/(?:(zh|ja)\/)?contributors(?:\.html)?$/;
|
||||
export async function withWall(res, env, url) {
|
||||
const m = url.pathname.match(WALL_PAGE);
|
||||
if (!m || !res.ok || !(res.headers.get("Content-Type") || "").startsWith("text/html")) return res;
|
||||
let table = "";
|
||||
try {
|
||||
const got = await env.ASSETS.fetch(new Request(new URL(`/contributors/${m[1] || "en"}.html`, url)));
|
||||
if (got.ok) table = await got.text();
|
||||
} catch {}
|
||||
if (!table.includes("<table")) return res;
|
||||
return new HTMLRewriter().on("#wall", { element: (el) => el.setInnerContent(table, { html: true }) }).transform(res);
|
||||
}
|
||||
|
||||
function beacon(res) {
|
||||
if (!(res.headers.get("Content-Type") || "").startsWith("text/html")) return res;
|
||||
return new HTMLRewriter().on("body", { element: (el) => el.append(BEACON, { html: true }) }).transform(res);
|
||||
|
||||
@@ -580,3 +580,88 @@ test("sponsors: the home page and the READMEs link every sponsor through /go", a
|
||||
const home = readFileSync(pages.home[0], "utf8");
|
||||
for (const s of SPONSORS.filter((s) => s.home)) assert.ok(home.includes(`href="/go/${s.id}/home"`), s.id);
|
||||
});
|
||||
|
||||
// HTMLRewriter is Cloudflare's; this stands in for the two uses here: a
|
||||
// selector's inner content set, and the body appended to
|
||||
class FakeRewriter {
|
||||
constructor() { this.h = []; }
|
||||
on(sel, h) { this.h.push([sel, h]); return this; }
|
||||
transform(res) {
|
||||
const hs = this.h;
|
||||
return new Response(new ReadableStream({
|
||||
async start(c) {
|
||||
let t = await res.text();
|
||||
for (const [sel, h] of hs) {
|
||||
let inner, tail = "";
|
||||
h.element({ setInnerContent: (x) => (inner = x), append: (x) => (tail += x) });
|
||||
if (sel === "#wall" && inner !== undefined) t = t.replace(/(<div id="wall">)[\s\S]*?(<\/div>)/, (_, a, b) => a + inner + b);
|
||||
if (sel === "body") t = t.replace("</body>", tail + "</body>");
|
||||
}
|
||||
c.enqueue(new TextEncoder().encode(t));
|
||||
c.close();
|
||||
},
|
||||
}), res);
|
||||
}
|
||||
}
|
||||
|
||||
test("contributors: each language's page gets its own table, and keeps its line without one", async () => {
|
||||
const { readFileSync } = await import("node:fs");
|
||||
const { renderWall } = await import("./credits.mjs");
|
||||
const data = { people: [{ name: "packinggoodsllc_07668", via: ["Discord"], releases: [{ v: "0.1.2581", what: ["a contributors page"] }] }] };
|
||||
const page = (p) => new URL(`./public${p}.html`, import.meta.url);
|
||||
let fragments = true;
|
||||
const asked = [];
|
||||
const env = {
|
||||
ASSETS: {
|
||||
fetch: async (r) => {
|
||||
const p = new URL(r.url).pathname.replace(/\.html$/, "");
|
||||
asked.push(p);
|
||||
const m = p.match(/^\/contributors\/(en|zh|ja)$/);
|
||||
if (m) return fragments ? new Response(renderWall(data, m[1]), { headers: { "Content-Type": "text/html" } }) : new Response("nf", { status: 404 });
|
||||
try { return new Response(readFileSync(page(p), "utf8"), { headers: { "Content-Type": "text/html; charset=utf-8" } }); } catch { return new Response("nf", { status: 404 }); }
|
||||
},
|
||||
},
|
||||
};
|
||||
const was = globalThis.HTMLRewriter;
|
||||
globalThis.HTMLRewriter = FakeRewriter;
|
||||
try {
|
||||
const get = async (path) => (await worker.fetch(new Request(`https://usemagpie.ai${path}`, { headers: { Cookie: "lang=en" } }), env, ctx)).text();
|
||||
for (const [path, lang, head] of [["/docs/contributors", "en", "What came of it"], ["/docs/zh/contributors", "zh", "带来的改动"], ["/docs/ja/contributors.html", "ja", "そこから生まれた"]]) {
|
||||
const html = await get(path);
|
||||
assert.match(html, /<div id="wall"><div class="table-wrap"><table class="cw">/, path);
|
||||
assert.ok(html.includes(head), `${path} has the ${lang} table`);
|
||||
assert.ok(html.includes("packinggoodsllc_07668") && html.includes("v0.1.2581"), path);
|
||||
assert.match(html, /static\.cloudflareinsights\.com/, `${path} keeps the beacon`);
|
||||
}
|
||||
fragments = false;
|
||||
const bare = await get("/docs/zh/contributors");
|
||||
assert.ok(!bare.includes('<table class="cw">'));
|
||||
assert.match(bare, /<div id="wall"><p>名单在每次部署网站时/);
|
||||
// no other page asks for a table
|
||||
asked.length = 0;
|
||||
await get("/docs/start");
|
||||
assert.deepEqual(asked, ["/docs/start"]);
|
||||
} finally {
|
||||
globalThis.HTMLRewriter = was;
|
||||
}
|
||||
});
|
||||
|
||||
test("contributors: the pages say how to be left off, and every docs footer links them", async () => {
|
||||
const { readFileSync, readdirSync } = await import("node:fs");
|
||||
const dir = (d) => new URL(`./public/docs/${d}`, import.meta.url);
|
||||
for (const [pre, file] of [["/docs/", "contributors.html"], ["/docs/zh/", "zh/contributors.html"], ["/docs/ja/", "ja/contributors.html"]]) {
|
||||
const html = readFileSync(dir(file), "utf8");
|
||||
assert.match(html, /<div id="wall">/, file);
|
||||
assert.ok(html.includes("site/contributors-exclude.txt"), file);
|
||||
for (const l of ["en", "zh", "ja"]) assert.ok(html.includes(`hreflang="${l}" href="https://usemagpie.ai/docs/${l === "en" ? "" : l + "/"}contributors"`), `${file} ${l}`);
|
||||
assert.ok(!/privacy" hreflang=|og:url" content="[^"]*privacy/.test(html), `${file} still points at the page it was made from`);
|
||||
}
|
||||
for (const sub of ["", "zh/", "ja/"]) {
|
||||
const pre = `/docs/${sub}`;
|
||||
for (const f of readdirSync(dir(sub)).filter((f) => f.endsWith(".html"))) {
|
||||
const foot = readFileSync(dir(sub + f), "utf8").split("<footer")[1];
|
||||
assert.ok(foot.includes(`<a href="${pre}contributors">`), `${sub}${f}'s footer`);
|
||||
}
|
||||
}
|
||||
assert.ok(readFileSync(new URL("./public/index.html", import.meta.url), "utf8").includes('<a href="/docs/contributors" data-i18n="foot.contrib">'));
|
||||
});
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
"name": "usemagpie",
|
||||
"main": "worker.js",
|
||||
"compatibility_date": "2026-09-01",
|
||||
// the contributors page's list, from git history (credits-cli.mjs); a
|
||||
// build that can't read git or GitHub keeps the last list, or none
|
||||
"build": { "command": "node credits-cli.mjs wall" },
|
||||
"assets": {
|
||||
"directory": "./public",
|
||||
"binding": "ASSETS",
|
||||
|
||||
Reference in New Issue
Block a user