@aiderdesk/extensions 0.13.0 → 0.15.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
@@ -406,7 +406,6 @@ declare const ProjectSettingsSchema: z.ZodObject<{
406
406
  reasoningEffort: z.ZodOptional<z.ZodString>;
407
407
  thinkingTokens: z.ZodOptional<z.ZodString>;
408
408
  currentMode: z.ZodString;
409
- contextCompactingThreshold: z.ZodOptional<z.ZodNumber>;
410
409
  weakModelLocked: z.ZodOptional<z.ZodBoolean>;
411
410
  autoApproveLocked: z.ZodOptional<z.ZodBoolean>;
412
411
  updatedFilesGroupMode: z.ZodDefault<z.ZodEnum<{
@@ -414,6 +413,8 @@ declare const ProjectSettingsSchema: z.ZodObject<{
414
413
  flat: "flat";
415
414
  }>>;
416
415
  disabledRuleFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
416
+ contextSidebarSectionsOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
417
+ contextSidebarSectionsHidden: z.ZodDefault<z.ZodArray<z.ZodString>>;
417
418
  }, z.core.$strip>;
418
419
  export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
419
420
  export declare enum ToolApprovalState {
@@ -486,6 +487,9 @@ export interface AgentProfile {
486
487
  subagent: SubagentConfig;
487
488
  isSubagent?: boolean;
488
489
  ruleFiles?: string[];
490
+ autoCompactThresholdPercentage?: number;
491
+ autoCompactThresholdTokens?: number;
492
+ autoCompactionType?: ContextCompactionType;
489
493
  }
490
494
  declare const THEMES: readonly [
491
495
  "dark",
@@ -571,14 +575,18 @@ declare enum MemoryEmbeddingProvider {
571
575
  }
572
576
  declare enum ContextCompactionType {
573
577
  Compact = "compact",
574
- Handoff = "handoff"
578
+ Handoff = "handoff",
579
+ Smart = "smart"
575
580
  }
576
581
  export interface TaskSettings {
577
582
  smartTaskState: boolean;
578
583
  autoGenerateTaskName: boolean;
579
584
  showTaskStateActions: boolean;
580
585
  worktreeSymlinkFolders: string[];
581
- contextCompactingThreshold: number;
586
+ contextCompactingThreshold: {
587
+ percentage: number;
588
+ tokens: number;
589
+ };
582
590
  contextCompactionType: ContextCompactionType;
583
591
  taskNameModel?: string | null;
584
592
  taskStateModel?: string | null;
@@ -706,6 +714,7 @@ declare const TaskDataSchema: z.ZodObject<{
706
714
  path: z.ZodString;
707
715
  baseBranch: z.ZodOptional<z.ZodString>;
708
716
  baseCommit: z.ZodOptional<z.ZodString>;
717
+ branch: z.ZodOptional<z.ZodString>;
709
718
  prunable: z.ZodOptional<z.ZodBoolean>;
710
719
  }, z.core.$strip>>;
711
720
  workingMode: z.ZodOptional<z.ZodEnum<{
@@ -731,7 +740,7 @@ declare const TaskDataSchema: z.ZodObject<{
731
740
  reasoningEffort: z.ZodOptional<z.ZodString>;
732
741
  thinkingTokens: z.ZodOptional<z.ZodString>;
733
742
  currentMode: z.ZodOptional<z.ZodString>;
734
- contextCompactingThreshold: z.ZodOptional<z.ZodNumber>;
743
+ contextCompactingThresholdTokens: z.ZodOptional<z.ZodNumber>;
735
744
  weakModelLocked: z.ZodOptional<z.ZodBoolean>;
736
745
  handoff: z.ZodOptional<z.ZodBoolean>;
737
746
  lastAgentProviderMetadata: z.ZodOptional<z.ZodUnknown>;
@@ -786,6 +795,7 @@ export interface CustomCommand extends Command {
786
795
  template: string;
787
796
  includeContext?: boolean;
788
797
  autoApprove?: boolean;
798
+ skills?: string[];
789
799
  }
790
800
  declare enum MemoryEntryType {
791
801
  Task = "task",
@@ -800,6 +810,15 @@ export interface MemoryEntry {
800
810
  projectId?: string;
801
811
  timestamp: number;
802
812
  }
813
+ export type SkillLocation = "global" | "project" | "builtin" | "extension";
814
+ export interface SkillDefinition {
815
+ name: string;
816
+ description: string;
817
+ location: SkillLocation;
818
+ dirPath?: string;
819
+ content?: string;
820
+ activated?: boolean;
821
+ }
803
822
  export type AgentStepResult = unknown;
804
823
  export declare const AIDER_DESK_EXTENSIONS_REPO_URL = "https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/";
805
824
  export interface ResponseMessage {
@@ -945,7 +964,6 @@ export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-rig
945
964
  * - React: React object with hooks (useState, useEffect, useCallback, useMemo, useRef, etc.)
946
965
  * - task: Current TaskData
947
966
  * - projectDir: Project directory path
948
- * - api: ApplicationAPI reference
949
967
  * - mode: Current mode string
950
968
  *
951
969
  * @example
@@ -1245,6 +1263,24 @@ export interface AiderPromptStartedEvent {
1245
1263
  export interface AiderPromptFinishedEvent {
1246
1264
  responses: ResponseCompletedData[];
1247
1265
  }
1266
+ /** Event payload for interrupt events */
1267
+ export interface InterruptedEvent {
1268
+ /** Optional interrupt ID for targeting a specific subagent or conflict-resolution agent */
1269
+ interruptId?: string;
1270
+ /** Set to true by extension to skip the default interrupt cleanup */
1271
+ blocked?: boolean;
1272
+ }
1273
+ /** Event payload for before commit events */
1274
+ export interface BeforeCommitEvent {
1275
+ message: string;
1276
+ amend: boolean;
1277
+ blocked?: boolean;
1278
+ }
1279
+ /** Event payload for after commit events */
1280
+ export interface AfterCommitEvent {
1281
+ readonly message: string;
1282
+ readonly amend: boolean;
1283
+ }
1248
1284
  /** Options for asking questions to the user */
1249
1285
  export interface QuestionOptions {
1250
1286
  subject?: string;
@@ -1332,6 +1368,13 @@ export interface TaskContext {
1332
1368
  * @param mode - Optional mode to use for re-execution (defaults to current mode)
1333
1369
  * @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
1334
1370
  */
1371
+ redoUserPrompt(messageId: string, mode?: string, updatedPrompt?: string): Promise<void>;
1372
+ /**
1373
+ * Re-execute the last user prompt, optionally with a different mode or edited text.
1374
+ * Convenience method that finds the last user message and calls redoUserPrompt with its ID.
1375
+ * @param mode - Optional mode to use for re-execution (defaults to current mode)
1376
+ * @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
1377
+ */
1335
1378
  redoLastUserPrompt(mode?: string, updatedPrompt?: string): Promise<void>;
1336
1379
  /**
1337
1380
  * Send a user message to the UI for display in the task's chat.
@@ -1952,6 +1995,13 @@ export interface Extension {
1952
1995
  * Provider names can override built-in providers (user responsibility to avoid conflicts between extensions).
1953
1996
  */
1954
1997
  getProviders?(context: ExtensionContext): ProviderDefinition[];
1998
+ /**
1999
+ * Return array of skills this extension provides
2000
+ * Each skill must have a name, description, location, and dirPath
2001
+ * Skills are loaded when the agent has Skills Tools enabled
2002
+ * @param context - Extension context
2003
+ */
2004
+ getSkills?(context: ExtensionContext): SkillDefinition[];
1955
2005
  /**
1956
2006
  * Called when a user updates an extension-provided agent profile
1957
2007
  * Extension should persist the updated profile and return it from future getAgents() calls
@@ -2092,6 +2142,12 @@ export interface Extension {
2092
2142
  * @returns void or partial event to modify reminders content
2093
2143
  */
2094
2144
  onImportantReminders?(event: ImportantRemindersEvent, context: ExtensionContext): Promise<void | Partial<ImportantRemindersEvent>>;
2145
+ /**
2146
+ * Called when a response is interrupted (e.g., user clicks Stop)
2147
+ * Set event.blocked = true to skip the default interrupt cleanup — the extension handles cancellation itself
2148
+ * @returns void or partial event to modify interrupt behavior
2149
+ */
2150
+ onInterrupted?(event: InterruptedEvent, context: ExtensionContext): Promise<void | Partial<InterruptedEvent>>;
2095
2151
  /**
2096
2152
  * Called when a tool requires approval
2097
2153
  * Set event.blocked = true to prevent execution
@@ -2186,6 +2242,18 @@ export interface Extension {
2186
2242
  * @returns void or partial event to modify responses
2187
2243
  */
2188
2244
  onAiderPromptFinished?(event: AiderPromptFinishedEvent, context: ExtensionContext): Promise<void | Partial<AiderPromptFinishedEvent>>;
2245
+ /**
2246
+ * Called before changes are committed
2247
+ * Modify event.message and event.amend to change the commit message or amend flag
2248
+ * Set event.blocked = true to prevent the commit
2249
+ * @returns void or partial event to modify commit parameters
2250
+ */
2251
+ onBeforeCommit?(event: BeforeCommitEvent, context: ExtensionContext): Promise<void | Partial<BeforeCommitEvent>>;
2252
+ /**
2253
+ * Called after changes are committed
2254
+ * @returns void (read-only event)
2255
+ */
2256
+ onAfterCommit?(event: AfterCommitEvent, context: ExtensionContext): Promise<void>;
2189
2257
  }
2190
2258
 
2191
2259
  export {};
package/extensions.d.ts CHANGED
@@ -406,7 +406,6 @@ declare const ProjectSettingsSchema: z.ZodObject<{
406
406
  reasoningEffort: z.ZodOptional<z.ZodString>;
407
407
  thinkingTokens: z.ZodOptional<z.ZodString>;
408
408
  currentMode: z.ZodString;
409
- contextCompactingThreshold: z.ZodOptional<z.ZodNumber>;
410
409
  weakModelLocked: z.ZodOptional<z.ZodBoolean>;
411
410
  autoApproveLocked: z.ZodOptional<z.ZodBoolean>;
412
411
  updatedFilesGroupMode: z.ZodDefault<z.ZodEnum<{
@@ -414,6 +413,8 @@ declare const ProjectSettingsSchema: z.ZodObject<{
414
413
  flat: "flat";
415
414
  }>>;
416
415
  disabledRuleFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
416
+ contextSidebarSectionsOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
417
+ contextSidebarSectionsHidden: z.ZodDefault<z.ZodArray<z.ZodString>>;
417
418
  }, z.core.$strip>;
418
419
  export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
419
420
  export declare enum ToolApprovalState {
@@ -486,6 +487,9 @@ export interface AgentProfile {
486
487
  subagent: SubagentConfig;
487
488
  isSubagent?: boolean;
488
489
  ruleFiles?: string[];
490
+ autoCompactThresholdPercentage?: number;
491
+ autoCompactThresholdTokens?: number;
492
+ autoCompactionType?: ContextCompactionType;
489
493
  }
490
494
  declare const THEMES: readonly [
491
495
  "dark",
@@ -571,14 +575,18 @@ declare enum MemoryEmbeddingProvider {
571
575
  }
572
576
  declare enum ContextCompactionType {
573
577
  Compact = "compact",
574
- Handoff = "handoff"
578
+ Handoff = "handoff",
579
+ Smart = "smart"
575
580
  }
576
581
  export interface TaskSettings {
577
582
  smartTaskState: boolean;
578
583
  autoGenerateTaskName: boolean;
579
584
  showTaskStateActions: boolean;
580
585
  worktreeSymlinkFolders: string[];
581
- contextCompactingThreshold: number;
586
+ contextCompactingThreshold: {
587
+ percentage: number;
588
+ tokens: number;
589
+ };
582
590
  contextCompactionType: ContextCompactionType;
583
591
  taskNameModel?: string | null;
584
592
  taskStateModel?: string | null;
@@ -706,6 +714,7 @@ declare const TaskDataSchema: z.ZodObject<{
706
714
  path: z.ZodString;
707
715
  baseBranch: z.ZodOptional<z.ZodString>;
708
716
  baseCommit: z.ZodOptional<z.ZodString>;
717
+ branch: z.ZodOptional<z.ZodString>;
709
718
  prunable: z.ZodOptional<z.ZodBoolean>;
710
719
  }, z.core.$strip>>;
711
720
  workingMode: z.ZodOptional<z.ZodEnum<{
@@ -731,7 +740,7 @@ declare const TaskDataSchema: z.ZodObject<{
731
740
  reasoningEffort: z.ZodOptional<z.ZodString>;
732
741
  thinkingTokens: z.ZodOptional<z.ZodString>;
733
742
  currentMode: z.ZodOptional<z.ZodString>;
734
- contextCompactingThreshold: z.ZodOptional<z.ZodNumber>;
743
+ contextCompactingThresholdTokens: z.ZodOptional<z.ZodNumber>;
735
744
  weakModelLocked: z.ZodOptional<z.ZodBoolean>;
736
745
  handoff: z.ZodOptional<z.ZodBoolean>;
737
746
  lastAgentProviderMetadata: z.ZodOptional<z.ZodUnknown>;
@@ -786,6 +795,7 @@ export interface CustomCommand extends Command {
786
795
  template: string;
787
796
  includeContext?: boolean;
788
797
  autoApprove?: boolean;
798
+ skills?: string[];
789
799
  }
790
800
  declare enum MemoryEntryType {
791
801
  Task = "task",
@@ -800,6 +810,15 @@ export interface MemoryEntry {
800
810
  projectId?: string;
801
811
  timestamp: number;
802
812
  }
813
+ export type SkillLocation = "global" | "project" | "builtin" | "extension";
814
+ export interface SkillDefinition {
815
+ name: string;
816
+ description: string;
817
+ location: SkillLocation;
818
+ dirPath?: string;
819
+ content?: string;
820
+ activated?: boolean;
821
+ }
803
822
  export type AgentStepResult = unknown;
804
823
  export declare const AIDER_DESK_EXTENSIONS_REPO_URL = "https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/";
805
824
  export interface ResponseMessage {
@@ -945,7 +964,6 @@ export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-rig
945
964
  * - React: React object with hooks (useState, useEffect, useCallback, useMemo, useRef, etc.)
946
965
  * - task: Current TaskData
947
966
  * - projectDir: Project directory path
948
- * - api: ApplicationAPI reference
949
967
  * - mode: Current mode string
950
968
  *
951
969
  * @example
@@ -1245,6 +1263,24 @@ export interface AiderPromptStartedEvent {
1245
1263
  export interface AiderPromptFinishedEvent {
1246
1264
  responses: ResponseCompletedData[];
1247
1265
  }
1266
+ /** Event payload for interrupt events */
1267
+ export interface InterruptedEvent {
1268
+ /** Optional interrupt ID for targeting a specific subagent or conflict-resolution agent */
1269
+ interruptId?: string;
1270
+ /** Set to true by extension to skip the default interrupt cleanup */
1271
+ blocked?: boolean;
1272
+ }
1273
+ /** Event payload for before commit events */
1274
+ export interface BeforeCommitEvent {
1275
+ message: string;
1276
+ amend: boolean;
1277
+ blocked?: boolean;
1278
+ }
1279
+ /** Event payload for after commit events */
1280
+ export interface AfterCommitEvent {
1281
+ readonly message: string;
1282
+ readonly amend: boolean;
1283
+ }
1248
1284
  /** Options for asking questions to the user */
1249
1285
  export interface QuestionOptions {
1250
1286
  subject?: string;
@@ -1332,6 +1368,13 @@ export interface TaskContext {
1332
1368
  * @param mode - Optional mode to use for re-execution (defaults to current mode)
1333
1369
  * @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
1334
1370
  */
1371
+ redoUserPrompt(messageId: string, mode?: string, updatedPrompt?: string): Promise<void>;
1372
+ /**
1373
+ * Re-execute the last user prompt, optionally with a different mode or edited text.
1374
+ * Convenience method that finds the last user message and calls redoUserPrompt with its ID.
1375
+ * @param mode - Optional mode to use for re-execution (defaults to current mode)
1376
+ * @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
1377
+ */
1335
1378
  redoLastUserPrompt(mode?: string, updatedPrompt?: string): Promise<void>;
1336
1379
  /**
1337
1380
  * Send a user message to the UI for display in the task's chat.
@@ -1952,6 +1995,13 @@ export interface Extension {
1952
1995
  * Provider names can override built-in providers (user responsibility to avoid conflicts between extensions).
1953
1996
  */
1954
1997
  getProviders?(context: ExtensionContext): ProviderDefinition[];
1998
+ /**
1999
+ * Return array of skills this extension provides
2000
+ * Each skill must have a name, description, location, and dirPath
2001
+ * Skills are loaded when the agent has Skills Tools enabled
2002
+ * @param context - Extension context
2003
+ */
2004
+ getSkills?(context: ExtensionContext): SkillDefinition[];
1955
2005
  /**
1956
2006
  * Called when a user updates an extension-provided agent profile
1957
2007
  * Extension should persist the updated profile and return it from future getAgents() calls
@@ -2092,6 +2142,12 @@ export interface Extension {
2092
2142
  * @returns void or partial event to modify reminders content
2093
2143
  */
2094
2144
  onImportantReminders?(event: ImportantRemindersEvent, context: ExtensionContext): Promise<void | Partial<ImportantRemindersEvent>>;
2145
+ /**
2146
+ * Called when a response is interrupted (e.g., user clicks Stop)
2147
+ * Set event.blocked = true to skip the default interrupt cleanup — the extension handles cancellation itself
2148
+ * @returns void or partial event to modify interrupt behavior
2149
+ */
2150
+ onInterrupted?(event: InterruptedEvent, context: ExtensionContext): Promise<void | Partial<InterruptedEvent>>;
2095
2151
  /**
2096
2152
  * Called when a tool requires approval
2097
2153
  * Set event.blocked = true to prevent execution
@@ -2186,6 +2242,18 @@ export interface Extension {
2186
2242
  * @returns void or partial event to modify responses
2187
2243
  */
2188
2244
  onAiderPromptFinished?(event: AiderPromptFinishedEvent, context: ExtensionContext): Promise<void | Partial<AiderPromptFinishedEvent>>;
2245
+ /**
2246
+ * Called before changes are committed
2247
+ * Modify event.message and event.amend to change the commit message or amend flag
2248
+ * Set event.blocked = true to prevent the commit
2249
+ * @returns void or partial event to modify commit parameters
2250
+ */
2251
+ onBeforeCommit?(event: BeforeCommitEvent, context: ExtensionContext): Promise<void | Partial<BeforeCommitEvent>>;
2252
+ /**
2253
+ * Called after changes are committed
2254
+ * @returns void (read-only event)
2255
+ */
2256
+ onAfterCommit?(event: AfterCommitEvent, context: ExtensionContext): Promise<void>;
2189
2257
  }
2190
2258
 
2191
2259
  export {};
package/extensions.json CHANGED
@@ -81,12 +81,22 @@
81
81
  "type": "single",
82
82
  "capabilities": ["context"]
83
83
  },
84
+ {
85
+ "id": "external-skills",
86
+ "name": "External Skills",
87
+ "description": "Includes skill files from Cursor, Claude Code, and other external AI coding assistants",
88
+ "folder": "external-skills",
89
+ "type": "folder",
90
+ "hasDependencies": false,
91
+ "capabilities": ["context"]
92
+ },
84
93
  {
85
94
  "id": "sound-notification",
86
95
  "name": "Sound Notification",
87
- "description": "Plays a 'Jobs Done' sound when a prompt finishes",
88
- "file": "sound-notification.ts",
89
- "type": "single",
96
+ "description": "Plays sound notifications using packs from og-packs",
97
+ "folder": "sound-notification",
98
+ "type": "folder",
99
+ "hasDependencies": false,
90
100
  "capabilities": ["notifications"]
91
101
  },
92
102
  {
@@ -232,6 +242,15 @@
232
242
  "hasDependencies": false,
233
243
  "capabilities": ["metrics"]
234
244
  },
245
+ {
246
+ "id": "verifier",
247
+ "name": "Verifier",
248
+ "description": "Adds a 'Proceed & Verify' button that starts implementation with automatic review against the plan, with configurable max retries",
249
+ "folder": "verifier",
250
+ "type": "folder",
251
+ "hasDependencies": false,
252
+ "capabilities": ["workflows", "ui"]
253
+ },
235
254
  {
236
255
  "id": "bmad",
237
256
  "name": "BMAD Method",
@@ -240,6 +259,15 @@
240
259
  "type": "folder",
241
260
  "hasDependencies": true,
242
261
  "capabilities": ["modes", "ui"]
262
+ },
263
+ {
264
+ "id": "cursor-sdk",
265
+ "name": "Cursor SDK",
266
+ "description": "Integrates the Cursor SDK as a provider with cursor/ prefix, overriding the agent loop to run Cursor agents",
267
+ "folder": "cursor-sdk",
268
+ "type": "folder",
269
+ "hasDependencies": true,
270
+ "capabilities": ["providers", "agent-loop"]
243
271
  }
244
272
  ]
245
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiderdesk/extensions",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Type definitions and examples for AiderDesk extensions",
5
5
  "author": "Hotovo",
6
6
  "homepage": "https://aiderdesk.hotovo.com",