@aiderdesk/extensions 0.21.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/README.md CHANGED
@@ -1,8 +1,40 @@
1
1
  # @aiderdesk/extensions
2
2
 
3
- TypeScript type definitions and examples for building [AiderDesk](https://aiderdesk.hotovo.com) extensions.
3
+ TypeScript type definitions, runtime utilities, and a CLI installer for [AiderDesk](https://aiderdesk.hotovo.com) extensions.
4
4
 
5
- ## Installation
5
+ ---
6
+
7
+ ## Installing Extensions
8
+
9
+ The easiest way to browse and install extensions is using the CLI:
10
+
11
+ ```bash
12
+ # Interactive selection — choose from all available extensions
13
+ npx @aiderdesk/extensions install
14
+
15
+ # Install a specific extension by ID
16
+ npx @aiderdesk/extensions install sound-notification
17
+
18
+ # Install to global extensions (available to all projects)
19
+ npx @aiderdesk/extensions install sound-notification --global
20
+
21
+ # Install from a URL (e.g., your own repository)
22
+ npx @aiderdesk/extensions install https://raw.githubusercontent.com/username/my-extension/main/my-extension.ts
23
+ ```
24
+
25
+ By default, extensions are installed to the current project (`.aider-desk/extensions/`). Use `--global` to install them for all projects (`~/.aider-desk/extensions/`).
26
+
27
+ Browse the full list of available extensions in the [Extensions Gallery](https://aiderdesk.hotovo.com/docs/extensions/extensions-gallery).
28
+
29
+ ### Hot Reload
30
+
31
+ Extensions are automatically reloaded when files change — no restart needed!
32
+
33
+ ---
34
+
35
+ ## Building Extensions
36
+
37
+ If you're developing your own extension, install this package as a dependency to get type definitions and runtime utilities:
6
38
 
7
39
  ```bash
8
40
  npm install @aiderdesk/extensions
@@ -12,8 +44,6 @@ yarn add @aiderdesk/extensions
12
44
  pnpm add @aiderdesk/extensions
13
45
  ```
14
46
 
15
- ## Usage
16
-
17
47
  Import both types and runtime values from a single entry point:
18
48
 
19
49
  ```typescript
@@ -24,7 +54,7 @@ import { z } from 'zod';
24
54
  export default class MyExtension implements Extension {
25
55
  async onLoad(context: ExtensionContext) {
26
56
  context.log('Extension loaded!', 'info');
27
-
57
+
28
58
  // Runtime values are available too
29
59
  const approval = ToolApprovalState.Always;
30
60
  }
@@ -33,9 +63,7 @@ export default class MyExtension implements Extension {
33
63
 
34
64
  **Note**: The package provides both TypeScript type definitions and runtime JavaScript values (like enum values) from the same entry point. You can use `import type` for type-only imports, or regular imports for runtime values.
35
65
 
36
- ## Example Extensions
37
-
38
- This directory contains example extensions demonstrating various capabilities of the AiderDesk extension system.
66
+ ---
39
67
 
40
68
  ## Documentation
41
69
 
@@ -46,68 +74,4 @@ For comprehensive documentation on creating and using extensions, see the [Exten
46
74
  - [Installation Guide](https://aiderdesk.hotovo.com/docs/extensions/installation) - Install extensions globally or per-project
47
75
  - [API Reference](https://aiderdesk.hotovo.com/docs/extensions/api-reference) - Complete API documentation
48
76
  - [Events Reference](https://aiderdesk.hotovo.com/docs/extensions/events) - All available events
49
- - [Examples Gallery](https://aiderdesk.hotovo.com/docs/extensions/examples) - Browse all examples
50
-
51
- ## Example Extensions
52
-
53
- | Extension | Description | Capabilities |
54
- |-----------|-------------|--------------|
55
- | **[chunkhound-on-semantic-search-tool/](./extensions/chunkhound-on-semantic-search-tool/)** | Overrides `power---semantic_search` to use ChunkHound for better semantic understanding | `search` |
56
- | **[chunkhound-search/](./extensions/chunkhound-search/)** | Provides `chunkhound-search` tool using ChunkHound for semantic code search | `search`, `tools` |
57
- | **[context-autocompletion-words/](./extensions/context-autocompletion-words/)** | Automatically extracts symbols from context files and adds them to autocompletion | `context` |
58
- | **[external-rules.ts](./extensions/external-rules.ts)** | Includes rule files from Cursor, Claude Code, and Roo Code configurations | `context` |
59
- | **[generate-tests.ts](./extensions/generate-tests.ts)** | Adds `/generate-tests` command to generate unit tests for files | `commands` |
60
- | **[lsp/](./extensions/lsp/)** | LSP integration for automatic error detection after file edits and code intelligence tools (find references) | `tools`, `code-intelligence` |
61
- | **[permission-gate.ts](./extensions/permission-gate.ts)** | Prompts for confirmation before running dangerous bash commands (`rm -rf`, `sudo`, `chmod/chown 777`) | `security` |
62
- | **[pirate.ts](./extensions/pirate.ts)** | Adds a Pirate agent that speaks like a swashbuckling sea dog | `agents`, `example` |
63
- | **[plan-mode.ts](./extensions/plan-mode.ts)** | Adds a Plan mode that enforces planning before coding | `modes` |
64
- | **[plannotator/](./extensions/plannotator/)** | Plan-based development workflow with planning mode and plan review utilizing plannotator.ai | `modes`, `tools`, `commands`, `workflow` |
65
- | **[programmatic-tool-calls/](./extensions/programmatic-tool-calls/)** | Execute JavaScript code in a sandbox with access to all tools as async functions | `tools` |
66
- | **[protected-paths.ts](./extensions/protected-paths.ts)** | Blocks file operations on protected paths (`.env`, `.git/`, `node_modules/`) | `security` |
67
- | **[providers-quota-extension/](./extensions/providers-quota-extension/)** | Displays API quota information for Synthetic and Z.AI providers in the task status bar | `ui` |
68
- | **[redact-secrets/](./extensions/redact-secrets/)** | Redacts secret values from `.env*` files in file read results | `security` |
69
- | **[rtk/](./extensions/rtk/)** | Transparently rewrites shell commands to RTK equivalents, reducing LLM token consumption by 60-90% | `optimization`, `commands` |
70
- | **[seek/](./extensions/seek/)** | Fast ranked code search using seek (zoekt) — replaces the internal grep tool | `tools`, `search` |
71
- | **[sandbox/](./extensions/sandbox/)** | OS-level sandboxing for bash commands using `@anthropic-ai/sandbox-runtime` | `security` |
72
- | **[sound-notification.ts](./extensions/sound-notification.ts)** | Plays a "Jobs Done" sound when a prompt finishes | `notifications` |
73
- | **[theme.ts](./extensions/theme.ts)** | Adds `/theme` command to switch AiderDesk themes | `commands` |
74
- | **[tree-sitter-repo-map/](./extensions/tree-sitter-repo-map/)** | Enhanced repository map using tree-sitter parsing with PageRank-based symbol ranking | `context`, `commands` |
75
- | **[tps-counter/](./extensions/tps-counter/)** | Displays tokens per second for agent responses with UI components in usage info and message bar | `metrics`, `ui` |
76
- | **[ultrathink.ts](./extensions/ultrathink.ts)** | Detects prompts like "ultrathink" / "think hard" and increases OpenAI/OpenAI-compatible reasoning effort (`xhigh` for `-max` models, otherwise `high`) | `optimization` |
77
- | **[wakatime.ts](./extensions/wakatime.ts)** | Tracks coding activity by sending heartbeats to WakaTime via wakatime-cli | `tracking` |
78
- | **[ui-placement-demo.ts](./extensions/ui-placement-demo.ts)** | Demonstrates all available UI component placement locations for extension development | `ui`, `example` |
79
- | **[multi-model-run/](./extensions/multi-model-run/)** | Run the same prompt across multiple models simultaneously with a UI selector | `ui` |
80
-
81
- ## Quick Start
82
-
83
- ### 1. Install an Extension
84
-
85
- The easiest way to install extensions is using the CLI:
86
-
87
- ```bash
88
- # Interactive selection - choose from all available extensions
89
- npx @aiderdesk/extensions install
90
-
91
- # Install a specific extension by ID
92
- npx @aiderdesk/extensions install sound-notification
93
-
94
- # Install to global extensions (available to all projects)
95
- npx @aiderdesk/extensions install sound-notification --global
96
-
97
- # Install from a URL (e.g., your own repository)
98
- npx @aiderdesk/extensions install https://raw.githubusercontent.com/username/my-extension/main/my-extension.ts
99
- ```
100
-
101
- Alternatively, manually copy extension files:
102
-
103
- ```bash
104
- # Global extensions (available to all projects)
105
- cp extensions/sound-notification.ts ~/.aider-desk/extensions/
106
-
107
- # Project-specific extensions
108
- cp extensions/sound-notification.ts .aider-desk/extensions/
109
- ```
110
-
111
- ### 2. Hot Reload
112
-
113
- Extensions are automatically reloaded when files change. No restart needed!
77
+ - [Extensions Gallery](https://aiderdesk.hotovo.com/docs/extensions/extensions-gallery) - Browse all available extensions
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
  }
@@ -772,6 +772,7 @@ export interface CreateTaskParams {
772
772
  sendEvent?: boolean;
773
773
  provider?: string;
774
774
  model?: string;
775
+ agentProfileId?: string;
775
776
  mode?: Mode;
776
777
  workingMode?: WorkingMode;
777
778
  addInitialContextFiles?: boolean;
@@ -975,7 +976,7 @@ export interface ProviderDefinition {
975
976
  headers?: Record<string, string>;
976
977
  }
977
978
  /** Placement locations for extension UI components */
978
- 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";
979
980
  /**
980
981
  * Definition of a React UI component that can be registered by an extension.
981
982
  * The component is defined as a JSX string and rendered using string-to-react-component.
@@ -1165,6 +1166,8 @@ export interface AgentStartedEvent {
1165
1166
  contextMessages: ContextMessage[];
1166
1167
  contextFiles: ContextFile[];
1167
1168
  blocked?: boolean;
1169
+ images?: string[];
1170
+ skillsToActivate?: string[];
1168
1171
  }
1169
1172
  /** Event payload for agent finished events */
1170
1173
  export interface AgentFinishedEvent {
@@ -1819,6 +1822,68 @@ export interface ProjectContext {
1819
1822
  */
1820
1823
  getInputHistory(): Promise<string[]>;
1821
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
+ }
1822
1887
  /**
1823
1888
  * Context object passed to extension methods providing access to AiderDesk APIs.
1824
1889
  *
@@ -1926,6 +1991,18 @@ export interface ExtensionContext {
1926
1991
  * @returns true if opened successfully, false if it failed (e.g., not in Electron environment)
1927
1992
  */
1928
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>;
1929
2006
  /**
1930
2007
  * Get the memory context for vector store operations (store, retrieve, update, delete memories).
1931
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
  }
@@ -772,6 +772,7 @@ export interface CreateTaskParams {
772
772
  sendEvent?: boolean;
773
773
  provider?: string;
774
774
  model?: string;
775
+ agentProfileId?: string;
775
776
  mode?: Mode;
776
777
  workingMode?: WorkingMode;
777
778
  addInitialContextFiles?: boolean;
@@ -975,7 +976,7 @@ export interface ProviderDefinition {
975
976
  headers?: Record<string, string>;
976
977
  }
977
978
  /** Placement locations for extension UI components */
978
- 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";
979
980
  /**
980
981
  * Definition of a React UI component that can be registered by an extension.
981
982
  * The component is defined as a JSX string and rendered using string-to-react-component.
@@ -1165,6 +1166,8 @@ export interface AgentStartedEvent {
1165
1166
  contextMessages: ContextMessage[];
1166
1167
  contextFiles: ContextFile[];
1167
1168
  blocked?: boolean;
1169
+ images?: string[];
1170
+ skillsToActivate?: string[];
1168
1171
  }
1169
1172
  /** Event payload for agent finished events */
1170
1173
  export interface AgentFinishedEvent {
@@ -1819,6 +1822,68 @@ export interface ProjectContext {
1819
1822
  */
1820
1823
  getInputHistory(): Promise<string[]>;
1821
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
+ }
1822
1887
  /**
1823
1888
  * Context object passed to extension methods providing access to AiderDesk APIs.
1824
1889
  *
@@ -1926,6 +1991,18 @@ export interface ExtensionContext {
1926
1991
  * @returns true if opened successfully, false if it failed (e.g., not in Electron environment)
1927
1992
  */
1928
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>;
1929
2006
  /**
1930
2007
  * Get the memory context for vector store operations (store, retrieve, update, delete memories).
1931
2008
  * Uses the same underlying vector store as the built-in memory tools.
package/extensions.json CHANGED
@@ -77,8 +77,9 @@
77
77
  "id": "external-rules",
78
78
  "name": "External Rules",
79
79
  "description": "Includes rule files from Cursor, Claude Code, and Roo Code",
80
- "file": "external-rules.ts",
81
- "type": "single",
80
+ "folder": "external-rules",
81
+ "type": "folder",
82
+ "hasDependencies": false,
82
83
  "capabilities": ["context"]
83
84
  },
84
85
  {
@@ -300,6 +301,15 @@
300
301
  "hasDependencies": true,
301
302
  "capabilities": ["providers", "agent-loop"]
302
303
  },
304
+ {
305
+ "id": "github-copilot",
306
+ "name": "GitHub Copilot",
307
+ "description": "Integrates GitHub Copilot as an LLM provider using the official Copilot SDK (Copilot CLI). Agent mode only",
308
+ "folder": "github-copilot",
309
+ "type": "folder",
310
+ "hasDependencies": true,
311
+ "capabilities": ["providers", "agent-loop"]
312
+ },
303
313
  {
304
314
  "id": "checkpoints",
305
315
  "name": "Checkpoints",
@@ -317,6 +327,24 @@
317
327
  "type": "folder",
318
328
  "hasDependencies": true,
319
329
  "capabilities": ["tools", "search"]
330
+ },
331
+ {
332
+ "id": "kanban",
333
+ "name": "Kanban Board",
334
+ "description": "Kanban board for project tasks, grouped by state with auto-updating columns",
335
+ "folder": "kanban",
336
+ "type": "folder",
337
+ "hasDependencies": false,
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"]
320
348
  }
321
349
  ]
322
350
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiderdesk/extensions",
3
- "version": "0.21.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",