Skip to content

Commit bb23b25

Browse files
committed
Merge main into native mobile cleanup
2 parents da5ab31 + 8165280 commit bb23b25

105 files changed

Lines changed: 2740 additions & 477 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ jobs:
231231
node-version-file: package.json
232232
package-manager-cache: false
233233

234+
- name: Verify Rust stack diagnostic contracts
235+
run: node --test scripts/ci/rust-stack-diagnostics.test.mjs
236+
234237
# Tauri code generation only requires its configured resource roots to
235238
# exist during check/test; distributable assets remain frontend-build's owner.
236239
- name: Create Tauri resource directories
@@ -330,15 +333,28 @@ jobs:
330333
run: cargo check --manifest-path OpenBitFun-Installer/src-tauri/Cargo.toml
331334

332335
- name: Run core library tests
336+
id: core-library-tests
333337
if: runner.os != 'Linux'
334-
run: cargo test --locked -p openbitfun-core --lib
338+
run: node scripts/ci/rust-stack-diagnostics.mjs --output "${{ runner.temp }}/rust-stack-diagnostics" -- --locked -p openbitfun-core --lib
335339

336340
- name: Run portable Office document engine tests
337341
run: cargo test --locked -p openbitfun-office-documents
338342

339343
- name: Run full core library tests on Linux
344+
id: full-core-library-tests
340345
if: runner.os == 'Linux'
341-
run: cargo test --locked -p openbitfun-core --features product-full --lib
346+
# Capture the existing run; only stack overflows trigger bounded reruns.
347+
# See scripts/ci/AGENTS.md for reuse and diagnostic limitations.
348+
run: node scripts/ci/rust-stack-diagnostics.mjs --output "${{ runner.temp }}/rust-stack-diagnostics" -- --locked -p openbitfun-core --features product-full --lib
349+
350+
- name: Upload Rust stack diagnostics
351+
if: ${{ failure() && (steps.core-library-tests.outputs.stack_overflow == 'true' || steps.full-core-library-tests.outputs.stack_overflow == 'true') }}
352+
uses: actions/upload-artifact@v6
353+
with:
354+
name: rust-stack-diagnostics-${{ runner.os }}
355+
path: ${{ runner.temp }}/rust-stack-diagnostics
356+
if-no-files-found: warn
357+
retention-days: 7
342358

343359
- name: Run desktop library tests
344360
if: runner.os != 'Windows'

‎docs/architecture/deep-review.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ Packet support is not a general fan-out policy. New packets are admitted only wh
345345

346346
The generic `Task` tool is adapted for DeepReview across:
347347

348-
- `src/crates/assembly/core/src/agentic/tools/implementations/task/mod.rs`
349-
- `src/crates/assembly/core/src/agentic/tools/implementations/task/deep_review.rs`
348+
- `src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/mod.rs`
349+
- `src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/deep_review.rs`
350350
- `src/crates/assembly/core/src/agentic/deep_review/task_adapter.rs`
351351
- `src/crates/execution/agent-runtime/src/deep_review/task_execution.rs`
352352
- `src/crates/execution/agent-runtime/src/deep_review/queue.rs`

‎docs/architecture/model-request-cache-reuse.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Relevant code:
146146
- snapshot model:
147147
`src/crates/assembly/core/src/agentic/fork_agent/mod.rs`
148148
- request validation and tool contract:
149-
`src/crates/assembly/core/src/agentic/tools/implementations/task/mod.rs`
149+
`src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/mod.rs`
150150
- execution and prompt-cache cloning:
151151
`src/crates/assembly/core/src/agentic/coordination/coordinator.rs`
152152

‎docs/interactive-capabilities/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!-- generated by scripts/generate-interactive-capabilities.mjs; do not edit -->
22
# OpenBitFun 功能与设置目录 / OpenBitFun Features & Settings
33

