Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b7f8cd4
feat(sdk): add Bailian workspace webhook APIs
chenanran555 Oct 12, 2026
f671c3d
chore: merge latest main into feat/managed-agent-webhook
chenanran555 Oct 12, 2026
4c6e5d6
feat(sdk): add Bailian memory APIs and Session mounts
chenanran555 Oct 14, 2026
acd2b55
fix(server): handle memory resources in project summaries
chenanran555 Oct 14, 2026
3d21b8e
docs: align Bailian memory capability matrices
chenanran555 Oct 14, 2026
403c6e1
feat(sdk): support Bailian session and deployment environment variables
chenanran555 Oct 14, 2026
793e279
fix(sdk): allow MCP tool defaults without overrides
chenanran555 Oct 15, 2026
38d63c6
fix: remediate dependency audit vulnerabilities
chenanran555 Oct 15, 2026
442dfad
feat(sdk): 完善百炼 SSE 适配与浏览器事件转换
chenanran555 Oct 20, 2026
7a98e0f
fix: 修复 Vite 与 Hono 依赖漏洞
chenanran555 Oct 22, 2026
f1bfc2e
feat(sdk): 新增子 Agent 线程与事件查询
chenanran555 Oct 28, 2026
66f892f
fix(sdk): 兼容百炼会话起始与增量事件
chenanran555 Oct 28, 2026
4c9dcb7
feat(sdk): 新增百炼资源用量查询接口
zhangyi970212 Nov 2, 2026
6d6c1a5
fix: 修复 minimatch 传递依赖漏洞
zhangyi970212 Nov 2, 2026
7896c9f
ci: 统一 CI bun 版本至 1.4.4
zhangyi970212 Nov 2, 2026
da09047
fix: 恢复 bun.lock 为默认官方 registry 并锁定 biome 版本
zhangyi970212 Nov 2, 2026
6fd35b6
fix(cli): 适配 @clack/prompts 1.8 的 isCancel 类型签名
zhangyi970212 Nov 2, 2026
29812b1
feat(sdk): 新增会话资源运行时挂载与查询接口
Nov 3, 2026
3462fde
Merge remote-tracking branch 'origin/feat/1030-add-dosage-interface' …
Nov 3, 2026
9025f32
feat(sdk): 支持百炼 Self 成员与工具审批策略
chenanran555 Nov 3, 2026
157b1ac
Feat/1030 add dosage interface (#122)
zhangyi970212 Nov 4, 2026
17a9b4f
Merge branch 'feat/sdk-sse-adaptation' of https://github.com/modelstu…
Nov 4, 2026
baf4c4e
fix(sdk): 修复会话资源接口上下文类型限制
chenanran555 Nov 4, 2026
5a7cf61
Feat/session runtime resource mount (#123)
kapla73 Nov 4, 2026
dc51dbd
feat(sdk): 支持字面正文与外部 state 检查点
chenanran555 Nov 11, 2026
168373a
Merge branch 'feat/session-runtime-resource-mount' into feat/sdk-sse-…
chenanran555 Nov 11, 2026
2781630
fix(sdk): 保留 Kit 远端资源兼容并公开状态后端类型
chenanran555 Nov 11, 2026
f62c062
feat(sdk): 补齐资源计划与执行的结构化结果合同
chenanran555 Nov 12, 2026
ebaf497
chore(sdk): 同步远端 SSE 适配分支
chenanran555 Nov 12, 2026
24d94ef
fix(sdk): 修复流恢复和状态提交并合并 main
chenanran555 Nov 13, 2026
02a6eb4
Feat/instrumentation (#124)
kapla73 Nov 13, 2026
d7559d8
fix(sdk): 消除文本脱敏与截断的正则回溯风险
chenanran555 Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/bailian-builtin-tool-permissions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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.
5 changes: 5 additions & 0 deletions .changeset/bailian-memory-id-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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.
7 changes: 7 additions & 0 deletions .changeset/bailian-multiagent-self.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@openagentpack/sdk": minor
---

为百炼多智能体名册增加原生 `{type: "self"}` 成员,可独立使用或与项目 Agent、外部 Agent 混用。
补齐声明类型与严格校验、引用解析、发布映射、导出和漂移比较。Self 不生成普通自引用或额外受管资源,
计入名册上限并禁止重复及附带 ID/版本字段;其他 Provider 明确拒绝未验证的 Self 能力。
9 changes: 9 additions & 0 deletions .changeset/bailian-native-memory-lifecycle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@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.
11 changes: 11 additions & 0 deletions .changeset/bailian-session-event-snapshots.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@openagentpack/sdk": minor
---

为百炼 BMA Session 增加显式开启的结构化事件快照和正文/推理增量订阅。SDK 按消息与内容块
归并累计快照,保留工具调用、线程、审批、错误和多模态内容;从已确认的 `mark_artifacts`
工具结果派生文件描述,继续复用现有 `SessionEvent` 契约。

补齐 SSE 分块解析、连接就绪回调、取消、超时及可选的断流后历史核对恢复。高层发送入口
通过 `stream` 传递配置,恢复不会重发用户消息。sanitizer 支持结构化快照的递归脱敏和按文本
叶子截断。旧调用仍使用 legacy 输出,默认脱敏和截断、默认不重连的行为保持不变。
16 changes: 16 additions & 0 deletions .changeset/bailian-session-runtime-resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@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` 调用保持兼容。
5 changes: 5 additions & 0 deletions .changeset/bailian-stream-envelopes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openagentpack/sdk": patch
---

修复百炼 BMA Session 混合流中 event_start/event_delta 的身份及正文累积,避免首个推理分片触发协议错误;保留完整消息、线程身份和断流恢复语义。
5 changes: 5 additions & 0 deletions .changeset/bailian-usage-queries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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 快照。
10 changes: 10 additions & 0 deletions .changeset/browser-bailian-session-normalizer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@openagentpack/sdk": minor
---

新增浏览器安全的 `createBailianSessionEventNormalizer`,从 `@openagentpack/sdk/session-events`
接收原始百炼业务帧并输出累计 `SessionEvent`。历史进行中消息保留展示及运行身份,等待完整快照
后恢复正文;完成消息保护、按实例隔离和有界缓存避免重连期间重复追加。既有 SDK 入口与
sanitizer 默认脱敏、截断行为不变。

同一浏览器子路径公开导出现有 `SessionEvent` 类型,纯浏览器调用方无需通过 SDK Node 主入口引用事件契约。
8 changes: 8 additions & 0 deletions .changeset/configurable-session-event-redaction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@openagentpack/sdk": minor
---

为 `sanitizeSessionEvent()` 和 `sanitizeSessionEvents()` 增加独立的 `redact` 与 `truncate`
配置,保留默认开启脱敏和截断的行为。需要完整 SSE 内容的调用方可显式传入
`{ redact: false, truncate: false }`。导出 `SessionEventSanitizerOptions` 类型,
让 `metadata.tool_input` 使用同一脱敏策略,并保持 `includeRaw` 独立。
5 changes: 5 additions & 0 deletions .changeset/fix-linear-redaction-scans.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openagentpack/sdk": patch
---

修复会话文本处理中的两处正则回溯风险,使用线性扫描识别 Markdown 链接和 HTML 标签,保留媒体签名链接、敏感信息脱敏与截断边界的既有行为。
5 changes: 5 additions & 0 deletions .changeset/fix-vite-hono-audit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openagentpack/playground": patch
---

升级 Vite、Hono 与 Node 静态文件服务依赖,修复开发服务及静态路径处理的已知安全漏洞。
5 changes: 5 additions & 0 deletions .changeset/literal-config-state-storage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openagentpack/sdk": minor
---

新增对象声明的字面正文解析选项与公开内存 state 管理器,支持宿主使用数据库保存检查点。默认正文文件解析、文件 state 和现有发布行为保持兼容。
5 changes: 5 additions & 0 deletions .changeset/memory-entry-initialization-default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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.
5 changes: 5 additions & 0 deletions .changeset/optional-mcp-tool-overrides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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.
5 changes: 5 additions & 0 deletions .changeset/secure-build-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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.
9 changes: 9 additions & 0 deletions .changeset/session-recovery-backend-commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@openagentpack/sdk": patch
"@openagentpack/playground": patch
---

修复百炼 Session 重连时历史结束状态抢先终止单轮读取的问题,确保恢复期间缓冲的完整回复先交付。
修复结构化资源执行在 StateBackend 最终提交失败时丢失报告的问题,保留远端写入状态、逐资源结果和已知资源 ID,legacy 异常行为保持兼容。

将 Playground 的 `@hono/node-server` 最低版本升级至 `2.1.6`,修复上游 WebSocket 连接重置和请求路径解析问题。
5 changes: 5 additions & 0 deletions .changeset/session-thread-history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openagentpack/sdk": minor
---

新增百炼 Session 子 Agent 线程列表和事件历史查询,保留分页、取消及完整快照语义,并公开浏览器可用的线程类型。
5 changes: 5 additions & 0 deletions .changeset/tidy-webhook-context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@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.
6 changes: 6 additions & 0 deletions .changeset/zod-security-bound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@openagentpack/sdk": patch
"@openagentpack/playground": patch
---

将 Zod 依赖下界更新为 4.6.6,修复 GHSA-mrhx-c7xc-m3w5,避免新安装解析到受影响版本。
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"
- id: profile
name: Read full profile from the verification module
run: echo "steps=$(bun scripts/verify.ts full --list-steps)" >> "$GITHUB_OUTPUT"
Expand All @@ -44,7 +44,7 @@ jobs:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"
- run: bun install --frozen-lockfile
- name: Run verification step
env:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compatibility-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "26"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
Expand All @@ -170,7 +170,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.5"
bun-version: "1.4.4"
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node }}
Expand Down
Loading
Loading