mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
* Move session search SQLite into dedicated workers * test: spawn the session search test worker with the shared worker helper * fix: pass only drain promises to the channel's drain wait * Repair session search failure and lifecycle boundaries * Stop indexing tool output and reclaim existing rows * test: say why the session search worker tests need a longer timeout * Bound search cleanup and preserve failure and digest semantics * Use the database row type for tool purge batches * test: drop the same-connection mid-page write case now that each page reads one snapshot * test: prove a mid-page delete from the writer can't change that page's hits * Repair transcript cancellation cleanup and search test runtime admission * fix: cancel active transcript finalization and enrichment waits * fix: close transcript handles when cancellation wins delivery * fix: preserve scan cancellation errors across parser waits * test: prove cold session search bypasses an active writer batch * fix: preserve search continuation through background tool cleanup * fix: preserve search pages during orphan reclamation * fix: bound typo repair posting visibility probes * fix: preserve exact search terms when visibility is inconclusive * test: drop orphan-reclaim cursor staleness case superseded by frozen continuation * Bound session search work before ranking candidates * Preserve the limit notice for empty search windows * Bound session eligibility lookups and reuse FTS scoring statistics * Index session scopes for population and candidate searches * Derive search status from the live index after clear * Preserve disabled search status during settings transitions * Share planned expressions between spelling probes and search * Keep identifier fragments out of spelling presence checks * Report search initialization through its pending transition * Bound spelling vocabulary work with the search posting budget * Preserve search fallback while bounding distinct vocabulary seeks * fix(session-search): drain removals before the worker queue fills; keep aborted close waits from failing teardown * fix(session-search): hold writer commands when the worker queue is full instead of stopping the writer * chore(ratchets): baseline the session search worker's one-shot entry check
73 lines
3.6 KiB
TypeScript
73 lines
3.6 KiB
TypeScript
import { resolve } from 'node:path'
|
|
import { ORCAD_LOCAL_SERVE_SELECTION_ENTRY } from '../../src/shared/orcad-local-serve-selection'
|
|
import { CLI_MAIN_ENTRY_NAMES } from './cli-main-entry-names'
|
|
|
|
/** 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'),
|
|
'browser-extension-preload': resolve('src/preload/browser-extension-preload.ts'),
|
|
'browser-extension-native-host-supervisor-entry': resolve(
|
|
'src/main/browser/extensions/native-messaging/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'),
|
|
'plugin-source-transpile-worker-entry': resolve(
|
|
'src/main/plugins/panels/plugin-source-transpile-worker-entry.ts'
|
|
),
|
|
'computer-sidecar': resolve('src/main/computer/computer-sidecar.ts'),
|
|
'claude-conversation-fork-worker-entry': resolve(
|
|
'src/main/claude/claude-conversation-fork-worker-entry.ts'
|
|
),
|
|
'stt-worker': resolve('src/main/speech/stt-worker.ts'),
|
|
'warp-theme-parser-worker': resolve('src/main/warp-themes/warp-theme-parser-worker.ts'),
|
|
'session-search-worker-entry': resolve('src/main/ai-vault-search/session-search-worker-entry.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/scan-service/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/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/workspaces/space-analysis/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`)])
|
|
)
|
|
}
|