MCPcopy Create free account
hub / github.com/cursor/cookbook / waitUntilDestroyed

Function waitUntilDestroyed

sdk/coding-agent-cli/src/index.ts:249–257  ·  view source on GitHub ↗
(renderer: CliRenderer)

Source from the content-addressed store, hash-verified

247}
248
249function waitUntilDestroyed(renderer: CliRenderer) {
250 if (renderer.isDestroyed) {
251 return Promise.resolve()
252 }
253
254 return new Promise<void>((resolve) => {
255 renderer.once(CliRenderEvents.DESTROY, () => resolve())
256 })
257}
258
259function printHelp() {
260 console.log(`Lightweight coding agent CLI

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected