oc_chat
Loading...
Searching...
No Matches
oc_chat.registry.cli.inspect Namespace Reference

Functions

None add_inspect_subcommands (argparse._SubParsersAction subcommands)
int _cmd_show (argparse.Namespace args)
int _cmd_status (argparse.Namespace args)
int _cmd_whoami (argparse.Namespace args)
Registry _registry (str|None registry_path)
None _print (dict[str, object] payload, bool as_json)

Detailed Description

Registry-native inspect commands.

Purpose
-------
Expose read-only registry inspection commands at the top-level registry CLI.

Responsibilities
----------------
- Wire ``show``, ``status``, and ``whoami`` commands.
- Resolve registry paths through standard discovery.
- Format read-model dataclasses for humans or JSON.

Diagnostics
-----------
Domain: OC_CHAT.MAIN
Levels:
    L2 - lifecycle events
    L3 - semantic details
    L4 - deep tracing

Contracts
---------
- Every command in this module is read-only.
- Missing explicit plan lookups exit non-zero with a clear message.

Dependencies
------------
- oc_diagnostics (structured debug logging via _dbg)
- oc_chat.registry.backends.sqlite (SQLite backend)
- oc_chat.registry.discovery (registry path discovery)
- oc_chat.registry.readers (typed read projections)
- oc_chat.registry (Registry facade the read projections query)

Function Documentation

◆ _cmd_show()

int oc_chat.registry.cli.inspect._cmd_show ( argparse.Namespace args)
protected

Definition at line 77 of file inspect.py.

Here is the call graph for this function:

◆ _cmd_status()

int oc_chat.registry.cli.inspect._cmd_status ( argparse.Namespace args)
protected

Definition at line 87 of file inspect.py.

Here is the call graph for this function:

◆ _cmd_whoami()

int oc_chat.registry.cli.inspect._cmd_whoami ( argparse.Namespace args)
protected

Definition at line 94 of file inspect.py.

Here is the call graph for this function:

◆ _print()

None oc_chat.registry.cli.inspect._print ( dict[str, object] payload,
bool as_json )
protected

Definition at line 106 of file inspect.py.

Here is the caller graph for this function:

◆ _registry()

Registry oc_chat.registry.cli.inspect._registry ( str | None registry_path)
protected

Definition at line 101 of file inspect.py.

Here is the caller graph for this function:

◆ add_inspect_subcommands()

None oc_chat.registry.cli.inspect.add_inspect_subcommands ( argparse._SubParsersAction subcommands)
Attach top-level read-only inspect commands.

Definition at line 56 of file inspect.py.