Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

3.4 KB
Raw Blame
import { resolve } from 'node:path'
import { ORCAD_LOCAL_SERVE_SELECTION_ENTRY } from '../../src/shared/orcad-local-serve-selection'
import { CLI_MAIN_ENTRY_NAMES } from './plain-node-entry-guard'

/** Main-build Rollup inputs: output file name (without .js) to its source entry. */
export const MAIN_BUILD_ENTRY_POINTS: Record<string, string> = {
  index: resolve('src/main/index.ts'),
  // Why: sandboxed webview preloads cannot load Rollup helper chunks.
  'browser-window-close-preload': resolve('src/preload/browser-window-close.ts'),
  'doc-preview-link-preload': resolve('src/preload/doc-preview-link.ts'),
  'browser-extension-preload': resolve('src/preload/browser-extension-preload.ts'),
  'browser-extension-native-host-supervisor-entry': resolve(
    'src/main/browser/extensions/browser-extension-native-host-supervisor-entry.ts'
  ),
  'daemon-entry': resolve('src/main/daemon/daemon-entry.ts'),
  'plugin-host-entry': resolve('src/main/plugins/workers/plugin-host-entry.ts'),
  'computer-sidecar': resolve('src/main/computer/computer-sidecar.ts'),
  'stt-worker': resolve('src/main/speech/stt-worker.ts'),
  'warp-theme-parser-worker': resolve('src/main/warp-themes/warp-theme-parser-worker.ts'),
  'foreign-sqlite-reader-entry': resolve(
    'src/main/foreign-sqlite-readers/foreign-sqlite-reader-entry.ts'
  ),
  'session-scanner-service-entry': resolve('src/main/ai-vault/session-scanner-service-entry.ts'),
  'wsl-transcript-fs-process-entry': resolve(
    'src/main/native-chat/wsl-transcript-fs-process-entry.ts'
  ),
  // libuv spawns inline; run port probes on a worker to keep the UI loop free.
  'port-scan-command-worker-entry': resolve('src/main/ports/port-scan-command-worker-entry.ts'),
  'command-path-directory-worker-entry': resolve(
    'src/main/ipc/command-path-directory-worker-entry.ts'
  ),
  // Focus-triggered usage probes must not block UI on cold CreateProcessW (#27362).
  'worker-thread-child-process-entry': resolve(
    'src/main/worker-thread-child-process/worker-thread-child-process-entry.ts'
  ),
  // Usage scans synchronously walk histories/SQLite; keep them off the main loop.
  'usage-scan-worker-entry': resolve('src/main/usage/usage-scan-worker-entry.ts'),
  'workspace-space-scan-worker-entry': resolve('src/main/workspace-space-scan-worker-entry.ts'),
  // Why: a first account setup can merge a large history tree with sync fs calls.
  'claude-profile-setup-worker-entry': resolve(
    'src/main/claude-accounts/claude-profile-setup-worker-entry.ts'
  ),
  'profile-state-backup-worker-entry': resolve(
    'src/main/persistence/profile-state/profile-state-backup-worker-entry.ts'
  ),
  'profile-state-writer-worker-entry': resolve(
    'src/main/persistence/profile-state/profile-state-writer-worker-entry.ts'
  ),
  // Isolate native @parcel/watcher faults from main (#7547).
  'parcel-watcher-process-entry': resolve(
    'src/main/ipc/filesystem/watcher-process/parcel-watcher-process-entry.ts'
  ),
  // Why: `orca serve` runs it under ELECTRON_RUN_AS_NODE so the CLI never bundles orcad prep.
  [ORCAD_LOCAL_SERVE_SELECTION_ENTRY]: resolve(
    'src/main/orcad/orcad-local-serve-selection-entry.ts'
  ),
  // Worker survives macOS 26 AppKit main-thread deadlock without another Electron process.
  'main-thread-hang-watchdog-entry': resolve(
    'src/main/hang-watchdog/main-thread-hang-watchdog-entry.ts'
  ),
  ...Object.fromEntries(
    CLI_MAIN_ENTRY_NAMES.map((module) => [module, resolve(`src/main/${module}.ts`)])
  )
}