Files
ai-shell/pyproject.toml
zackeryyy wang c4d1510ce9 feat: 新增现代化命令替代功能 v0.2.0
🎯 主要功能:
- 智能检测系统中已安装的现代化命令行工具
- 支持 44 种默认命令映射 (ls→eza, cat→bat, find→fd 等)
- 灵活的环境变量配置系统
- AI 提示词集成,优先推荐现代化工具
- 完整的配置状态显示

⚙️ 配置方式:
- 环境变量: AI_SHELL_MODERN_COMMANDS="ls:eza,cat:bat"
- .env 文件配置支持
- 动态配置检测和合并

🔧 技术实现:
- 新增 get_modern_commands() 配置管理
- 新增 get_available_modern_commands() 系统检测
- 新增 generate_modern_commands_prompt() 提示词生成
- 更新 AI agent 系统提示词
- 完善配置显示和测试脚本

📊 支持的现代化工具:
文件操作: eza, bat, fd, tree
文本处理: rg, sd, choose, delta
系统监控: procs, htop, ncdu, duf
网络工具: gping, httpie, aria2c
编辑器: nvim, micro
其他: zoxide, trash, ouch, pnpm
2025-07-12 22:32:09 +08:00

47 lines
1.2 KiB
TOML

[project]
name = "ai-shell"
version = "0.2.0"
description = "AI-powered shell command generator using DeepSeek V3"
authors = [
{name = "AI Shell Team", email = "ai-shell@example.com"}
]
readme = "README.md"
license = {text = "MIT"}
keywords = ["ai", "shell", "command", "generator", "deepseek"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Shells",
]
requires-python = ">=3.12"
dependencies = [
"pydantic-ai",
"openai",
"requests>=2.32.4",
"python-dotenv>=1.0.0",
]
[project.scripts]
ai = "ai_shell.main:main"
[project.urls]
Homepage = "https://github.com/your-username/ai-shell"
Repository = "https://github.com/your-username/ai-shell"
Issues = "https://github.com/your-username/ai-shell/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["ai_shell"]
[tool.hatch.version]
path = "ai_shell/__init__.py"
# UV 配置已移至 uv.toml 文件