yetihan (#1198): a lock whose owner is a Linux zombie was held for good. process.kill(pid, 0) succeeds on a zombie, so 15 packages' lock and liveness checks counted an exited, unreaped owner as alive. - scripts/proc.mjs: processStatus(pid) is dead on ESRCH, and on Linux also when /proc/<pid>/stat says Z or X; EPERM is "permission", any other error "unknown". processAlive / processExists keep each caller's old EPERM and unknown-error meaning. - scripts/sync-proc.mjs copies it into each package (--check in the tests); every package's own check keeps its old semantics, now with zombies dead. agent-console's daemon bundle and window-warmup's dist are rebuilt. - 15 packages bumped. Review run at 28ef6622 (mote, HOME=$(mktemp -d)): - node scripts/sync-proc.mjs --check: ok. - bun test (whole repo): 8934 pass, 0 fail. - bun scripts/check.mjs: every package ok. - window-warmup's build reproduces its dist/plugin.js byte for byte. agent-console's bundle diff read line by line: the proc module plus esbuild's renumbered imports, nothing else (esbuild isn't installed on mote, so it wasn't rebuilt there). - Real zombie on Linux (WSL, magpie-desktop): a bash child left unreaped by an exec'd sleep, /proc stat "Z": the old kill(0) check says alive, processStatus says dead; the running process says alive. Not tried: each package's lock contention end to end.
70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"name": "@magpie-community/page-window-warmup",
|
|
"version": "0.1.5",
|
|
"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"
|
|
]
|
|
}
|