Skip to content

Conversation

@MiaowFISH
Copy link
Collaborator

@MiaowFISH MiaowFISH commented Sep 19, 2025

[Unreleased]

Added

  • 核心工具插件,支持消息发送、图片描述和打字模拟功能
  • 动态模型选择和健康管理系统 (ModelSwitcher)
  • 遥测插件,集成 Sentry 错误追踪
  • 向量存储插件,支持 PGlite 驱动
  • 文本转语音插件,支持多语言配置和 Fish Audio
  • 支持视觉模型的动态模型或组选择
  • 动作级别的心跳继续控制机制
  • 新的上下文系统

Changed

  • 重大变更: 重构插件系统,迁移到统一插件架构
  • 重大变更: 替换扩展系统为插件系统,移除 IExtension 接口
  • 重大变更: 重构工具执行上下文
  • 重新组织命令处理和配置管理
  • 迁移向量存储到 @yesimbot/vector-driver-pglite
  • 更新构建脚本使用 pkgroll
  • 将插件包移动到 plugins 文件夹
  • 重构代码执行器依赖,简化 Python 环境
  • 更新包依赖到最新版本,增强类型安全
  • 优化消息处理和历史管理
  • 简化事件处理和上下文管理
  • 重命名 ToolService 为 PluginService
  • 集成遥测配置到主配置
  • 增强模型权重处理和错误分类
  • 使用 Koishi 的 Logger 替换本地 Logger
  • 优化熔断器逻辑和模型状态管理
  • 更新 Athena ReAct 代理的对话风格和内在逻辑
  • 重构世界状态管理与响应处理机制

Removed

  • 重大变更: 移除旧的扩展系统和相关类型
  • 移除 commitlint 和 commitizen 依赖
  • 移除 ArchivalMemoryManager
  • 移除 Logger 服务及相关引用
  • 移除 AppError 使用和错误处理
  • 移除 vision-tools 包及相关文件
  • 移除 JavaScript 执行器和 isolated-vm 依赖
  • 清理未使用的扩展命令和依赖

Fixed

  • 增强视觉模型处理和代码清理
  • 修正聊天模型 fetch 函数签名和信号处理
  • 在多个服务的 catch 块中添加错误类型注解
  • 修复配置中的意愿配置默认值和描述
  • 修复上下文处理中的异常捕获
  • 响应频道支持直接填写用户 ID
  • 优化 TTS 适配器的停止逻辑和临时目录管理
  • 过滤空行优化日志读取,增加日志长度限制

Summary by CodeRabbit

  • 新功能

    • 新增 .conf.get / .conf.set 命令,可运行时查看与修改配置
    • 集成遥测与错误追踪(Sentry)
    • 引入全新插件/工具框架:工具、动作、钩子与能力激活器
    • 多模型切换策略与鲁棒性(故障隔离、重试、权重/轮询/随机)
    • 丰富的世界状态、记忆检索与事件记录能力;新增群组交互与记忆检索工具
  • 缺陷修复

    • 修复权限控制相关问题(authority)
  • 重构

    • 核心服务、模型与资产管理重组,简化上下文与调用流程
  • 杂项

    • 配置与风格规则更新,版本号升级到 2.0.2

- 在 ContextBuilder 中引入基于刺激的世界状态构建机制
- 更新 EventListenerManager 以处理多种刺激类型
- 改进智能体刺激及其有效负载的类型定义
- 调整内存管理类以适配新配置与模型处理机制
@MiaowFISH MiaowFISH requested a review from Copilot September 19, 2025 16:51

This comment was marked as outdated.

coderabbitai[bot]

This comment was marked as outdated.

Docstrings generation was requested by @MiaowFISH.

* #157 (comment)

The following files were modified:

* `packages/core/src/agent/heartbeat-processor.ts`
* `packages/core/src/config/migrations.ts`
* `packages/core/src/services/extension/decorators.ts`
coderabbitai[bot]

This comment was marked as outdated.

- Updated the fetchWebPage and webSearch methods in SearchExtension to use WithSession for argument types.
- Modified Tool decorator to accept WithSession type for tool execution.
- Refactored BaseModel and ChatModel constructors to remove logger initialization.
- Enhanced ChatModel to support abort signals during chat requests.
- Updated model configuration to include new ModelType enum and refactored related schemas.
- Improved error handling and logging in various memory management classes.
- Added README files for new packages: rr3, sticker-manager, tts, and vision-tools.
- Ensured all tools and services utilize WithSession for consistent session handling.
coderabbitai[bot]

This comment was marked as outdated.

…ces and utilities

- Updated catch blocks in EventListenerManager, InteractionManager, SemanticMemoryManager, ArchivalMemoryManager, ErrorReporter, and various services to specify error type as 'any'.
- Removed esbuild configuration files from daily-planner, favor, mcp, sticker-manager, and tts packages.
- Updated package.json scripts in daily-planner, favor, sticker-manager, and tts to use 'tsc -b && dumble' for builds.
- Adjusted tsconfig.json files across multiple packages to improve type checking and configuration consistency.
- Enhanced error handling in various methods to provide clearer logging and error messages.
…e operations

- Added PGliteDriver class for managing database connections and queries.
- Implemented support for vector data types in the database schema.
- Created methods for table management, including create, drop, and update operations.
- Added transaction support for batch operations.
- Added tests for connecting to the database and verifying vector support.
- Developed VectorStoreService for managing vector data in Koishi.
- Integrated PGliteDriver for database interactions.
- Implemented methods for creating, retrieving, and removing vector data.
coderabbitai[bot]

This comment was marked as outdated.

@MiaowFISH MiaowFISH changed the title refactor: model/worldstate refactor: 全局世界状态驱动与任务调度重构 Sep 25, 2025
@MiaowFISH MiaowFISH requested a review from Copilot September 25, 2025 16:44

This comment was marked as resolved.

@YesWeAreBot YesWeAreBot deleted a comment from coderabbitai bot Sep 25, 2025
coderabbitai[bot]

This comment was marked as resolved.

…management

- Added ModelSwitcher class to handle model selection based on health and strategy.
- Introduced ChatModelSwitcher for chat-specific model handling with vision capabilities.
- Implemented model health tracking and circuit breaker logic.
- Enhanced error handling with ModelError classification.
- Updated service and provider instances to integrate new model switching logic.
- Created utility functions for external control and batch health checks.
- Refactored existing model service code to accommodate new architecture.
MiaowFISH and others added 30 commits December 7, 2025 13:41
Update recommended model to `gemini-3-pro` in plugin usage instructions
Fix baseURL handling and improve model endpoint resolution logic
重构了 `HeartbeatProcessor` 以简化其内部架构,并将模型执行与响应解析逻辑直接整合到心跳主循环中。

- 迁移至 `@yesimbot/shared-model` 以支持更灵活的流式处理
- 删除了 `executeModelChat` 和 `parseAndValidateResponse` 方法以减少抽象层级
- 实现了首字超时(first-token timeout)检测机制,提升了流式响应的稳定性
- 将提示词渲染逻辑移动至重试循环内,确保重试时上下文的实时性
- 强化了流式事件的处理流程,增加了更详细的任务进度日志和 Token 消耗统计
- 重构 PluginService,实现 getTools 方法以统一将插件函数转换为标准工具格式
- 在 HeartbeatProcessor 中集成 generateText,支持非流式响应模式
- 优化工具调用逻辑,支持 toolChoice 配置并完善执行机制
- 将 xsai 相关包提升至 0.4.0-beta.12 版本
- 移除 core 与插件中不再使用的 pack 命令
- 在 shared-model 中分离同步任务并新增打包构建选项
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.

4 participants