[email protected]
clean confidence 85% action allow analyzed 2026-09-24 17:31 UTC by yolo in 13 tool calls, with lab detonation
Summary
Install hook node hooks/postinstall.js calls ensureSqliteRuntime() and ensureTrayRuntime(), which run `npm install` for sql.js and better-sqlite3 into ~/.polyrouter/runtime/ — a standard pattern to avoid Windows EBUSY locks on native modules. The canary credential read (/home/andy/.gitconfig) was by npm itself during dependency resolution, not by polyrouter code. The bundled Next.js app (app/.next-cli-build/) is the local gateway dashboard; its API routes manage AI tool configs at runtime, consistent with the stated purpose.
Intent
Local AI gateway and OpenAI-compatible API router. The install hook warms up native runtime dependencies (sqlite, systray) into ~/.polyrouter/runtime. The runtime server manages AI coding tool configs (e.g. ~/.claude/settings.json) as part of its gateway function.
Findings
hooks/postinstall.js:6-7hooks/sqliteRuntime.js:78-88hooks/sqliteRuntime.js:78-88Lab evidence
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (timed out).
DNS names requested: registry[.]npmjs[.]org
Direct connections: socket 127[.]0[.]0[.]1:53
Canary credential files read: /home/andy/.gitconfig
Files written outside the package: /home/andy/.polyrouter/runtime/package.json