oc_chat
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_ui/__init__.py
4
5"""
6oc_ui — UI layer for OC Chat (presenters, input, terminal rendering).
7
8Purpose
9-------
10Top-level package marker for the OC Chat UI library. The package is
11deliberately split from the core engine (``oc_chat/``) so a future
12TUI / GUI / web frontend can subclass :class:`~oc_ui.presenter_base.
13Presenter` without dragging in chat-loop dependencies.
14
15Responsibilities
16----------------
17- Mark ``oc_ui/`` as a Python package.
18- Expose the abstract presenter contract via ``presenter_base``.
19- Hold the terminal subpackage (``oc_ui.terminal``) with concrete
20 console / rich / logging presenters and the prompt driver.
21
22Diagnostics
23-----------
24Domain: OC_UI.TERMINAL
25Levels:
26 L2 — lifecycle events
27 L3 — semantic details
28 L4 — deep tracing
29
30Contracts
31---------
32- Module-level L4 ``_dbg`` is a diagnostics-coverage marker; it
33 emits nothing at default verbosity (domain default is L2).
34
35Dependencies
36------------
37- oc_diagnostics (structured debug logging via _dbg)
38"""
39
40from oc_diagnostics import _dbg
41
42_dbg("OC_UI.TERMINAL", "module", "loaded", 4)