@aiderdesk/extensions 0.41.0 → 0.42.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 +88 -2
- package/extensions.d.ts +88 -2
- package/extensions.json +65 -38
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "bedrock" | "cerebras" | "clinepass" | "deepseek" | "gemini" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "llmapi" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "opencode-go" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
|
|
3
|
+
export type LlmProviderName = "anthropic" | "anthropic-compatible" | "atlascloud" | "azure" | "bedrock" | "cerebras" | "clinepass" | "deepseek" | "gemini" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "llmapi" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "opencode-go" | "openllm" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
|
|
4
4
|
export interface LlmProviderBase {
|
|
5
5
|
name: LlmProviderName;
|
|
6
6
|
disableStreaming?: boolean;
|
|
@@ -187,14 +187,23 @@ export interface SyntheticProvider extends LlmProviderBase {
|
|
|
187
187
|
name: "synthetic";
|
|
188
188
|
apiKey: string;
|
|
189
189
|
}
|
|
190
|
+
export interface AtlasCloudProvider extends LlmProviderBase {
|
|
191
|
+
name: "atlascloud";
|
|
192
|
+
apiKey: string;
|
|
193
|
+
}
|
|
190
194
|
export interface LlmApiProvider extends LlmProviderBase {
|
|
191
195
|
name: "llmapi";
|
|
192
196
|
apiKey: string;
|
|
193
197
|
}
|
|
198
|
+
export interface OpenLlmProvider extends LlmProviderBase {
|
|
199
|
+
name: "openllm";
|
|
200
|
+
baseUrl: string;
|
|
201
|
+
apiKey: string;
|
|
202
|
+
}
|
|
194
203
|
export interface ExtensionLlmProvider extends LlmProviderBase {
|
|
195
204
|
[key: string]: unknown;
|
|
196
205
|
}
|
|
197
|
-
export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | ClinePassProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenCodeGoProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | LlmApiProvider | ExtensionLlmProvider;
|
|
206
|
+
export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | ClinePassProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenCodeGoProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | LlmApiProvider | AtlasCloudProvider | OpenLlmProvider | ExtensionLlmProvider;
|
|
198
207
|
export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
|
|
199
208
|
export type JSONObject = {
|
|
200
209
|
[key: string]: JSONValue;
|
|
@@ -924,12 +933,28 @@ export interface VoiceSession {
|
|
|
924
933
|
model: string;
|
|
925
934
|
idleTimeoutMs: number;
|
|
926
935
|
}
|
|
936
|
+
declare enum McpServerScope {
|
|
937
|
+
/** One connector per task working directory. Use for working-directory-dependent servers to keep worktree tasks isolated. */
|
|
938
|
+
Task = "task",
|
|
939
|
+
/** One connector shared by all tasks of the same project, including worktree tasks (default for stdio servers). */
|
|
940
|
+
Project = "project",
|
|
941
|
+
/** One connector shared across all projects (default for remote url servers). */
|
|
942
|
+
Global = "global"
|
|
943
|
+
}
|
|
927
944
|
export interface McpServerConfig {
|
|
928
945
|
command?: string;
|
|
929
946
|
args?: string[];
|
|
930
947
|
env?: Readonly<Record<string, string>>;
|
|
931
948
|
url?: string;
|
|
932
949
|
headers?: Readonly<Record<string, string>>;
|
|
950
|
+
/**
|
|
951
|
+
* Connector sharing scope. Defaults to `Project` for stdio servers (one shared process per project,
|
|
952
|
+
* reused across the project's tasks and worktrees) and `Global` for remote (url) servers. Set to
|
|
953
|
+
* `Task` for a working-directory-dependent server (e.g. a filesystem server with a relative path) so
|
|
954
|
+
* each worktree task gets its own process in its own working directory; a `${taskDir}` placeholder
|
|
955
|
+
* implies `Task`. An explicit value always wins.
|
|
956
|
+
*/
|
|
957
|
+
scope?: McpServerScope;
|
|
933
958
|
}
|
|
934
959
|
declare enum ModelModality {
|
|
935
960
|
Text = "text",
|
|
@@ -1024,6 +1049,12 @@ export interface CreateTaskParams {
|
|
|
1024
1049
|
workingMode?: WorkingMode;
|
|
1025
1050
|
addInitialContextFiles?: boolean;
|
|
1026
1051
|
}
|
|
1052
|
+
export interface TaskStateDefinition {
|
|
1053
|
+
id: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
color: string;
|
|
1056
|
+
priority: number;
|
|
1057
|
+
}
|
|
1027
1058
|
export interface TodoItem {
|
|
1028
1059
|
name: string;
|
|
1029
1060
|
completed: boolean;
|
|
@@ -1078,6 +1109,22 @@ export interface MemoryEntry {
|
|
|
1078
1109
|
projectId?: string;
|
|
1079
1110
|
timestamp: number;
|
|
1080
1111
|
}
|
|
1112
|
+
export type InputPromptType = "password" | "text" | "confirmation";
|
|
1113
|
+
export interface InputPromptData {
|
|
1114
|
+
id: string;
|
|
1115
|
+
dismissed?: boolean;
|
|
1116
|
+
title?: string;
|
|
1117
|
+
titleParams?: Record<string, string | number>;
|
|
1118
|
+
message: string;
|
|
1119
|
+
messageParams?: Record<string, string | number>;
|
|
1120
|
+
type?: InputPromptType;
|
|
1121
|
+
placeholder?: string;
|
|
1122
|
+
defaultValue?: string;
|
|
1123
|
+
allowRememberSession?: boolean;
|
|
1124
|
+
rememberSessionLabel?: string;
|
|
1125
|
+
confirmLabel?: string;
|
|
1126
|
+
cancelLabel?: string;
|
|
1127
|
+
}
|
|
1081
1128
|
export type SkillLocation = "global" | "project" | "builtin" | "extension";
|
|
1082
1129
|
export interface SkillDefinition {
|
|
1083
1130
|
name: string;
|
|
@@ -1581,12 +1628,30 @@ export interface ToolCalledEvent {
|
|
|
1581
1628
|
input: Record<string, unknown> | undefined;
|
|
1582
1629
|
output?: unknown;
|
|
1583
1630
|
}
|
|
1631
|
+
/** Ephemeral execution configuration, dispatched after bash approval. Never persisted in tool history. */
|
|
1632
|
+
export interface BashExecutionEvent {
|
|
1633
|
+
readonly toolCallId: string;
|
|
1634
|
+
readonly command: string;
|
|
1635
|
+
readonly cwd: string;
|
|
1636
|
+
readonly shell: string;
|
|
1637
|
+
readonly abortSignal?: AbortSignal;
|
|
1638
|
+
/** Trusted shell setup run after shell initialization, never added to persisted command arguments. */
|
|
1639
|
+
commandPrefix?: string;
|
|
1640
|
+
env: Record<string, string | undefined>;
|
|
1641
|
+
/** Register cleanup before allocating resources; runs on completion, failure, cancellation or timeout. */
|
|
1642
|
+
readonly addCleanup: (cleanup: () => void | Promise<void>) => void;
|
|
1643
|
+
}
|
|
1644
|
+
export interface ExtensionInputResponse {
|
|
1645
|
+
value: string | null;
|
|
1646
|
+
rememberSession: boolean;
|
|
1647
|
+
}
|
|
1584
1648
|
/** Event payload for tool finished events */
|
|
1585
1649
|
export interface ToolFinishedEvent {
|
|
1586
1650
|
readonly toolCallId: string;
|
|
1587
1651
|
readonly toolName: string;
|
|
1588
1652
|
readonly agentProfile: AgentProfile;
|
|
1589
1653
|
readonly input: Record<string, unknown> | undefined;
|
|
1654
|
+
readonly abortSignal?: AbortSignal;
|
|
1590
1655
|
output: unknown;
|
|
1591
1656
|
}
|
|
1592
1657
|
/** A tool entry as exposed to extensions in toolset events */
|
|
@@ -1911,6 +1976,14 @@ export interface TaskContext {
|
|
|
1911
1976
|
* @returns Absolute filesystem path to the task's working directory
|
|
1912
1977
|
*/
|
|
1913
1978
|
getTaskDir(): string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Get the directory where this task's data is stored.
|
|
1981
|
+
* This is `<project base dir>/.aider-desk/tasks/<task id>` and is independent of the
|
|
1982
|
+
* task's working directory (worktree or project dir), so files saved here never
|
|
1983
|
+
* pollute the working repository.
|
|
1984
|
+
* @returns Absolute filesystem path to the task's data directory
|
|
1985
|
+
*/
|
|
1986
|
+
getTaskDataDir(): string;
|
|
1914
1987
|
/**
|
|
1915
1988
|
* Get a list of files that can be added to the task's context.
|
|
1916
1989
|
* Returns all files in the task directory that are not already in the context,
|
|
@@ -2481,6 +2554,8 @@ export interface ExtensionContext {
|
|
|
2481
2554
|
* @param type - Log level: 'info' (default), 'error', 'warn', or 'debug'
|
|
2482
2555
|
*/
|
|
2483
2556
|
log(message: string, type?: "info" | "error" | "warn" | "debug"): void;
|
|
2557
|
+
/** Request masked or plain input outside conversation history. Null means cancelled or timed out. */
|
|
2558
|
+
requestInput(prompt: Omit<InputPromptData, "id">, signal?: AbortSignal): Promise<ExtensionInputResponse>;
|
|
2484
2559
|
/**
|
|
2485
2560
|
* Get the current project directory path.
|
|
2486
2561
|
* Only available when the context is created within a project scope (e.g., event handlers,
|
|
@@ -2562,6 +2637,8 @@ export interface ExtensionContext {
|
|
|
2562
2637
|
* No-op if the EventManager is not available.
|
|
2563
2638
|
*/
|
|
2564
2639
|
triggerUIComponentsReload(): void;
|
|
2640
|
+
/** Re-fetch task-state definitions in this context's project, or all projects for a global context. */
|
|
2641
|
+
triggerTaskStatesRefresh(): void;
|
|
2565
2642
|
/**
|
|
2566
2643
|
* Open a URL in the specified target.
|
|
2567
2644
|
* - 'external': Opens in the system's default browser via `shell.openExternal`.
|
|
@@ -2737,6 +2814,13 @@ export interface Extension {
|
|
|
2737
2814
|
* @param context - Extension context
|
|
2738
2815
|
*/
|
|
2739
2816
|
getSkills?(context: ExtensionContext): SkillDefinition[];
|
|
2817
|
+
/**
|
|
2818
|
+
* Additional project-scoped task states. Built-in IDs cannot be overridden.
|
|
2819
|
+
* Colors must be hex (#RGB, #RGBA, #RRGGBB, #RRGGBBAA); priority is finite and sorts ascending.
|
|
2820
|
+
* IDs must match [A-Za-z0-9][A-Za-z0-9_-]*; names must be non-empty and trimmed.
|
|
2821
|
+
* Call triggerTaskStatesRefresh() after changing definitions outside saveConfigData().
|
|
2822
|
+
*/
|
|
2823
|
+
getTaskStates?(context: ExtensionContext): TaskStateDefinition[];
|
|
2740
2824
|
/**
|
|
2741
2825
|
* Called when a user updates an extension-provided agent profile
|
|
2742
2826
|
* Extension should persist the updated profile and return it from future getAgents() calls
|
|
@@ -2931,6 +3015,8 @@ export interface Extension {
|
|
|
2931
3015
|
* @returns void or partial event to modify tool call
|
|
2932
3016
|
*/
|
|
2933
3017
|
onToolCalled?(event: ToolCalledEvent, context: ExtensionContext): Promise<void | Partial<ToolCalledEvent>>;
|
|
3018
|
+
/** Configure a single approved Power bash execution. Handler errors prevent execution. */
|
|
3019
|
+
onBashExecution?(event: BashExecutionEvent, context: ExtensionContext): Promise<void | Partial<BashExecutionEvent>>;
|
|
2934
3020
|
/**
|
|
2935
3021
|
* Called after tool execution completes
|
|
2936
3022
|
* Use modifiedResult to change the result
|
package/extensions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
export type LlmProviderName = "anthropic" | "anthropic-compatible" | "azure" | "bedrock" | "cerebras" | "clinepass" | "deepseek" | "gemini" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "llmapi" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "opencode-go" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
|
|
3
|
+
export type LlmProviderName = "anthropic" | "anthropic-compatible" | "atlascloud" | "azure" | "bedrock" | "cerebras" | "clinepass" | "deepseek" | "gemini" | "gpustack" | "groq" | "alibaba-plan" | "kimi-plan" | "litellm" | "llmapi" | "lmstudio" | "minimax" | "mistral" | "neuralwatt" | "ollama" | "openai" | "openai-compatible" | "opencode" | "opencode-go" | "openllm" | "openrouter" | "requesty" | "synthetic" | "vertex-ai" | "zai-plan" | string;
|
|
4
4
|
export interface LlmProviderBase {
|
|
5
5
|
name: LlmProviderName;
|
|
6
6
|
disableStreaming?: boolean;
|
|
@@ -187,14 +187,23 @@ export interface SyntheticProvider extends LlmProviderBase {
|
|
|
187
187
|
name: "synthetic";
|
|
188
188
|
apiKey: string;
|
|
189
189
|
}
|
|
190
|
+
export interface AtlasCloudProvider extends LlmProviderBase {
|
|
191
|
+
name: "atlascloud";
|
|
192
|
+
apiKey: string;
|
|
193
|
+
}
|
|
190
194
|
export interface LlmApiProvider extends LlmProviderBase {
|
|
191
195
|
name: "llmapi";
|
|
192
196
|
apiKey: string;
|
|
193
197
|
}
|
|
198
|
+
export interface OpenLlmProvider extends LlmProviderBase {
|
|
199
|
+
name: "openllm";
|
|
200
|
+
baseUrl: string;
|
|
201
|
+
apiKey: string;
|
|
202
|
+
}
|
|
194
203
|
export interface ExtensionLlmProvider extends LlmProviderBase {
|
|
195
204
|
[key: string]: unknown;
|
|
196
205
|
}
|
|
197
|
-
export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | ClinePassProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenCodeGoProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | LlmApiProvider | ExtensionLlmProvider;
|
|
206
|
+
export type LlmProvider = OpenAiProvider | AnthropicProvider | AnthropicCompatibleProvider | AzureProvider | GeminiProvider | VertexAiProvider | LmStudioProvider | BedrockProvider | DeepseekProvider | GroqProvider | GpustackProvider | CerebrasProvider | ClinePassProvider | AlibabaPlanProvider | KimiPlanProvider | OpenAiCompatibleProvider | LitellmProvider | OllamaProvider | OpenCodeProvider | OpenCodeGoProvider | OpenRouterProvider | RequestyProvider | SyntheticProvider | ZaiPlanProvider | MinimaxProvider | MistralProvider | NeuralwattProvider | LlmApiProvider | AtlasCloudProvider | OpenLlmProvider | ExtensionLlmProvider;
|
|
198
207
|
export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
|
|
199
208
|
export type JSONObject = {
|
|
200
209
|
[key: string]: JSONValue;
|
|
@@ -924,12 +933,28 @@ export interface VoiceSession {
|
|
|
924
933
|
model: string;
|
|
925
934
|
idleTimeoutMs: number;
|
|
926
935
|
}
|
|
936
|
+
declare enum McpServerScope {
|
|
937
|
+
/** One connector per task working directory. Use for working-directory-dependent servers to keep worktree tasks isolated. */
|
|
938
|
+
Task = "task",
|
|
939
|
+
/** One connector shared by all tasks of the same project, including worktree tasks (default for stdio servers). */
|
|
940
|
+
Project = "project",
|
|
941
|
+
/** One connector shared across all projects (default for remote url servers). */
|
|
942
|
+
Global = "global"
|
|
943
|
+
}
|
|
927
944
|
export interface McpServerConfig {
|
|
928
945
|
command?: string;
|
|
929
946
|
args?: string[];
|
|
930
947
|
env?: Readonly<Record<string, string>>;
|
|
931
948
|
url?: string;
|
|
932
949
|
headers?: Readonly<Record<string, string>>;
|
|
950
|
+
/**
|
|
951
|
+
* Connector sharing scope. Defaults to `Project` for stdio servers (one shared process per project,
|
|
952
|
+
* reused across the project's tasks and worktrees) and `Global` for remote (url) servers. Set to
|
|
953
|
+
* `Task` for a working-directory-dependent server (e.g. a filesystem server with a relative path) so
|
|
954
|
+
* each worktree task gets its own process in its own working directory; a `${taskDir}` placeholder
|
|
955
|
+
* implies `Task`. An explicit value always wins.
|
|
956
|
+
*/
|
|
957
|
+
scope?: McpServerScope;
|
|
933
958
|
}
|
|
934
959
|
declare enum ModelModality {
|
|
935
960
|
Text = "text",
|
|
@@ -1024,6 +1049,12 @@ export interface CreateTaskParams {
|
|
|
1024
1049
|
workingMode?: WorkingMode;
|
|
1025
1050
|
addInitialContextFiles?: boolean;
|
|
1026
1051
|
}
|
|
1052
|
+
export interface TaskStateDefinition {
|
|
1053
|
+
id: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
color: string;
|
|
1056
|
+
priority: number;
|
|
1057
|
+
}
|
|
1027
1058
|
export interface TodoItem {
|
|
1028
1059
|
name: string;
|
|
1029
1060
|
completed: boolean;
|
|
@@ -1078,6 +1109,22 @@ export interface MemoryEntry {
|
|
|
1078
1109
|
projectId?: string;
|
|
1079
1110
|
timestamp: number;
|
|
1080
1111
|
}
|
|
1112
|
+
export type InputPromptType = "password" | "text" | "confirmation";
|
|
1113
|
+
export interface InputPromptData {
|
|
1114
|
+
id: string;
|
|
1115
|
+
dismissed?: boolean;
|
|
1116
|
+
title?: string;
|
|
1117
|
+
titleParams?: Record<string, string | number>;
|
|
1118
|
+
message: string;
|
|
1119
|
+
messageParams?: Record<string, string | number>;
|
|
1120
|
+
type?: InputPromptType;
|
|
1121
|
+
placeholder?: string;
|
|
1122
|
+
defaultValue?: string;
|
|
1123
|
+
allowRememberSession?: boolean;
|
|
1124
|
+
rememberSessionLabel?: string;
|
|
1125
|
+
confirmLabel?: string;
|
|
1126
|
+
cancelLabel?: string;
|
|
1127
|
+
}
|
|
1081
1128
|
export type SkillLocation = "global" | "project" | "builtin" | "extension";
|
|
1082
1129
|
export interface SkillDefinition {
|
|
1083
1130
|
name: string;
|
|
@@ -1581,12 +1628,30 @@ export interface ToolCalledEvent {
|
|
|
1581
1628
|
input: Record<string, unknown> | undefined;
|
|
1582
1629
|
output?: unknown;
|
|
1583
1630
|
}
|
|
1631
|
+
/** Ephemeral execution configuration, dispatched after bash approval. Never persisted in tool history. */
|
|
1632
|
+
export interface BashExecutionEvent {
|
|
1633
|
+
readonly toolCallId: string;
|
|
1634
|
+
readonly command: string;
|
|
1635
|
+
readonly cwd: string;
|
|
1636
|
+
readonly shell: string;
|
|
1637
|
+
readonly abortSignal?: AbortSignal;
|
|
1638
|
+
/** Trusted shell setup run after shell initialization, never added to persisted command arguments. */
|
|
1639
|
+
commandPrefix?: string;
|
|
1640
|
+
env: Record<string, string | undefined>;
|
|
1641
|
+
/** Register cleanup before allocating resources; runs on completion, failure, cancellation or timeout. */
|
|
1642
|
+
readonly addCleanup: (cleanup: () => void | Promise<void>) => void;
|
|
1643
|
+
}
|
|
1644
|
+
export interface ExtensionInputResponse {
|
|
1645
|
+
value: string | null;
|
|
1646
|
+
rememberSession: boolean;
|
|
1647
|
+
}
|
|
1584
1648
|
/** Event payload for tool finished events */
|
|
1585
1649
|
export interface ToolFinishedEvent {
|
|
1586
1650
|
readonly toolCallId: string;
|
|
1587
1651
|
readonly toolName: string;
|
|
1588
1652
|
readonly agentProfile: AgentProfile;
|
|
1589
1653
|
readonly input: Record<string, unknown> | undefined;
|
|
1654
|
+
readonly abortSignal?: AbortSignal;
|
|
1590
1655
|
output: unknown;
|
|
1591
1656
|
}
|
|
1592
1657
|
/** A tool entry as exposed to extensions in toolset events */
|
|
@@ -1911,6 +1976,14 @@ export interface TaskContext {
|
|
|
1911
1976
|
* @returns Absolute filesystem path to the task's working directory
|
|
1912
1977
|
*/
|
|
1913
1978
|
getTaskDir(): string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Get the directory where this task's data is stored.
|
|
1981
|
+
* This is `<project base dir>/.aider-desk/tasks/<task id>` and is independent of the
|
|
1982
|
+
* task's working directory (worktree or project dir), so files saved here never
|
|
1983
|
+
* pollute the working repository.
|
|
1984
|
+
* @returns Absolute filesystem path to the task's data directory
|
|
1985
|
+
*/
|
|
1986
|
+
getTaskDataDir(): string;
|
|
1914
1987
|
/**
|
|
1915
1988
|
* Get a list of files that can be added to the task's context.
|
|
1916
1989
|
* Returns all files in the task directory that are not already in the context,
|
|
@@ -2481,6 +2554,8 @@ export interface ExtensionContext {
|
|
|
2481
2554
|
* @param type - Log level: 'info' (default), 'error', 'warn', or 'debug'
|
|
2482
2555
|
*/
|
|
2483
2556
|
log(message: string, type?: "info" | "error" | "warn" | "debug"): void;
|
|
2557
|
+
/** Request masked or plain input outside conversation history. Null means cancelled or timed out. */
|
|
2558
|
+
requestInput(prompt: Omit<InputPromptData, "id">, signal?: AbortSignal): Promise<ExtensionInputResponse>;
|
|
2484
2559
|
/**
|
|
2485
2560
|
* Get the current project directory path.
|
|
2486
2561
|
* Only available when the context is created within a project scope (e.g., event handlers,
|
|
@@ -2562,6 +2637,8 @@ export interface ExtensionContext {
|
|
|
2562
2637
|
* No-op if the EventManager is not available.
|
|
2563
2638
|
*/
|
|
2564
2639
|
triggerUIComponentsReload(): void;
|
|
2640
|
+
/** Re-fetch task-state definitions in this context's project, or all projects for a global context. */
|
|
2641
|
+
triggerTaskStatesRefresh(): void;
|
|
2565
2642
|
/**
|
|
2566
2643
|
* Open a URL in the specified target.
|
|
2567
2644
|
* - 'external': Opens in the system's default browser via `shell.openExternal`.
|
|
@@ -2737,6 +2814,13 @@ export interface Extension {
|
|
|
2737
2814
|
* @param context - Extension context
|
|
2738
2815
|
*/
|
|
2739
2816
|
getSkills?(context: ExtensionContext): SkillDefinition[];
|
|
2817
|
+
/**
|
|
2818
|
+
* Additional project-scoped task states. Built-in IDs cannot be overridden.
|
|
2819
|
+
* Colors must be hex (#RGB, #RGBA, #RRGGBB, #RRGGBBAA); priority is finite and sorts ascending.
|
|
2820
|
+
* IDs must match [A-Za-z0-9][A-Za-z0-9_-]*; names must be non-empty and trimmed.
|
|
2821
|
+
* Call triggerTaskStatesRefresh() after changing definitions outside saveConfigData().
|
|
2822
|
+
*/
|
|
2823
|
+
getTaskStates?(context: ExtensionContext): TaskStateDefinition[];
|
|
2740
2824
|
/**
|
|
2741
2825
|
* Called when a user updates an extension-provided agent profile
|
|
2742
2826
|
* Extension should persist the updated profile and return it from future getAgents() calls
|
|
@@ -2931,6 +3015,8 @@ export interface Extension {
|
|
|
2931
3015
|
* @returns void or partial event to modify tool call
|
|
2932
3016
|
*/
|
|
2933
3017
|
onToolCalled?(event: ToolCalledEvent, context: ExtensionContext): Promise<void | Partial<ToolCalledEvent>>;
|
|
3018
|
+
/** Configure a single approved Power bash execution. Handler errors prevent execution. */
|
|
3019
|
+
onBashExecution?(event: BashExecutionEvent, context: ExtensionContext): Promise<void | Partial<BashExecutionEvent>>;
|
|
2934
3020
|
/**
|
|
2935
3021
|
* Called after tool execution completes
|
|
2936
3022
|
* Use modifiedResult to change the result
|
package/extensions.json
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extensions": [
|
|
3
|
+
{
|
|
4
|
+
"id": "custom-task-statuses",
|
|
5
|
+
"name": "Custom Task Statuses",
|
|
6
|
+
"description": "Manage custom task states, colors, and ordering alongside read-only built-in states",
|
|
7
|
+
"folder": "custom-task-statuses",
|
|
8
|
+
"type": "folder",
|
|
9
|
+
"hasDependencies": true,
|
|
10
|
+
"capabilities": [
|
|
11
|
+
"task-states",
|
|
12
|
+
"commands",
|
|
13
|
+
"ui"
|
|
14
|
+
],
|
|
15
|
+
"installCount": 0
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "sudo",
|
|
19
|
+
"name": "Sudo",
|
|
20
|
+
"description": "Linux sudo password dialog with optional in-memory session remembering for Power bash",
|
|
21
|
+
"folder": "sudo",
|
|
22
|
+
"type": "folder",
|
|
23
|
+
"hasDependencies": false,
|
|
24
|
+
"capabilities": [
|
|
25
|
+
"commands",
|
|
26
|
+
"security"
|
|
27
|
+
],
|
|
28
|
+
"installCount": 0
|
|
29
|
+
},
|
|
3
30
|
{
|
|
4
31
|
"id": "opencode-free",
|
|
5
32
|
"name": "OpenCode Free",
|
|
@@ -10,7 +37,7 @@
|
|
|
10
37
|
"capabilities": [
|
|
11
38
|
"providers"
|
|
12
39
|
],
|
|
13
|
-
"installCount":
|
|
40
|
+
"installCount": 11
|
|
14
41
|
},
|
|
15
42
|
{
|
|
16
43
|
"id": "jev",
|
|
@@ -22,7 +49,7 @@
|
|
|
22
49
|
"capabilities": [
|
|
23
50
|
"tools"
|
|
24
51
|
],
|
|
25
|
-
"installCount":
|
|
52
|
+
"installCount": 22
|
|
26
53
|
},
|
|
27
54
|
{
|
|
28
55
|
"id": "binary-files",
|
|
@@ -35,7 +62,7 @@
|
|
|
35
62
|
"tools",
|
|
36
63
|
"ui"
|
|
37
64
|
],
|
|
38
|
-
"installCount":
|
|
65
|
+
"installCount": 50
|
|
39
66
|
},
|
|
40
67
|
{
|
|
41
68
|
"id": "wakatime",
|
|
@@ -83,7 +110,7 @@
|
|
|
83
110
|
"commands",
|
|
84
111
|
"ui"
|
|
85
112
|
],
|
|
86
|
-
"installCount":
|
|
113
|
+
"installCount": 55
|
|
87
114
|
},
|
|
88
115
|
{
|
|
89
116
|
"id": "theme",
|
|
@@ -105,7 +132,7 @@
|
|
|
105
132
|
"capabilities": [
|
|
106
133
|
"modes"
|
|
107
134
|
],
|
|
108
|
-
"installCount":
|
|
135
|
+
"installCount": 134
|
|
109
136
|
},
|
|
110
137
|
{
|
|
111
138
|
"id": "protected-paths",
|
|
@@ -117,7 +144,7 @@
|
|
|
117
144
|
"capabilities": [
|
|
118
145
|
"security"
|
|
119
146
|
],
|
|
120
|
-
"installCount":
|
|
147
|
+
"installCount": 61
|
|
121
148
|
},
|
|
122
149
|
{
|
|
123
150
|
"id": "permission-gate",
|
|
@@ -139,7 +166,7 @@
|
|
|
139
166
|
"capabilities": [
|
|
140
167
|
"optimization"
|
|
141
168
|
],
|
|
142
|
-
"installCount":
|
|
169
|
+
"installCount": 58
|
|
143
170
|
},
|
|
144
171
|
{
|
|
145
172
|
"id": "external-rules",
|
|
@@ -163,7 +190,7 @@
|
|
|
163
190
|
"capabilities": [
|
|
164
191
|
"context"
|
|
165
192
|
],
|
|
166
|
-
"installCount":
|
|
193
|
+
"installCount": 84
|
|
167
194
|
},
|
|
168
195
|
{
|
|
169
196
|
"id": "learn",
|
|
@@ -176,7 +203,7 @@
|
|
|
176
203
|
"commands",
|
|
177
204
|
"tools"
|
|
178
205
|
],
|
|
179
|
-
"installCount":
|
|
206
|
+
"installCount": 115
|
|
180
207
|
},
|
|
181
208
|
{
|
|
182
209
|
"id": "legacy-system-prompt",
|
|
@@ -200,7 +227,7 @@
|
|
|
200
227
|
"capabilities": [
|
|
201
228
|
"notifications"
|
|
202
229
|
],
|
|
203
|
-
"installCount":
|
|
230
|
+
"installCount": 40
|
|
204
231
|
},
|
|
205
232
|
{
|
|
206
233
|
"id": "sandbox",
|
|
@@ -233,7 +260,7 @@
|
|
|
233
260
|
"linux",
|
|
234
261
|
"macos"
|
|
235
262
|
],
|
|
236
|
-
"installCount":
|
|
263
|
+
"installCount": 38
|
|
237
264
|
},
|
|
238
265
|
{
|
|
239
266
|
"id": "redact-secrets",
|
|
@@ -245,7 +272,7 @@
|
|
|
245
272
|
"capabilities": [
|
|
246
273
|
"security"
|
|
247
274
|
],
|
|
248
|
-
"installCount":
|
|
275
|
+
"installCount": 35
|
|
249
276
|
},
|
|
250
277
|
{
|
|
251
278
|
"id": "chunkhound-search",
|
|
@@ -282,7 +309,7 @@
|
|
|
282
309
|
"context",
|
|
283
310
|
"commands"
|
|
284
311
|
],
|
|
285
|
-
"installCount":
|
|
312
|
+
"installCount": 91
|
|
286
313
|
},
|
|
287
314
|
{
|
|
288
315
|
"id": "context-autocompletion-words",
|
|
@@ -294,7 +321,7 @@
|
|
|
294
321
|
"capabilities": [
|
|
295
322
|
"context"
|
|
296
323
|
],
|
|
297
|
-
"installCount":
|
|
324
|
+
"installCount": 30
|
|
298
325
|
},
|
|
299
326
|
{
|
|
300
327
|
"id": "lsp",
|
|
@@ -307,7 +334,7 @@
|
|
|
307
334
|
"tools",
|
|
308
335
|
"code-intelligence"
|
|
309
336
|
],
|
|
310
|
-
"installCount":
|
|
337
|
+
"installCount": 100
|
|
311
338
|
},
|
|
312
339
|
{
|
|
313
340
|
"id": "plannotator",
|
|
@@ -322,7 +349,7 @@
|
|
|
322
349
|
"commands",
|
|
323
350
|
"workflows"
|
|
324
351
|
],
|
|
325
|
-
"installCount":
|
|
352
|
+
"installCount": 31
|
|
326
353
|
},
|
|
327
354
|
{
|
|
328
355
|
"id": "programmatic-tool-calls",
|
|
@@ -334,7 +361,7 @@
|
|
|
334
361
|
"capabilities": [
|
|
335
362
|
"tools"
|
|
336
363
|
],
|
|
337
|
-
"installCount":
|
|
364
|
+
"installCount": 46
|
|
338
365
|
},
|
|
339
366
|
{
|
|
340
367
|
"id": "ui-placement-demo",
|
|
@@ -346,7 +373,7 @@
|
|
|
346
373
|
"ui",
|
|
347
374
|
"example"
|
|
348
375
|
],
|
|
349
|
-
"installCount":
|
|
376
|
+
"installCount": 22
|
|
350
377
|
},
|
|
351
378
|
{
|
|
352
379
|
"id": "multi-model-run",
|
|
@@ -359,7 +386,7 @@
|
|
|
359
386
|
"ui",
|
|
360
387
|
"workflows"
|
|
361
388
|
],
|
|
362
|
-
"installCount":
|
|
389
|
+
"installCount": 19
|
|
363
390
|
},
|
|
364
391
|
{
|
|
365
392
|
"id": "providers-quota-extension",
|
|
@@ -383,7 +410,7 @@
|
|
|
383
410
|
"capabilities": [
|
|
384
411
|
"providers"
|
|
385
412
|
],
|
|
386
|
-
"installCount":
|
|
413
|
+
"installCount": 42
|
|
387
414
|
},
|
|
388
415
|
{
|
|
389
416
|
"id": "fff",
|
|
@@ -400,7 +427,7 @@
|
|
|
400
427
|
"linux",
|
|
401
428
|
"macos"
|
|
402
429
|
],
|
|
403
|
-
"installCount":
|
|
430
|
+
"installCount": 51
|
|
404
431
|
},
|
|
405
432
|
{
|
|
406
433
|
"id": "searxng-search",
|
|
@@ -413,7 +440,7 @@
|
|
|
413
440
|
"tools",
|
|
414
441
|
"search"
|
|
415
442
|
],
|
|
416
|
-
"installCount":
|
|
443
|
+
"installCount": 37
|
|
417
444
|
},
|
|
418
445
|
{
|
|
419
446
|
"id": "seek",
|
|
@@ -430,7 +457,7 @@
|
|
|
430
457
|
"linux",
|
|
431
458
|
"macos"
|
|
432
459
|
],
|
|
433
|
-
"installCount":
|
|
460
|
+
"installCount": 21
|
|
434
461
|
},
|
|
435
462
|
{
|
|
436
463
|
"id": "tps-counter",
|
|
@@ -442,7 +469,7 @@
|
|
|
442
469
|
"capabilities": [
|
|
443
470
|
"metrics"
|
|
444
471
|
],
|
|
445
|
-
"installCount":
|
|
472
|
+
"installCount": 126
|
|
446
473
|
},
|
|
447
474
|
{
|
|
448
475
|
"id": "verifier",
|
|
@@ -455,7 +482,7 @@
|
|
|
455
482
|
"workflows",
|
|
456
483
|
"ui"
|
|
457
484
|
],
|
|
458
|
-
"installCount":
|
|
485
|
+
"installCount": 70
|
|
459
486
|
},
|
|
460
487
|
{
|
|
461
488
|
"id": "bmad",
|
|
@@ -468,7 +495,7 @@
|
|
|
468
495
|
"modes",
|
|
469
496
|
"ui"
|
|
470
497
|
],
|
|
471
|
-
"installCount":
|
|
498
|
+
"installCount": 20
|
|
472
499
|
},
|
|
473
500
|
{
|
|
474
501
|
"id": "claude-agent-sdk",
|
|
@@ -481,7 +508,7 @@
|
|
|
481
508
|
"providers",
|
|
482
509
|
"agent-loop"
|
|
483
510
|
],
|
|
484
|
-
"installCount":
|
|
511
|
+
"installCount": 31
|
|
485
512
|
},
|
|
486
513
|
{
|
|
487
514
|
"id": "auggie-sdk",
|
|
@@ -544,7 +571,7 @@
|
|
|
544
571
|
"events",
|
|
545
572
|
"ui"
|
|
546
573
|
],
|
|
547
|
-
"installCount":
|
|
574
|
+
"installCount": 46
|
|
548
575
|
},
|
|
549
576
|
{
|
|
550
577
|
"id": "codegraph",
|
|
@@ -557,7 +584,7 @@
|
|
|
557
584
|
"tools",
|
|
558
585
|
"search"
|
|
559
586
|
],
|
|
560
|
-
"installCount":
|
|
587
|
+
"installCount": 96
|
|
561
588
|
},
|
|
562
589
|
{
|
|
563
590
|
"id": "kanban",
|
|
@@ -569,7 +596,7 @@
|
|
|
569
596
|
"capabilities": [
|
|
570
597
|
"ui"
|
|
571
598
|
],
|
|
572
|
-
"installCount":
|
|
599
|
+
"installCount": 60
|
|
573
600
|
},
|
|
574
601
|
{
|
|
575
602
|
"id": "doom",
|
|
@@ -594,7 +621,7 @@
|
|
|
594
621
|
"agents",
|
|
595
622
|
"example"
|
|
596
623
|
],
|
|
597
|
-
"installCount":
|
|
624
|
+
"installCount": 79
|
|
598
625
|
},
|
|
599
626
|
{
|
|
600
627
|
"id": "wigolo",
|
|
@@ -607,7 +634,7 @@
|
|
|
607
634
|
"tools",
|
|
608
635
|
"search"
|
|
609
636
|
],
|
|
610
|
-
"installCount":
|
|
637
|
+
"installCount": 77
|
|
611
638
|
},
|
|
612
639
|
{
|
|
613
640
|
"id": "destructive-command-guard",
|
|
@@ -632,7 +659,7 @@
|
|
|
632
659
|
"capabilities": [
|
|
633
660
|
"ui"
|
|
634
661
|
],
|
|
635
|
-
"installCount":
|
|
662
|
+
"installCount": 64
|
|
636
663
|
},
|
|
637
664
|
{
|
|
638
665
|
"id": "skill-gallery",
|
|
@@ -644,7 +671,7 @@
|
|
|
644
671
|
"capabilities": [
|
|
645
672
|
"ui"
|
|
646
673
|
],
|
|
647
|
-
"installCount":
|
|
674
|
+
"installCount": 186
|
|
648
675
|
},
|
|
649
676
|
{
|
|
650
677
|
"id": "task-scheduler",
|
|
@@ -658,7 +685,7 @@
|
|
|
658
685
|
"commands",
|
|
659
686
|
"events"
|
|
660
687
|
],
|
|
661
|
-
"installCount":
|
|
688
|
+
"installCount": 36
|
|
662
689
|
},
|
|
663
690
|
{
|
|
664
691
|
"id": "reasoning-selector",
|
|
@@ -670,7 +697,7 @@
|
|
|
670
697
|
"capabilities": [
|
|
671
698
|
"ui"
|
|
672
699
|
],
|
|
673
|
-
"installCount":
|
|
700
|
+
"installCount": 163
|
|
674
701
|
},
|
|
675
702
|
{
|
|
676
703
|
"id": "dbx",
|
|
@@ -682,7 +709,7 @@
|
|
|
682
709
|
"capabilities": [
|
|
683
710
|
"ui"
|
|
684
711
|
],
|
|
685
|
-
"installCount":
|
|
712
|
+
"installCount": 5
|
|
686
713
|
},
|
|
687
714
|
{
|
|
688
715
|
"id": "compaction-studio",
|
|
@@ -695,7 +722,7 @@
|
|
|
695
722
|
"ui",
|
|
696
723
|
"commands"
|
|
697
724
|
],
|
|
698
|
-
"installCount":
|
|
725
|
+
"installCount": 26
|
|
699
726
|
}
|
|
700
727
|
]
|
|
701
728
|
}
|