feat: expand DeepSeek Harness compatibility
This commit is contained in:
@@ -12,9 +12,12 @@ import {
|
||||
startControlledDeepSeekHarnessHost,
|
||||
type ControlledHarnessHost
|
||||
} from './deepseek-harness-host'
|
||||
import { installHarnessChildProcessWindowGuard } from './agent/deepseek-harness-child-process'
|
||||
|
||||
const parentPort = process.parentPort
|
||||
const restoreDiagnostics = installHarnessDiagnosticGuard()
|
||||
const restoreChildProcessWindowGuard =
|
||||
installHarnessChildProcessWindowGuard()
|
||||
// The Windows ACL sandbox launches its JavaScript runner through
|
||||
// `process.execPath`. Inside an Electron UtilityProcess that path is Electron,
|
||||
// so descendants must opt into Electron's supported Node execution mode.
|
||||
@@ -41,6 +44,7 @@ async function close(): Promise<void> {
|
||||
closed = true
|
||||
await host?.dispose().catch(() => undefined)
|
||||
transport?.dispose()
|
||||
restoreChildProcessWindowGuard()
|
||||
restoreDiagnostics()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user