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
1 change: 0 additions & 1 deletion theme/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export type {
SelectableCardProps,
StatusTextProps,
UsageRecordSurfaceProps,
UsageServiceTierFastResolver,
} from './plugin.js';

// 插件前端 SDK:样式注入、主题同步、Tailwind bridge 和公共组件
Expand Down
9 changes: 0 additions & 9 deletions theme/src/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,6 @@ export interface UsageRecordSurfaceProps {
context?: Record<string, unknown>;
}

/**
* 平台插件自行判断某条 usage 的 service_tier 是否应展示为 fast。
*
* 不同上游平台可能使用不同字段值表达 fast/priority/flex 等服务层级,
* Core 只负责调用该函数并套用统一 fast 样式,不内置平台语义。
*/
export type UsageServiceTierFastResolver = (context?: Record<string, unknown>) => boolean;

export interface PluginFrontendModule {
routes?: PluginRouteDefinition[];
menuItems?: PluginMenuItemDefinition[];
Expand All @@ -145,7 +137,6 @@ export interface PluginFrontendModule {
* Core 只提供表格骨架与回退渲染,不内置平台语义。
*/
usageModelMeta?: ComponentType<UsageRecordSurfaceProps>;
isUsageServiceTierFast?: UsageServiceTierFastResolver;
usageMetricDetail?: ComponentType<UsageRecordSurfaceProps>;
usageCostDetail?: ComponentType<UsageRecordSurfaceProps>;
platformIcon?: ComponentType<PluginPlatformIconProps>;
Expand Down