Skip to content

Latest commit

 

History

History
253 lines (207 loc) · 11.5 KB

File metadata and controls

253 lines (207 loc) · 11.5 KB

Changelog

本文件记录 @blade-ai/agent-sdk 的所有重要变更。

[1.0.12] - 2026-06-01

  • dffe296 feat(package exports): 新增多子路径包导出,区分浏览器与服务端入口

[1.0.11] - 2026-06-01

  • 31f1c68 feat(session): 新增token预算配置支持
  • 25d867b feat: 完善工具白名单处理并新增模型参数配置支持
  • 57efc18 feat(observability): 新增Agent会话可观测性追踪支持

[1.0.10] - 2026-05-30

  • 无相关变更

[1.0.8] - 2026-04-23

  • 0b2e875 feat(生命周期管理): 添加清理注册表和会话关闭状态管理
  • 48810db feat: 添加懒加载工具模式并优化类型断言
  • fdbd692 refactor(types): 引入 branded 类型并替换相关 string 类型
  • d1fedf4 refactor(session): 将 HookEvent 枚举改为常量对象并修复异步关闭问题
  • 5b5e7b0 feat(错误处理): 实现SDK错误基类及派生错误类
  • c0c85f2 refactor: 移除未使用的代码和内部类型定义
  • f7db395 refactor(tools): 重构工具类型定义,拆分为多个独立文件
  • 540e60c chore: 更新依赖版本并调整tsconfig配置

[1.0.7] - 2026-04-18

  • 59a6f33 feat(execution): 添加并发调度器管理工具执行并发
  • 7097ba5 ci(workflow): 添加多版本Node.js测试支持
  • c1c1ce8 chore: release v1.0.6
  • 72ec339 refactor(agent): 重构流式响应处理与事件队列机制

[1.0.6] - 2026-04-17

  • 72ec339 refactor(agent): 重构流式响应处理与事件队列机制

[1.0.5] - 2026-04-14

  • beac8fc refactor(agent): 将 Message[] 类型改为 readonly Message[] 以增强不可变性
  • b0b38d5 refactor: 统一使用 JsonObject 和 JsonValue 类型替代 Record<string, unknown>
  • e11d471 chore: release v1.0.4
  • c276ab3 refactor(tools): 移除 displayContent 字段并统一使用 metadata.summary
  • 9e1cab6 docs: 添加 Memory 系统、工具来源策略和子 Agent 协作文档

[1.0.4] - 2026-04-11

  • c276ab3 refactor(tools): 移除 displayContent 字段并统一使用 metadata.summary
  • 9e1cab6 docs: 添加 Memory 系统、工具来源策略和子 Agent 协作文档

[1.0.3] - 2026-04-10

  • 4e3cf2a refactor: 优化代码中的空值检查和类型安全处理
  • 6307a10 feat: 引入 ConversationState 和 ExecutionEpoch 实现消息单一事实源与事务边界
  • 6772a52 docs: 根据 1.0.x 代码更新文档和 README
  • 61841db chore: release v1.0.2
  • 2d5bac1 feat(integration): 扩展集成测试以覆盖持久化会话、MCP、子代理和多模态功能
  • 2b737f2 chore: release v1.0.1
  • 6db7dfb test: 添加集成测试文件并更新开发工具配置
  • 789024c feat(session): 添加会话恢复支持和turn_end事件转发
  • 497fe6f chore: release v1.0.0
  • ee7cb3f feat(agent): 重构后台代理管理器以支持多运行时和进度跟踪
  • 53ea992 refactor(agent): 提取运行时补丁管理和循环钩子构建逻辑
  • 53e2707 chore: 移除 ACP 相关代码和依赖
  • a84abfe feat(tools): 引入工具目录、运行时补丁和工具发现机制
  • 7c0ea04 feat(skills): 实现基于运行时补丁的技能激活系统
  • 6fcfa9e docs: 完善多个文档章节,新增自动上下文压缩等功能介绍
  • e1d56ad feat: 增强子代理与技能运行时控制,改进上下文压缩和后台代理管理
  • 6195b4f feat(agent): 改进上下文溢出恢复机制,支持嵌套错误检测
  • 5bbcda5 feat(agent): 实现流式工具执行器并修复参数预处理
  • 219a940 feat: 新增会话隔离的子代理注册表和可选内存工具
  • 92490b2 fix: enforce slug names for filesystem memory
  • 8a85354 fix: keep filesystem index internal
  • 50ae8e2 feat: add opt-in filesystem memory store
  • 14da1fd fix: enforce deterministic ordering in memory manager
  • ef61fd7 refactor: abstract memory manager over store interface
  • bf8f944 docs: add memory and subagent boundaries design spec
  • c9d2167 feat(agent): 引入 token 预算和智能工具执行规划
  • e9cfb02 chore: release v0.2.8
  • b905554 feat(session): 支持多模态消息中的图像内容持久化
  • a265f5c chore: release v0.2.7
  • c93f077 chore: release v0.2.6
  • 0805124 refactor(scripts): 重构发布工具函数以支持通过.npmrc文件进行认证
  • f8934ca chore: release v0.2.5
  • b38bd52 fix: harden release publish flow
  • c95234e chore: release v0.2.4
  • c7d6778 build: migrate from bun to pnpm and vitest
  • bea6b62 docs: refresh README overview
  • 4db7cd2 docs: add linux.do link to README

