@voltius/plugin-types 0.49.1 → 0.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +13 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -87,7 +87,7 @@ export interface AppTheme {
87
87
  terminal: TerminalTheme;
88
88
  }
89
89
 
90
- export type Locale = "en" | "fr" | "ru" | "zh" | "tr";
90
+ export type Locale = "en" | "fr" | "ru" | "zh" | "tr" | "cs";
91
91
 
92
92
  export type PluginAuditAction =
93
93
  | "agent.grant_created"
@@ -370,6 +370,8 @@ export interface PluginPane {
370
370
  paneId: string;
371
371
  sessionId: string;
372
372
  connectionName: string;
373
+ /** The session's user-given name, or null when its label is the connection name. */
374
+ title: string | null;
373
375
  active: boolean;
374
376
  maximized: boolean;
375
377
  }
@@ -379,6 +381,8 @@ export interface PluginPane {
379
381
  export interface PluginPaneTab {
380
382
  tabId: string;
381
383
  kind: "split" | "session";
384
+ /** A split tab's own name (null: the label follows the active pane); a standalone tab's session name. */
385
+ title: string | null;
382
386
  active: boolean;
383
387
  panes: PluginPane[];
384
388
  broadcastActive: boolean;
@@ -594,6 +598,8 @@ export interface PluginSession {
594
598
  type: string;
595
599
  /** Local sessions only: the shell path/name to use for a spawned exec PTY. */
596
600
  localShell?: string;
601
+ /** The user-given name its tab shows; unset, the tab shows `connectionName`. */
602
+ title?: string;
597
603
  }
598
604
 
599
605
  // ─── Files (SFTP / FTP / local) ────────────────────────────────────────────
@@ -1101,6 +1107,10 @@ export interface PluginAPI {
1101
1107
  * strictly less than the ungated sessions:write, and detaching a pane leaves
1102
1108
  * the session open. Writes never throw — they return a PluginPaneResult whose
1103
1109
  * `error` says why, because every underlying store method fails silently.
1110
+ *
1111
+ * `rename` names a session, `renameTab` a split tab; a blank title clears the
1112
+ * name. A title escape the remote program writes (OSC 0/2) never reaches
1113
+ * either name — Voltius does not read them — so a name set here always holds.
1104
1114
  */
1105
1115
  panes: {
1106
1116
  list(): PluginPaneTab[];
@@ -1108,6 +1118,8 @@ export interface PluginAPI {
1108
1118
  move(input: { sessionId: string; targetSessionId: string; position: PluginPanePosition }): PluginPaneResult;
1109
1119
  detach(sessionId: string): PluginPaneResult;
1110
1120
  focus(sessionId: string, maximize?: boolean): PluginPaneResult;
1121
+ rename(sessionId: string, title: string | null): PluginPaneResult;
1122
+ renameTab(tabId: string, title: string | null): PluginPaneResult;
1111
1123
  };
1112
1124
 
1113
1125
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltius/plugin-types",
3
- "version": "0.49.1",
3
+ "version": "0.50.1",
4
4
  "description": "TypeScript definitions for the Voltius plugin API",
5
5
  "types": "index.d.ts",
6
6
  "files": [