feat: virtual company module, team projects, PWA dishes app, and startup scripts overhaul

- Add company module (3-tier org, CEO planning, parallel departments)
- Add company orchestrator, knowledge extractor, presets, scheduler
- Add company API endpoints, models, and frontend views
- Add 今天吃啥 PWA app (69 dishes, real images, offline support)
- Add team_projects output directory structure
- Add unified manage.ps1 for service lifecycle
- Add Windows startup guide v1.0
- Add TTS troubleshooting doc
- Update frontend (AgentChat UX overhaul, new views)
- Update backend (voice engine fix, multi-tenant, RBAC)
- Remove deprecated startup scripts and old docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 22:37:56 +08:00
parent 3483c6b3be
commit f2e65a8fbb
259 changed files with 39239 additions and 3148 deletions

View File

@@ -381,7 +381,7 @@ class AgentRuntime:
plan = None
# 3. ReAct 循环
llm = _LLMClient(self.config.llm)
llm = _LLMClient(self.config.llm, self.compaction_engine)
tool_schemas = self.tool_manager.get_tool_schemas()
has_tools = self.tool_manager.has_tools()
steps: List[AgentStep] = []
@@ -860,7 +860,7 @@ class AgentRuntime:
plan = None
# 3. ReAct 循环
llm = _LLMClient(self.config.llm)
llm = _LLMClient(self.config.llm, self.compaction_engine)
tool_schemas = self.tool_manager.get_tool_schemas()
has_tools = self.tool_manager.has_tools()
steps: List[AgentStep] = []
@@ -1752,10 +1752,11 @@ async def _llm_cache_set(key: str, value: str, ttl_ms: int):
class _LLMClient:
"""轻量 LLM 客户端包装,复用已有 LLMService 能力。"""
def __init__(self, config: Any):
def __init__(self, config: Any, compaction_engine: Any = None):
from app.services.llm_service import llm_service
self._service = llm_service
self._config = config
self.compaction_engine = compaction_engine
async def chat(
self,