@aiderdesk/extensions 0.22.0 → 0.23.0

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "bedrock" | "cerebras" | "deepseek" | "gemini" | "gemini-cli" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
3
+ export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "bedrock" | "cerebras" | "deepseek" | "gemini" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
4
4
  export interface LlmProviderBase {
5
5
  name: LlmProviderName;
6
6
  disableStreaming?: boolean;
@@ -98,10 +98,6 @@ export interface CerebrasProvider extends LlmProviderBase {
98
98
  name: "cerebras";
99
99
  apiKey: string;
100
100
  }
101
- export interface GeminiCliProvider extends LlmProviderBase {
102
- name: "gemini-cli";
103
- projectId?: string;
104
- }
105
101
  export interface BedrockProvider extends LlmProviderBase {
106
102
  name: "bedrock";
107
103
  accessKeyId: string;
@@ -152,6 +148,7 @@ export interface ZaiPlanProvider extends LlmProviderBase {
152
148
  name: "zai-plan";
153
149
  apiKey: string;
154
150
  thinkingEnabled?: boolean;
151
+ reasoningEffort?: ReasoningEffort;
155
152
  }
156
153
  export interface MinimaxProvider extends LlmProviderBase {
157
154
  name: "minimax";
@@ -164,6 +161,7 @@ export interface MistralProvider extends LlmProviderBase {
164
161
  export interface NeuralwattProvider extends LlmProviderBase {
165
162
  name: "neuralwatt";
166
163
  apiKey: string;
164
+ reasoningEffort?: ReasoningEffort;
167
165
  }
168
166
  export interface SyntheticProvider extends LlmProviderBase {
169
167
  name: "synthetic";
@@ -172,7 +170,7 @@ export interface SyntheticProvider extends LlmProviderBase {
172
170
  export interface ExtensionLlmProvider extends LlmProviderBase {
173
171
  [key: string]: unknown;
174
172
  }
175
- export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | GeminiCliProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | ExtensionLlmProvider;
173
+ export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | ExtensionLlmProvider;
176
174
  export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
177
175
  export type JSONObject = {
178
176
  [key: string]: JSONValue;
@@ -326,6 +324,7 @@ declare enum MessageViewMode {
326
324
  Compact = "compact"
327
325
  }
328
326
  declare enum ReasoningEffort {
327
+ Max = "max",
329
328
  XHigh = "xhigh",
330
329
  High = "high",
331
330
  Medium = "medium",
@@ -685,6 +684,7 @@ export interface SettingsData {
685
684
  proxy: {
686
685
  enabled: boolean;
687
686
  url: string;
687
+ noProxy: string;
688
688
  };
689
689
  fileWatchMode?: FileWatchMode;
690
690
  }
@@ -976,7 +976,7 @@ export interface ProviderDefinition {
976
976
  headers?: Record<string, string>;
977
977
  }
978
978
  /** Placement locations for extension UI components */
979
- export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "tasks-sidebar-actions-left" | "tasks-sidebar-actions-right" | "task-message" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page" | "floating";
979
+ export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "tasks-sidebar-actions-left" | "tasks-sidebar-actions-right" | "task-message" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page" | "task-floating" | "project-floating" | "app-floating";
980
980
  /**
981
981
  * Definition of a React UI component that can be registered by an extension.
982
982
  * The component is defined as a JSX string and rendered using string-to-react-component.
@@ -1166,6 +1166,8 @@ export interface AgentStartedEvent {
1166
1166
  contextMessages: ContextMessage[];
1167
1167
  contextFiles: ContextFile[];
1168
1168
  blocked?: boolean;
1169
+ images?: string[];
1170
+ skillsToActivate?: string[];
1169
1171
  }
1170
1172
  /** Event payload for agent finished events */
1171
1173
  export interface AgentFinishedEvent {
@@ -1820,6 +1822,68 @@ export interface ProjectContext {
1820
1822
  */
1821
1823
  getInputHistory(): Promise<string[]>;
1822
1824
  }
1825
+ /**
1826
+ * A narrow subset of Electron's `App` object, exposed to extensions via
1827
+ * {@link ExtensionContext.getElectronApp}.
1828
+ *
1829
+ * This is a hand-maintained interface (not imported from the `electron`
1830
+ * package) so that it can be published in `@aiderdesk/extensions` without
1831
+ * adding `electron` as a dependency. When running inside Electron the real
1832
+ * `App` object is structurally assignable to this interface; when running
1833
+ * outside Electron `getElectronApp()` returns `null`.
1834
+ */
1835
+ export interface ElectronApp {
1836
+ /**
1837
+ * Returns an array of `ProcessMetric` objects that correspond to memory
1838
+ * and CPU usage statistics of all the processes associated with the app.
1839
+ *
1840
+ * Each metric's `memory.workingSetSize` is expressed in **kilobytes**.
1841
+ */
1842
+ getAppMetrics(): ElectronProcessMetric[];
1843
+ /** The current application version. */
1844
+ getVersion(): string;
1845
+ /** The current application name. */
1846
+ getName(): string;
1847
+ /** A boolean that is true when the application has finished initializing. */
1848
+ isReady(): boolean;
1849
+ }
1850
+ /** CPU usage statistics for a single Electron process. */
1851
+ export interface ElectronCPUUsage {
1852
+ /** Percentage of CPU used since the last call (0–100). */
1853
+ percentCPUUsage?: number;
1854
+ /** Cumulative CPU time in seconds since process start. */
1855
+ cumulativeCPUUsage?: number;
1856
+ }
1857
+ /** Memory usage statistics for a single Electron process. */
1858
+ export interface ElectronMemoryInfo {
1859
+ /** Working set size in **kilobytes**. */
1860
+ workingSetSize?: number;
1861
+ /** Peak working set size in **kilobytes**. */
1862
+ peakWorkingSetSize?: number;
1863
+ }
1864
+ /**
1865
+ * Process metric returned by {@link ElectronApp.getAppMetrics}.
1866
+ *
1867
+ * All fields are optional because Electron may omit some of them depending
1868
+ * on the process type and platform.
1869
+ */
1870
+ export interface ElectronProcessMetric {
1871
+ /** Process ID. */
1872
+ pid?: number;
1873
+ /**
1874
+ * One of: `Browser` (main process), `Renderer`, `GPU`, `Utility`,
1875
+ * `ForkedWorker`, `ServiceWorker`, etc.
1876
+ */
1877
+ type?: string;
1878
+ /** Service name (only present for utility processes). */
1879
+ serviceName?: string;
1880
+ /** Display name of the process. */
1881
+ name?: string;
1882
+ /** CPU usage breakdown. */
1883
+ cpu?: ElectronCPUUsage;
1884
+ /** Memory usage breakdown. */
1885
+ memory?: ElectronMemoryInfo;
1886
+ }
1823
1887
  /**
1824
1888
  * Context object passed to extension methods providing access to AiderDesk APIs.
1825
1889
  *
@@ -1927,6 +1991,18 @@ export interface ExtensionContext {
1927
1991
  * @returns true if opened successfully, false if it failed (e.g., not in Electron environment)
1928
1992
  */
1929
1993
  openPath(path: string): Promise<boolean>;
1994
+ /**
1995
+ * Get a narrowed Electron `App` object for accessing host-level APIs
1996
+ * (e.g. `getAppMetrics()` for CPU/memory statistics).
1997
+ *
1998
+ * Only available when AiderDesk is running as an Electron desktop
1999
+ * application. Returns `null` when running in Node.js server / headless
2000
+ * mode, so extensions should perform a null-check before use.
2001
+ *
2002
+ * @returns Promise resolving to an {@link ElectronApp} instance, or
2003
+ * `null` if Electron is not available.
2004
+ */
2005
+ getElectronApp(): Promise<ElectronApp | null>;
1930
2006
  /**
1931
2007
  * Get the memory context for vector store operations (store, retrieve, update, delete memories).
1932
2008
  * Uses the same underlying vector store as the built-in memory tools.
package/extensions.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "bedrock" | "cerebras" | "deepseek" | "gemini" | "gemini-cli" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
3
+ export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "bedrock" | "cerebras" | "deepseek" | "gemini" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
4
4
  export interface LlmProviderBase {
5
5
  name: LlmProviderName;
6
6
  disableStreaming?: boolean;
@@ -98,10 +98,6 @@ export interface CerebrasProvider extends LlmProviderBase {
98
98
  name: "cerebras";
99
99
  apiKey: string;
100
100
  }
101
- export interface GeminiCliProvider extends LlmProviderBase {
102
- name: "gemini-cli";
103
- projectId?: string;
104
- }
105
101
  export interface BedrockProvider extends LlmProviderBase {
106
102
  name: "bedrock";
107
103
  accessKeyId: string;
@@ -152,6 +148,7 @@ export interface ZaiPlanProvider extends LlmProviderBase {
152
148
  name: "zai-plan";
153
149
  apiKey: string;
154
150
  thinkingEnabled?: boolean;
151
+ reasoningEffort?: ReasoningEffort;
155
152
  }
156
153
  export interface MinimaxProvider extends LlmProviderBase {
157
154
  name: "minimax";
@@ -164,6 +161,7 @@ export interface MistralProvider extends LlmProviderBase {
164
161
  export interface NeuralwattProvider extends LlmProviderBase {
165
162
  name: "neuralwatt";
166
163
  apiKey: string;
164
+ reasoningEffort?: ReasoningEffort;
167
165
  }
168
166
  export interface SyntheticProvider extends LlmProviderBase {
169
167
  name: "synthetic";
@@ -172,7 +170,7 @@ export interface SyntheticProvider extends LlmProviderBase {
172
170
  export interface ExtensionLlmProvider extends LlmProviderBase {
173
171
  [key: string]: unknown;
174
172
  }
175
- export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | GeminiCliProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | ExtensionLlmProvider;
173
+ export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | ExtensionLlmProvider;
176
174
  export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
177
175
  export type JSONObject = {
178
176
  [key: string]: JSONValue;
@@ -326,6 +324,7 @@ declare enum MessageViewMode {
326
324
  Compact = "compact"
327
325
  }
328
326
  declare enum ReasoningEffort {
327
+ Max = "max",
329
328
  XHigh = "xhigh",
330
329
  High = "high",
331
330
  Medium = "medium",
@@ -685,6 +684,7 @@ export interface SettingsData {
685
684
  proxy: {
686
685
  enabled: boolean;
687
686
  url: string;
687
+ noProxy: string;
688
688
  };
689
689
  fileWatchMode?: FileWatchMode;
690
690
  }
@@ -976,7 +976,7 @@ export interface ProviderDefinition {
976
976
  headers?: Record<string, string>;
977
977
  }
978
978
  /** Placement locations for extension UI components */
979
- export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "tasks-sidebar-actions-left" | "tasks-sidebar-actions-right" | "task-message" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page" | "floating";
979
+ export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "tasks-sidebar-actions-left" | "tasks-sidebar-actions-right" | "task-message" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page" | "task-floating" | "project-floating" | "app-floating";
980
980
  /**
981
981
  * Definition of a React UI component that can be registered by an extension.
982
982
  * The component is defined as a JSX string and rendered using string-to-react-component.
@@ -1166,6 +1166,8 @@ export interface AgentStartedEvent {
1166
1166
  contextMessages: ContextMessage[];
1167
1167
  contextFiles: ContextFile[];
1168
1168
  blocked?: boolean;
1169
+ images?: string[];
1170
+ skillsToActivate?: string[];
1169
1171
  }
1170
1172
  /** Event payload for agent finished events */
1171
1173
  export interface AgentFinishedEvent {
@@ -1820,6 +1822,68 @@ export interface ProjectContext {
1820
1822
  */
1821
1823
  getInputHistory(): Promise<string[]>;
1822
1824
  }
1825
+ /**
1826
+ * A narrow subset of Electron's `App` object, exposed to extensions via
1827
+ * {@link ExtensionContext.getElectronApp}.
1828
+ *
1829
+ * This is a hand-maintained interface (not imported from the `electron`
1830
+ * package) so that it can be published in `@aiderdesk/extensions` without
1831
+ * adding `electron` as a dependency. When running inside Electron the real
1832
+ * `App` object is structurally assignable to this interface; when running
1833
+ * outside Electron `getElectronApp()` returns `null`.
1834
+ */
1835
+ export interface ElectronApp {
1836
+ /**
1837
+ * Returns an array of `ProcessMetric` objects that correspond to memory
1838
+ * and CPU usage statistics of all the processes associated with the app.
1839
+ *
1840
+ * Each metric's `memory.workingSetSize` is expressed in **kilobytes**.
1841
+ */
1842
+ getAppMetrics(): ElectronProcessMetric[];
1843
+ /** The current application version. */
1844
+ getVersion(): string;
1845
+ /** The current application name. */
1846
+ getName(): string;
1847
+ /** A boolean that is true when the application has finished initializing. */
1848
+ isReady(): boolean;
1849
+ }
1850
+ /** CPU usage statistics for a single Electron process. */
1851
+ export interface ElectronCPUUsage {
1852
+ /** Percentage of CPU used since the last call (0–100). */
1853
+ percentCPUUsage?: number;
1854
+ /** Cumulative CPU time in seconds since process start. */
1855
+ cumulativeCPUUsage?: number;
1856
+ }
1857
+ /** Memory usage statistics for a single Electron process. */
1858
+ export interface ElectronMemoryInfo {
1859
+ /** Working set size in **kilobytes**. */
1860
+ workingSetSize?: number;
1861
+ /** Peak working set size in **kilobytes**. */
1862
+ peakWorkingSetSize?: number;
1863
+ }
1864
+ /**
1865
+ * Process metric returned by {@link ElectronApp.getAppMetrics}.
1866
+ *
1867
+ * All fields are optional because Electron may omit some of them depending
1868
+ * on the process type and platform.
1869
+ */
1870
+ export interface ElectronProcessMetric {
1871
+ /** Process ID. */
1872
+ pid?: number;
1873
+ /**
1874
+ * One of: `Browser` (main process), `Renderer`, `GPU`, `Utility`,
1875
+ * `ForkedWorker`, `ServiceWorker`, etc.
1876
+ */
1877
+ type?: string;
1878
+ /** Service name (only present for utility processes). */
1879
+ serviceName?: string;
1880
+ /** Display name of the process. */
1881
+ name?: string;
1882
+ /** CPU usage breakdown. */
1883
+ cpu?: ElectronCPUUsage;
1884
+ /** Memory usage breakdown. */
1885
+ memory?: ElectronMemoryInfo;
1886
+ }
1823
1887
  /**
1824
1888
  * Context object passed to extension methods providing access to AiderDesk APIs.
1825
1889
  *
@@ -1927,6 +1991,18 @@ export interface ExtensionContext {
1927
1991
  * @returns true if opened successfully, false if it failed (e.g., not in Electron environment)
1928
1992
  */
1929
1993
  openPath(path: string): Promise<boolean>;
1994
+ /**
1995
+ * Get a narrowed Electron `App` object for accessing host-level APIs
1996
+ * (e.g. `getAppMetrics()` for CPU/memory statistics).
1997
+ *
1998
+ * Only available when AiderDesk is running as an Electron desktop
1999
+ * application. Returns `null` when running in Node.js server / headless
2000
+ * mode, so extensions should perform a null-check before use.
2001
+ *
2002
+ * @returns Promise resolving to an {@link ElectronApp} instance, or
2003
+ * `null` if Electron is not available.
2004
+ */
2005
+ getElectronApp(): Promise<ElectronApp | null>;
1930
2006
  /**
1931
2007
  * Get the memory context for vector store operations (store, retrieve, update, delete memories).
1932
2008
  * Uses the same underlying vector store as the built-in memory tools.
package/extensions.json CHANGED
@@ -336,6 +336,15 @@
336
336
  "type": "folder",
337
337
  "hasDependencies": false,
338
338
  "capabilities": ["ui"]
339
+ },
340
+ {
341
+ "id": "doom",
342
+ "name": "Doom",
343
+ "description": "Play DOOM in a floating panel",
344
+ "folder": "doom",
345
+ "type": "folder",
346
+ "hasDependencies": false,
347
+ "capabilities": ["ui"]
339
348
  }
340
349
  ]
341
350
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiderdesk/extensions",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Type definitions and examples for AiderDesk extensions",
5
5
  "author": "Hotovo",
6
6
  "homepage": "https://aiderdesk.hotovo.com",