[1.0.2] - 2026-04-07

  • 2d5bac1 feat(integration): 扩展集成测试以覆盖持久化会话、MCP、子代理和多模态功能

[1.0.1] - 2026-04-06

  • 6db7dfb test: 添加集成测试文件并更新开发工具配置
  • 789024c feat(session): 添加会话恢复支持和turn_end事件转发

[1.0.0] - 2026-04-06

  • ee7cb3f feat(agent): 重构后台代理管理器以支持多运行时和进度跟踪
  • 53ea992 refactor(agent): 提取运行时补丁管理和循环钩子构建逻辑
  • 53e2707 chore: 移除 ACP 相关代码和依赖
  • a84abfe feat(tools): 引入工具目录、运行时补丁和工具发现机制
  • 7c0ea04 feat(skills): 实现基于运行时补丁的技能激活系统
  • 6fcfa9e docs: 完善多个文档章节,新增自动上下文压缩等功能介绍
  • e1d56ad feat: 增强子代理与技能运行时控制,改进上下文压缩和后台代理管理
  • 6195b4f feat(agent): 改进上下文溢出恢复机制,支持嵌套错误检测
  • 5bbcda5 feat(agent): 实现流式工具执行器并修复参数预处理
  • 219a940 feat: 新增会话隔离的子代理注册表和可选内存工具
  • 92490b2 fix: enforce slug names for filesystem memory
  • 8a85354 fix: keep filesystem index internal
  • 50ae8e2 feat: add opt-in filesystem memory store
  • 14da1fd fix: enforce deterministic ordering in memory manager
  • ef61fd7 refactor: abstract memory manager over store interface
  • bf8f944 docs: add memory and subagent boundaries design spec
  • c9d2167 feat(agent): 引入 token 预算和智能工具执行规划

[0.2.8] - 2026-03-31

  • b905554 feat(session): 支持多模态消息中的图像内容持久化

[0.2.7] - 2026-03-29

  • 无相关变更

[0.2.6] - 2026-03-29

  • 0805124 refactor(scripts): 重构发布工具函数以支持通过.npmrc文件进行认证

[0.2.5] - 2026-03-29

  • b38bd52 fix: harden release publish flow

[0.2.4] - 2026-03-29

  • c7d6778 build: migrate from bun to pnpm and vitest
  • bea6b62 docs: refresh README overview
  • 4db7cd2 docs: add linux.do link to README

[0.2.3] - 2026-03-27

  • 96bc8db refactor(权限模式): 移除 BYPASSALL 权限模式及相关文档
  • 01c0e99 ci: 重新生成 bun.lock 使用公网 registry,去除所有内网依赖
  • fd994f3 ci: 修复 CI registry 配置,使用公网 npm registry
  • e91fde0 docs: 搭建 VitePress 文档站点并更新全部用户文档

[0.2.2] - 2026-03-27

  • f0fc8e6 refactor: 消除所有纯静态类以满足 biome noStaticOnlyClass 规则
  • 83d915e fix(发布脚本): 修复推送远程仓库时标签推送的问题

[0.2.1] - 2026-03-27

  • 无相关变更

[0.2.0] - 2026-03-26

  • 7f20f3f feat(hooks): 扩展hook系统支持更多事件类型和控制流
  • 5d29870 feat(skills): 增强技能系统功能并添加内联命令支持
  • 6a84c05 refactor(skills): 移除内置skill-creator及相关逻辑
  • 1fd3b8e refactor(skills): 移除 SkillInstaller 并简化技能加载逻辑
  • 8816878 refactor(version): 移除版本检查服务及相关功能
  • fd55a4d refactor(storage): 重构存储系统以支持自定义存储根目录
  • 65128d3 refactor(chat-service): 移除内置API Key相关功能
  • 3d3ee79 refactor(prompts): 重构系统提示构建逻辑,移除默认提示
  • db00d74 chore: release v0.1.19
  • dbc37a3 fix: pass registry to bun publish
  • 99e9e7d chore: release v0.1.18
  • 55242a6 fix: stabilize concurrent session logger routing
  • 8e8f57c chore: switch repo workflow to bun
  • a1d1de3 feat(session): 支持禁用会话持久化模式

[0.1.19] - 2026-03-20

  • dbc37a3 fix: pass registry to bun publish

