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
fix: allow OpenCode installer's postinstall to run despite ignore-scripts=true
[._.]/ Adam Eivyedb69170bfbf
diff --git a/server/routes/providers.js b/server/routes/providers.jsindex d2f3b9af20..243f53e835 100644--- a/server/routes/providers.js+++ b/server/routes/providers.js@@ -134,8 +134,8 @@ export function createPortOSProviderRoutes(aiToolkit) {// than EventSource: EventSource would auto-reconnect after a dropped stream// and could launch another non-idempotent npm install.//- // The fixed command is npm install --global opencode-ai@latest; no request- // input reaches a shell or package argument.+ // The fixed command is npm install --global --ignore-scripts=false+ // opencode-ai@latest; no request input reaches a shell or package argument.router.post('/opencode/install', asyncHandler(async (req, res) => {const { send, safeEnd } = openSseStream(res);const installLog = createInstallLogger({ installer: 'OpenCode CLI', target: 'npm global prefix' });diff --git a/server/services/opencodeInstaller.js b/server/services/opencodeInstaller.jsindex c258705371..17360a8756 100644--- a/server/services/opencodeInstaller.js+++ b/server/services/opencodeInstaller.js@@ -19,6 +19,11 @@ export const OPENCODE_NPM_PACKAGE = 'opencode-ai@latest';export const OPENCODE_NPM_INSTALL_ARGS = Object.freeze(['install','--global',+ // PortOS pins ignore-scripts=true in its project .npmrc. OpenCode's package+ // needs its postinstall to install the runnable CLI, so opt in explicitly for+ // this fixed, user-triggered package install rather than weakening the repo+ // default for every dependency.+ '--ignore-scripts=false',// npm's carriage-return progress renderer can emit hundreds of repaint// frames per second. The installer streams stdout to the browser, so keep// the useful package messages without turning the modal into a re-renderdiff --git a/server/services/opencodeInstaller.test.js b/server/services/opencodeInstaller.test.jsindex 64bb2fd638..28e721b256 100644--- a/server/services/opencodeInstaller.test.js+++ b/server/services/opencodeInstaller.test.js@@ -55,5 +55,6 @@ describe('OpenCode installer', () => {detached: process.platform !== 'win32',}));expect(OPENCODE_NPM_INSTALL_ARGS).toContain('--no-progress');+ expect(OPENCODE_NPM_INSTALL_ARGS).toContain('--ignore-scripts=false');});});