From db0a9cdafda5b5c62adbb29579e402077454ba45 Mon Sep 17 00:00:00 2001 From: Magiczerowxy Date: Fri, 30 Oct 2026 01:43:05 +0800 Subject: [PATCH] page-chat 0.1.3: smoother streaming, rename, width sync, English effort names (#498) page-chat 0.1.3 (Magiczerowxy): streaming renders the settled blocks once and only the tail per frame; conversations can be renamed (PATCH /api/conversations/:id, title only, token-guarded); a Sync switch keeps the conversation and composer widths equal (composerWidth floor 35); effort names in English with xhigh; a draft row for a new conversation; a status line under each reply. An empty configDir now reads the library from the real config folder. Reviewed at 7c0f68df74bef05ece6f037d574f0c50688c2bb8 (third round; the two earlier reviews' points were checked at this head). Run on mote (macOS, Bun 1.4.2, Node 22, Playwright 1.62.0), sandbox HOME: - packages/chat: bun test, 20 pass / 0 fail. - Whole repo at the PR head: bun test 3284 pass / 8 skip / 0 fail; bun scripts/check.mjs ok. - Whole repo at the PR head merged with origin/main fdc5002: bun test 3655 pass / 8 skip / 0 fail; bun scripts/check.mjs ok. - Playwright probe, Chromium and WebKit, against lib/server.mjs with a fake gateway: a reply whose whole SSE arrives in one write, and one paced 30ms apart, both show "Hello there. / Second para." after the stream ends. Broken by hand: - finish()'s fallback put back to the old `.md-stable` check: the one-write reply shows "" in both engines (paced still fine). - server.mjs `const dir = dirArg;` again: "an empty configDir reads the library from the real config folder" goes red (19 pass / 1 fail). Earlier rounds (4d36cae, both engines): renaming the open conversation survives the next message; a token change reloads the page once; README edited on the original; LF line endings. Not tried: inside the real magpie window (the probe loads the page from the package's own server). --- packages/chat/README.md | 8 +- packages/chat/chat.test.mjs | 64 +++++++ packages/chat/chat/app.js | 352 ++++++++++++++++++++++++++++++++-- packages/chat/chat/index.html | 8 +- packages/chat/chat/style.css | 57 +++++- packages/chat/lib/server.mjs | 27 ++- packages/chat/package.json | 2 +- 7 files changed, 489 insertions(+), 29 deletions(-) diff --git a/packages/chat/README.md b/packages/chat/README.md index 72f2deb..9a6c458 100644 --- a/packages/chat/README.md +++ b/packages/chat/README.md @@ -2,7 +2,7 @@ A chat page in [magpie](https://usemagpie.ai)'s window. Talk to magpie's own models with your MCP servers, instructions and skills, with images and LaTeX, without starting an agent. -Made by **Magic_zero** ([Magiczerowxy](https://github.com/Magiczerowxy)), from [Magiczerowxy/magpie-chat](https://github.com/Magiczerowxy/magpie-chat) (0.1.18). This package is that code, with the changes listed under [Changes from the original](#changes-from-the-original). +Made by **Magic_zero** ([Magiczerowxy](https://github.com/Magiczerowxy)), from [Magiczerowxy/magpie-chat](https://github.com/Magiczerowxy/magpie-chat) (0.1.21). This package is that code, with the changes listed under [Changes from the original](#changes-from-the-original). ![Chat inside magpie's window](https://raw.githubusercontent.com/Magiczerowxy/magpie-chat/main/screenshots/23-math-and-layout.png) @@ -21,9 +21,11 @@ It then has a tab, **Chat** (对话, 對話, チャット), under Plugins in the - **magpie's models.** The list comes from the gateway's `/v1/models`. Models with reasoning levels get an effort picker. - **magpie's library.** Tick instructions and skills from `~/.config/magpie/library/` (folded into the system prompt), and MCP servers from `library.json` (their tools run as real `tool_calls`, at most 8 rounds, Streamable HTTP and stdio). - **Images and files.** Pick, drop or paste them. Images go to the model as `image_url`. -- **Streaming.** Reasoning unfolds while it arrives, then collapses. +- **Streaming.** Reasoning unfolds while it arrives, then collapses. While the answer streams, the page follows it down unless you scroll up yourself; scroll back to the bottom and it resumes. +- **Model status.** Every reply ends with a line saying what the model is doing: `Magpie正在觅食ing… · 2s` with a running timer while it generates, green `Magpie找到了食物! · 2s` when done, red `Magpie没有找到食物` on failure. The elapsed time is kept with the conversation. - **Math.** `$…$`, `$$…$$`, `\(…\)` and `\[…\]` render with a bundled KaTeX 0.16.11. No CDN. -- **Conversations kept**, pinned or deleted, under `~/.config/magpie/magpie-chat/`. +- **Conversations kept**, pinned, renamed or deleted, under `~/.config/magpie/magpie-chat/`. Clicking "+" starts a draft row in the sidebar; it becomes a real conversation as soon as you send, and disappears if you switch away without writing anything. The pencil button on each row renames it inline. +- **Layout.** Conversation width and composer width are adjustable in the sidebar; a **Sync** switch keeps the two equal — move either one and the other follows. - **Looks like magpie.** Colors and fonts come from the window's theme. It registers no provider, asks for no sign-in and stores no credentials of its own. Every request goes out through magpie's gateway, so usage, routing and failover are the same as an agent's. diff --git a/packages/chat/chat.test.mjs b/packages/chat/chat.test.mjs index 66573d0..6617749 100644 --- a/packages/chat/chat.test.mjs +++ b/packages/chat/chat.test.mjs @@ -241,3 +241,67 @@ test("opened from another machine, the launcher takes magpie web's path, and exp // a magpie from before magpie.service: no navigation to a refused 127.0.0.1 expect(await boot({ ready }, "server.lan")).toBe("") }) + + +// ---------- added in 0.1.3: renaming / layout sync / empty configDir ---------- + +test("renaming a conversation via PATCH keeps its messages", async () => { + const h = { ...json, origin: "null", "x-magpie-chat-token": token } + const saved = JSON.parse((await raw("POST", "/api/conversations", h, { title: "before", messages: [{ role: "user", content: "hi" }] })).body) + const renamed = await raw("PATCH", "/api/conversations/" + saved.id, h, { title: "after" }) + expect(renamed.status).toBe(200) + expect(JSON.parse(renamed.body).title).toBe("after") + // the rename must not wipe messages: POST overwrites the whole file, PATCH only touches the title + const got = JSON.parse((await raw("GET", "/api/conversations/" + saved.id, h)).body) + expect(got.title).toBe("after") + expect(got.messages.length).toBe(1) + expect(got.messages[0].content).toBe("hi") +}) + +test("renaming rejects an empty title, a missing conversation and a missing token", async () => { + const h = { ...json, origin: "null", "x-magpie-chat-token": token } + const saved = JSON.parse((await raw("POST", "/api/conversations", h, { title: "x", messages: [] })).body) + expect((await raw("PATCH", "/api/conversations/" + saved.id, h, { title: " " })).status).toBe(400) + expect((await raw("PATCH", "/api/conversations/c_does_not_exist", h, { title: "x" })).status).toBe(404) + expect((await raw("PATCH", "/api/conversations/" + saved.id, { ...json, origin: "null" }, { title: "x" })).status).toBe(403) +}) + +test("settings keep syncWidth and clamp composerWidth to 35", async () => { + const h = { ...json, origin: "null", "x-magpie-chat-token": token } + const saved = JSON.parse((await raw("POST", "/api/settings", h, { syncWidth: true, composerWidth: 10 })).body) + expect(saved.syncWidth).toBe(true) + expect(saved.composerWidth).toBe(35) + const back = JSON.parse((await raw("GET", "/api/settings", h)).body) + expect(back.syncWidth).toBe(true) + expect(back.composerWidth).toBe(35) +}) + +test("an empty configDir reads the library from the real config folder", async () => { + mkdirSync(join(cfg, "library", "instructions"), { recursive: true }) + writeFileSync(join(cfg, "library", "instructions", "probe.md"), "be brief") + const { startServer } = await import("./lib/server.mjs") + const other = await startServer({ configDir: "", options: { port: 0 } }) + try { + const got = await new Promise((resolve, reject) => { + const req = request({ + host: "127.0.0.1", + port: other.port, + method: "GET", + path: "/api/library", + headers: { host: `127.0.0.1:${other.port}`, origin: "null", "x-magpie-chat-token": token } + }, (res) => { + let data = "" + res.setEncoding("utf8") + res.on("data", (c) => (data += c)) + res.on("end", () => resolve({ status: res.statusCode, body: data })) + }) + req.on("error", reject) + req.end() + }) + expect(got.status).toBe(200) + expect(JSON.parse(got.body).instructions.map((i) => i.name)).toContain("probe.md") + } finally { + await other?.close() + } +}) + diff --git a/packages/chat/chat/app.js b/packages/chat/chat/app.js index ac5c170..5ba7c2c 100644 --- a/packages/chat/chat/app.js +++ b/packages/chat/chat/app.js @@ -269,6 +269,41 @@ function parseListBlock(lines, start) { return { node: root, next: i }; } +/* 流式专用渲染:把正文切成"已经写完的块"和"正在写的尾巴" + - 稳定块(最后一个空行之前)只在跨过块边界时重渲染一次,之后整块缓存不再动 + - 尾巴是纯文本,每帧只改 textContent —— 不再每帧清空重建整个 DOM + 以前的写法每帧 renderMarkdown 全量重建,文字节点被反复替换、排版反复重算, + 看上去就是一直抽搐。 */ +function renderStreaming(container, source) { + var text = cleanText(source || ""); + var cut = text.lastIndexOf("\n\n"); + var stable = cut >= 0 ? text.slice(0, cut + 2) : ""; + var tail = cut >= 0 ? text.slice(cut + 2) : text; + + var stableEl = container.firstChild && container.firstChild.classList && container.firstChild.classList.contains("md-stable") + ? container.firstChild : null; + if (!stableEl) { + while (container.firstChild) container.removeChild(container.firstChild); + stableEl = el("div", { class: "md-stable" }); + container.appendChild(stableEl); + container.appendChild(el("div", { class: "md-tail" })); + container.dataset.stableLen = "-1"; + } + var tailEl = container.lastChild; + + if (container.dataset.stableLen !== String(stable.length)) { + renderMarkdown(stableEl, stable); + container.dataset.stableLen = String(stable.length); + } + // 只改尾巴里那个文本节点的值:不重建节点,光标(tail 里的 span)也就不会被删掉重建 + var tnode = tailEl.firstChild; + if (!tnode || tnode.nodeType !== 3) { + tnode = document.createTextNode(""); + tailEl.insertBefore(tnode, tailEl.firstChild); + } + if (tnode.nodeValue !== tail) tnode.nodeValue = tail; +} + function renderMarkdown(container, source) { while (container.firstChild) container.removeChild(container.firstChild); var lines = cleanText(source).replace(/\r\n?/g, "\n").split("\n"); @@ -453,6 +488,9 @@ function mathNode(tex, display) { /* ================= 状态 ================= */ +// 草稿对话的固定 id(不会出现在服务端,只在左侧列表里临时显示) +var DRAFT_ID = "__draft__"; + var state = { boot: null, settings: { @@ -464,6 +502,11 @@ var state = { conversations: [], messages: [], convId: null, + // 点了"新对话"但还没发消息时,左侧先挂一条草稿;发出第一条就变成真对话, + // 空着切走就直接丢掉,不在列表里留空壳。 + draft: null, + // 流式输出时是否跟着往下滚。用户手动往上滑就变 false,滑回底部再变 true。 + follow: true, title: "新对话", busy: false, stopped: false, @@ -474,7 +517,9 @@ var state = { pop: "" }; -var EFFORT_LABEL = { none: "不思考", minimal: "极低", low: "低", medium: "中", high: "高", max: "最高" }; +// 思考强度的显示名。key 是网关给的原始值(映射不动),只是显示成这些词。 +// 注意 xhigh:minimax / qwen 系列会用到,之前漏了会显示成原始串。 +var EFFORT_LABEL = { none: "None", minimal: "Minimal", low: "Low", medium: "Medium", high: "High", xhigh: "Xhigh", max: "Max" }; function effortLabel(name) { return EFFORT_LABEL[name] || String(name); } var toastTimer = null; @@ -489,7 +534,7 @@ function toast(text, isError) { /* ================= HTTP ================= */ -/* 服务给这个页面的口令(写在 HTML 的 meta 里),每个 /api/ 请求都带上: +/* 服务给这个页面的口令(写在 HTML 的 meta 里),每个 api 请求都带上: 别的页面也能发 Origin: null 的请求,口令才说明请求来自这个页面。 */ var TOKEN = (function () { var m = document.querySelector('meta[name="magpie-chat-token"]'); @@ -567,7 +612,9 @@ function streamChat(payload, onEvent, signal) { if (!res.ok) { return res.text().then(function (text) { var msg = text.slice(0, 300); - try { var parsed = JSON.parse(text); msg = parsed.error || msg; reloadForToken(res, parsed); } catch (e) { /* 原样 */ } + var parsed = null; + try { parsed = JSON.parse(text); msg = parsed.error || msg; } catch (e) { /* 原样 */ } + reloadForToken(res, parsed); throw new Error("请求失败:" + (msg || res.status)); }); } @@ -654,7 +701,8 @@ function applySettings(raw) { leftWidth: Number(s.leftWidth) || 0, rightWidth: Number(s.rightWidth) || 0, convWidth: Number(s.convWidth) || 72, - composerWidth: Number(s.composerWidth) || 70 + composerWidth: Number(s.composerWidth) || 70, + syncWidth: s.syncWidth === true }; } @@ -992,6 +1040,21 @@ function applyComposerWidth(pct) { document.documentElement.style.setProperty("--composer-w", v + "%"); } +// "同步调整"打开时,拖动其中一条把另一条也拉到同一个值 +function syncWidthTo(from, v) { + var n = Math.round(Number(v) || 0); + // 两个都要记在 state 里:拖动过程中只改 DOM,等松手才 patchSettings, + // 这里不记的话同步读到的是上一次的值。 + state.settings.convWidth = n; + state.settings.composerWidth = n; + applyConvWidth(n); + applyComposerWidth(n); + $("#convWidth").value = String(n); + $("#composerWidth").value = String(n); + $("#convWidthValue").textContent = n >= 100 ? "铺满" : n + "%"; + $("#composerWidthValue").textContent = n + "%"; +} + function clampWidth(side, v) { var w = WIDTHS[side]; return Math.max(w.min, Math.min(w.max, Math.round(Number(v) || w.min))); @@ -1086,6 +1149,7 @@ function renderSettings() { $("#tempValue").textContent = Number(state.settings.temperature).toFixed(2); $("#maxTokens").value = String(state.settings.maxTokens || 0); $("#showReasoning").setAttribute("aria-checked", state.settings.showReasoning ? "true" : "false"); + $("#syncWidth").setAttribute("aria-checked", state.settings.syncWidth ? "true" : "false"); renderSetList("#instructionList", state.library.instructions || [], "instructions", function (item) { return { key: item.id || item.name, name: item.name || item.id, extra: item.size ? item.size + " B" : "" }; }); @@ -1172,11 +1236,30 @@ function loadConversations() { function renderSessions() { var box = $("#sessionList"); while (box.firstChild) box.removeChild(box.firstChild); - if (!state.conversations.length) { + + var items = state.conversations.slice(); + // 草稿(刚点"新对话"、还没发消息)排在最前,标题就叫"新对话" + if (state.draft) items.unshift(state.draft); + + if (!items.length) { box.appendChild(el("div", { class: "sess-empty", text: "还没有保存的对话" })); return; } - state.conversations.forEach(function (item) { + + items.forEach(function (item) { + if (item.id === DRAFT_ID) { + // 草稿:没写字时叫"新对话",一发送就把刚输入的内容当标题(没有置顶和删除) + var dbtn = el("button", { + class: "sess" + (state.convId ? "" : " on"), + type: "button", + title: item.title || "新对话" + }, + el("span", { class: "sess-title", text: item.title || "新对话" }), + el("span", { class: "sess-time", text: "刚刚" }) + ); + box.appendChild(dbtn); + return; + } var on = item.id === state.convId; var pinned = Boolean(item.pinned); @@ -1190,11 +1273,16 @@ function renderSessions() { var delBtn = el("button", { class: "sess-act", type: "button", title: "删除", "aria-label": "删除" }, el("span", { text: "\u00d7" })); + // 重命名:铅笔图标。按钮里塞不下 input(button 不能嵌交互元素), + // 编辑时把这个条目整体换成一个输入框,提交/取消再换回来。 + var renameBtn = el("button", { class: "sess-act", type: "button", title: "重命名", "aria-label": "重命名" }); + renameBtn.innerHTML = ''; + var btn = el("button", { class: "sess" + (on ? " on" : ""), type: "button", title: item.title || "对话" }, pinned ? el("span", { class: "sess-pin", text: "\u2605" }) : null, el("span", { class: "sess-title", text: item.title || "未命名" }), el("span", { class: "sess-time", text: relTime(item.updated) }), - el("span", { class: "sess-acts" }, pinBtn, delBtn) + el("span", { class: "sess-acts" }, pinBtn, renameBtn, delBtn) ); // 条目本身是 +
diff --git a/packages/chat/chat/style.css b/packages/chat/chat/style.css index af24988..d3a9eea 100644 --- a/packages/chat/chat/style.css +++ b/packages/chat/chat/style.css @@ -283,6 +283,21 @@ input, textarea { font: inherit; color: inherit; } color: var(--muted); } .sess-act:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); } +/* 重命名时临时替换条目用的输入框 */ +.sess-rename { + display: block; + width: 100%; + height: 28px; + padding: 0 8px; + border: 1px solid var(--accent); + border-radius: 7px; + background: var(--card); + color: var(--fg); + font: inherit; + font-size: 12.5px; + outline: none; + box-sizing: border-box; +} .sess-act.pinned { color: var(--accent); } .sess-pin { flex: none; @@ -378,6 +393,13 @@ input, textarea { font: inherit; color: inherit; } .chev { display: inline-flex; flex: none; color: var(--faint); } .pill:hover .chev, .pill.on .chev { color: var(--muted); } +/* 思考强度:档位都很短,不需要跟模型列表一样宽 */ +#effortPop { + width: max-content; + min-width: 104px; + max-width: 160px; +} + /* ---------- popover(仿 magpie .pop) ---------- */ .pop { position: absolute; @@ -661,6 +683,29 @@ input, textarea { font: inherit; color: inherit; } padding: 12px 0 14px; } +/* 流式渲染的两段结构:已写完的块(.md-stable)+ 正在写的尾巴(.md-tail)。 + 尾巴是纯文本,保留换行;两者拼接处不留多余空档。 */ +.turn-body.md .md-stable > :last-child { margin-bottom: 0; } +.turn-body.md .md-stable:empty { display: none; } +.turn-body.md .md-tail { + white-space: pre-wrap; + overflow-wrap: anywhere; +} +.turn-body.md .md-tail:empty { display: none; } + +/* 新消息入场:从下面冒上来 + 渐显。 + 只给刚发出的消息加 .enter,重新打开对话时历史消息不动。 */ +@keyframes turn-in { + from { opacity: 0; transform: translateY(34px); } + to { opacity: 1; transform: translateY(0); } +} +.turn.enter { + animation: turn-in .42s cubic-bezier(.16, .84, .34, 1) both; +} +@media (prefers-reduced-motion: reduce) { + .turn.enter { animation: none; } +} + .turn + .turn { border-top: 1px solid var(--line-2); } .turn-who { display: flex; align-items: center; gap: 7px; min-height: 16px; } @@ -800,8 +845,14 @@ input, textarea { font: inherit; color: inherit; } height: 12px; margin-left: 2px; vertical-align: -2px; + border-radius: 1.5px; background: var(--accent); - animation: blink 1s steps(2, start) infinite; + /* 柔和呼吸而不是硬闪:和文字流出的节奏更搭 */ + animation: caret-breathe 1.1s ease-in-out infinite; +} +@keyframes caret-breathe { + 0%, 100% { opacity: 1; } + 50% { opacity: .22; } } @keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } } @@ -925,8 +976,10 @@ input, textarea { font: inherit; color: inherit; } width: var(--composer-w, 70%); max-width: 100%; margin: 0 auto; + /* 必须是 border-box:content-box 时 width:100% 还要再加左右各几十像素的 padding, + 整条输入框会溢出 .main,直接压到右侧设置栏下面。 */ + box-sizing: border-box; padding: 8px clamp(20px, 5vw, 72px) 0; - box-sizing: content-box; } /* 让 field 的底边就是页面底边,只留一点点视觉呼吸(贴住但不切字) */ diff --git a/packages/chat/lib/server.mjs b/packages/chat/lib/server.mjs index 09a27ef..948dc07 100644 --- a/packages/chat/lib/server.mjs +++ b/packages/chat/lib/server.mjs @@ -81,6 +81,7 @@ const DEFAULTS = { rightWidth: 0, // 设置栏宽度(0 = 用默认值) convWidth: 72, // 会话内容列宽度(%),100 = 铺满 composerWidth: 70, // 输入框宽度(%) + syncWidth: false, // 布局里的"同步调整":打开后两个宽度始终一致 }; function cleanSettings(raw) { @@ -101,7 +102,8 @@ function cleanSettings(raw) { leftWidth: Number.isFinite(Number(s.leftWidth)) ? Math.max(0, Math.min(420, Number(s.leftWidth))) : 0, rightWidth: Number.isFinite(Number(s.rightWidth)) ? Math.max(0, Math.min(560, Number(s.rightWidth))) : 0, convWidth: Number.isFinite(Number(s.convWidth)) ? Math.max(0, Math.min(100, Number(s.convWidth))) : 72, - composerWidth: Number.isFinite(Number(s.composerWidth)) ? Math.max(40, Math.min(100, Number(s.composerWidth))) : 70, + composerWidth: Number.isFinite(Number(s.composerWidth)) ? Math.max(35, Math.min(100, Number(s.composerWidth))) : 70, + syncWidth: s.syncWidth === true, }; } @@ -232,7 +234,7 @@ function corsHeaders(req) { return { "access-control-allow-origin": allow, "access-control-allow-headers": "content-type, " + TOKEN_HEADER, - "access-control-allow-methods": "GET,POST,DELETE,OPTIONS", + "access-control-allow-methods": "GET,POST,PATCH,DELETE,OPTIONS", vary: "Origin", }; } @@ -534,8 +536,12 @@ async function runChat({ res, body, settings, store }, controllers) { } } -export async function startServer({ configDir: dir, options = {} } = {}) { - const store = createStore(dir || configDir()); +export async function startServer({ configDir: dirArg, options = {} } = {}) { + // 调用方常传 configDir: "";libraryView(dir = configDir()) 的默认值只在参数是 + // undefined 时生效,空字符串会让 join("", "library") 变成相对路径,指令 / 技能 / + // MCP 全读不到。这里统一兜成真实目录。 + const dir = dirArg || configDir(); + const store = createStore(dir); const controllers = new Map(); // 0 也是合法的(让系统挑一个空闲端口,测试用) const want = options.port ?? process.env.MAGPIE_CHAT_PORT; @@ -692,6 +698,19 @@ export async function startServer({ configDir: dir, options = {} } = {}) { await store.removeConversation(conv[1]); return send(res, 200, { ok: true }); } + // 只改标题:/api/conversations 的 POST 是整份覆盖(messages 也会被清空), + // 所以重命名单独走 PATCH。 + if (conv && req.method === "PATCH") { + const body = await readBody(req); + const c = await store.getConversation(conv[1]); + if (!c) return send(res, 404, { error: "没有这个对话" }); + const title = String(body.title || "").trim().replace(/\s+/g, " ").slice(0, 90); + if (!title) return send(res, 400, { error: "标题不能为空" }); + c.title = title; + c.updated = Date.now(); + await writeFile(store.convPath(conv[1]), JSON.stringify(c)); + return send(res, 200, { id: c.id, title: c.title, updated: c.updated }); + } if (path === "/api/chat" && req.method === "POST") { const body = await readBody(req); const settings = await store.settings(); diff --git a/packages/chat/package.json b/packages/chat/package.json index 34d9f25..f59bf7e 100644 --- a/packages/chat/package.json +++ b/packages/chat/package.json @@ -1,6 +1,6 @@ { "name": "@magpie-community/page-chat", - "version": "0.1.2", + "version": "0.1.3", "description": "在 magpie 窗口里加一个「对话」页面:用 magpie 自己的模型、MCP 服务器、指令和技能聊天,支持图片与 LaTeX。A chat page inside magpie's window: talk with magpie's own models, MCP servers, instructions and skills, with images and LaTeX.", "author": "Magic_zero (https://github.com/Magiczerowxy)", "files": [