diff --git a/.changeset/bailian-builtin-tool-permissions.md b/.changeset/bailian-builtin-tool-permissions.md deleted file mode 100644 index 678d14d..0000000 --- a/.changeset/bailian-builtin-tool-permissions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": patch ---- - -Support Bailian builtin-tool approval policies during validation and Agent create/update. Preserve toolkit defaults and per-tool overrides in provider requests and exports, detect effective approval changes during drift comparison, and retain legacy allow-only comparison baselines. Reject effective approval policies on project-declared subagents and delegated Self; fail closed when an implicitly enabled remote tool catalogue cannot be exported losslessly. diff --git a/.changeset/bailian-memory-id-identity.md b/.changeset/bailian-memory-id-identity.md deleted file mode 100644 index fffd186..0000000 --- a/.changeset/bailian-memory-id-identity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": patch ---- - -Identify Bailian Memory Stores by their remote ID rather than their non-unique display name. Disable name-based conflict adoption, create a new store when no remote ID is recorded, and exclude archived stores from ID-based lifecycle lookups. diff --git a/.changeset/bailian-multiagent-self.md b/.changeset/bailian-multiagent-self.md deleted file mode 100644 index 00925a8..0000000 --- a/.changeset/bailian-multiagent-self.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -为百炼多智能体名册增加原生 `{type: "self"}` 成员,可独立使用或与项目 Agent、外部 Agent 混用。 -补齐声明类型与严格校验、引用解析、发布映射、导出和漂移比较。Self 不生成普通自引用或额外受管资源, -计入名册上限并禁止重复及附带 ID/版本字段;其他 Provider 明确拒绝未验证的 Self 能力。 diff --git a/.changeset/bailian-native-memory-lifecycle.md b/.changeset/bailian-native-memory-lifecycle.md deleted file mode 100644 index fa00285..0000000 --- a/.changeset/bailian-native-memory-lifecycle.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -Add native Bailian Memory Store, memory file, and historical version APIs, including store archive, file rename, content SHA preconditions, version redaction, and opaque `page`/`next_page` pagination. Preserve native absolute paths, response fields, operation names, and service errors. - -Enable declarative Bailian Memory Stores with ID-only identity, explicit import, declared-key metadata reconciliation, and recoverable initialization. Persist the created store ID and pending initializer hashes before writing content; retries resume missing pending paths without overwriting existing files. Existing and imported stores preserve runtime content by default, while explicit `entries_mode: sync` manages declared paths. Removing a store and applying, or destroying it, irreversibly archives it. - -Resolve logical Memory references into native Session resources with access settings, instructions, deduplication, and an eight-store limit. Block Session mounting until initialization completes and reject Memory mounts in file-only Bailian Deployments. diff --git a/.changeset/bailian-session-event-snapshots.md b/.changeset/bailian-session-event-snapshots.md deleted file mode 100644 index caa3fb1..0000000 --- a/.changeset/bailian-session-event-snapshots.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -为百炼 BMA Session 增加显式开启的结构化事件快照和正文/推理增量订阅。SDK 按消息与内容块 -归并累计快照,保留工具调用、线程、审批、错误和多模态内容;从已确认的 `mark_artifacts` -工具结果派生文件描述,继续复用现有 `SessionEvent` 契约。 - -补齐 SSE 分块解析、连接就绪回调、取消、超时及可选的断流后历史核对恢复。高层发送入口 -通过 `stream` 传递配置,恢复不会重发用户消息。sanitizer 支持结构化快照的递归脱敏和按文本 -叶子截断。旧调用仍使用 legacy 输出,默认脱敏和截断、默认不重连的行为保持不变。 diff --git a/.changeset/bailian-session-runtime-resources.md b/.changeset/bailian-session-runtime-resources.md deleted file mode 100644 index de0f39c..0000000 --- a/.changeset/bailian-session-runtime-resources.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -为百炼 Managed Agents 增加会话运行时资源 API(挂载/列出/查详情/卸载),支持向已创建的 -Session 动态追加文件:`mountRemoteSessionResource`、`listRemoteSessionResources`、 -`getRemoteSessionResource`、`unmountRemoteSessionResource`(bailian adapter 的 -`mountSessionResource` / `listSessionResources` / `getSessionResource` / `unmountSessionResource` -可选方法)。中性层沿用全沙箱路径(`/mnt/session/uploads/…`),bailian wire 自动换算为运行时 -端点要求的 `/uploads/…` 前缀并在非法根路径上客户端拒绝;资源响应补齐 `SessionResourceInfo.id` -(`sesrsc_…`,卸载凭据)。挂载与卸载不产生会话事件;provider 返回的 `file_id` 是服务端内部副本 -id,完整载荷保留在 `attributes` 中。运行时挂载不进入 `getSession` 的 `resources` 回显,对账请 -使用列表端点。合同经 2026-11-02 live 实测校准。 - -上述四个 SDK 入口接受仅含 Provider 配置的 `ManagedApiContext`,无需项目配置或本地 State; -现有 `ProjectRuntimeContext` 调用保持兼容。 diff --git a/.changeset/bailian-stream-envelopes.md b/.changeset/bailian-stream-envelopes.md deleted file mode 100644 index 9a9a33a..0000000 --- a/.changeset/bailian-stream-envelopes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": patch ---- - -修复百炼 BMA Session 混合流中 event_start/event_delta 的身份及正文累积,避免首个推理分片触发协议错误;保留完整消息、线程身份和断流恢复语义。 diff --git a/.changeset/bailian-usage-queries.md b/.changeset/bailian-usage-queries.md deleted file mode 100644 index 92ac576..0000000 --- a/.changeset/bailian-usage-queries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -新增百炼资源用量查询:`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 快照。 diff --git a/.changeset/browser-bailian-session-normalizer.md b/.changeset/browser-bailian-session-normalizer.md deleted file mode 100644 index a35ac3c..0000000 --- a/.changeset/browser-bailian-session-normalizer.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -新增浏览器安全的 `createBailianSessionEventNormalizer`,从 `@openagentpack/sdk/session-events` -接收原始百炼业务帧并输出累计 `SessionEvent`。历史进行中消息保留展示及运行身份,等待完整快照 -后恢复正文;完成消息保护、按实例隔离和有界缓存避免重连期间重复追加。既有 SDK 入口与 -sanitizer 默认脱敏、截断行为不变。 - -同一浏览器子路径公开导出现有 `SessionEvent` 类型,纯浏览器调用方无需通过 SDK Node 主入口引用事件契约。 diff --git a/.changeset/configurable-session-event-redaction.md b/.changeset/configurable-session-event-redaction.md deleted file mode 100644 index 9f47b6e..0000000 --- a/.changeset/configurable-session-event-redaction.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -为 `sanitizeSessionEvent()` 和 `sanitizeSessionEvents()` 增加独立的 `redact` 与 `truncate` -配置,保留默认开启脱敏和截断的行为。需要完整 SSE 内容的调用方可显式传入 -`{ redact: false, truncate: false }`。导出 `SessionEventSanitizerOptions` 类型, -让 `metadata.tool_input` 使用同一脱敏策略,并保持 `includeRaw` 独立。 diff --git a/.changeset/fix-linear-redaction-scans.md b/.changeset/fix-linear-redaction-scans.md deleted file mode 100644 index 314c569..0000000 --- a/.changeset/fix-linear-redaction-scans.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": patch ---- - -修复会话文本处理中的两处正则回溯风险,使用线性扫描识别 Markdown 链接和 HTML 标签,保留媒体签名链接、敏感信息脱敏与截断边界的既有行为。 diff --git a/.changeset/fix-vite-hono-audit.md b/.changeset/fix-vite-hono-audit.md deleted file mode 100644 index c7bc099..0000000 --- a/.changeset/fix-vite-hono-audit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/playground": patch ---- - -升级 Vite、Hono 与 Node 静态文件服务依赖,修复开发服务及静态路径处理的已知安全漏洞。 diff --git a/.changeset/literal-config-state-storage.md b/.changeset/literal-config-state-storage.md deleted file mode 100644 index ea5b150..0000000 --- a/.changeset/literal-config-state-storage.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -新增对象声明的字面正文解析选项与公开内存 state 管理器,支持宿主使用数据库保存检查点。默认正文文件解析、文件 state 和现有发布行为保持兼容。 diff --git a/.changeset/memory-entry-initialization-default.md b/.changeset/memory-entry-initialization-default.md deleted file mode 100644 index 9e216e7..0000000 --- a/.changeset/memory-entry-initialization-default.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -Default declarative memory entries to initialization of newly created stores only. Existing, imported, or adopted stores retain their runtime content, and initialization-only entry changes no longer schedule updates. Add entries_mode: sync as an explicit opt-in to the previous continuous YAML synchronization behavior. diff --git a/.changeset/optional-mcp-tool-overrides.md b/.changeset/optional-mcp-tool-overrides.md deleted file mode 100644 index 1e0997e..0000000 --- a/.changeset/optional-mcp-tool-overrides.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": patch ---- - -Allow MCP toolkit configs and agent-builder tool overrides to be omitted or empty. Bailian requests normalize missing overrides to an empty array, so default_config.enabled can enable all MCP tools without placeholder names. Preserve the disabled default and explicit per-tool overrides. diff --git a/.changeset/secure-build-dependencies.md b/.changeset/secure-build-dependencies.md deleted file mode 100644 index a3e3dca..0000000 --- a/.changeset/secure-build-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/playground": patch ---- - -Update the bundled editor to a patched ProseMirror view version and refresh vulnerable build dependencies. Backport bounded nesting and AST traversal checks for the workspace's braces dependency while an official fix is unavailable. diff --git a/.changeset/session-recovery-backend-commit.md b/.changeset/session-recovery-backend-commit.md deleted file mode 100644 index b2b0922..0000000 --- a/.changeset/session-recovery-backend-commit.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@openagentpack/sdk": patch -"@openagentpack/playground": patch ---- - -修复百炼 Session 重连时历史结束状态抢先终止单轮读取的问题,确保恢复期间缓冲的完整回复先交付。 -修复结构化资源执行在 StateBackend 最终提交失败时丢失报告的问题,保留远端写入状态、逐资源结果和已知资源 ID,legacy 异常行为保持兼容。 - -将 Playground 的 `@hono/node-server` 最低版本升级至 `2.1.6`,修复上游 WebSocket 连接重置和请求路径解析问题。 diff --git a/.changeset/session-thread-history.md b/.changeset/session-thread-history.md deleted file mode 100644 index b5bad40..0000000 --- a/.changeset/session-thread-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -新增百炼 Session 子 Agent 线程列表和事件历史查询,保留分页、取消及完整快照语义,并公开浏览器可用的线程类型。 diff --git a/.changeset/tidy-webhook-context.md b/.changeset/tidy-webhook-context.md deleted file mode 100644 index 6962fd5..0000000 --- a/.changeset/tidy-webhook-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@openagentpack/sdk": minor ---- - -Add workspace-level Bailian Webhook endpoint management and delivery-event queries through a provider-only API context. Expose endpoint URL normalization and cancellable requests while preserving one-time signing-secret responses, opaque pagination cursors, request IDs, and provider errors. These APIs do not read project files or write project state. diff --git a/.changeset/zod-security-bound.md b/.changeset/zod-security-bound.md deleted file mode 100644 index 203dfbb..0000000 --- a/.changeset/zod-security-bound.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@openagentpack/sdk": patch -"@openagentpack/playground": patch ---- - -将 Zod 依赖下界更新为 4.6.6,修复 GHSA-mrhx-c7xc-m3w5,避免新安装解析到受影响版本。 diff --git a/apps/server/CHANGELOG.md b/apps/server/CHANGELOG.md index 7081f25..7bffce8 100644 --- a/apps/server/CHANGELOG.md +++ b/apps/server/CHANGELOG.md @@ -1,5 +1,12 @@ # @openagentpack/server +## 0.0.16 + +### Patch Changes + +- Updated dependencies [3df5c92] + - @openagentpack/sdk@0.10.0 + ## 0.0.15 ### Patch Changes diff --git a/apps/server/package.json b/apps/server/package.json index 7f895b0..8f3a138 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -1,6 +1,6 @@ { "name": "@openagentpack/server", - "version": "0.0.15", + "version": "0.0.16", "private": true, "license": "Apache-2.0", "exports": { diff --git a/bun.lock b/bun.lock index a04271a..f9adc27 100644 --- a/bun.lock +++ b/bun.lock @@ -18,7 +18,7 @@ }, "apps/server": { "name": "@openagentpack/server", - "version": "0.0.15", + "version": "0.0.16", "dependencies": { "@hono/zod-openapi": "^1.4.0", "@openagentpack/sdk": "workspace:*", @@ -68,7 +68,7 @@ }, "packages/cli": { "name": "@openagentpack/cli", - "version": "0.9.0", + "version": "0.10.0", "bin": { "agents": "dist/bin/agents.js", }, @@ -95,7 +95,7 @@ }, "packages/playground": { "name": "@openagentpack/playground", - "version": "0.9.0", + "version": "0.10.0", "bin": { "agents-playground": "dist/bin/playground.js", }, @@ -118,7 +118,7 @@ }, "packages/sdk": { "name": "@openagentpack/sdk", - "version": "0.9.0", + "version": "0.10.0", "dependencies": { "jszip": "^3.10.1", "yaml": "^2.9.0", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index e5176af..fb3ef81 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # @openagentpack/cli +## 0.10.0 + +### Patch Changes + +- Updated dependencies [3df5c92] + - @openagentpack/sdk@0.10.0 + ## 0.9.0 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 89b1866..41d12b3 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openagentpack/cli", - "version": "0.9.0", + "version": "0.10.0", "description": "Open Agent Pack — Declaratively manage AI agent infrastructure", "license": "Apache-2.0", "keywords": [ diff --git a/packages/playground/CHANGELOG.md b/packages/playground/CHANGELOG.md index cadaf45..6daa7e5 100644 --- a/packages/playground/CHANGELOG.md +++ b/packages/playground/CHANGELOG.md @@ -1,5 +1,19 @@ # @openagentpack/playground +## 0.10.0 + +### Patch Changes + +- 3df5c92: 升级 Vite、Hono 与 Node 静态文件服务依赖,修复开发服务及静态路径处理的已知安全漏洞。 +- 3df5c92: 修复百炼 Session 重连时历史结束状态抢先终止单轮读取的问题,确保恢复期间缓冲的完整回复先交付。 + 修复结构化资源执行在 StateBackend 最终提交失败时丢失报告的问题,保留远端写入状态、逐资源结果和已知资源 ID,legacy 异常行为保持兼容。 + + 将 Playground 的 `@hono/node-server` 最低版本升级至 `2.1.6`,修复上游 WebSocket 连接重置和请求路径解析问题。 + +- 3df5c92: 将 Zod 依赖下界更新为 4.6.6,修复 GHSA-mrhx-c7xc-m3w5,避免新安装解析到受影响版本。 +- Updated dependencies [3df5c92] + - @openagentpack/sdk@0.10.0 + ## 0.9.0 ### Patch Changes diff --git a/packages/playground/package.json b/packages/playground/package.json index 24363f2..1377d1b 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -1,6 +1,6 @@ { "name": "@openagentpack/playground", - "version": "0.9.0", + "version": "0.10.0", "description": "OpenAgentPack Playground — one-command local web UI for OpenAgentPack", "license": "Apache-2.0", "keywords": [ diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index b772652..97cfaed 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,60 @@ # @openagentpack/sdk +## 0.10.0 + +### Minor Changes + +- 3df5c92: 为百炼多智能体名册增加原生 `{type: "self"}` 成员,可独立使用或与项目 Agent、外部 Agent 混用。 + 补齐声明类型与严格校验、引用解析、发布映射、导出和漂移比较。Self 不生成普通自引用或额外受管资源, + 计入名册上限并禁止重复及附带 ID/版本字段;其他 Provider 明确拒绝未验证的 Self 能力。 +- 3df5c92: 为百炼 BMA Session 增加显式开启的结构化事件快照和正文/推理增量订阅。SDK 按消息与内容块 + 归并累计快照,保留工具调用、线程、审批、错误和多模态内容;从已确认的 `mark_artifacts` + 工具结果派生文件描述,继续复用现有 `SessionEvent` 契约。 + + 补齐 SSE 分块解析、连接就绪回调、取消、超时及可选的断流后历史核对恢复。高层发送入口 + 通过 `stream` 传递配置,恢复不会重发用户消息。sanitizer 支持结构化快照的递归脱敏和按文本 + 叶子截断。旧调用仍使用 legacy 输出,默认脱敏和截断、默认不重连的行为保持不变。 + +- 3df5c92: 为百炼 Managed Agents 增加会话运行时资源 API(挂载/列出/查详情/卸载),支持向已创建的 + Session 动态追加文件:`mountRemoteSessionResource`、`listRemoteSessionResources`、 + `getRemoteSessionResource`、`unmountRemoteSessionResource`(bailian adapter 的 + `mountSessionResource` / `listSessionResources` / `getSessionResource` / `unmountSessionResource` + 可选方法)。中性层沿用全沙箱路径(`/mnt/session/uploads/…`),bailian wire 自动换算为运行时 + 端点要求的 `/uploads/…` 前缀并在非法根路径上客户端拒绝;资源响应补齐 `SessionResourceInfo.id` + (`sesrsc_…`,卸载凭据)。挂载与卸载不产生会话事件;provider 返回的 `file_id` 是服务端内部副本 + id,完整载荷保留在 `attributes` 中。运行时挂载不进入 `getSession` 的 `resources` 回显,对账请 + 使用列表端点。合同经 2026-11-02 live 实测校准。 + + 上述四个 SDK 入口接受仅含 Provider 配置的 `ManagedApiContext`,无需项目配置或本地 State; + 现有 `ProjectRuntimeContext` 调用保持兼容。 + +- 3df5c92: 新增百炼资源用量查询:`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 快照。 +- 3df5c92: 新增浏览器安全的 `createBailianSessionEventNormalizer`,从 `@openagentpack/sdk/session-events` + 接收原始百炼业务帧并输出累计 `SessionEvent`。历史进行中消息保留展示及运行身份,等待完整快照 + 后恢复正文;完成消息保护、按实例隔离和有界缓存避免重连期间重复追加。既有 SDK 入口与 + sanitizer 默认脱敏、截断行为不变。 + + 同一浏览器子路径公开导出现有 `SessionEvent` 类型,纯浏览器调用方无需通过 SDK Node 主入口引用事件契约。 + +- 3df5c92: 为 `sanitizeSessionEvent()` 和 `sanitizeSessionEvents()` 增加独立的 `redact` 与 `truncate` + 配置,保留默认开启脱敏和截断的行为。需要完整 SSE 内容的调用方可显式传入 + `{ redact: false, truncate: false }`。导出 `SessionEventSanitizerOptions` 类型, + 让 `metadata.tool_input` 使用同一脱敏策略,并保持 `includeRaw` 独立。 +- 3df5c92: 新增对象声明的字面正文解析选项与公开内存 state 管理器,支持宿主使用数据库保存检查点。默认正文文件解析、文件 state 和现有发布行为保持兼容。 +- 3df5c92: 新增百炼 Session 子 Agent 线程列表和事件历史查询,保留分页、取消及完整快照语义,并公开浏览器可用的线程类型。 + +### Patch Changes + +- 3df5c92: Support Bailian builtin-tool approval policies during validation and Agent create/update. Preserve toolkit defaults and per-tool overrides in provider requests and exports, detect effective approval changes during drift comparison, and retain legacy allow-only comparison baselines. Reject effective approval policies on project-declared subagents and delegated Self; fail closed when an implicitly enabled remote tool catalogue cannot be exported losslessly. +- 3df5c92: 修复百炼 BMA Session 混合流中 event_start/event_delta 的身份及正文累积,避免首个推理分片触发协议错误;保留完整消息、线程身份和断流恢复语义。 +- 3df5c92: 修复会话文本处理中的两处正则回溯风险,使用线性扫描识别 Markdown 链接和 HTML 标签,保留媒体签名链接、敏感信息脱敏与截断边界的既有行为。 +- 3df5c92: 修复百炼 Session 重连时历史结束状态抢先终止单轮读取的问题,确保恢复期间缓冲的完整回复先交付。 + 修复结构化资源执行在 StateBackend 最终提交失败时丢失报告的问题,保留远端写入状态、逐资源结果和已知资源 ID,legacy 异常行为保持兼容。 + + 将 Playground 的 `@hono/node-server` 最低版本升级至 `2.1.6`,修复上游 WebSocket 连接重置和请求路径解析问题。 + +- 3df5c92: 将 Zod 依赖下界更新为 4.6.6,修复 GHSA-mrhx-c7xc-m3w5,避免新安装解析到受影响版本。 + ## 0.9.0 ### Minor Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 8ed27e5..c7015b2 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@openagentpack/sdk", - "version": "0.9.0", + "version": "0.10.0", "description": "OpenAgentPack SDK (Node-compatible runtime)", "license": "Apache-2.0", "keywords": [