@aiderdesk/extensions 0.23.0 → 0.25.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" | "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" | "clinepass" | "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;
@@ -16,7 +16,8 @@ export interface OllamaProvider extends LlmProviderBase {
16
16
  }
17
17
  declare enum OpenAiVoiceModel {
18
18
  Gpt4oMiniTranscribe = "gpt-4o-mini-transcribe",
19
- Gpt4oTranscribe = "gpt-4o-transcribe"
19
+ Gpt4oTranscribe = "gpt-4o-transcribe",
20
+ GptRealtimeWhisper = "gpt-realtime-whisper"
20
21
  }
21
22
  export interface OpenAiVoiceControlSettings extends VoiceControlSettings {
22
23
  model: OpenAiVoiceModel;
@@ -56,7 +57,8 @@ export interface AlibabaPlanProvider extends LlmProviderBase {
56
57
  thinkingBudget?: number;
57
58
  }
58
59
  declare enum GeminiVoiceModel {
59
- GeminiLive25FlashNativeAudio = "gemini-2.5-flash-native-audio-preview-12-2025"
60
+ Gemini31FlashLivePreview = "gemini-3.1-flash-live-preview",
61
+ Gemini25FlashNativeAudio = "gemini-2.5-flash-native-audio-preview-12-2025"
60
62
  }
61
63
  export interface GeminiVoiceControlSettings extends VoiceControlSettings {
62
64
  model: GeminiVoiceModel;
@@ -98,6 +100,10 @@ export interface CerebrasProvider extends LlmProviderBase {
98
100
  name: "cerebras";
99
101
  apiKey: string;
100
102
  }
103
+ export interface ClinePassProvider extends LlmProviderBase {
104
+ name: "clinepass";
105
+ apiKey?: string;
106
+ }
101
107
  export interface BedrockProvider extends LlmProviderBase {
102
108
  name: "bedrock";
103
109
  accessKeyId: string;
@@ -111,6 +117,7 @@ export interface OpenAiCompatibleProvider extends LlmProviderBase {
111
117
  baseUrl?: string;
112
118
  reasoningEffort?: ReasoningEffort;
113
119
  trackTokenUsage?: boolean;
120
+ extraBody?: Record<string, unknown>;
114
121
  }
115
122
  export interface LitellmProvider extends LlmProviderBase {
116
123
  name: "litellm";
@@ -170,7 +177,7 @@ export interface SyntheticProvider extends LlmProviderBase {
170
177
  export interface ExtensionLlmProvider extends LlmProviderBase {
171
178
  [key: string]: unknown;
172
179
  }
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;
180
+ export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | ClinePassProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | ExtensionLlmProvider;
174
181
  export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
175
182
  export type JSONObject = {
176
183
  [key: string]: JSONValue;
@@ -301,6 +308,10 @@ export declare enum ContextMemoryMode {
301
308
  FullContext = "full-context",
302
309
  LastMessage = "last-message"
303
310
  }
311
+ export interface WorktreeUncommittedFiles {
312
+ count: number;
313
+ files: string[];
314
+ }
304
315
  export interface ModeDefinition {
305
316
  name: Mode;
306
317
  label: string;
@@ -452,7 +463,9 @@ export interface PromptBehavior {
452
463
  useVimBindings: boolean;
453
464
  }
454
465
  export declare enum InvocationMode {
466
+ /** Subagent is only used when explicitly requested by the user. */
455
467
  OnDemand = "on-demand",
468
+ /** Subagent can be automatically invoked when appropriate by the agent. */
456
469
  Automatic = "automatic"
457
470
  }
458
471
  export interface SubagentConfig {
@@ -493,6 +506,8 @@ export interface AgentProfile {
493
506
  useExtensionTools: boolean;
494
507
  disabledExtensionTools: string[];
495
508
  customInstructions: string;
509
+ systemPrompt?: string;
510
+ enabledSubagentIds?: string[];
496
511
  subagent: SubagentConfig;
497
512
  isSubagent?: boolean;
498
513
  ruleFiles?: string[];
@@ -629,7 +644,7 @@ export interface SettingsData {
629
644
  font?: Font;
630
645
  fontSize?: number;
631
646
  renderMarkdown: boolean;
632
- virtualizedRendering: boolean;
647
+ fullMessageRendering: boolean;
633
648
  aiderDeskAutoUpdate: boolean;
634
649
  diffViewMode?: DiffViewMode;
635
650
  messageViewMode?: MessageViewMode;
@@ -713,6 +728,15 @@ declare const WorkingModeSchema: z.ZodEnum<{
713
728
  worktree: "worktree";
714
729
  }>;
715
730
  export type WorkingMode = z.infer<typeof WorkingModeSchema>;
731
+ export interface SwitchToLocalOptions {
732
+ mergeBeforeSwitch?: boolean;
733
+ targetBranch?: string;
734
+ switchAllInWorktree?: boolean;
735
+ }
736
+ export interface SwitchToWorktreeOptions {
737
+ carryOverUncommittedChanges?: boolean;
738
+ dropSourceChanges?: boolean;
739
+ }
716
740
  declare const TaskDataSchema: z.ZodObject<{
717
741
  id: z.ZodString;
718
742
  baseDir: z.ZodString;
@@ -1735,6 +1759,39 @@ export interface TaskContext {
1735
1759
  * @returns True if a pending question was answered, false if no question is pending
1736
1760
  */
1737
1761
  answerQuestion(answer: string, userInput?: string): Promise<boolean>;
1762
+ /**
1763
+ * Switch the task to worktree working mode, optionally carrying over uncommitted changes
1764
+ * from the project root (or current worktree) into the new worktree.
1765
+ * Stashes uncommitted changes, creates a git worktree, applies the stash to the new worktree,
1766
+ * and optionally re-applies to the source if `dropSourceChanges` is false.
1767
+ * @param options - Optional configuration: `carryOverUncommittedChanges` to transfer uncommitted
1768
+ * changes, `dropSourceChanges` to keep (false) or remove (true, default) them from the source
1769
+ */
1770
+ switchToWorktreeWorkingMode(options?: SwitchToWorktreeOptions): Promise<void>;
1771
+ /**
1772
+ * Switch the task to local working mode, optionally merging the worktree branch first.
1773
+ * @param options - Optional configuration: `mergeBeforeSwitch` to merge worktree to main before
1774
+ * switching, `targetBranch` to specify a merge target, `switchAllInWorktree` to switch all
1775
+ * tasks sharing the same worktree
1776
+ */
1777
+ switchToLocalWorkingMode(options?: SwitchToLocalOptions): Promise<void>;
1778
+ /**
1779
+ * Get uncommitted files from the project's main repository (not from a worktree).
1780
+ * @returns Object containing arrays of unstaged, staged, and untracked file paths
1781
+ */
1782
+ getLocalUncommittedFiles(): Promise<WorktreeUncommittedFiles>;
1783
+ /**
1784
+ * Apply uncommitted changes from the task's worktree to a target branch in the main repository.
1785
+ * @param targetBranch - Optional target branch name (defaults to the project's main branch)
1786
+ */
1787
+ applyUncommittedChanges(targetBranch?: string): Promise<void>;
1788
+ /**
1789
+ * Merge commits and optionally uncommitted changes from this task's worktree to a target worktree directory.
1790
+ * Useful for carrying over changes between worktrees when running multiple models.
1791
+ * @param targetWorktreeDir - The absolute path to the target worktree directory
1792
+ * @param includeUncommitted - Whether to include uncommitted changes (default: false)
1793
+ */
1794
+ mergeWorktreeToWorktree(targetWorktreeDir: string, includeUncommitted?: boolean): Promise<void>;
1738
1795
  }
1739
1796
  /**
1740
1797
  * Safe subset of Project capabilities exposed to extensions.
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" | "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" | "clinepass" | "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;
@@ -16,7 +16,8 @@ export interface OllamaProvider extends LlmProviderBase {
16
16
  }
17
17
  declare enum OpenAiVoiceModel {
18
18
  Gpt4oMiniTranscribe = "gpt-4o-mini-transcribe",
19
- Gpt4oTranscribe = "gpt-4o-transcribe"
19
+ Gpt4oTranscribe = "gpt-4o-transcribe",
20
+ GptRealtimeWhisper = "gpt-realtime-whisper"
20
21
  }
21
22
  export interface OpenAiVoiceControlSettings extends VoiceControlSettings {
22
23
  model: OpenAiVoiceModel;
@@ -56,7 +57,8 @@ export interface AlibabaPlanProvider extends LlmProviderBase {
56
57
  thinkingBudget?: number;
57
58
  }
58
59
  declare enum GeminiVoiceModel {
59
- GeminiLive25FlashNativeAudio = "gemini-2.5-flash-native-audio-preview-12-2025"
60
+ Gemini31FlashLivePreview = "gemini-3.1-flash-live-preview",
61
+ Gemini25FlashNativeAudio = "gemini-2.5-flash-native-audio-preview-12-2025"
60
62
  }
61
63
  export interface GeminiVoiceControlSettings extends VoiceControlSettings {
62
64
  model: GeminiVoiceModel;
@@ -98,6 +100,10 @@ export interface CerebrasProvider extends LlmProviderBase {
98
100
  name: "cerebras";
99
101
  apiKey: string;
100
102
  }
103
+ export interface ClinePassProvider extends LlmProviderBase {
104
+ name: "clinepass";
105
+ apiKey?: string;
106
+ }
101
107
  export interface BedrockProvider extends LlmProviderBase {
102
108
  name: "bedrock";
103
109
  accessKeyId: string;
@@ -111,6 +117,7 @@ export interface OpenAiCompatibleProvider extends LlmProviderBase {
111
117
  baseUrl?: string;
112
118
  reasoningEffort?: ReasoningEffort;
113
119
  trackTokenUsage?: boolean;
120
+ extraBody?: Record<string, unknown>;
114
121
  }
115
122
  export interface LitellmProvider extends LlmProviderBase {
116
123
  name: "litellm";
@@ -170,7 +177,7 @@ export interface SyntheticProvider extends LlmProviderBase {
170
177
  export interface ExtensionLlmProvider extends LlmProviderBase {
171
178
  [key: string]: unknown;
172
179
  }
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;
180
+ export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | ClinePassProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | ExtensionLlmProvider;
174
181
  export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
175
182
  export type JSONObject = {
176
183
  [key: string]: JSONValue;
@@ -301,6 +308,10 @@ export declare enum ContextMemoryMode {
301
308
  FullContext = "full-context",
302
309
  LastMessage = "last-message"
303
310
  }
311
+ export interface WorktreeUncommittedFiles {
312
+ count: number;
313
+ files: string[];
314
+ }
304
315
  export interface ModeDefinition {
305
316
  name: Mode;
306
317
  label: string;
@@ -452,7 +463,9 @@ export interface PromptBehavior {
452
463
  useVimBindings: boolean;
453
464
  }
454
465
  export declare enum InvocationMode {
466
+ /** Subagent is only used when explicitly requested by the user. */
455
467
  OnDemand = "on-demand",
468
+ /** Subagent can be automatically invoked when appropriate by the agent. */
456
469
  Automatic = "automatic"
457
470
  }
458
471
  export interface SubagentConfig {
@@ -493,6 +506,8 @@ export interface AgentProfile {
493
506
  useExtensionTools: boolean;
494
507
  disabledExtensionTools: string[];
495
508
  customInstructions: string;
509
+ systemPrompt?: string;
510
+ enabledSubagentIds?: string[];
496
511
  subagent: SubagentConfig;
497
512
  isSubagent?: boolean;
498
513
  ruleFiles?: string[];
@@ -629,7 +644,7 @@ export interface SettingsData {
629
644
  font?: Font;
630
645
  fontSize?: number;
631
646
  renderMarkdown: boolean;
632
- virtualizedRendering: boolean;
647
+ fullMessageRendering: boolean;
633
648
  aiderDeskAutoUpdate: boolean;
634
649
  diffViewMode?: DiffViewMode;
635
650
  messageViewMode?: MessageViewMode;
@@ -713,6 +728,15 @@ declare const WorkingModeSchema: z.ZodEnum<{
713
728
  worktree: "worktree";
714
729
  }>;
715
730
  export type WorkingMode = z.infer<typeof WorkingModeSchema>;
731
+ export interface SwitchToLocalOptions {
732
+ mergeBeforeSwitch?: boolean;
733
+ targetBranch?: string;
734
+ switchAllInWorktree?: boolean;
735
+ }
736
+ export interface SwitchToWorktreeOptions {
737
+ carryOverUncommittedChanges?: boolean;
738
+ dropSourceChanges?: boolean;
739
+ }
716
740
  declare const TaskDataSchema: z.ZodObject<{
717
741
  id: z.ZodString;
718
742
  baseDir: z.ZodString;
@@ -1735,6 +1759,39 @@ export interface TaskContext {
1735
1759
  * @returns True if a pending question was answered, false if no question is pending
1736
1760
  */
1737
1761
  answerQuestion(answer: string, userInput?: string): Promise<boolean>;
1762
+ /**
1763
+ * Switch the task to worktree working mode, optionally carrying over uncommitted changes
1764
+ * from the project root (or current worktree) into the new worktree.
1765
+ * Stashes uncommitted changes, creates a git worktree, applies the stash to the new worktree,
1766
+ * and optionally re-applies to the source if `dropSourceChanges` is false.
1767
+ * @param options - Optional configuration: `carryOverUncommittedChanges` to transfer uncommitted
1768
+ * changes, `dropSourceChanges` to keep (false) or remove (true, default) them from the source
1769
+ */
1770
+ switchToWorktreeWorkingMode(options?: SwitchToWorktreeOptions): Promise<void>;
1771
+ /**
1772
+ * Switch the task to local working mode, optionally merging the worktree branch first.
1773
+ * @param options - Optional configuration: `mergeBeforeSwitch` to merge worktree to main before
1774
+ * switching, `targetBranch` to specify a merge target, `switchAllInWorktree` to switch all
1775
+ * tasks sharing the same worktree
1776
+ */
1777
+ switchToLocalWorkingMode(options?: SwitchToLocalOptions): Promise<void>;
1778
+ /**
1779
+ * Get uncommitted files from the project's main repository (not from a worktree).
1780
+ * @returns Object containing arrays of unstaged, staged, and untracked file paths
1781
+ */
1782
+ getLocalUncommittedFiles(): Promise<WorktreeUncommittedFiles>;
1783
+ /**
1784
+ * Apply uncommitted changes from the task's worktree to a target branch in the main repository.
1785
+ * @param targetBranch - Optional target branch name (defaults to the project's main branch)
1786
+ */
1787
+ applyUncommittedChanges(targetBranch?: string): Promise<void>;
1788
+ /**
1789
+ * Merge commits and optionally uncommitted changes from this task's worktree to a target worktree directory.
1790
+ * Useful for carrying over changes between worktrees when running multiple models.
1791
+ * @param targetWorktreeDir - The absolute path to the target worktree directory
1792
+ * @param includeUncommitted - Whether to include uncommitted changes (default: false)
1793
+ */
1794
+ mergeWorktreeToWorktree(targetWorktreeDir: string, includeUncommitted?: boolean): Promise<void>;
1738
1795
  }
1739
1796
  /**
1740
1797
  * Safe subset of Project capabilities exposed to extensions.
package/extensions.json CHANGED
@@ -52,9 +52,10 @@
52
52
  {
53
53
  "id": "protected-paths",
54
54
  "name": "Protected Paths",
55
- "description": "Blocks file operations on protected paths (.env, .git/, node_modules/)",
56
- "file": "protected-paths.ts",
57
- "type": "single",
55
+ "description": "Blocks file operations on sensitive files and protected directories (.env*, *.pem, .ssh/, .aws/, .git/, system dirs, etc.)",
56
+ "folder": "protected-paths",
57
+ "type": "folder",
58
+ "hasDependencies": false,
58
59
  "capabilities": ["security"]
59
60
  },
60
61
  {
@@ -123,7 +124,7 @@
123
124
  {
124
125
  "id": "redact-secrets",
125
126
  "name": "Redact Secrets",
126
- "description": "Redacts secret values from .env* files in file read results",
127
+ "description": "Redacts secrets from file read results using regex patterns and .env* file values",
127
128
  "folder": "redact-secrets",
128
129
  "type": "folder",
129
130
  "hasDependencies": true,
@@ -292,10 +293,19 @@
292
293
  "hasDependencies": true,
293
294
  "capabilities": ["providers"]
294
295
  },
296
+ {
297
+ "id": "cursor",
298
+ "name": "Cursor",
299
+ "description": "Integrates Cursor as a provider via a local OpenAI-compatible proxy with full tool approval control",
300
+ "folder": "cursor",
301
+ "type": "folder",
302
+ "hasDependencies": true,
303
+ "capabilities": ["providers"]
304
+ },
295
305
  {
296
306
  "id": "cursor-sdk",
297
307
  "name": "Cursor SDK",
298
- "description": "Integrates the Cursor SDK as a provider with cursor/ prefix, overriding the agent loop to run Cursor agents",
308
+ "description": "Integrates the Cursor SDK as a provider with cursor-sdk/ prefix, overriding the agent loop to run Cursor agents",
299
309
  "folder": "cursor-sdk",
300
310
  "type": "folder",
301
311
  "hasDependencies": true,
@@ -345,6 +355,15 @@
345
355
  "type": "folder",
346
356
  "hasDependencies": false,
347
357
  "capabilities": ["ui"]
358
+ },
359
+ {
360
+ "id": "my-minions",
361
+ "name": "My Minions",
362
+ "description": "Adds Orchestrator and Minion agent profiles — a coordinator that delegates all work to a focused execution subagent",
363
+ "folder": "my-minions",
364
+ "type": "folder",
365
+ "hasDependencies": false,
366
+ "capabilities": ["agents", "example"]
348
367
  }
349
368
  ]
350
369
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiderdesk/extensions",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Type definitions and examples for AiderDesk extensions",
5
5
  "author": "Hotovo",
6
6
  "homepage": "https://aiderdesk.hotovo.com",
@@ -36,6 +36,7 @@
36
36
  "scripts": {
37
37
  "build": "dts-bundle-generator --external-imports zod node --project ../../tsconfig.node.json --no-check --no-banner -o extensions.d.ts ../../packages/common/src/extensions.ts && node scripts/build.mjs",
38
38
  "typecheck": "tsc --noEmit",
39
+ "test": "vitest run --no-color",
39
40
  "prepublishOnly": "npm run build",
40
41
  "publish:next": "node scripts/publish-next.mjs",
41
42
  "release:latest": "node scripts/release-latest.mjs"