@aiderdesk/extensions 0.3.0 → 0.4.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/runtime.js +23 -0
- package/extensions.d.ts +7 -0
- package/extensions.json +18 -0
- package/package.json +6 -1
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/runtime.ts
|
|
2
|
+
var ToolApprovalState = /* @__PURE__ */ ((ToolApprovalState2) => {
|
|
3
|
+
ToolApprovalState2["Always"] = "always";
|
|
4
|
+
ToolApprovalState2["Never"] = "never";
|
|
5
|
+
ToolApprovalState2["Ask"] = "ask";
|
|
6
|
+
return ToolApprovalState2;
|
|
7
|
+
})(ToolApprovalState || {});
|
|
8
|
+
var InvocationMode = /* @__PURE__ */ ((InvocationMode2) => {
|
|
9
|
+
InvocationMode2["OnDemand"] = "on-demand";
|
|
10
|
+
InvocationMode2["Automatic"] = "automatic";
|
|
11
|
+
return InvocationMode2;
|
|
12
|
+
})(InvocationMode || {});
|
|
13
|
+
var ContextMemoryMode = /* @__PURE__ */ ((ContextMemoryMode2) => {
|
|
14
|
+
ContextMemoryMode2["Off"] = "off";
|
|
15
|
+
ContextMemoryMode2["FullContext"] = "full-context";
|
|
16
|
+
ContextMemoryMode2["LastMessage"] = "last-message";
|
|
17
|
+
return ContextMemoryMode2;
|
|
18
|
+
})(ContextMemoryMode || {});
|
|
19
|
+
export {
|
|
20
|
+
ContextMemoryMode,
|
|
21
|
+
InvocationMode,
|
|
22
|
+
ToolApprovalState
|
|
23
|
+
};
|
package/extensions.d.ts
CHANGED
|
@@ -561,6 +561,10 @@ export interface MemoryConfig {
|
|
|
561
561
|
model: string;
|
|
562
562
|
maxDistance: number;
|
|
563
563
|
}
|
|
564
|
+
export interface ExtensionsConfig {
|
|
565
|
+
repositories: string[];
|
|
566
|
+
disabled: string[];
|
|
567
|
+
}
|
|
564
568
|
export interface SettingsData {
|
|
565
569
|
onboardingFinished?: boolean;
|
|
566
570
|
language: string;
|
|
@@ -617,6 +621,7 @@ export interface SettingsData {
|
|
|
617
621
|
memory: MemoryConfig;
|
|
618
622
|
taskSettings: TaskSettings;
|
|
619
623
|
hotkeyConfig?: HotkeyConfig;
|
|
624
|
+
extensions?: ExtensionsConfig;
|
|
620
625
|
}
|
|
621
626
|
export interface ProviderProfile {
|
|
622
627
|
id: string;
|
|
@@ -728,6 +733,7 @@ export interface CustomCommand extends Command {
|
|
|
728
733
|
autoApprove?: boolean;
|
|
729
734
|
}
|
|
730
735
|
export type AgentStepResult = unknown;
|
|
736
|
+
export declare const AIDER_DESK_EXTENSIONS_REPO_URL = "https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/";
|
|
731
737
|
export interface ResponseMessage {
|
|
732
738
|
id: string;
|
|
733
739
|
content: string;
|
|
@@ -1123,6 +1129,7 @@ export interface TaskContext {
|
|
|
1123
1129
|
compactConversation(instructions?: string): Promise<void>;
|
|
1124
1130
|
generateContextMarkdown(): Promise<string | null>;
|
|
1125
1131
|
isInitialized(): boolean;
|
|
1132
|
+
updateAutocompletionWords(words?: string[]): Promise<void>;
|
|
1126
1133
|
getQueuedPrompts(): QueuedPromptData[];
|
|
1127
1134
|
sendQueuedPromptNow(promptId: string): Promise<void>;
|
|
1128
1135
|
removeQueuedPrompt(promptId: string): void;
|
package/extensions.json
CHANGED
|
@@ -133,6 +133,24 @@
|
|
|
133
133
|
"type": "folder",
|
|
134
134
|
"hasDependencies": true,
|
|
135
135
|
"capabilities": ["onLoad", "onAgentStarted", "getCommands"]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "context-autocompletion-words",
|
|
139
|
+
"name": "Context Autocompletion Words",
|
|
140
|
+
"description": "Automatically extracts symbols from context files and adds them to autocompletion",
|
|
141
|
+
"folder": "context-autocompletion-words",
|
|
142
|
+
"type": "folder",
|
|
143
|
+
"hasDependencies": true,
|
|
144
|
+
"capabilities": ["onLoad", "onFilesAdded", "onFilesDropped"]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "lsp",
|
|
148
|
+
"name": "LSP Integration",
|
|
149
|
+
"description": "Language Server Protocol integration for code intelligence and error detection",
|
|
150
|
+
"folder": "lsp",
|
|
151
|
+
"type": "folder",
|
|
152
|
+
"hasDependencies": true,
|
|
153
|
+
"capabilities": ["onLoad", "onUnload", "onProjectStarted", "onProjectStopped", "getTools", "onToolFinished"]
|
|
136
154
|
}
|
|
137
155
|
]
|
|
138
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiderdesk/extensions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Type definitions and examples for AiderDesk extensions",
|
|
5
5
|
"author": "Hotovo",
|
|
6
6
|
"homepage": "https://aiderdesk.hotovo.com",
|
|
@@ -23,12 +23,17 @@
|
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./extensions.d.ts",
|
|
25
25
|
"default": "./extensions.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./runtime": {
|
|
28
|
+
"types": "./dist/runtime.d.ts",
|
|
29
|
+
"default": "./dist/runtime.js"
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
"files": [
|
|
29
33
|
"extensions.d.ts",
|
|
30
34
|
"README.md",
|
|
31
35
|
"dist/cli.js",
|
|
36
|
+
"dist/runtime.js",
|
|
32
37
|
"extensions.json"
|
|
33
38
|
],
|
|
34
39
|
"scripts": {
|