mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Keep provider adapters private
This commit is contained in:
@@ -76,11 +76,8 @@ export class ManagedClaudeCodeProcess implements SpawnedProcess {
|
||||
* @param child - shared handle that remains the process-tree authority.
|
||||
*/
|
||||
constructor(private readonly child: SubprocessHandle) {
|
||||
if (child.stdin === undefined || child.stdout === undefined) {
|
||||
throw new Error('subagent-claude-code: SDK child requires piped stdin and stdout')
|
||||
}
|
||||
this.stdin = child.stdin
|
||||
this.stdout = child.stdout
|
||||
this.stdin = child.stdin as NonNullable<SubprocessHandle['stdin']>
|
||||
this.stdout = child.stdout as NonNullable<SubprocessHandle['stdout']>
|
||||
// EventEmitter gives `error` special throw semantics without a listener.
|
||||
// The SDK attaches its listener synchronously after custom spawn returns,
|
||||
// while this no-op also contains an already-rejected spawn handle.
|
||||
|
||||
Reference in New Issue
Block a user