renderList used to append the task editor after every row, so opening a task that wasn't the last one, or starting a new task while saved ones were listed, put the editor at the bottom of the list. Now the editor follows the row it opened: under the clicked task, or under the new row at the top. The footer's 反馈问题 button had reused the `.link` class, so its 11.5px faint rule restyled the editor's 立即发送一次 and 重试 buttons. The footer now has its own `.foot-link`. window-warmup goes 0.1.2 -> 0.1.3.
The browser smoke test (Chromium and WebKit) checks three things. Opening the first of two saved tasks puts the editor right under that row and not last in the list. Clicking 新建任务 then puts it right under the new top row, with one editor and not last. 立即发送一次 computes to 12px while the footer computes to 11.5px.
Run at the reviewed head b5787fee (on mote, macOS, Bun 1.4.2, Playwright 1.62.0 Chromium + WebKit):
- package `bun test`: 265 pass, 0 fail, browser smoke included in both engines. The browser file ran again on its own: 6 pass, 0 fail.
- `tsc --noEmit` (typescript 5.9.3, @types/bun 1.4.4): exit 0.
- `bun scripts/build.ts` rebuilds `dist/` byte for byte.
- `bun scripts/check.mjs`: window-warmup passes.
- repo root `HOME=$(mktemp -d) bun test`: 5926 tests, 0 fail. Browser tests skip at the root because bun test doesn't read NODE_PATH.
- merges cleanly onto main f2dc68c1. PR CI (test, on-npm) green.
Broken by hand, rebuilt into dist/, browser file run again each time:
- Only the new-task branch put back (editor appended after the loop): red in both engines. The wait for the editor under the top row times out after 15s.
- Footer back on `.link` in index.html and style.css: red in both engines, with run 11.5px instead of 12px.
- The whole old renderList: red in both engines, with editorIsLast true and prevIsOpenRow false.
- Head restored: green in both engines.
Not tried: the page inside a real magpie window.
70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"name": "@magpie-community/page-window-warmup",
|
|
"version": "0.1.3",
|
|
"description": "窗口预热 Window Warmup:定时消息插件,定时给指定供应商/账号/模型发一条短消息,在额度窗口重置后、每天定时或每隔几小时自动预热保活,提前开启5小时/每周订阅额度(配额)窗口,适用 Codex、Claude、GLM 智谱、ZCode 等。Scheduled keep-alive message to warm up quota / usage / rate limit windows after reset (cron-like).",
|
|
"author": "YangHonghang (https://github.com/YangHonghang)",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"main": "dist/plugin.js",
|
|
"files": [
|
|
"dist",
|
|
"page",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"magpie": ">=0.1.1340",
|
|
"bun": ">=1.4.2"
|
|
},
|
|
"scripts": {
|
|
"build": "bun scripts/build.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "bun test"
|
|
},
|
|
"magpie": {
|
|
"page": {
|
|
"title": "Window Warmup",
|
|
"titles": {
|
|
"zh": "窗口预热",
|
|
"zh-TW": "窗口預熱",
|
|
"ja": "ウィンドウ予熱"
|
|
},
|
|
"file": "page/index.html",
|
|
"service": {
|
|
"port": 3492,
|
|
"option": "port"
|
|
},
|
|
"icon": "page/icon.svg"
|
|
},
|
|
"options": {
|
|
"port": 3492
|
|
},
|
|
"permissions": [],
|
|
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODU4NThkIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cmVjdCB4PSIzIiB5PSIzIiB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHJ4PSI0Ii8+CiAgPHBhdGggZD0iTTMgOGgxOCIvPgogIDxjaXJjbGUgY3g9IjYuMiIgY3k9IjUuNSIgcj0iLjkiIGZpbGw9IiM4NTg1OGQiIHN0cm9rZT0ibm9uZSIvPgogIDxjaXJjbGUgY3g9IjkiIGN5PSI1LjUiIHI9Ii45IiBmaWxsPSIjODU4NThkIiBzdHJva2U9Im5vbmUiLz4KICA8cGF0aCBkPSJNOC4zIDE4LjJjLTEuMi0xIDEuMi0xLjYgMC0yLjZzMS4yLTEuNiAwLTIuNiIvPgogIDxwYXRoIGQ9Ik0xMiAxOC4zYy0xLjMtMS4yIDEuMy0yIDAtMy4yczEuMy0yIDAtMy4yIi8+CiAgPHBhdGggZD0iTTE1LjcgMTguMmMtMS4yLTEgMS4yLTEuNiAwLTIuNnMxLjItMS42IDAtMi42Ii8+Cjwvc3ZnPgo="
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "5.9.3",
|
|
"@types/bun": "1.4.4"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/window-warmup"
|
|
},
|
|
"homepage": "https://github.com/magpie-community/plugins/tree/main/packages/window-warmup",
|
|
"bugs": "https://github.com/magpie-community/plugins/issues",
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-page",
|
|
"magpie-plugin",
|
|
"llm",
|
|
"window-warmup",
|
|
"cron",
|
|
"quota",
|
|
"warmup",
|
|
"keep-alive",
|
|
"schedule",
|
|
"rate-limit"
|
|
]
|
|
}
|