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
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 当前包含 **22 个功能**和 **22 个设置页**,共 **44 个**用户可理解的条目、**338 项**有源码证据的子能力。每个条目有独立 Markdown,并直接服务于说明书网站、OpenBitFun 全局搜索和 `OpenBitFunControl` 智能体工具。
OpenBitFun Playbook 当前包含 **22 个功能**和 **22 个设置页**,共 **44 个**用户可理解的条目、**339 项**有源码证据的子能力。每个条目有独立 Markdown,并直接服务于说明书网站、OpenBitFun 全局搜索和 `OpenBitFunControl` 智能体工具。

OpenBitFun Playbook currently contains **22 features**, **22 settings pages**, and **338** source-backed sub-capabilities across **44** 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 **22 features**, **22 settings pages**, and **339** source-backed sub-capabilities across **44** 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

- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **62**、委托 **72**、需交互 **204**、不支持 **0**。
- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **62**、委托 **72**、需交互 **205**、不支持 **0**。
- 稳定行为声明为带 JSON 输入契约的 `operations` 或 `options`,并绑定原生产品控制 Provider;智能体不接触原始 Tauri Command。
- `OpenBitFunControl list` 和 `search` 都返回带 `nextCursor` 的精简分页结果;目录可持续增长,不靠固定总量上限。完整目录和 338 项子能力都不会写入 system prompt。
- `OpenBitFunControl list` 和 `search` 都返回带 `nextCursor` 的精简分页结果;目录可持续增长,不靠固定总量上限。完整目录和 339 项子能力都不会写入 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 **62 direct**, **72 delegated**, **204 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 **62 direct**, **72 delegated**, **205 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 338 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 339 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
73 changes: 70 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": "513e184cc2d93f183cdea258516f532caf58ac6400ef76dce9b54f6de0752627",
"digest": "6ae2eeaa19e6342f9dcf7ff33b7c0fa94547ee1c02fc1835f6f4471caab6fbb3",
"ownerDigest": "3cc6d7d869b2c90c2161494a854b5ff7eb72ea69a1a28e40ccd42065fb3382e2",
"searchAcceptance": [
{
Expand Down Expand Up @@ -175,11 +175,11 @@
"features": 22,
"settings": 22,
"userFacing": 44,
"documentedItems": 338,
"documentedItems": 339,
"controlCoverage": {
"direct": 62,
"delegated": 72,
"interactive": 204,
"interactive": 205,
"unsupported": 0
}
},
Expand Down Expand Up @@ -11565,6 +11565,7 @@
"agent-cards",
"home-management",
"card-actions",
"desktop-pinning",
"drag-restore"
],
"kind": "query",
Expand Down Expand Up @@ -11745,6 +11746,53 @@
"sectionId": "desktop-cards"
}
},
{
"id": "feature.desktop-cards:open:desktop-pinning",
"capabilityId": "feature.desktop-cards",
"itemIds": [
"desktop-pinning"
],
"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": "settings",
"pageId": "application.pet",
"sectionId": "desktop-cards"
}
},
{
"id": "feature.desktop-cards:open:drag-restore",
"capabilityId": "feature.desktop-cards",
Expand Down Expand Up @@ -26958,11 +27006,13 @@
"highlightsZh": [
"智能体按需创建并更新卡片",
"在首页查看、显示、隐藏或删除卡片",
"把卡片固定到 Windows 桌面图标之上",
"拖动卡片,位置在重启后恢复"
],
"highlightsEn": [
"Agents create and update cards when useful",
"View, show, hide, or delete cards from Home",
"Pin cards to the Windows desktop above the icons",
"Drag cards; positions are restored after restart"
],
"items": [
Expand Down Expand Up @@ -27029,6 +27079,17 @@
]
}
},
{
"id": "desktop-pinning",
"titleZh": "在卡片菜单、首页卡片列表或设置里把卡片固定到 Windows 桌面,隐藏的卡片同样可以切换固定状态",
"titleEn": "Pin a card to the Windows desktop from the card menu, the Home card list, or Settings, including hidden cards",
"control": {
"kind": "open",
"reasonCode": "unstructuredInteraction",
"reasonZh": "“在卡片菜单、首页卡片列表或设置里把卡片固定到 Windows 桌面,隐藏的卡片同样可以切换固定状态”会让卡片进入 Explorer 桌面层,位于桌面图标之上、其他应用之下,并且需要 Explorer 可用且 DPI 上下文一致才能成立;DesktopCard 工具的配置里没有这项显示偏好,因此由用户在卡片菜单或管理列表里切换,智能体只打开精确入口。",
"reasonEn": "“Pin a card to the Windows desktop from the card menu, the Home card list, or Settings, including hidden cards” moves the card into the Explorer desktop layer, above the icons and behind other apps, and only holds while Explorer is available with a matching DPI context; the DesktopCard tool configuration deliberately does not carry this display preference, so the user toggles it from the card menu or a management list and the Agent only opens the exact entry."
}
},
{
"id": "drag-restore",
"titleZh": "拖动卡片到桌面任意位置,拖动卡片边缘或四角调整大小;关闭 OpenBitFun 时卡片消失,重新打开后按原位置和大小恢复",
Expand All @@ -27044,11 +27105,13 @@
"stepsZh": [
"让智能体创建一张卡片,或在任务中由智能体主动创建",
"拖动卡片到合适位置",
"在卡片菜单、首页列表或设置里把卡片固定到桌面(Windows)",
"在首页“小卡片”区或卡片菜单中隐藏或删除"
],
"stepsEn": [
"Ask an agent for a card, or let it create one during a task",
"Drag the card where you want it",
"Pin it to the desktop from the card menu, the Home card list, or Settings (Windows)",
"Hide or delete it from the Home Desktop cards section or the card menu"
],
"agentControl": {
Expand Down Expand Up @@ -27097,16 +27160,20 @@
"countdown reminder",
"智能体按需创建并更新卡片",
"在首页查看、显示、隐藏或删除卡片",
"把卡片固定到 Windows 桌面图标之上",
"拖动卡片,位置在重启后恢复",
"Agents create and update cards when useful",
"View, show, hide, or delete cards from Home",
"Pin cards to the Windows desktop above the icons",
"Drag cards; positions are restored after restart",
"按需求或在任务过程中创建倒计时、清单、便签、进度、指标、图表、定时任务和自定义卡片,可定时从 HTTP 接口或本机命令刷新数据",
"Create countdown, checklist, note, progress, metrics, chart, scheduled-job, and custom cards on request or during a task, optionally refreshed from an HTTP endpoint or a local command",
"在首页“小卡片”区查看全部卡片,并显示、隐藏或删除单张卡片",
"See every card in the Home Desktop cards section, and show, hide, or delete individual cards",
"在卡片上刷新数据、勾选清单项、切换置顶、打开链接或回到来源会话",
"Refresh data, check off list items, toggle always-on-top, open the link, or return to the source session from a card",
"在卡片菜单、首页卡片列表或设置里把卡片固定到 Windows 桌面,隐藏的卡片同样可以切换固定状态",
"Pin a card to the Windows desktop from the card menu, the Home card list, or Settings, including hidden cards",
"拖动卡片到桌面任意位置,拖动卡片边缘或四角调整大小;关闭 OpenBitFun 时卡片消失,重新打开后按原位置和大小恢复",
"Drag cards anywhere on the desktop and resize them from their edges or corners; they disappear when OpenBitFun closes and return with the same position and size when it reopens",
"20 分钟后提醒我开会",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Let agents place draggable cards outside the main window for glanceable informat
- See every card in the Home Desktop cards section, and show, hide, or delete individual cards
- **由专用智能体工具控制 / Delegated Agent tool** · `DesktopCard` · 在卡片上刷新数据、勾选清单项、切换置顶、打开链接或回到来源会话
- Refresh data, check off list items, toggle always-on-top, open the link, or return to the source session from a card
- **智能体可定位入口,需交互完成 / Agent opens; interaction required** · 在卡片菜单、首页卡片列表或设置里把卡片固定到 Windows 桌面,隐藏的卡片同样可以切换固定状态
- Pin a card to the Windows desktop from the card menu, the Home card list, or Settings, including hidden cards
- **智能体可定位入口,需交互完成 / Agent opens; interaction required** · 拖动卡片到桌面任意位置,拖动卡片边缘或四角调整大小;关闭 OpenBitFun 时卡片消失,重新打开后按原位置和大小恢复
- Drag cards anywhere on the desktop and resize them from their edges or corners; they disappear when OpenBitFun closes and return with the same position and size when it reopens

Expand All @@ -32,7 +34,9 @@ Let agents place draggable cards outside the main window for glanceable informat
Ask an agent for a card, or let it create one during a task
2. 拖动卡片到合适位置
Drag the card where you want it
3. 在首页“小卡片”区或卡片菜单中隐藏或删除
3. 在卡片菜单、首页列表或设置里把卡片固定到桌面(Windows)
Pin it to the desktop from the card menu, the Home card list, or Settings (Windows)
4. 在首页“小卡片”区或卡片菜单中隐藏或删除
Hide or delete it from the Home Desktop cards section or the card menu

入口 / Entry: OpenBitFun 设置
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": "513e184cc2d93f183cdea258516f532caf58ac6400ef76dce9b54f6de0752627",
"count": 204,
"catalogDigest": "6ae2eeaa19e6342f9dcf7ff33b7c0fa94547ee1c02fc1835f6f4471caab6fbb3",
"count": 205,
"reasonCounts": {
"externalAuth": 4,
"secretEntry": 5,
"unstructuredInteraction": 169,
"unstructuredInteraction": 170,
"visualSelection": 26
},
"entries": [
Expand Down Expand Up @@ -2358,6 +2358,26 @@
"command:show_main_window"
]
},
{
"capabilityId": "feature.desktop-cards",
"itemId": "desktop-pinning",
"titleZh": "在卡片菜单、首页卡片列表或设置里把卡片固定到 Windows 桌面,隐藏的卡片同样可以切换固定状态",
"titleEn": "Pin a card to the Windows desktop from the card menu, the Home card list, or Settings, including hidden cards",
"reasonCode": "unstructuredInteraction",
"reasonZh": "“在卡片菜单、首页卡片列表或设置里把卡片固定到 Windows 桌面,隐藏的卡片同样可以切换固定状态”会让卡片进入 Explorer 桌面层,位于桌面图标之上、其他应用之下,并且需要 Explorer 可用且 DPI 上下文一致才能成立;DesktopCard 工具的配置里没有这项显示偏好,因此由用户在卡片菜单或管理列表里切换,智能体只打开精确入口。",
"reasonEn": "“Pin a card to the Windows desktop from the card menu, the Home card list, or Settings, including hidden cards” moves the card into the Explorer desktop layer, above the icons and behind other apps, and only holds while Explorer is available with a matching DPI context; the DesktopCard tool configuration deliberately does not carry this display preference, so the user toggles it from the card menu or a management list and the Agent only opens the exact entry.",
"presentationTarget": {
"kind": "settings",
"pageId": "application.pet",
"sectionId": "desktop-cards"
},
"evidence": [
"command:desktop_card_set_always_on_top",
"source:src/apps/desktop/src/desktop_cards/desktop_layer.rs#SHELLDLL_DefView",
"source:src/web-ui/src/app/scenes/personal-overview/OverviewDesktopCardsSection.tsx#desktopCards.pin",
"source:src/web-ui/src/app/scenes/settings/pages/application/DesktopCardsSettingsSection.tsx#desktop-card-pin-row"
]
},
{
"capabilityId": "feature.desktop-cards",
"itemId": "drag-restore",
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": "513e184cc2d93f183cdea258516f532caf58ac6400ef76dce9b54f6de0752627",
"catalogDigest": "6ae2eeaa19e6342f9dcf7ff33b7c0fa94547ee1c02fc1835f6f4471caab6fbb3",
"commandCount": 709,
"coverage": {
"commandCount": 709,
Expand Down Expand Up @@ -2198,7 +2198,8 @@
"feature.desktop-cards"
],
"documentedItemIds": [
"feature.desktop-cards:card-actions"
"feature.desktop-cards:card-actions",
"feature.desktop-cards:desktop-pinning"
],
"visibility": "documented",
"rustPath": "desktop_cards::commands::desktop_card_set_always_on_top",
Expand Down
12 changes: 12 additions & 0 deletions src/apps/desktop/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ may add the CA from `OPENBITFUN_E2E_SUBSCRIPTION_CA_FILE` under that same guard;
it does not turn off certificate verification. The native application fixture
is `node tests/e2e/scripts/run-subscription-pool.mjs` (see its E2E guide).

For desktop card stacking, native parenting rollback, and legacy record/request compatibility,
run `cargo test --locked -p openbitfun-desktop --no-default-features --lib desktop_cards`.
On a graphical Windows session with Explorer running, also run
`cargo test --locked -p openbitfun-desktop --no-default-features --lib live_explorer_attachment_round_trip -- --ignored`.
The native fixtures use hidden disposable windows; they do not establish WebView rendering,
Win+D behavior, Explorer restart recovery, mixed-DPI monitor dragging, or remote behavior.
After rebuilding, manually verify those native interactions and switching between desktop pinning,
global always-on-top, and hide/show. For Explorer restart (`taskkill /f /im explorer.exe`, then
start it again) a pinned card must reattach within about 30 s, or come back unpinned with the
pin-failure notice; it must never stay "Shown" without a window. UI, hidden-card pinning, and old-host negotiation coverage:
`pnpm --dir src/web-ui run test:run src/app/components/DesktopCard/DesktopCardWindow.test.tsx src/infrastructure/api/service-api/DesktopCardAPI.test.ts src/app/scenes/personal-overview/OverviewDesktopCardsSection.test.tsx src/app/scenes/settings/pages/application/DesktopCardsSettingsSection.test.tsx`.

For session storage directory access, run
`cargo test -p openbitfun-desktop --lib api::session_storage_directory::tests`
for session storage directory resolution (these tests do not launch a file manager),
Expand Down
1 change: 1 addition & 0 deletions src/apps/desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ windows = { workspace = true, features = [
"Win32_System_Com_StructuredStorage",
"Win32_System_Ole",
"Win32_System_Variant",
"Win32_UI_HiDpi",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Shell",
"Win32_UI_Shell_PropertiesSystem",
Expand Down
Loading
Loading