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
16 changes: 8 additions & 8 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 All @@ -27,20 +27,20 @@ OpenBitFun Playbook currently contains **24 features**, **23 settings pages**, a
- Generated per-item interaction audit: `docs/interactive-capabilities/technical/product-control-open-audit.json`
- Generated low-level audit map: `docs/interactive-capabilities/technical/tauri-command-map.json`

说明书、网站、搜索和智能体只看“功能 + 设置 + 子能力”。每项子能力都必须引用已注册 Tauri Command 或可解析的源码标记;这些证据不会进入公开目录。当前 **701** 个 Tauri 命令只用于实现覆盖审计。产品 UI 交互源码会在生成和检查时扫描并校验,但不会保存成随普通 UI 改动频繁变化的版本化快照。
说明书、网站、搜索和智能体只看“功能 + 设置 + 子能力”。每项子能力都必须引用已注册 Tauri Command 或可解析的源码标记;这些证据不会进入公开目录。当前 **702** 个 Tauri 命令只用于实现覆盖审计。产品 UI 交互源码会在生成和检查时扫描并校验,但不会保存成随普通 UI 改动频繁变化的版本化快照。

Docs, website, search, and agents see only features, settings, and documented sub-capabilities. Every sub-capability must reference a registered Tauri command or a resolvable source marker; evidence is stripped from public projections. The **701** Tauri commands remain implementation-audit evidence only. Product UI interaction sources are scanned and validated during generation and checks, but are not stored as a versioned snapshot that churns with ordinary UI changes.
Docs, website, search, and agents see only features, settings, and documented sub-capabilities. Every sub-capability must reference a registered Tauri command or a resolvable source marker; evidence is stripped from public projections. The **702** Tauri commands remain implementation-audit evidence only. Product UI interaction sources are scanned and validated during generation and checks, but are not stored as a versioned snapshot that churns with ordinary UI changes.

## 控制边界 / Control boundary

- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **64**、委托 **74**、需交互 **230**、不支持 **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 **64 direct**, **74 delegated**, **230 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
68 changes: 65 additions & 3 deletions docs/interactive-capabilities/capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "OpenBitFun Playbook",
"origin": "https://playbook.openbitfun.com",
"source": "src/shared/interactive-capabilities/catalog.json",
"digest": "82954fefebb8251023c36bd1f83f9e740c4889da4e22712089e80e3234c6267c",
"digest": "bec28fbd98726d074ccb1073068d0b9c147dddba552cbd46736305e58852b681",
"ownerDigest": "1fdb9c49d404c02483c08e1e0fe9effa0aaa4f0f2914578bcaa63e04de16cc16",
"searchAcceptance": [
{
Expand Down Expand Up @@ -187,11 +187,11 @@
"features": 24,
"settings": 23,
"userFacing": 47,
"documentedItems": 368,
"documentedItems": 369,
"controlCoverage": {
"direct": 64,
"delegated": 74,
"interactive": 230,
"interactive": 231,
"unsupported": 0
}
},
Expand Down Expand Up @@ -9558,6 +9558,7 @@
"id": "feature.remote-connect:query",
"capabilityId": "feature.remote-connect",
"itemIds": [
"device-control-permission",
"connection-methods",
"start-stop-status",
"network",
Expand Down Expand Up @@ -10012,6 +10013,52 @@
"eventName": "openbitfun:open-remote-connect"
}
},
{
"id": "feature.remote-connect:open:device-control-permission",
"capabilityId": "feature.remote-connect",
"itemIds": [
"device-control-permission"
],
"kind": "open",
"risk": "ui",
"executionHost": "presentationSurface",
"availability": {
"desktop": {
"available": true
},
"cli": {
"available": false,
"reason": "This delivery profile has no live presentation surface"
},
"peer": {
"available": true,
"requiredCapabilities": [
"product_control_v1",
"product_control_presentation_v1"
]
},
"remoteControl": {
"available": true
},
"detachedDispatch": {
"available": false,
"reason": "This delivery profile has no live presentation surface"
}
},
"inputSchema": {
"type": "object",
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"additionalProperties": true
},
"openReason": "unstructuredInteraction",
"presentationTarget": {
"kind": "event",
"eventName": "openbitfun:open-remote-connect"
}
},
{
"id": "feature.remote-connect:open:connection-methods",
"capabilityId": "feature.remote-connect",
Expand Down Expand Up @@ -28809,6 +28856,19 @@
"Ask the agent directly to start/stop channels, launch WeChat QR login, or inspect listener health"
],
"items": [
{
"id": "device-control-permission",
"titleZh": "本机可被控制",
"titleEn": "Allow control of this device",
"descriptionZh": "在设备与连接的概览中切换。关闭后,本机显示为离线,仍可控制其他在线设备。",
"descriptionEn": "Switch this in the Devices & Connections overview. When off, this device appears offline and can still control other online devices.",
"control": {
"kind": "open",
"reasonCode": "unstructuredInteraction",
"reasonZh": "请在当前设备的「设备与连接」概览中切换「本机可被控制」,选择其他设备能否连接这台设备。",
"reasonEn": "Choose “Allow control of this device” in the local Devices & Connections overview to set whether other devices can connect to this one."
}
},
{
"id": "connection-methods",
"titleZh": "使用免部署官方 Relay 或桌面端局域网 Relay(可同时开启)",
Expand Down Expand Up @@ -29167,6 +29227,8 @@
"Pair a WeChat, Feishu, or Telegram bot to chat and approve permissions from your messenger",
"Same-account Peer Device Mode: expand and operate another computer’s workspaces right in your sidebar",
"Ask the agent directly to start/stop channels, launch WeChat QR login, or inspect listener health",
"本机可被控制",
"Allow control of this device",
"使用免部署官方 Relay 或桌面端局域网 Relay(可同时开启)",
"Use the zero-setup official Relay or Desktop LAN Relay concurrently",
"一键启动、停用远控渠道并查看实时连接与设备信息",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Follow sessions, approve permissions, and keep working from Mobile Web or a WeCh

## 完整功能清单 / Everything included

- **智能体可定位入口,需交互完成 / Agent opens; interaction required** · 本机可被控制
- Allow control of this device
- 说明:在设备与连接的概览中切换。关闭后,本机显示为离线,仍可控制其他在线设备。
- Why & how: Switch this in the Devices & Connections overview. When off, this device appears offline and can still control other online devices.
- **智能体可定位入口,需交互完成 / Agent opens; interaction required** · 使用免部署官方 Relay 或桌面端局域网 Relay(可同时开启)
- Use the zero-setup official Relay or Desktop LAN Relay concurrently
- 说明:外网出门走官方加密中继即开即用,内网高速互连可同时打开桌面端局域网 Relay;首次身份认证均需联网登录。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"schemaVersion": 1,
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
"catalogDigest": "82954fefebb8251023c36bd1f83f9e740c4889da4e22712089e80e3234c6267c",
"count": 230,
"catalogDigest": "bec28fbd98726d074ccb1073068d0b9c147dddba552cbd46736305e58852b681",
"count": 231,
"reasonCounts": {
"externalAuth": 4,
"secretEntry": 6,
"unstructuredInteraction": 193,
"unstructuredInteraction": 194,
"visualSelection": 27
},
"entries": [
Expand Down Expand Up @@ -2122,6 +2122,22 @@
"command:ssh_disconnect_all"
]
},
{
"capabilityId": "feature.remote-connect",
"itemId": "device-control-permission",
"titleZh": "本机可被控制",
"titleEn": "Allow control of this device",
"reasonCode": "unstructuredInteraction",
"reasonZh": "请在当前设备的「设备与连接」概览中切换「本机可被控制」,选择其他设备能否连接这台设备。",
"reasonEn": "Choose “Allow control of this device” in the local Devices & Connections overview to set whether other devices can connect to this one.",
"presentationTarget": {
"kind": "event",
"eventName": "openbitfun:open-remote-connect"
},
"evidence": [
"command:remote_connect_set_allowed"
]
},
{
"capabilityId": "feature.remote-connect",
"itemId": "connection-methods",
Expand Down
24 changes: 20 additions & 4 deletions docs/interactive-capabilities/technical/tauri-command-map.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"schemaVersion": 2,
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
"catalogDigest": "82954fefebb8251023c36bd1f83f9e740c4889da4e22712089e80e3234c6267c",
"commandCount": 701,
"catalogDigest": "bec28fbd98726d074ccb1073068d0b9c147dddba552cbd46736305e58852b681",
"commandCount": 702,
"coverage": {
"commandCount": 701,
"documentedCommandCount": 634,
"commandCount": 702,
"documentedCommandCount": 635,
"implementationCommandCount": 67,
"implementationDigest": "3c03db6cdd74260fd8b7203d30ea4ab7224b4cfdea4a532c11e41a587cd92b19"
},
Expand Down Expand Up @@ -7481,6 +7481,22 @@
"signature": "fn remote_connect_get_methods() -> Result<Vec<ConnectionMethodInfo>, String>",
"remoteWorkspacePolicy": "WorkspaceAgnostic"
},
{
"id": "remote_connect_set_allowed",
"moduleId": "remote_connect",
"capabilityId": "feature.remote-connect",
"capabilityIds": [
"feature.remote-connect"
],
"documentedItemIds": [
"feature.remote-connect:device-control-permission"
],
"visibility": "documented",
"rustPath": "api::remote_connect_api::remote_connect_set_allowed",
"sourceFile": "src/apps/desktop/src/api/remote_connect_api.rs",
"signature": "fn remote_connect_set_allowed(request: SetRemoteControlRequest) -> Result<(), String>",
"remoteWorkspacePolicy": "WorkspaceAgnostic"
},
{
"id": "remote_connect_set_bot_verbose_mode",
"moduleId": "remote_connect",
Expand Down
6 changes: 6 additions & 0 deletions src/apps/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ openbitfun daemon install
openbitfun daemon status
```

Run `openbitfun daemon remote-control` to show this device’s setting (default
`on`). Use `openbitfun daemon remote-control off` to appear offline and stop
accepting remote control, or `openbitfun daemon remote-control on` to allow it
again. The setting is shared with Desktop and persists across restarts. An
offline device can still control online devices on the same account.

Linux uses a systemd user service and macOS uses a LaunchAgent. Windows does not
currently install an auto-start service; use `openbitfun daemon run` under a
supervisor instead. Run `openbitfun daemon --help` for lifecycle commands and
Expand Down
Loading
Loading