fix: install.sh venv-Fallback + Post-Deployment-Verifikation + --fresh-onboarding, Raumübersicht mit Keywords 100% + Kontext
This commit is contained in:
+15
-1
@@ -18,7 +18,21 @@ import urllib.request
|
||||
from typing import Any, Dict, List, Optional
|
||||
import urllib.parse
|
||||
|
||||
from tools.registry import tool_error, tool_result
|
||||
|
||||
# Inlined from tools.registry — avoids import conflict with the plugin's
|
||||
# own tools.py module (which shadows the core tools/ package when the
|
||||
# plugin directory is on sys.path).
|
||||
def tool_error(message, **extra) -> str:
|
||||
result = {"error": str(message)}
|
||||
if extra:
|
||||
result.update(extra)
|
||||
return json.dumps(result, ensure_ascii=False)
|
||||
|
||||
|
||||
def tool_result(data=None, **kwargs) -> str:
|
||||
if data is not None:
|
||||
return json.dumps(data, ensure_ascii=False)
|
||||
return json.dumps(kwargs, ensure_ascii=False)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user