MCPcopy Create free account
hub / github.com/ConsortiumAI/Consortium / constructor

Method constructor

packages/consortium-cli/src/claude/sdk/query.ts:36–45  ·  view source on GitHub ↗
(
        private childStdin: Writable | null,
        private childStdout: NodeJS.ReadableStream,
        private processExitPromise: Promise<void>,
        canCallTool?: CanCallToolCallback
    )

Source from the content-addressed store, hash-verified

34 private canCallTool?: CanCallToolCallback
35
36 constructor(
37 private childStdin: Writable | null,
38 private childStdout: NodeJS.ReadableStream,
39 private processExitPromise: Promise<void>,
40 canCallTool?: CanCallToolCallback
41 ) {
42 this.canCallTool = canCallTool
43 this.readMessages()
44 this.sdkMessages = this.readSdkMessages()
45 }
46
47 setError(error: Error): void {
48 this.inputStream.error(error)

Callers

nothing calls this directly

Calls 2

readMessagesMethod · 0.95
readSdkMessagesMethod · 0.95

Tested by

no test coverage detected