@aiderdesk/extensions 0.13.0 → 0.14.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 +49 -1
- package/extensions.d.ts +49 -1
- package/extensions.json +4 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -414,6 +414,8 @@ declare const ProjectSettingsSchema: z.ZodObject<{
|
|
|
414
414
|
flat: "flat";
|
|
415
415
|
}>>;
|
|
416
416
|
disabledRuleFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
417
|
+
contextSidebarSectionsOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
418
|
+
contextSidebarSectionsHidden: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
417
419
|
}, z.core.$strip>;
|
|
418
420
|
export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
|
|
419
421
|
export declare enum ToolApprovalState {
|
|
@@ -706,6 +708,7 @@ declare const TaskDataSchema: z.ZodObject<{
|
|
|
706
708
|
path: z.ZodString;
|
|
707
709
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
708
710
|
baseCommit: z.ZodOptional<z.ZodString>;
|
|
711
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
709
712
|
prunable: z.ZodOptional<z.ZodBoolean>;
|
|
710
713
|
}, z.core.$strip>>;
|
|
711
714
|
workingMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -800,6 +803,15 @@ export interface MemoryEntry {
|
|
|
800
803
|
projectId?: string;
|
|
801
804
|
timestamp: number;
|
|
802
805
|
}
|
|
806
|
+
export type SkillLocation = "global" | "project" | "builtin" | "extension";
|
|
807
|
+
export interface SkillDefinition {
|
|
808
|
+
name: string;
|
|
809
|
+
description: string;
|
|
810
|
+
location: SkillLocation;
|
|
811
|
+
dirPath?: string;
|
|
812
|
+
content?: string;
|
|
813
|
+
activated?: boolean;
|
|
814
|
+
}
|
|
803
815
|
export type AgentStepResult = unknown;
|
|
804
816
|
export declare const AIDER_DESK_EXTENSIONS_REPO_URL = "https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/";
|
|
805
817
|
export interface ResponseMessage {
|
|
@@ -945,7 +957,6 @@ export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-rig
|
|
|
945
957
|
* - React: React object with hooks (useState, useEffect, useCallback, useMemo, useRef, etc.)
|
|
946
958
|
* - task: Current TaskData
|
|
947
959
|
* - projectDir: Project directory path
|
|
948
|
-
* - api: ApplicationAPI reference
|
|
949
960
|
* - mode: Current mode string
|
|
950
961
|
*
|
|
951
962
|
* @example
|
|
@@ -1245,6 +1256,17 @@ export interface AiderPromptStartedEvent {
|
|
|
1245
1256
|
export interface AiderPromptFinishedEvent {
|
|
1246
1257
|
responses: ResponseCompletedData[];
|
|
1247
1258
|
}
|
|
1259
|
+
/** Event payload for before commit events */
|
|
1260
|
+
export interface BeforeCommitEvent {
|
|
1261
|
+
message: string;
|
|
1262
|
+
amend: boolean;
|
|
1263
|
+
blocked?: boolean;
|
|
1264
|
+
}
|
|
1265
|
+
/** Event payload for after commit events */
|
|
1266
|
+
export interface AfterCommitEvent {
|
|
1267
|
+
readonly message: string;
|
|
1268
|
+
readonly amend: boolean;
|
|
1269
|
+
}
|
|
1248
1270
|
/** Options for asking questions to the user */
|
|
1249
1271
|
export interface QuestionOptions {
|
|
1250
1272
|
subject?: string;
|
|
@@ -1332,6 +1354,13 @@ export interface TaskContext {
|
|
|
1332
1354
|
* @param mode - Optional mode to use for re-execution (defaults to current mode)
|
|
1333
1355
|
* @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
|
|
1334
1356
|
*/
|
|
1357
|
+
redoUserPrompt(messageId: string, mode?: string, updatedPrompt?: string): Promise<void>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Re-execute the last user prompt, optionally with a different mode or edited text.
|
|
1360
|
+
* Convenience method that finds the last user message and calls redoUserPrompt with its ID.
|
|
1361
|
+
* @param mode - Optional mode to use for re-execution (defaults to current mode)
|
|
1362
|
+
* @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
|
|
1363
|
+
*/
|
|
1335
1364
|
redoLastUserPrompt(mode?: string, updatedPrompt?: string): Promise<void>;
|
|
1336
1365
|
/**
|
|
1337
1366
|
* Send a user message to the UI for display in the task's chat.
|
|
@@ -1952,6 +1981,13 @@ export interface Extension {
|
|
|
1952
1981
|
* Provider names can override built-in providers (user responsibility to avoid conflicts between extensions).
|
|
1953
1982
|
*/
|
|
1954
1983
|
getProviders?(context: ExtensionContext): ProviderDefinition[];
|
|
1984
|
+
/**
|
|
1985
|
+
* Return array of skills this extension provides
|
|
1986
|
+
* Each skill must have a name, description, location, and dirPath
|
|
1987
|
+
* Skills are loaded when the agent has Skills Tools enabled
|
|
1988
|
+
* @param context - Extension context
|
|
1989
|
+
*/
|
|
1990
|
+
getSkills?(context: ExtensionContext): SkillDefinition[];
|
|
1955
1991
|
/**
|
|
1956
1992
|
* Called when a user updates an extension-provided agent profile
|
|
1957
1993
|
* Extension should persist the updated profile and return it from future getAgents() calls
|
|
@@ -2186,6 +2222,18 @@ export interface Extension {
|
|
|
2186
2222
|
* @returns void or partial event to modify responses
|
|
2187
2223
|
*/
|
|
2188
2224
|
onAiderPromptFinished?(event: AiderPromptFinishedEvent, context: ExtensionContext): Promise<void | Partial<AiderPromptFinishedEvent>>;
|
|
2225
|
+
/**
|
|
2226
|
+
* Called before changes are committed
|
|
2227
|
+
* Modify event.message and event.amend to change the commit message or amend flag
|
|
2228
|
+
* Set event.blocked = true to prevent the commit
|
|
2229
|
+
* @returns void or partial event to modify commit parameters
|
|
2230
|
+
*/
|
|
2231
|
+
onBeforeCommit?(event: BeforeCommitEvent, context: ExtensionContext): Promise<void | Partial<BeforeCommitEvent>>;
|
|
2232
|
+
/**
|
|
2233
|
+
* Called after changes are committed
|
|
2234
|
+
* @returns void (read-only event)
|
|
2235
|
+
*/
|
|
2236
|
+
onAfterCommit?(event: AfterCommitEvent, context: ExtensionContext): Promise<void>;
|
|
2189
2237
|
}
|
|
2190
2238
|
|
|
2191
2239
|
export {};
|
package/extensions.d.ts
CHANGED
|
@@ -414,6 +414,8 @@ declare const ProjectSettingsSchema: z.ZodObject<{
|
|
|
414
414
|
flat: "flat";
|
|
415
415
|
}>>;
|
|
416
416
|
disabledRuleFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
417
|
+
contextSidebarSectionsOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
418
|
+
contextSidebarSectionsHidden: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
417
419
|
}, z.core.$strip>;
|
|
418
420
|
export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
|
|
419
421
|
export declare enum ToolApprovalState {
|
|
@@ -706,6 +708,7 @@ declare const TaskDataSchema: z.ZodObject<{
|
|
|
706
708
|
path: z.ZodString;
|
|
707
709
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
708
710
|
baseCommit: z.ZodOptional<z.ZodString>;
|
|
711
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
709
712
|
prunable: z.ZodOptional<z.ZodBoolean>;
|
|
710
713
|
}, z.core.$strip>>;
|
|
711
714
|
workingMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -800,6 +803,15 @@ export interface MemoryEntry {
|
|
|
800
803
|
projectId?: string;
|
|
801
804
|
timestamp: number;
|
|
802
805
|
}
|
|
806
|
+
export type SkillLocation = "global" | "project" | "builtin" | "extension";
|
|
807
|
+
export interface SkillDefinition {
|
|
808
|
+
name: string;
|
|
809
|
+
description: string;
|
|
810
|
+
location: SkillLocation;
|
|
811
|
+
dirPath?: string;
|
|
812
|
+
content?: string;
|
|
813
|
+
activated?: boolean;
|
|
814
|
+
}
|
|
803
815
|
export type AgentStepResult = unknown;
|
|
804
816
|
export declare const AIDER_DESK_EXTENSIONS_REPO_URL = "https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/";
|
|
805
817
|
export interface ResponseMessage {
|
|
@@ -945,7 +957,6 @@ export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-rig
|
|
|
945
957
|
* - React: React object with hooks (useState, useEffect, useCallback, useMemo, useRef, etc.)
|
|
946
958
|
* - task: Current TaskData
|
|
947
959
|
* - projectDir: Project directory path
|
|
948
|
-
* - api: ApplicationAPI reference
|
|
949
960
|
* - mode: Current mode string
|
|
950
961
|
*
|
|
951
962
|
* @example
|
|
@@ -1245,6 +1256,17 @@ export interface AiderPromptStartedEvent {
|
|
|
1245
1256
|
export interface AiderPromptFinishedEvent {
|
|
1246
1257
|
responses: ResponseCompletedData[];
|
|
1247
1258
|
}
|
|
1259
|
+
/** Event payload for before commit events */
|
|
1260
|
+
export interface BeforeCommitEvent {
|
|
1261
|
+
message: string;
|
|
1262
|
+
amend: boolean;
|
|
1263
|
+
blocked?: boolean;
|
|
1264
|
+
}
|
|
1265
|
+
/** Event payload for after commit events */
|
|
1266
|
+
export interface AfterCommitEvent {
|
|
1267
|
+
readonly message: string;
|
|
1268
|
+
readonly amend: boolean;
|
|
1269
|
+
}
|
|
1248
1270
|
/** Options for asking questions to the user */
|
|
1249
1271
|
export interface QuestionOptions {
|
|
1250
1272
|
subject?: string;
|
|
@@ -1332,6 +1354,13 @@ export interface TaskContext {
|
|
|
1332
1354
|
* @param mode - Optional mode to use for re-execution (defaults to current mode)
|
|
1333
1355
|
* @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
|
|
1334
1356
|
*/
|
|
1357
|
+
redoUserPrompt(messageId: string, mode?: string, updatedPrompt?: string): Promise<void>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Re-execute the last user prompt, optionally with a different mode or edited text.
|
|
1360
|
+
* Convenience method that finds the last user message and calls redoUserPrompt with its ID.
|
|
1361
|
+
* @param mode - Optional mode to use for re-execution (defaults to current mode)
|
|
1362
|
+
* @param updatedPrompt - Optional new prompt text; if omitted, reuses the original prompt
|
|
1363
|
+
*/
|
|
1335
1364
|
redoLastUserPrompt(mode?: string, updatedPrompt?: string): Promise<void>;
|
|
1336
1365
|
/**
|
|
1337
1366
|
* Send a user message to the UI for display in the task's chat.
|
|
@@ -1952,6 +1981,13 @@ export interface Extension {
|
|
|
1952
1981
|
* Provider names can override built-in providers (user responsibility to avoid conflicts between extensions).
|
|
1953
1982
|
*/
|
|
1954
1983
|
getProviders?(context: ExtensionContext): ProviderDefinition[];
|
|
1984
|
+
/**
|
|
1985
|
+
* Return array of skills this extension provides
|
|
1986
|
+
* Each skill must have a name, description, location, and dirPath
|
|
1987
|
+
* Skills are loaded when the agent has Skills Tools enabled
|
|
1988
|
+
* @param context - Extension context
|
|
1989
|
+
*/
|
|
1990
|
+
getSkills?(context: ExtensionContext): SkillDefinition[];
|
|
1955
1991
|
/**
|
|
1956
1992
|
* Called when a user updates an extension-provided agent profile
|
|
1957
1993
|
* Extension should persist the updated profile and return it from future getAgents() calls
|
|
@@ -2186,6 +2222,18 @@ export interface Extension {
|
|
|
2186
2222
|
* @returns void or partial event to modify responses
|
|
2187
2223
|
*/
|
|
2188
2224
|
onAiderPromptFinished?(event: AiderPromptFinishedEvent, context: ExtensionContext): Promise<void | Partial<AiderPromptFinishedEvent>>;
|
|
2225
|
+
/**
|
|
2226
|
+
* Called before changes are committed
|
|
2227
|
+
* Modify event.message and event.amend to change the commit message or amend flag
|
|
2228
|
+
* Set event.blocked = true to prevent the commit
|
|
2229
|
+
* @returns void or partial event to modify commit parameters
|
|
2230
|
+
*/
|
|
2231
|
+
onBeforeCommit?(event: BeforeCommitEvent, context: ExtensionContext): Promise<void | Partial<BeforeCommitEvent>>;
|
|
2232
|
+
/**
|
|
2233
|
+
* Called after changes are committed
|
|
2234
|
+
* @returns void (read-only event)
|
|
2235
|
+
*/
|
|
2236
|
+
onAfterCommit?(event: AfterCommitEvent, context: ExtensionContext): Promise<void>;
|
|
2189
2237
|
}
|
|
2190
2238
|
|
|
2191
2239
|
export {};
|
package/extensions.json
CHANGED
|
@@ -84,9 +84,10 @@
|
|
|
84
84
|
{
|
|
85
85
|
"id": "sound-notification",
|
|
86
86
|
"name": "Sound Notification",
|
|
87
|
-
"description": "Plays
|
|
88
|
-
"
|
|
89
|
-
"type": "
|
|
87
|
+
"description": "Plays sound notifications using packs from og-packs",
|
|
88
|
+
"folder": "sound-notification",
|
|
89
|
+
"type": "folder",
|
|
90
|
+
"hasDependencies": false,
|
|
90
91
|
"capabilities": ["notifications"]
|
|
91
92
|
},
|
|
92
93
|
{
|