feat: add pnpm store mount, pre-flight checks, and idle timeout for reviewer containers

- Detect pnpm projects and mount global store read-only so hardlinks resolve
- npm/yarn/bun need no extra mounts (node_modules is self-contained)
- Pre-flight check: verify Docker running + image exists (cached after first call)
- Add activity-based idle timeout (reset on stdout/stderr like host runner)
- Clean up orphaned containers on shutdown (not just startup)
This commit is contained in:
Eyejoker
2026-03-29 22:46:20 +09:00
parent 88fa0858ea
commit b965a7e43d
2 changed files with 82 additions and 5 deletions

View File

@@ -377,6 +377,7 @@ async function main(): Promise<void> {
);
}
await queue.shutdown(10000);
cleanupOrphans();
for (const ch of channels) await ch.disconnect();
process.exit(0);
};