@aiderdesk/extensions 0.17.0 → 0.18.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 +29 -1
- package/extensions.d.ts +29 -1
- package/extensions.json +17 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -402,6 +402,11 @@ export interface QueuedPromptData {
|
|
|
402
402
|
mode: Mode;
|
|
403
403
|
timestamp: number;
|
|
404
404
|
}
|
|
405
|
+
export declare enum OS {
|
|
406
|
+
Windows = "windows",
|
|
407
|
+
Linux = "linux",
|
|
408
|
+
MacOS = "macos"
|
|
409
|
+
}
|
|
405
410
|
declare const ProjectSettingsSchema: z.ZodObject<{
|
|
406
411
|
mainModel: z.ZodString;
|
|
407
412
|
weakModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -864,6 +869,8 @@ export interface ExtensionMetadata {
|
|
|
864
869
|
capabilities?: string[];
|
|
865
870
|
/** Optional URL to an icon image for the extension */
|
|
866
871
|
iconUrl?: string;
|
|
872
|
+
/** Optional list of supported operating systems. If undefined, all OSes are supported. */
|
|
873
|
+
supportedOS?: OS[];
|
|
867
874
|
}
|
|
868
875
|
/**
|
|
869
876
|
* Result returned by tool execution
|
|
@@ -974,7 +981,7 @@ export interface ProviderDefinition {
|
|
|
974
981
|
headers?: Record<string, string>;
|
|
975
982
|
}
|
|
976
983
|
/** Placement locations for extension UI components */
|
|
977
|
-
export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page";
|
|
984
|
+
export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "tasks-sidebar-actions-left" | "tasks-sidebar-actions-right" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page";
|
|
978
985
|
/**
|
|
979
986
|
* Definition of a React UI component that can be registered by an extension.
|
|
980
987
|
* The component is defined as a JSX string and rendered using string-to-react-component.
|
|
@@ -1035,6 +1042,7 @@ export interface UIComponents {
|
|
|
1035
1042
|
Tooltip: UIComponent;
|
|
1036
1043
|
LoadingOverlay: UIComponent;
|
|
1037
1044
|
ConfirmDialog: UIComponent;
|
|
1045
|
+
ModalOverlayLayout: UIComponent;
|
|
1038
1046
|
}
|
|
1039
1047
|
export interface UIComponentProps {
|
|
1040
1048
|
projectDir?: string;
|
|
@@ -1044,6 +1052,8 @@ export interface UIComponentProps {
|
|
|
1044
1052
|
providers: ProviderProfile[];
|
|
1045
1053
|
ui: UIComponents;
|
|
1046
1054
|
icons: Record<string, unknown>;
|
|
1055
|
+
libraries: Record<string, Record<string, unknown>>;
|
|
1056
|
+
activateTask?: (taskId: string) => void;
|
|
1047
1057
|
}
|
|
1048
1058
|
/**
|
|
1049
1059
|
* Definition of a command that can be registered by an extension
|
|
@@ -1194,6 +1204,7 @@ export interface ToolApprovalEvent {
|
|
|
1194
1204
|
}
|
|
1195
1205
|
/** Event payload for tool called events */
|
|
1196
1206
|
export interface ToolCalledEvent {
|
|
1207
|
+
readonly toolCallId: string;
|
|
1197
1208
|
readonly toolName: string;
|
|
1198
1209
|
readonly agentProfile: AgentProfile;
|
|
1199
1210
|
readonly abortSignal?: AbortSignal;
|
|
@@ -1202,6 +1213,7 @@ export interface ToolCalledEvent {
|
|
|
1202
1213
|
}
|
|
1203
1214
|
/** Event payload for tool finished events */
|
|
1204
1215
|
export interface ToolFinishedEvent {
|
|
1216
|
+
readonly toolCallId: string;
|
|
1205
1217
|
readonly toolName: string;
|
|
1206
1218
|
readonly agentProfile: AgentProfile;
|
|
1207
1219
|
readonly input: Record<string, unknown> | undefined;
|
|
@@ -2056,6 +2068,22 @@ export interface Extension {
|
|
|
2056
2068
|
* Called when extension is loaded and when components need to be refreshed
|
|
2057
2069
|
*/
|
|
2058
2070
|
getUIComponents?(context: ExtensionContext): UIComponentDefinition[];
|
|
2071
|
+
/**
|
|
2072
|
+
* Return list of npm packages that this extension's UI components need.
|
|
2073
|
+
* Libraries are resolved via esm.sh and cached to disk for offline reuse.
|
|
2074
|
+
* Resolved libraries are passed to UI components as `props.libraries.<key>`.
|
|
2075
|
+
*
|
|
2076
|
+
* @example
|
|
2077
|
+
* ```typescript
|
|
2078
|
+
* getUIComponentsLibraries(): Record<string, string> {
|
|
2079
|
+
* return {
|
|
2080
|
+
* kanban: 'react-kanban-kit@^1.0.0',
|
|
2081
|
+
* lodash: 'lodash@^4.17.0',
|
|
2082
|
+
* };
|
|
2083
|
+
* }
|
|
2084
|
+
* ```
|
|
2085
|
+
*/
|
|
2086
|
+
getUIComponentsLibraries?(): Record<string, string>;
|
|
2059
2087
|
/**
|
|
2060
2088
|
* Return data for a specific UI component
|
|
2061
2089
|
* Called when the component is mounted or when UI refresh is triggered
|
package/extensions.d.ts
CHANGED
|
@@ -402,6 +402,11 @@ export interface QueuedPromptData {
|
|
|
402
402
|
mode: Mode;
|
|
403
403
|
timestamp: number;
|
|
404
404
|
}
|
|
405
|
+
export declare enum OS {
|
|
406
|
+
Windows = "windows",
|
|
407
|
+
Linux = "linux",
|
|
408
|
+
MacOS = "macos"
|
|
409
|
+
}
|
|
405
410
|
declare const ProjectSettingsSchema: z.ZodObject<{
|
|
406
411
|
mainModel: z.ZodString;
|
|
407
412
|
weakModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -864,6 +869,8 @@ export interface ExtensionMetadata {
|
|
|
864
869
|
capabilities?: string[];
|
|
865
870
|
/** Optional URL to an icon image for the extension */
|
|
866
871
|
iconUrl?: string;
|
|
872
|
+
/** Optional list of supported operating systems. If undefined, all OSes are supported. */
|
|
873
|
+
supportedOS?: OS[];
|
|
867
874
|
}
|
|
868
875
|
/**
|
|
869
876
|
* Result returned by tool execution
|
|
@@ -974,7 +981,7 @@ export interface ProviderDefinition {
|
|
|
974
981
|
headers?: Record<string, string>;
|
|
975
982
|
}
|
|
976
983
|
/** Placement locations for extension UI components */
|
|
977
|
-
export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page";
|
|
984
|
+
export type UIComponentPlacement = "task-status-bar-left" | "task-status-bar-right" | "task-usage-info-bottom" | "task-messages-top" | "task-messages-bottom" | "header-left" | "header-right" | "task-input-above" | "task-input-toolbar-left" | "task-input-toolbar-right" | "tasks-sidebar-header" | "tasks-sidebar-bottom" | "tasks-sidebar-actions-left" | "tasks-sidebar-actions-right" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "welcome-page";
|
|
978
985
|
/**
|
|
979
986
|
* Definition of a React UI component that can be registered by an extension.
|
|
980
987
|
* The component is defined as a JSX string and rendered using string-to-react-component.
|
|
@@ -1035,6 +1042,7 @@ export interface UIComponents {
|
|
|
1035
1042
|
Tooltip: UIComponent;
|
|
1036
1043
|
LoadingOverlay: UIComponent;
|
|
1037
1044
|
ConfirmDialog: UIComponent;
|
|
1045
|
+
ModalOverlayLayout: UIComponent;
|
|
1038
1046
|
}
|
|
1039
1047
|
export interface UIComponentProps {
|
|
1040
1048
|
projectDir?: string;
|
|
@@ -1044,6 +1052,8 @@ export interface UIComponentProps {
|
|
|
1044
1052
|
providers: ProviderProfile[];
|
|
1045
1053
|
ui: UIComponents;
|
|
1046
1054
|
icons: Record<string, unknown>;
|
|
1055
|
+
libraries: Record<string, Record<string, unknown>>;
|
|
1056
|
+
activateTask?: (taskId: string) => void;
|
|
1047
1057
|
}
|
|
1048
1058
|
/**
|
|
1049
1059
|
* Definition of a command that can be registered by an extension
|
|
@@ -1194,6 +1204,7 @@ export interface ToolApprovalEvent {
|
|
|
1194
1204
|
}
|
|
1195
1205
|
/** Event payload for tool called events */
|
|
1196
1206
|
export interface ToolCalledEvent {
|
|
1207
|
+
readonly toolCallId: string;
|
|
1197
1208
|
readonly toolName: string;
|
|
1198
1209
|
readonly agentProfile: AgentProfile;
|
|
1199
1210
|
readonly abortSignal?: AbortSignal;
|
|
@@ -1202,6 +1213,7 @@ export interface ToolCalledEvent {
|
|
|
1202
1213
|
}
|
|
1203
1214
|
/** Event payload for tool finished events */
|
|
1204
1215
|
export interface ToolFinishedEvent {
|
|
1216
|
+
readonly toolCallId: string;
|
|
1205
1217
|
readonly toolName: string;
|
|
1206
1218
|
readonly agentProfile: AgentProfile;
|
|
1207
1219
|
readonly input: Record<string, unknown> | undefined;
|
|
@@ -2056,6 +2068,22 @@ export interface Extension {
|
|
|
2056
2068
|
* Called when extension is loaded and when components need to be refreshed
|
|
2057
2069
|
*/
|
|
2058
2070
|
getUIComponents?(context: ExtensionContext): UIComponentDefinition[];
|
|
2071
|
+
/**
|
|
2072
|
+
* Return list of npm packages that this extension's UI components need.
|
|
2073
|
+
* Libraries are resolved via esm.sh and cached to disk for offline reuse.
|
|
2074
|
+
* Resolved libraries are passed to UI components as `props.libraries.<key>`.
|
|
2075
|
+
*
|
|
2076
|
+
* @example
|
|
2077
|
+
* ```typescript
|
|
2078
|
+
* getUIComponentsLibraries(): Record<string, string> {
|
|
2079
|
+
* return {
|
|
2080
|
+
* kanban: 'react-kanban-kit@^1.0.0',
|
|
2081
|
+
* lodash: 'lodash@^4.17.0',
|
|
2082
|
+
* };
|
|
2083
|
+
* }
|
|
2084
|
+
* ```
|
|
2085
|
+
*/
|
|
2086
|
+
getUIComponentsLibraries?(): Record<string, string>;
|
|
2059
2087
|
/**
|
|
2060
2088
|
* Return data for a specific UI component
|
|
2061
2089
|
* Called when the component is mounted or when UI refresh is triggered
|
package/extensions.json
CHANGED
|
@@ -106,7 +106,8 @@
|
|
|
106
106
|
"folder": "sandbox",
|
|
107
107
|
"type": "folder",
|
|
108
108
|
"hasDependencies": true,
|
|
109
|
-
"capabilities": ["security"]
|
|
109
|
+
"capabilities": ["security"],
|
|
110
|
+
"supportedOS": ["linux", "macos"]
|
|
110
111
|
},
|
|
111
112
|
{
|
|
112
113
|
"id": "rtk",
|
|
@@ -115,7 +116,8 @@
|
|
|
115
116
|
"folder": "rtk",
|
|
116
117
|
"type": "folder",
|
|
117
118
|
"hasDependencies": false,
|
|
118
|
-
"capabilities": ["optimization", "commands"]
|
|
119
|
+
"capabilities": ["optimization", "commands"],
|
|
120
|
+
"supportedOS": ["linux", "macos"]
|
|
119
121
|
},
|
|
120
122
|
{
|
|
121
123
|
"id": "redact-secrets",
|
|
@@ -222,7 +224,8 @@
|
|
|
222
224
|
"folder": "fff",
|
|
223
225
|
"type": "folder",
|
|
224
226
|
"hasDependencies": true,
|
|
225
|
-
"capabilities": ["tools", "search"]
|
|
227
|
+
"capabilities": ["tools", "search"],
|
|
228
|
+
"supportedOS": ["linux", "macos"]
|
|
226
229
|
},
|
|
227
230
|
{
|
|
228
231
|
"id": "seek",
|
|
@@ -231,7 +234,8 @@
|
|
|
231
234
|
"folder": "seek",
|
|
232
235
|
"type": "folder",
|
|
233
236
|
"hasDependencies": true,
|
|
234
|
-
"capabilities": ["tools", "search"]
|
|
237
|
+
"capabilities": ["tools", "search"],
|
|
238
|
+
"supportedOS": ["linux", "macos"]
|
|
235
239
|
},
|
|
236
240
|
{
|
|
237
241
|
"id": "tps-counter",
|
|
@@ -268,6 +272,15 @@
|
|
|
268
272
|
"type": "folder",
|
|
269
273
|
"hasDependencies": true,
|
|
270
274
|
"capabilities": ["providers", "agent-loop"]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "checkpoints",
|
|
278
|
+
"name": "Checkpoints",
|
|
279
|
+
"description": "Git-based checkpoints for file edits — revert to the state before any edit",
|
|
280
|
+
"folder": "checkpoints",
|
|
281
|
+
"type": "folder",
|
|
282
|
+
"hasDependencies": false,
|
|
283
|
+
"capabilities": ["events", "ui"]
|
|
271
284
|
}
|
|
272
285
|
]
|
|
273
286
|
}
|