Skip to content
Open
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 个功能**和 **24 个设置页**,共 **48 个**用户可理解的条目、**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**, **24 settings pages**, and **369** source-backed sub-capabilities across **48** 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 或可解析的源码标记;这些证据不会进入公开目录。当前 **703** 个 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 **703** 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

- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **63**、委托 **74**、需交互 **231**、不支持 **0**。
- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **63**、委托 **74**、需交互 **232**、不支持 **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 **63 direct**, **74 delegated**, **232 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
183 changes: 178 additions & 5 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": "1e9b09293cfab7a47682d9decab4e0626137d6e79cd2405688d7f16e05a8e6b5",
"digest": "f592c3304b41651db62ca8afeff8bb8e3d56a3e49d6420eff960b3cfe9eb9294",
"ownerDigest": "6f0746578f3c56479f7c289bb05395dfe6917042f4d419de8c9a2f719d31f815",
"searchAcceptance": [
{
Expand Down Expand Up @@ -185,13 +185,13 @@
],
"counts": {
"features": 24,
"settings": 23,
"userFacing": 47,
"documentedItems": 368,
"settings": 24,
"userFacing": 48,
"documentedItems": 369,
"controlCoverage": {
"direct": 63,
"delegated": 74,
"interactive": 231,
"interactive": 232,
"unsupported": 0
}
},
Expand Down Expand Up @@ -21371,6 +21371,97 @@
"pageId": "data.usage"
}
},
{
"id": "setting.data.storage:query",
"capabilityId": "setting.data.storage",
"itemIds": [
"clean"
],
"kind": "query",
"risk": "read",
"executionHost": "productHost",
"availability": {
"desktop": {
"available": true
},
"cli": {
"available": true
},
"peer": {
"available": true,
"requiredCapabilities": [
"product_control_v1"
]
},
"remoteControl": {
"available": true
},
"detachedDispatch": {
"available": true
}
},
"inputSchema": {
"type": "object",
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"additionalProperties": true
},
"valueSource": {
"kind": "static"
},
"presentationTarget": {
"kind": "settings",
"pageId": "data.storage"
}
},
{
"id": "setting.data.storage:open:clean",
"capabilityId": "setting.data.storage",
"itemIds": [
"clean"
],
"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": "data.storage"
}
},
{
"id": "setting.data.archived:query",
"capabilityId": "setting.data.archived",
Expand Down Expand Up @@ -37393,6 +37484,88 @@
],
"docsUrl": "https://playbook.openbitfun.com/capabilities/setting.data.usage/"
},
{
"id": "setting.data.storage",
"kind": "setting",
"categoryId": "data",
"directoryGroupId": "settings-data",
"order": 53,
"entryPathZh": "设置 → 数据与维护 → 存储空间",
"entryPathEn": "Settings → Data & Maintenance → Storage",
"titleZh": "存储空间",
"titleEn": "Storage",
"summaryZh": "按工作区查看本机文件快照占用,手动清理符合条件的会话。",
"summaryEn": "Inspect local file snapshot usage by workspace and clean up eligible session histories.",
"keywordsZh": [
"存储空间",
"快照清理"
],
"keywordsEn": [
"storage",
"snapshot cleanup"
],
"highlightsZh": [
"查看每个工作区的快照占用及共享文件大小。"
],
"highlightsEn": [
"See snapshot usage and shared file sizes for each workspace."
],
"items": [
{
"id": "clean",
"titleZh": "预览并清理会话文件快照",
"titleEn": "Preview and clean up session file snapshots",
"descriptionZh": "选择工作区和未活跃时长,核对会话及预计释放空间后确认清理。",
"descriptionEn": "Choose workspaces and an inactivity period, review the affected sessions and estimated space, then confirm cleanup.",
"control": {
"kind": "open",
"reasonCode": "unstructuredInteraction",
"reasonZh": "“预览并清理会话文件快照”会永久移除所选会话的文件回退记录,请在存储空间页面核对并确认。",
"reasonEn": "“Preview and clean up session file snapshots” opens Storage so you can review the affected sessions before permanently removing their file rollback history."
}
}
],
"stepsZh": [
"打开存储空间,选择工作区和清理范围。",
"核对预览并确认删除文件快照。"
],
"stepsEn": [
"Open Storage and select the workspaces and inactivity period.",
"Review the preview and confirm deletion of file snapshots."
],
"agentExamplesZh": [
"打开快照存储设置"
],
"agentExamplesEn": [
"Open snapshot storage settings"
],
"relatedIds": [
"setting.data.archived"
],
"destination": {
"kind": "settings",
"pageId": "data.storage"
},
"operations": [],
"options": [],
"searchTerms": [
"setting.data.storage",
"存储空间",
"Storage",
"数据与诊断",
"Data & diagnostics",
"快照清理",
"storage",
"snapshot cleanup",
"查看每个工作区的快照占用及共享文件大小。",
"See snapshot usage and shared file sizes for each workspace.",
"预览并清理会话文件快照",
"Preview and clean up session file snapshots",
"打开快照存储设置",
"Open snapshot storage settings"
],
"docsUrl": "https://playbook.openbitfun.com/capabilities/setting.data.storage/"
},
{
"id": "setting.data.archived",
"kind": "setting",
Expand Down
55 changes: 55 additions & 0 deletions docs/interactive-capabilities/capabilities/setting.data.storage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!-- generated by scripts/generate-interactive-capabilities.mjs; do not edit -->
---
id: setting.data.storage
kind: setting
category: data
title_zh: "存储空间"
title_en: "Storage"
---

# 存储空间 / Storage

> 设置 / Setting

按工作区查看本机文件快照占用,手动清理符合条件的会话。

Inspect local file snapshot usage by workspace and clean up eligible session histories.

## 完整功能清单 / Everything included

- **智能体可定位入口,需交互完成 / Agent opens; interaction required** · 预览并清理会话文件快照
- Preview and clean up session file snapshots
- 说明:选择工作区和未活跃时长,核对会话及预计释放空间后确认清理。
- Why & how: Choose workspaces and an inactivity period, review the affected sessions and estimated space, then confirm cleanup.

## 怎么用 / How to use it

1. 打开存储空间,选择工作区和清理范围。
Open Storage and select the workspaces and inactivity period.
2. 核对预览并确认删除文件快照。
Review the preview and confirm deletion of file snapshots.

入口 / Entry: 设置 → 数据与维护 → 存储空间 / Settings → Data & Maintenance → Storage

## 智能体可替你做什么 / What an agent can do for you

| 操作 / Action | 中文说明 | English description |
| --- | --- | --- |
| 打开对应界面 / Open the UI | 进入 OpenBitFun 中对应的功能界面。 | Open the matching feature in OpenBitFun. |

## 可配置选项 / Configurable options

| 选项 / Option | 可用值 / Values | 中文说明 | English description |
| --- | --- | --- | --- |
| 在界面中配置 / Configure in the UI | — | 此页面的设置在对应界面中完成。 | Configure this page in its matching UI. |

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

- “打开快照存储设置”
- “Open snapshot storage settings”

关联条目 / Related: `setting.data.archived`

智能体会先查找相关功能或设置,确认目标后再替你打开、执行或修改。完整能力目录不会预先塞进对话上下文。

The agent first finds the relevant feature or setting, confirms the target, and then opens, runs, or changes it for you. The full catalog is never embedded in the conversation context.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"schemaVersion": 1,
"generatedFrom": "src/shared/interactive-capabilities/catalog.json",
"catalogDigest": "1e9b09293cfab7a47682d9decab4e0626137d6e79cd2405688d7f16e05a8e6b5",
"count": 231,
"catalogDigest": "f592c3304b41651db62ca8afeff8bb8e3d56a3e49d6420eff960b3cfe9eb9294",
"count": 232,
"reasonCounts": {
"externalAuth": 4,
"secretEntry": 6,
"unstructuredInteraction": 194,
"unstructuredInteraction": 195,
"visualSelection": 27
},
"entries": [
Expand Down Expand Up @@ -3984,6 +3984,23 @@
"source:src/web-ui/src/locales/zh-CN/settings/usage.json#trend.legend.cacheRead"
]
},
{
"capabilityId": "setting.data.storage",
"itemId": "clean",
"titleZh": "预览并清理会话文件快照",
"titleEn": "Preview and clean up session file snapshots",
"reasonCode": "unstructuredInteraction",
"reasonZh": "“预览并清理会话文件快照”会永久移除所选会话的文件回退记录,请在存储空间页面核对并确认。",
"reasonEn": "“Preview and clean up session file snapshots” opens Storage so you can review the affected sessions before permanently removing their file rollback history.",
"presentationTarget": {
"kind": "settings",
"pageId": "data.storage"
},
"evidence": [
"command:inspect_snapshot_storage",
"command:clean_snapshot_storage"
]
},
{
"capabilityId": "setting.data.archived",
"itemId": "browse",
Expand Down
Loading
Loading