Compare commits

..

3 Commits

Author SHA1 Message Date
Soulter eafb339281 feat(logging): add file and trace logging configuration options 2026-01-30 11:54:08 +08:00
Soulter f03dd87502 fix(log): increase log cache size from 200 to 500 2026-01-30 10:53:15 +08:00
Soulter 6e475074a4 feat: trace 2026-01-29 20:56:45 +08:00
9 changed files with 10 additions and 27 deletions
+1 -1
View File
@@ -1 +1 @@
__version__ = "4.13.2"
__version__ = "4.13.0"
+1 -1
View File
@@ -84,7 +84,7 @@ class LocalPythonTool(FunctionTool):
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
) -> ToolExecResult:
if context.context.event.role != "admin":
return "error: Permission denied. Local Python execution is only allowed for admin users. Tell user to set admins in AstrBot WebUI."
return "error: Permission denied. Local Python execution is only allowed for admin users. Set admins in AstrBot WebUI."
sb = get_local_booter()
try:
+1 -1
View File
@@ -47,7 +47,7 @@ class ExecuteShellTool(FunctionTool):
env: dict = {},
) -> ToolExecResult:
if context.context.event.role != "admin":
return "error: Permission denied. Shell execution is only allowed for admin users. Tell user to Set admins in AstrBot WebUI."
return "error: Permission denied. Shell execution is only allowed for admin users. Set admins in AstrBot WebUI."
if self.is_local:
sb = get_local_booter()
+1 -1
View File
@@ -5,7 +5,7 @@ from typing import Any, TypedDict
from astrbot.core.utils.astrbot_path import get_astrbot_data_path
VERSION = "4.13.2"
VERSION = "4.13.0"
DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
WEBHOOK_SUPPORTED_PLATFORMS = [
@@ -582,7 +582,9 @@ class InternalAgentSubStage(Stage):
req.extra_user_content_parts.append(
TextPart(text=f"[Image Attachment: path {image_path}]")
)
elif isinstance(comp, File):
elif isinstance(comp, File) and self.sandbox_cfg.get(
"enable", False
):
file_path = await comp.get_file()
file_name = comp.name or os.path.basename(file_path)
req.extra_user_content_parts.append(
@@ -609,10 +611,7 @@ class InternalAgentSubStage(Stage):
logger.error(f"Error occurred while applying file extract: {e}")
if not req.prompt and not req.image_urls:
if not event.get_group_id() and req.extra_user_content_parts:
req.prompt = "<attachment>"
else:
return
return
# call event hook
if await call_event_hook(event, EventType.OnLLMRequestEvent, req):
+1 -2
View File
@@ -17,8 +17,7 @@ from astrbot.core.utils.astrbot_path import (
SKILLS_CONFIG_FILENAME = "skills.json"
DEFAULT_SKILLS_CONFIG: dict[str, dict] = {"skills": {}}
# SANDBOX_SKILLS_ROOT = "/home/shared/skills"
SANDBOX_SKILLS_ROOT = "skills"
SANDBOX_SKILLS_ROOT = "/home/shared/skills"
_SKILL_NAME_RE = re.compile(r"^[A-Za-z0-9._-]+$")
-7
View File
@@ -1,7 +0,0 @@
## What's Changed
### fixes
- feat(chat): refactor message rendering and introduce ToolCallItem component
- fix(db): using lambda expression to ensure updated_at field ([#4730](https://github.com/AstrBotDevs/AstrBot/issues/4730))
- fix(skills): update SANDBOX_SKILLS_ROOT path to use relative directory
-8
View File
@@ -1,8 +0,0 @@
## What's Changed
### fixes
- feat(chat): feat: trace and log file config ([#4747](https://github.com/AstrBotDevs/AstrBot/issues/4747))
- fix: WebUI shows success message when skills upload failed ([#4768](https://github.com/AstrBotDevs/AstrBot/issues/4768))
- fix: cannot use tools when using skills-like tool schema mode ([#4775](https://github.com/AstrBotDevs/AstrBot/issues/4775))
- fix(context): llm tools' origin in WebUI displayed `unknown` ([#4776](https://github.com/AstrBotDevs/AstrBot/issues/4776))
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "AstrBot"
version = "4.13.2"
version = "4.13.0"
description = "Easy-to-use multi-platform LLM chatbot and development framework"
readme = "README.md"
requires-python = ">=3.10"