feat: v3.6 重构 - 拆分 ai_cli.py 为模块化架构

本次更新由 mimo 自动化执行,与开发者无关。
新增 xiaoli/ 包:
- __main__.py: 入口点 (python -m xiaoli)
- app.py: 主应用薄编排层(~400行 vs 原3860行)
- config.py: 配置管理
- engines.py: AI 引擎管理
- sandbox.py: 代码安全沙箱
- prompt.py: 系统提示词构建
- conversation/: 对话解析器 + 历史管理
- display/: CLI/TUI 双模式输出
改进:
- 支持 argparse (--tui, --engine, --version)
- 插件命令注册表
- 更新 README
- 更新 .gitignore
原 ai_cli.py 保留向后兼容
This commit is contained in:
Xiaoli Dev committed 2026-04-25 10:55:27 +08:00
1 parent 95a0e4bc5c
commit e1eee6a0c2
12 files changed
+1592 -65

No files matched your search

+21 -54
View File
@@ -3,72 +3,39 @@ __pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
dist/
build/
.eggs/
# Virtual Environment
venv/
ENV/
env/
# 虚拟环境
.venv/
venv/
env/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# Logs
logs/
*.log
xiaoli_cli.log
# Temporary files
nul
temp/
tmp/
*.tmp
# OS
.DS_Store
Thumbs.db
desktop.ini
# Chat history
chat_history/
# Config with secrets
# 配置(含敏感信息)
config.json
# Executables
*.exe
*.dll
*.so
*.appx
# 日志
*.log
logs/
# Development files
love.txt
bug.txt
# 聊天记录
chat_history/
# Screenshots
clawli_files/
# 系统文件
.DS_Store
Thumbs.db
# 大型第三方插件 (NapCat QQ / GLaDOS TTS)
plugins/napcat/
plugins/glados_tts/
plugins/glados_tts_plugin.py
# 嵌入式 Python
embedded_python/
# 临时文件
*.tmp
*.bak