supsrc
2025-05-31
Added interactive REPL for watch command with prompt_toolkit and Python 3.13 type modernization
25 files · 1,558+ · 470-
Interactive REPL for watch command using prompt_toolkit
5 files changed
watch_cmds.pyAdded full interactive REPL to non-TUI watch modemain.pyUpdated CLI main for REPL integrationtui_cmds.pyTUI command updatesutils.pyCLI utility updatesconfig_cmds.pyConfig command updates
- Added full interactive REPL to supsrc watch non-TUI mode using prompt_toolkit with commands for help, list, status, pause, resume, details, and quit
instantiate
behavioral
1 file
watch_cmds.py
- Uses ParsedCommand attrs class for command parsing with pattern matching (match/case), runs concurrently with orchestrator via asyncio.gather
instantiate
internal
1 file
watch_cmds.py
- Includes HTML-formatted colored output and Ctrl+C/Ctrl+D handling
instantiate
internal
1 file
watch_cmds.py
Orchestrator API extensions for REPL commands
1 file changed
orchestrator.pyAdded repository state, pause, resume, and details methods
- Added get_all_repository_states(), get_repository_state(), pause_repository(), resume_repository(), and get_repository_details() methods to support REPL commands
instantiate
behavioral
1 file
orchestrator.py
- Expanded orchestrator API for programmatic repository control
interface
behavioral
1 file
orchestrator.py
Python 3.13+ type hint modernization
10 files changed
loader.pyModernized type hintscredentials.pyUpdated type annotationshandler.pyUpdated type annotationsservice.pyUpdated type annotationsstate.pyUpdated type annotationsbase.pyUpdated type annotationsalt_app.pyUpdated type annotationsapp.pyUpdated type annotationslogging_handler.pyUpdated type annotationsmessages.pyUpdated type annotations
Major test improvements with REPL, monitor, and orchestrator tests
6 files changed
test_cli_watch_repl.pyREPL tests (211 lines)test_monitor.pyMonitor tests (164 lines)test_orchestrator.pyOrchestrator tests (219 lines)test_cli.pyFixed CLI teststest_config.pyFixed config teststest_git_engine.pyFixed git engine tests
- Added test_cli_watch_repl.py (211 lines), test_monitor.py (164 lines), and test_orchestrator.py (219 lines)
qualify
behavioral
3 files
test_cli_watch_repl.pytest_monitor.pytest_orchestrator.py
- Fixed multiple existing tests for CLI, config, engine, and state modules
qualify
internal
3 files
test_cli.pytest_config.pytest_git_engine.py
Dependencies and build updates
3 files changed
.python-versionUpdated Python version requirementpyproject.tomlAdded prompt_toolkit dependencyuv.lockUpdated lock file with new packages