@aiderdesk/extensions 0.5.0 → 0.6.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 +16 -4
- package/extensions.d.ts +16 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ export interface ContextFile {
|
|
|
285
285
|
readOnly?: boolean;
|
|
286
286
|
source?: "global-rule" | "project-rule" | "agent-rule";
|
|
287
287
|
}
|
|
288
|
-
declare enum ContextMemoryMode {
|
|
288
|
+
export declare enum ContextMemoryMode {
|
|
289
289
|
Off = "off",
|
|
290
290
|
FullContext = "full-context",
|
|
291
291
|
LastMessage = "last-message"
|
|
@@ -343,6 +343,8 @@ export interface UpdatedFile {
|
|
|
343
343
|
additions: number;
|
|
344
344
|
deletions: number;
|
|
345
345
|
diff?: string;
|
|
346
|
+
commitHash?: string;
|
|
347
|
+
commitMessage?: string;
|
|
346
348
|
}
|
|
347
349
|
export interface CommandsData {
|
|
348
350
|
baseDir: string;
|
|
@@ -391,7 +393,7 @@ declare const ProjectSettingsSchema: z.ZodObject<{
|
|
|
391
393
|
autoApproveLocked: z.ZodOptional<z.ZodBoolean>;
|
|
392
394
|
}, z.core.$strip>;
|
|
393
395
|
export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
|
|
394
|
-
declare enum ToolApprovalState {
|
|
396
|
+
export declare enum ToolApprovalState {
|
|
395
397
|
Always = "always",
|
|
396
398
|
Never = "never",
|
|
397
399
|
Ask = "ask"
|
|
@@ -417,7 +419,7 @@ export interface PromptBehavior {
|
|
|
417
419
|
};
|
|
418
420
|
useVimBindings: boolean;
|
|
419
421
|
}
|
|
420
|
-
declare enum InvocationMode {
|
|
422
|
+
export declare enum InvocationMode {
|
|
421
423
|
OnDemand = "on-demand",
|
|
422
424
|
Automatic = "automatic"
|
|
423
425
|
}
|
|
@@ -695,6 +697,8 @@ export interface CreateTaskParams {
|
|
|
695
697
|
sendEvent?: boolean;
|
|
696
698
|
provider?: string;
|
|
697
699
|
model?: string;
|
|
700
|
+
mode?: Mode;
|
|
701
|
+
addInitialContextFiles?: boolean;
|
|
698
702
|
}
|
|
699
703
|
export interface TodoItem {
|
|
700
704
|
name: string;
|
|
@@ -774,6 +778,14 @@ export interface ToolResult {
|
|
|
774
778
|
/** Mark result as error */
|
|
775
779
|
isError?: boolean;
|
|
776
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* Definition of a tool that is part of the tool set. This tool can be executed internally by extension, but it won't be propagated to UI.
|
|
783
|
+
*
|
|
784
|
+
* @execute - Optional execute function. If not provided, the tool has other unsupported means of execution.
|
|
785
|
+
*/
|
|
786
|
+
export interface Tool {
|
|
787
|
+
execute?: (input: Record<string, unknown>) => Promise<unknown>;
|
|
788
|
+
}
|
|
777
789
|
/**
|
|
778
790
|
* Definition of a tool that can be registered by an extension
|
|
779
791
|
*
|
|
@@ -800,7 +812,7 @@ export interface ToolDefinition<TSchema extends z.ZodType = z.ZodType<Record<str
|
|
|
800
812
|
/** Zod schema for parameter validation */
|
|
801
813
|
inputSchema: TSchema;
|
|
802
814
|
/** Execute function with type-safe args */
|
|
803
|
-
execute: (input: z.infer<TSchema>, signal: AbortSignal | undefined, context: ExtensionContext) => Promise<unknown>;
|
|
815
|
+
execute: (input: z.infer<TSchema>, signal: AbortSignal | undefined, context: ExtensionContext, allTools: Record<string, Tool>) => Promise<unknown>;
|
|
804
816
|
}
|
|
805
817
|
/** UI element types */
|
|
806
818
|
export type UIElementType = "action-button" | "status-indicator" | "badge";
|
package/extensions.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ export interface ContextFile {
|
|
|
285
285
|
readOnly?: boolean;
|
|
286
286
|
source?: "global-rule" | "project-rule" | "agent-rule";
|
|
287
287
|
}
|
|
288
|
-
declare enum ContextMemoryMode {
|
|
288
|
+
export declare enum ContextMemoryMode {
|
|
289
289
|
Off = "off",
|
|
290
290
|
FullContext = "full-context",
|
|
291
291
|
LastMessage = "last-message"
|
|
@@ -343,6 +343,8 @@ export interface UpdatedFile {
|
|
|
343
343
|
additions: number;
|
|
344
344
|
deletions: number;
|
|
345
345
|
diff?: string;
|
|
346
|
+
commitHash?: string;
|
|
347
|
+
commitMessage?: string;
|
|
346
348
|
}
|
|
347
349
|
export interface CommandsData {
|
|
348
350
|
baseDir: string;
|
|
@@ -391,7 +393,7 @@ declare const ProjectSettingsSchema: z.ZodObject<{
|
|
|
391
393
|
autoApproveLocked: z.ZodOptional<z.ZodBoolean>;
|
|
392
394
|
}, z.core.$strip>;
|
|
393
395
|
export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
|
|
394
|
-
declare enum ToolApprovalState {
|
|
396
|
+
export declare enum ToolApprovalState {
|
|
395
397
|
Always = "always",
|
|
396
398
|
Never = "never",
|
|
397
399
|
Ask = "ask"
|
|
@@ -417,7 +419,7 @@ export interface PromptBehavior {
|
|
|
417
419
|
};
|
|
418
420
|
useVimBindings: boolean;
|
|
419
421
|
}
|
|
420
|
-
declare enum InvocationMode {
|
|
422
|
+
export declare enum InvocationMode {
|
|
421
423
|
OnDemand = "on-demand",
|
|
422
424
|
Automatic = "automatic"
|
|
423
425
|
}
|
|
@@ -695,6 +697,8 @@ export interface CreateTaskParams {
|
|
|
695
697
|
sendEvent?: boolean;
|
|
696
698
|
provider?: string;
|
|
697
699
|
model?: string;
|
|
700
|
+
mode?: Mode;
|
|
701
|
+
addInitialContextFiles?: boolean;
|
|
698
702
|
}
|
|
699
703
|
export interface TodoItem {
|
|
700
704
|
name: string;
|
|
@@ -774,6 +778,14 @@ export interface ToolResult {
|
|
|
774
778
|
/** Mark result as error */
|
|
775
779
|
isError?: boolean;
|
|
776
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* Definition of a tool that is part of the tool set. This tool can be executed internally by extension, but it won't be propagated to UI.
|
|
783
|
+
*
|
|
784
|
+
* @execute - Optional execute function. If not provided, the tool has other unsupported means of execution.
|
|
785
|
+
*/
|
|
786
|
+
export interface Tool {
|
|
787
|
+
execute?: (input: Record<string, unknown>) => Promise<unknown>;
|
|
788
|
+
}
|
|
777
789
|
/**
|
|
778
790
|
* Definition of a tool that can be registered by an extension
|
|
779
791
|
*
|
|
@@ -800,7 +812,7 @@ export interface ToolDefinition<TSchema extends z.ZodType = z.ZodType<Record<str
|
|
|
800
812
|
/** Zod schema for parameter validation */
|
|
801
813
|
inputSchema: TSchema;
|
|
802
814
|
/** Execute function with type-safe args */
|
|
803
|
-
execute: (input: z.infer<TSchema>, signal: AbortSignal | undefined, context: ExtensionContext) => Promise<unknown>;
|
|
815
|
+
execute: (input: z.infer<TSchema>, signal: AbortSignal | undefined, context: ExtensionContext, allTools: Record<string, Tool>) => Promise<unknown>;
|
|
804
816
|
}
|
|
805
817
|
/** UI element types */
|
|
806
818
|
export type UIElementType = "action-button" | "status-indicator" | "badge";
|