updt ori#5
Open
BegoniaHe wants to merge 67 commits into
Open
Conversation
* feature:新增表情包制作工具函数 * feature:新增表情包制作工具函数 * fix spell & make lint happy * style and bug 进行一些调整。 * 获取表情包info封装到一个函数 * fix image array bug modified: src/tool/tool_meme.ts * fix: 修复没有正确返回文本的问题 * Update update.ts --------- Co-authored-by: error2913 <2913949387@qq.com>
* feat:添加“在上下文内添加消息时间”和”活跃时间段随机触发“相关逻辑 issue #33 * 尚未完成工作,只是保存一下下 * finish the work * fix: 修复特定情况无法正确构建content * fix: 修复重复触发问题 * fix: 指令解析错误 --------- Co-authored-by: error2913 <2913949387@qq.com>
* 硬!编码所有指令信息 * Update privilege.ts * 哈哈做完啦 * 果然有!!! * feat: 适配了最新依赖 * feat: 合并相同记忆 ( #47 )
* feat:新增获取精华消息列表和删除精华消息工具
* 重构一下,使solve返回`Promise<{ content: string, images: Image[] }>`
* fix: 修复精华消息图片相关
---------
Co-authored-by: error2913 <2913949387@qq.com>
There was a problem hiding this comment.
Pull Request Overview
This pull request refactors the message structure and implements several new features including time display, privilege management, timer improvements, and enhanced tool function support.
Key Changes
- Refactored message structure from
contentArray/msgIdArrayto a unifiedmsgArraycontaining message metadata (ID, timestamp, content) - Implemented comprehensive privilege system with command-specific and session-based permissions
- Enhanced timer functionality with interval and active time timers
- Improved tool function return format to include both content and images
- Added JSON string repair functionality for handling malformed tool function arguments
Reviewed Changes
Copilot reviewed 41 out of 42 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils/utils_string.ts | Added MessageSegment interface, fmtDate function, and fixJsonString utility |
| src/utils/utils_message.ts | Refactored message building to use new msgArray structure with timestamps |
| src/utils/utils.ts | Added null handling for transformMsgId and revive utility function |
| src/update.ts | Updated version history and changelog |
| src/tool/*.ts | Updated all tool functions to return {content, images} format |
| src/timer.ts | Converted TimerInfo to class, added interval and active time timer support |
| src/service.ts | Updated to use transformTextToArray for message processing |
| src/privilege.ts | New file implementing comprehensive privilege management system |
| src/index.ts | Major refactoring of command handling and privilege checking |
| src/config/*.ts | Added time display configuration and updated templates |
| src/AI/*.ts | Refactored to use new message structure and added active timer checking |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
* feat: 添加markdown/html图片渲染工具和相关后端项目 * style调整 * feat:将md和html拆分成两个函数 * style * feat:修改为base64返回,允许长久储存 * style * 对image进行重构 --------- Co-authored-by: error2913 <2913949387@qq.com>
* feat:允许render工具渲染url和base64图片 * fix:添加对html中图片作为背景的替换兼容 * 改回第一版( * update update info --------- Co-authored-by: error2913 <2913949387@qq.com>
* feat:修改tti返回url,添加tti本地保存功能 * feat: 添加tti返回base64的情况处理,不管是否保存都将图片url转为base64 * 格式化 --------- Co-authored-by: error2913 <2913949387@qq.com>
* feat: readme更新到当前版本 * fix: 一个显示上的小问题
* feat: 合并转发tool支持 nc和llob文档里支持良好。只做了图片和文本类型的支持。issue#2 * 采用`parseSpecialTokens`方法解析含图片消息 * Update tool_message.ts * 进行一个修 * Update update.ts --------- Co-authored-by: error2913 <2913949387@qq.com>
* 先改两个指令 * 不想改了。 * 哈哈我晕了 * Thanks♪(・ω・)ノ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.