fix(plugins): preserve deprecated panel terminal alias

This commit is contained in:
Federico Jaramillo Martinez
2026-06-05 14:26:35 +02:00
parent 82ba2e0490
commit 0d9d124237
5 changed files with 12 additions and 5 deletions
+1
View File
@@ -943,6 +943,7 @@ export class PiWebApp extends LitElement {
open: (options) => { void this.openRuntimeTerminal(machineId, workspace, options); },
runCommand: (input) => terminalCommandRuns.runCommand({ ...input, workspace }),
},
openTerminal: (options) => { void this.openRuntimeTerminal(machineId, workspace, options); },
host: this.createWorkspaceHost(),
piWebUnstable: { terminalCommandRuns },
fileTree: this.state.fileTree,
+5
View File
@@ -131,6 +131,11 @@ export interface QualifiedPluginAction extends AppAction {
export interface WorkspacePanelContext extends WorkspaceContext {
terminal: WorkspacePanelTerminal;
/**
* @deprecated Runtime-only compatibility alias for pre-v2 plugins. Use `terminal.open()` instead.
* This is intentionally not part of the public `@jmfederico/pi-web/plugin-api` declarations.
*/
openTerminal?: (options?: { terminalId?: string | undefined }) => void;
piWebUnstable?: Pick<PiWebUnstableRuntimeContext, "terminalCommandRuns">;
fileTree: FileTreeEntry[];
expandedDirs: Record<string, FileTreeEntry[]>;
-1
View File
@@ -212,4 +212,3 @@ export interface ThemePairContribution {
light: LocalContributionId;
dark: LocalContributionId;
}