mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
- Remove 203 unused biome-ignore suppression comments (noConsole rule is off) - Apply all FIXABLE transforms: Math.pow->**, parseInt radix, noUselessContinue, noUselessUndefinedInitialization, useIndexOf, useRegexLiterals, useShorthandFunctionType, noPrototypeBuiltins - Add targeted suppressions for 31 intentional patterns - Format all src/ files via Biome (quote style, import line width) - Result: 0 errors, 0 warnings across 2649 files
23 lines
544 B
TypeScript
23 lines
544 B
TypeScript
export type {
|
|
BgEngine,
|
|
BgStartOptions,
|
|
BgStartResult,
|
|
SessionEntry,
|
|
} from '../engine.js'
|
|
|
|
export async function selectEngine(): Promise<import('../engine.js').BgEngine> {
|
|
if (process.platform === 'win32') {
|
|
const { DetachedEngine } = await import('./detached.js')
|
|
return new DetachedEngine()
|
|
}
|
|
|
|
const { TmuxEngine } = await import('./tmux.js')
|
|
const tmux = new TmuxEngine()
|
|
if (await tmux.available()) {
|
|
return tmux
|
|
}
|
|
|
|
const { DetachedEngine } = await import('./detached.js')
|
|
return new DetachedEngine()
|
|
}
|