Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (claude): clarify esbuild is nested via vite, not root-hoisted
[._.]/ Adam Eivy1ffd6a93c7be
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 02056db125..7b1bf2c6f0 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -2,7 +2,7 @@## Setup-- **[issue-1792] Windows setup no longer aborts rebuilding esbuild.** Running `setup.ps1` on Windows could stop partway with `Error: Cannot find module ...\client\node_modules\esbuild\install.js`. The script ran esbuild's installer through a hardcoded path that only exists when esbuild is installed directly under `client/node_modules` — but npm often hoists it to the project's top-level `node_modules`, so the fixed path was missing and setup bailed. It now rebuilds esbuild with `npm rebuild esbuild`, which finds esbuild wherever it actually landed, matching how the Mac/Linux setup already works. (Closes #1792)+- **[issue-1792] Windows setup no longer aborts rebuilding esbuild.** Running `setup.ps1` on Windows could stop partway with `Error: Cannot find module ...\client\node_modules\esbuild\install.js`. The script ran esbuild's installer through a hardcoded path that assumes esbuild sits directly under `client/node_modules` — but esbuild is a nested dependency (pulled in by Vite) that npm may place deeper in the dependency tree, so the fixed path was missing and setup bailed. It now rebuilds esbuild with `npm rebuild esbuild`, which finds esbuild wherever it actually landed, matching how the Mac/Linux setup already works. (Closes #1792)- **[issue-1788] Windows setup no longer fails to launch on the default PowerShell.** Running `setup.ps1` on Windows PowerShell 5.1 errored out before doing anything (`The string is missing the terminator` / `Missing closing '}'`). The scripts contained accented punctuation and an emoji but were saved without a UTF-8 byte-order mark, so the default Windows PowerShell read them in the legacy system codepage and mis-parsed those characters. `setup.ps1`, `update.ps1`, and `scripts/setup-voice.ps1` now carry a UTF-8 BOM so they parse correctly on both Windows PowerShell 5.1 and PowerShell 7+, and a test keeps any future `.ps1` from regressing. (Closes #1788)## AI Providersdiff --git a/setup.ps1 b/setup.ps1index 1673b34141..b1f3cc7b6a 100644--- a/setup.ps1+++ b/setup.ps1@@ -61,11 +61,14 @@ if ($LASTEXITCODE -ne 0) { Pop-Location; exit $LASTEXITCODE }Pop-Location# Rebuild native bindings. Use `npm rebuild esbuild` instead of invoking a-# hardcoded client/node_modules/esbuild/install.js path: npm resolves esbuild-# wherever it was actually hoisted/deduped, whereas the fixed nested path doesn't-# exist when esbuild lands in the root node_modules — that path mismatch is what-# aborted setup.ps1 with MODULE_NOT_FOUND on Windows (issue #1792). Mirrors the-# cross-platform `npm run setup` script and setup.sh.+# hardcoded client/node_modules/esbuild/install.js path: esbuild is a transitive+# dep (via vite) that npm may place anywhere inside the client dependency tree, so+# the fixed client/node_modules/esbuild/install.js path doesn't exist when npm+# nests it deeper — that path mismatch is what aborted setup.ps1 with+# MODULE_NOT_FOUND on Windows (issue #1792). `npm rebuild esbuild --prefix client`+# resolves esbuild wherever it landed within client's tree and re-runs its+# binary-download postinstall. Mirrors the cross-platform `npm run setup` script+# and setup.sh.Write-Host ""Write-Host "Rebuilding esbuild, node-pty & sharp..." -ForegroundColor Yellownpm rebuild esbuild --prefix client