refactor(cli): split commands into focused modules (#5175)

This commit is contained in:
chengyongru authored and GitHub committed 2026-07-30 15:01:35 +08:00
1 parent ad6900e56c
commit e2563e2e74
24 files changed
+3190 -2781

No files matched your search

+6 -1
View File
@@ -3,7 +3,12 @@
Surrogate characters in CLI input must not crash history file writes.
"""
from nanobot.cli.commands import SafeFileHistory, _sanitize_surrogates
from nanobot.cli.commands import SafeFileHistory as LegacySafeFileHistory
from nanobot.cli.terminal import SafeFileHistory, _sanitize_surrogates
def test_commands_keeps_safe_file_history_import_compatible() -> None:
assert LegacySafeFileHistory is SafeFileHistory
class TestSanitizeSurrogates: