Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ jobs:
node-version-file: package.json
package-manager-cache: false

- name: Verify Rust stack diagnostic contracts
run: node --test scripts/ci/rust-stack-diagnostics.test.mjs

# Tauri code generation only requires its configured resource roots to
# exist during check/test; distributable assets remain frontend-build's owner.
- name: Create Tauri resource directories
Expand Down Expand Up @@ -330,15 +333,28 @@ jobs:
run: cargo check --manifest-path OpenBitFun-Installer/src-tauri/Cargo.toml

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

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

- name: Run full core library tests on Linux
id: full-core-library-tests
if: runner.os == 'Linux'
run: cargo test --locked -p openbitfun-core --features product-full --lib
# Capture the existing run; only stack overflows trigger bounded reruns.
# See scripts/ci/AGENTS.md for reuse and diagnostic limitations.
run: node scripts/ci/rust-stack-diagnostics.mjs --output "${{ runner.temp }}/rust-stack-diagnostics" -- --locked -p openbitfun-core --features product-full --lib

- name: Upload Rust stack diagnostics
if: ${{ failure() && (steps.core-library-tests.outputs.stack_overflow == 'true' || steps.full-core-library-tests.outputs.stack_overflow == 'true') }}
uses: actions/upload-artifact@v6
with:
name: rust-stack-diagnostics-${{ runner.os }}
path: ${{ runner.temp }}/rust-stack-diagnostics
if-no-files-found: warn
retention-days: 7

- name: Run desktop library tests
if: runner.os != 'Windows'
Expand Down
4 changes: 2 additions & 2 deletions docs/architecture/deep-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ Packet support is not a general fan-out policy. New packets are admitted only wh

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

- `src/crates/assembly/core/src/agentic/tools/implementations/task/mod.rs`
- `src/crates/assembly/core/src/agentic/tools/implementations/task/deep_review.rs`
- `src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/mod.rs`
- `src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/deep_review.rs`
- `src/crates/assembly/core/src/agentic/deep_review/task_adapter.rs`
- `src/crates/execution/agent-runtime/src/deep_review/task_execution.rs`
- `src/crates/execution/agent-runtime/src/deep_review/queue.rs`
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/model-request-cache-reuse.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Relevant code:
- snapshot model:
`src/crates/assembly/core/src/agentic/fork_agent/mod.rs`
- request validation and tool contract:
`src/crates/assembly/core/src/agentic/tools/implementations/task/mod.rs`
`src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/mod.rs`
- execution and prompt-cache cloning:
`src/crates/assembly/core/src/agentic/coordination/coordinator.rs`

Expand Down
12 changes: 6 additions & 6 deletions docs/interactive-capabilities/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- generated by scripts/generate-interactive-capabilities.mjs; do not edit -->
# OpenBitFun 功能与设置目录 / OpenBitFun Features & Settings

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

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.
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.

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

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

## 控制边界 / Control boundary

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

- 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**.
- 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**.
- 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.
- `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.
- `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.
- 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.

