MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / cleanup

Method cleanup

apps/cli/src/agent/prompt-manager.ts:190–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188
189 // Cleanup function to restore state
190 const cleanup = () => {
191 clearTimeout(timeout)
192 this.stdin.removeListener("data", onData)
193
194 if (this.stdin.isTTY && wasRaw !== undefined) {
195 this.stdin.setRawMode(wasRaw)
196 }
197
198 this.stdin.pause()
199 this.isPrompting = false
200 this.afterPrompt()
201 }
202
203 // Handle incoming data
204 const onData = (data: Buffer) => {

Callers

nothing calls this directly

Calls 2

afterPromptMethod · 0.95
pauseMethod · 0.80

Tested by

no test coverage detected