A desktop coding agent with free access to frontier models.
TypeScript
fix: ship the box modules in the packaged server
ogsamratae3d7ce5db1c
diff --git a/.github/workflows/build-electron-desktop.yml b/.github/workflows/build-electron-desktop.ymlindex fa53530a..105aa9f0 100644--- a/.github/workflows/build-electron-desktop.yml+++ b/.github/workflows/build-electron-desktop.yml@@ -84,6 +84,11 @@ jobs:OMNIRUSH_DESKTOP_SENTRY_TRACES_SAMPLE_RATE: ${{ vars.OMNIRUSH_DESKTOP_SENTRY_TRACES_SAMPLE_RATE || '0.01' }}run: pnpm --filter @omnirush/desktop package:electron:dir+ # Every relative import inside the packaged app resolves (a module missing from dist crashes the app at start).+ - name: Verify packaged server imports+ shell: bash+ run: node apps/desktop/scripts/verify-packaged-imports.mjs+# The packaged app must accept its own bundled engine (the app's own checks, its own runtime).- name: Verify the packaged app accepts its bundled engineshell: bashdiff --git a/apps/server/scripts/copy-shared-modules.mjs b/apps/server/scripts/copy-shared-modules.mjsindex 46043ee0..7508dec4 100644--- a/apps/server/scripts/copy-shared-modules.mjs+++ b/apps/server/scripts/copy-shared-modules.mjs@@ -1,12 +1,12 @@// tsc emits only TypeScript: the plain-JavaScript modules shared with the CLI-// (src/workspace/*.mjs, src/computer-use/shared/*.mjs and src/provider-lock/*.mjs, see PARITY.sha256 there) are-// copied into dist as they are.+// (src/workspace/*.mjs, src/computer-use/shared/*.mjs and src/provider-lock/*.mjs, see PARITY.sha256 there) and+// the server's own plain modules (src/box/*.mjs) are copied into dist as they are.import { copyFileSync, mkdirSync, readdirSync } from "node:fs";import { join, resolve } from "node:path";const root = resolve(import.meta.dirname, "..");const copied = [];-for (const folder of ["workspace", "computer-use/shared", "provider-lock"]) {+for (const folder of ["workspace", "computer-use/shared", "provider-lock", "box"]) {const from = join(root, "src", folder);const to = join(root, "dist", folder);mkdirSync(to, { recursive: true });