feat: add 19 fast commands (no-LLM) + incremental embeddings indexing
Fast commands for git, email, calendar, notes, search, reminders, and diagnostics — all execute instantly without Claude CLI. Incremental embeddings indexing in heartbeat (1h cooldown) + inline indexing after /note, /jurnal, /email save. Fix Ollama URL (localhost → 10.0.20.161), fix email_process.py KB path (kb/ → memory/kb/). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import logging
|
||||
from typing import Callable
|
||||
|
||||
from src.config import Config
|
||||
from src.fast_commands import dispatch as fast_dispatch
|
||||
from src.claude_session import (
|
||||
send_message,
|
||||
clear_session,
|
||||
@@ -59,7 +60,13 @@ def route_message(
|
||||
return _model_command(channel_id, text), True
|
||||
|
||||
if text.startswith("/"):
|
||||
return f"Unknown command: {text.split()[0]}", True
|
||||
parts = text[1:].split()
|
||||
cmd_name = parts[0].lower()
|
||||
cmd_args = parts[1:]
|
||||
result = fast_dispatch(cmd_name, cmd_args)
|
||||
if result is not None:
|
||||
return result, True
|
||||
return f"Unknown command: /{cmd_name}", True
|
||||
|
||||
# Regular message → Claude
|
||||
if not model:
|
||||
|
||||
Reference in New Issue
Block a user