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.
This commit is contained in:
@@ -179,7 +179,7 @@ These add a page to magpie's window, in the app and in `magpie web`, under Plugi
|
||||
| Package | Page | Reads |
|
||||
|---|---|---|
|
||||
| [usage](packages/usage) | Usage glance: calls, errors, tokens and cost for today, 7 or 30 days, and the models behind them | `usage:summary` |
|
||||
| [free-tokens](packages/free-tokens) | AIHOT's Token freebies in three tiers (already configured and usable / needs one more plugin / no plugin yet), with the plugin to install or the exact login step for each | none; its host part reads ~/.config/magpie (providers/checkin) on open and fetches aihot.news/free-tokens.data |
|
||||
| [free-tokens](packages/free-tokens) | AIHOT's Token freebies in three tiers (already configured and usable / needs one more plugin / no plugin yet), with the plugin to install or the exact login step for each | none; its host part reads magpie's folder (providers/checkin) and fetches aihot.news/free-tokens.data once each time the plugin host starts |
|
||||
| [day-card](packages/day-card) | Day card: a day of your usage drawn as a card (tokens, cost, each agent and its models, streak, average day), copied as a picture or saved as a PNG | `usage:day` |
|
||||
| [powercontext](packages/powercontext) | Connection settings for an independently deployed PowerContext service | None |
|
||||
| [nowledge-mem](packages/nowledge-mem) | Connection settings, recall and capture switches, a real connection test, and the scope of what is sent | None |
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
AIHOT「Token 羊毛」页面:在 magpie 窗口里分三档看各家大模型的免费额度——**已配置可用** / **有插件待配置** / **暂无插件**,并对每条给出该装的插件或登录路径。
|
||||
|
||||
数据来自 [AIHOT · Token 羊毛](https://aihot.news/free-tokens),每个用户在自己的电脑上打开页面时直连读一次(不代理、不镜像、不随包分发、不后台轮询)。只展示官方厂商额度(`src/allowlist.js`);图标用 magpie 自带品牌图标,其余首字母色块。页脚署名「数据源:AIHOT」并链回。
|
||||
数据来自 [AIHOT · Token 羊毛](https://aihot.news/free-tokens),每个用户在自己的电脑上直连读一次:magpie 的插件宿主启动时(打开 magpie、装或改插件之后),不是每次打开页面时(不代理、不镜像、不随包分发、不后台轮询)。只展示官方厂商额度(`src/allowlist.js`);图标用 magpie 自带品牌图标,其余首字母色块。页脚署名「数据源:AIHOT」并链回。
|
||||
|
||||
> 已取得 AIHOT 书面授权(2026-11-10):免费、不接广告/赞助、每用户本机打开时读一次、不做代理/镜像/数据分发。
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// magpie-free-tokens host part:仅在页面打开(宿主启动)时拉一次 AIHOT、读本机 magpie、写 page/data.js。
|
||||
// magpie-free-tokens host part:仅在插件宿主启动时拉一次 AIHOT(不是每次打开页面)、读本机 magpie、写 page/data.js。
|
||||
// 只导出 default {id, server}(不带任何命名导出,免得被 check.mjs 当插件函数调用)。
|
||||
import { refresh } from "./src/refresh.js";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/page-free-tokens",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "AIHOT Token 羊毛:在 magpie 里看哪些羊毛已配置可用、哪些差个插件、哪些还没插件。",
|
||||
"type": "module",
|
||||
"main": "./index.js",
|
||||
|
||||
Reference in New Issue
Block a user