From ff51ebb41ca8ad032823ef5d11d4c500196991b7 Mon Sep 17 00:00:00 2001 From: "Andrew @ Conduit" Date: Tue, 26 May 2026 14:19:09 -0500 Subject: [PATCH] fix: increase Node.js memory limit and update version to 2.0.0-beta.5 --- .github/workflows/release.yml | 3 +++ package-lock.json | 2 +- packages/desktop/package.json | 2 +- packages/desktop/vite.main.config.ts | 11 ++++++----- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d54fe9..ccc1fbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,7 @@ jobs: APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} NODE_ENV: production + NODE_OPTIONS: --max-old-space-size=6144 SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} @@ -129,6 +130,7 @@ jobs: run: npm run make -- --platform win32 --arch ${{ matrix.arch }} env: NODE_ENV: production + NODE_OPTIONS: --max-old-space-size=6144 SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} @@ -181,6 +183,7 @@ jobs: run: npm run make -- --platform linux env: NODE_ENV: production + NODE_OPTIONS: --max-old-space-size=6144 SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} diff --git a/package-lock.json b/package-lock.json index 80f46c9..9b6c728 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19251,7 +19251,7 @@ }, "packages/desktop": { "name": "openconduit", - "version": "2.0.0-beta.4", + "version": "2.0.0-beta.5", "license": "AGPL-3.0-only", "dependencies": { "@anthropic-ai/foundry-sdk": "^0.2.3", diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 98fc46e..9aef8d6 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,7 +1,7 @@ { "name": "openconduit", "productName": "OpenConduit", - "version": "2.0.0-beta.4", + "version": "2.0.0-beta.5", "description": "Cross-platform desktop AI chat client — OpenAI, Anthropic, LM Studio, and MCP tool servers", "main": ".vite/build/main.js", "private": true, diff --git a/packages/desktop/vite.main.config.ts b/packages/desktop/vite.main.config.ts index 14163f4..7bf8303 100644 --- a/packages/desktop/vite.main.config.ts +++ b/packages/desktop/vite.main.config.ts @@ -37,16 +37,17 @@ export default defineConfig(({ mode }) => { // builds: with npm workspaces hoisting, those packages live at the workspace // root node_modules/ which electron-forge never copies into the .asar. // Bundling them with Vite is the correct fix. - // - // inlineDynamicImports: true eliminates the "circular dependency between chunks" - // warnings from @smithy's export* re-export graph — the main process has no need - // for chunk-splitting so collapsing everything into one bundle is the right call. external: [ 'bufferutil', 'utf-8-validate', ], + // Suppress the "circular dependency" warnings emitted by @smithy's export* + // re-export graph — they are harmless build-time noise. + onwarn(warning, defaultHandler) { + if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.ids?.some((id) => id.includes('@smithy') || id.includes('@aws-sdk'))) return; + defaultHandler(warning); + }, output: { - inlineDynamicImports: true, // pdfjs-dist (bundled via pdf-parse) has top-level `new DOMMatrix()` that runs // at module evaluation time. Its own polyfill loads @napi-rs/canvas via the // native `.node` binding, which fails in packaged Electron builds due to ABI