Repository navigation
Feat/sdk sse adaptation - #125
Merged
Merged
Conversation
Add native Memory Store, memory file, and version APIs with ID-based identity, recoverable initialization, and explicit content synchronization. Resolve declarative memory references into Session mounts with access controls, validation, and initialization readiness checks.
支持事件快照、原始增量归并、可选断流恢复与浏览器公开转换入口。 新增独立脱敏和截断配置,保持现有调用的默认行为不变。 修复恢复阶段状态更新丢失和结构化载荷脱敏遗漏,补齐文档及回归测试。
补齐线程分页、事件快照、取消信号和公开类型,增加合同测试、Cloud 验证探针与文档。 同步提高 Zod 安全版本下界,并验证外部包消费者可以使用新增公开接口。
新增 listModelUsage / listToolUsage 对接 app-control usage.listModelUsage / usage.listToolUsage, 支持 workspace/agent/session 三种 scope 与毫秒级 time_range 交叉校验(session 禁止、其余必传), 公开 UsageScope、ModelUsagePage、ToolUsagePage 等类型;apps/server 暴露 POST /api/usage/models、 POST /api/usage/tools 并刷新 OpenAPI 快照与 webui 生成类型。REST 映射已与 usage 契约方确认为 AgentStudio 资源风格,公网环境启用端点后即通。附 changeset 触发 @openagentpack/sdk minor 版本。
webui 经 openapi-typescript / @redocly/openapi-core 引入 minimatch<11.0.1 (GHSA-g3hv-75wg-m249,moderate,globparts 放大 DoS),root overrides 强制 11.0.3, bun.lock 同步重解析;openapi-typescript 生成回归与全量测试通过。
bun.lock 由 bun 1.4.4 生成,CI 的 1.3.5 消费新格式 lock 在冷缓存 runner 上 连续两次挂起在 Install dependencies(本地 1.3.5/1.4.4 均可正常安装)。 统一全部 workflow 的 bun 至 1.4.4,与 lock 生成版本一致,audit/install 均已在该版本本地验证。
此前在本机重新解析依赖时,本机 npm 配置的公司内网镜像地址(registry.anpm.alibaba-inc.com) 被写入 bun.lock 的 492 个 tarball URL,GitHub runner 公网环境无法访问,导致发布流水线 Install dependencies 无限挂起。用官方 registry 重新生成 lock(恢复默认源的紧凑格式,与 历史成功发布一致),依赖版本顺带升级至最新修复线(zod 4.6.7 / hono 4.13.16 / @hono/node-server 2.1.5 / vite 8.3.5);@biomejs/biome 重解析到 2.6.4 后二进制在 macOS 上执行即被 SIGKILL,直接依赖声明锁定 2.5.3。CI 同款 bun 1.3.5/1.4.4 验证 audit 归零、全量测试通过。
依赖重解析后 @clack/prompts 1.5.1→1.8.1,isCancel 谓词不再把 string | symbol 收窄为 string,init 命令的 provider 传入 parseProvider 报 TS2345。取消分支已提前退出,显式断言 string,运行时行为不变。 全 workspace typecheck 与 cli 测试通过。
…into feat/session-runtime-resource-mount
* feat(sdk): 新增百炼资源用量查询接口 新增 listModelUsage / listToolUsage 对接 app-control usage.listModelUsage / usage.listToolUsage, 支持 workspace/agent/session 三种 scope 与毫秒级 time_range 交叉校验(session 禁止、其余必传), 公开 UsageScope、ModelUsagePage、ToolUsagePage 等类型;apps/server 暴露 POST /api/usage/models、 POST /api/usage/tools 并刷新 OpenAPI 快照与 webui 生成类型。REST 映射已与 usage 契约方确认为 AgentStudio 资源风格,公网环境启用端点后即通。附 changeset 触发 @openagentpack/sdk minor 版本。 * fix: 修复 minimatch 传递依赖漏洞 webui 经 openapi-typescript / @redocly/openapi-core 引入 minimatch<11.0.1 (GHSA-g3hv-75wg-m249,moderate,globparts 放大 DoS),root overrides 强制 11.0.3, bun.lock 同步重解析;openapi-typescript 生成回归与全量测试通过。 * ci: 统一 CI bun 版本至 1.4.4 bun.lock 由 bun 1.4.4 生成,CI 的 1.3.5 消费新格式 lock 在冷缓存 runner 上 连续两次挂起在 Install dependencies(本地 1.3.5/1.4.4 均可正常安装)。 统一全部 workflow 的 bun 至 1.4.4,与 lock 生成版本一致,audit/install 均已在该版本本地验证。 * fix: 恢复 bun.lock 为默认官方 registry 并锁定 biome 版本 此前在本机重新解析依赖时,本机 npm 配置的公司内网镜像地址(registry.anpm.alibaba-inc.com) 被写入 bun.lock 的 492 个 tarball URL,GitHub runner 公网环境无法访问,导致发布流水线 Install dependencies 无限挂起。用官方 registry 重新生成 lock(恢复默认源的紧凑格式,与 历史成功发布一致),依赖版本顺带升级至最新修复线(zod 4.6.7 / hono 4.13.16 / @hono/node-server 2.1.5 / vite 8.3.5);@biomejs/biome 重解析到 2.6.4 后二进制在 macOS 上执行即被 SIGKILL,直接依赖声明锁定 2.5.3。CI 同款 bun 1.3.5/1.4.4 验证 audit 归零、全量测试通过。 * fix(cli): 适配 @clack/prompts 1.8 的 isCancel 类型签名 依赖重解析后 @clack/prompts 1.5.1→1.8.1,isCancel 谓词不再把 string | symbol 收窄为 string,init 命令的 provider 传入 parseProvider 报 TS2345。取消分支已提前退出,显式断言 string,运行时行为不变。 全 workspace typecheck 与 cli 测试通过。 * fix(repo): 修复用量查询配置和工具链兼容性 * test(sdk): 隔离版本测试的 Git hook 环境 --------- Co-authored-by: 悟扬 <[email protected]>
…dioai/OpenAgentPack into feat/session-runtime-resource-mount # Conflicts: # apps/server/src/routes/usage.ts
* feat(sdk): 新增百炼资源用量查询接口 新增 listModelUsage / listToolUsage 对接 app-control usage.listModelUsage / usage.listToolUsage, 支持 workspace/agent/session 三种 scope 与毫秒级 time_range 交叉校验(session 禁止、其余必传), 公开 UsageScope、ModelUsagePage、ToolUsagePage 等类型;apps/server 暴露 POST /api/usage/models、 POST /api/usage/tools 并刷新 OpenAPI 快照与 webui 生成类型。REST 映射已与 usage 契约方确认为 AgentStudio 资源风格,公网环境启用端点后即通。附 changeset 触发 @openagentpack/sdk minor 版本。 * fix: 修复 minimatch 传递依赖漏洞 webui 经 openapi-typescript / @redocly/openapi-core 引入 minimatch<11.0.1 (GHSA-g3hv-75wg-m249,moderate,globparts 放大 DoS),root overrides 强制 11.0.3, bun.lock 同步重解析;openapi-typescript 生成回归与全量测试通过。 * ci: 统一 CI bun 版本至 1.4.4 bun.lock 由 bun 1.4.4 生成,CI 的 1.3.5 消费新格式 lock 在冷缓存 runner 上 连续两次挂起在 Install dependencies(本地 1.3.5/1.4.4 均可正常安装)。 统一全部 workflow 的 bun 至 1.4.4,与 lock 生成版本一致,audit/install 均已在该版本本地验证。 * fix: 恢复 bun.lock 为默认官方 registry 并锁定 biome 版本 此前在本机重新解析依赖时,本机 npm 配置的公司内网镜像地址(registry.anpm.alibaba-inc.com) 被写入 bun.lock 的 492 个 tarball URL,GitHub runner 公网环境无法访问,导致发布流水线 Install dependencies 无限挂起。用官方 registry 重新生成 lock(恢复默认源的紧凑格式,与 历史成功发布一致),依赖版本顺带升级至最新修复线(zod 4.6.7 / hono 4.13.16 / @hono/node-server 2.1.5 / vite 8.3.5);@biomejs/biome 重解析到 2.6.4 后二进制在 macOS 上执行即被 SIGKILL,直接依赖声明锁定 2.5.3。CI 同款 bun 1.3.5/1.4.4 验证 audit 归零、全量测试通过。 * fix(cli): 适配 @clack/prompts 1.8 的 isCancel 类型签名 依赖重解析后 @clack/prompts 1.5.1→1.8.1,isCancel 谓词不再把 string | symbol 收窄为 string,init 命令的 provider 传入 parseProvider 报 TS2345。取消分支已提前退出,显式断言 string,运行时行为不变。 全 workspace typecheck 与 cli 测试通过。 * feat(sdk): 新增会话资源运行时挂载与查询接口 * fix(sdk): 修复会话资源接口上下文类型限制 --------- Co-authored-by: zhanglei <[email protected]> Co-authored-by: WB01116753 <[email protected]> Co-authored-by: 悟扬 <[email protected]>
保留 main 的 Memory 分页、Qoder 资源接管和 YAML anchor 修复。 补齐 SSE 恢复交接与 StateBackend 最终提交失败的回归保护。 将 Playground 的 node-server 升级到 2.1.6 安全补丁。 验证:Bun 1.4.4 完整门禁、1859 项测试和 Node 24 打包消费检查通过。
* chore: 接入埋点 * test(sdk): webhook 契约断言补埋点 header * fix(sdk): 修正百炼来源埋点请求头名称 * fix(playground): 升级 Node 适配器修复安全漏洞 --------- Co-authored-by: WB01116753 <[email protected]> Co-authored-by: 悟扬 <[email protected]>
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.
Summary
Why
Type
Surface area
Checklist
bun run verify:fullpassesBehavior / risk
Validation