feat(scum): add file config workbench

This commit is contained in:
npc0-hue
2026-07-28 14:43:24 +08:00
parent e739dd9c79
commit e4ef4024a8
22 changed files with 397 additions and 109 deletions
+6
View File
@@ -282,6 +282,11 @@ export interface RuntimeLogSourceResponse {
retentionDays?: number;
}
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 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[]; }
export interface RuntimeLogEventResponse {
key: string;
title: string;
@@ -364,6 +369,7 @@ export interface GamePluginResponse {
lifecycleActions: Record<string, string>;
bridgeActions: string[];
pages: GamePluginPageResponse[];
fileWorkspace?: PluginFileWorkspaceResponse;
tags: string[];
aiPurposes: string[];
productionLifecycle: PluginProductionLifecycleDeclaration;