## 防腐化门禁 / Anti-drift gates
Expand Down
89 changes: 84 additions & 5 deletions docs/interactive-capabilities/capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"title": "OpenBitFun Playbook",
"origin": "https://playbook.openbitfun.com",
"source": "src/shared/interactive-capabilities/catalog.json",
"digest": "4b8a786017df37df61ff4c749771e0af19c851b6be51ed46504425c9bdf992bd",
"ownerDigest": "31d6371f7765bde7bee88e22a6a4f03c2c5370e138cf49975bdc88f3c5eeb052",
"digest": "408cc52581d52de1e3686853eec8a09b2c02129869cb82b2931e21694e10557b",
"ownerDigest": "1fdb9c49d404c02483c08e1e0fe9effa0aaa4f0f2914578bcaa63e04de16cc16",
"searchAcceptance": [
{
"id": "native-office-generation",
Expand Down Expand Up @@ -187,9 +187,9 @@
"features": 24,
"settings": 23,
"userFacing": 47,
"documentedItems": 368,
"documentedItems": 369,
"controlCoverage": {
"direct": 63,
"direct": 64,
"delegated": 74,
"interactive": 231,
"unsupported": 0
Expand Down Expand Up @@ -1917,6 +1917,7 @@
},
"delegateTools": [
"AgentSpawn",
"AgentFork",
"AgentWait",
"AgentSendInput",
"AgentControl",
Expand Down Expand Up @@ -17809,7 +17810,8 @@
"computer-use",
"computer-use-permissions",
"browser-auto-connect",
"browser-setup"
"browser-setup",
"subagent-model-override"
],
"kind": "query",
"risk": "read",
Expand Down Expand Up @@ -18355,6 +18357,50 @@
"pageId": "tools.execution"
}
},
{
"id": "setting.tools.execution:option:subagent-model-override",
"capabilityId": "setting.tools.execution",
"itemIds": [
"subagent-model-override"
],
"kind": "option",
"risk": "write",
"executionHost": "productHost",
"availability": {
"desktop": {
"available": true
},
"cli": {
"available": true
},
"peer": {
"available": true,
"requiredCapabilities": [
"product_control_v1"
]
},
"remoteControl": {
"available": true
},
"detachedDispatch": {
"available": true
}
},
"inputSchema": {
"type": "boolean"
},
"outputSchema": {
"type": "object",
"additionalProperties": true
},
"valueSource": {
"kind": "static"
},
"presentationTarget": {
"kind": "settings",
"pageId": "tools.execution"
}
},
{
"id": "setting.tools.execution:open:question-timeout",
"capabilityId": "setting.tools.execution",
Expand Down Expand Up @@ -23530,6 +23576,7 @@
"kind": "delegate",
"tools": [
"AgentSpawn",
"AgentFork",
"AgentWait",
"AgentSendInput",
"AgentControl",
Expand Down Expand Up @@ -23641,6 +23688,7 @@
"Spawn parallel subagents to audit error handling across auth, billing, and gateway, then synthesize the findings",
"Help me draft a read-only subagent specialized in reviewing SQL migration safety",
"AgentSpawn",
"AgentFork",
"AgentWait",
"AgentSendInput",
"AgentControl",
Expand Down Expand Up @@ -34993,6 +35041,25 @@
"reasonZh": "可用浏览器和 CDP 状态来自当前机器且可能要求重启确认;智能体可打开配置入口,实际网页操作则使用统一的 ControlHub 浏览器契约。",
"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."
}
},
{
"id": "subagent-model-override",
"titleZh": "允许 Agent 指定子 Agent 模型",
"titleEn": "Allow agents to choose subagent models",
"destination": {
"kind": "settings",
"pageId": "tools.execution",
"viewId": "advanced"
},
"control": {
"kind": "direct",
"operations": [],
"options": [
{
"id": "subagent-model-override"
}
]
}
}
],
"stepsZh": [
Expand Down Expand Up @@ -35170,6 +35237,16 @@
"openui"
]
}
},
{
"id": "subagent-model-override",
"titleZh": "允许 Agent 指定子 Agent 模型",
"titleEn": "Allow agents to choose subagent models",
"descriptionZh": "控制 Agent 能否在启动或继续执行子 Agent 时指定模型。",
"descriptionEn": "Control whether agents can override subagent models when launching or continuing work.",
"valueSchema": {
"type": "boolean"
}
}
],
"searchTerms": [
Expand Down Expand Up @@ -35246,6 +35323,8 @@
"Choose whether OpenBitFun automatically connects to your CDP browser on startup",
"发现并选择外部浏览器、开启默认 CDP 配置或按需重启连接",
"Discover and choose an external browser, enable default CDP, or reconnect on demand",
"允许 Agent 指定子 Agent 模型",
"Allow agents to choose subagent models",
"开启按需加载工具帮我节省初始上下文",
"把子智能体最大并发改为 8,任务并行方式设为安全并行",
"单次工具调用超时改成 600 秒",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Browse and customize specialized agents, tailor each role’s allowed tools and
- Toggle tool groups, individual tools, and Skills per agent — with one-click reset to defaults
- 说明:既可以给内置模式增减工具与技能,也可以为自定义角色做最小权限裁剪;改乱了点一下「恢复默认」就能回到出厂推荐组合。
- 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.
- **由专用智能体工具控制 / Delegated Agent tool** · `AgentSpawn` / `AgentWait` / `AgentSendInput` / `AgentControl` / `AgentList` · 由主智能体自动派生并行子智能体协同调研、编码与审查,并统一汇总结果
- **由专用智能体工具控制 / Delegated Agent tool** · `AgentSpawn` / `AgentFork` / `AgentWait` / `AgentSendInput` / `AgentControl` / `AgentList` · 由主智能体自动派生并行子智能体协同调研、编码与审查,并统一汇总结果
- Let the primary agent spawn parallel subagents for research, coding, and review and synthesize their output
- 说明:主智能体会把大任务拆成互不踩踏的子切片交给多个子智能体同时推进;你在对话流里还能看到可爱的子代理化身卡片并随时点开查看它的独立推理轨迹。
- 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ Tune tool call and user-question timeouts, subagent default models and concurren
- Discover and choose an external browser, enable default CDP, or reconnect on demand
- 说明:前往“工具与集成 → 浏览器与桌面控制”选择 Chrome / Edge 并查看实时 CDP 端口连接状态。
- Why & how: Opens Tools & Integrations → Browser & Desktop Control to pick Chrome or Edge and manage live CDP connections.
- **智能体可直接控制 / Direct Agent control** · 允许 Agent 指定子 Agent 模型
- Allow agents to choose subagent models

## 怎么用 / How to use it

Expand Down Expand Up @@ -129,6 +131,7 @@ Tune tool call and user-question timeouts, subagent default models and concurren
| 启动时自动连接浏览器 / Auto-connect browser on startup | `boolean` | 控制 OpenBitFun 启动时是否自动尝试连接外部 CDP 浏览器(默认关闭)。 | Choose whether OpenBitFun automatically tries to connect external CDP browser control on launch (off by default). |
| 工具参数 JSON 安全修复 / Safe tool-argument JSON repair | `boolean` | 在严格安全边界内自动修复模型输出的轻微 JSON 语法瑕疵,减少因格式小错导致的调用失败。 | Automatically repair minor JSON syntax glitches in model tool arguments within strict safety bounds. |
| 默认生成式 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. |
| 允许 Agent 指定子 Agent 模型 / Allow agents to choose subagent models | `boolean` | 控制 Agent 能否在启动或继续执行子 Agent 时指定模型。 | Control whether agents can override subagent models when launching or continuing work. |

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
"catalogDigest": "4b8a786017df37df61ff4c749771e0af19c851b6be51ed46504425c9bdf992bd",
"catalogDigest": "408cc52581d52de1e3686853eec8a09b2c02129869cb82b2931e21694e10557b",
"count": 231,
"reasonCounts": {
"externalAuth": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 2,
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
"catalogDigest": "4b8a786017df37df61ff4c749771e0af19c851b6be51ed46504425c9bdf992bd",
"catalogDigest": "408cc52581d52de1e3686853eec8a09b2c02129869cb82b2931e21694e10557b",
"commandCount": 705,
"coverage": {
"commandCount": 705,
Expand Down
1 change: 1 addition & 0 deletions packages/flow-chat-presentation/src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const toolPresentationRegistry = {
ListModels: { owner: 'standard', component: 'ListModelsToolCard' },
ControlHub: { owner: 'standard', component: 'ControlHubToolCard' },
AgentSpawn: { owner: 'standard', component: 'AgentControlToolCard' },
AgentFork: { owner: 'standard', component: 'AgentControlToolCard' },
AgentSendInput: { owner: 'standard', component: 'SessionMessageToolCard' },
AgentWait: { owner: 'standard', component: 'AgentWaitToolCard' },
TodoWrite: { owner: 'standard', component: 'TodoToolCard' },
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-core-boundaries.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4024,7 +4024,7 @@ test('split core boundary check keeps self-test execution behavior', () => {
test('Task execution boundary requires policy-aware child delegation', () => {
const executionRule = requiredContentRules.find(
(rule) => rule.path
=== 'src/crates/assembly/core/src/agentic/tools/implementations/task/execution.rs'
=== 'src/crates/assembly/core/src/agentic/tools/implementations/agent_collaboration/execution.rs'
&& rule.patterns.some((pattern) => pattern.message.includes('background launches')),
);
assert.ok(executionRule, 'Task execution must have a required-content rule');
Expand Down
Loading
Loading