Fix declared server config file reads

This commit is contained in:
npc0-hue
2026-09-21 10:05:50 +08:00
parent b481b1b798
commit 20008b4043
16 changed files with 166 additions and 33 deletions
+2 -2
View File
@@ -403,7 +403,7 @@ export interface RuntimeLogSourceResponse {
}
export interface PluginLogicalDirectoryResponse { key: string; label: string; scope: "config" | "logs"; }
export interface PluginLogicalFileResponse { key: string; directoryKey: string; label: string; kind: "config" | "log"; streamKey?: string; editable?: boolean; }
export interface PluginLogicalFileResponse { key: string; directoryKey: string; label: string; kind: "config" | "log"; streamKey?: string; targetKey?: string; editable?: boolean; }
export interface PluginConfigFieldResponse { key: string; fileKey: string; configKey: string; label: string; description: string; control: "text" | "number" | "boolean" | "port"; minimum?: number; maximum?: number; defaultValue?: string; restartImpact: "none" | "restart-required"; }
export interface PluginFileWorkspaceResponse { defaultDirectoryKey: string; directories: PluginLogicalDirectoryResponse[]; files: PluginLogicalFileResponse[]; configFields: PluginConfigFieldResponse[]; }
@@ -1373,7 +1373,7 @@ export interface DeclaredFileReadSnapshotResponse {
serverInstanceId: string;
pluginId: string;
key: string;
state: "ready" | "pending" | "not-read" | string;
state: "ready" | "pending" | "not-read" | "failed" | "cancelled" | string;
content?: string;
version?: number;
checksum?: string;