Files
yetone 801a311480 free-tokens: say it reads AIHOT when the plugin host starts, not on open (0.1.1)
The host part's server() runs each time magpie starts the plugin host
(magpie opening, a plugin installed or changed), not each time the page
is opened. The READMEs and index.js said "on open"; the review of #885
asked for this wording and the merged text still had the old one.

Run: bun scripts/check.mjs free-tokens ok, bun test packages/free-tokens
62 pass (mote). Text only; no behaviour change.
2026-11-10 09:28:58 +08:00

7 lines
420 B
JavaScript

// magpie-free-tokens host part:仅在插件宿主启动时拉一次 AIHOT(不是每次打开页面)、读本机 magpie、写 page/data.js。
// 只导出 default {id, server}(不带任何命名导出,免得被 check.mjs 当插件函数调用)。
import { refresh } from "./src/refresh.js";
const server = async (input) => { await refresh(input); return {}; };
export default { id: "free-tokens", server };