diff --git a/android-webview-app/APP_CHANGELOG.md b/android-webview-app/APP_CHANGELOG.md index ede081e..8018b0b 100644 --- a/android-webview-app/APP_CHANGELOG.md +++ b/android-webview-app/APP_CHANGELOG.md @@ -1,5 +1,8 @@ # App 更新说明 +# 1.0.7 +- 应用图标替换为新的机器人插画 PNG 版本 + # 1.0.6 - 应用图标替换为指定 JPG 图片资源 - 更新 AndroidManifest 图标引用(icon / roundIcon) diff --git a/android-webview-app/app/build.gradle.kts b/android-webview-app/app/build.gradle.kts index b59ddac..79b7e86 100644 --- a/android-webview-app/app/build.gradle.kts +++ b/android-webview-app/app/build.gradle.kts @@ -16,8 +16,8 @@ android { applicationId = "com.cyjai.agent" minSdk = 24 targetSdk = 35 - versionCode = 7 - versionName = "1.0.6" + versionCode = 8 + versionName = "1.0.7" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } diff --git a/android-webview-app/app/src/main/res/drawable/ic_launcher_photo.jpg b/android-webview-app/app/src/main/res/drawable/ic_launcher_photo.jpg deleted file mode 100644 index cac6550..0000000 Binary files a/android-webview-app/app/src/main/res/drawable/ic_launcher_photo.jpg and /dev/null differ diff --git a/android-webview-app/app/src/main/res/drawable/ic_launcher_photo.png b/android-webview-app/app/src/main/res/drawable/ic_launcher_photo.png new file mode 100644 index 0000000..19f1c7e Binary files /dev/null and b/android-webview-app/app/src/main/res/drawable/ic_launcher_photo.png differ diff --git a/core/main_terminal_parts/tools_definition.py b/core/main_terminal_parts/tools_definition.py index 956f19d..4ff0838 100644 --- a/core/main_terminal_parts/tools_definition.py +++ b/core/main_terminal_parts/tools_definition.py @@ -184,7 +184,8 @@ class MainTerminalToolsDefinitionMixin: def define_tools(self) -> List[Dict]: """定义可用工具(添加确认工具)""" - current_time = datetime.now().strftime("%Y-%m-%d %H") + now = datetime.now() + current_time = f"{now.year}年{now.month}月{now.day}日 {now.hour}点(24小时制)" tools = [ { diff --git a/utils/context_manager.py b/utils/context_manager.py index 4c44f03..871adbb 100644 --- a/utils/context_manager.py +++ b/utils/context_manager.py @@ -1686,6 +1686,9 @@ class ContextManager: else f"CPU {self.container_cpu_limit} 核,内存 {self.container_memory_limit},磁盘配额 {self.project_storage_limit}" ) + now = datetime.now() + current_time_text = f"{now.year}年{now.month}月{now.day}日 {now.hour}点(24小时制)" + content = template.format( runtime_environment=runtime_environment, resource_limit=resource_limit, @@ -1693,7 +1696,7 @@ class ContextManager: container_cpus=self.container_cpu_limit, container_memory=self.container_memory_limit, project_storage=self.project_storage_limit, - current_time=datetime.now().strftime("%Y-%m-%d %H"), + current_time=current_time_text, file_tree=( "(以下为工作区根目录的部分文件和文件夹)\n" + context["project_info"]["file_tree"] if context["project_info"].get("file_tree") @@ -1717,6 +1720,8 @@ class ContextManager: container_memory = self.container_memory_limit project_storage = self.project_storage_limit prompt_replacements = get_model_prompt_replacements(model_key) + now = datetime.now() + current_time_text = f"{now.year}年{now.month}月{now.day}日 {now.hour}点(24小时制)" system_prompt = system_prompt.format( project_path=container_path, container_path=container_path, @@ -1725,7 +1730,7 @@ class ContextManager: project_storage=project_storage, file_tree=context["project_info"]["file_tree"], memory=context["memory"], - current_time=datetime.now().strftime("%Y-%m-%d %H"), + current_time=current_time_text, model_description=prompt_replacements.get("model_description", "") )