Skip to content

Commit 7d0f644

Browse files
authored
Merge pull request #3624 from GCWing/gcwing/sidebar-ecosystem-trajectory-20261030
feat(web-ui): customize navigation and add session trajectory
2 parents 1784e14 + 076496a commit 7d0f644

126 files changed

Lines changed: 4469 additions & 1258 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.

‎design-system/packages/ui/src/components/Icon/Icon.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
BookOpen,
1717
BookSearch,
1818
CalendarClock,
19+
ChartSpline,
1920
Check,
2021
ChevronDown,
2122
ChevronLeft,
@@ -128,6 +129,7 @@ export const iconNames = [
128129
"book-search",
129130
"browser",
130131
"calendar-clock",
132+
"chart-spline",
131133
"check-circle",
132134
"check-fill",
133135
"check-line",
@@ -260,6 +262,7 @@ const lineGlyphs = {
260262
"book-search": BookSearch,
261263
"browser": Globe,
262264
"calendar-clock": CalendarClock,
265+
"chart-spline": ChartSpline,
263266
"check-circle": CircleCheck,
264267
"check-fill": CircleCheck,
265268
"check-line": Check,

‎design-system/packages/ui/tests/icon.test.mjs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import { Icon, iconNames, canonicalIconNames, iconAliases } from "../dist/index.
88
import { Network } from "lucide-react";
99

1010
test("Icon exposes the complete named catalog without duplicate names", () => {
11-
assert.equal(iconNames.length, 102);
12-
assert.equal(canonicalIconNames.length, 99);
11+
assert.equal(iconNames.length, 103);
12+
assert.equal(canonicalIconNames.length, 100);
1313
assert.deepEqual(Object.keys(iconAliases).sort(), ["circle", "download"]);
1414
for (const name of ["thinking", "git", "duplicate", "chevron-left", "selected", "delete", "waitlist-message", "creative", "ultimate", "standard", "minimal", "arrow-down", "unselected"]) {
1515
assert.ok(canonicalIconNames.includes(name), name);
1616
}
1717
assert.equal(new Set(iconNames).size, iconNames.length);
1818
assert.ok(iconNames.includes("search"));
19+
assert.match(renderToStaticMarkup(createElement(Icon, { name: "chart-spline" })), /lucide-chart-spline/);
1920
assert.ok(canonicalIconNames.includes("list-todo"));
2021
assert.match(renderToStaticMarkup(createElement(Icon, { name: "list-todo" })), /lucide-list-todo/);
2122
assert.ok(iconNames.includes("book-open"));

‎docs/architecture/product-customization-blueprint.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,30 @@ GUI 主题由 Web/TS 主题模块定义,TUI 主题由 CLI/TUI 宿主定义,I
227227
界面宿主负责焦点、键盘导航、屏幕阅读器、窄终端、ANSI/truecolor、无鼠标和无 Unicode 等降级。无合法组合时
228228
构建失败;运行时插件贡献无法渲染时使用可退出的降级界面。
229229

230+
### 7.1 用户侧导航偏好与入口贡献
231+
232+
Web UI 的左侧导航定制属于控制端运行时展示偏好,不进入产品定义或远端配置。
233+
`src/web-ui/src/app/navigation/sidebarRegistry.ts` 定义可信前端模块的贡献接口:稳定的 owner 限定 ID、
234+
bootstrap 文案键、设计系统图标、当前页面匹配、不可用原因和按需打开动作。
235+
`sidebarContributions.ts` 注册现有页面并复用页面 owner / Product Action;设置与导航共同消费同一份注册表。
236+
注册返回注销函数,冲突 ID 拒绝注册,新入口只进入可选列表,由用户决定是否固定。
237+
238+
`sidebarPreferences.ts` 只持久化版本和有序入口 ID,不保存回调、组件、工作区路径或权限。
239+
默认保留首页与任务板,首页固定存在;用户可添加、排序、移除其他入口并恢复默认。
240+
未知或暂时不可用的入口保留原位置、显式禁用,重新注册或能力恢复后自动复用偏好。
241+
未知附加字段随写入保留;无法读取的数据和更新版本的记录不自动覆盖;写入失败保留原布局并报错。
242+
单个 MiniApp 仍由已有的按设备固定机制管理,不能把主机资源 ID 当作跨设备页面 ID。
243+
244+
导航贡献不会获得额外权限:页面 owner 继续承担 SSH、Peer 能力判断与数据访问,延迟准备后必须检查
245+
捕获的 surface scope;不支持的技能页面在非本机桌面显式禁用。Mobile / IM Remote Control 与 Detached
246+
Dispatch 不消费这份 GUI 布局,也不因固定入口获得新协议能力。此接口尚不是第三方插件 API:以后接入插件
247+
必须由受控适配层把已授权的声明投影为可信贡献,不得从偏好文件执行代码或任意地址。
248+
249+
入口声明与用户布局分离、按需加载、可恢复布局参考
250+
[VS Code View Contributions](https://code.visualstudio.com/api/extension-guides/tree-view) 和
251+
[Custom Layout](https://code.visualstudio.com/docs/configure/custom-layout);这里只采用适合现有 GUI owner 的部分,
252+
不引入通用组件协议或跨 GUI/TUI 布局 schema。
253+
230254
## 8. 产品内置扩展与用户插件
231255

232256
产品内置扩展只表示“随产品交付”,不表示更高运行权限,也不表示同名用户插件必须被拒绝。三类来源的生命周期

‎docs/interactive-capabilities/README.md‎

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

6-
OpenBitFun Playbook currently contains **23 features**, **21 settings pages**, and **336** 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.
6+
OpenBitFun Playbook currently contains **22 features**, **22 settings pages**, and **336** 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.
77

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

@@ -27,9 +27,9 @@ OpenBitFun Playbook currently contains **23 features**, **21 settings pages**, a
2727
- Generated per-item interaction audit: `docs/interactive-capabilities/technical/product-control-open-audit.json`
2828
- Generated low-level audit map: `docs/interactive-capabilities/technical/tauri-command-map.json`
2929

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

32-
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 **706** 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.
32+
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 **707** 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.
3333

3434
## 控制边界 / Control boundary
3535

‎docs/interactive-capabilities/capabilities.json‎

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "OpenBitFun Playbook",
55
"origin": "https://playbook.openbitfun.com",
66
"source": "src/shared/interactive-capabilities/catalog.json",
7-
"digest": "95e9b682d9e2fe6d4d9fe80b6564af3dec33f4b860e1b6ffc7da0eebea4d0e27",
7+
"digest": "516e1cab17ad7c33ff1be2777de1c52bb8a47ef0292bed32928843b8d1ee72ae",
88
"ownerDigest": "f27c231da2e536e4f2123910f34f862b55d21feb0528bc915d4d13edbd528af9",
99
"searchAcceptance": [
1010
{
@@ -172,8 +172,8 @@
172172
}
173173
],
174174
"counts": {
175-
"features": 23,
176-
"settings": 21,
175+
"features": 22,
176+
"settings": 22,
177177
"userFacing": 44,
178178
"documentedItems": 336,
179179
"controlCoverage": {
@@ -8046,8 +8046,8 @@
80468046
"kind": "static"
80478047
},
80488048
"presentationTarget": {
8049-
"kind": "action",
8050-
"actionId": "surface.ecosystemCompatibility.open"
8049+
"kind": "settings",
8050+
"pageId": "tools.external-import"
80518051
}
80528052
},
80538053
{
@@ -8092,8 +8092,8 @@
80928092
},
80938093
"openReason": "unstructuredInteraction",
80948094
"presentationTarget": {
8095-
"kind": "action",
8096-
"actionId": "surface.ecosystemCompatibility.open"
8095+
"kind": "settings",
8096+
"pageId": "tools.external-import"
80978097
}
80988098
},
80998099
{
@@ -8138,8 +8138,8 @@
81388138
},
81398139
"openReason": "unstructuredInteraction",
81408140
"presentationTarget": {
8141-
"kind": "action",
8142-
"actionId": "surface.ecosystemCompatibility.open"
8141+
"kind": "settings",
8142+
"pageId": "tools.external-import"
81438143
}
81448144
},
81458145
{
@@ -8184,8 +8184,8 @@
81848184
},
81858185
"openReason": "unstructuredInteraction",
81868186
"presentationTarget": {
8187-
"kind": "action",
8188-
"actionId": "surface.ecosystemCompatibility.open"
8187+
"kind": "settings",
8188+
"pageId": "tools.external-import"
81898189
}
81908190
},
81918191
{
@@ -8230,8 +8230,8 @@
82308230
},
82318231
"openReason": "unstructuredInteraction",
82328232
"presentationTarget": {
8233-
"kind": "action",
8234-
"actionId": "surface.ecosystemCompatibility.open"
8233+
"kind": "settings",
8234+
"pageId": "tools.external-import"
82358235
}
82368236
},
82378237
{
@@ -8276,8 +8276,8 @@
82768276
},
82778277
"openReason": "unstructuredInteraction",
82788278
"presentationTarget": {
8279-
"kind": "action",
8280-
"actionId": "surface.ecosystemCompatibility.open"
8279+
"kind": "settings",
8280+
"pageId": "tools.external-import"
82818281
}
82828282
},
82838283
{
@@ -8322,8 +8322,8 @@
83228322
},
83238323
"openReason": "unstructuredInteraction",
83248324
"presentationTarget": {
8325-
"kind": "action",
8326-
"actionId": "surface.ecosystemCompatibility.open"
8325+
"kind": "settings",
8326+
"pageId": "tools.external-import"
83278327
}
83288328
},
83298329
{
@@ -8368,8 +8368,8 @@
83688368
},
83698369
"openReason": "unstructuredInteraction",
83708370
"presentationTarget": {
8371-
"kind": "action",
8372-
"actionId": "surface.ecosystemCompatibility.open"
8371+
"kind": "settings",
8372+
"pageId": "tools.external-import"
83738373
}
83748374
},
83758375
{
@@ -8414,8 +8414,8 @@
84148414
},
84158415
"openReason": "unstructuredInteraction",
84168416
"presentationTarget": {
8417-
"kind": "action",
8418-
"actionId": "surface.ecosystemCompatibility.open"
8417+
"kind": "settings",
8418+
"pageId": "tools.external-import"
84198419
}
84208420
},
84218421
{
@@ -8460,8 +8460,8 @@
84608460
},
84618461
"openReason": "unstructuredInteraction",
84628462
"presentationTarget": {
8463-
"kind": "action",
8464-
"actionId": "surface.ecosystemCompatibility.open"
8463+
"kind": "settings",
8464+
"pageId": "tools.external-import"
84658465
}
84668466
},
84678467
{
@@ -8506,8 +8506,8 @@
85068506
},
85078507
"openReason": "unstructuredInteraction",
85088508
"presentationTarget": {
8509-
"kind": "action",
8510-
"actionId": "surface.ecosystemCompatibility.open"
8509+
"kind": "settings",
8510+
"pageId": "tools.external-import"
85118511
}
85128512
},
85138513
{
@@ -8552,8 +8552,8 @@
85528552
},
85538553
"openReason": "unstructuredInteraction",
85548554
"presentationTarget": {
8555-
"kind": "action",
8556-
"actionId": "surface.ecosystemCompatibility.open"
8555+
"kind": "settings",
8556+
"pageId": "tools.external-import"
85578557
}
85588558
},
85598559
{
@@ -24414,7 +24414,7 @@
2441424414
},
2441524415
{
2441624416
"id": "feature.ecosystem-compatibility",
24417-
"kind": "feature",
24417+
"kind": "setting",
2441824418
"categoryId": "automation",
2441924419
"titleZh": "外部导入",
2442024420
"titleEn": "External Import",
@@ -24585,15 +24585,15 @@
2458524585
}
2458624586
],
2458724587
"stepsZh": [
24588-
"打开“外部导入”并选择应用",
24589-
"在左侧导航搜索框上方切换自动发现,悬停查看说明;关闭后立即隐藏对应来源的跟随会话,已分叉副本继续保留",
24588+
"打开“设置 → 工具与集成 → 外部导入”并选择应用",
24589+
"在外部应用标题旁切换自动发现,悬停查看说明;关闭后立即隐藏对应来源的跟随会话,已分叉副本继续保留",
2459024590
"查看分类状态,打开分类弹窗浏览、搜索并选择内容",
2459124591
"审阅可导入项目并确认创建副本;Command、Tool、子智能体按已有兼容功能使用",
2459224592
"前往对应管理页确认副本启用或连接;当前页不将“已导入”视为可用"
2459324593
],
2459424594
"stepsEn": [
24595-
"Open External Import and choose an app",
24596-
"Toggle automatic discovery above the sidebar search and hover for details; disabling immediately hides source-following sessions while local forks remain visible",
24595+
"Open Settings → Tools & integrations → External import and choose an app",
24596+
"Toggle automatic discovery beside the External apps heading and hover for details; disabling immediately hides source-following sessions while local forks remain visible",
2459724597
"Inspect category status, then open a category dialog to browse, search, and select content",
2459824598
"Review importable items and confirm copies; use commands, tools and subagents through existing compatibility features",
2459924599
"Confirm copy activation or connection in the relevant settings; Imported does not mean available"
@@ -24607,8 +24607,8 @@
2460724607
"I want to migrate my Claude Code configuration"
2460824608
],
2460924609
"destination": {
24610-
"kind": "action",
24611-
"actionId": "surface.ecosystemCompatibility.open"
24610+
"kind": "settings",
24611+
"pageId": "tools.external-import"
2461224612
},
2461324613
"operations": [],
2461424614
"options": [],