4-
OpenBitFun Playbook 当前包含 **24 个功能**和 **23 个设置页**,共 **47 个**用户可理解的条目、**368 项**有源码证据的子能力。每个条目有独立 Markdown,并直接服务于说明书网站、OpenBitFun 全局搜索和 `OpenBitFunControl` 智能体工具。
4+
OpenBitFun Playbook 当前包含 **24 个功能**和 **23 个设置页**,共 **47 个**用户可理解的条目、**369 项**有源码证据的子能力。每个条目有独立 Markdown,并直接服务于说明书网站、OpenBitFun 全局搜索和 `OpenBitFunControl` 智能体工具。
55

6-
OpenBitFun Playbook currently contains **24 features**, **23 settings pages**, and **368** source-backed sub-capabilities across **47** user-facing entries. Every entry has its own Markdown page and directly powers the website, in-app global search, and the `OpenBitFunControl` agent tool.
6+
OpenBitFun Playbook currently contains **24 features**, **23 settings pages**, and **369** source-backed sub-capabilities across **47** user-facing entries. Every entry has its own Markdown page and directly powers the website, in-app global search, and the `OpenBitFunControl` agent tool.
77

88
## 唯一事实源 / Single source of truth
99

@@ -33,14 +33,14 @@ Docs, website, search, and agents see only features, settings, and documented su
3333

3434
## 控制边界 / Control boundary
3535

36-
- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **63**、委托 **74**、需交互 **231**、不支持 **0**。
36+
- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **64**、委托 **74**、需交互 **231**、不支持 **0**。
3737
- 稳定行为声明为带 JSON 输入契约的 `operations` 或 `options`,并绑定原生产品控制 Provider;智能体不接触原始 Tauri Command。
38-
- `OpenBitFunControl list` 和 `search` 都返回带 `nextCursor` 的精简分页结果;目录可持续增长,不靠固定总量上限。完整目录和 368 项子能力都不会写入 system prompt。
38+
- `OpenBitFunControl list` 和 `search` 都返回带 `nextCursor` 的精简分页结果;目录可持续增长,不靠固定总量上限。完整目录和 369 项子能力都不会写入 system prompt。
3939
- 目录发现与契约读取不依赖 React 或可见窗口。普通配置型 option 统一由 Product Assembly 的共享 ConfigService 执行器读、写并回读,因此 Desktop、CLI 与 Headless 表面走同一份实现;只有宿主原生 operation/provider option 和界面导航按表面注册适配器,缺失时必须明确返回不可用,禁止静默回退本机。只读智能体只能发现和读取目录。
4040

41-
- Every documented item is classified as direct control, delegated Agent control, interactive opening, or unsupported; opening a page is never counted as direct control. Current coverage is **63 direct**, **74 delegated**, **231 interactive**, and **0 unsupported**.
41+
- Every documented item is classified as direct control, delegated Agent control, interactive opening, or unsupported; opening a page is never counted as direct control. Current coverage is **64 direct**, **74 delegated**, **231 interactive**, and **0 unsupported**.
4242
- Stable behavior becomes a typed `operation` or `option` with a JSON input contract and a native product-control provider. Agents never receive raw Tauri commands.
43-
- `OpenBitFunControl list` and `search` return compact pages with a `nextCursor`; the catalog can grow without a fixed total-size ceiling. Neither the full catalog nor its 368 documented items enters the system prompt.
43+
- `OpenBitFunControl list` and `search` return compact pages with a `nextCursor`; the catalog can grow without a fixed total-size ceiling. Neither the full catalog nor its 369 documented items enters the system prompt.
4444
- Discovery and contract lookup do not depend on React or a visible window. Ordinary config-backed options are read, written, and read back by one Product Assembly ConfigService executor shared by Desktop, CLI, and headless surfaces. Only host-native operations/provider options and presentation routes install surface adapters; missing adapters return explicit unavailability without local fallback. Read-only agents may only discover and inspect entries.
4545

