Skip to content

New Crowdin updates#1157

Open
This-is-XiaoDeng wants to merge 356 commits into
mainfrom
l10n_main
Open

New Crowdin updates#1157
This-is-XiaoDeng wants to merge 356 commits into
mainfrom
l10n_main

Conversation

@This-is-XiaoDeng

Copy link
Copy Markdown
Member

No description provided.

@codacy-production

codacy-production Bot commented May 26, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

This-is-XiaoDeng and others added 28 commits June 6, 2026 22:40
refactor(chat): 移除 self_action_ctrl 中的结果笔记存储功能
…elf-action

refactor(chat): 移除 self_action_ctrl 中多余的 identity_prompt 注入
feat(chat): 添加每日日记生成功能
…, add precheck, extract constant

- models.py: 移除 index=True,避免与迁移文件重复创建索引
- models.py: default=func.now() → server_default=func.now()
- __main__.py: 移除 used_at=datetime.now(),让数据库自动填充
- __main__.py: 添加 matcher.type != 'message' 前置检查
- __main__.py: 提取 RANK_COMMAND_NAMES 常量替代硬编码跳过列表
✨ feat: 添加指令统计插件 - 近7天热门指令排行
Migrate from hardcoded language strings to a structured Jinja2 template system for all AI prompts. This change improves prompt maintainability, allows for complex logic within templates (like conditional content and loops), and centralizes prompt management.

Key changes:
- Introduced a new `src/prompt/` directory containing organized Jinja2 templates (`.md.jinja`) and tool definitions (`.yaml`).
- Implemented `get_message`, `get_message_text`, and `get_messages` utilities in `nonebot_plugin_openai` to handle template rendering.
- Refactored multiple utility modules (`ai_agent.py`, `file.py`, `group.py`, `image.py`, `instant_mem.py`, `note_manager.py`) to use the new template engine.
- Replaced the deprecated `src/plugins/nonebot_plugin_chat/utils/prompt.py`.
- Added comprehensive tool descriptions in YAML format to support agentic workflows.
- Improved prompt injection of dynamic context such as `current_time`, `user_id`, and session-specific variables.
Remove deprecated helper functions for handling chat completions to clean up the client utility module.
Replace manual prompt string construction in `MessageProcessor` with a Jinja2-based template system. This change migrates the system prompt logic to use `chat.md.jinja` via `get_message`, allowing for more flexible and maintainable prompt management.
…inition models

Refactor the tool management system to use a more streamlined approach for
generating function lists and introduce Pydantic models for function
definitions.

- Implement `FunctionParameterDefinition` and `MoonlarkFunctionDefinition`
  in `types.py` for structured tool definitions.
- Replace manual `AsyncFunction` construction in `ToolManager` with
  `create_function_list`.
- Move function generation logic to a new `utils/functions.py` module.
- Remove deprecated `generate_function_list` from `utils/chat.py`.
- Update `send_reaction.yaml` template syntax.
Integrate the new Jinja2-based prompt management system into the
ActionDecider to replace manual message generation.

- Replace `get_prompt_text` with `get_message` using `action_decider.md.jinja`.
- Simplify tool definition in `ActionDecider` by using `create_function_list`.
- Add `action_decider.md.jinja` to the prompt directory.
Decouple prompt templates from YAML localization files and hardcoded strings by migrating them into a dedicated modular directory structure using Jinja2.

- Move prompt content from `src/lang/**/*.yaml` to `src/prompt/**/*.md.jinja`.
- Implement `get_messages`, `get_message`, and `get_message_text` utilities to handle template rendering and message construction.
- Reorganize prompt storage into scoped subdirectories (e.g., `moonlark_main`, `msg_summary`, `bilibili`).
- Update core logic in `ego` and `message_summary` modules to utilize the new template-based retrieval system.
github-actions Bot and others added 30 commits June 30, 2026 00:38
chore(deps-dev): bump ruff from 0.15.19 to 0.15.20
…-pypi

chore: switch adapter-qq to upstream pypi version
feat: add /wdym plugin - What Do You Mean
…ssage

feat(chat): add query_history_message tool
…actions/checkout-7

chore(deps): bump actions/checkout from 6 to 7
…-report

chore(larkcave): remove submission report to chat plugin
Changed 'query_history_message' to 'fetch_history_messages' in
tools __init__.py to match the actual function name defined in
query_history.py.

Fixes ImportError:
  from .query_history import query_history_message
  ImportError: cannot import name 'query_history_message'
…essage

fix: correct function name in query_history import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants