@aiderdesk/extensions 0.25.0 → 0.27.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 +112 -6
- package/dist/index.js +14 -0
- package/extensions.d.ts +112 -6
- package/extensions.json +63 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "
|
|
|
4
4
|
export interface LlmProviderBase {
|
|
5
5
|
name: LlmProviderName;
|
|
6
6
|
disableStreaming?: boolean;
|
|
7
|
+
disableToolCallStreaming?: boolean;
|
|
7
8
|
voiceEnabled?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface VoiceControlSettings {
|
|
@@ -184,27 +185,58 @@ export type JSONObject = {
|
|
|
184
185
|
};
|
|
185
186
|
export type JSONArray = JSONValue[];
|
|
186
187
|
export type DataContent = string | Uint8Array | ArrayBuffer | Buffer;
|
|
188
|
+
export type FileDataData = {
|
|
189
|
+
type: "data";
|
|
190
|
+
data: DataContent;
|
|
191
|
+
};
|
|
192
|
+
export type ProviderReference = Record<string, string> & {
|
|
193
|
+
type?: never;
|
|
194
|
+
};
|
|
195
|
+
export type FileDataReference = {
|
|
196
|
+
type: "reference";
|
|
197
|
+
reference: ProviderReference;
|
|
198
|
+
};
|
|
199
|
+
export type FileDataUrl = {
|
|
200
|
+
type: "url";
|
|
201
|
+
url: URL;
|
|
202
|
+
};
|
|
203
|
+
export type FileDataText = {
|
|
204
|
+
type: "text";
|
|
205
|
+
text: string;
|
|
206
|
+
};
|
|
207
|
+
export type FileData = FileDataData | FileDataUrl | FileDataReference | FileDataText;
|
|
208
|
+
export type ProviderOptions = Record<string, JSONObject>;
|
|
187
209
|
export type ToolResultOutput = {
|
|
188
210
|
type: "text";
|
|
189
211
|
value: string;
|
|
212
|
+
providerOptions?: ProviderOptions;
|
|
190
213
|
} | {
|
|
191
214
|
type: "json";
|
|
192
215
|
value: JSONValue;
|
|
216
|
+
providerOptions?: ProviderOptions;
|
|
193
217
|
} | {
|
|
194
218
|
type: "error-text";
|
|
195
219
|
value: string;
|
|
220
|
+
providerOptions?: ProviderOptions;
|
|
196
221
|
} | {
|
|
197
222
|
type: "error-json";
|
|
198
223
|
value: JSONValue;
|
|
224
|
+
providerOptions?: ProviderOptions;
|
|
199
225
|
} | {
|
|
200
226
|
type: "content";
|
|
201
227
|
value: Array<{
|
|
202
228
|
type: "text";
|
|
203
229
|
text: string;
|
|
230
|
+
providerOptions?: ProviderOptions;
|
|
204
231
|
} | {
|
|
205
|
-
type: "
|
|
206
|
-
data:
|
|
232
|
+
type: "file";
|
|
233
|
+
data: FileData;
|
|
207
234
|
mediaType: string;
|
|
235
|
+
filename?: string;
|
|
236
|
+
providerOptions?: ProviderOptions;
|
|
237
|
+
} | {
|
|
238
|
+
type: "custom";
|
|
239
|
+
providerOptions?: ProviderOptions;
|
|
208
240
|
}>;
|
|
209
241
|
};
|
|
210
242
|
export interface TextPart {
|
|
@@ -343,6 +375,61 @@ declare enum ReasoningEffort {
|
|
|
343
375
|
Minimal = "minimal",
|
|
344
376
|
None = "none"
|
|
345
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Portable reasoning level for AI SDK v7's top-level `reasoning` parameter.
|
|
380
|
+
* See https://ai-sdk.dev/docs/ai-sdk-core/reasoning
|
|
381
|
+
*/
|
|
382
|
+
export type Reasoning = "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
383
|
+
/**
|
|
384
|
+
* Timeout configuration for model calls.
|
|
385
|
+
* See https://ai-sdk.dev/docs/ai-sdk-core/settings#timeout
|
|
386
|
+
*/
|
|
387
|
+
export interface ModelCallTimeout {
|
|
388
|
+
/** Total timeout for the entire call including all steps. */
|
|
389
|
+
totalMs?: number;
|
|
390
|
+
/** Timeout for each individual step (LLM call). */
|
|
391
|
+
stepMs?: number;
|
|
392
|
+
/** Timeout between stream chunks (streaming only). Aborts if no chunk received in time. */
|
|
393
|
+
chunkMs?: number;
|
|
394
|
+
/** Default timeout for all tool executions. */
|
|
395
|
+
toolMs?: number;
|
|
396
|
+
/** Per-tool timeout overrides (e.g. `{ weatherMs: 3000 }`). Takes precedence over `toolMs`. */
|
|
397
|
+
tools?: Record<string, number>;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Model call settings that map to AI SDK Language Model Call Options and Request Options.
|
|
401
|
+
* These override provider-derived defaults when set via extension events.
|
|
402
|
+
*
|
|
403
|
+
* See https://ai-sdk.dev/docs/ai-sdk-core/settings for details.
|
|
404
|
+
*/
|
|
405
|
+
export interface ModelCallSettings {
|
|
406
|
+
/** Maximum number of tokens to generate. */
|
|
407
|
+
maxOutputTokens?: number;
|
|
408
|
+
/** Temperature setting (0 = deterministic, higher = more random). */
|
|
409
|
+
temperature?: number;
|
|
410
|
+
/** Nucleus sampling. Recommended instead of temperature, not alongside. */
|
|
411
|
+
topP?: number;
|
|
412
|
+
/** Only sample from top K options for each subsequent token. */
|
|
413
|
+
topK?: number;
|
|
414
|
+
/** Penalty for tokens already present in the prompt. */
|
|
415
|
+
presencePenalty?: number;
|
|
416
|
+
/** Penalty for repeatedly using the same words/phrases. */
|
|
417
|
+
frequencyPenalty?: number;
|
|
418
|
+
/** Stop sequences for text generation. */
|
|
419
|
+
stopSequences?: string[];
|
|
420
|
+
/** Random seed for deterministic results. */
|
|
421
|
+
seed?: number;
|
|
422
|
+
/** Controls reasoning/thinking behavior. See https://ai-sdk.dev/docs/ai-sdk-core/reasoning */
|
|
423
|
+
reasoning?: Reasoning;
|
|
424
|
+
/** Maximum number of retries. Set to 0 to disable retries. Default: 2. */
|
|
425
|
+
maxRetries?: number;
|
|
426
|
+
/** Abort signal that can be used to cancel the call. */
|
|
427
|
+
abortSignal?: AbortSignal;
|
|
428
|
+
/** Timeout for the call. Can be a number (ms) or a detailed timeout configuration. */
|
|
429
|
+
timeout?: number | ModelCallTimeout;
|
|
430
|
+
/** Additional HTTP headers to send with the request. */
|
|
431
|
+
headers?: Record<string, string>;
|
|
432
|
+
}
|
|
346
433
|
export interface ResponseChunkData {
|
|
347
434
|
messageId: string;
|
|
348
435
|
baseDir: string;
|
|
@@ -973,10 +1060,10 @@ export interface ExtensionProviderStrategy {
|
|
|
973
1060
|
loadModels: (profile: ProviderProfile, settings: SettingsData) => Promise<LoadModelsResponse>;
|
|
974
1061
|
getAiderMapping?: (provider: ProviderProfile, modelId: string, settings: SettingsData, projectDir: string) => AiderModelMapping;
|
|
975
1062
|
getUsageReport?: (task: unknown, provider: ProviderProfile, model: Model, usage: unknown, providerMetadata?: unknown) => UsageReportData;
|
|
976
|
-
getProviderOptions?: (model: Model) => Record<string, Record<string, JSONValue>> | undefined;
|
|
1063
|
+
getProviderOptions?: (model: Model, reasoning?: Reasoning) => Record<string, Record<string, JSONValue | undefined>> | undefined;
|
|
977
1064
|
getCacheControl?: (model: Model) => CacheControl | undefined;
|
|
978
1065
|
getProviderTools?: (model: Model) => Record<string, Tool> | Promise<Record<string, Tool>>;
|
|
979
|
-
getProviderParameters?: (model: Model) => Record<string, unknown>;
|
|
1066
|
+
getProviderParameters?: (model: Model, reasoning?: Reasoning) => Record<string, unknown>;
|
|
980
1067
|
createVoiceSession?: (profile: ProviderProfile, settings: SettingsData) => Promise<VoiceSession>;
|
|
981
1068
|
isRetryable?: (error: unknown) => boolean;
|
|
982
1069
|
}
|
|
@@ -1000,7 +1087,7 @@ export interface ProviderDefinition {
|
|
|
1000
1087
|
headers?: Record<string, string>;
|
|
1001
1088
|
}
|
|
1002
1089
|
/** Placement locations for extension UI components */
|
|
1003
|
-
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" | "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" | "task-floating" | "project-floating" | "app-floating";
|
|
1090
|
+
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" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "task-sidebar-item-badges" | "welcome-page" | "task-floating" | "project-floating" | "app-floating";
|
|
1004
1091
|
/**
|
|
1005
1092
|
* Definition of a React UI component that can be registered by an extension.
|
|
1006
1093
|
* The component is defined as a JSX string and rendered using string-to-react-component.
|
|
@@ -1192,6 +1279,12 @@ export interface AgentStartedEvent {
|
|
|
1192
1279
|
blocked?: boolean;
|
|
1193
1280
|
images?: string[];
|
|
1194
1281
|
skillsToActivate?: string[];
|
|
1282
|
+
/**
|
|
1283
|
+
* Model call settings (both defaults and overrides).
|
|
1284
|
+
* On dispatch, contains the agent's computed defaults (e.g. maxRetries, abortSignal).
|
|
1285
|
+
* Extensions can return a partial override; the final values are `{...defaults, ...overrides}`.
|
|
1286
|
+
*/
|
|
1287
|
+
modelCallSettings?: ModelCallSettings;
|
|
1195
1288
|
}
|
|
1196
1289
|
/** Event payload for agent finished events */
|
|
1197
1290
|
export interface AgentFinishedEvent {
|
|
@@ -1214,7 +1307,7 @@ export interface AgentStepFinishedEvent {
|
|
|
1214
1307
|
readonly agentProfile: AgentProfile;
|
|
1215
1308
|
readonly currentResponseId: string;
|
|
1216
1309
|
readonly stepResult: AgentStepResult;
|
|
1217
|
-
finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other"
|
|
1310
|
+
finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other";
|
|
1218
1311
|
responseMessages: ContextMessage[];
|
|
1219
1312
|
}
|
|
1220
1313
|
/** Event payload for message optimization events */
|
|
@@ -1792,6 +1885,13 @@ export interface TaskContext {
|
|
|
1792
1885
|
* @param includeUncommitted - Whether to include uncommitted changes (default: false)
|
|
1793
1886
|
*/
|
|
1794
1887
|
mergeWorktreeToWorktree(targetWorktreeDir: string, includeUncommitted?: boolean): Promise<void>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Resume the task — starts execution as if the user clicked the "Execute"/"Resume" button.
|
|
1890
|
+
* In agent mode, this runs the last user prompt through the agent pipeline.
|
|
1891
|
+
* In Aider modes, this re-executes the last user message.
|
|
1892
|
+
* No-op if the task is already running or has no prior user message to resume from.
|
|
1893
|
+
*/
|
|
1894
|
+
resumeTask(): Promise<void>;
|
|
1795
1895
|
}
|
|
1796
1896
|
/**
|
|
1797
1897
|
* Safe subset of Project capabilities exposed to extensions.
|
|
@@ -1978,6 +2078,12 @@ export interface ExtensionContext {
|
|
|
1978
2078
|
* @returns Absolute path to the project directory, or empty string if not in a project context
|
|
1979
2079
|
*/
|
|
1980
2080
|
getProjectDir(): string;
|
|
2081
|
+
/**
|
|
2082
|
+
* Get the base directories of all currently open projects (open project tabs/windows).
|
|
2083
|
+
* Available regardless of whether the context itself is scoped to a project or task.
|
|
2084
|
+
* @returns Array of absolute paths to currently open projects' base directories
|
|
2085
|
+
*/
|
|
2086
|
+
getOpenProjectDirs(): string[];
|
|
1981
2087
|
/**
|
|
1982
2088
|
* Get the task context for the current task.
|
|
1983
2089
|
* Only available when the context is created for a specific task (e.g., task event handlers,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
// src/runtime.ts
|
|
2
|
+
var OS = /* @__PURE__ */ ((OS2) => {
|
|
3
|
+
OS2["Windows"] = "windows";
|
|
4
|
+
OS2["Linux"] = "linux";
|
|
5
|
+
OS2["MacOS"] = "macos";
|
|
6
|
+
return OS2;
|
|
7
|
+
})(OS || {});
|
|
8
|
+
var AutonomyMode = /* @__PURE__ */ ((AutonomyMode2) => {
|
|
9
|
+
AutonomyMode2["Manual"] = "manual";
|
|
10
|
+
AutonomyMode2["Guided"] = "guided";
|
|
11
|
+
AutonomyMode2["Autonomous"] = "autonomous";
|
|
12
|
+
return AutonomyMode2;
|
|
13
|
+
})(AutonomyMode || {});
|
|
2
14
|
var ToolApprovalState = /* @__PURE__ */ ((ToolApprovalState2) => {
|
|
3
15
|
ToolApprovalState2["Always"] = "always";
|
|
4
16
|
ToolApprovalState2["Never"] = "never";
|
|
@@ -17,7 +29,9 @@ var ContextMemoryMode = /* @__PURE__ */ ((ContextMemoryMode2) => {
|
|
|
17
29
|
return ContextMemoryMode2;
|
|
18
30
|
})(ContextMemoryMode || {});
|
|
19
31
|
export {
|
|
32
|
+
AutonomyMode,
|
|
20
33
|
ContextMemoryMode,
|
|
21
34
|
InvocationMode,
|
|
35
|
+
OS,
|
|
22
36
|
ToolApprovalState
|
|
23
37
|
};
|
package/extensions.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "
|
|
|
4
4
|
export interface LlmProviderBase {
|
|
5
5
|
name: LlmProviderName;
|
|
6
6
|
disableStreaming?: boolean;
|
|
7
|
+
disableToolCallStreaming?: boolean;
|
|
7
8
|
voiceEnabled?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface VoiceControlSettings {
|
|
@@ -184,27 +185,58 @@ export type JSONObject = {
|
|
|
184
185
|
};
|
|
185
186
|
export type JSONArray = JSONValue[];
|
|
186
187
|
export type DataContent = string | Uint8Array | ArrayBuffer | Buffer;
|
|
188
|
+
export type FileDataData = {
|
|
189
|
+
type: "data";
|
|
190
|
+
data: DataContent;
|
|
191
|
+
};
|
|
192
|
+
export type ProviderReference = Record<string, string> & {
|
|
193
|
+
type?: never;
|
|
194
|
+
};
|
|
195
|
+
export type FileDataReference = {
|
|
196
|
+
type: "reference";
|
|
197
|
+
reference: ProviderReference;
|
|
198
|
+
};
|
|
199
|
+
export type FileDataUrl = {
|
|
200
|
+
type: "url";
|
|
201
|
+
url: URL;
|
|
202
|
+
};
|
|
203
|
+
export type FileDataText = {
|
|
204
|
+
type: "text";
|
|
205
|
+
text: string;
|
|
206
|
+
};
|
|
207
|
+
export type FileData = FileDataData | FileDataUrl | FileDataReference | FileDataText;
|
|
208
|
+
export type ProviderOptions = Record<string, JSONObject>;
|
|
187
209
|
export type ToolResultOutput = {
|
|
188
210
|
type: "text";
|
|
189
211
|
value: string;
|
|
212
|
+
providerOptions?: ProviderOptions;
|
|
190
213
|
} | {
|
|
191
214
|
type: "json";
|
|
192
215
|
value: JSONValue;
|
|
216
|
+
providerOptions?: ProviderOptions;
|
|
193
217
|
} | {
|
|
194
218
|
type: "error-text";
|
|
195
219
|
value: string;
|
|
220
|
+
providerOptions?: ProviderOptions;
|
|
196
221
|
} | {
|
|
197
222
|
type: "error-json";
|
|
198
223
|
value: JSONValue;
|
|
224
|
+
providerOptions?: ProviderOptions;
|
|
199
225
|
} | {
|
|
200
226
|
type: "content";
|
|
201
227
|
value: Array<{
|
|
202
228
|
type: "text";
|
|
203
229
|
text: string;
|
|
230
|
+
providerOptions?: ProviderOptions;
|
|
204
231
|
} | {
|
|
205
|
-
type: "
|
|
206
|
-
data:
|
|
232
|
+
type: "file";
|
|
233
|
+
data: FileData;
|
|
207
234
|
mediaType: string;
|
|
235
|
+
filename?: string;
|
|
236
|
+
providerOptions?: ProviderOptions;
|
|
237
|
+
} | {
|
|
238
|
+
type: "custom";
|
|
239
|
+
providerOptions?: ProviderOptions;
|
|
208
240
|
}>;
|
|
209
241
|
};
|
|
210
242
|
export interface TextPart {
|
|
@@ -343,6 +375,61 @@ declare enum ReasoningEffort {
|
|
|
343
375
|
Minimal = "minimal",
|
|
344
376
|
None = "none"
|
|
345
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Portable reasoning level for AI SDK v7's top-level `reasoning` parameter.
|
|
380
|
+
* See https://ai-sdk.dev/docs/ai-sdk-core/reasoning
|
|
381
|
+
*/
|
|
382
|
+
export type Reasoning = "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
383
|
+
/**
|
|
384
|
+
* Timeout configuration for model calls.
|
|
385
|
+
* See https://ai-sdk.dev/docs/ai-sdk-core/settings#timeout
|
|
386
|
+
*/
|
|
387
|
+
export interface ModelCallTimeout {
|
|
388
|
+
/** Total timeout for the entire call including all steps. */
|
|
389
|
+
totalMs?: number;
|
|
390
|
+
/** Timeout for each individual step (LLM call). */
|
|
391
|
+
stepMs?: number;
|
|
392
|
+
/** Timeout between stream chunks (streaming only). Aborts if no chunk received in time. */
|
|
393
|
+
chunkMs?: number;
|
|
394
|
+
/** Default timeout for all tool executions. */
|
|
395
|
+
toolMs?: number;
|
|
396
|
+
/** Per-tool timeout overrides (e.g. `{ weatherMs: 3000 }`). Takes precedence over `toolMs`. */
|
|
397
|
+
tools?: Record<string, number>;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Model call settings that map to AI SDK Language Model Call Options and Request Options.
|
|
401
|
+
* These override provider-derived defaults when set via extension events.
|
|
402
|
+
*
|
|
403
|
+
* See https://ai-sdk.dev/docs/ai-sdk-core/settings for details.
|
|
404
|
+
*/
|
|
405
|
+
export interface ModelCallSettings {
|
|
406
|
+
/** Maximum number of tokens to generate. */
|
|
407
|
+
maxOutputTokens?: number;
|
|
408
|
+
/** Temperature setting (0 = deterministic, higher = more random). */
|
|
409
|
+
temperature?: number;
|
|
410
|
+
/** Nucleus sampling. Recommended instead of temperature, not alongside. */
|
|
411
|
+
topP?: number;
|
|
412
|
+
/** Only sample from top K options for each subsequent token. */
|
|
413
|
+
topK?: number;
|
|
414
|
+
/** Penalty for tokens already present in the prompt. */
|
|
415
|
+
presencePenalty?: number;
|
|
416
|
+
/** Penalty for repeatedly using the same words/phrases. */
|
|
417
|
+
frequencyPenalty?: number;
|
|
418
|
+
/** Stop sequences for text generation. */
|
|
419
|
+
stopSequences?: string[];
|
|
420
|
+
/** Random seed for deterministic results. */
|
|
421
|
+
seed?: number;
|
|
422
|
+
/** Controls reasoning/thinking behavior. See https://ai-sdk.dev/docs/ai-sdk-core/reasoning */
|
|
423
|
+
reasoning?: Reasoning;
|
|
424
|
+
/** Maximum number of retries. Set to 0 to disable retries. Default: 2. */
|
|
425
|
+
maxRetries?: number;
|
|
426
|
+
/** Abort signal that can be used to cancel the call. */
|
|
427
|
+
abortSignal?: AbortSignal;
|
|
428
|
+
/** Timeout for the call. Can be a number (ms) or a detailed timeout configuration. */
|
|
429
|
+
timeout?: number | ModelCallTimeout;
|
|
430
|
+
/** Additional HTTP headers to send with the request. */
|
|
431
|
+
headers?: Record<string, string>;
|
|
432
|
+
}
|
|
346
433
|
export interface ResponseChunkData {
|
|
347
434
|
messageId: string;
|
|
348
435
|
baseDir: string;
|
|
@@ -973,10 +1060,10 @@ export interface ExtensionProviderStrategy {
|
|
|
973
1060
|
loadModels: (profile: ProviderProfile, settings: SettingsData) => Promise<LoadModelsResponse>;
|
|
974
1061
|
getAiderMapping?: (provider: ProviderProfile, modelId: string, settings: SettingsData, projectDir: string) => AiderModelMapping;
|
|
975
1062
|
getUsageReport?: (task: unknown, provider: ProviderProfile, model: Model, usage: unknown, providerMetadata?: unknown) => UsageReportData;
|
|
976
|
-
getProviderOptions?: (model: Model) => Record<string, Record<string, JSONValue>> | undefined;
|
|
1063
|
+
getProviderOptions?: (model: Model, reasoning?: Reasoning) => Record<string, Record<string, JSONValue | undefined>> | undefined;
|
|
977
1064
|
getCacheControl?: (model: Model) => CacheControl | undefined;
|
|
978
1065
|
getProviderTools?: (model: Model) => Record<string, Tool> | Promise<Record<string, Tool>>;
|
|
979
|
-
getProviderParameters?: (model: Model) => Record<string, unknown>;
|
|
1066
|
+
getProviderParameters?: (model: Model, reasoning?: Reasoning) => Record<string, unknown>;
|
|
980
1067
|
createVoiceSession?: (profile: ProviderProfile, settings: SettingsData) => Promise<VoiceSession>;
|
|
981
1068
|
isRetryable?: (error: unknown) => boolean;
|
|
982
1069
|
}
|
|
@@ -1000,7 +1087,7 @@ export interface ProviderDefinition {
|
|
|
1000
1087
|
headers?: Record<string, string>;
|
|
1001
1088
|
}
|
|
1002
1089
|
/** Placement locations for extension UI components */
|
|
1003
|
-
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" | "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" | "task-floating" | "project-floating" | "app-floating";
|
|
1090
|
+
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" | "task-message-above" | "task-message-below" | "task-message-bar" | "task-top-bar-left" | "task-top-bar-right" | "task-state-actions" | "task-state-actions-all" | "task-sidebar-item-badges" | "welcome-page" | "task-floating" | "project-floating" | "app-floating";
|
|
1004
1091
|
/**
|
|
1005
1092
|
* Definition of a React UI component that can be registered by an extension.
|
|
1006
1093
|
* The component is defined as a JSX string and rendered using string-to-react-component.
|
|
@@ -1192,6 +1279,12 @@ export interface AgentStartedEvent {
|
|
|
1192
1279
|
blocked?: boolean;
|
|
1193
1280
|
images?: string[];
|
|
1194
1281
|
skillsToActivate?: string[];
|
|
1282
|
+
/**
|
|
1283
|
+
* Model call settings (both defaults and overrides).
|
|
1284
|
+
* On dispatch, contains the agent's computed defaults (e.g. maxRetries, abortSignal).
|
|
1285
|
+
* Extensions can return a partial override; the final values are `{...defaults, ...overrides}`.
|
|
1286
|
+
*/
|
|
1287
|
+
modelCallSettings?: ModelCallSettings;
|
|
1195
1288
|
}
|
|
1196
1289
|
/** Event payload for agent finished events */
|
|
1197
1290
|
export interface AgentFinishedEvent {
|
|
@@ -1214,7 +1307,7 @@ export interface AgentStepFinishedEvent {
|
|
|
1214
1307
|
readonly agentProfile: AgentProfile;
|
|
1215
1308
|
readonly currentResponseId: string;
|
|
1216
1309
|
readonly stepResult: AgentStepResult;
|
|
1217
|
-
finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other"
|
|
1310
|
+
finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other";
|
|
1218
1311
|
responseMessages: ContextMessage[];
|
|
1219
1312
|
}
|
|
1220
1313
|
/** Event payload for message optimization events */
|
|
@@ -1792,6 +1885,13 @@ export interface TaskContext {
|
|
|
1792
1885
|
* @param includeUncommitted - Whether to include uncommitted changes (default: false)
|
|
1793
1886
|
*/
|
|
1794
1887
|
mergeWorktreeToWorktree(targetWorktreeDir: string, includeUncommitted?: boolean): Promise<void>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Resume the task — starts execution as if the user clicked the "Execute"/"Resume" button.
|
|
1890
|
+
* In agent mode, this runs the last user prompt through the agent pipeline.
|
|
1891
|
+
* In Aider modes, this re-executes the last user message.
|
|
1892
|
+
* No-op if the task is already running or has no prior user message to resume from.
|
|
1893
|
+
*/
|
|
1894
|
+
resumeTask(): Promise<void>;
|
|
1795
1895
|
}
|
|
1796
1896
|
/**
|
|
1797
1897
|
* Safe subset of Project capabilities exposed to extensions.
|
|
@@ -1978,6 +2078,12 @@ export interface ExtensionContext {
|
|
|
1978
2078
|
* @returns Absolute path to the project directory, or empty string if not in a project context
|
|
1979
2079
|
*/
|
|
1980
2080
|
getProjectDir(): string;
|
|
2081
|
+
/**
|
|
2082
|
+
* Get the base directories of all currently open projects (open project tabs/windows).
|
|
2083
|
+
* Available regardless of whether the context itself is scoped to a project or task.
|
|
2084
|
+
* @returns Array of absolute paths to currently open projects' base directories
|
|
2085
|
+
*/
|
|
2086
|
+
getOpenProjectDirs(): string[];
|
|
1981
2087
|
/**
|
|
1982
2088
|
* Get the task context for the current task.
|
|
1983
2089
|
* Only available when the context is created for a specific task (e.g., task event handlers,
|
package/extensions.json
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extensions": [
|
|
3
|
+
{
|
|
4
|
+
"id": "binary-files",
|
|
5
|
+
"name": "Binary Files",
|
|
6
|
+
"description": "Attaches local binary files to multimodal model requests",
|
|
7
|
+
"folder": "binary-files",
|
|
8
|
+
"type": "folder",
|
|
9
|
+
"hasDependencies": false,
|
|
10
|
+
"capabilities": ["tools"]
|
|
11
|
+
},
|
|
3
12
|
{
|
|
4
13
|
"id": "wakatime",
|
|
5
14
|
"name": "WakaTime",
|
|
@@ -219,6 +228,15 @@
|
|
|
219
228
|
"hasDependencies": true,
|
|
220
229
|
"capabilities": ["ui"]
|
|
221
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"id": "openai-codex",
|
|
233
|
+
"name": "OpenAI Codex Auth",
|
|
234
|
+
"description": "OpenAI Codex provider using ChatGPT Plus/Pro OAuth authentication",
|
|
235
|
+
"folder": "openai-codex",
|
|
236
|
+
"type": "folder",
|
|
237
|
+
"hasDependencies": true,
|
|
238
|
+
"capabilities": ["providers"]
|
|
239
|
+
},
|
|
222
240
|
{
|
|
223
241
|
"id": "fff",
|
|
224
242
|
"name": "FFF",
|
|
@@ -364,6 +382,51 @@
|
|
|
364
382
|
"type": "folder",
|
|
365
383
|
"hasDependencies": false,
|
|
366
384
|
"capabilities": ["agents", "example"]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"id": "wigolo",
|
|
388
|
+
"name": "wigolo",
|
|
389
|
+
"description": "Local-first web search, fetch, crawl & research tools powered by wigolo — no API keys required",
|
|
390
|
+
"folder": "wigolo",
|
|
391
|
+
"type": "folder",
|
|
392
|
+
"hasDependencies": true,
|
|
393
|
+
"capabilities": ["tools", "search"]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"id": "destructive-command-guard",
|
|
397
|
+
"name": "Destructive Command Guard",
|
|
398
|
+
"description": "Blocks dangerous git and shell commands from being executed by agents using dcg",
|
|
399
|
+
"folder": "destructive-command-guard",
|
|
400
|
+
"type": "folder",
|
|
401
|
+
"hasDependencies": false,
|
|
402
|
+
"capabilities": ["security", "commands"]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "skill-gallery",
|
|
406
|
+
"name": "Skill Gallery",
|
|
407
|
+
"description": "Browse and install Claude Skills from popular skill repositories (Anthropic Official, Awesome Claude Skills)",
|
|
408
|
+
"folder": "skill-gallery",
|
|
409
|
+
"type": "folder",
|
|
410
|
+
"hasDependencies": true,
|
|
411
|
+
"capabilities": ["ui"]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"id": "task-scheduler",
|
|
415
|
+
"name": "Task Scheduler",
|
|
416
|
+
"description": "Schedule tasks to run automatically on a cron or periodic basis",
|
|
417
|
+
"folder": "task-scheduler",
|
|
418
|
+
"type": "folder",
|
|
419
|
+
"hasDependencies": true,
|
|
420
|
+
"capabilities": ["ui", "commands", "events"]
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": "reasoning-selector",
|
|
424
|
+
"name": "Reasoning Selector",
|
|
425
|
+
"description": "Adds a reasoning effort selector dropdown next to the model selector in agent mode",
|
|
426
|
+
"folder": "reasoning-selector",
|
|
427
|
+
"type": "folder",
|
|
428
|
+
"hasDependencies": false,
|
|
429
|
+
"capabilities": ["ui"]
|
|
367
430
|
}
|
|
368
431
|
]
|
|
369
432
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiderdesk/extensions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Type definitions and examples for AiderDesk extensions",
|
|
5
5
|
"author": "Hotovo",
|
|
6
6
|
"homepage": "https://aiderdesk.hotovo.com",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^22.13.4",
|
|
61
61
|
"dts-bundle-generator": "^9.5.1",
|
|
62
|
-
"esbuild": "^0.
|
|
62
|
+
"esbuild": "^0.28.1",
|
|
63
63
|
"typescript": "^5.5.4",
|
|
64
64
|
"zod": "^4.3.6"
|
|
65
65
|
},
|