4646
## 防腐化门禁 / Anti-drift gates

‎docs/interactive-capabilities/capabilities.json‎

Lines changed: 84 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"title": "OpenBitFun Playbook",
55
"origin": "https://playbook.openbitfun.com",
66
"source": "src/shared/interactive-capabilities/catalog.json",
7-
"digest": "4b8a786017df37df61ff4c749771e0af19c851b6be51ed46504425c9bdf992bd",
8-
"ownerDigest": "31d6371f7765bde7bee88e22a6a4f03c2c5370e138cf49975bdc88f3c5eeb052",
7+
"digest": "408cc52581d52de1e3686853eec8a09b2c02129869cb82b2931e21694e10557b",
8+
"ownerDigest": "1fdb9c49d404c02483c08e1e0fe9effa0aaa4f0f2914578bcaa63e04de16cc16",
99
"searchAcceptance": [
1010
{
1111
"id": "native-office-generation",
@@ -187,9 +187,9 @@
187187
"features": 24,
188188
"settings": 23,
189189
"userFacing": 47,
190-
"documentedItems": 368,
190+
"documentedItems": 369,
191191
"controlCoverage": {
192-
"direct": 63,
192+
"direct": 64,
193193
"delegated": 74,
194194
"interactive": 231,
195195
"unsupported": 0
@@ -1917,6 +1917,7 @@
19171917
},
19181918
"delegateTools": [
19191919
"AgentSpawn",
1920+
"AgentFork",
19201921
"AgentWait",
19211922
"AgentSendInput",
19221923
"AgentControl",
@@ -17809,7 +17810,8 @@
1780917810
"computer-use",
1781017811
"computer-use-permissions",
1781117812
"browser-auto-connect",
17812-
"browser-setup"
17813+
"browser-setup",
17814+
"subagent-model-override"
1781317815
],
1781417816
"kind": "query",
1781517817
"risk": "read",
@@ -18355,6 +18357,50 @@
1835518357
"pageId": "tools.execution"
1835618358
}
1835718359
},
18360+
{
18361+
"id": "setting.tools.execution:option:subagent-model-override",
18362+
"capabilityId": "setting.tools.execution",
18363+
"itemIds": [
18364+
"subagent-model-override"
18365+
],
18366+
"kind": "option",
18367+
"risk": "write",
18368+
"executionHost": "productHost",
18369+
"availability": {
18370+
"desktop": {
18371+
"available": true
18372+
},
18373+
"cli": {
18374+
"available": true
18375+
},
18376+
"peer": {
18377+
"available": true,
18378+
"requiredCapabilities": [
18379+
"product_control_v1"
18380+
]
18381+
},
18382+
"remoteControl": {
18383+
"available": true
18384+
},
18385+
"detachedDispatch": {
18386+
"available": true
18387+
}
18388+
},
18389+
"inputSchema": {
18390+
"type": "boolean"
18391+
},
18392+
"outputSchema": {
18393+
"type": "object",
18394+
"additionalProperties": true
18395+
},
18396+
"valueSource": {
18397+
"kind": "static"
18398+
},
18399+
"presentationTarget": {
18400+
"kind": "settings",
18401+
"pageId": "tools.execution"
18402+
}
18403+
},
1835818404
{
1835918405
"id": "setting.tools.execution:open:question-timeout",
1836018406
"capabilityId": "setting.tools.execution",
@@ -23530,6 +23576,7 @@
2353023576
"kind": "delegate",
2353123577
"tools": [
2353223578
"AgentSpawn",
23579+
"AgentFork",
2353323580
"AgentWait",
2353423581
"AgentSendInput",
2353523582
"AgentControl",
@@ -23641,6 +23688,7 @@
2364123688
"Spawn parallel subagents to audit error handling across auth, billing, and gateway, then synthesize the findings",
2364223689
"Help me draft a read-only subagent specialized in reviewing SQL migration safety",
2364323690
"AgentSpawn",
23691+
"AgentFork",
2364423692
"AgentWait",
2364523693
"AgentSendInput",
2364623694
"AgentControl",
@@ -34993,6 +35041,25 @@
3499335041
"reasonZh": "可用浏览器和 CDP 状态来自当前机器且可能要求重启确认;智能体可打开配置入口,实际网页操作则使用统一的 ControlHub 浏览器契约。",
3499435042
"reasonEn": "Available browsers and CDP state come from the current machine and may require restart confirmation; the Agent can open setup, while page automation uses the shared ControlHub browser contract."
3499535043
}
35044+
},
35045+
{
35046+
"id": "subagent-model-override",
35047+
"titleZh": "允许 Agent 指定子 Agent 模型",
35048+
"titleEn": "Allow agents to choose subagent models",
35049+
"destination": {
35050+
"kind": "settings",
35051+
"pageId": "tools.execution",
35052+
"viewId": "advanced"
35053+
},
35054+
"control": {
35055+
"kind": "direct",
35056+
"operations": [],
35057+
"options": [
35058+
{
35059+
"id": "subagent-model-override"
35060+
}
35061+
]
35062+
}
3499635063
}
3499735064
],
3499835065
"stepsZh": [
@@ -35170,6 +35237,16 @@
3517035237
"openui"
3517135238
]
3517235239
}
35240+
},
35241+
{
35242+
"id": "subagent-model-override",
35243+
"titleZh": "允许 Agent 指定子 Agent 模型",
35244+
"titleEn": "Allow agents to choose subagent models",
35245+
"descriptionZh": "控制 Agent 能否在启动或继续执行子 Agent 时指定模型。",
35246+
"descriptionEn": "Control whether agents can override subagent models when launching or continuing work.",
35247+
"valueSchema": {
35248+
"type": "boolean"
35249+
}
3517335250
}
3517435251
],
3517535252
"searchTerms": [
@@ -35246,6 +35323,8 @@
3524635323
"Choose whether OpenBitFun automatically connects to your CDP browser on startup",
3524735324
"发现并选择外部浏览器、开启默认 CDP 配置或按需重启连接",
3524835325
"Discover and choose an external browser, enable default CDP, or reconnect on demand",
35326+
"允许 Agent 指定子 Agent 模型",
35327+
"Allow agents to choose subagent models",
3524935328
"开启按需加载工具帮我节省初始上下文",
3525035329
"把子智能体最大并发改为 8,任务并行方式设为安全并行",
3525135330
"单次工具调用超时改成 600 秒",

‎docs/interactive-capabilities/capabilities/feature.agents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Browse and customize specialized agents, tailor each role’s allowed tools and
5050
- Toggle tool groups, individual tools, and Skills per agent — with one-click reset to defaults
5151
- 说明:既可以给内置模式增减工具与技能,也可以为自定义角色做最小权限裁剪;改乱了点一下「恢复默认」就能回到出厂推荐组合。
5252
- Why & how: Tailor built-in or custom agents with minimal-privilege tool and Skill pickers, and reset any built-in profile back to defaults in one click.
53-
- **由专用智能体工具控制 / Delegated Agent tool** · `AgentSpawn` / `AgentWait` / `AgentSendInput` / `AgentControl` / `AgentList` · 由主智能体自动派生并行子智能体协同调研、编码与审查,并统一汇总结果
53+
- **由专用智能体工具控制 / Delegated Agent tool** · `AgentSpawn` / `AgentFork` / `AgentWait` / `AgentSendInput` / `AgentControl` / `AgentList` · 由主智能体自动派生并行子智能体协同调研、编码与审查,并统一汇总结果
5454
- Let the primary agent spawn parallel subagents for research, coding, and review and synthesize their output
5555
- 说明:主智能体会把大任务拆成互不踩踏的子切片交给多个子智能体同时推进;你在对话流里还能看到可爱的子代理化身卡片并随时点开查看它的独立推理轨迹。
5656
- Why & how: The primary agent breaks complex requests into non-overlapping slices, monitors running subagents, steers or cancels them if needed, and delivers a unified answer.

‎docs/interactive-capabilities/capabilities/setting.tools.execution.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ Tune tool call and user-question timeouts, subagent default models and concurren
9494
- Discover and choose an external browser, enable default CDP, or reconnect on demand
9595
- 说明:前往“工具与集成 → 浏览器与桌面控制”选择 Chrome / Edge 并查看实时 CDP 端口连接状态。
9696
- Why & how: Opens Tools & Integrations → Browser & Desktop Control to pick Chrome or Edge and manage live CDP connections.
97+
- **智能体可直接控制 / Direct Agent control** · 允许 Agent 指定子 Agent 模型
98+
- Allow agents to choose subagent models
9799

98100
## 怎么用 / How to use it
99101

@@ -129,6 +131,7 @@ Tune tool call and user-question timeouts, subagent default models and concurren
129131
| 启动时自动连接浏览器 / Auto-connect browser on startup | `boolean` | 控制 OpenBitFun 启动时是否自动尝试连接外部 CDP 浏览器(默认关闭)。 | Choose whether OpenBitFun automatically tries to connect external CDP browser control on launch (off by default). |
130132
| 工具参数 JSON 安全修复 / Safe tool-argument JSON repair | `boolean` | 在严格安全边界内自动修复模型输出的轻微 JSON 语法瑕疵,减少因格式小错导致的调用失败。 | Automatically repair minor JSON syntax glitches in model tool arguments within strict safety bounds. |
131133
| 默认生成式 UI 组件库 / Default GenUI component library | `openbitfun` / `openui` | 指定新建交互式 GenUI 应用默认采用的组件库与设计规范(默认 openui);已有应用保留原有目标身份。 | Select the component library and bound design spec for newly generated GenUI apps (openui by default); existing apps keep their original target. |
134+
| 允许 Agent 指定子 Agent 模型 / Allow agents to choose subagent models | `boolean` | 控制 Agent 能否在启动或继续执行子 Agent 时指定模型。 | Control whether agents can override subagent models when launching or continuing work. |
132135

133136
## 可以直接对智能体说 / Try saying
134137

‎docs/interactive-capabilities/technical/product-control-open-audit.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 1,
33
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
4-
"catalogDigest": "4b8a786017df37df61ff4c749771e0af19c851b6be51ed46504425c9bdf992bd",
4+
"catalogDigest": "408cc52581d52de1e3686853eec8a09b2c02129869cb82b2931e21694e10557b",
55
"count": 231,
66
"reasonCounts": {
77
"externalAuth": 4,

‎docs/interactive-capabilities/technical/tauri-command-map.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 2,
33
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
4-
"catalogDigest": "4b8a786017df37df61ff4c749771e0af19c851b6be51ed46504425c9bdf992bd",
4+
"catalogDigest": "408cc52581d52de1e3686853eec8a09b2c02129869cb82b2931e21694e10557b",
55
"commandCount": 705,
66
"coverage": {
77
"commandCount": 705,

‎packages/flow-chat-presentation/src/registry.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const toolPresentationRegistry = {
1515
ListModels: { owner: 'standard', component: 'ListModelsToolCard' },
1616
ControlHub: { owner: 'standard', component: 'ControlHubToolCard' },
1717
AgentSpawn: { owner: 'standard', component: 'AgentControlToolCard' },
18+
AgentFork: { owner: 'standard', component: 'AgentControlToolCard' },
1819
AgentSendInput: { owner: 'standard', component: 'SessionMessageToolCard' },
1920
AgentWait: { owner: 'standard', component: 'AgentWaitToolCard' },
2021
TodoWrite: { owner: 'standard', component: 'TodoToolCard' },

0 commit comments

Comments
 (0)