‎docs/interactive-capabilities/capabilities/feature.ecosystem-compatibility.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!-- generated by scripts/generate-interactive-capabilities.mjs; do not edit -->
22
---
33
id: feature.ecosystem-compatibility
4-
kind: feature
4+
kind: setting
55
category: automation
66
title_zh: "外部导入"
77
title_en: "External Import"
88
---
99

1010
# 外部导入 / External Import
1111

12-
> 功能 / Feature
12+
> 设置 / Setting
1313

1414
查看外部 AI 生态的内容与状态,导入受支持的 Skill、MCP、Hook,以及 Codex、Zcode 会话,并在 OpenBitFun 中继续对话。
1515

@@ -42,18 +42,18 @@ Inspect external AI content and status, import supported Skills, MCP, Hooks, and
4242

4343
## 怎么用 / How to use it
4444

45-
1. 打开“外部导入”并选择应用
46-
Open External Import and choose an app
47-
2. 在左侧导航搜索框上方切换自动发现,悬停查看说明;关闭后立即隐藏对应来源的跟随会话,已分叉副本继续保留
48-
Toggle automatic discovery above the sidebar search and hover for details; disabling immediately hides source-following sessions while local forks remain visible
45+
1. 打开“设置 → 工具与集成 → 外部导入”并选择应用
46+
Open Settings → Tools & integrations → External import and choose an app
47+
2. 在外部应用标题旁切换自动发现,悬停查看说明;关闭后立即隐藏对应来源的跟随会话,已分叉副本继续保留
48+
Toggle automatic discovery beside the External apps heading and hover for details; disabling immediately hides source-following sessions while local forks remain visible
4949
3. 查看分类状态,打开分类弹窗浏览、搜索并选择内容
5050
Inspect category status, then open a category dialog to browse, search, and select content
5151
4. 审阅可导入项目并确认创建副本;Command、Tool、子智能体按已有兼容功能使用
5252
Review importable items and confirm copies; use commands, tools and subagents through existing compatibility features
5353
5. 前往对应管理页确认副本启用或连接;当前页不将“已导入”视为可用
5454
Confirm copy activation or connection in the relevant settings; Imported does not mean available
5555

56-
入口 / Entry: OpenBitFun 功能入口
56+
入口 / Entry: OpenBitFun 设置
5757

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

0 commit comments

Comments
 (0)