@codebolt/codeboltjs 2.0.17 → 2.2.1
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 +48 -53
- package/dist/core/messageManager.d.ts +0 -1
- package/dist/modules/chat.d.ts +1 -1
- package/dist/modules/codeparsers.js +24 -15
- package/dist/modules/codeutils.js +19 -9
- package/dist/modules/task.d.ts +1 -1
- package/dist/modules/terminal.d.ts +0 -1
- package/dist/notificationfunctions/agent.js +4 -4
- package/dist/notificationfunctions/browser.js +5 -5
- package/dist/notificationfunctions/chat.js +5 -5
- package/dist/notificationfunctions/codeutils.js +5 -5
- package/dist/notificationfunctions/crawler.js +5 -5
- package/dist/notificationfunctions/dbmemory.js +5 -5
- package/dist/notificationfunctions/fs.js +23 -23
- package/dist/notificationfunctions/git.js +25 -25
- package/dist/notificationfunctions/history.js +5 -5
- package/dist/notificationfunctions/llm.js +5 -5
- package/dist/notificationfunctions/mcp.js +9 -9
- package/dist/notificationfunctions/search.js +7 -7
- package/dist/notificationfunctions/system.js +3 -3
- package/dist/notificationfunctions/terminal.js +3 -3
- package/dist/notificationfunctions/todo.js +7 -7
- package/dist/notificationfunctions/utils.js +8 -8
- package/dist/types/InternalTypes.d.ts +0 -3
- package/dist/types/commonTypes.d.ts +2 -2
- package/dist/types/socketMessageTypes.d.ts +0 -2
- package/dist/types/socketMessageTypes.js +6 -7
- package/package.json +23 -29
- package/dist/utils/docutils.d.ts +0 -9
- package/dist/utils/docutils.js +0 -69
- package/dist/utils/mcpServer.d.ts +0 -481
- package/dist/utils/mcpServer.js +0 -779
- package/dist/utils/parse-source-code/index.d.ts +0 -9
- package/dist/utils/parse-source-code/index.js +0 -233
- package/dist/utils/parse-source-code/languageParser.d.ts +0 -2
- package/dist/utils/parse-source-code/languageParser.js +0 -137
- package/dist/utils/parse-source-code/queries/c-sharp.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/c-sharp.js +0 -25
- package/dist/utils/parse-source-code/queries/c.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/c.js +0 -17
- package/dist/utils/parse-source-code/queries/cpp.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/cpp.js +0 -25
- package/dist/utils/parse-source-code/queries/go.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/go.js +0 -29
- package/dist/utils/parse-source-code/queries/index.d.ts +0 -12
- package/dist/utils/parse-source-code/queries/index.js +0 -30
- package/dist/utils/parse-source-code/queries/java.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/java.js +0 -17
- package/dist/utils/parse-source-code/queries/javascript.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/javascript.js +0 -67
- package/dist/utils/parse-source-code/queries/php.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/php.js +0 -17
- package/dist/utils/parse-source-code/queries/python.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/python.js +0 -13
- package/dist/utils/parse-source-code/queries/ruby.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/ruby.js +0 -54
- package/dist/utils/parse-source-code/queries/rust.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/rust.js +0 -18
- package/dist/utils/parse-source-code/queries/swift.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/swift.js +0 -47
- package/dist/utils/parse-source-code/queries/typescript.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/typescript.js +0 -34
- package/dist/utils/parse-source-code/tree-sitter-c.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-c_sharp.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-cpp.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-go.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-java.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-javascript.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-php.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-python.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-ruby.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-rust.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-swift.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-tsx.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-typescript.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter.wasm +0 -0
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +0 -10
|
@@ -6,7 +6,29 @@
|
|
|
6
6
|
* including file and folder operations like create, read, edit, delete, etc.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.fsNotifications =
|
|
9
|
+
exports.fsNotifications = void 0;
|
|
10
|
+
exports.FileCreateRequestNotify = FileCreateRequestNotify;
|
|
11
|
+
exports.FileCreateResponseNotify = FileCreateResponseNotify;
|
|
12
|
+
exports.FolderCreateRequestNotify = FolderCreateRequestNotify;
|
|
13
|
+
exports.FolderCreateResponseNotify = FolderCreateResponseNotify;
|
|
14
|
+
exports.FileReadRequestNotify = FileReadRequestNotify;
|
|
15
|
+
exports.FileReadResponseNotify = FileReadResponseNotify;
|
|
16
|
+
exports.FileEditRequestNotify = FileEditRequestNotify;
|
|
17
|
+
exports.FileEditResponseNotify = FileEditResponseNotify;
|
|
18
|
+
exports.FileDeleteRequestNotify = FileDeleteRequestNotify;
|
|
19
|
+
exports.FileDeleteResponseNotify = FileDeleteResponseNotify;
|
|
20
|
+
exports.FolderDeleteRequestNotify = FolderDeleteRequestNotify;
|
|
21
|
+
exports.FolderDeleteResponseNotify = FolderDeleteResponseNotify;
|
|
22
|
+
exports.ListDirectoryRequestNotify = ListDirectoryRequestNotify;
|
|
23
|
+
exports.ListDirectoryResponseNotify = ListDirectoryResponseNotify;
|
|
24
|
+
exports.WriteToFileRequestNotify = WriteToFileRequestNotify;
|
|
25
|
+
exports.WriteToFileResponseNotify = WriteToFileResponseNotify;
|
|
26
|
+
exports.AppendToFileRequestNotify = AppendToFileRequestNotify;
|
|
27
|
+
exports.AppendToFileResponseNotify = AppendToFileResponseNotify;
|
|
28
|
+
exports.CopyFileRequestNotify = CopyFileRequestNotify;
|
|
29
|
+
exports.CopyFileResponseNotify = CopyFileResponseNotify;
|
|
30
|
+
exports.MoveFileRequestNotify = MoveFileRequestNotify;
|
|
31
|
+
exports.MoveFileResponseNotify = MoveFileResponseNotify;
|
|
10
32
|
const utils_1 = require("./utils");
|
|
11
33
|
/**
|
|
12
34
|
* Sends a request to create a file
|
|
@@ -28,7 +50,6 @@ function FileCreateRequestNotify(fileName, source, filePath, toolUseId) {
|
|
|
28
50
|
};
|
|
29
51
|
(0, utils_1.sendNotification)(notification, 'fs.FileCreateRequestNotify');
|
|
30
52
|
}
|
|
31
|
-
exports.FileCreateRequestNotify = FileCreateRequestNotify;
|
|
32
53
|
/**
|
|
33
54
|
* Sends a response to a file creation request
|
|
34
55
|
* Requirements: 7.2
|
|
@@ -47,7 +68,6 @@ function FileCreateResponseNotify(content, isError = false, toolUseId) {
|
|
|
47
68
|
};
|
|
48
69
|
(0, utils_1.sendNotification)(notification, 'fs.FileCreateResponseNotify');
|
|
49
70
|
}
|
|
50
|
-
exports.FileCreateResponseNotify = FileCreateResponseNotify;
|
|
51
71
|
/**
|
|
52
72
|
* Sends a request to create a folder
|
|
53
73
|
* Requirements: 7.3
|
|
@@ -67,7 +87,6 @@ function FolderCreateRequestNotify(folderName, folderPath, toolUseId) {
|
|
|
67
87
|
};
|
|
68
88
|
(0, utils_1.sendNotification)(notification, 'fs.FolderCreateRequestNotify');
|
|
69
89
|
}
|
|
70
|
-
exports.FolderCreateRequestNotify = FolderCreateRequestNotify;
|
|
71
90
|
/**
|
|
72
91
|
* Sends a response to a folder creation request
|
|
73
92
|
* Requirements: 7.4
|
|
@@ -86,7 +105,6 @@ function FolderCreateResponseNotify(content, isError = false, toolUseId) {
|
|
|
86
105
|
};
|
|
87
106
|
(0, utils_1.sendNotification)(notification, 'fs.FolderCreateResponseNotify');
|
|
88
107
|
}
|
|
89
|
-
exports.FolderCreateResponseNotify = FolderCreateResponseNotify;
|
|
90
108
|
/**
|
|
91
109
|
* Sends a request to read a file
|
|
92
110
|
* Requirements: 7.4
|
|
@@ -107,7 +125,6 @@ function FileReadRequestNotify(filePath, startLine, endLine, toolUseId) {
|
|
|
107
125
|
};
|
|
108
126
|
(0, utils_1.sendNotification)(notification, 'fs.FileReadRequestNotify');
|
|
109
127
|
}
|
|
110
|
-
exports.FileReadRequestNotify = FileReadRequestNotify;
|
|
111
128
|
/**
|
|
112
129
|
* Sends a response to a file read request
|
|
113
130
|
* Requirements: 7.4
|
|
@@ -126,7 +143,6 @@ function FileReadResponseNotify(content, isError = false, toolUseId) {
|
|
|
126
143
|
};
|
|
127
144
|
(0, utils_1.sendNotification)(notification, 'fs.FileReadResponseNotify');
|
|
128
145
|
}
|
|
129
|
-
exports.FileReadResponseNotify = FileReadResponseNotify;
|
|
130
146
|
/**
|
|
131
147
|
* Sends a request to edit a file
|
|
132
148
|
* Requirements: 7.5
|
|
@@ -147,7 +163,6 @@ function FileEditRequestNotify(fileName, filePath, newContent, toolUseId) {
|
|
|
147
163
|
};
|
|
148
164
|
(0, utils_1.sendNotification)(notification, 'fs.FileEditRequestNotify');
|
|
149
165
|
}
|
|
150
|
-
exports.FileEditRequestNotify = FileEditRequestNotify;
|
|
151
166
|
/**
|
|
152
167
|
* Sends a response to a file edit request
|
|
153
168
|
* Requirements: 7.5
|
|
@@ -166,7 +181,6 @@ function FileEditResponseNotify(content, isError = false, toolUseId) {
|
|
|
166
181
|
};
|
|
167
182
|
(0, utils_1.sendNotification)(notification, 'fs.FileEditResponseNotify');
|
|
168
183
|
}
|
|
169
|
-
exports.FileEditResponseNotify = FileEditResponseNotify;
|
|
170
184
|
/**
|
|
171
185
|
* Sends a request to delete a file
|
|
172
186
|
* Requirements: 7.6
|
|
@@ -186,7 +200,6 @@ function FileDeleteRequestNotify(fileName, filePath, toolUseId) {
|
|
|
186
200
|
};
|
|
187
201
|
(0, utils_1.sendNotification)(notification, 'fs.FileDeleteRequestNotify');
|
|
188
202
|
}
|
|
189
|
-
exports.FileDeleteRequestNotify = FileDeleteRequestNotify;
|
|
190
203
|
/**
|
|
191
204
|
* Sends a response to a file delete request
|
|
192
205
|
* Requirements: 7.6
|
|
@@ -205,7 +218,6 @@ function FileDeleteResponseNotify(content, isError = false, toolUseId) {
|
|
|
205
218
|
};
|
|
206
219
|
(0, utils_1.sendNotification)(notification, 'fs.FileDeleteResponseNotify');
|
|
207
220
|
}
|
|
208
|
-
exports.FileDeleteResponseNotify = FileDeleteResponseNotify;
|
|
209
221
|
/**
|
|
210
222
|
* Sends a request to delete a folder
|
|
211
223
|
* Requirements: 7.6
|
|
@@ -225,7 +237,6 @@ function FolderDeleteRequestNotify(folderName, folderPath, toolUseId) {
|
|
|
225
237
|
};
|
|
226
238
|
(0, utils_1.sendNotification)(notification, 'fs.FolderDeleteRequestNotify');
|
|
227
239
|
}
|
|
228
|
-
exports.FolderDeleteRequestNotify = FolderDeleteRequestNotify;
|
|
229
240
|
/**
|
|
230
241
|
* Sends a response to a folder delete request
|
|
231
242
|
* Requirements: 7.6
|
|
@@ -248,7 +259,6 @@ function FolderDeleteResponseNotify(content, isError = false, toolUseId) {
|
|
|
248
259
|
Sends a request to list directory contents
|
|
249
260
|
* Requirements: 7.7
|
|
250
261
|
*/
|
|
251
|
-
exports.FolderDeleteResponseNotify = FolderDeleteResponseNotify;
|
|
252
262
|
function ListDirectoryRequestNotify(dirPath, toolUseId) {
|
|
253
263
|
if (!(0, utils_1.validateRequiredFields)({ dirPath }, ['dirPath'], 'fs.ListDirectoryRequestNotify')) {
|
|
254
264
|
return;
|
|
@@ -263,7 +273,6 @@ function ListDirectoryRequestNotify(dirPath, toolUseId) {
|
|
|
263
273
|
};
|
|
264
274
|
(0, utils_1.sendNotification)(notification, 'fs.ListDirectoryRequestNotify');
|
|
265
275
|
}
|
|
266
|
-
exports.ListDirectoryRequestNotify = ListDirectoryRequestNotify;
|
|
267
276
|
/**
|
|
268
277
|
* Sends a response to a directory listing request
|
|
269
278
|
* Requirements: 7.7
|
|
@@ -282,7 +291,6 @@ function ListDirectoryResponseNotify(content, isError = false, toolUseId) {
|
|
|
282
291
|
};
|
|
283
292
|
(0, utils_1.sendNotification)(notification, 'fs.ListDirectoryResponseNotify');
|
|
284
293
|
}
|
|
285
|
-
exports.ListDirectoryResponseNotify = ListDirectoryResponseNotify;
|
|
286
294
|
/**
|
|
287
295
|
* Sends a request to write to a file
|
|
288
296
|
* Requirements: 7.8
|
|
@@ -302,7 +310,6 @@ function WriteToFileRequestNotify(filePath, text, toolUseId) {
|
|
|
302
310
|
};
|
|
303
311
|
(0, utils_1.sendNotification)(notification, 'fs.WriteToFileRequestNotify');
|
|
304
312
|
}
|
|
305
|
-
exports.WriteToFileRequestNotify = WriteToFileRequestNotify;
|
|
306
313
|
/**
|
|
307
314
|
* Sends a response to a write to file request
|
|
308
315
|
* Requirements: 7.8
|
|
@@ -321,7 +328,6 @@ function WriteToFileResponseNotify(content, isError = false, toolUseId) {
|
|
|
321
328
|
};
|
|
322
329
|
(0, utils_1.sendNotification)(notification, 'fs.WriteToFileResponseNotify');
|
|
323
330
|
}
|
|
324
|
-
exports.WriteToFileResponseNotify = WriteToFileResponseNotify;
|
|
325
331
|
/**
|
|
326
332
|
* Sends a request to append to a file
|
|
327
333
|
* Requirements: 7.9
|
|
@@ -341,7 +347,6 @@ function AppendToFileRequestNotify(filePath, text, toolUseId) {
|
|
|
341
347
|
};
|
|
342
348
|
(0, utils_1.sendNotification)(notification, 'fs.AppendToFileRequestNotify');
|
|
343
349
|
}
|
|
344
|
-
exports.AppendToFileRequestNotify = AppendToFileRequestNotify;
|
|
345
350
|
/**
|
|
346
351
|
* Sends a response to an append to file request
|
|
347
352
|
* Requirements: 7.9
|
|
@@ -364,7 +369,6 @@ function AppendToFileResponseNotify(content, isError = false, toolUseId) {
|
|
|
364
369
|
* Sends a request to copy a file
|
|
365
370
|
* Requirements: 7.10
|
|
366
371
|
*/
|
|
367
|
-
exports.AppendToFileResponseNotify = AppendToFileResponseNotify;
|
|
368
372
|
function CopyFileRequestNotify(sourceFile, destinationFile, toolUseId) {
|
|
369
373
|
if (!(0, utils_1.validateRequiredFields)({ sourceFile, destinationFile }, ['sourceFile', 'destinationFile'], 'fs.CopyFileRequestNotify')) {
|
|
370
374
|
return;
|
|
@@ -380,7 +384,6 @@ function CopyFileRequestNotify(sourceFile, destinationFile, toolUseId) {
|
|
|
380
384
|
};
|
|
381
385
|
(0, utils_1.sendNotification)(notification, 'fs.CopyFileRequestNotify');
|
|
382
386
|
}
|
|
383
|
-
exports.CopyFileRequestNotify = CopyFileRequestNotify;
|
|
384
387
|
/**
|
|
385
388
|
* Sends a response to a file copy request
|
|
386
389
|
* Requirements: 7.10
|
|
@@ -399,7 +402,6 @@ function CopyFileResponseNotify(content, isError = false, toolUseId) {
|
|
|
399
402
|
};
|
|
400
403
|
(0, utils_1.sendNotification)(notification, 'fs.CopyFileResponseNotify');
|
|
401
404
|
}
|
|
402
|
-
exports.CopyFileResponseNotify = CopyFileResponseNotify;
|
|
403
405
|
/**
|
|
404
406
|
* Sends a request to move a file
|
|
405
407
|
* Requirements: 7.11
|
|
@@ -419,7 +421,6 @@ function MoveFileRequestNotify(sourceFile, destinationFile, toolUseId) {
|
|
|
419
421
|
};
|
|
420
422
|
(0, utils_1.sendNotification)(notification, 'fs.MoveFileRequestNotify');
|
|
421
423
|
}
|
|
422
|
-
exports.MoveFileRequestNotify = MoveFileRequestNotify;
|
|
423
424
|
/**
|
|
424
425
|
* Sends a response to a file move request
|
|
425
426
|
* Requirements: 7.11
|
|
@@ -438,7 +439,6 @@ function MoveFileResponseNotify(content, isError = false, toolUseId) {
|
|
|
438
439
|
};
|
|
439
440
|
(0, utils_1.sendNotification)(notification, 'fs.MoveFileResponseNotify');
|
|
440
441
|
}
|
|
441
|
-
exports.MoveFileResponseNotify = MoveFileResponseNotify;
|
|
442
442
|
/**
|
|
443
443
|
* File system notification functions object
|
|
444
444
|
*/
|
|
@@ -6,7 +6,31 @@
|
|
|
6
6
|
* including version control operations.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.gitNotifications =
|
|
9
|
+
exports.gitNotifications = void 0;
|
|
10
|
+
exports.GitInitRequestNotify = GitInitRequestNotify;
|
|
11
|
+
exports.GitInitResponseNotify = GitInitResponseNotify;
|
|
12
|
+
exports.GitPullRequestNotify = GitPullRequestNotify;
|
|
13
|
+
exports.GitPullResponseNotify = GitPullResponseNotify;
|
|
14
|
+
exports.GitPushRequestNotify = GitPushRequestNotify;
|
|
15
|
+
exports.GitPushResponseNotify = GitPushResponseNotify;
|
|
16
|
+
exports.GitStatusRequestNotify = GitStatusRequestNotify;
|
|
17
|
+
exports.GitStatusResponseNotify = GitStatusResponseNotify;
|
|
18
|
+
exports.GitAddRequestNotify = GitAddRequestNotify;
|
|
19
|
+
exports.GitAddResponseNotify = GitAddResponseNotify;
|
|
20
|
+
exports.GitCommitRequestNotify = GitCommitRequestNotify;
|
|
21
|
+
exports.GitCommitResponseNotify = GitCommitResponseNotify;
|
|
22
|
+
exports.GitCheckoutRequestNotify = GitCheckoutRequestNotify;
|
|
23
|
+
exports.GitCheckoutResponseNotify = GitCheckoutResponseNotify;
|
|
24
|
+
exports.GitBranchRequestNotify = GitBranchRequestNotify;
|
|
25
|
+
exports.GitBranchResponseNotify = GitBranchResponseNotify;
|
|
26
|
+
exports.GitLogsRequestNotify = GitLogsRequestNotify;
|
|
27
|
+
exports.GitLogsResponseNotify = GitLogsResponseNotify;
|
|
28
|
+
exports.GitDiffRequestNotify = GitDiffRequestNotify;
|
|
29
|
+
exports.GitDiffResponseNotify = GitDiffResponseNotify;
|
|
30
|
+
exports.GitRemoteAddRequestNotify = GitRemoteAddRequestNotify;
|
|
31
|
+
exports.GitRemoteAddResponseNotify = GitRemoteAddResponseNotify;
|
|
32
|
+
exports.GitCloneRequestNotify = GitCloneRequestNotify;
|
|
33
|
+
exports.GitCloneResponseNotify = GitCloneResponseNotify;
|
|
10
34
|
const utils_1 = require("./utils");
|
|
11
35
|
// ===== GIT INIT FUNCTIONS =====
|
|
12
36
|
/**
|
|
@@ -25,7 +49,6 @@ function GitInitRequestNotify(path, toolUseId) {
|
|
|
25
49
|
};
|
|
26
50
|
(0, utils_1.sendNotification)(notification, 'git-init');
|
|
27
51
|
}
|
|
28
|
-
exports.GitInitRequestNotify = GitInitRequestNotify;
|
|
29
52
|
/**
|
|
30
53
|
* Sends a git init response notification
|
|
31
54
|
* @param content - The response content (success message or error details)
|
|
@@ -46,7 +69,6 @@ function GitInitResponseNotify(content, isError = false, toolUseId) {
|
|
|
46
69
|
};
|
|
47
70
|
(0, utils_1.sendNotification)(notification, 'git-init-response');
|
|
48
71
|
}
|
|
49
|
-
exports.GitInitResponseNotify = GitInitResponseNotify;
|
|
50
72
|
// ===== GIT PULL FUNCTIONS =====
|
|
51
73
|
/**
|
|
52
74
|
* Sends a git pull request notification
|
|
@@ -64,7 +86,6 @@ function GitPullRequestNotify(path, toolUseId) {
|
|
|
64
86
|
};
|
|
65
87
|
(0, utils_1.sendNotification)(notification, 'git-pull');
|
|
66
88
|
}
|
|
67
|
-
exports.GitPullRequestNotify = GitPullRequestNotify;
|
|
68
89
|
/**
|
|
69
90
|
* Sends a git pull response notification
|
|
70
91
|
* @param content - The response content (success message or error details)
|
|
@@ -85,7 +106,6 @@ function GitPullResponseNotify(content, isError = false, toolUseId) {
|
|
|
85
106
|
};
|
|
86
107
|
(0, utils_1.sendNotification)(notification, 'git-pull-response');
|
|
87
108
|
}
|
|
88
|
-
exports.GitPullResponseNotify = GitPullResponseNotify;
|
|
89
109
|
// ===== GIT PUSH FUNCTIONS =====
|
|
90
110
|
/**
|
|
91
111
|
* Sends a git push request notification
|
|
@@ -103,7 +123,6 @@ function GitPushRequestNotify(path, toolUseId) {
|
|
|
103
123
|
};
|
|
104
124
|
(0, utils_1.sendNotification)(notification, 'git-push');
|
|
105
125
|
}
|
|
106
|
-
exports.GitPushRequestNotify = GitPushRequestNotify;
|
|
107
126
|
/**
|
|
108
127
|
* Sends a git push response notification
|
|
109
128
|
* @param content - The response content (success message or error details)
|
|
@@ -124,7 +143,6 @@ function GitPushResponseNotify(content, isError = false, toolUseId) {
|
|
|
124
143
|
};
|
|
125
144
|
(0, utils_1.sendNotification)(notification, 'git-push-response');
|
|
126
145
|
}
|
|
127
|
-
exports.GitPushResponseNotify = GitPushResponseNotify;
|
|
128
146
|
// ===== GIT STATUS FUNCTIONS =====
|
|
129
147
|
/**
|
|
130
148
|
* Sends a git status request notification
|
|
@@ -142,7 +160,6 @@ function GitStatusRequestNotify(path, toolUseId) {
|
|
|
142
160
|
};
|
|
143
161
|
(0, utils_1.sendNotification)(notification, 'git-status');
|
|
144
162
|
}
|
|
145
|
-
exports.GitStatusRequestNotify = GitStatusRequestNotify;
|
|
146
163
|
/**
|
|
147
164
|
* Sends a git status response notification
|
|
148
165
|
* @param content - The response content (status information or error details)
|
|
@@ -163,7 +180,6 @@ function GitStatusResponseNotify(content, isError = false, toolUseId) {
|
|
|
163
180
|
};
|
|
164
181
|
(0, utils_1.sendNotification)(notification, 'git-status-response');
|
|
165
182
|
}
|
|
166
|
-
exports.GitStatusResponseNotify = GitStatusResponseNotify;
|
|
167
183
|
// ===== GIT ADD FUNCTIONS =====
|
|
168
184
|
/**
|
|
169
185
|
* Sends a git add request notification
|
|
@@ -183,7 +199,6 @@ function GitAddRequestNotify(path, files, toolUseId) {
|
|
|
183
199
|
};
|
|
184
200
|
(0, utils_1.sendNotification)(notification, 'git-add');
|
|
185
201
|
}
|
|
186
|
-
exports.GitAddRequestNotify = GitAddRequestNotify;
|
|
187
202
|
/**
|
|
188
203
|
* Sends a git add response notification
|
|
189
204
|
* @param content - The response content (success message or error details)
|
|
@@ -204,7 +219,6 @@ function GitAddResponseNotify(content, isError = false, toolUseId) {
|
|
|
204
219
|
};
|
|
205
220
|
(0, utils_1.sendNotification)(notification, 'git-add-response');
|
|
206
221
|
}
|
|
207
|
-
exports.GitAddResponseNotify = GitAddResponseNotify;
|
|
208
222
|
// ===== GIT COMMIT FUNCTIONS =====
|
|
209
223
|
/**
|
|
210
224
|
* Sends a git commit request notification
|
|
@@ -224,7 +238,6 @@ function GitCommitRequestNotify(path, message, toolUseId) {
|
|
|
224
238
|
};
|
|
225
239
|
(0, utils_1.sendNotification)(notification, 'git-commit');
|
|
226
240
|
}
|
|
227
|
-
exports.GitCommitRequestNotify = GitCommitRequestNotify;
|
|
228
241
|
/**
|
|
229
242
|
* Sends a git commit response notification
|
|
230
243
|
* @param content - The response content (commit information or error details)
|
|
@@ -245,7 +258,6 @@ function GitCommitResponseNotify(content, isError = false, toolUseId) {
|
|
|
245
258
|
};
|
|
246
259
|
(0, utils_1.sendNotification)(notification, 'git-commit-response');
|
|
247
260
|
}
|
|
248
|
-
exports.GitCommitResponseNotify = GitCommitResponseNotify;
|
|
249
261
|
// ===== GIT CHECKOUT FUNCTIONS =====
|
|
250
262
|
/**
|
|
251
263
|
* Sends a git checkout request notification
|
|
@@ -265,7 +277,6 @@ function GitCheckoutRequestNotify(path, branchName, toolUseId) {
|
|
|
265
277
|
};
|
|
266
278
|
(0, utils_1.sendNotification)(notification, 'git-checkout');
|
|
267
279
|
}
|
|
268
|
-
exports.GitCheckoutRequestNotify = GitCheckoutRequestNotify;
|
|
269
280
|
/**
|
|
270
281
|
* Sends a git checkout response notification
|
|
271
282
|
* @param content - The response content (checkout information or error details)
|
|
@@ -286,7 +297,6 @@ function GitCheckoutResponseNotify(content, isError = false, toolUseId) {
|
|
|
286
297
|
};
|
|
287
298
|
(0, utils_1.sendNotification)(notification, 'git-checkout-response');
|
|
288
299
|
}
|
|
289
|
-
exports.GitCheckoutResponseNotify = GitCheckoutResponseNotify;
|
|
290
300
|
// ===== GIT BRANCH FUNCTIONS =====
|
|
291
301
|
/**
|
|
292
302
|
* Sends a git branch request notification
|
|
@@ -306,7 +316,6 @@ function GitBranchRequestNotify(path, branchName, toolUseId) {
|
|
|
306
316
|
};
|
|
307
317
|
(0, utils_1.sendNotification)(notification, 'git-branch');
|
|
308
318
|
}
|
|
309
|
-
exports.GitBranchRequestNotify = GitBranchRequestNotify;
|
|
310
319
|
/**
|
|
311
320
|
* Sends a git branch response notification
|
|
312
321
|
* @param content - The response content (branch information or error details)
|
|
@@ -327,7 +336,6 @@ function GitBranchResponseNotify(content, isError = false, toolUseId) {
|
|
|
327
336
|
};
|
|
328
337
|
(0, utils_1.sendNotification)(notification, 'git-branch-response');
|
|
329
338
|
}
|
|
330
|
-
exports.GitBranchResponseNotify = GitBranchResponseNotify;
|
|
331
339
|
// ===== GIT LOGS FUNCTIONS =====
|
|
332
340
|
/**
|
|
333
341
|
* Sends a git logs request notification
|
|
@@ -345,7 +353,6 @@ function GitLogsRequestNotify(path, toolUseId) {
|
|
|
345
353
|
};
|
|
346
354
|
(0, utils_1.sendNotification)(notification, 'git-logs');
|
|
347
355
|
}
|
|
348
|
-
exports.GitLogsRequestNotify = GitLogsRequestNotify;
|
|
349
356
|
/**
|
|
350
357
|
* Sends a git logs response notification
|
|
351
358
|
* @param content - The response content (log information or error details)
|
|
@@ -366,7 +373,6 @@ function GitLogsResponseNotify(content, isError = false, toolUseId) {
|
|
|
366
373
|
};
|
|
367
374
|
(0, utils_1.sendNotification)(notification, 'git-logs-response');
|
|
368
375
|
}
|
|
369
|
-
exports.GitLogsResponseNotify = GitLogsResponseNotify;
|
|
370
376
|
// ===== GIT DIFF FUNCTIONS =====
|
|
371
377
|
/**
|
|
372
378
|
* Sends a git diff request notification
|
|
@@ -384,7 +390,6 @@ function GitDiffRequestNotify(path, toolUseId) {
|
|
|
384
390
|
};
|
|
385
391
|
(0, utils_1.sendNotification)(notification, 'git-diff');
|
|
386
392
|
}
|
|
387
|
-
exports.GitDiffRequestNotify = GitDiffRequestNotify;
|
|
388
393
|
/**
|
|
389
394
|
* Sends a git diff response notification
|
|
390
395
|
* @param content - The response content (diff information or error details)
|
|
@@ -405,7 +410,6 @@ function GitDiffResponseNotify(content, isError = false, toolUseId) {
|
|
|
405
410
|
};
|
|
406
411
|
(0, utils_1.sendNotification)(notification, 'git-diff-response');
|
|
407
412
|
}
|
|
408
|
-
exports.GitDiffResponseNotify = GitDiffResponseNotify;
|
|
409
413
|
// ===== GIT REMOTE ADD FUNCTIONS =====
|
|
410
414
|
/**
|
|
411
415
|
* Sends a git remote add request notification
|
|
@@ -427,7 +431,6 @@ function GitRemoteAddRequestNotify(remoteName, remoteUrl, path, toolUseId) {
|
|
|
427
431
|
};
|
|
428
432
|
(0, utils_1.sendNotification)(notification, 'git-remote-add');
|
|
429
433
|
}
|
|
430
|
-
exports.GitRemoteAddRequestNotify = GitRemoteAddRequestNotify;
|
|
431
434
|
/**
|
|
432
435
|
* Sends a git remote add response notification
|
|
433
436
|
* @param content - The response content (success message or error details)
|
|
@@ -448,7 +451,6 @@ function GitRemoteAddResponseNotify(content, isError = false, toolUseId) {
|
|
|
448
451
|
};
|
|
449
452
|
(0, utils_1.sendNotification)(notification, 'git-remote-add-response');
|
|
450
453
|
}
|
|
451
|
-
exports.GitRemoteAddResponseNotify = GitRemoteAddResponseNotify;
|
|
452
454
|
// ===== GIT CLONE FUNCTIONS =====
|
|
453
455
|
/**
|
|
454
456
|
* Sends a git clone request notification
|
|
@@ -468,7 +470,6 @@ function GitCloneRequestNotify(repoUrl, targetPath, toolUseId) {
|
|
|
468
470
|
};
|
|
469
471
|
(0, utils_1.sendNotification)(notification, 'git-clone');
|
|
470
472
|
}
|
|
471
|
-
exports.GitCloneRequestNotify = GitCloneRequestNotify;
|
|
472
473
|
/**
|
|
473
474
|
* Sends a git clone response notification
|
|
474
475
|
* @param content - The response content (clone information or error details)
|
|
@@ -489,7 +490,6 @@ function GitCloneResponseNotify(content, isError = false, toolUseId) {
|
|
|
489
490
|
};
|
|
490
491
|
(0, utils_1.sendNotification)(notification, 'git-clone-response');
|
|
491
492
|
}
|
|
492
|
-
exports.GitCloneResponseNotify = GitCloneResponseNotify;
|
|
493
493
|
/**
|
|
494
494
|
* Git notification functions object
|
|
495
495
|
*/
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
* including conversation summarization operations.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.historyNotifications =
|
|
9
|
+
exports.historyNotifications = void 0;
|
|
10
|
+
exports.summarizePreviousConversation = summarizePreviousConversation;
|
|
11
|
+
exports.sendSummarizePreviousResult = sendSummarizePreviousResult;
|
|
12
|
+
exports.summarizeCurrentMessage = summarizeCurrentMessage;
|
|
13
|
+
exports.sendSummarizeCurrentResult = sendSummarizeCurrentResult;
|
|
10
14
|
const utils_1 = require("./utils");
|
|
11
15
|
// ===== SUMMARIZE PREVIOUS CONVERSATION FUNCTIONS =====
|
|
12
16
|
/**
|
|
@@ -23,7 +27,6 @@ function summarizePreviousConversation(data = {}, toolUseId) {
|
|
|
23
27
|
};
|
|
24
28
|
(0, utils_1.sendNotification)(notification, 'history-summarize-previous');
|
|
25
29
|
}
|
|
26
|
-
exports.summarizePreviousConversation = summarizePreviousConversation;
|
|
27
30
|
/**
|
|
28
31
|
* Sends a summarize previous conversation result notification
|
|
29
32
|
* @param content - The summarization result or error details
|
|
@@ -44,7 +47,6 @@ function sendSummarizePreviousResult(content, isError = false, toolUseId) {
|
|
|
44
47
|
};
|
|
45
48
|
(0, utils_1.sendNotification)(notification, 'history-summarize-previous-result');
|
|
46
49
|
}
|
|
47
|
-
exports.sendSummarizePreviousResult = sendSummarizePreviousResult;
|
|
48
50
|
// ===== SUMMARIZE CURRENT MESSAGE FUNCTIONS =====
|
|
49
51
|
/**
|
|
50
52
|
* Sends a summarize current message request notification
|
|
@@ -64,7 +66,6 @@ function summarizeCurrentMessage(data, toolUseId) {
|
|
|
64
66
|
};
|
|
65
67
|
(0, utils_1.sendNotification)(notification, 'history-summarize-current');
|
|
66
68
|
}
|
|
67
|
-
exports.summarizeCurrentMessage = summarizeCurrentMessage;
|
|
68
69
|
/**
|
|
69
70
|
* Sends a summarize current message result notification
|
|
70
71
|
* @param content - The summarization result or error details
|
|
@@ -85,7 +86,6 @@ function sendSummarizeCurrentResult(content, isError = false, toolUseId) {
|
|
|
85
86
|
};
|
|
86
87
|
(0, utils_1.sendNotification)(notification, 'history-summarize-current-result');
|
|
87
88
|
}
|
|
88
|
-
exports.sendSummarizeCurrentResult = sendSummarizeCurrentResult;
|
|
89
89
|
/**
|
|
90
90
|
* History notification functions object
|
|
91
91
|
*/
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
* including inference requests and token counting operations.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.llmNotifications =
|
|
9
|
+
exports.llmNotifications = void 0;
|
|
10
|
+
exports.sendInferenceRequest = sendInferenceRequest;
|
|
11
|
+
exports.sendInferenceResponse = sendInferenceResponse;
|
|
12
|
+
exports.getTokenCount = getTokenCount;
|
|
13
|
+
exports.sendTokenCountResponse = sendTokenCountResponse;
|
|
10
14
|
const utils_1 = require("./utils");
|
|
11
15
|
// ===== LLM INFERENCE FUNCTIONS =====
|
|
12
16
|
/**
|
|
@@ -23,7 +27,6 @@ function sendInferenceRequest(data, toolUseId) {
|
|
|
23
27
|
};
|
|
24
28
|
(0, utils_1.sendNotification)(notification, 'llm-inference-request');
|
|
25
29
|
}
|
|
26
|
-
exports.sendInferenceRequest = sendInferenceRequest;
|
|
27
30
|
/**
|
|
28
31
|
* Sends an LLM inference response notification
|
|
29
32
|
* @param content - The inference result or error details
|
|
@@ -44,7 +47,6 @@ function sendInferenceResponse(content, isError = false, toolUseId) {
|
|
|
44
47
|
};
|
|
45
48
|
(0, utils_1.sendNotification)(notification, 'llm-inference-response');
|
|
46
49
|
}
|
|
47
|
-
exports.sendInferenceResponse = sendInferenceResponse;
|
|
48
50
|
// ===== LLM TOKEN COUNT FUNCTIONS =====
|
|
49
51
|
/**
|
|
50
52
|
* Sends an LLM get token count request notification
|
|
@@ -64,7 +66,6 @@ function getTokenCount(data, toolUseId) {
|
|
|
64
66
|
};
|
|
65
67
|
(0, utils_1.sendNotification)(notification, 'llm-token-count-request');
|
|
66
68
|
}
|
|
67
|
-
exports.getTokenCount = getTokenCount;
|
|
68
69
|
/**
|
|
69
70
|
* Sends an LLM get token count response notification
|
|
70
71
|
* @param content - The token count result or error details
|
|
@@ -87,7 +88,6 @@ function sendTokenCountResponse(content, isError = false, toolUseId, data) {
|
|
|
87
88
|
};
|
|
88
89
|
(0, utils_1.sendNotification)(notification, 'llm-token-count-response');
|
|
89
90
|
}
|
|
90
|
-
exports.sendTokenCountResponse = sendTokenCountResponse;
|
|
91
91
|
/**
|
|
92
92
|
* LLM notification functions object
|
|
93
93
|
*/
|
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
* including MCP server operations and tool executions.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.mcpNotifications =
|
|
9
|
+
exports.mcpNotifications = void 0;
|
|
10
|
+
exports.GetEnabledMCPServersRequestNotify = GetEnabledMCPServersRequestNotify;
|
|
11
|
+
exports.GetEnabledMCPServersResultNotify = GetEnabledMCPServersResultNotify;
|
|
12
|
+
exports.ListToolsFromMCPServersRequestNotify = ListToolsFromMCPServersRequestNotify;
|
|
13
|
+
exports.ListToolsFromMCPServersResultNotify = ListToolsFromMCPServersResultNotify;
|
|
14
|
+
exports.GetToolsRequestNotify = GetToolsRequestNotify;
|
|
15
|
+
exports.GetToolsResultNotify = GetToolsResultNotify;
|
|
16
|
+
exports.ExecuteToolRequestNotify = ExecuteToolRequestNotify;
|
|
17
|
+
exports.ExecuteToolResultNotify = ExecuteToolResultNotify;
|
|
10
18
|
const utils_1 = require("./utils");
|
|
11
19
|
// ===== GET ENABLED MCP SERVERS FUNCTIONS =====
|
|
12
20
|
/**
|
|
@@ -22,7 +30,6 @@ function GetEnabledMCPServersRequestNotify(toolUseId) {
|
|
|
22
30
|
};
|
|
23
31
|
(0, utils_1.sendNotification)(notification, 'mcp-get-enabled-servers');
|
|
24
32
|
}
|
|
25
|
-
exports.GetEnabledMCPServersRequestNotify = GetEnabledMCPServersRequestNotify;
|
|
26
33
|
/**
|
|
27
34
|
* Sends a get enabled MCP servers result notification
|
|
28
35
|
* @param content - The result content or error details
|
|
@@ -43,7 +50,6 @@ function GetEnabledMCPServersResultNotify(content, isError = false, toolUseId) {
|
|
|
43
50
|
};
|
|
44
51
|
(0, utils_1.sendNotification)(notification, 'mcp-get-enabled-servers-result');
|
|
45
52
|
}
|
|
46
|
-
exports.GetEnabledMCPServersResultNotify = GetEnabledMCPServersResultNotify;
|
|
47
53
|
// ===== LIST TOOLS FROM MCP SERVERS FUNCTIONS =====
|
|
48
54
|
/**
|
|
49
55
|
* Sends a list tools from MCP servers request notification
|
|
@@ -65,7 +71,6 @@ function ListToolsFromMCPServersRequestNotify(toolboxes, toolUseId) {
|
|
|
65
71
|
};
|
|
66
72
|
(0, utils_1.sendNotification)(notification, 'mcp-list-tools');
|
|
67
73
|
}
|
|
68
|
-
exports.ListToolsFromMCPServersRequestNotify = ListToolsFromMCPServersRequestNotify;
|
|
69
74
|
/**
|
|
70
75
|
* Sends a list tools from MCP servers result notification
|
|
71
76
|
* @param content - The result content or error details
|
|
@@ -86,7 +91,6 @@ function ListToolsFromMCPServersResultNotify(content, isError = false, toolUseId
|
|
|
86
91
|
};
|
|
87
92
|
(0, utils_1.sendNotification)(notification, 'mcp-list-tools-result');
|
|
88
93
|
}
|
|
89
|
-
exports.ListToolsFromMCPServersResultNotify = ListToolsFromMCPServersResultNotify;
|
|
90
94
|
// ===== GET TOOLS FUNCTIONS =====
|
|
91
95
|
/**
|
|
92
96
|
* Sends a get tools request notification
|
|
@@ -108,7 +112,6 @@ function GetToolsRequestNotify(tools, toolUseId) {
|
|
|
108
112
|
};
|
|
109
113
|
(0, utils_1.sendNotification)(notification, 'mcp-get-tools');
|
|
110
114
|
}
|
|
111
|
-
exports.GetToolsRequestNotify = GetToolsRequestNotify;
|
|
112
115
|
/**
|
|
113
116
|
* Sends a get tools result notification
|
|
114
117
|
* @param content - The result content or error details
|
|
@@ -129,7 +132,6 @@ function GetToolsResultNotify(content, isError = false, toolUseId) {
|
|
|
129
132
|
};
|
|
130
133
|
(0, utils_1.sendNotification)(notification, 'mcp-get-tools-result');
|
|
131
134
|
}
|
|
132
|
-
exports.GetToolsResultNotify = GetToolsResultNotify;
|
|
133
135
|
// ===== EXECUTE TOOL FUNCTIONS =====
|
|
134
136
|
/**
|
|
135
137
|
* Sends an execute tool request notification
|
|
@@ -155,7 +157,6 @@ function ExecuteToolRequestNotify(toolbox, toolName, params, toolUseId) {
|
|
|
155
157
|
};
|
|
156
158
|
(0, utils_1.sendNotification)(notification, 'mcp-execute-tool');
|
|
157
159
|
}
|
|
158
|
-
exports.ExecuteToolRequestNotify = ExecuteToolRequestNotify;
|
|
159
160
|
/**
|
|
160
161
|
* Sends an execute tool result notification
|
|
161
162
|
* @param content - The result content or error details
|
|
@@ -176,7 +177,6 @@ function ExecuteToolResultNotify(content, isError = false, toolUseId) {
|
|
|
176
177
|
};
|
|
177
178
|
(0, utils_1.sendNotification)(notification, 'mcp-execute-tool-result');
|
|
178
179
|
}
|
|
179
|
-
exports.ExecuteToolResultNotify = ExecuteToolResultNotify;
|
|
180
180
|
/**
|
|
181
181
|
* MCP notification functions object
|
|
182
182
|
*/
|
|
@@ -6,7 +6,13 @@
|
|
|
6
6
|
* including search initialization and query operations.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.searchNotifications =
|
|
9
|
+
exports.searchNotifications = void 0;
|
|
10
|
+
exports.SearchInitRequestNotify = SearchInitRequestNotify;
|
|
11
|
+
exports.SearchInitResultNotify = SearchInitResultNotify;
|
|
12
|
+
exports.SearchRequestNotify = SearchRequestNotify;
|
|
13
|
+
exports.SearchResultNotify = SearchResultNotify;
|
|
14
|
+
exports.GetFirstLinkRequestNotify = GetFirstLinkRequestNotify;
|
|
15
|
+
exports.GetFirstLinkResultNotify = GetFirstLinkResultNotify;
|
|
10
16
|
const utils_1 = require("./utils");
|
|
11
17
|
// ===== SEARCH INIT FUNCTIONS =====
|
|
12
18
|
/**
|
|
@@ -25,7 +31,6 @@ function SearchInitRequestNotify(engine, toolUseId) {
|
|
|
25
31
|
};
|
|
26
32
|
(0, utils_1.sendNotification)(notification, 'search-init');
|
|
27
33
|
}
|
|
28
|
-
exports.SearchInitRequestNotify = SearchInitRequestNotify;
|
|
29
34
|
/**
|
|
30
35
|
* Sends a search init result notification
|
|
31
36
|
* @param content - The result content or error details
|
|
@@ -46,7 +51,6 @@ function SearchInitResultNotify(content, isError = false, toolUseId) {
|
|
|
46
51
|
};
|
|
47
52
|
(0, utils_1.sendNotification)(notification, 'search-init-result');
|
|
48
53
|
}
|
|
49
|
-
exports.SearchInitResultNotify = SearchInitResultNotify;
|
|
50
54
|
// ===== SEARCH REQUEST FUNCTIONS =====
|
|
51
55
|
/**
|
|
52
56
|
* Sends a search request notification
|
|
@@ -68,7 +72,6 @@ function SearchRequestNotify(query, toolUseId) {
|
|
|
68
72
|
};
|
|
69
73
|
(0, utils_1.sendNotification)(notification, 'search-request');
|
|
70
74
|
}
|
|
71
|
-
exports.SearchRequestNotify = SearchRequestNotify;
|
|
72
75
|
/**
|
|
73
76
|
* Sends a search result notification
|
|
74
77
|
* @param content - The search result content or error details
|
|
@@ -89,7 +92,6 @@ function SearchResultNotify(content, isError = false, toolUseId) {
|
|
|
89
92
|
};
|
|
90
93
|
(0, utils_1.sendNotification)(notification, 'search-result');
|
|
91
94
|
}
|
|
92
|
-
exports.SearchResultNotify = SearchResultNotify;
|
|
93
95
|
// ===== GET FIRST LINK FUNCTIONS =====
|
|
94
96
|
/**
|
|
95
97
|
* Sends a get first link request notification
|
|
@@ -111,7 +113,6 @@ function GetFirstLinkRequestNotify(query, toolUseId) {
|
|
|
111
113
|
};
|
|
112
114
|
(0, utils_1.sendNotification)(notification, 'search-get-first-link');
|
|
113
115
|
}
|
|
114
|
-
exports.GetFirstLinkRequestNotify = GetFirstLinkRequestNotify;
|
|
115
116
|
/**
|
|
116
117
|
* Sends a get first link result notification
|
|
117
118
|
* @param content - The first link result content or error details
|
|
@@ -132,7 +133,6 @@ function GetFirstLinkResultNotify(content, isError = false, toolUseId) {
|
|
|
132
133
|
};
|
|
133
134
|
(0, utils_1.sendNotification)(notification, 'search-get-first-link-result');
|
|
134
135
|
}
|
|
135
|
-
exports.GetFirstLinkResultNotify = GetFirstLinkResultNotify;
|
|
136
136
|
/**
|
|
137
137
|
* Search notification functions object
|
|
138
138
|
*/
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* including agent initialization and completion states.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.systemNotifications =
|
|
9
|
+
exports.systemNotifications = void 0;
|
|
10
|
+
exports.AgentInitNotify = AgentInitNotify;
|
|
11
|
+
exports.AgentCompletionNotify = AgentCompletionNotify;
|
|
10
12
|
const utils_1 = require("./utils");
|
|
11
13
|
// ===== AGENT INIT FUNCTIONS =====
|
|
12
14
|
/**
|
|
@@ -25,7 +27,6 @@ function AgentInitNotify(onStopClicked, toolUseId) {
|
|
|
25
27
|
};
|
|
26
28
|
(0, utils_1.sendNotification)(notification, 'agent-init');
|
|
27
29
|
}
|
|
28
|
-
exports.AgentInitNotify = AgentInitNotify;
|
|
29
30
|
// ===== AGENT COMPLETION FUNCTIONS =====
|
|
30
31
|
/**
|
|
31
32
|
* Sends an agent completion notification
|
|
@@ -49,7 +50,6 @@ function AgentCompletionNotify(resultString, sessionId, duration, toolUseId) {
|
|
|
49
50
|
};
|
|
50
51
|
(0, utils_1.sendNotification)(notification, 'agent-completion');
|
|
51
52
|
}
|
|
52
|
-
exports.AgentCompletionNotify = AgentCompletionNotify;
|
|
53
53
|
/**
|
|
54
54
|
* System notification functions object
|
|
55
55
|
*/
|