orka.tui package

TUI package - exports the main interface class for backward compatibility.

class orka.tui.DashboardScreen(data_manager, **kwargs)[source]

Bases: BaseOrKaScreen

Dashboard screen showing overview of memory system.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose_content() Iterable[Widget][source]

Compose the dashboard layout.

refresh_data() None[source]

Refresh dashboard data.

class orka.tui.HealthScreen(data_manager, **kwargs)[source]

Bases: BaseOrKaScreen

Screen for system health monitoring.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose_content() Iterable[Widget][source]

Compose the health monitoring layout.

refresh_data() None[source]

Refresh health monitoring data.

class orka.tui.HealthWidget(data_manager, **kwargs)[source]

Bases: Container

Widget for displaying system health metrics.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose()[source]

Compose the health widget.

update_health()[source]

Update health display with unified health calculations.

class orka.tui.LogsWidget(data_manager, **kwargs)[source]

Bases: DataTable

Enhanced widget for displaying memory logs with orchestration priority.

can_focus: bool = True

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

update_data()[source]

Update logs with unified filtering - show overview of recent orchestration and system logs.

class orka.tui.LongMemoryScreen(data_manager, **kwargs)[source]

Bases: BaseOrKaScreen

Screen for viewing long-term memory entries.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose_content() Iterable[Widget][source]

Compose the long memory layout.

on_memory_table_widget_memory_selected(message: MemorySelected) None[source]

Handle memory selection to show content in lower panel.

refresh_data() None[source]

Refresh long memory data.

class orka.tui.MemoryLogsScreen(data_manager, **kwargs)[source]

Bases: BaseOrKaScreen

Screen for viewing memory system logs.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose_content() Iterable[Widget][source]

Compose the memory logs layout.

on_memory_table_widget_memory_selected(message: MemorySelected) None[source]

Handle log selection to show content in lower panel.

refresh_data() None[source]

Refresh memory logs data.

class orka.tui.MemoryTableWidget(data_manager, memory_type='all', **kwargs)[source]

Bases: DataTable

Custom data table for displaying memory entries with checkbox selection.

class MemorySelected(memory_data: Dict[str, Any], row_index: int)[source]

Bases: Message

Message sent when a memory row is selected.

time
bubble: ClassVar[bool] = True
handler_name: ClassVar[str] = 'on_memory_table_widget_memory_selected'

Name of the default message handler.

no_dispatch: ClassVar[bool] = False
verbose: ClassVar[bool] = False
can_focus: bool = True

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

on_data_table_cell_selected(event: CellSelected) None[source]

Handle cell selection to toggle checkbox - alternative approach.

on_data_table_row_selected(event: RowSelected) None[source]

Handle row selection to toggle checkbox.

update_data(memory_type='all')[source]

Update the table with filtered data while preserving selection.

class orka.tui.ModernTUIInterface[source]

Bases: object

Modern TUI interface for OrKa memory monitoring.

run(args)[source]

Main entry point for the TUI interface.

class orka.tui.OrKaTextualApp(data_manager)[source]

Bases: App

Modern Textual-native OrKa monitoring application.

BINDINGS: ClassVar[list[BindingType]] = [Binding(key='1', action='show_dashboard', description='Dashboard', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='2', action='show_short_memory', description='Short Memory', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='3', action='show_long_memory', description='Long Memory', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='4', action='show_memory_logs', description='Memory Logs', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='5', action='show_health', description='Health', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='q', action='quit', description='Quit', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='ctrl+p', action='command_palette', description='Palette', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='r', action='refresh', description='Refresh', show=True, key_display=None, priority=False, tooltip='', id=None, system=False), Binding(key='f', action='toggle_fullscreen', description='Fullscreen', show=True, key_display=None, priority=False, tooltip='', id=None, system=False)]

The default key bindings.

CSS_PATH: ClassVar[CSSPathType | None] = 'textual_styles.tcss'

File paths to load CSS from.

SUB_TITLE: str | None = 'Real-time Memory System Monitoring'

A class variable to set the default sub-title for the application.

To update the sub-title while the app is running, you can set the [sub_title][textual.app.App.sub_title] attribute. See also [the Screen.SUB_TITLE attribute][textual.screen.Screen.SUB_TITLE].

TITLE: str | None = 'OrKa Memory Monitor'

A class variable to set the default title for the application.

To update the title while the app is running, you can set the [title][textual.app.App.title] attribute. See also [the Screen.TITLE attribute][textual.screen.Screen.TITLE].

action_refresh() None[source]

Force refresh current screen.

action_show_dashboard() None[source]

Switch to dashboard view.

action_show_health() None[source]

Switch to health monitoring view.

action_show_long_memory() None[source]

Switch to long memory view.

action_show_memory_logs() None[source]

Switch to memory logs view.

action_show_short_memory() None[source]

Switch to short memory view.

action_toggle_fullscreen() None[source]

Toggle fullscreen mode.

on_mount() None[source]

Initialize the application.

on_screen_resume(event) None[source]

Handle screen resume events.

refresh_current_screen() None[source]

Refresh the current screen’s data.

class orka.tui.ShortMemoryScreen(data_manager, **kwargs)[source]

Bases: BaseOrKaScreen

Screen for viewing short-term memory entries.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose_content() Iterable[Widget][source]

Compose the short memory layout.

on_memory_table_widget_memory_selected(message: MemorySelected) None[source]

Handle memory selection to show content in lower panel.

refresh_data() None[source]

Refresh short memory data.

class orka.tui.StatsWidget(data_manager, **kwargs)[source]

Bases: Static

Widget for displaying memory statistics.

can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

update_stats()[source]

Update the stats display.

Submodules