fileUpdateIntent
Variable: fileUpdateIntent
const fileUpdateIntent: {
cancel: (id: string, cancelledBy: string) => Promise<FileUpdateIntent>;
checkOverlap: (environmentId: string, filePaths: string[], priority: number) => Promise<IntentOverlapResult>;
complete: (id: string, closedBy: string) => Promise<FileUpdateIntent>;
create: (data: CreateFileUpdateIntentRequest, claimedBy: string, claimedByName?: string) => Promise<{
intent?: FileUpdateIntent;
overlap?: IntentOverlapResult;
}>;
delete: (id: string) => Promise<{
success: boolean;
}>;
get: (id: string) => Promise<FileUpdateIntent>;
getBlockedFiles: (environmentId: string) => Promise<{
blockedFiles: string[];
}>;
getByAgent: (agentId: string) => Promise<FileUpdateIntent[]>;
getFilesWithIntents: (environmentId: string) => Promise<FileWithIntent[]>;
list: (filters: FileUpdateIntentFilters) => Promise<FileUpdateIntent[]>;
update: (id: string, data: UpdateFileUpdateIntentRequest) => Promise<FileUpdateIntent>;
};
Defined in: packages/codeboltjs/src/modules/fileUpdateIntent.ts:15
File Update Intent service client for codeboltjs.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
cancel() | (id: string, cancelledBy: string) => Promise<FileUpdateIntent> | Cancel an intent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:100 |
checkOverlap() | (environmentId: string, filePaths: string[], priority: number) => Promise<IntentOverlapResult> | Check for overlap without creating | packages/codeboltjs/src/modules/fileUpdateIntent.ts:116 |
complete() | (id: string, closedBy: string) => Promise<FileUpdateIntent> | Complete an intent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:84 |
create() | (data: CreateFileUpdateIntentRequest, claimedBy: string, claimedByName?: string) => Promise<{ intent?: FileUpdateIntent; overlap?: IntentOverlapResult; }> | Create a new file update intent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:20 |
delete() | (id: string) => Promise<{ success: boolean; }> | Delete an intent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:180 |
get() | (id: string) => Promise<FileUpdateIntent> | Get a single intent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:52 |
getBlockedFiles() | (environmentId: string) => Promise<{ blockedFiles: string[]; }> | Get blocked files (level 4 locks) | packages/codeboltjs/src/modules/fileUpdateIntent.ts:132 |
getByAgent() | (agentId: string) => Promise<FileUpdateIntent[]> | Get intents by agent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:148 |
getFilesWithIntents() | (environmentId: string) => Promise<FileWithIntent[]> | Get all files with intents | packages/codeboltjs/src/modules/fileUpdateIntent.ts:164 |
list() | (filters: FileUpdateIntentFilters) => Promise<FileUpdateIntent[]> | List intents | packages/codeboltjs/src/modules/fileUpdateIntent.ts:68 |
update() | (id: string, data: UpdateFileUpdateIntentRequest) => Promise<FileUpdateIntent> | Update an existing intent | packages/codeboltjs/src/modules/fileUpdateIntent.ts:36 |