#1198 (yetihan) moved 15 packages' liveness checks onto scripts/proc.mjs, so a Linux zombie no longer holds a lock. Two were left on a bare kill(pid, 0), which answers for a zombie as for a live process: - deepzora's bridge lock (bridge.mjs lock(), the same code as reasonix-desktop's, which #1198 fixed): a zombie owner left "Another bridge operation is running" until the zombie was reaped. - gumloop's ledger lock peers (gumloop.mjs isAlive): a zombie peer was counted live, so its ticket was waited on. Both now import a synced proc.mjs (scripts/sync-proc.mjs lists 17 copies; both package.json files ship it). gumloop's crash-window test writes its instrumented copy into a temp dir, so proc.mjs is copied beside it. A new guard in scripts/proc.test.mjs fails when any package file outside tests and proc.mjs calls kill(pid, 0). deepzora 0.2.1, gumloop 0.1.2. Run (mote, HOME=$(mktemp -d)): - bun test scripts/proc.test.mjs packages/deepzora packages/gumloop: 111 pass, 0 fail. node --test scripts/proc.test.mjs: 9 pass. - deepzora node --test deepzora.test.mjs: 13 pass. - node scripts/sync-proc.mjs --check: ok. bun scripts/check.mjs: ok. Broken by hand: main's bridge.mjs and gumloop.mjs with the new tests: the guard names both files, and the copies test fails on deepzora. Not tried: a real zombie owner for these two (#1198's fork-based zombie check covers proc.mjs itself); a real Gumloop or DeepZora account. gumloop under node --test fails 3 of 3 on bun:test imports, the same on origin/main.
38 lines
897 B
JSON
38 lines
897 B
JSON
{
|
|
"name": "@magpie-community/opencode-gumloop-auth",
|
|
"version": "0.1.2",
|
|
"description": "Gumloop (gumloop.com) with your API key and user id in OpenCode and magpie: per-account models, and a credit estimate Gumloop's API doesn't give",
|
|
"homepage": "https://www.gumloop.com/",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": [
|
|
"proc.mjs",
|
|
"index.mjs",
|
|
"gumloop.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"magpie",
|
|
"gumloop"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/magpie-community/plugins",
|
|
"directory": "packages/gumloop"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test"
|
|
},
|
|
"magpie": {
|
|
"icon": "https://www.gumloop.com/favicon.ico",
|
|
"maxConcurrency": 4
|
|
}
|
|
}
|