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.
73 lines
2.1 KiB
JSON
73 lines
2.1 KiB
JSON
{
|
|
"name": "@magpie-community/page-harnessweight",
|
|
"version": "0.4.1",
|
|
"description": "HarnessWeight: a magpie page that weighs every agent harness behind your gateway, by agent rather than by model: input tokens, cache hit rate, tokens at full price, failures, latency, and the tool definitions each harness re-sends every turn",
|
|
"type": "module",
|
|
"files": [
|
|
"index.mjs",
|
|
"harnessweight.hooks.mjs",
|
|
"service.mjs",
|
|
"lib",
|
|
"page",
|
|
"app",
|
|
"brand/assets",
|
|
"lib/proc.mjs",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-plugin",
|
|
"agent-harness",
|
|
"harness",
|
|
"token-usage",
|
|
"claude-code",
|
|
"codex",
|
|
"cost",
|
|
"llm-gateway"
|
|
],
|
|
"license": "MIT",
|
|
"magpie": {
|
|
"hooks": "./harnessweight.hooks.mjs",
|
|
"page": {
|
|
"title": "HarnessWeight",
|
|
"titles": {
|
|
"zh": "HarnessWeight",
|
|
"zh-TW": "HarnessWeight",
|
|
"ja": "HarnessWeight"
|
|
},
|
|
"file": "page/index.html",
|
|
"icon": "page/icon.svg",
|
|
"service": {
|
|
"port": 3496,
|
|
"option": "port"
|
|
}
|
|
},
|
|
"options": {
|
|
"port": 3496,
|
|
"dataDir": "",
|
|
"usageLog": "",
|
|
"agents": [],
|
|
"gatewayTimeoutMs": 2000,
|
|
"gatewayUrl": ""
|
|
},
|
|
"permissions": [],
|
|
"summary": {
|
|
"en": "Compare agent harnesses behind your gateway by input tokens, cache, failures, latency and estimated tool-definition size. Its local service reads this machine's usage ledger; a read-only hook samples tool sizes and tracks in-flight requests.",
|
|
"zh": "按 Agent 对比网关后面的输入 token、缓存、失败率、延迟与工具定义体积估算。本机服务读取用量记录,只读 hook 采样工具大小并追踪进行中的请求。"
|
|
}
|
|
},
|
|
"main": "./index.mjs",
|
|
"scripts": {
|
|
"test": "node --test test/*.test.mjs",
|
|
"dev": "node service.mjs"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/page-harnessweight"
|
|
},
|
|
"homepage": "https://github.com/webkubor/harnessweight",
|
|
"author": "webkubor"
|
|
}
|