Skip to content

updt ori#5

Open
BegoniaHe wants to merge 67 commits into
DCRepairCenter:mainfrom
error2913:main
Open

updt ori#5
BegoniaHe wants to merge 67 commits into
DCRepairCenter:mainfrom
error2913:main

Conversation

@BegoniaHe

Copy link
Copy Markdown
Member

No description provided.

error2913 and others added 28 commits October 5, 2025 02:03
* 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>
还有解析优化
1:清除所有上下文,2:清除assistant和tool上下文,3:清除user上下文
* 硬!编码所有指令信息

* Update privilege.ts

* 哈哈做完啦

* 果然有!!!

* feat: 适配了最新依赖

* feat: 合并相同记忆 ( #47 )
* feat:新增获取精华消息列表和删除精华消息工具

* 重构一下,使solve返回`Promise<{ content: string, images: Image[] }>`

* fix: 修复精华消息图片相关

---------

Co-authored-by: error2913 <2913949387@qq.com>
@BegoniaHe BegoniaHe requested a review from Copilot October 23, 2025 15:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/msgIdArray to a unified msgArray containing 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.

Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_qq_list.ts Outdated
Comment thread src/tool/tool_ban.ts Outdated
Comment thread src/timer.ts
error2913 and others added 30 commits November 4, 2025 01:03
* feat: 添加向量记忆

* 修改memory相关函数

* 调整分数计算

* 配置记忆配置解析 #56

* 新增知识库 #56

* bugfix

* 数值计算调整

* 数值计算调整

* style

* 优化自动更新名字的逻辑

好像跑题了

* search调整

* 调整tool默认搜索模式
* 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♪(・ω・)ノ
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.

5 participants