Files
deepagent/deepagents_sourcecode/libs/deepagents-cli/deepagents_cli/widgets/welcome.py
HyunjunJeon af5fbfabec 문서 추가: Context Engineering 문서 추가 및 deepagents_sourcecode 한국어 번역
- Context_Engineering.md: 에이전트 컨텍스트 엔지니어링 개념 정리 문서 추가
- Context_Engineering_Research.ipynb: 연구 노트북 업데이트
- deepagents_sourcecode/: docstring과 주석을 한국어로 번역
2026-01-11 17:55:52 +09:00

35 lines
1.0 KiB
Python

"""deepagents-cli 시작 시 보여주는 환영 배너 위젯입니다.
Welcome banner widget for deepagents-cli.
"""
from __future__ import annotations
from typing import Any
from textual.widgets import Static
from deepagents_cli._version import __version__
from deepagents_cli.config import DEEP_AGENTS_ASCII
class WelcomeBanner(Static):
"""Welcome banner displayed at startup."""
DEFAULT_CSS = """
WelcomeBanner {
height: auto;
padding: 1;
margin-bottom: 1;
}
"""
def __init__(self, **kwargs: Any) -> None:
"""Initialize the welcome banner."""
# Use the same green color as the original UI (#10b981)
banner_text = f"[bold #10b981]{DEEP_AGENTS_ASCII}[/bold #10b981]"
banner_text += f"[dim]v{__version__}[/dim]\n"
banner_text += "[#10b981]Ready to code! What would you like to build?[/#10b981]\n"
banner_text += "[dim]Enter send • Ctrl+J newline • @ files • / commands[/dim]"
super().__init__(banner_text, **kwargs)