mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 11:44:18 +00:00
f592656680
- Add PanelToolbar/PanelBody primitives so all four settings tabs share the same top-toolbar + scrollable-body rhythm under the unified header. - API panel: drop the heavy gray shadowed TabsList; move the create action into the toolbar next to the tabs, lighten per-tab hints. - Storage panel: reuse PanelToolbar for the generated-at/refresh bar. - Account panel: wrap content in PanelBody for consistent padding. - Models panel: keep the pinned LangBot Models (Space) card at the very top, above the add-custom-provider row (intentional pin), using PanelBody instead of a top toolbar.
58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
import { ComponentManifest, I18nObject } from '@/app/infra/entities/common';
|
|
|
|
export interface Plugin {
|
|
status: 'intialized' | 'mounted' | 'unmounted';
|
|
priority: number;
|
|
plugin_config: object;
|
|
manifest: {
|
|
manifest: ComponentManifest;
|
|
};
|
|
debug: boolean;
|
|
enabled: boolean;
|
|
install_source: string;
|
|
install_info: Record<string, any>;
|
|
components: PluginComponent[];
|
|
}
|
|
|
|
export interface PluginComponent {
|
|
component_config: object;
|
|
manifest: {
|
|
manifest: ComponentManifest;
|
|
};
|
|
}
|
|
|
|
// A single log line captured from a running plugin's stderr.
|
|
export interface PluginLogEntry {
|
|
ts: number;
|
|
level: string;
|
|
text: string;
|
|
}
|
|
|
|
// marketplace plugin v4
|
|
export enum PluginV4Status {
|
|
Any = 'any',
|
|
Live = 'live',
|
|
Deleted = 'deleted',
|
|
}
|
|
|
|
export interface PluginV4 {
|
|
id: number;
|
|
plugin_id: string;
|
|
mcp_id?: string;
|
|
skill_id?: string;
|
|
author: string;
|
|
name: string;
|
|
label: I18nObject;
|
|
description: I18nObject;
|
|
icon: string;
|
|
repository: string;
|
|
tags: string[];
|
|
install_count: number;
|
|
latest_version: string;
|
|
components: Record<string, number>;
|
|
status: PluginV4Status;
|
|
type?: 'plugin' | 'mcp' | 'skill';
|
|
created_at: string;
|
|
updated_at: string;
|
|
}
|