From 78123ee1691d152ed7a10fa60716c6754ed58e6a Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 17 Nov 2026 08:46:13 +0800 Subject: [PATCH] Import packages/plugin/src/client/types.ts --- packages/plugin/src/client/types.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/plugin/src/client/types.ts b/packages/plugin/src/client/types.ts index 9871389..432ed40 100644 --- a/packages/plugin/src/client/types.ts +++ b/packages/plugin/src/client/types.ts @@ -58,6 +58,8 @@ export interface RemoteStatus { currentVersion: string latestVersion: string checkedAt: number + /** Set when this Desktop install can be updated in place. */ + upgrade?: 'ready' } hostAuthorizationAvailable: boolean host?: { @@ -262,6 +264,23 @@ export interface PluginSettingsView { } } +export type PluginLogLevel = 'debug' | 'info' | 'warn' | 'error' +export type PluginLogFilter = 'all' | 'warn' + +export interface PluginLogEntry { + seq: number + timestamp: string + level: PluginLogLevel + line: string +} + +export interface PluginLogView { + logLevel: PluginLogLevel + entries: PluginLogEntry[] + totalBuffered: number + filePath?: string + fileError?: string +} export interface PluginAssociation { method: 'account' | 'host_registration_code' | 'owned_device' | 'device_pairing' account?: string