51 lines
786 B
Python
51 lines
786 B
Python
"""Utility modules for nanocode."""
|
|
|
|
from .display import (
|
|
RESET,
|
|
BOLD,
|
|
DIM,
|
|
BLUE,
|
|
CYAN,
|
|
GREEN,
|
|
YELLOW,
|
|
RED,
|
|
MAGENTA,
|
|
separator,
|
|
render_markdown,
|
|
)
|
|
from .file_ops import (
|
|
read_file,
|
|
write_file,
|
|
edit_file,
|
|
glob_files,
|
|
grep_files,
|
|
)
|
|
from .shell_ops import run_bash
|
|
from .model_selection import AVAILABLE_MODELS, select_model
|
|
|
|
__all__ = [
|
|
# Display
|
|
"RESET",
|
|
"BOLD",
|
|
"DIM",
|
|
"BLUE",
|
|
"CYAN",
|
|
"GREEN",
|
|
"YELLOW",
|
|
"RED",
|
|
"MAGENTA",
|
|
"separator",
|
|
"render_markdown",
|
|
# File operations
|
|
"read_file",
|
|
"write_file",
|
|
"edit_file",
|
|
"glob_files",
|
|
"grep_files",
|
|
# Shell operations
|
|
"run_bash",
|
|
# Model selection
|
|
"AVAILABLE_MODELS",
|
|
"select_model",
|
|
]
|