fix: update app icon asset and zh-cn time format

This commit is contained in:
JOJO 2026-04-06 03:11:55 +08:00
parent fafb0d35ad
commit cb92517cf5
6 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,8 @@
# App 更新说明 # App 更新说明
# 1.0.7
- 应用图标替换为新的机器人插画 PNG 版本
# 1.0.6 # 1.0.6
- 应用图标替换为指定 JPG 图片资源 - 应用图标替换为指定 JPG 图片资源
- 更新 AndroidManifest 图标引用icon / roundIcon - 更新 AndroidManifest 图标引用icon / roundIcon

View File

@ -16,8 +16,8 @@ android {
applicationId = "com.cyjai.agent" applicationId = "com.cyjai.agent"
minSdk = 24 minSdk = 24
targetSdk = 35 targetSdk = 35
versionCode = 7 versionCode = 8
versionName = "1.0.6" versionName = "1.0.7"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -184,7 +184,8 @@ class MainTerminalToolsDefinitionMixin:
def define_tools(self) -> List[Dict]: 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 = [ tools = [
{ {

View File

@ -1686,6 +1686,9 @@ class ContextManager:
else f"CPU {self.container_cpu_limit} 核,内存 {self.container_memory_limit},磁盘配额 {self.project_storage_limit}" 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( content = template.format(
runtime_environment=runtime_environment, runtime_environment=runtime_environment,
resource_limit=resource_limit, resource_limit=resource_limit,
@ -1693,7 +1696,7 @@ class ContextManager:
container_cpus=self.container_cpu_limit, container_cpus=self.container_cpu_limit,
container_memory=self.container_memory_limit, container_memory=self.container_memory_limit,
project_storage=self.project_storage_limit, project_storage=self.project_storage_limit,
current_time=datetime.now().strftime("%Y-%m-%d %H"), current_time=current_time_text,
file_tree=( file_tree=(
"(以下为工作区根目录的部分文件和文件夹)\n" + context["project_info"]["file_tree"] "(以下为工作区根目录的部分文件和文件夹)\n" + context["project_info"]["file_tree"]
if context["project_info"].get("file_tree") if context["project_info"].get("file_tree")
@ -1717,6 +1720,8 @@ class ContextManager:
container_memory = self.container_memory_limit container_memory = self.container_memory_limit
project_storage = self.project_storage_limit project_storage = self.project_storage_limit
prompt_replacements = get_model_prompt_replacements(model_key) 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( system_prompt = system_prompt.format(
project_path=container_path, project_path=container_path,
container_path=container_path, container_path=container_path,
@ -1725,7 +1730,7 @@ class ContextManager:
project_storage=project_storage, project_storage=project_storage,
file_tree=context["project_info"]["file_tree"], file_tree=context["project_info"]["file_tree"],
memory=context["memory"], memory=context["memory"],
current_time=datetime.now().strftime("%Y-%m-%d %H"), current_time=current_time_text,
model_description=prompt_replacements.get("model_description", "") model_description=prompt_replacements.get("model_description", "")
) )