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
6 changes: 0 additions & 6 deletions assets/brand/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,6 @@ platform selection, and icon containers with
`node --test scripts/generate-brand-assets.test.mjs`. macOS export and native
bundling checks also run `scripts/macos-icon-bundle.test.mjs`.

`source/release-letter-mascot.svg` preserves the authored character from
`openbitfun-letter.html`. Its named body, rigid head/rod, and eye parts are used
by the release letter's connected animation rig. The gradients belong to this
illustration, not to the application theme. Vite bundles this source directly;
it is independent of the application icon generator and needs no PNG export.

Verification emails use the silver application mark on its black rounded-square
background, generated at
`src/miniapp-market-web/public/assets/openbitfun-email-app-icon.png`. The market build
Expand Down
86 changes: 0 additions & 86 deletions assets/brand/source/release-letter-mascot.svg

This file was deleted.

9 changes: 8 additions & 1 deletion design-system/packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,14 @@ routing, and device or session operations stay in the consuming application.

`Checkbox appearance="native"` uses the visible browser checkbox, retaining its
native focus, disabled, checked, indeterminate, and form semantics. The default
`custom` presentation remains unchanged. Both presentations share sm/md/lg
`custom` presentation uses `color.control.highlight.background` for checked and
indeterminate boxes and reuses `color.control.switch.thumb` for their marks.
This matches the Switch's filled highlight and indicator pairing: white marks
in ordinary light/dark themes, with a dark mark on the high-contrast dark theme's
light highlight. `color.control.highlight.content` belongs to content on a
highlighted surface and has a dark value in ordinary themes. Select and Combobox
instead use the highlight color for a standalone check on a neutral surface.
Forced colors use the system Highlight/HighlightText pair. Both presentations share sm/md/lg
sizing and the same label and description slots; native colors belong to the
browser, with optional consumer `accent-color` styling.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export const checkboxMeta = {
{ name: "size", type: "sm | md | lg", defaultValue: "md" },
],
states: ["default", "hover", "focus-visible", "checked", "indeterminate", "invalid", "disabled"],
tokens: ["color.content.primary", "color.content.muted", "color.content.disabled", "color.field.background", "color.field.border", "color.accent.default", "color.focus.ring"],
tokens: ["color.content.primary", "color.content.muted", "color.content.disabled", "color.field.background", "color.field.border", "color.control.highlight.background", "color.control.switch.thumb", "color.focus.ring"],
} as const satisfies ComponentMeta;
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
block-size: 100%;
border: var(--openbitfun-border-width-default) solid var(--openbitfun-color-field-border);
border-radius: var(--openbitfun-radius-sm);
color: var(--openbitfun-color-content-inverse);
color: var(--openbitfun-color-control-switch-thumb);
background: var(--openbitfun-color-field-background);
transition: background-color var(--openbitfun-motion-duration-fast) var(--openbitfun-motion-easing-standard), border-color var(--openbitfun-motion-duration-fast) var(--openbitfun-motion-easing-standard);
}

.input:is(:checked, :indeterminate) + .box {
border-color: var(--openbitfun-color-accent-default);
background: var(--openbitfun-color-accent-default);
border-color: var(--openbitfun-color-control-highlight-background);
background: var(--openbitfun-color-control-highlight-background);
}

.input:focus-visible + .box {
Expand Down Expand Up @@ -99,6 +99,6 @@
@media (prefers-reduced-motion: reduce) { .box { transition: none; } }
@media (forced-colors: active) {
.box { border-color: ButtonText; }
.input:is(:checked, :indeterminate) + .box { border-color: Highlight; background: Highlight; }
.input:is(:checked, :indeterminate) + .box { border-color: Highlight; color: HighlightText; background: Highlight; }
}
}
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 当前包含 **22 个功能**和 **21 个设置页**,共 **43 个**用户可理解的条目、**325 项**有源码证据的子能力。每个条目有独立 Markdown,并直接服务于说明书网站、OpenBitFun 全局搜索和 `OpenBitFunControl` 智能体工具。
OpenBitFun Playbook 当前包含 **22 个功能**和 **21 个设置页**,共 **43 个**用户可理解的条目、**324 项**有源码证据的子能力。每个条目有独立 Markdown,并直接服务于说明书网站、OpenBitFun 全局搜索和 `OpenBitFunControl` 智能体工具。

OpenBitFun Playbook currently contains **22 features**, **21 settings pages**, and **325** source-backed sub-capabilities across **43** 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**, **21 settings pages**, and **324** source-backed sub-capabilities across **43** 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 **22 features**, **21 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 或可解析的源码标记;这些证据不会进入公开目录。当前 **670** 个 Tauri 命令只用于实现覆盖审计。产品 UI 交互源码会在生成和检查时扫描并校验,但不会保存成随普通 UI 改动频繁变化的版本化快照。
说明书、网站、搜索和智能体只看“功能 + 设置 + 子能力”。每项子能力都必须引用已注册 Tauri Command 或可解析的源码标记;这些证据不会进入公开目录。当前 **664** 个 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 **670** 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 **664** 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

- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **49**、委托 **62**、需交互 **214**、不支持 **0**。
- 每个子能力都明确标记为直接控制、委托给专用智能体工具、需交互打开或不支持;“打开页面”不会再被统计成“智能体已控制”。当前覆盖:直接 **49**、委托 **62**、需交互 **213**、不支持 **0**。
- 稳定行为声明为带 JSON 输入契约的 `operations` 或 `options`,并绑定原生产品控制 Provider;智能体不接触原始 Tauri Command。
- `OpenBitFunControl list` 和 `search` 都返回带 `nextCursor` 的精简分页结果;目录可持续增长,不靠固定总量上限。完整目录和 325 项子能力都不会写入 system prompt。
- `OpenBitFunControl list` 和 `search` 都返回带 `nextCursor` 的精简分页结果;目录可持续增长,不靠固定总量上限。完整目录和 324 项子能力都不会写入 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 **49 direct**, **62 delegated**, **214 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 **49 direct**, **62 delegated**, **213 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 325 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 324 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
Loading
Loading