@aiderdesk/extensions 0.35.0 → 0.37.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 +107 -5
- package/extensions.d.ts +107 -5
- package/extensions.json +87 -49
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -356,7 +356,7 @@ export declare enum ContextMemoryMode {
|
|
|
356
356
|
FullContext = "full-context",
|
|
357
357
|
LastMessage = "last-message"
|
|
358
358
|
}
|
|
359
|
-
export interface
|
|
359
|
+
export interface UncommittedFiles {
|
|
360
360
|
count: number;
|
|
361
361
|
files: string[];
|
|
362
362
|
}
|
|
@@ -364,7 +364,7 @@ export interface ModeDefinition {
|
|
|
364
364
|
name: Mode;
|
|
365
365
|
label: string;
|
|
366
366
|
description?: string;
|
|
367
|
-
/**
|
|
367
|
+
/** Full react-icons component name including pack prefix (e.g., 'FiTerminal', 'GoCodeReview') */
|
|
368
368
|
icon?: string;
|
|
369
369
|
}
|
|
370
370
|
export type Mode = string;
|
|
@@ -614,6 +614,7 @@ export interface AgentProfile {
|
|
|
614
614
|
useTaskTools: boolean;
|
|
615
615
|
useMemoryTools: boolean;
|
|
616
616
|
useSkillsTools: boolean;
|
|
617
|
+
useAgentMemoryScope?: boolean;
|
|
617
618
|
useExtensionTools: boolean;
|
|
618
619
|
disabledExtensionTools: string[];
|
|
619
620
|
customInstructions: string;
|
|
@@ -750,6 +751,8 @@ export interface TaskSettings {
|
|
|
750
751
|
taskStateModel?: string | null;
|
|
751
752
|
commitMessageModel?: string | null;
|
|
752
753
|
defaultWorkingMode: WorkingMode;
|
|
754
|
+
defaultTaskMode?: Mode | "last";
|
|
755
|
+
defaultProjectMode?: Mode;
|
|
753
756
|
worktreeBranchPrefix: string;
|
|
754
757
|
renameBranchOnNameGeneration: boolean;
|
|
755
758
|
}
|
|
@@ -777,6 +780,7 @@ export interface SettingsData {
|
|
|
777
780
|
aiderDeskAutoUpdate: boolean;
|
|
778
781
|
diffViewMode?: DiffViewMode;
|
|
779
782
|
messageViewMode?: MessageViewMode;
|
|
783
|
+
showMessageMap?: boolean;
|
|
780
784
|
aider: {
|
|
781
785
|
options: string;
|
|
782
786
|
environmentVariables: string;
|
|
@@ -1056,9 +1060,13 @@ export interface ToolResult {
|
|
|
1056
1060
|
* 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.
|
|
1057
1061
|
*
|
|
1058
1062
|
* @execute - Optional execute function. If not provided, the tool has other unsupported means of execution.
|
|
1063
|
+
* @description - Optional tool description as provided to the LLM.
|
|
1064
|
+
* @inputSchema - Optional input schema of the tool (zod schema or JSON schema, depending on the tool origin).
|
|
1059
1065
|
*/
|
|
1060
1066
|
export interface Tool {
|
|
1061
1067
|
execute?: (input: Record<string, unknown>) => Promise<unknown>;
|
|
1068
|
+
description?: string;
|
|
1069
|
+
inputSchema?: unknown;
|
|
1062
1070
|
}
|
|
1063
1071
|
/**
|
|
1064
1072
|
* Definition of a tool that can be registered by an extension
|
|
@@ -1415,6 +1423,26 @@ export interface ToolFinishedEvent {
|
|
|
1415
1423
|
readonly input: Record<string, unknown> | undefined;
|
|
1416
1424
|
output: unknown;
|
|
1417
1425
|
}
|
|
1426
|
+
/** A tool entry as exposed to extensions in toolset events */
|
|
1427
|
+
export interface ToolsetToolEntry {
|
|
1428
|
+
description?: string;
|
|
1429
|
+
inputSchema?: unknown;
|
|
1430
|
+
execute?(input: Record<string, unknown>, options?: unknown): Promise<unknown>;
|
|
1431
|
+
}
|
|
1432
|
+
/** Event payload for toolset created events */
|
|
1433
|
+
export interface ToolsetCreatedEvent {
|
|
1434
|
+
readonly mode: Mode;
|
|
1435
|
+
readonly agentProfile: AgentProfile;
|
|
1436
|
+
readonly providerProfile: ProviderProfile;
|
|
1437
|
+
readonly model: string;
|
|
1438
|
+
readonly promptContext?: PromptContext;
|
|
1439
|
+
/**
|
|
1440
|
+
* The complete toolset (built-in, MCP, and extension tools) for the agent run.
|
|
1441
|
+
* Return `{ tools }` with a new record to replace it (e.g. to add or remove tools).
|
|
1442
|
+
* Return a new record instead of mutating - when multiple extensions return tools, the last one wins.
|
|
1443
|
+
*/
|
|
1444
|
+
tools: Record<string, ToolsetToolEntry>;
|
|
1445
|
+
}
|
|
1418
1446
|
/** Event payload for files added events */
|
|
1419
1447
|
export interface FilesAddedEvent {
|
|
1420
1448
|
files: ContextFile[];
|
|
@@ -1506,6 +1534,7 @@ export interface InterruptedEvent {
|
|
|
1506
1534
|
export interface BeforeCommitEvent {
|
|
1507
1535
|
message: string;
|
|
1508
1536
|
amend: boolean;
|
|
1537
|
+
skipGitHooks?: boolean;
|
|
1509
1538
|
blocked?: boolean;
|
|
1510
1539
|
}
|
|
1511
1540
|
/** Event payload for after commit events */
|
|
@@ -1522,6 +1551,51 @@ export interface QuestionOptions {
|
|
|
1522
1551
|
}>;
|
|
1523
1552
|
defaultAnswer?: string;
|
|
1524
1553
|
}
|
|
1554
|
+
/** Selection of individual smart compaction passes. Omitted flags default to true. */
|
|
1555
|
+
export interface SmartCompactionPasses {
|
|
1556
|
+
/** Remove errored/no-op power tool calls */
|
|
1557
|
+
erroredTools?: boolean;
|
|
1558
|
+
/** Collapse repeated file edit/write calls into <file-edited> markers */
|
|
1559
|
+
fileEdits?: boolean;
|
|
1560
|
+
/** Remove file reads that precede later edits of the same file */
|
|
1561
|
+
staleFileReads?: boolean;
|
|
1562
|
+
/** Truncate/redact file read outputs */
|
|
1563
|
+
fileReads?: boolean;
|
|
1564
|
+
/** Remove glob/grep searches made obsolete by later edits */
|
|
1565
|
+
searches?: boolean;
|
|
1566
|
+
/** Remove/deduplicate semantic search results */
|
|
1567
|
+
semanticSearches?: boolean;
|
|
1568
|
+
/** Deduplicate bash commands and redact their outputs */
|
|
1569
|
+
bash?: boolean;
|
|
1570
|
+
/** Redact fetch outputs */
|
|
1571
|
+
fetch?: boolean;
|
|
1572
|
+
/** Truncate results of non-power (MCP/extension) tools */
|
|
1573
|
+
otherTools?: boolean;
|
|
1574
|
+
/** Remove tool calls with verbose inputs */
|
|
1575
|
+
verboseToolCalls?: boolean;
|
|
1576
|
+
/** Remove reasoning parts from assistant messages */
|
|
1577
|
+
reasoning?: boolean;
|
|
1578
|
+
}
|
|
1579
|
+
/** Options for manual smart compaction of the task context. */
|
|
1580
|
+
export interface SmartCompactionOptions {
|
|
1581
|
+
/** Number of most-recent messages protected from compaction (default: 10) */
|
|
1582
|
+
protectedMessageCount?: number;
|
|
1583
|
+
/** Compaction level 1 (mild) to 5 (max). Omit to keep the automatic level. */
|
|
1584
|
+
compactionLevel?: number;
|
|
1585
|
+
/** Which compaction passes to run. Omitted = all passes enabled. */
|
|
1586
|
+
passes?: SmartCompactionPasses;
|
|
1587
|
+
}
|
|
1588
|
+
/** Result of a smart compaction run. */
|
|
1589
|
+
export interface SmartCompactionResult {
|
|
1590
|
+
/** Context message count before compaction */
|
|
1591
|
+
messagesBefore: number;
|
|
1592
|
+
/** Context message count after compaction */
|
|
1593
|
+
messagesAfter: number;
|
|
1594
|
+
/** Estimated next-prompt token count before compaction */
|
|
1595
|
+
tokensBefore: number;
|
|
1596
|
+
/** Estimated next-prompt token count after compaction */
|
|
1597
|
+
tokensAfter: number;
|
|
1598
|
+
}
|
|
1525
1599
|
/**
|
|
1526
1600
|
* Safe subset of Task capabilities exposed to extensions.
|
|
1527
1601
|
* Provides read-only access to task data and safe operations.
|
|
@@ -1863,6 +1937,20 @@ export interface TaskContext {
|
|
|
1863
1937
|
* @param instructions - Optional custom instructions to guide the compaction process
|
|
1864
1938
|
*/
|
|
1865
1939
|
compactConversation(instructions?: string): Promise<void>;
|
|
1940
|
+
/**
|
|
1941
|
+
* Run smart (rule-based) compaction on the task's context with manual controls.
|
|
1942
|
+
* Backs up the current context (undoable), applies the selected compaction passes,
|
|
1943
|
+
* reloads the UI and connectors, and refreshes the context info.
|
|
1944
|
+
* @param options - Optional settings: protected message window, compaction level (1-5), and pass selection
|
|
1945
|
+
* @returns Message and estimated token counts before and after compaction
|
|
1946
|
+
*/
|
|
1947
|
+
smartCompact(options?: SmartCompactionOptions): Promise<SmartCompactionResult>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Estimate the number of tokens the next agent prompt would use
|
|
1950
|
+
* (system prompt, tools, context messages, and context files included).
|
|
1951
|
+
* @returns Estimated token count, or 0 if no agent profile is configured
|
|
1952
|
+
*/
|
|
1953
|
+
getEstimatedTokens(): Promise<number>;
|
|
1866
1954
|
/**
|
|
1867
1955
|
* Generate a markdown representation of the context messages in the context manager.
|
|
1868
1956
|
* Formats user and assistant messages as text, and tool messages with tool name and JSON result.
|
|
@@ -1949,7 +2037,7 @@ export interface TaskContext {
|
|
|
1949
2037
|
* Get uncommitted files from the project's main repository (not from a worktree).
|
|
1950
2038
|
* @returns Object containing arrays of unstaged, staged, and untracked file paths
|
|
1951
2039
|
*/
|
|
1952
|
-
getLocalUncommittedFiles(): Promise<
|
|
2040
|
+
getLocalUncommittedFiles(): Promise<UncommittedFiles>;
|
|
1953
2041
|
/**
|
|
1954
2042
|
* Apply uncommitted changes from the task's worktree to the branch currently checked out
|
|
1955
2043
|
* in the main repository, without merging commits or switching branches.
|
|
@@ -2237,6 +2325,12 @@ export interface ExtensionContext {
|
|
|
2237
2325
|
* @throws Error if the Store is not available
|
|
2238
2326
|
*/
|
|
2239
2327
|
getSetting(key: string): Promise<unknown>;
|
|
2328
|
+
/**
|
|
2329
|
+
* Get the configured provider profiles (LLM provider settings including API keys).
|
|
2330
|
+
* Results are read-only snapshots from the ModelManager; empty array when not available.
|
|
2331
|
+
* @returns Array of ProviderProfile currently configured by the user
|
|
2332
|
+
*/
|
|
2333
|
+
getProviders(): ProviderProfile[];
|
|
2240
2334
|
/**
|
|
2241
2335
|
* Get the merged MCP server configurations (global servers overridden by project-specific ones)
|
|
2242
2336
|
* available for the current project context. Returns an empty object if no project context is
|
|
@@ -2326,14 +2420,16 @@ export interface ExtensionContext {
|
|
|
2326
2420
|
export interface MemoryContext {
|
|
2327
2421
|
/**
|
|
2328
2422
|
* Store a new memory entry
|
|
2423
|
+
* @param scopeId - Memory scope: the project directory, or `agent-profile:{profileId}` when the agent profile has memory isolation (`useAgentMemoryScope`) enabled
|
|
2329
2424
|
* @returns The ID of the created memory
|
|
2330
2425
|
*/
|
|
2331
|
-
storeMemory(
|
|
2426
|
+
storeMemory(scopeId: string, taskId: string, type: MemoryEntryType, content: string): Promise<string>;
|
|
2332
2427
|
/**
|
|
2333
2428
|
* Retrieve memories by semantic similarity
|
|
2429
|
+
* @param scopeId - Memory scope: the project directory, or `agent-profile:{profileId}` when the agent profile has memory isolation (`useAgentMemoryScope`) enabled
|
|
2334
2430
|
* @returns Array of matching memory entries, ranked by relevance
|
|
2335
2431
|
*/
|
|
2336
|
-
retrieveMemories(
|
|
2432
|
+
retrieveMemories(scopeId: string, query: string, limit?: number): Promise<MemoryEntry[]>;
|
|
2337
2433
|
/**
|
|
2338
2434
|
* Get a single memory by ID
|
|
2339
2435
|
*/
|
|
@@ -2626,6 +2722,12 @@ export interface Extension {
|
|
|
2626
2722
|
* @returns void or partial event to modify result
|
|
2627
2723
|
*/
|
|
2628
2724
|
onToolFinished?(event: ToolFinishedEvent, context: ExtensionContext): Promise<void | Partial<ToolFinishedEvent>>;
|
|
2725
|
+
/**
|
|
2726
|
+
* Called after the complete toolset for an agent run has been created (built-in, MCP, and extension tools)
|
|
2727
|
+
* Return { tools } with a new record to replace the toolset (e.g. to add or remove tools)
|
|
2728
|
+
* @returns void or partial event to modify the toolset
|
|
2729
|
+
*/
|
|
2730
|
+
onToolsetCreated?(event: ToolsetCreatedEvent, context: ExtensionContext): Promise<void | Partial<ToolsetCreatedEvent>>;
|
|
2629
2731
|
/**
|
|
2630
2732
|
* Called when files are added to context
|
|
2631
2733
|
* Modify event.files to filter, add, or clear files (return empty array to prevent addition)
|
package/extensions.d.ts
CHANGED
|
@@ -356,7 +356,7 @@ export declare enum ContextMemoryMode {
|
|
|
356
356
|
FullContext = "full-context",
|
|
357
357
|
LastMessage = "last-message"
|
|
358
358
|
}
|
|
359
|
-
export interface
|
|
359
|
+
export interface UncommittedFiles {
|
|
360
360
|
count: number;
|
|
361
361
|
files: string[];
|
|
362
362
|
}
|
|
@@ -364,7 +364,7 @@ export interface ModeDefinition {
|
|
|
364
364
|
name: Mode;
|
|
365
365
|
label: string;
|
|
366
366
|
description?: string;
|
|
367
|
-
/**
|
|
367
|
+
/** Full react-icons component name including pack prefix (e.g., 'FiTerminal', 'GoCodeReview') */
|
|
368
368
|
icon?: string;
|
|
369
369
|
}
|
|
370
370
|
export type Mode = string;
|
|
@@ -614,6 +614,7 @@ export interface AgentProfile {
|
|
|
614
614
|
useTaskTools: boolean;
|
|
615
615
|
useMemoryTools: boolean;
|
|
616
616
|
useSkillsTools: boolean;
|
|
617
|
+
useAgentMemoryScope?: boolean;
|
|
617
618
|
useExtensionTools: boolean;
|
|
618
619
|
disabledExtensionTools: string[];
|
|
619
620
|
customInstructions: string;
|
|
@@ -750,6 +751,8 @@ export interface TaskSettings {
|
|
|
750
751
|
taskStateModel?: string | null;
|
|
751
752
|
commitMessageModel?: string | null;
|
|
752
753
|
defaultWorkingMode: WorkingMode;
|
|
754
|
+
defaultTaskMode?: Mode | "last";
|
|
755
|
+
defaultProjectMode?: Mode;
|
|
753
756
|
worktreeBranchPrefix: string;
|
|
754
757
|
renameBranchOnNameGeneration: boolean;
|
|
755
758
|
}
|
|
@@ -777,6 +780,7 @@ export interface SettingsData {
|
|
|
777
780
|
aiderDeskAutoUpdate: boolean;
|
|
778
781
|
diffViewMode?: DiffViewMode;
|
|
779
782
|
messageViewMode?: MessageViewMode;
|
|
783
|
+
showMessageMap?: boolean;
|
|
780
784
|
aider: {
|
|
781
785
|
options: string;
|
|
782
786
|
environmentVariables: string;
|
|
@@ -1056,9 +1060,13 @@ export interface ToolResult {
|
|
|
1056
1060
|
* 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.
|
|
1057
1061
|
*
|
|
1058
1062
|
* @execute - Optional execute function. If not provided, the tool has other unsupported means of execution.
|
|
1063
|
+
* @description - Optional tool description as provided to the LLM.
|
|
1064
|
+
* @inputSchema - Optional input schema of the tool (zod schema or JSON schema, depending on the tool origin).
|
|
1059
1065
|
*/
|
|
1060
1066
|
export interface Tool {
|
|
1061
1067
|
execute?: (input: Record<string, unknown>) => Promise<unknown>;
|
|
1068
|
+
description?: string;
|
|
1069
|
+
inputSchema?: unknown;
|
|
1062
1070
|
}
|
|
1063
1071
|
/**
|
|
1064
1072
|
* Definition of a tool that can be registered by an extension
|
|
@@ -1415,6 +1423,26 @@ export interface ToolFinishedEvent {
|
|
|
1415
1423
|
readonly input: Record<string, unknown> | undefined;
|
|
1416
1424
|
output: unknown;
|
|
1417
1425
|
}
|
|
1426
|
+
/** A tool entry as exposed to extensions in toolset events */
|
|
1427
|
+
export interface ToolsetToolEntry {
|
|
1428
|
+
description?: string;
|
|
1429
|
+
inputSchema?: unknown;
|
|
1430
|
+
execute?(input: Record<string, unknown>, options?: unknown): Promise<unknown>;
|
|
1431
|
+
}
|
|
1432
|
+
/** Event payload for toolset created events */
|
|
1433
|
+
export interface ToolsetCreatedEvent {
|
|
1434
|
+
readonly mode: Mode;
|
|
1435
|
+
readonly agentProfile: AgentProfile;
|
|
1436
|
+
readonly providerProfile: ProviderProfile;
|
|
1437
|
+
readonly model: string;
|
|
1438
|
+
readonly promptContext?: PromptContext;
|
|
1439
|
+
/**
|
|
1440
|
+
* The complete toolset (built-in, MCP, and extension tools) for the agent run.
|
|
1441
|
+
* Return `{ tools }` with a new record to replace it (e.g. to add or remove tools).
|
|
1442
|
+
* Return a new record instead of mutating - when multiple extensions return tools, the last one wins.
|
|
1443
|
+
*/
|
|
1444
|
+
tools: Record<string, ToolsetToolEntry>;
|
|
1445
|
+
}
|
|
1418
1446
|
/** Event payload for files added events */
|
|
1419
1447
|
export interface FilesAddedEvent {
|
|
1420
1448
|
files: ContextFile[];
|
|
@@ -1506,6 +1534,7 @@ export interface InterruptedEvent {
|
|
|
1506
1534
|
export interface BeforeCommitEvent {
|
|
1507
1535
|
message: string;
|
|
1508
1536
|
amend: boolean;
|
|
1537
|
+
skipGitHooks?: boolean;
|
|
1509
1538
|
blocked?: boolean;
|
|
1510
1539
|
}
|
|
1511
1540
|
/** Event payload for after commit events */
|
|
@@ -1522,6 +1551,51 @@ export interface QuestionOptions {
|
|
|
1522
1551
|
}>;
|
|
1523
1552
|
defaultAnswer?: string;
|
|
1524
1553
|
}
|
|
1554
|
+
/** Selection of individual smart compaction passes. Omitted flags default to true. */
|
|
1555
|
+
export interface SmartCompactionPasses {
|
|
1556
|
+
/** Remove errored/no-op power tool calls */
|
|
1557
|
+
erroredTools?: boolean;
|
|
1558
|
+
/** Collapse repeated file edit/write calls into <file-edited> markers */
|
|
1559
|
+
fileEdits?: boolean;
|
|
1560
|
+
/** Remove file reads that precede later edits of the same file */
|
|
1561
|
+
staleFileReads?: boolean;
|
|
1562
|
+
/** Truncate/redact file read outputs */
|
|
1563
|
+
fileReads?: boolean;
|
|
1564
|
+
/** Remove glob/grep searches made obsolete by later edits */
|
|
1565
|
+
searches?: boolean;
|
|
1566
|
+
/** Remove/deduplicate semantic search results */
|
|
1567
|
+
semanticSearches?: boolean;
|
|
1568
|
+
/** Deduplicate bash commands and redact their outputs */
|
|
1569
|
+
bash?: boolean;
|
|
1570
|
+
/** Redact fetch outputs */
|
|
1571
|
+
fetch?: boolean;
|
|
1572
|
+
/** Truncate results of non-power (MCP/extension) tools */
|
|
1573
|
+
otherTools?: boolean;
|
|
1574
|
+
/** Remove tool calls with verbose inputs */
|
|
1575
|
+
verboseToolCalls?: boolean;
|
|
1576
|
+
/** Remove reasoning parts from assistant messages */
|
|
1577
|
+
reasoning?: boolean;
|
|
1578
|
+
}
|
|
1579
|
+
/** Options for manual smart compaction of the task context. */
|
|
1580
|
+
export interface SmartCompactionOptions {
|
|
1581
|
+
/** Number of most-recent messages protected from compaction (default: 10) */
|
|
1582
|
+
protectedMessageCount?: number;
|
|
1583
|
+
/** Compaction level 1 (mild) to 5 (max). Omit to keep the automatic level. */
|
|
1584
|
+
compactionLevel?: number;
|
|
1585
|
+
/** Which compaction passes to run. Omitted = all passes enabled. */
|
|
1586
|
+
passes?: SmartCompactionPasses;
|
|
1587
|
+
}
|
|
1588
|
+
/** Result of a smart compaction run. */
|
|
1589
|
+
export interface SmartCompactionResult {
|
|
1590
|
+
/** Context message count before compaction */
|
|
1591
|
+
messagesBefore: number;
|
|
1592
|
+
/** Context message count after compaction */
|
|
1593
|
+
messagesAfter: number;
|
|
1594
|
+
/** Estimated next-prompt token count before compaction */
|
|
1595
|
+
tokensBefore: number;
|
|
1596
|
+
/** Estimated next-prompt token count after compaction */
|
|
1597
|
+
tokensAfter: number;
|
|
1598
|
+
}
|
|
1525
1599
|
/**
|
|
1526
1600
|
* Safe subset of Task capabilities exposed to extensions.
|
|
1527
1601
|
* Provides read-only access to task data and safe operations.
|
|
@@ -1863,6 +1937,20 @@ export interface TaskContext {
|
|
|
1863
1937
|
* @param instructions - Optional custom instructions to guide the compaction process
|
|
1864
1938
|
*/
|
|
1865
1939
|
compactConversation(instructions?: string): Promise<void>;
|
|
1940
|
+
/**
|
|
1941
|
+
* Run smart (rule-based) compaction on the task's context with manual controls.
|
|
1942
|
+
* Backs up the current context (undoable), applies the selected compaction passes,
|
|
1943
|
+
* reloads the UI and connectors, and refreshes the context info.
|
|
1944
|
+
* @param options - Optional settings: protected message window, compaction level (1-5), and pass selection
|
|
1945
|
+
* @returns Message and estimated token counts before and after compaction
|
|
1946
|
+
*/
|
|
1947
|
+
smartCompact(options?: SmartCompactionOptions): Promise<SmartCompactionResult>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Estimate the number of tokens the next agent prompt would use
|
|
1950
|
+
* (system prompt, tools, context messages, and context files included).
|
|
1951
|
+
* @returns Estimated token count, or 0 if no agent profile is configured
|
|
1952
|
+
*/
|
|
1953
|
+
getEstimatedTokens(): Promise<number>;
|
|
1866
1954
|
/**
|
|
1867
1955
|
* Generate a markdown representation of the context messages in the context manager.
|
|
1868
1956
|
* Formats user and assistant messages as text, and tool messages with tool name and JSON result.
|
|
@@ -1949,7 +2037,7 @@ export interface TaskContext {
|
|
|
1949
2037
|
* Get uncommitted files from the project's main repository (not from a worktree).
|
|
1950
2038
|
* @returns Object containing arrays of unstaged, staged, and untracked file paths
|
|
1951
2039
|
*/
|
|
1952
|
-
getLocalUncommittedFiles(): Promise<
|
|
2040
|
+
getLocalUncommittedFiles(): Promise<UncommittedFiles>;
|
|
1953
2041
|
/**
|
|
1954
2042
|
* Apply uncommitted changes from the task's worktree to the branch currently checked out
|
|
1955
2043
|
* in the main repository, without merging commits or switching branches.
|
|
@@ -2237,6 +2325,12 @@ export interface ExtensionContext {
|
|
|
2237
2325
|
* @throws Error if the Store is not available
|
|
2238
2326
|
*/
|
|
2239
2327
|
getSetting(key: string): Promise<unknown>;
|
|
2328
|
+
/**
|
|
2329
|
+
* Get the configured provider profiles (LLM provider settings including API keys).
|
|
2330
|
+
* Results are read-only snapshots from the ModelManager; empty array when not available.
|
|
2331
|
+
* @returns Array of ProviderProfile currently configured by the user
|
|
2332
|
+
*/
|
|
2333
|
+
getProviders(): ProviderProfile[];
|
|
2240
2334
|
/**
|
|
2241
2335
|
* Get the merged MCP server configurations (global servers overridden by project-specific ones)
|
|
2242
2336
|
* available for the current project context. Returns an empty object if no project context is
|
|
@@ -2326,14 +2420,16 @@ export interface ExtensionContext {
|
|
|
2326
2420
|
export interface MemoryContext {
|
|
2327
2421
|
/**
|
|
2328
2422
|
* Store a new memory entry
|
|
2423
|
+
* @param scopeId - Memory scope: the project directory, or `agent-profile:{profileId}` when the agent profile has memory isolation (`useAgentMemoryScope`) enabled
|
|
2329
2424
|
* @returns The ID of the created memory
|
|
2330
2425
|
*/
|
|
2331
|
-
storeMemory(
|
|
2426
|
+
storeMemory(scopeId: string, taskId: string, type: MemoryEntryType, content: string): Promise<string>;
|
|
2332
2427
|
/**
|
|
2333
2428
|
* Retrieve memories by semantic similarity
|
|
2429
|
+
* @param scopeId - Memory scope: the project directory, or `agent-profile:{profileId}` when the agent profile has memory isolation (`useAgentMemoryScope`) enabled
|
|
2334
2430
|
* @returns Array of matching memory entries, ranked by relevance
|
|
2335
2431
|
*/
|
|
2336
|
-
retrieveMemories(
|
|
2432
|
+
retrieveMemories(scopeId: string, query: string, limit?: number): Promise<MemoryEntry[]>;
|
|
2337
2433
|
/**
|
|
2338
2434
|
* Get a single memory by ID
|
|
2339
2435
|
*/
|
|
@@ -2626,6 +2722,12 @@ export interface Extension {
|
|
|
2626
2722
|
* @returns void or partial event to modify result
|
|
2627
2723
|
*/
|
|
2628
2724
|
onToolFinished?(event: ToolFinishedEvent, context: ExtensionContext): Promise<void | Partial<ToolFinishedEvent>>;
|
|
2725
|
+
/**
|
|
2726
|
+
* Called after the complete toolset for an agent run has been created (built-in, MCP, and extension tools)
|
|
2727
|
+
* Return { tools } with a new record to replace the toolset (e.g. to add or remove tools)
|
|
2728
|
+
* @returns void or partial event to modify the toolset
|
|
2729
|
+
*/
|
|
2730
|
+
onToolsetCreated?(event: ToolsetCreatedEvent, context: ExtensionContext): Promise<void | Partial<ToolsetCreatedEvent>>;
|
|
2629
2731
|
/**
|
|
2630
2732
|
* Called when files are added to context
|
|
2631
2733
|
* Modify event.files to filter, add, or clear files (return empty array to prevent addition)
|
package/extensions.json
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extensions": [
|
|
3
|
+
{
|
|
4
|
+
"id": "jev",
|
|
5
|
+
"name": "Jev",
|
|
6
|
+
"description": "Jev decision-model tools: typed yes/no, choice, and score questions about files, command output, or state",
|
|
7
|
+
"folder": "jev",
|
|
8
|
+
"type": "folder",
|
|
9
|
+
"hasDependencies": false,
|
|
10
|
+
"capabilities": [
|
|
11
|
+
"tools"
|
|
12
|
+
],
|
|
13
|
+
"installCount": 12
|
|
14
|
+
},
|
|
3
15
|
{
|
|
4
16
|
"id": "binary-files",
|
|
5
17
|
"name": "Binary Files",
|
|
@@ -8,9 +20,10 @@
|
|
|
8
20
|
"type": "folder",
|
|
9
21
|
"hasDependencies": false,
|
|
10
22
|
"capabilities": [
|
|
11
|
-
"tools"
|
|
23
|
+
"tools",
|
|
24
|
+
"ui"
|
|
12
25
|
],
|
|
13
|
-
"installCount":
|
|
26
|
+
"installCount": 38
|
|
14
27
|
},
|
|
15
28
|
{
|
|
16
29
|
"id": "wakatime",
|
|
@@ -21,7 +34,7 @@
|
|
|
21
34
|
"capabilities": [
|
|
22
35
|
"tracking"
|
|
23
36
|
],
|
|
24
|
-
"installCount":
|
|
37
|
+
"installCount": 14
|
|
25
38
|
},
|
|
26
39
|
{
|
|
27
40
|
"id": "pirate",
|
|
@@ -45,7 +58,7 @@
|
|
|
45
58
|
"commands",
|
|
46
59
|
"example"
|
|
47
60
|
],
|
|
48
|
-
"installCount":
|
|
61
|
+
"installCount": 24
|
|
49
62
|
},
|
|
50
63
|
{
|
|
51
64
|
"id": "questions",
|
|
@@ -58,7 +71,7 @@
|
|
|
58
71
|
"commands",
|
|
59
72
|
"ui"
|
|
60
73
|
],
|
|
61
|
-
"installCount":
|
|
74
|
+
"installCount": 46
|
|
62
75
|
},
|
|
63
76
|
{
|
|
64
77
|
"id": "theme",
|
|
@@ -80,7 +93,7 @@
|
|
|
80
93
|
"capabilities": [
|
|
81
94
|
"modes"
|
|
82
95
|
],
|
|
83
|
-
"installCount":
|
|
96
|
+
"installCount": 99
|
|
84
97
|
},
|
|
85
98
|
{
|
|
86
99
|
"id": "protected-paths",
|
|
@@ -92,7 +105,7 @@
|
|
|
92
105
|
"capabilities": [
|
|
93
106
|
"security"
|
|
94
107
|
],
|
|
95
|
-
"installCount":
|
|
108
|
+
"installCount": 47
|
|
96
109
|
},
|
|
97
110
|
{
|
|
98
111
|
"id": "permission-gate",
|
|
@@ -103,7 +116,7 @@
|
|
|
103
116
|
"capabilities": [
|
|
104
117
|
"security"
|
|
105
118
|
],
|
|
106
|
-
"installCount":
|
|
119
|
+
"installCount": 36
|
|
107
120
|
},
|
|
108
121
|
{
|
|
109
122
|
"id": "ultrathink",
|
|
@@ -114,7 +127,7 @@
|
|
|
114
127
|
"capabilities": [
|
|
115
128
|
"optimization"
|
|
116
129
|
],
|
|
117
|
-
"installCount":
|
|
130
|
+
"installCount": 48
|
|
118
131
|
},
|
|
119
132
|
{
|
|
120
133
|
"id": "external-rules",
|
|
@@ -126,7 +139,7 @@
|
|
|
126
139
|
"capabilities": [
|
|
127
140
|
"context"
|
|
128
141
|
],
|
|
129
|
-
"installCount":
|
|
142
|
+
"installCount": 31
|
|
130
143
|
},
|
|
131
144
|
{
|
|
132
145
|
"id": "external-skills",
|
|
@@ -138,7 +151,7 @@
|
|
|
138
151
|
"capabilities": [
|
|
139
152
|
"context"
|
|
140
153
|
],
|
|
141
|
-
"installCount":
|
|
154
|
+
"installCount": 62
|
|
142
155
|
},
|
|
143
156
|
{
|
|
144
157
|
"id": "learn",
|
|
@@ -151,7 +164,7 @@
|
|
|
151
164
|
"commands",
|
|
152
165
|
"tools"
|
|
153
166
|
],
|
|
154
|
-
"installCount":
|
|
167
|
+
"installCount": 82
|
|
155
168
|
},
|
|
156
169
|
{
|
|
157
170
|
"id": "legacy-system-prompt",
|
|
@@ -163,7 +176,7 @@
|
|
|
163
176
|
"capabilities": [
|
|
164
177
|
"context"
|
|
165
178
|
],
|
|
166
|
-
"installCount":
|
|
179
|
+
"installCount": 15
|
|
167
180
|
},
|
|
168
181
|
{
|
|
169
182
|
"id": "sound-notification",
|
|
@@ -175,7 +188,7 @@
|
|
|
175
188
|
"capabilities": [
|
|
176
189
|
"notifications"
|
|
177
190
|
],
|
|
178
|
-
"installCount":
|
|
191
|
+
"installCount": 28
|
|
179
192
|
},
|
|
180
193
|
{
|
|
181
194
|
"id": "sandbox",
|
|
@@ -191,7 +204,7 @@
|
|
|
191
204
|
"linux",
|
|
192
205
|
"macos"
|
|
193
206
|
],
|
|
194
|
-
"installCount":
|
|
207
|
+
"installCount": 12
|
|
195
208
|
},
|
|
196
209
|
{
|
|
197
210
|
"id": "rtk",
|
|
@@ -208,7 +221,7 @@
|
|
|
208
221
|
"linux",
|
|
209
222
|
"macos"
|
|
210
223
|
],
|
|
211
|
-
"installCount":
|
|
224
|
+
"installCount": 29
|
|
212
225
|
},
|
|
213
226
|
{
|
|
214
227
|
"id": "redact-secrets",
|
|
@@ -220,7 +233,7 @@
|
|
|
220
233
|
"capabilities": [
|
|
221
234
|
"security"
|
|
222
235
|
],
|
|
223
|
-
"installCount":
|
|
236
|
+
"installCount": 29
|
|
224
237
|
},
|
|
225
238
|
{
|
|
226
239
|
"id": "chunkhound-search",
|
|
@@ -232,7 +245,7 @@
|
|
|
232
245
|
"capabilities": [
|
|
233
246
|
"search"
|
|
234
247
|
],
|
|
235
|
-
"installCount":
|
|
248
|
+
"installCount": 15
|
|
236
249
|
},
|
|
237
250
|
{
|
|
238
251
|
"id": "chunkhound-on-semantic-search-tool",
|
|
@@ -244,7 +257,7 @@
|
|
|
244
257
|
"capabilities": [
|
|
245
258
|
"search"
|
|
246
259
|
],
|
|
247
|
-
"installCount":
|
|
260
|
+
"installCount": 15
|
|
248
261
|
},
|
|
249
262
|
{
|
|
250
263
|
"id": "tree-sitter-repo-map",
|
|
@@ -257,7 +270,7 @@
|
|
|
257
270
|
"context",
|
|
258
271
|
"commands"
|
|
259
272
|
],
|
|
260
|
-
"installCount":
|
|
273
|
+
"installCount": 75
|
|
261
274
|
},
|
|
262
275
|
{
|
|
263
276
|
"id": "context-autocompletion-words",
|
|
@@ -269,7 +282,7 @@
|
|
|
269
282
|
"capabilities": [
|
|
270
283
|
"context"
|
|
271
284
|
],
|
|
272
|
-
"installCount":
|
|
285
|
+
"installCount": 25
|
|
273
286
|
},
|
|
274
287
|
{
|
|
275
288
|
"id": "lsp",
|
|
@@ -282,7 +295,7 @@
|
|
|
282
295
|
"tools",
|
|
283
296
|
"code-intelligence"
|
|
284
297
|
],
|
|
285
|
-
"installCount":
|
|
298
|
+
"installCount": 80
|
|
286
299
|
},
|
|
287
300
|
{
|
|
288
301
|
"id": "plannotator",
|
|
@@ -297,7 +310,7 @@
|
|
|
297
310
|
"commands",
|
|
298
311
|
"workflows"
|
|
299
312
|
],
|
|
300
|
-
"installCount":
|
|
313
|
+
"installCount": 25
|
|
301
314
|
},
|
|
302
315
|
{
|
|
303
316
|
"id": "programmatic-tool-calls",
|
|
@@ -309,7 +322,7 @@
|
|
|
309
322
|
"capabilities": [
|
|
310
323
|
"tools"
|
|
311
324
|
],
|
|
312
|
-
"installCount":
|
|
325
|
+
"installCount": 33
|
|
313
326
|
},
|
|
314
327
|
{
|
|
315
328
|
"id": "ui-placement-demo",
|
|
@@ -321,7 +334,7 @@
|
|
|
321
334
|
"ui",
|
|
322
335
|
"example"
|
|
323
336
|
],
|
|
324
|
-
"installCount":
|
|
337
|
+
"installCount": 13
|
|
325
338
|
},
|
|
326
339
|
{
|
|
327
340
|
"id": "multi-model-run",
|
|
@@ -334,7 +347,7 @@
|
|
|
334
347
|
"ui",
|
|
335
348
|
"workflows"
|
|
336
349
|
],
|
|
337
|
-
"installCount":
|
|
350
|
+
"installCount": 16
|
|
338
351
|
},
|
|
339
352
|
{
|
|
340
353
|
"id": "providers-quota-extension",
|
|
@@ -358,7 +371,7 @@
|
|
|
358
371
|
"capabilities": [
|
|
359
372
|
"providers"
|
|
360
373
|
],
|
|
361
|
-
"installCount":
|
|
374
|
+
"installCount": 30
|
|
362
375
|
},
|
|
363
376
|
{
|
|
364
377
|
"id": "fff",
|
|
@@ -375,7 +388,7 @@
|
|
|
375
388
|
"linux",
|
|
376
389
|
"macos"
|
|
377
390
|
],
|
|
378
|
-
"installCount":
|
|
391
|
+
"installCount": 37
|
|
379
392
|
},
|
|
380
393
|
{
|
|
381
394
|
"id": "searxng-search",
|
|
@@ -388,7 +401,7 @@
|
|
|
388
401
|
"tools",
|
|
389
402
|
"search"
|
|
390
403
|
],
|
|
391
|
-
"installCount":
|
|
404
|
+
"installCount": 28
|
|
392
405
|
},
|
|
393
406
|
{
|
|
394
407
|
"id": "seek",
|
|
@@ -405,7 +418,7 @@
|
|
|
405
418
|
"linux",
|
|
406
419
|
"macos"
|
|
407
420
|
],
|
|
408
|
-
"installCount":
|
|
421
|
+
"installCount": 16
|
|
409
422
|
},
|
|
410
423
|
{
|
|
411
424
|
"id": "tps-counter",
|
|
@@ -417,7 +430,7 @@
|
|
|
417
430
|
"capabilities": [
|
|
418
431
|
"metrics"
|
|
419
432
|
],
|
|
420
|
-
"installCount":
|
|
433
|
+
"installCount": 91
|
|
421
434
|
},
|
|
422
435
|
{
|
|
423
436
|
"id": "verifier",
|
|
@@ -430,7 +443,7 @@
|
|
|
430
443
|
"workflows",
|
|
431
444
|
"ui"
|
|
432
445
|
],
|
|
433
|
-
"installCount":
|
|
446
|
+
"installCount": 52
|
|
434
447
|
},
|
|
435
448
|
{
|
|
436
449
|
"id": "bmad",
|
|
@@ -443,7 +456,7 @@
|
|
|
443
456
|
"modes",
|
|
444
457
|
"ui"
|
|
445
458
|
],
|
|
446
|
-
"installCount":
|
|
459
|
+
"installCount": 16
|
|
447
460
|
},
|
|
448
461
|
{
|
|
449
462
|
"id": "claude-agent-sdk",
|
|
@@ -456,7 +469,7 @@
|
|
|
456
469
|
"providers",
|
|
457
470
|
"agent-loop"
|
|
458
471
|
],
|
|
459
|
-
"installCount":
|
|
472
|
+
"installCount": 24
|
|
460
473
|
},
|
|
461
474
|
{
|
|
462
475
|
"id": "auggie-sdk",
|
|
@@ -468,7 +481,7 @@
|
|
|
468
481
|
"capabilities": [
|
|
469
482
|
"providers"
|
|
470
483
|
],
|
|
471
|
-
"installCount":
|
|
484
|
+
"installCount": 6
|
|
472
485
|
},
|
|
473
486
|
{
|
|
474
487
|
"id": "cursor",
|
|
@@ -480,7 +493,7 @@
|
|
|
480
493
|
"capabilities": [
|
|
481
494
|
"providers"
|
|
482
495
|
],
|
|
483
|
-
"installCount":
|
|
496
|
+
"installCount": 10
|
|
484
497
|
},
|
|
485
498
|
{
|
|
486
499
|
"id": "cursor-sdk",
|
|
@@ -493,7 +506,7 @@
|
|
|
493
506
|
"providers",
|
|
494
507
|
"agent-loop"
|
|
495
508
|
],
|
|
496
|
-
"installCount":
|
|
509
|
+
"installCount": 10
|
|
497
510
|
},
|
|
498
511
|
{
|
|
499
512
|
"id": "github-copilot",
|
|
@@ -506,7 +519,7 @@
|
|
|
506
519
|
"providers",
|
|
507
520
|
"agent-loop"
|
|
508
521
|
],
|
|
509
|
-
"installCount":
|
|
522
|
+
"installCount": 10
|
|
510
523
|
},
|
|
511
524
|
{
|
|
512
525
|
"id": "checkpoints",
|
|
@@ -519,7 +532,7 @@
|
|
|
519
532
|
"events",
|
|
520
533
|
"ui"
|
|
521
534
|
],
|
|
522
|
-
"installCount":
|
|
535
|
+
"installCount": 39
|
|
523
536
|
},
|
|
524
537
|
{
|
|
525
538
|
"id": "codegraph",
|
|
@@ -532,7 +545,7 @@
|
|
|
532
545
|
"tools",
|
|
533
546
|
"search"
|
|
534
547
|
],
|
|
535
|
-
"installCount":
|
|
548
|
+
"installCount": 72
|
|
536
549
|
},
|
|
537
550
|
{
|
|
538
551
|
"id": "kanban",
|
|
@@ -544,7 +557,7 @@
|
|
|
544
557
|
"capabilities": [
|
|
545
558
|
"ui"
|
|
546
559
|
],
|
|
547
|
-
"installCount":
|
|
560
|
+
"installCount": 45
|
|
548
561
|
},
|
|
549
562
|
{
|
|
550
563
|
"id": "doom",
|
|
@@ -556,7 +569,7 @@
|
|
|
556
569
|
"capabilities": [
|
|
557
570
|
"ui"
|
|
558
571
|
],
|
|
559
|
-
"installCount":
|
|
572
|
+
"installCount": 9
|
|
560
573
|
},
|
|
561
574
|
{
|
|
562
575
|
"id": "my-minions",
|
|
@@ -569,7 +582,7 @@
|
|
|
569
582
|
"agents",
|
|
570
583
|
"example"
|
|
571
584
|
],
|
|
572
|
-
"installCount":
|
|
585
|
+
"installCount": 52
|
|
573
586
|
},
|
|
574
587
|
{
|
|
575
588
|
"id": "wigolo",
|
|
@@ -582,7 +595,7 @@
|
|
|
582
595
|
"tools",
|
|
583
596
|
"search"
|
|
584
597
|
],
|
|
585
|
-
"installCount":
|
|
598
|
+
"installCount": 62
|
|
586
599
|
},
|
|
587
600
|
{
|
|
588
601
|
"id": "destructive-command-guard",
|
|
@@ -595,7 +608,7 @@
|
|
|
595
608
|
"security",
|
|
596
609
|
"commands"
|
|
597
610
|
],
|
|
598
|
-
"installCount":
|
|
611
|
+
"installCount": 46
|
|
599
612
|
},
|
|
600
613
|
{
|
|
601
614
|
"id": "git-log",
|
|
@@ -607,7 +620,7 @@
|
|
|
607
620
|
"capabilities": [
|
|
608
621
|
"ui"
|
|
609
622
|
],
|
|
610
|
-
"installCount":
|
|
623
|
+
"installCount": 51
|
|
611
624
|
},
|
|
612
625
|
{
|
|
613
626
|
"id": "skill-gallery",
|
|
@@ -619,7 +632,7 @@
|
|
|
619
632
|
"capabilities": [
|
|
620
633
|
"ui"
|
|
621
634
|
],
|
|
622
|
-
"installCount":
|
|
635
|
+
"installCount": 126
|
|
623
636
|
},
|
|
624
637
|
{
|
|
625
638
|
"id": "task-scheduler",
|
|
@@ -633,7 +646,7 @@
|
|
|
633
646
|
"commands",
|
|
634
647
|
"events"
|
|
635
648
|
],
|
|
636
|
-
"installCount":
|
|
649
|
+
"installCount": 26
|
|
637
650
|
},
|
|
638
651
|
{
|
|
639
652
|
"id": "reasoning-selector",
|
|
@@ -645,7 +658,32 @@
|
|
|
645
658
|
"capabilities": [
|
|
646
659
|
"ui"
|
|
647
660
|
],
|
|
648
|
-
"installCount":
|
|
661
|
+
"installCount": 120
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"id": "dbx",
|
|
665
|
+
"name": "DBX",
|
|
666
|
+
"description": "DBX database client UI running in a local testcontainers-backed container, embedded in a modal",
|
|
667
|
+
"folder": "dbx",
|
|
668
|
+
"type": "folder",
|
|
669
|
+
"hasDependencies": true,
|
|
670
|
+
"capabilities": [
|
|
671
|
+
"ui"
|
|
672
|
+
],
|
|
673
|
+
"installCount": 4
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"id": "compaction-studio",
|
|
677
|
+
"name": "Compaction Studio",
|
|
678
|
+
"description": "Manually compact the current context with full control over what gets compacted, the safe window and the compaction level",
|
|
679
|
+
"folder": "compaction-studio",
|
|
680
|
+
"type": "folder",
|
|
681
|
+
"hasDependencies": false,
|
|
682
|
+
"capabilities": [
|
|
683
|
+
"ui",
|
|
684
|
+
"commands"
|
|
685
|
+
],
|
|
686
|
+
"installCount": 11
|
|
649
687
|
}
|
|
650
688
|
]
|
|
651
689
|
}
|