@aiderdesk/extensions 0.23.0 → 0.24.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 +46 -0
- package/extensions.d.ts +46 -0
- package/extensions.json +15 -5
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -301,6 +301,10 @@ export declare enum ContextMemoryMode {
|
|
|
301
301
|
FullContext = "full-context",
|
|
302
302
|
LastMessage = "last-message"
|
|
303
303
|
}
|
|
304
|
+
export interface WorktreeUncommittedFiles {
|
|
305
|
+
count: number;
|
|
306
|
+
files: string[];
|
|
307
|
+
}
|
|
304
308
|
export interface ModeDefinition {
|
|
305
309
|
name: Mode;
|
|
306
310
|
label: string;
|
|
@@ -713,6 +717,15 @@ declare const WorkingModeSchema: z.ZodEnum<{
|
|
|
713
717
|
worktree: "worktree";
|
|
714
718
|
}>;
|
|
715
719
|
export type WorkingMode = z.infer<typeof WorkingModeSchema>;
|
|
720
|
+
export interface SwitchToLocalOptions {
|
|
721
|
+
mergeBeforeSwitch?: boolean;
|
|
722
|
+
targetBranch?: string;
|
|
723
|
+
switchAllInWorktree?: boolean;
|
|
724
|
+
}
|
|
725
|
+
export interface SwitchToWorktreeOptions {
|
|
726
|
+
carryOverUncommittedChanges?: boolean;
|
|
727
|
+
dropSourceChanges?: boolean;
|
|
728
|
+
}
|
|
716
729
|
declare const TaskDataSchema: z.ZodObject<{
|
|
717
730
|
id: z.ZodString;
|
|
718
731
|
baseDir: z.ZodString;
|
|
@@ -1735,6 +1748,39 @@ export interface TaskContext {
|
|
|
1735
1748
|
* @returns True if a pending question was answered, false if no question is pending
|
|
1736
1749
|
*/
|
|
1737
1750
|
answerQuestion(answer: string, userInput?: string): Promise<boolean>;
|
|
1751
|
+
/**
|
|
1752
|
+
* Switch the task to worktree working mode, optionally carrying over uncommitted changes
|
|
1753
|
+
* from the project root (or current worktree) into the new worktree.
|
|
1754
|
+
* Stashes uncommitted changes, creates a git worktree, applies the stash to the new worktree,
|
|
1755
|
+
* and optionally re-applies to the source if `dropSourceChanges` is false.
|
|
1756
|
+
* @param options - Optional configuration: `carryOverUncommittedChanges` to transfer uncommitted
|
|
1757
|
+
* changes, `dropSourceChanges` to keep (false) or remove (true, default) them from the source
|
|
1758
|
+
*/
|
|
1759
|
+
switchToWorktreeWorkingMode(options?: SwitchToWorktreeOptions): Promise<void>;
|
|
1760
|
+
/**
|
|
1761
|
+
* Switch the task to local working mode, optionally merging the worktree branch first.
|
|
1762
|
+
* @param options - Optional configuration: `mergeBeforeSwitch` to merge worktree to main before
|
|
1763
|
+
* switching, `targetBranch` to specify a merge target, `switchAllInWorktree` to switch all
|
|
1764
|
+
* tasks sharing the same worktree
|
|
1765
|
+
*/
|
|
1766
|
+
switchToLocalWorkingMode(options?: SwitchToLocalOptions): Promise<void>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Get uncommitted files from the project's main repository (not from a worktree).
|
|
1769
|
+
* @returns Object containing arrays of unstaged, staged, and untracked file paths
|
|
1770
|
+
*/
|
|
1771
|
+
getLocalUncommittedFiles(): Promise<WorktreeUncommittedFiles>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Apply uncommitted changes from the task's worktree to a target branch in the main repository.
|
|
1774
|
+
* @param targetBranch - Optional target branch name (defaults to the project's main branch)
|
|
1775
|
+
*/
|
|
1776
|
+
applyUncommittedChanges(targetBranch?: string): Promise<void>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Merge commits and optionally uncommitted changes from this task's worktree to a target worktree directory.
|
|
1779
|
+
* Useful for carrying over changes between worktrees when running multiple models.
|
|
1780
|
+
* @param targetWorktreeDir - The absolute path to the target worktree directory
|
|
1781
|
+
* @param includeUncommitted - Whether to include uncommitted changes (default: false)
|
|
1782
|
+
*/
|
|
1783
|
+
mergeWorktreeToWorktree(targetWorktreeDir: string, includeUncommitted?: boolean): Promise<void>;
|
|
1738
1784
|
}
|
|
1739
1785
|
/**
|
|
1740
1786
|
* Safe subset of Project capabilities exposed to extensions.
|
package/extensions.d.ts
CHANGED
|
@@ -301,6 +301,10 @@ export declare enum ContextMemoryMode {
|
|
|
301
301
|
FullContext = "full-context",
|
|
302
302
|
LastMessage = "last-message"
|
|
303
303
|
}
|
|
304
|
+
export interface WorktreeUncommittedFiles {
|
|
305
|
+
count: number;
|
|
306
|
+
files: string[];
|
|
307
|
+
}
|
|
304
308
|
export interface ModeDefinition {
|
|
305
309
|
name: Mode;
|
|
306
310
|
label: string;
|
|
@@ -713,6 +717,15 @@ declare const WorkingModeSchema: z.ZodEnum<{
|
|
|
713
717
|
worktree: "worktree";
|
|
714
718
|
}>;
|
|
715
719
|
export type WorkingMode = z.infer<typeof WorkingModeSchema>;
|
|
720
|
+
export interface SwitchToLocalOptions {
|
|
721
|
+
mergeBeforeSwitch?: boolean;
|
|
722
|
+
targetBranch?: string;
|
|
723
|
+
switchAllInWorktree?: boolean;
|
|
724
|
+
}
|
|
725
|
+
export interface SwitchToWorktreeOptions {
|
|
726
|
+
carryOverUncommittedChanges?: boolean;
|
|
727
|
+
dropSourceChanges?: boolean;
|
|
728
|
+
}
|
|
716
729
|
declare const TaskDataSchema: z.ZodObject<{
|
|
717
730
|
id: z.ZodString;
|
|
718
731
|
baseDir: z.ZodString;
|
|
@@ -1735,6 +1748,39 @@ export interface TaskContext {
|
|
|
1735
1748
|
* @returns True if a pending question was answered, false if no question is pending
|
|
1736
1749
|
*/
|
|
1737
1750
|
answerQuestion(answer: string, userInput?: string): Promise<boolean>;
|
|
1751
|
+
/**
|
|
1752
|
+
* Switch the task to worktree working mode, optionally carrying over uncommitted changes
|
|
1753
|
+
* from the project root (or current worktree) into the new worktree.
|
|
1754
|
+
* Stashes uncommitted changes, creates a git worktree, applies the stash to the new worktree,
|
|
1755
|
+
* and optionally re-applies to the source if `dropSourceChanges` is false.
|
|
1756
|
+
* @param options - Optional configuration: `carryOverUncommittedChanges` to transfer uncommitted
|
|
1757
|
+
* changes, `dropSourceChanges` to keep (false) or remove (true, default) them from the source
|
|
1758
|
+
*/
|
|
1759
|
+
switchToWorktreeWorkingMode(options?: SwitchToWorktreeOptions): Promise<void>;
|
|
1760
|
+
/**
|
|
1761
|
+
* Switch the task to local working mode, optionally merging the worktree branch first.
|
|
1762
|
+
* @param options - Optional configuration: `mergeBeforeSwitch` to merge worktree to main before
|
|
1763
|
+
* switching, `targetBranch` to specify a merge target, `switchAllInWorktree` to switch all
|
|
1764
|
+
* tasks sharing the same worktree
|
|
1765
|
+
*/
|
|
1766
|
+
switchToLocalWorkingMode(options?: SwitchToLocalOptions): Promise<void>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Get uncommitted files from the project's main repository (not from a worktree).
|
|
1769
|
+
* @returns Object containing arrays of unstaged, staged, and untracked file paths
|
|
1770
|
+
*/
|
|
1771
|
+
getLocalUncommittedFiles(): Promise<WorktreeUncommittedFiles>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Apply uncommitted changes from the task's worktree to a target branch in the main repository.
|
|
1774
|
+
* @param targetBranch - Optional target branch name (defaults to the project's main branch)
|
|
1775
|
+
*/
|
|
1776
|
+
applyUncommittedChanges(targetBranch?: string): Promise<void>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Merge commits and optionally uncommitted changes from this task's worktree to a target worktree directory.
|
|
1779
|
+
* Useful for carrying over changes between worktrees when running multiple models.
|
|
1780
|
+
* @param targetWorktreeDir - The absolute path to the target worktree directory
|
|
1781
|
+
* @param includeUncommitted - Whether to include uncommitted changes (default: false)
|
|
1782
|
+
*/
|
|
1783
|
+
mergeWorktreeToWorktree(targetWorktreeDir: string, includeUncommitted?: boolean): Promise<void>;
|
|
1738
1784
|
}
|
|
1739
1785
|
/**
|
|
1740
1786
|
* Safe subset of Project capabilities exposed to extensions.
|
package/extensions.json
CHANGED
|
@@ -52,9 +52,10 @@
|
|
|
52
52
|
{
|
|
53
53
|
"id": "protected-paths",
|
|
54
54
|
"name": "Protected Paths",
|
|
55
|
-
"description": "Blocks file operations on protected
|
|
56
|
-
"
|
|
57
|
-
"type": "
|
|
55
|
+
"description": "Blocks file operations on sensitive files and protected directories (.env*, *.pem, .ssh/, .aws/, .git/, system dirs, etc.)",
|
|
56
|
+
"folder": "protected-paths",
|
|
57
|
+
"type": "folder",
|
|
58
|
+
"hasDependencies": false,
|
|
58
59
|
"capabilities": ["security"]
|
|
59
60
|
},
|
|
60
61
|
{
|
|
@@ -123,7 +124,7 @@
|
|
|
123
124
|
{
|
|
124
125
|
"id": "redact-secrets",
|
|
125
126
|
"name": "Redact Secrets",
|
|
126
|
-
"description": "Redacts
|
|
127
|
+
"description": "Redacts secrets from file read results using regex patterns and .env* file values",
|
|
127
128
|
"folder": "redact-secrets",
|
|
128
129
|
"type": "folder",
|
|
129
130
|
"hasDependencies": true,
|
|
@@ -292,10 +293,19 @@
|
|
|
292
293
|
"hasDependencies": true,
|
|
293
294
|
"capabilities": ["providers"]
|
|
294
295
|
},
|
|
296
|
+
{
|
|
297
|
+
"id": "cursor",
|
|
298
|
+
"name": "Cursor",
|
|
299
|
+
"description": "Integrates Cursor as a provider via a local OpenAI-compatible proxy with full tool approval control",
|
|
300
|
+
"folder": "cursor",
|
|
301
|
+
"type": "folder",
|
|
302
|
+
"hasDependencies": true,
|
|
303
|
+
"capabilities": ["providers"]
|
|
304
|
+
},
|
|
295
305
|
{
|
|
296
306
|
"id": "cursor-sdk",
|
|
297
307
|
"name": "Cursor SDK",
|
|
298
|
-
"description": "Integrates the Cursor SDK as a provider with cursor/ prefix, overriding the agent loop to run Cursor agents",
|
|
308
|
+
"description": "Integrates the Cursor SDK as a provider with cursor-sdk/ prefix, overriding the agent loop to run Cursor agents",
|
|
299
309
|
"folder": "cursor-sdk",
|
|
300
310
|
"type": "folder",
|
|
301
311
|
"hasDependencies": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiderdesk/extensions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Type definitions and examples for AiderDesk extensions",
|
|
5
5
|
"author": "Hotovo",
|
|
6
6
|
"homepage": "https://aiderdesk.hotovo.com",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "dts-bundle-generator --external-imports zod node --project ../../tsconfig.node.json --no-check --no-banner -o extensions.d.ts ../../packages/common/src/extensions.ts && node scripts/build.mjs",
|
|
38
38
|
"typecheck": "tsc --noEmit",
|
|
39
|
+
"test": "vitest run --no-color",
|
|
39
40
|
"prepublishOnly": "npm run build",
|
|
40
41
|
"publish:next": "node scripts/publish-next.mjs",
|
|
41
42
|
"release:latest": "node scripts/release-latest.mjs"
|