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

Functions

None add_plan_subcommands (argparse.ArgumentParser plan_parser)
int _cmd_plan_group (argparse.Namespace args)
int _cmd_create (argparse.Namespace args)
int _cmd_show (argparse.Namespace args)
int _cmd_set_status (argparse.Namespace args)
int _cmd_assign (argparse.Namespace args)
int _cmd_supersede (argparse.Namespace args)
int _cmd_reimport (argparse.Namespace args)
int _emit (argparse.Namespace args, Callable[[Registry, str], object] emit)
tuple[Registry, SQLiteBackend] _registry (str|None registry_path)
None _add_common (argparse.ArgumentParser parser)

Detailed Description

Registry-native plan commands.

Purpose
-------
Expose plan lifecycle mutation and inspection commands beneath
``python -m oc_chat.registry plan``.

Responsibilities
----------------
- Parse plan domain command arguments.
- Resolve the registry and actor slot.
- Dispatch to domain API and reader helpers.

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

Contracts
---------
- Mutating commands emit one operation-log row through the seam.
- ``show`` is read-only and returns the current projected plan row.

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.domain (plan mutation API)
- oc_chat.registry.readers (plan readers)
- oc_chat.registry (Registry facade for plan mutations and readers)

Function Documentation

◆ _add_common()

None oc_chat.registry.cli.plan._add_common ( argparse.ArgumentParser parser)
protected

Definition at line 258 of file plan.py.

Here is the caller graph for this function:

◆ _cmd_assign()

int oc_chat.registry.cli.plan._cmd_assign ( argparse.Namespace args)
protected

Definition at line 188 of file plan.py.

Here is the call graph for this function:

◆ _cmd_create()

int oc_chat.registry.cli.plan._cmd_create ( argparse.Namespace args)
protected

Definition at line 137 of file plan.py.

Here is the call graph for this function:

◆ _cmd_plan_group()

int oc_chat.registry.cli.plan._cmd_plan_group ( argparse.Namespace args)
protected

Definition at line 131 of file plan.py.

◆ _cmd_reimport()

int oc_chat.registry.cli.plan._cmd_reimport ( argparse.Namespace args)
protected

Definition at line 221 of file plan.py.

Here is the call graph for this function:

◆ _cmd_set_status()

int oc_chat.registry.cli.plan._cmd_set_status ( argparse.Namespace args)
protected

Definition at line 171 of file plan.py.

Here is the call graph for this function:

◆ _cmd_show()

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

Definition at line 158 of file plan.py.

Here is the call graph for this function:

◆ _cmd_supersede()

int oc_chat.registry.cli.plan._cmd_supersede ( argparse.Namespace args)
protected

Definition at line 206 of file plan.py.

Here is the call graph for this function:

◆ _emit()

int oc_chat.registry.cli.plan._emit ( argparse.Namespace args,
Callable[[Registry, str], object] emit )
protected

Definition at line 238 of file plan.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _registry()

tuple[Registry, SQLiteBackend] oc_chat.registry.cli.plan._registry ( str | None registry_path)
protected

Definition at line 252 of file plan.py.

Here is the caller graph for this function:

◆ add_plan_subcommands()

None oc_chat.registry.cli.plan.add_plan_subcommands ( argparse.ArgumentParser plan_parser)
Attach registry-native plan subcommands.

Definition at line 66 of file plan.py.

Here is the call graph for this function: