@aiderdesk/extensions 0.14.0 → 0.16.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 +31 -6
- package/extensions.d.ts +31 -6
- package/extensions.json +27 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export interface OpenAiCompatibleProvider extends LlmProviderBase {
|
|
|
124
124
|
apiKey: string;
|
|
125
125
|
baseUrl?: string;
|
|
126
126
|
reasoningEffort?: ReasoningEffort;
|
|
127
|
+
trackTokenUsage?: boolean;
|
|
127
128
|
}
|
|
128
129
|
export interface LitellmProvider extends LlmProviderBase {
|
|
129
130
|
name: "litellm";
|
|
@@ -406,7 +407,6 @@ declare const ProjectSettingsSchema: z.ZodObject<{
|
|
|
406
407
|
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
407
408
|
thinkingTokens: z.ZodOptional<z.ZodString>;
|
|
408
409
|
currentMode: z.ZodString;
|
|
409
|
-
contextCompactingThreshold: z.ZodOptional<z.ZodNumber>;
|
|
410
410
|
weakModelLocked: z.ZodOptional<z.ZodBoolean>;
|
|
411
411
|
autoApproveLocked: z.ZodOptional<z.ZodBoolean>;
|
|
412
412
|
updatedFilesGroupMode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -488,6 +488,9 @@ export interface AgentProfile {
|
|
|
488
488
|
subagent: SubagentConfig;
|
|
489
489
|
isSubagent?: boolean;
|
|
490
490
|
ruleFiles?: string[];
|
|
491
|
+
autoCompactThresholdPercentage?: number;
|
|
492
|
+
autoCompactThresholdTokens?: number;
|
|
493
|
+
autoCompactionType?: ContextCompactionType;
|
|
491
494
|
}
|
|
492
495
|
declare const THEMES: readonly [
|
|
493
496
|
"dark",
|
|
@@ -573,14 +576,18 @@ declare enum MemoryEmbeddingProvider {
|
|
|
573
576
|
}
|
|
574
577
|
declare enum ContextCompactionType {
|
|
575
578
|
Compact = "compact",
|
|
576
|
-
Handoff = "handoff"
|
|
579
|
+
Handoff = "handoff",
|
|
580
|
+
Smart = "smart"
|
|
577
581
|
}
|
|
578
582
|
export interface TaskSettings {
|
|
579
583
|
smartTaskState: boolean;
|
|
580
584
|
autoGenerateTaskName: boolean;
|
|
581
585
|
showTaskStateActions: boolean;
|
|
582
586
|
worktreeSymlinkFolders: string[];
|
|
583
|
-
contextCompactingThreshold:
|
|
587
|
+
contextCompactingThreshold: {
|
|
588
|
+
percentage: number;
|
|
589
|
+
tokens: number;
|
|
590
|
+
};
|
|
584
591
|
contextCompactionType: ContextCompactionType;
|
|
585
592
|
taskNameModel?: string | null;
|
|
586
593
|
taskStateModel?: string | null;
|
|
@@ -734,7 +741,7 @@ declare const TaskDataSchema: z.ZodObject<{
|
|
|
734
741
|
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
735
742
|
thinkingTokens: z.ZodOptional<z.ZodString>;
|
|
736
743
|
currentMode: z.ZodOptional<z.ZodString>;
|
|
737
|
-
|
|
744
|
+
contextCompactingThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
738
745
|
weakModelLocked: z.ZodOptional<z.ZodBoolean>;
|
|
739
746
|
handoff: z.ZodOptional<z.ZodBoolean>;
|
|
740
747
|
lastAgentProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -789,6 +796,7 @@ export interface CustomCommand extends Command {
|
|
|
789
796
|
template: string;
|
|
790
797
|
includeContext?: boolean;
|
|
791
798
|
autoApprove?: boolean;
|
|
799
|
+
skills?: string[];
|
|
792
800
|
}
|
|
793
801
|
declare enum MemoryEntryType {
|
|
794
802
|
Task = "task",
|
|
@@ -1154,19 +1162,22 @@ export interface OptimizeMessagesEvent {
|
|
|
1154
1162
|
}
|
|
1155
1163
|
/** Event payload for important reminders events */
|
|
1156
1164
|
export interface ImportantRemindersEvent {
|
|
1165
|
+
/** @deprecated Use `agentProfile` instead. Will be removed in a future version. */
|
|
1157
1166
|
readonly profile: AgentProfile;
|
|
1167
|
+
readonly agentProfile: AgentProfile;
|
|
1158
1168
|
remindersContent: string;
|
|
1159
1169
|
}
|
|
1160
1170
|
/** Event payload for tool approval events */
|
|
1161
1171
|
export interface ToolApprovalEvent {
|
|
1162
1172
|
readonly toolName: string;
|
|
1163
1173
|
readonly input: Record<string, unknown> | undefined;
|
|
1164
|
-
blocked?: boolean;
|
|
1174
|
+
blocked?: boolean | string;
|
|
1165
1175
|
allowed?: boolean;
|
|
1166
1176
|
}
|
|
1167
1177
|
/** Event payload for tool called events */
|
|
1168
1178
|
export interface ToolCalledEvent {
|
|
1169
1179
|
readonly toolName: string;
|
|
1180
|
+
readonly agentProfile: AgentProfile;
|
|
1170
1181
|
readonly abortSignal?: AbortSignal;
|
|
1171
1182
|
input: Record<string, unknown> | undefined;
|
|
1172
1183
|
output?: unknown;
|
|
@@ -1174,6 +1185,7 @@ export interface ToolCalledEvent {
|
|
|
1174
1185
|
/** Event payload for tool finished events */
|
|
1175
1186
|
export interface ToolFinishedEvent {
|
|
1176
1187
|
readonly toolName: string;
|
|
1188
|
+
readonly agentProfile: AgentProfile;
|
|
1177
1189
|
readonly input: Record<string, unknown> | undefined;
|
|
1178
1190
|
output: unknown;
|
|
1179
1191
|
}
|
|
@@ -1256,6 +1268,13 @@ export interface AiderPromptStartedEvent {
|
|
|
1256
1268
|
export interface AiderPromptFinishedEvent {
|
|
1257
1269
|
responses: ResponseCompletedData[];
|
|
1258
1270
|
}
|
|
1271
|
+
/** Event payload for interrupt events */
|
|
1272
|
+
export interface InterruptedEvent {
|
|
1273
|
+
/** Optional interrupt ID for targeting a specific subagent or conflict-resolution agent */
|
|
1274
|
+
interruptId?: string;
|
|
1275
|
+
/** Set to true by extension to skip the default interrupt cleanup */
|
|
1276
|
+
blocked?: boolean;
|
|
1277
|
+
}
|
|
1259
1278
|
/** Event payload for before commit events */
|
|
1260
1279
|
export interface BeforeCommitEvent {
|
|
1261
1280
|
message: string;
|
|
@@ -2128,9 +2147,15 @@ export interface Extension {
|
|
|
2128
2147
|
* @returns void or partial event to modify reminders content
|
|
2129
2148
|
*/
|
|
2130
2149
|
onImportantReminders?(event: ImportantRemindersEvent, context: ExtensionContext): Promise<void | Partial<ImportantRemindersEvent>>;
|
|
2150
|
+
/**
|
|
2151
|
+
* Called when a response is interrupted (e.g., user clicks Stop)
|
|
2152
|
+
* Set event.blocked = true to skip the default interrupt cleanup — the extension handles cancellation itself
|
|
2153
|
+
* @returns void or partial event to modify interrupt behavior
|
|
2154
|
+
*/
|
|
2155
|
+
onInterrupted?(event: InterruptedEvent, context: ExtensionContext): Promise<void | Partial<InterruptedEvent>>;
|
|
2131
2156
|
/**
|
|
2132
2157
|
* Called when a tool requires approval
|
|
2133
|
-
* Set event.blocked = true to prevent execution
|
|
2158
|
+
* Set event.blocked = true to prevent execution, or set to a string to block with a reason
|
|
2134
2159
|
* @returns void or partial event to modify approval behavior
|
|
2135
2160
|
*/
|
|
2136
2161
|
onToolApproval?(event: ToolApprovalEvent, context: ExtensionContext): Promise<void | Partial<ToolApprovalEvent>>;
|
package/extensions.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export interface OpenAiCompatibleProvider extends LlmProviderBase {
|
|
|
124
124
|
apiKey: string;
|
|
125
125
|
baseUrl?: string;
|
|
126
126
|
reasoningEffort?: ReasoningEffort;
|
|
127
|
+
trackTokenUsage?: boolean;
|
|
127
128
|
}
|
|
128
129
|
export interface LitellmProvider extends LlmProviderBase {
|
|
129
130
|
name: "litellm";
|
|
@@ -406,7 +407,6 @@ declare const ProjectSettingsSchema: z.ZodObject<{
|
|
|
406
407
|
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
407
408
|
thinkingTokens: z.ZodOptional<z.ZodString>;
|
|
408
409
|
currentMode: z.ZodString;
|
|
409
|
-
contextCompactingThreshold: z.ZodOptional<z.ZodNumber>;
|
|
410
410
|
weakModelLocked: z.ZodOptional<z.ZodBoolean>;
|
|
411
411
|
autoApproveLocked: z.ZodOptional<z.ZodBoolean>;
|
|
412
412
|
updatedFilesGroupMode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -488,6 +488,9 @@ export interface AgentProfile {
|
|
|
488
488
|
subagent: SubagentConfig;
|
|
489
489
|
isSubagent?: boolean;
|
|
490
490
|
ruleFiles?: string[];
|
|
491
|
+
autoCompactThresholdPercentage?: number;
|
|
492
|
+
autoCompactThresholdTokens?: number;
|
|
493
|
+
autoCompactionType?: ContextCompactionType;
|
|
491
494
|
}
|
|
492
495
|
declare const THEMES: readonly [
|
|
493
496
|
"dark",
|
|
@@ -573,14 +576,18 @@ declare enum MemoryEmbeddingProvider {
|
|
|
573
576
|
}
|
|
574
577
|
declare enum ContextCompactionType {
|
|
575
578
|
Compact = "compact",
|
|
576
|
-
Handoff = "handoff"
|
|
579
|
+
Handoff = "handoff",
|
|
580
|
+
Smart = "smart"
|
|
577
581
|
}
|
|
578
582
|
export interface TaskSettings {
|
|
579
583
|
smartTaskState: boolean;
|
|
580
584
|
autoGenerateTaskName: boolean;
|
|
581
585
|
showTaskStateActions: boolean;
|
|
582
586
|
worktreeSymlinkFolders: string[];
|
|
583
|
-
contextCompactingThreshold:
|
|
587
|
+
contextCompactingThreshold: {
|
|
588
|
+
percentage: number;
|
|
589
|
+
tokens: number;
|
|
590
|
+
};
|
|
584
591
|
contextCompactionType: ContextCompactionType;
|
|
585
592
|
taskNameModel?: string | null;
|
|
586
593
|
taskStateModel?: string | null;
|
|
@@ -734,7 +741,7 @@ declare const TaskDataSchema: z.ZodObject<{
|
|
|
734
741
|
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
735
742
|
thinkingTokens: z.ZodOptional<z.ZodString>;
|
|
736
743
|
currentMode: z.ZodOptional<z.ZodString>;
|
|
737
|
-
|
|
744
|
+
contextCompactingThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
738
745
|
weakModelLocked: z.ZodOptional<z.ZodBoolean>;
|
|
739
746
|
handoff: z.ZodOptional<z.ZodBoolean>;
|
|
740
747
|
lastAgentProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -789,6 +796,7 @@ export interface CustomCommand extends Command {
|
|
|
789
796
|
template: string;
|
|
790
797
|
includeContext?: boolean;
|
|
791
798
|
autoApprove?: boolean;
|
|
799
|
+
skills?: string[];
|
|
792
800
|
}
|
|
793
801
|
declare enum MemoryEntryType {
|
|
794
802
|
Task = "task",
|
|
@@ -1154,19 +1162,22 @@ export interface OptimizeMessagesEvent {
|
|
|
1154
1162
|
}
|
|
1155
1163
|
/** Event payload for important reminders events */
|
|
1156
1164
|
export interface ImportantRemindersEvent {
|
|
1165
|
+
/** @deprecated Use `agentProfile` instead. Will be removed in a future version. */
|
|
1157
1166
|
readonly profile: AgentProfile;
|
|
1167
|
+
readonly agentProfile: AgentProfile;
|
|
1158
1168
|
remindersContent: string;
|
|
1159
1169
|
}
|
|
1160
1170
|
/** Event payload for tool approval events */
|
|
1161
1171
|
export interface ToolApprovalEvent {
|
|
1162
1172
|
readonly toolName: string;
|
|
1163
1173
|
readonly input: Record<string, unknown> | undefined;
|
|
1164
|
-
blocked?: boolean;
|
|
1174
|
+
blocked?: boolean | string;
|
|
1165
1175
|
allowed?: boolean;
|
|
1166
1176
|
}
|
|
1167
1177
|
/** Event payload for tool called events */
|
|
1168
1178
|
export interface ToolCalledEvent {
|
|
1169
1179
|
readonly toolName: string;
|
|
1180
|
+
readonly agentProfile: AgentProfile;
|
|
1170
1181
|
readonly abortSignal?: AbortSignal;
|
|
1171
1182
|
input: Record<string, unknown> | undefined;
|
|
1172
1183
|
output?: unknown;
|
|
@@ -1174,6 +1185,7 @@ export interface ToolCalledEvent {
|
|
|
1174
1185
|
/** Event payload for tool finished events */
|
|
1175
1186
|
export interface ToolFinishedEvent {
|
|
1176
1187
|
readonly toolName: string;
|
|
1188
|
+
readonly agentProfile: AgentProfile;
|
|
1177
1189
|
readonly input: Record<string, unknown> | undefined;
|
|
1178
1190
|
output: unknown;
|
|
1179
1191
|
}
|
|
@@ -1256,6 +1268,13 @@ export interface AiderPromptStartedEvent {
|
|
|
1256
1268
|
export interface AiderPromptFinishedEvent {
|
|
1257
1269
|
responses: ResponseCompletedData[];
|
|
1258
1270
|
}
|
|
1271
|
+
/** Event payload for interrupt events */
|
|
1272
|
+
export interface InterruptedEvent {
|
|
1273
|
+
/** Optional interrupt ID for targeting a specific subagent or conflict-resolution agent */
|
|
1274
|
+
interruptId?: string;
|
|
1275
|
+
/** Set to true by extension to skip the default interrupt cleanup */
|
|
1276
|
+
blocked?: boolean;
|
|
1277
|
+
}
|
|
1259
1278
|
/** Event payload for before commit events */
|
|
1260
1279
|
export interface BeforeCommitEvent {
|
|
1261
1280
|
message: string;
|
|
@@ -2128,9 +2147,15 @@ export interface Extension {
|
|
|
2128
2147
|
* @returns void or partial event to modify reminders content
|
|
2129
2148
|
*/
|
|
2130
2149
|
onImportantReminders?(event: ImportantRemindersEvent, context: ExtensionContext): Promise<void | Partial<ImportantRemindersEvent>>;
|
|
2150
|
+
/**
|
|
2151
|
+
* Called when a response is interrupted (e.g., user clicks Stop)
|
|
2152
|
+
* Set event.blocked = true to skip the default interrupt cleanup — the extension handles cancellation itself
|
|
2153
|
+
* @returns void or partial event to modify interrupt behavior
|
|
2154
|
+
*/
|
|
2155
|
+
onInterrupted?(event: InterruptedEvent, context: ExtensionContext): Promise<void | Partial<InterruptedEvent>>;
|
|
2131
2156
|
/**
|
|
2132
2157
|
* Called when a tool requires approval
|
|
2133
|
-
* Set event.blocked = true to prevent execution
|
|
2158
|
+
* Set event.blocked = true to prevent execution, or set to a string to block with a reason
|
|
2134
2159
|
* @returns void or partial event to modify approval behavior
|
|
2135
2160
|
*/
|
|
2136
2161
|
onToolApproval?(event: ToolApprovalEvent, context: ExtensionContext): Promise<void | Partial<ToolApprovalEvent>>;
|
package/extensions.json
CHANGED
|
@@ -81,6 +81,15 @@
|
|
|
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",
|
|
@@ -233,6 +242,15 @@
|
|
|
233
242
|
"hasDependencies": false,
|
|
234
243
|
"capabilities": ["metrics"]
|
|
235
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
|
+
},
|
|
236
254
|
{
|
|
237
255
|
"id": "bmad",
|
|
238
256
|
"name": "BMAD Method",
|
|
@@ -241,6 +259,15 @@
|
|
|
241
259
|
"type": "folder",
|
|
242
260
|
"hasDependencies": true,
|
|
243
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"]
|
|
244
271
|
}
|
|
245
272
|
]
|
|
246
273
|
}
|