@aiderdesk/extensions 0.5.1 → 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 CHANGED
@@ -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;
@@ -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
@@ -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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiderdesk/extensions",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Type definitions and examples for AiderDesk extensions",
5
5
  "author": "Hotovo",
6
6
  "homepage": "https://aiderdesk.hotovo.com",