[0.1.18] - 2026-03-20

  • 55242a6 fix: stabilize concurrent session logger routing
  • 8e8f57c chore: switch repo workflow to bun
  • a1d1de3 feat(session): 支持禁用会话持久化模式

[0.1.17] - 2026-03-12

  • f3eb08c fix: 移除对 process.cwd() 的隐式依赖,增强文件系统访问安全性

[0.1.16] - 2026-03-12

  • c17e79b feat: 重构运行时上下文管理,引入ContextSnapshot机制

[0.1.15] - 2026-03-09

  • 14ea476 test(SessionOpenAIConfig): 简化测试用例并移除不必要的模拟
  • 986975f feat(openai): 添加原生OpenAI支持并透传自定义headers

[0.1.14] - 2026-03-09

  • 248bc0d ci: 固定Bun版本为1.2.22并清理依赖项
  • 053498f refactor: 清理废弃模板和文档,优化导出结构
  • 9b5cee9 refactor: 移除文件检查点功能及相关代码
  • 88e7b25 refactor(Session): 添加初始化检查和方法封装
  • 60d6d6e feat: 重构日志系统以支持依赖注入和隔离
  • 886cab9 refactor: 移除插件系统和命令系统相关代码
  • f515655 refactor: 移除 Spec 模式相关代码和功能
  • 0fda735 fix: 修复类型断言和测试中的类型错误
  • 951dcb2 feat(mcp): 增强 JSON Schema 到 Zod 的转换功能
  • 4763724 refactor(agent): 重构代理循环逻辑并提取决策模块
  • 7fc2f0e refactor(agent): 移除 ExecutionEngine 并重构上下文管理
  • 7a86ef9 refactor(session): unify runtime ownership
  • 455f3cc refactor: extract AGENT_TURN_SAFETY_LIMIT constant to reduce duplication

[0.1.13] - 2026-02-28

  • cc76545 feat: 添加 ProviderConfig 类型导出

[0.1.12] - 2026-02-28

  • 879e353 build: 添加构建类型声明配置并更新构建脚本

[0.1.11] - 2026-02-28

  • 722cd05 ci: 指定 npm registry 为官方源

[0.1.10] - 2026-02-28

  • 67a4890 feat: 添加错误处理工具函数并重构错误处理逻辑
  • 381387f refactor(agent): 统一使用 AgentEvent 类型替代 AgentLoopEvent

[0.1.9] - 2026-02-26

  • 6e092f1 refactor: remove openai dep, split Agent.ts, McpRegistry per-instance, provider lazy import

[0.1.8] - 2026-02-18

  • 7e41a2d test: add unit tests for SkillLoader, ToolRegistry, ContextCompressor
  • 318be66 test: add AgentLoop unit tests (20 cases)
  • c345a5e refactor: remove dead executeLoopStream + clean unused imports
  • d6d659d refactor: wire executeWithAgentLoop into Agent.ts (P0 step 2)
  • d4b909b refactor: extract AgentLoop + standardize AgentEvent types (P0)

[0.1.7] - 2026-02-12

  • 6b9f68c feat: export modelDetection utilities (detectThinkingSupport, getThinkingConfig, isThinkingModel)

[0.1.6] - 2026-02-12

  • d3708fe chore: update bun.lock
  • d3754d3 fix: connectServer/reconnectServer 成功后显式设置 CONNECTED 状态
  • 3acf9f2 feat(mcp): 添加对进程内MCP服务器的支持
  • 8e01a9f test: 添加多个测试文件覆盖核心功能模块
  • bf48a2f docs: 添加文档文件并更新README

[0.1.5] - 2026-02-08

  • 无相关变更

[0.1.4] - 2026-02-08

  • e65fad4 feat(session): 添加会话分叉功能
  • 8e55094 feat(文件检查点): 实现文件变更追踪和回滚功能
  • 81d5cd1 feat(沙箱): 添加沙箱执行功能和安全检查
  • 922d33c feat(mcp): 添加 MCP 资源管理工具
  • 7102e51 feat(agent): 添加结构化输出格式支持
  • fbf2437 feat(发布脚本): 为发布流程添加详细的步骤日志输出

[0.1.3] - 2026-02-08

  • 19c017b refactor(mcp): 重构MCP模块并移除废弃的Copilot和Antigravity服务

[0.1.2] - 2026-02-08

  • 25eacfe refactor(agent): 重构事件处理机制,使用统一的事件流接口
  • e8c7ebf test: 添加多个测试文件包括HookConfig、TokenCounter、路径安全、Matcher、工具创建和输出解析

[0.1.1] - 2026-02-08

  • 3121d6c feat(hooks): 新增 SubagentStart 和 TaskCompleted 钩子事件

[0.1.0] - 2026-02-08

  • 无相关变更

[Unreleased]

  • 暂无

[0.0.1] - 2026-02-08

  • 初始发布