@codebolt/codeboltjs 4.0.2 → 5.0.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/core/Codebolt.d.ts +173 -118
- package/dist/core/Codebolt.js +42 -0
- package/dist/modules/actionPlan.d.ts +68 -0
- package/dist/modules/actionPlan.js +125 -0
- package/dist/modules/agent.d.ts +1 -1
- package/dist/modules/chat.d.ts +1 -1
- package/dist/modules/memory.d.ts +7 -0
- package/dist/modules/memory.js +52 -16
- package/dist/modules/task.d.ts +3 -6
- package/dist/modules/task.js +11 -42
- package/dist/modules/user-message-utilities.d.ts +2 -2
- package/package.json +2 -2
package/dist/core/Codebolt.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare class Codebolt {
|
|
|
11
11
|
private isReady;
|
|
12
12
|
private readyPromise;
|
|
13
13
|
private readyHandlers;
|
|
14
|
+
private messageQueue;
|
|
15
|
+
private messageResolvers;
|
|
14
16
|
/**
|
|
15
17
|
* @constructor
|
|
16
18
|
* @description Initializes the websocket connection.
|
|
@@ -35,19 +37,19 @@ declare class Codebolt {
|
|
|
35
37
|
*/
|
|
36
38
|
get ready(): boolean;
|
|
37
39
|
fs: {
|
|
38
|
-
createFile: (fileName: string, source: string, filePath: string) => Promise<
|
|
39
|
-
createFolder: (folderName: string, folderPath: string) => Promise<
|
|
40
|
-
readFile: (filePath: string) => Promise<
|
|
41
|
-
updateFile: (filename: string, filePath: string, newContent: string) => Promise<
|
|
42
|
-
deleteFile: (filename: string, filePath: string) => Promise<
|
|
43
|
-
deleteFolder: (foldername: string, folderpath: string) => Promise<
|
|
44
|
-
listFile: (folderPath: string, isRecursive?: boolean) => Promise<
|
|
45
|
-
listCodeDefinitionNames: (path: string) => Promise<
|
|
46
|
-
searchFiles: (path: string, regex: string, filePattern: string) => Promise<
|
|
40
|
+
createFile: (fileName: string, source: string, filePath: string) => Promise<import("@codebolt/types/sdk").CreateFileResponse>;
|
|
41
|
+
createFolder: (folderName: string, folderPath: string) => Promise<import("@codebolt/types/sdk").CreateFolderResponse>;
|
|
42
|
+
readFile: (filePath: string) => Promise<import("@codebolt/types/sdk").ReadFileResponse>;
|
|
43
|
+
updateFile: (filename: string, filePath: string, newContent: string) => Promise<import("@codebolt/types/sdk").UpdateFileResponse>;
|
|
44
|
+
deleteFile: (filename: string, filePath: string) => Promise<import("@codebolt/types/sdk").DeleteFileResponse>;
|
|
45
|
+
deleteFolder: (foldername: string, folderpath: string) => Promise<import("@codebolt/types/sdk").DeleteFolderResponse>;
|
|
46
|
+
listFile: (folderPath: string, isRecursive?: boolean) => Promise<import("@codebolt/types/sdk").FileListResponse>;
|
|
47
|
+
listCodeDefinitionNames: (path: string) => Promise<import("@codebolt/types/sdk").ListCodeDefinitionsResponse>;
|
|
48
|
+
searchFiles: (path: string, regex: string, filePattern: string) => Promise<import("@codebolt/types/sdk").SearchFilesResponse>;
|
|
47
49
|
writeToFile: (relPath: string, newContent: string) => Promise<any>;
|
|
48
|
-
grepSearch: (path: string, query: string, includePattern?: string, excludePattern?: string, caseSensitive?: boolean) => Promise<
|
|
49
|
-
fileSearch: (query: string) => Promise<
|
|
50
|
-
editFileWithDiff: (targetFile: string, codeEdit: string, diffIdentifier: string, prompt: string, applyModel?: string) => Promise<
|
|
50
|
+
grepSearch: (path: string, query: string, includePattern?: string, excludePattern?: string, caseSensitive?: boolean) => Promise<import("@codebolt/types/sdk").GrepSearchResponse>;
|
|
51
|
+
fileSearch: (query: string) => Promise<import("@codebolt/types/sdk").FileSearchResponse>;
|
|
52
|
+
editFileWithDiff: (targetFile: string, codeEdit: string, diffIdentifier: string, prompt: string, applyModel?: string) => Promise<import("@codebolt/types/sdk").EditFileAndApplyDiffResponse>;
|
|
51
53
|
readManyFiles: (params: {
|
|
52
54
|
paths: string[];
|
|
53
55
|
include?: string[];
|
|
@@ -59,7 +61,7 @@ declare class Codebolt {
|
|
|
59
61
|
include_metadata?: boolean;
|
|
60
62
|
separator_format?: string;
|
|
61
63
|
notifyUser?: boolean;
|
|
62
|
-
}) => Promise<
|
|
64
|
+
}) => Promise<import("@codebolt/types/sdk").ReadManyFilesResponse>;
|
|
63
65
|
listDirectory: (params: {
|
|
64
66
|
path: string;
|
|
65
67
|
ignore?: string[];
|
|
@@ -67,55 +69,55 @@ declare class Codebolt {
|
|
|
67
69
|
detailed?: boolean;
|
|
68
70
|
limit?: number;
|
|
69
71
|
notifyUser?: boolean;
|
|
70
|
-
}) => Promise<
|
|
72
|
+
}) => Promise<import("@codebolt/types/sdk").ListDirectoryResponse>;
|
|
71
73
|
};
|
|
72
74
|
git: {
|
|
73
|
-
init: (path: string) => Promise<
|
|
74
|
-
pull: () => Promise<
|
|
75
|
-
push: () => Promise<
|
|
76
|
-
status: () => Promise<
|
|
77
|
-
addAll: () => Promise<
|
|
78
|
-
commit: (message: string) => Promise<
|
|
79
|
-
checkout: (branch: string) => Promise<
|
|
80
|
-
branch: (branch: string) => Promise<
|
|
81
|
-
logs: (path: string) => Promise<
|
|
82
|
-
diff: (commitHash: string) => Promise<
|
|
75
|
+
init: (path: string) => Promise<import("@codebolt/types/sdk").GitInitResponse>;
|
|
76
|
+
pull: () => Promise<import("@codebolt/types/sdk").GitPullResponse>;
|
|
77
|
+
push: () => Promise<import("@codebolt/types/sdk").GitPushResponse>;
|
|
78
|
+
status: () => Promise<import("@codebolt/types/sdk").GitStatusResponse>;
|
|
79
|
+
addAll: () => Promise<import("@codebolt/types/sdk").AddResponse>;
|
|
80
|
+
commit: (message: string) => Promise<import("@codebolt/types/sdk").GitCommitResponse>;
|
|
81
|
+
checkout: (branch: string) => Promise<import("@codebolt/types/sdk").GitCheckoutResponse>;
|
|
82
|
+
branch: (branch: string) => Promise<import("@codebolt/types/sdk").GitBranchResponse>;
|
|
83
|
+
logs: (path: string) => Promise<import("@codebolt/types/sdk").GitLogsResponse>;
|
|
84
|
+
diff: (commitHash: string) => Promise<import("@codebolt/types/sdk").GitDiffResponse>;
|
|
83
85
|
};
|
|
84
86
|
llm: {
|
|
85
|
-
inference: (params:
|
|
86
|
-
completion:
|
|
87
|
+
inference: (params: import("@codebolt/types/sdk").LLMInferenceParams) => Promise<{
|
|
88
|
+
completion: import("@codebolt/types/sdk").LLMCompletion;
|
|
87
89
|
}>;
|
|
88
90
|
getModelConfig: (modelId?: string) => Promise<{
|
|
89
|
-
config:
|
|
91
|
+
config: import("@codebolt/types/sdk").LLMModelConfig | null;
|
|
90
92
|
success: boolean;
|
|
91
93
|
error?: string;
|
|
92
94
|
}>;
|
|
93
95
|
};
|
|
94
96
|
browser: {
|
|
95
|
-
newPage: () => Promise<
|
|
96
|
-
getUrl: () => Promise<
|
|
97
|
-
goToPage: (url: string) => Promise<
|
|
98
|
-
screenshot: () => Promise<
|
|
99
|
-
getHTML: () => Promise<
|
|
100
|
-
getMarkdown: () => Promise<
|
|
97
|
+
newPage: () => Promise<import("@codebolt/types/sdk").BrowserActionResponseData>;
|
|
98
|
+
getUrl: () => Promise<import("@codebolt/types/sdk").UrlResponse>;
|
|
99
|
+
goToPage: (url: string) => Promise<import("@codebolt/types/sdk").GoToPageResponse>;
|
|
100
|
+
screenshot: () => Promise<import("@codebolt/types/sdk").BrowserScreenshotResponse>;
|
|
101
|
+
getHTML: () => Promise<import("@codebolt/types/sdk").HtmlReceived>;
|
|
102
|
+
getMarkdown: () => Promise<import("@codebolt/types/sdk").GetMarkdownResponse>;
|
|
101
103
|
getPDF: () => void;
|
|
102
104
|
pdfToText: () => void;
|
|
103
|
-
getContent: () => Promise<
|
|
104
|
-
getSnapShot: () => Promise<
|
|
105
|
-
getBrowserInfo: () => Promise<
|
|
106
|
-
extractText: () => Promise<
|
|
105
|
+
getContent: () => Promise<import("@codebolt/types/sdk").GetContentResponse>;
|
|
106
|
+
getSnapShot: () => Promise<import("@codebolt/types/sdk").BrowserSnapshotResponse>;
|
|
107
|
+
getBrowserInfo: () => Promise<import("@codebolt/types/sdk").BrowserInfoResponse>;
|
|
108
|
+
extractText: () => Promise<import("@codebolt/types/sdk").ExtractTextResponse>;
|
|
107
109
|
close: () => void;
|
|
108
|
-
scroll: (direction: string, pixels: string) => Promise<
|
|
109
|
-
type: (elementid: string, text: string) => Promise<
|
|
110
|
-
click: (elementid: string) => Promise<
|
|
111
|
-
enter: () => Promise<
|
|
112
|
-
search: (elementid: string, query: string) => Promise<
|
|
110
|
+
scroll: (direction: string, pixels: string) => Promise<import("@codebolt/types/sdk").BrowserActionResponseData>;
|
|
111
|
+
type: (elementid: string, text: string) => Promise<import("@codebolt/types/sdk").BrowserActionResponseData>;
|
|
112
|
+
click: (elementid: string) => Promise<import("@codebolt/types/sdk").BrowserActionResponseData>;
|
|
113
|
+
enter: () => Promise<import("@codebolt/types/sdk").BrowserActionResponseData>;
|
|
114
|
+
search: (elementid: string, query: string) => Promise<import("@codebolt/types/sdk").BrowserActionResponseData>;
|
|
113
115
|
};
|
|
114
116
|
chat: {
|
|
115
|
-
getChatHistory: (threadId: string) => Promise<
|
|
117
|
+
getChatHistory: (threadId: string) => Promise<import("@codebolt/types/sdk").ChatMessage>;
|
|
116
118
|
setRequestHandler: (handler: (request: any, response: (data: any) => void) => Promise<void> | void) => void;
|
|
117
|
-
sendMessage: (message: string, payload
|
|
118
|
-
waitforReply: (message: string) => Promise<
|
|
119
|
+
sendMessage: (message: string, payload?: any) => void;
|
|
120
|
+
waitforReply: (message: string) => Promise<import("@codebolt/types/sdk").UserMessage>;
|
|
119
121
|
processStarted: (onStopClicked?: (message: any) => void) => {
|
|
120
122
|
stopProcess: () => void;
|
|
121
123
|
cleanup: () => void;
|
|
@@ -150,8 +152,8 @@ declare class Codebolt {
|
|
|
150
152
|
eventNames(): (string | symbol)[];
|
|
151
153
|
};
|
|
152
154
|
executeCommand: (command: string, returnEmptyStringOnSuccess?: boolean) => Promise<any>;
|
|
153
|
-
executeCommandRunUntilError: (command: string, executeInMain?: boolean) => Promise<
|
|
154
|
-
sendManualInterrupt(): Promise<
|
|
155
|
+
executeCommandRunUntilError: (command: string, executeInMain?: boolean) => Promise<import("@codebolt/types/sdk").CommandError>;
|
|
156
|
+
sendManualInterrupt(): Promise<import("@codebolt/types/sdk").TerminalInterruptResponse>;
|
|
155
157
|
executeCommandWithStream(command: string, executeInMain?: boolean): {
|
|
156
158
|
cleanup?: () => void;
|
|
157
159
|
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
@@ -174,9 +176,9 @@ declare class Codebolt {
|
|
|
174
176
|
};
|
|
175
177
|
codeutils: {
|
|
176
178
|
getAllFilesAsMarkDown: () => Promise<string>;
|
|
177
|
-
performMatch: (matcherDefinition: object, problemPatterns: any[], problems?: any[]) => Promise<
|
|
178
|
-
getMatcherList: () => Promise<
|
|
179
|
-
matchDetail: (matcher: string) => Promise<
|
|
179
|
+
performMatch: (matcherDefinition: object, problemPatterns: any[], problems?: any[]) => Promise<import("@codebolt/types/sdk").MatchProblemResponse>;
|
|
180
|
+
getMatcherList: () => Promise<import("@codebolt/types/sdk").GetMatcherListTreeResponse>;
|
|
181
|
+
matchDetail: (matcher: string) => Promise<import("@codebolt/types/sdk").getMatchDetail>;
|
|
180
182
|
};
|
|
181
183
|
crawler: {
|
|
182
184
|
start: () => void;
|
|
@@ -208,108 +210,148 @@ declare class Codebolt {
|
|
|
208
210
|
parseWarnings: (output: import("../modules/outputparsers").ParsableOutput) => string[];
|
|
209
211
|
};
|
|
210
212
|
project: {
|
|
211
|
-
getProjectSettings: () => Promise<
|
|
212
|
-
getProjectPath: () => Promise<
|
|
213
|
-
getRepoMap: (message: any) => Promise<
|
|
213
|
+
getProjectSettings: () => Promise<import("@codebolt/types/sdk").GetProjectSettingsResponse>;
|
|
214
|
+
getProjectPath: () => Promise<import("@codebolt/types/sdk").GetProjectPathResponse>;
|
|
215
|
+
getRepoMap: (message: any) => Promise<import("@codebolt/types/sdk").GetProjectPathResponse>;
|
|
214
216
|
runProject: () => void;
|
|
215
217
|
getEditorFileStatus: () => Promise<any>;
|
|
216
218
|
};
|
|
217
219
|
dbmemory: {
|
|
218
|
-
addKnowledge: (key: string, value:
|
|
219
|
-
getKnowledge: (key: string) => Promise<
|
|
220
|
+
addKnowledge: (key: string, value: import("@codebolt/types/sdk").MemoryValue) => Promise<import("@codebolt/types/sdk").MemorySetResponse>;
|
|
221
|
+
getKnowledge: (key: string) => Promise<import("@codebolt/types/sdk").MemoryGetResponse>;
|
|
220
222
|
};
|
|
221
223
|
cbstate: {
|
|
222
224
|
getApplicationState: () => Promise<import("../types/commonTypes").ApplicationState>;
|
|
223
|
-
addToAgentState: (key: string, value: string) => Promise<
|
|
224
|
-
getAgentState: () => Promise<
|
|
225
|
-
getProjectState: () => Promise<
|
|
226
|
-
updateProjectState: (key: string, value: any) => Promise<
|
|
225
|
+
addToAgentState: (key: string, value: string) => Promise<import("@codebolt/types/sdk").AddToAgentStateResponse>;
|
|
226
|
+
getAgentState: () => Promise<import("@codebolt/types/sdk").GetAgentStateResponse>;
|
|
227
|
+
getProjectState: () => Promise<import("@codebolt/types/sdk").GetProjectStateResponse>;
|
|
228
|
+
updateProjectState: (key: string, value: any) => Promise<import("@codebolt/types/sdk").UpdateProjectStateResponse>;
|
|
227
229
|
};
|
|
228
230
|
task: {
|
|
229
|
-
createTask: (options:
|
|
230
|
-
createSimpleTask: (taskName: string, threadId?: string) => Promise<
|
|
231
|
-
getTaskList: (options?:
|
|
232
|
-
getTaskDetail: (options:
|
|
233
|
-
addStepToTask: (options:
|
|
234
|
-
getTaskMessages: (options:
|
|
235
|
-
updateTask: (taskId: string, updates:
|
|
236
|
-
updateSimpleTask: (taskId: string, taskName: string) => Promise<
|
|
237
|
-
deleteTask: (taskId: string) => Promise<
|
|
238
|
-
completeTask: (taskId: string) => Promise<
|
|
239
|
-
startTask: (taskId: string) => Promise<
|
|
240
|
-
getAllSteps: (options?:
|
|
241
|
-
getCurrentRunningStep: (options?:
|
|
242
|
-
updateStepStatus: (options:
|
|
243
|
-
completeStep: (options:
|
|
244
|
-
sendSteeringMessage: (options:
|
|
245
|
-
canTaskStart: (taskId: string) => Promise<
|
|
246
|
-
getTasksDependentOn: (taskId: string) => Promise<
|
|
247
|
-
getTasksReadyToStart: (options?:
|
|
248
|
-
getTaskDependencyChain: (taskId: string) => Promise<
|
|
249
|
-
getTaskStats: (options?:
|
|
250
|
-
toggleTaskCompletion: (taskId: string, completed: boolean) => Promise<
|
|
251
|
-
createQuickTask: (name: string, threadId?: string) => Promise<
|
|
252
|
-
getTasksStartedByMe: (userId: string, options?:
|
|
253
|
-
addTask: (params: import("../types/libFunctionTypes").TaskCreateOptions) => Promise<
|
|
254
|
-
getTasks: (filters?: import("../types/libFunctionTypes").TaskFilterOptions) => Promise<
|
|
255
|
-
getTasksByAgent: (agentId: string) => Promise<
|
|
256
|
-
getTasksByCategory: (category: string) => Promise<
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
getAttachedTodos: (taskId: string) => Promise<any>;
|
|
261
|
-
getAttachedJsonMemory: (taskId: string) => Promise<any>;
|
|
262
|
-
getAttachedMarkdownMemory: (taskId: string) => Promise<any>;
|
|
231
|
+
createTask: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").CreateTaskOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CreateTaskResponse>;
|
|
232
|
+
createSimpleTask: (taskName: string, threadId?: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CreateTaskResponse>;
|
|
233
|
+
getTaskList: (options?: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetTaskListOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskListResponse>;
|
|
234
|
+
getTaskDetail: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetTaskDetailOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskDetailResponse>;
|
|
235
|
+
addStepToTask: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").AddStepToTaskOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").AddStepToTaskResponse>;
|
|
236
|
+
getTaskMessages: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetTaskMessagesOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskMessagesResponse>;
|
|
237
|
+
updateTask: (taskId: string, updates: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").UpdateTaskOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").UpdateTaskResponse>;
|
|
238
|
+
updateSimpleTask: (taskId: string, taskName: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").UpdateTaskResponse>;
|
|
239
|
+
deleteTask: (taskId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").DeleteTaskResponse>;
|
|
240
|
+
completeTask: (taskId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CompleteTaskResponse>;
|
|
241
|
+
startTask: (taskId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").StartTaskResponse>;
|
|
242
|
+
getAllSteps: (options?: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetAllStepsOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetAllStepsResponse>;
|
|
243
|
+
getCurrentRunningStep: (options?: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetActiveStepOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetCurrentRunningStepResponse>;
|
|
244
|
+
updateStepStatus: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").UpdateStepStatusOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").UpdateStepStatusResponse>;
|
|
245
|
+
completeStep: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").CompleteStepOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CompleteStepResponse>;
|
|
246
|
+
sendSteeringMessage: (options: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").SendSteeringMessageOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").SendSteeringMessageResponse>;
|
|
247
|
+
canTaskStart: (taskId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CanTaskStartResponse>;
|
|
248
|
+
getTasksDependentOn: (taskId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTasksDependentOnResponse>;
|
|
249
|
+
getTasksReadyToStart: (options?: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetTasksReadyToStartOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTasksReadyToStartResponse>;
|
|
250
|
+
getTaskDependencyChain: (taskId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskDependencyChainResponse>;
|
|
251
|
+
getTaskStats: (options?: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetTaskStatsOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskStatsResponse>;
|
|
252
|
+
toggleTaskCompletion: (taskId: string, completed: boolean) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").UpdateTaskResponse>;
|
|
253
|
+
createQuickTask: (name: string, threadId?: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CreateTaskResponse>;
|
|
254
|
+
getTasksStartedByMe: (userId: string, options?: import("node_modules/@codebolt/types/dist/wstypes/agent-to-app-ws/actions/taskEventSchemas").GetTaskListOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskListResponse>;
|
|
255
|
+
addTask: (params: import("../types/libFunctionTypes").TaskCreateOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").CreateTaskResponse>;
|
|
256
|
+
getTasks: (filters?: import("../types/libFunctionTypes").TaskFilterOptions) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskListResponse>;
|
|
257
|
+
getTasksByAgent: (agentId: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskListResponse>;
|
|
258
|
+
getTasksByCategory: (category: string) => Promise<import("node_modules/@codebolt/types/dist/wstypes/app-to-agent-ws/taskServiceResponses").GetTaskListResponse>;
|
|
259
|
+
attachMemoryToTask: (taskId: string, memoryId: string) => Promise<any>;
|
|
260
|
+
getAttachedMemoryForTask: (taskId: string) => Promise<any>;
|
|
261
|
+
createTaskGroup: (groupName: string, description: string) => Promise<any>;
|
|
263
262
|
};
|
|
264
263
|
vectordb: {
|
|
265
|
-
getVector: (key: string) => Promise<
|
|
266
|
-
addVectorItem: (item: any) => Promise<
|
|
267
|
-
queryVectorItem: (key: string) => Promise<
|
|
268
|
-
queryVectorItems: (items: [], dbPath: string) => Promise<
|
|
264
|
+
getVector: (key: string) => Promise<import("@codebolt/types/sdk").GetVectorResponse>;
|
|
265
|
+
addVectorItem: (item: any) => Promise<import("@codebolt/types/sdk").AddVectorItemResponse>;
|
|
266
|
+
queryVectorItem: (key: string) => Promise<import("@codebolt/types/sdk").QueryVectorItemResponse>;
|
|
267
|
+
queryVectorItems: (items: [], dbPath: string) => Promise<import("@codebolt/types/sdk").QueryVectorItemResponse>;
|
|
269
268
|
};
|
|
270
269
|
debug: {
|
|
271
|
-
debug: (log: string, type: import("../modules/debug").logType) => Promise<
|
|
272
|
-
openDebugBrowser: (url: string, port: number) => Promise<
|
|
270
|
+
debug: (log: string, type: import("../modules/debug").logType) => Promise<import("@codebolt/types/sdk").DebugAddLogResponse>;
|
|
271
|
+
openDebugBrowser: (url: string, port: number) => Promise<import("@codebolt/types/sdk").OpenDebugBrowserResponse>;
|
|
273
272
|
};
|
|
274
273
|
tokenizer: {
|
|
275
|
-
addToken: (key: string) => Promise<
|
|
276
|
-
getToken: (key: string) => Promise<
|
|
274
|
+
addToken: (key: string) => Promise<import("@codebolt/types/sdk").AddTokenResponse>;
|
|
275
|
+
getToken: (key: string) => Promise<import("@codebolt/types/sdk").GetTokenResponse>;
|
|
277
276
|
};
|
|
278
277
|
chatSummary: {
|
|
279
|
-
summarizeAll: () => Promise<
|
|
278
|
+
summarizeAll: () => Promise<import("@codebolt/types/sdk").GetSummarizeAllResponse>;
|
|
280
279
|
summarize: (messages: {
|
|
281
280
|
role: string;
|
|
282
281
|
content: string;
|
|
283
|
-
}[], depth: number) => Promise<
|
|
282
|
+
}[], depth: number) => Promise<import("@codebolt/types/sdk").GetSummarizeResponse>;
|
|
284
283
|
};
|
|
285
284
|
mcp: {
|
|
286
|
-
getEnabledMCPServers: () => Promise<
|
|
287
|
-
getLocalMCPServers: () => Promise<
|
|
288
|
-
getMentionedMCPServers: (userMessage:
|
|
289
|
-
searchAvailableMCPServers: (query: string) => Promise<
|
|
290
|
-
listMcpFromServers: (toolBoxes: string[]) => Promise<
|
|
291
|
-
configureMCPServer: (name: string, config:
|
|
285
|
+
getEnabledMCPServers: () => Promise<import("@codebolt/types/sdk").GetEnabledToolBoxesResponse>;
|
|
286
|
+
getLocalMCPServers: () => Promise<import("@codebolt/types/sdk").GetLocalToolBoxesResponse>;
|
|
287
|
+
getMentionedMCPServers: (userMessage: import("@codebolt/types/sdk").MCPUserMessage) => Promise<import("@codebolt/types/sdk").GetAvailableToolBoxesResponse>;
|
|
288
|
+
searchAvailableMCPServers: (query: string) => Promise<import("@codebolt/types/sdk").SearchAvailableToolBoxesResponse>;
|
|
289
|
+
listMcpFromServers: (toolBoxes: string[]) => Promise<import("@codebolt/types/sdk").ListToolsFromToolBoxesResponse>;
|
|
290
|
+
configureMCPServer: (name: string, config: import("@codebolt/types/sdk").MCPConfiguration) => Promise<import("@codebolt/types/sdk").ConfigureToolBoxResponse>;
|
|
292
291
|
getTools: (tools: {
|
|
293
292
|
toolbox: string;
|
|
294
293
|
toolName: string;
|
|
295
|
-
}[]) => Promise<
|
|
296
|
-
executeTool: (toolbox: string, toolName: string, params:
|
|
294
|
+
}[]) => Promise<import("@codebolt/types/sdk").GetToolsResponse>;
|
|
295
|
+
executeTool: (toolbox: string, toolName: string, params: import("@codebolt/types/sdk").ToolParameters) => Promise<import("@codebolt/types/sdk").ExecuteToolResponse>;
|
|
297
296
|
};
|
|
298
297
|
agent: {
|
|
299
|
-
findAgent: (task: string, maxResult: number | undefined, agents: never[] | undefined, agentLocaltion:
|
|
300
|
-
startAgent: (agentId: string, task: string) => Promise<
|
|
301
|
-
getAgentsList: (type?:
|
|
302
|
-
getAgentsDetail: (agentList?: never[]) => Promise<
|
|
298
|
+
findAgent: (task: string, maxResult: number | undefined, agents: never[] | undefined, agentLocaltion: import("@codebolt/types/enum").AgentLocation | undefined, getFrom: import("@codebolt/types/enum").FilterUsing.USE_VECTOR_DB) => Promise<import("@codebolt/types/sdk").FindAgentByTaskResponse>;
|
|
299
|
+
startAgent: (agentId: string, task: string) => Promise<import("@codebolt/types/sdk").TaskCompletionResponse>;
|
|
300
|
+
getAgentsList: (type?: import("@codebolt/types/enum").Agents) => Promise<import("@codebolt/types/sdk").ListAgentsResponse>;
|
|
301
|
+
getAgentsDetail: (agentList?: never[]) => Promise<import("@codebolt/types/sdk").AgentsDetailResponse>;
|
|
303
302
|
};
|
|
304
303
|
utils: {
|
|
305
|
-
editFileAndApplyDiff: (filePath: string, diff: string, diffIdentifier: string, prompt: string, applyModel?: string) => Promise<
|
|
304
|
+
editFileAndApplyDiff: (filePath: string, diff: string, diffIdentifier: string, prompt: string, applyModel?: string) => Promise<import("@codebolt/types/sdk").FsEditFileAndApplyDiffResponse>;
|
|
306
305
|
};
|
|
307
306
|
notify: NotificationFunctions;
|
|
307
|
+
memory: {
|
|
308
|
+
json: {
|
|
309
|
+
save: (json: any) => Promise<import("../modules/memory").SaveMemoryResponse>;
|
|
310
|
+
update: (memoryId: string, json: any) => Promise<import("../modules/memory").UpdateMemoryResponse>;
|
|
311
|
+
delete: (memoryId: string) => Promise<import("../modules/memory").DeleteMemoryResponse>;
|
|
312
|
+
list: (filters?: Record<string, unknown>) => Promise<import("../modules/memory").ListMemoryResponse>;
|
|
313
|
+
};
|
|
314
|
+
todo: {
|
|
315
|
+
save: (todo: import("@codebolt/types/agent-to-app-ws-schema").TodoData, metadata?: Record<string, unknown>) => Promise<import("../modules/memory").SaveMemoryResponse>;
|
|
316
|
+
update: (memoryId: string, todo: import("@codebolt/types/agent-to-app-ws-schema").TodoItem) => Promise<import("../modules/memory").UpdateMemoryResponse>;
|
|
317
|
+
delete: (memoryId: string) => Promise<import("../modules/memory").DeleteMemoryResponse>;
|
|
318
|
+
list: (filters?: Record<string, unknown>) => Promise<import("../modules/memory").ListMemoryResponse>;
|
|
319
|
+
};
|
|
320
|
+
markdown: {
|
|
321
|
+
save: (markdown: string, metadata?: Record<string, unknown>) => Promise<import("../modules/memory").SaveMemoryResponse>;
|
|
322
|
+
update: (memoryId: string, markdown: string, metadata?: Record<string, unknown>) => Promise<import("../modules/memory").UpdateMemoryResponse>;
|
|
323
|
+
delete: (memoryId: string) => Promise<import("../modules/memory").DeleteMemoryResponse>;
|
|
324
|
+
list: (filters?: Record<string, unknown>) => Promise<import("../modules/memory").ListMemoryResponse>;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
actionPlan: {
|
|
328
|
+
getAllPlans: () => Promise<any>;
|
|
329
|
+
getPlanDetail: (planId: string) => Promise<any>;
|
|
330
|
+
getActionPlanDetail: (planId: string) => Promise<any>;
|
|
331
|
+
createActionPlan: (payload: {
|
|
332
|
+
name: string;
|
|
333
|
+
description?: string;
|
|
334
|
+
agentId?: string;
|
|
335
|
+
agentName?: string;
|
|
336
|
+
status?: string;
|
|
337
|
+
planId?: string;
|
|
338
|
+
}) => Promise<any>;
|
|
339
|
+
updateActionPlan: (planId: string, updateData: any) => Promise<any>;
|
|
340
|
+
addTaskToActionPlan: (planId: string, task: {
|
|
341
|
+
name: string;
|
|
342
|
+
description?: string;
|
|
343
|
+
priority?: string;
|
|
344
|
+
taskType?: string;
|
|
345
|
+
[key: string]: any;
|
|
346
|
+
}) => Promise<any>;
|
|
347
|
+
startTaskStep: (planId: string, taskId: string) => Promise<any>;
|
|
348
|
+
startTaskStepWithListener: (planId: string, taskId: string, onResponse: (response: any) => void) => () => void;
|
|
349
|
+
};
|
|
308
350
|
/**
|
|
309
351
|
* User message utilities for accessing current user message and context
|
|
310
352
|
*/
|
|
311
353
|
userMessage: {
|
|
312
|
-
getCurrent: () =>
|
|
354
|
+
getCurrent: () => FlatUserMessage | undefined;
|
|
313
355
|
getText: () => string;
|
|
314
356
|
getMentionedMCPs: () => string[];
|
|
315
357
|
getMentionedFiles: () => string[];
|
|
@@ -321,7 +363,7 @@ declare class Codebolt {
|
|
|
321
363
|
getSelection: () => string | undefined;
|
|
322
364
|
getMessageId: () => string | undefined;
|
|
323
365
|
getThreadId: () => string | undefined;
|
|
324
|
-
getProcessingConfig: () => AgentProcessingConfig;
|
|
366
|
+
getProcessingConfig: () => import("@codebolt/types/sdk").AgentProcessingConfig;
|
|
325
367
|
isProcessingEnabled: (type: "processMentionedMCPs" | "processRemixPrompt" | "processMentionedFiles" | "processMentionedAgents") => boolean;
|
|
326
368
|
setSessionData: (key: string, value: any) => void;
|
|
327
369
|
getSessionData: (key: string) => any;
|
|
@@ -337,6 +379,19 @@ declare class Codebolt {
|
|
|
337
379
|
* @returns {void}
|
|
338
380
|
*/
|
|
339
381
|
onReady(handler: () => void | Promise<void>): void;
|
|
382
|
+
/**
|
|
383
|
+
* Waits for and returns the next incoming message.
|
|
384
|
+
* If a message is already in the queue, returns it immediately.
|
|
385
|
+
* Otherwise, waits for the next message to arrive.
|
|
386
|
+
* @returns {Promise<FlatUserMessage>} A promise that resolves with the next message
|
|
387
|
+
*/
|
|
388
|
+
getMessage(): Promise<FlatUserMessage>;
|
|
389
|
+
/**
|
|
390
|
+
* Handles an incoming message by either resolving a waiting promise
|
|
391
|
+
* or adding it to the queue if no promises are waiting.
|
|
392
|
+
* @private
|
|
393
|
+
*/
|
|
394
|
+
private handleIncomingMessage;
|
|
340
395
|
/**
|
|
341
396
|
* Sets up a listener for incoming messages with a direct handler function.
|
|
342
397
|
* @param {Function} handler - The handler function to call when a message is received.
|
package/dist/core/Codebolt.js
CHANGED
|
@@ -25,8 +25,10 @@ const debug_1 = __importDefault(require("../modules/debug"));
|
|
|
25
25
|
const tokenizer_1 = __importDefault(require("../modules/tokenizer"));
|
|
26
26
|
const history_1 = require("../modules/history");
|
|
27
27
|
const mcp_1 = __importDefault(require("../modules/mcp"));
|
|
28
|
+
const memory_1 = __importDefault(require("../modules/memory"));
|
|
28
29
|
const agent_1 = __importDefault(require("../modules/agent"));
|
|
29
30
|
const utils_1 = __importDefault(require("../modules/utils"));
|
|
31
|
+
const actionPlan_1 = __importDefault(require("../modules/actionPlan"));
|
|
30
32
|
const notificationfunctions_1 = require("../notificationfunctions");
|
|
31
33
|
const user_message_manager_1 = require("../modules/user-message-manager");
|
|
32
34
|
const user_message_utilities_1 = require("../modules/user-message-utilities");
|
|
@@ -43,6 +45,8 @@ class Codebolt {
|
|
|
43
45
|
this.websocket = null;
|
|
44
46
|
this.isReady = false;
|
|
45
47
|
this.readyHandlers = [];
|
|
48
|
+
this.messageQueue = [];
|
|
49
|
+
this.messageResolvers = [];
|
|
46
50
|
this.fs = fs_1.default;
|
|
47
51
|
this.git = git_1.default;
|
|
48
52
|
this.llm = llm_1.default;
|
|
@@ -67,6 +71,8 @@ class Codebolt {
|
|
|
67
71
|
this.agent = agent_1.default;
|
|
68
72
|
this.utils = utils_1.default;
|
|
69
73
|
this.notify = notificationfunctions_1.notificationFunctions;
|
|
74
|
+
this.memory = memory_1.default;
|
|
75
|
+
this.actionPlan = actionPlan_1.default;
|
|
70
76
|
/**
|
|
71
77
|
* User message utilities for accessing current user message and context
|
|
72
78
|
*/
|
|
@@ -142,6 +148,39 @@ class Codebolt {
|
|
|
142
148
|
this.readyHandlers.push(handler);
|
|
143
149
|
}
|
|
144
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Waits for and returns the next incoming message.
|
|
153
|
+
* If a message is already in the queue, returns it immediately.
|
|
154
|
+
* Otherwise, waits for the next message to arrive.
|
|
155
|
+
* @returns {Promise<FlatUserMessage>} A promise that resolves with the next message
|
|
156
|
+
*/
|
|
157
|
+
getMessage() {
|
|
158
|
+
// If there are queued messages, return the first one
|
|
159
|
+
if (this.messageQueue.length > 0) {
|
|
160
|
+
const message = this.messageQueue.shift();
|
|
161
|
+
return Promise.resolve(message);
|
|
162
|
+
}
|
|
163
|
+
// Otherwise, create a new promise that will be resolved when a message arrives
|
|
164
|
+
return new Promise((resolve) => {
|
|
165
|
+
this.messageResolvers.push(resolve);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Handles an incoming message by either resolving a waiting promise
|
|
170
|
+
* or adding it to the queue if no promises are waiting.
|
|
171
|
+
* @private
|
|
172
|
+
*/
|
|
173
|
+
handleIncomingMessage(message) {
|
|
174
|
+
if (this.messageResolvers.length > 0) {
|
|
175
|
+
// If there are waiting resolvers, resolve the first one
|
|
176
|
+
const resolver = this.messageResolvers.shift();
|
|
177
|
+
resolver(message);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
// Otherwise, add to the queue
|
|
181
|
+
this.messageQueue.push(message);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
145
184
|
/**
|
|
146
185
|
* Sets up a listener for incoming messages with a direct handler function.
|
|
147
186
|
* @param {Function} handler - The handler function to call when a message is received.
|
|
@@ -178,6 +217,9 @@ class Codebolt {
|
|
|
178
217
|
};
|
|
179
218
|
// Automatically save the user message globally
|
|
180
219
|
user_message_manager_1.userMessageManager.saveMessage(userMessage);
|
|
220
|
+
// Handle the message in the queue system
|
|
221
|
+
this.handleIncomingMessage(userMessage);
|
|
222
|
+
// Call the original handler
|
|
181
223
|
const result = await handler(userMessage);
|
|
182
224
|
// Send processStoped with optional message
|
|
183
225
|
const message = {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const codeboltActionPlan: {
|
|
2
|
+
/**
|
|
3
|
+
* Get all action plans
|
|
4
|
+
* @returns Promise with all action plans
|
|
5
|
+
*/
|
|
6
|
+
getAllPlans: () => Promise<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Get action plan detail by ID
|
|
9
|
+
* @param planId - The ID of the action plan
|
|
10
|
+
* @returns Promise with action plan details
|
|
11
|
+
*/
|
|
12
|
+
getPlanDetail: (planId: string) => Promise<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Get action plan detail by ID (alternative method)
|
|
15
|
+
* @param planId - The ID of the action plan
|
|
16
|
+
* @returns Promise with action plan details
|
|
17
|
+
*/
|
|
18
|
+
getActionPlanDetail: (planId: string) => Promise<any>;
|
|
19
|
+
/**
|
|
20
|
+
* Create a new action plan
|
|
21
|
+
* @param payload - Action plan creation data (name, description, agentId, agentName, status, planId)
|
|
22
|
+
* @returns Promise with created action plan
|
|
23
|
+
*/
|
|
24
|
+
createActionPlan: (payload: {
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
agentId?: string;
|
|
28
|
+
agentName?: string;
|
|
29
|
+
status?: string;
|
|
30
|
+
planId?: string;
|
|
31
|
+
}) => Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* Update an existing action plan
|
|
34
|
+
* @param planId - The ID of the action plan to update
|
|
35
|
+
* @param updateData - Data to update in the action plan
|
|
36
|
+
* @returns Promise with updated action plan
|
|
37
|
+
*/
|
|
38
|
+
updateActionPlan: (planId: string, updateData: any) => Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* Add a task to an action plan
|
|
41
|
+
* @param planId - The ID of the action plan
|
|
42
|
+
* @param task - Task data to add (name, description, priority, taskType, etc.)
|
|
43
|
+
* @returns Promise with added task and updated action plan
|
|
44
|
+
*/
|
|
45
|
+
addTaskToActionPlan: (planId: string, task: {
|
|
46
|
+
name: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
priority?: string;
|
|
49
|
+
taskType?: string;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}) => Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Start/execute a task step in an action plan
|
|
54
|
+
* @param planId - The ID of the action plan
|
|
55
|
+
* @param taskId - The ID of the task to start
|
|
56
|
+
* @returns Promise with task execution status
|
|
57
|
+
*/
|
|
58
|
+
startTaskStep: (planId: string, taskId: string) => Promise<any>;
|
|
59
|
+
/**
|
|
60
|
+
* Start/execute a task step in an action plan with event listener
|
|
61
|
+
* @param planId - The ID of the action plan
|
|
62
|
+
* @param taskId - The ID of the task to start
|
|
63
|
+
* @param onResponse - Callback function that will be called when receiving responses for this task
|
|
64
|
+
* @returns Cleanup function to remove the event listener
|
|
65
|
+
*/
|
|
66
|
+
startTaskStepWithListener: (planId: string, taskId: string, onResponse: (response: any) => void) => () => void;
|
|
67
|
+
};
|
|
68
|
+
export default codeboltActionPlan;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const websocket_1 = __importDefault(require("../core/websocket"));
|
|
7
|
+
const enum_1 = require("@codebolt/types/enum");
|
|
8
|
+
const codeboltActionPlan = {
|
|
9
|
+
/**
|
|
10
|
+
* Get all action plans
|
|
11
|
+
* @returns Promise with all action plans
|
|
12
|
+
*/
|
|
13
|
+
getAllPlans: () => {
|
|
14
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
15
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
16
|
+
"action": enum_1.ActionPlanAction.GETALL_ACTION_PLAN,
|
|
17
|
+
}, enum_1.ActionPlanResponseType.GETALL_ACTION_PLAN_RESPONSE);
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* Get action plan detail by ID
|
|
21
|
+
* @param planId - The ID of the action plan
|
|
22
|
+
* @returns Promise with action plan details
|
|
23
|
+
*/
|
|
24
|
+
getPlanDetail: (planId) => {
|
|
25
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
26
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
27
|
+
"action": enum_1.ActionPlanAction.GET_PLAN_DETAIL,
|
|
28
|
+
message: { planId }
|
|
29
|
+
}, enum_1.ActionPlanResponseType.GET_PLAN_DETAIL_RESPONSE);
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Get action plan detail by ID (alternative method)
|
|
33
|
+
* @param planId - The ID of the action plan
|
|
34
|
+
* @returns Promise with action plan details
|
|
35
|
+
*/
|
|
36
|
+
getActionPlanDetail: (planId) => {
|
|
37
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
38
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
39
|
+
"action": enum_1.ActionPlanAction.GET_ACTION_PLAN_DETAIL,
|
|
40
|
+
message: { planId }
|
|
41
|
+
}, enum_1.ActionPlanResponseType.GET_ACTION_PLAN_DETAIL_RESPONSE);
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Create a new action plan
|
|
45
|
+
* @param payload - Action plan creation data (name, description, agentId, agentName, status, planId)
|
|
46
|
+
* @returns Promise with created action plan
|
|
47
|
+
*/
|
|
48
|
+
createActionPlan: (payload) => {
|
|
49
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
50
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
51
|
+
"action": enum_1.ActionPlanAction.CREATE_ACTION_PLAN,
|
|
52
|
+
message: payload
|
|
53
|
+
}, enum_1.ActionPlanResponseType.CREATE_ACTION_PLAN_RESPONSE);
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Update an existing action plan
|
|
57
|
+
* @param planId - The ID of the action plan to update
|
|
58
|
+
* @param updateData - Data to update in the action plan
|
|
59
|
+
* @returns Promise with updated action plan
|
|
60
|
+
*/
|
|
61
|
+
updateActionPlan: (planId, updateData) => {
|
|
62
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
63
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
64
|
+
"action": enum_1.ActionPlanAction.UPDATE_ACTION_PLAN,
|
|
65
|
+
message: { planId, ...updateData }
|
|
66
|
+
}, enum_1.ActionPlanResponseType.UPDATE_ACTION_PLAN_RESPONSE);
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Add a task to an action plan
|
|
70
|
+
* @param planId - The ID of the action plan
|
|
71
|
+
* @param task - Task data to add (name, description, priority, taskType, etc.)
|
|
72
|
+
* @returns Promise with added task and updated action plan
|
|
73
|
+
*/
|
|
74
|
+
addTaskToActionPlan: (planId, task) => {
|
|
75
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
76
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
77
|
+
"action": enum_1.ActionPlanAction.ADD_TASK_TO_ACTION_PLAN,
|
|
78
|
+
message: { planId, task }
|
|
79
|
+
}, enum_1.ActionPlanResponseType.ADD_TASK_TO_ACTION_PLAN_RESPONSE);
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Start/execute a task step in an action plan
|
|
83
|
+
* @param planId - The ID of the action plan
|
|
84
|
+
* @param taskId - The ID of the task to start
|
|
85
|
+
* @returns Promise with task execution status
|
|
86
|
+
*/
|
|
87
|
+
startTaskStep: (planId, taskId) => {
|
|
88
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({
|
|
89
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
90
|
+
"action": enum_1.ActionPlanAction.START_TASK_STEP,
|
|
91
|
+
message: { planId, taskId }
|
|
92
|
+
}, enum_1.ActionPlanResponseType.START_TASK_STEP_RESPONSE);
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* Start/execute a task step in an action plan with event listener
|
|
96
|
+
* @param planId - The ID of the action plan
|
|
97
|
+
* @param taskId - The ID of the task to start
|
|
98
|
+
* @param onResponse - Callback function that will be called when receiving responses for this task
|
|
99
|
+
* @returns Cleanup function to remove the event listener
|
|
100
|
+
*/
|
|
101
|
+
startTaskStepWithListener: (planId, taskId, onResponse) => {
|
|
102
|
+
// Set up event listener
|
|
103
|
+
const listener = (response) => {
|
|
104
|
+
// Filter responses related to this specific task
|
|
105
|
+
if (response.type === enum_1.ActionPlanResponseType.START_TASK_STEP_RESPONSE) {
|
|
106
|
+
if ((response === null || response === void 0 ? void 0 : response.taskId) === taskId) {
|
|
107
|
+
onResponse(response);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
// Add the listener to the message manager
|
|
112
|
+
websocket_1.default.messageManager.on('message', listener);
|
|
113
|
+
// Send the request
|
|
114
|
+
websocket_1.default.messageManager.send({
|
|
115
|
+
"type": enum_1.EventType.ACTION_PLAN,
|
|
116
|
+
"action": enum_1.ActionPlanAction.START_TASK_STEP,
|
|
117
|
+
message: { planId, taskId }
|
|
118
|
+
});
|
|
119
|
+
// Return cleanup function to remove the listener
|
|
120
|
+
return () => {
|
|
121
|
+
websocket_1.default.messageManager.off('message', listener);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
exports.default = codeboltActionPlan;
|
package/dist/modules/agent.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const codeboltAgent: {
|
|
|
6
6
|
* @param {string} task - The task for which an agent is needed.
|
|
7
7
|
* @returns {Promise<FindAgentByTaskResponse>} A promise that resolves with the agent details.
|
|
8
8
|
*/
|
|
9
|
-
findAgent: (task: string, maxResult: number | undefined, agents: never[] | undefined, agentLocaltion: AgentLocation, getFrom: FilterUsing.USE_VECTOR_DB) => Promise<FindAgentByTaskResponse>;
|
|
9
|
+
findAgent: (task: string, maxResult: number | undefined, agents: never[] | undefined, agentLocaltion: AgentLocation | undefined, getFrom: FilterUsing.USE_VECTOR_DB) => Promise<FindAgentByTaskResponse>;
|
|
10
10
|
/**
|
|
11
11
|
* Starts an agent for the specified task.
|
|
12
12
|
* @param {string} task - The task for which the agent should be started.
|
package/dist/modules/chat.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare const cbchat: {
|
|
|
18
18
|
* Sends a message through the WebSocket connection.
|
|
19
19
|
* @param {string} message - The message to be sent.
|
|
20
20
|
*/
|
|
21
|
-
sendMessage: (message: string, payload
|
|
21
|
+
sendMessage: (message: string, payload?: any) => void;
|
|
22
22
|
/**
|
|
23
23
|
* Waits for a reply to a sent message.
|
|
24
24
|
* @param {string} message - The message for which a reply is expected.
|
package/dist/modules/memory.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TodoItem, TodoData } from '@codebolt/types/agent-to-app-ws-schema';
|
|
1
2
|
export interface BaseMemoryResponse {
|
|
2
3
|
requestId: string;
|
|
3
4
|
success?: boolean;
|
|
@@ -29,6 +30,12 @@ declare const cbmemory: {
|
|
|
29
30
|
delete: (memoryId: string) => Promise<DeleteMemoryResponse>;
|
|
30
31
|
list: (filters?: Record<string, unknown>) => Promise<ListMemoryResponse>;
|
|
31
32
|
};
|
|
33
|
+
todo: {
|
|
34
|
+
save: (todo: TodoData, metadata?: Record<string, unknown>) => Promise<SaveMemoryResponse>;
|
|
35
|
+
update: (memoryId: string, todo: TodoItem) => Promise<UpdateMemoryResponse>;
|
|
36
|
+
delete: (memoryId: string) => Promise<DeleteMemoryResponse>;
|
|
37
|
+
list: (filters?: Record<string, unknown>) => Promise<ListMemoryResponse>;
|
|
38
|
+
};
|
|
32
39
|
markdown: {
|
|
33
40
|
save: (markdown: string, metadata?: Record<string, unknown>) => Promise<SaveMemoryResponse>;
|
|
34
41
|
update: (memoryId: string, markdown: string, metadata?: Record<string, unknown>) => Promise<UpdateMemoryResponse>;
|
package/dist/modules/memory.js
CHANGED
|
@@ -8,22 +8,20 @@ const crypto_1 = require("crypto");
|
|
|
8
8
|
const cbmemory = {
|
|
9
9
|
json: {
|
|
10
10
|
save: (json) => {
|
|
11
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
12
11
|
const event = {
|
|
13
12
|
type: 'memoryEvent',
|
|
14
13
|
action: 'saveMemory',
|
|
15
|
-
requestId,
|
|
14
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
16
15
|
format: 'json',
|
|
17
16
|
json
|
|
18
17
|
};
|
|
19
18
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'saveMemoryResponse');
|
|
20
19
|
},
|
|
21
20
|
update: (memoryId, json) => {
|
|
22
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
23
21
|
const event = {
|
|
24
22
|
type: 'memoryEvent',
|
|
25
23
|
action: 'updateMemory',
|
|
26
|
-
requestId,
|
|
24
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
27
25
|
format: 'json',
|
|
28
26
|
memoryId,
|
|
29
27
|
json
|
|
@@ -31,35 +29,76 @@ const cbmemory = {
|
|
|
31
29
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'updateMemoryResponse');
|
|
32
30
|
},
|
|
33
31
|
delete: (memoryId) => {
|
|
34
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
35
32
|
const event = {
|
|
36
33
|
type: 'memoryEvent',
|
|
37
34
|
action: 'deleteMemory',
|
|
38
|
-
requestId,
|
|
35
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
39
36
|
format: 'json',
|
|
40
37
|
memoryId
|
|
41
38
|
};
|
|
42
39
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'deleteMemoryResponse');
|
|
43
40
|
},
|
|
44
41
|
list: (filters = {}) => {
|
|
45
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
46
42
|
const event = {
|
|
47
43
|
type: 'memoryEvent',
|
|
48
44
|
action: 'listMemory',
|
|
49
|
-
requestId,
|
|
45
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
50
46
|
format: 'json',
|
|
51
47
|
filters
|
|
52
48
|
};
|
|
53
49
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'listMemoryResponse');
|
|
54
50
|
}
|
|
55
51
|
},
|
|
52
|
+
todo: {
|
|
53
|
+
save: (todo, metadata = {}) => {
|
|
54
|
+
const event = {
|
|
55
|
+
type: 'memoryEvent',
|
|
56
|
+
action: 'saveMemory',
|
|
57
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
58
|
+
format: 'todo',
|
|
59
|
+
todo,
|
|
60
|
+
metadata
|
|
61
|
+
};
|
|
62
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'saveMemoryResponse');
|
|
63
|
+
},
|
|
64
|
+
update: (memoryId, todo) => {
|
|
65
|
+
const event = {
|
|
66
|
+
type: 'memoryEvent',
|
|
67
|
+
action: 'updateMemory',
|
|
68
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
69
|
+
format: 'todo',
|
|
70
|
+
memoryId,
|
|
71
|
+
todo
|
|
72
|
+
};
|
|
73
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'updateMemoryResponse');
|
|
74
|
+
},
|
|
75
|
+
delete: (memoryId) => {
|
|
76
|
+
const event = {
|
|
77
|
+
type: 'memoryEvent',
|
|
78
|
+
action: 'deleteMemory',
|
|
79
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
80
|
+
format: 'todo',
|
|
81
|
+
memoryId
|
|
82
|
+
};
|
|
83
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'deleteMemoryResponse');
|
|
84
|
+
},
|
|
85
|
+
list: (filters = {}) => {
|
|
86
|
+
const event = {
|
|
87
|
+
type: 'memoryEvent',
|
|
88
|
+
action: 'listMemory',
|
|
89
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
90
|
+
format: 'todo',
|
|
91
|
+
filters
|
|
92
|
+
};
|
|
93
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'listMemoryResponse');
|
|
94
|
+
}
|
|
95
|
+
},
|
|
56
96
|
markdown: {
|
|
57
97
|
save: (markdown, metadata = {}) => {
|
|
58
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
59
98
|
const event = {
|
|
60
99
|
type: 'memoryEvent',
|
|
61
100
|
action: 'saveMemory',
|
|
62
|
-
requestId,
|
|
101
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
63
102
|
format: 'markdown',
|
|
64
103
|
markdown,
|
|
65
104
|
metadata
|
|
@@ -67,11 +106,10 @@ const cbmemory = {
|
|
|
67
106
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'saveMemoryResponse');
|
|
68
107
|
},
|
|
69
108
|
update: (memoryId, markdown, metadata = {}) => {
|
|
70
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
71
109
|
const event = {
|
|
72
110
|
type: 'memoryEvent',
|
|
73
111
|
action: 'updateMemory',
|
|
74
|
-
requestId,
|
|
112
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
75
113
|
format: 'markdown',
|
|
76
114
|
memoryId,
|
|
77
115
|
markdown,
|
|
@@ -80,22 +118,20 @@ const cbmemory = {
|
|
|
80
118
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'updateMemoryResponse');
|
|
81
119
|
},
|
|
82
120
|
delete: (memoryId) => {
|
|
83
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
84
121
|
const event = {
|
|
85
122
|
type: 'memoryEvent',
|
|
86
123
|
action: 'deleteMemory',
|
|
87
|
-
requestId,
|
|
124
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
88
125
|
format: 'markdown',
|
|
89
126
|
memoryId
|
|
90
127
|
};
|
|
91
128
|
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'deleteMemoryResponse');
|
|
92
129
|
},
|
|
93
130
|
list: (filters = {}) => {
|
|
94
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
95
131
|
const event = {
|
|
96
132
|
type: 'memoryEvent',
|
|
97
133
|
action: 'listMemory',
|
|
98
|
-
requestId,
|
|
134
|
+
requestId: (0, crypto_1.randomUUID)(),
|
|
99
135
|
format: 'markdown',
|
|
100
136
|
filters
|
|
101
137
|
};
|
package/dist/modules/task.d.ts
CHANGED
|
@@ -176,12 +176,9 @@ declare const taskService: {
|
|
|
176
176
|
* @deprecated Use getTaskList instead
|
|
177
177
|
*/
|
|
178
178
|
getTasksByCategory: (category: string) => Promise<GetTaskListResponse>;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
getAttachedTodos: (taskId: string) => Promise<any>;
|
|
183
|
-
getAttachedJsonMemory: (taskId: string) => Promise<any>;
|
|
184
|
-
getAttachedMarkdownMemory: (taskId: string) => Promise<any>;
|
|
179
|
+
attachMemoryToTask: (taskId: string, memoryId: string) => Promise<any>;
|
|
180
|
+
getAttachedMemoryForTask: (taskId: string) => Promise<any>;
|
|
181
|
+
createTaskGroup: (groupName: string, description: string) => Promise<any>;
|
|
185
182
|
};
|
|
186
183
|
export type { Task, ExtendedTask, Step, ExtendedStep, TaskMessage, MessageData, ResponseMessageData, TaskStats, CreateTaskOptions, UpdateTaskOptions, GetTaskListOptions, AddStepToTaskOptions, GetTaskDetailOptions, GetTaskMessagesOptions, UpdateStepStatusOptions, CompleteStepOptions, SendSteeringMessageOptions, GetAllStepsOptions, GetActiveStepOptions, DeleteTaskOptions, CompleteTaskOptions, StartTaskOptions, CanTaskStartOptions, GetTasksDependentOnOptions, GetTasksReadyToStartOptions, GetTaskDependencyChainOptions, GetTaskStatsOptions, TaskResponse, TaskListResponse, StepResponse, StepListResponse, TaskMessagesResponse, ActiveStepResponse, SendSteeringMessageResponse, DeleteTaskResponse, CanTaskStartResponse, TaskStatsResponse, CreateTaskResponse, GetTaskListResponse, AddStepToTaskResponse, GetTaskDetailResponse, GetTaskMessagesResponse, GetAllStepsResponse, GetCurrentRunningStepResponse, UpdateStepStatusResponse, CompleteStepResponse, UpdateTaskResponse, CompleteTaskResponse, StartTaskResponse, GetTasksDependentOnResponse, GetTasksReadyToStartResponse, GetTaskDependencyChainResponse, GetTaskStatsResponse, Position, FlowData };
|
|
187
184
|
export type { LegacyTask as Task_Legacy, LegacySubTask as SubTask, LegacyTaskResponse as TaskResponse_Legacy, LegacyTaskCreateOptions as TaskCreateOptions_Legacy, LegacyTaskUpdateOptions as TaskUpdateOptions_Legacy, AddSubTaskOptions, UpdateSubTaskOptions, TaskFilterOptions, TaskMarkdownImportOptions, TaskMarkdownExportOptions };
|
package/dist/modules/task.js
CHANGED
|
@@ -437,68 +437,37 @@ const taskService = {
|
|
|
437
437
|
// This would need to be implemented as post-processing
|
|
438
438
|
return taskService.getTaskList();
|
|
439
439
|
},
|
|
440
|
-
|
|
440
|
+
attachMemoryToTask: (taskId, memoryId) => {
|
|
441
441
|
const requestId = (0, crypto_1.randomUUID)();
|
|
442
442
|
const event = {
|
|
443
443
|
type: 'taskEvent',
|
|
444
|
-
action: '
|
|
444
|
+
action: 'attachMemoryToTask',
|
|
445
445
|
requestId,
|
|
446
446
|
taskId,
|
|
447
447
|
memoryId
|
|
448
448
|
};
|
|
449
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse(event, '
|
|
449
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'attachMemoryToTaskResponse');
|
|
450
450
|
},
|
|
451
|
-
|
|
451
|
+
getAttachedMemoryForTask: (taskId) => {
|
|
452
452
|
const requestId = (0, crypto_1.randomUUID)();
|
|
453
453
|
const event = {
|
|
454
454
|
type: 'taskEvent',
|
|
455
|
-
action: '
|
|
455
|
+
action: 'getAttachedFromTaskMemory',
|
|
456
456
|
requestId,
|
|
457
457
|
taskId,
|
|
458
|
-
memoryId
|
|
459
|
-
};
|
|
460
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'attachJsonMemoryToTaskResponse');
|
|
461
|
-
},
|
|
462
|
-
attachToDoToTask: (taskId, todoId) => {
|
|
463
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
464
|
-
const event = {
|
|
465
|
-
type: 'taskEvent',
|
|
466
|
-
action: 'attachToDoToTask',
|
|
467
|
-
requestId,
|
|
468
|
-
taskId,
|
|
469
|
-
todoId
|
|
470
458
|
};
|
|
471
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse(event, '
|
|
459
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'getAttachedFromTaskMemoryResponse');
|
|
472
460
|
},
|
|
473
|
-
|
|
461
|
+
createTaskGroup: (groupName, description) => {
|
|
474
462
|
const requestId = (0, crypto_1.randomUUID)();
|
|
475
463
|
const event = {
|
|
476
464
|
type: 'taskEvent',
|
|
477
|
-
action: '
|
|
465
|
+
action: 'createTaskGroup',
|
|
478
466
|
requestId,
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'attachToDoToTaskResponse');
|
|
482
|
-
},
|
|
483
|
-
getAttachedJsonMemory: (taskId) => {
|
|
484
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
485
|
-
const event = {
|
|
486
|
-
type: 'taskEvent',
|
|
487
|
-
action: 'getAttachedJsonMemory',
|
|
488
|
-
requestId,
|
|
489
|
-
taskId,
|
|
490
|
-
};
|
|
491
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'getAttachedJsonMemoryResponse');
|
|
492
|
-
},
|
|
493
|
-
getAttachedMarkdownMemory: (taskId) => {
|
|
494
|
-
const requestId = (0, crypto_1.randomUUID)();
|
|
495
|
-
const event = {
|
|
496
|
-
type: 'taskEvent',
|
|
497
|
-
action: 'getAttachedMarkdownMemory',
|
|
498
|
-
requestId,
|
|
499
|
-
taskId,
|
|
467
|
+
groupName,
|
|
468
|
+
description
|
|
500
469
|
};
|
|
501
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse(event, '
|
|
470
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse(event, 'createTaskGroupResponse');
|
|
502
471
|
}
|
|
503
472
|
};
|
|
504
473
|
exports.default = taskService;
|
|
@@ -10,7 +10,7 @@ export declare const userMessageUtilities: {
|
|
|
10
10
|
* Get the current user message object
|
|
11
11
|
* @returns Current UserMessage or undefined
|
|
12
12
|
*/
|
|
13
|
-
getCurrent: () =>
|
|
13
|
+
getCurrent: () => import("@codebolt/types/sdk").FlatUserMessage | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* Get the user message text content
|
|
16
16
|
* @returns Message text string
|
|
@@ -70,7 +70,7 @@ export declare const userMessageUtilities: {
|
|
|
70
70
|
* Get processing configuration
|
|
71
71
|
* @returns Processing configuration object
|
|
72
72
|
*/
|
|
73
|
-
getProcessingConfig: () => AgentProcessingConfig;
|
|
73
|
+
getProcessingConfig: () => import("@codebolt/types/sdk").AgentProcessingConfig;
|
|
74
74
|
/**
|
|
75
75
|
* Check if a processing type is enabled
|
|
76
76
|
* @param type Processing type to check
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebolt/codeboltjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"uuid": "^11.1.0",
|
|
36
36
|
"ws": "^8.18.3",
|
|
37
37
|
"yargs": "^17.7.2",
|
|
38
|
-
"@codebolt/types": "1.0.
|
|
38
|
+
"@codebolt/types": "1.0.22"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/events": "^3.0.3",
|