oc_chat
Loading...
Searching...
No Matches
__main__.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/registry/__main__.py
4
5# OCT-LINT: disable=tests_exist reason="Covered by oc_chat/tests/registry/test_storage_foundation.py"
6"""
7Module entry point for ``python -m oc_chat.registry``.
8
9Purpose
10-------
11Provide the pre-M3 registry command path requested by plan 081.
12
13Responsibilities
14----------------
15- Dispatch module execution to :func:`oc_chat.registry.cli.agent.main`.
16- Preserve the CLI return code as the process exit code.
17
18Diagnostics
19-----------
20Domain: OC_CHAT.MAIN
21Levels:
22 L2 - lifecycle events
23 L3 - semantic details
24 L4 - deep tracing
25
26Contracts
27---------
28- This module contains no command implementation; it is only an entry point.
29
30Dependencies
31------------
32- oc_diagnostics (structured debug logging via _dbg)
33- oc_chat.registry.cli.agent (argparse command implementation)
34"""
35from __future__ import annotations
36
37import sys
38
39from oc_diagnostics import _dbg
40
41from oc_chat.registry.cli.agent import main
42
43
44_dbg("OC_CHAT.MAIN", "module", "loaded", 4)
45
46
47if __name__ == "__main__":
48 sys.exit(main())