MCPcopy Create free account
hub / github.com/HKUDS/OpenOPC / _create_cli_engine

Function _create_cli_engine

opc/cli/app.py:439–450  ·  view source on GitHub ↗
(config, project: str | None)

Source from the content-addressed store, hash-verified

437 return queued if self._mode == "catch_up" else 1
438
439 async def _drain_loop(self) -> None:
440 try:
441 while self._line_queue:
442 now = time.monotonic()
443 count = self._drain_count(now)
444 for _ in range(min(count, len(self._line_queue))):
445 line = self._line_queue.popleft()
446 self.console.print(line.text, markup=False)
447 self.has_streamed_content = True
448 await self._render_status()
449 await asyncio.sleep(0.05)
450 finally:
451 self._drain_task = None
452
453 async def _render_status(self, *, force: bool = False) -> None:

Callers 10

_single_messageFunction · 0.85
_propose_reorgFunction · 0.85
_approve_reorgFunction · 0.85
_apply_reorgFunction · 0.85
_show_reorgFunction · 0.85
_switch_chat_projectFunction · 0.85
_interactive_modeFunction · 0.85
_run_channel_runtimeFunction · 0.85

Calls 4

OPCEngineClass · 0.90
_CliRuntimeDisplayClass · 0.85
_progress_callbackFunction · 0.85
_escalation_callbackFunction · 0.85

Tested by

no test coverage detected