mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 00:27:39 +00:00
Bundle a pinned, verified Bun runtime for headless Orca so existing Node launch commands can hand off before opening a profile. Keep desktop execution on Electron. Add the Bun SQLite adapter and terminal backend, bounded shutdown, process inspection and cross-platform artifact qualification. Keep future managed SSH deployment separate from current production launch paths.
12 lines
484 B
TypeScript
12 lines
484 B
TypeScript
import type * as ParcelWatcher from '@parcel/watcher'
|
|
|
|
/** Native loading stays in the watcher child, across named and CommonJS exports. */
|
|
export async function loadParcelWatcher(): Promise<typeof ParcelWatcher> {
|
|
const loaded = await import('@parcel/watcher')
|
|
const watcher = typeof loaded.subscribe === 'function' ? loaded : loaded.default
|
|
if (!watcher || typeof watcher.subscribe !== 'function') {
|
|
throw new Error('parcel_watcher_module_invalid')
|
|
}
|
|
return watcher
|
|
}
|