Final release of version 2.1. Headlights: ### Core Features - 🤖 Interactive chat with 300+ AI models via OpenRouter - 🔍 Model selection with search and filtering - 💾 Conversation save/load/export (Markdown, JSON, HTML) - 📎 File attachments (images, PDFs, code files) - 💰 Real-time cost tracking and credit monitoring - 🎨 Rich terminal UI with syntax highlighting - 📝 Persistent command history with search (Ctrl+R) - 🌐 Online mode (web search capabilities) - 🧠 Conversation memory toggle ### MCP Integration - 🔧 **File Mode**: AI can read, search, and list local files - Automatic .gitignore filtering - Virtual environment exclusion - Large file handling (auto-truncates >50KB) - ✍️ **Write Mode**: AI can modify files with permission - Create, edit, delete files - Move, copy, organize files - Always requires explicit opt-in - 🗄️ **Database Mode**: AI can query SQLite databases - Read-only access (safe) - Schema inspection - Full SQL query support Reviewed-on: #2 Co-authored-by: Rune Olsen <rune@rune.pm> Co-committed-by: Rune Olsen <rune@rune.pm>
25 lines
468 B
Python
25 lines
468 B
Python
"""
|
|
Command system for oAI.
|
|
|
|
This module provides a command registry and handler system
|
|
for processing slash commands in the chat interface.
|
|
"""
|
|
|
|
from oai.commands.registry import (
|
|
Command,
|
|
CommandRegistry,
|
|
CommandContext,
|
|
CommandResult,
|
|
registry,
|
|
)
|
|
from oai.commands.handlers import register_all_commands
|
|
|
|
__all__ = [
|
|
"Command",
|
|
"CommandRegistry",
|
|
"CommandContext",
|
|
"CommandResult",
|
|
"registry",
|
|
"register_all_commands",
|
|
]
|