@proletariat/cli 0.3.16 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -470,7 +470,7 @@ if [ -d "/opt/prlt/apps/cli" ]; then
470
470
  # Install only better-sqlite3 with correct architecture
471
471
  cd "$PRLT_LOCAL"
472
472
  npm init -y > /dev/null 2>&1
473
- npm install better-sqlite3@11.6.0 --build-from-source 2>&1 || {
473
+ npm install better-sqlite3@12.6.2 --build-from-source 2>&1 || {
474
474
  echo "Warning: better-sqlite3 rebuild failed"
475
475
  }
476
476
 
@@ -814,6 +814,17 @@ function runContainerSetup(containerId, sandboxed = true) {
814
814
  console.debug(`[runners:docker] Container setup scripts failed:`, error);
815
815
  // Continue - setup might partially work
816
816
  }
817
+ // Configure pnpm to use container-local store to prevent contention
818
+ // Multiple agents sharing the same pnpm store causes hangs and ERR_PNPM errors (TKT-718)
819
+ // Each container gets its own store at /tmp/pnpm-store for reliability
820
+ try {
821
+ execSync(`docker exec ${containerId} pnpm config set store-dir /tmp/pnpm-store`, { stdio: 'pipe' });
822
+ console.debug(`[runners:docker] Configured pnpm store-dir to /tmp/pnpm-store`);
823
+ }
824
+ catch (error) {
825
+ console.debug(`[runners:docker] Failed to configure pnpm store (pnpm may not be installed):`, error);
826
+ // Non-fatal - pnpm may not be installed in all containers
827
+ }
817
828
  // Copy Claude settings file (.claude.json) from host to container
818
829
  // This is needed for Claude Code to recognize settings and bypass prompts
819
830
  // Note: Auth tokens are in the claude-credentials volume at /home/node/.claude/.credentials.json