deck-plugin-sdk 1.12.1 → 1.12.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deck-plugin-sdk",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Build a plugin for Deck, outside the Deck repository.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -5,6 +5,6 @@
5
5
  "icon": "Sparkles",
6
6
  "color": "#a78bfa",
7
7
  "version": "0.1.0",
8
- "minDeck": "1.12.1",
8
+ "minDeck": "1.12.2",
9
9
  "permissions": []
10
10
  }
@@ -260,7 +260,6 @@ export interface Settings {
260
260
  startMinimized: boolean;
261
261
  reduceMotion: boolean;
262
262
  /** The Servers list (hosts from ~/.ssh/config) under the workspace list. */
263
- serversList: boolean;
264
263
  /** The mouse wheel over a tab bar switches tabs rather than scrolling the bar. */
265
264
  tabWheelSwitch: boolean;
266
265
  /** When the tabs do not fit, every one but the open tab shrinks to its icon. */
@@ -588,8 +587,9 @@ export interface ExecOut {
588
587
  * Run a command to completion and read its output. `runScriptNow` is fire-and-forget; this is
589
588
  * for when the output IS the point — asking a tool what it knows rather than telling it to do
590
589
  * something. A bare name goes through cmd.exe, so PATH and .bat shims (`flutter`, `npm`) work.
590
+ * `env` adds variables for this run only (a CLI's token), never seen by anything else.
591
591
  */
592
- export declare const exec: (command: string, args?: string[], cwd?: string) => Promise<ExecOut>;
592
+ export declare const exec: (command: string, args?: string[], cwd?: string, env?: Record<string, string>) => Promise<ExecOut>;
593
593
  /** One header, one value. A list rather than a map: order matters, and repeats are legal. */
594
594
  export type HttpHeader = [string, string];
595
595
  export interface HttpSendRequest {
@@ -934,7 +934,7 @@ export interface ProcResult {
934
934
  * command and read the output" into driving a long-lived tool that takes commands — a daemon
935
935
  * speaking one JSON object per line, or a program reading single keypresses.
936
936
  */
937
- export declare const procStream: (id: string, program: string, args: string[], cwd?: string, stdin?: boolean) => Promise<ProcResult>;
937
+ export declare const procStream: (id: string, program: string, args: string[], cwd?: string, stdin?: boolean, env?: Record<string, string>) => Promise<ProcResult>;
938
938
  /** What receives a `procStreamBytes` run's stdout, one chunk at a time. */
939
939
  export type ByteSink = (chunk: Uint8Array) => void;
940
940
  /**