@codebolt/codeboltjs 2.0.13 → 2.0.15

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.
Files changed (125) hide show
  1. package/dist/agentlib/agent.js +3 -7
  2. package/dist/agentlib/followupquestionbuilder.d.ts +75 -0
  3. package/dist/agentlib/followupquestionbuilder.js +193 -0
  4. package/dist/agentlib/llmoutputhandler.d.ts +102 -0
  5. package/dist/agentlib/llmoutputhandler.js +451 -0
  6. package/dist/agentlib/promptbuilder.d.ts +171 -17
  7. package/dist/agentlib/promptbuilder.js +367 -49
  8. package/dist/agentlib/systemprompt.js +3 -3
  9. package/dist/agentlib/usermessage.d.ts +1 -1
  10. package/dist/agentlib/usermessage.js +5 -1
  11. package/dist/core/Codebolt.d.ts +52 -20
  12. package/dist/core/Codebolt.js +43 -1
  13. package/dist/core/websocket.js +2 -1
  14. package/dist/modules/llm.d.ts +23 -3
  15. package/dist/modules/llm.js +20 -3
  16. package/dist/modules/project.d.ts +3 -3
  17. package/dist/modules/project.js +1 -1
  18. package/dist/modules/state.d.ts +5 -3
  19. package/dist/modules/state.js +2 -0
  20. package/dist/modules/task.d.ts +126 -11
  21. package/dist/modules/task.js +262 -20
  22. package/dist/notificationfunctions/agent.d.ts +48 -0
  23. package/dist/notificationfunctions/agent.js +115 -0
  24. package/dist/notificationfunctions/browser.d.ts +60 -0
  25. package/dist/notificationfunctions/browser.js +145 -0
  26. package/dist/notificationfunctions/chat.d.ts +53 -0
  27. package/dist/notificationfunctions/chat.js +125 -0
  28. package/dist/notificationfunctions/codeutils.d.ts +60 -0
  29. package/dist/notificationfunctions/codeutils.js +145 -0
  30. package/dist/notificationfunctions/crawler.d.ts +59 -0
  31. package/dist/notificationfunctions/crawler.js +159 -0
  32. package/dist/notificationfunctions/dbmemory.d.ts +50 -0
  33. package/dist/notificationfunctions/dbmemory.js +132 -0
  34. package/dist/notificationfunctions/fs.d.ts +125 -0
  35. package/dist/notificationfunctions/fs.js +472 -0
  36. package/dist/notificationfunctions/git.d.ts +174 -0
  37. package/dist/notificationfunctions/git.js +521 -0
  38. package/dist/notificationfunctions/history.d.ts +38 -0
  39. package/dist/notificationfunctions/history.js +97 -0
  40. package/dist/notificationfunctions/index.d.ts +79 -0
  41. package/dist/notificationfunctions/index.js +102 -0
  42. package/dist/notificationfunctions/llm.d.ts +39 -0
  43. package/dist/notificationfunctions/llm.js +99 -0
  44. package/dist/notificationfunctions/mcp.d.ts +67 -0
  45. package/dist/notificationfunctions/mcp.js +192 -0
  46. package/dist/notificationfunctions/search.d.ts +50 -0
  47. package/dist/notificationfunctions/search.js +146 -0
  48. package/dist/notificationfunctions/system.d.ts +25 -0
  49. package/dist/notificationfunctions/system.js +59 -0
  50. package/dist/notificationfunctions/terminal.d.ts +26 -0
  51. package/dist/notificationfunctions/terminal.js +64 -0
  52. package/dist/notificationfunctions/todo.d.ts +63 -0
  53. package/dist/notificationfunctions/todo.js +164 -0
  54. package/dist/notificationfunctions/utils.d.ts +81 -0
  55. package/dist/notificationfunctions/utils.js +177 -0
  56. package/dist/types/InternalTypes.d.ts +1 -0
  57. package/dist/types/commonTypes.d.ts +26 -3
  58. package/dist/types/index.d.ts +2 -2
  59. package/dist/types/libFunctionTypes.d.ts +80 -3
  60. package/dist/types/notificationFunctions/agent.d.ts +8 -0
  61. package/dist/types/notificationFunctions/agent.js +2 -0
  62. package/dist/types/notificationFunctions/browser.d.ts +10 -0
  63. package/dist/types/notificationFunctions/browser.js +2 -0
  64. package/dist/types/notificationFunctions/chat.d.ts +10 -0
  65. package/dist/types/notificationFunctions/chat.js +2 -0
  66. package/dist/types/notificationFunctions/codeutils.d.ts +10 -0
  67. package/dist/types/notificationFunctions/codeutils.js +2 -0
  68. package/dist/types/notificationFunctions/crawler.d.ts +10 -0
  69. package/dist/types/notificationFunctions/crawler.js +2 -0
  70. package/dist/types/notificationFunctions/dbmemory.d.ts +9 -0
  71. package/dist/types/notificationFunctions/dbmemory.js +2 -0
  72. package/dist/types/notificationFunctions/fs.d.ts +27 -0
  73. package/dist/types/notificationFunctions/fs.js +2 -0
  74. package/dist/types/notificationFunctions/git.d.ts +29 -0
  75. package/dist/types/notificationFunctions/git.js +2 -0
  76. package/dist/types/notificationFunctions/history.d.ts +10 -0
  77. package/dist/types/notificationFunctions/history.js +2 -0
  78. package/dist/types/notificationFunctions/index.d.ts +0 -0
  79. package/dist/types/notificationFunctions/index.js +1 -0
  80. package/dist/types/notificationFunctions/llm.d.ts +10 -0
  81. package/dist/types/notificationFunctions/llm.js +2 -0
  82. package/dist/types/notificationFunctions/mcp.d.ts +16 -0
  83. package/dist/types/notificationFunctions/mcp.js +2 -0
  84. package/dist/types/notificationFunctions/search.d.ts +11 -0
  85. package/dist/types/notificationFunctions/search.js +2 -0
  86. package/dist/types/notificationFunctions/system.d.ts +7 -0
  87. package/dist/types/notificationFunctions/system.js +2 -0
  88. package/dist/types/notificationFunctions/terminal.d.ts +7 -0
  89. package/dist/types/notificationFunctions/terminal.js +2 -0
  90. package/dist/types/notificationFunctions/todo.d.ts +11 -0
  91. package/dist/types/notificationFunctions/todo.js +2 -0
  92. package/dist/types/notifications/agent.d.ts +31 -0
  93. package/dist/types/notifications/agent.js +3 -0
  94. package/dist/types/notifications/browser.d.ts +53 -0
  95. package/dist/types/notifications/browser.js +3 -0
  96. package/dist/types/notifications/chat.d.ts +37 -0
  97. package/dist/types/notifications/chat.js +3 -0
  98. package/dist/types/notifications/codeutils.d.ts +55 -0
  99. package/dist/types/notifications/codeutils.js +3 -0
  100. package/dist/types/notifications/crawler.d.ts +55 -0
  101. package/dist/types/notifications/crawler.js +3 -0
  102. package/dist/types/notifications/dbmemory.d.ts +31 -0
  103. package/dist/types/notifications/dbmemory.js +3 -0
  104. package/dist/types/notifications/fs.d.ts +180 -0
  105. package/dist/types/notifications/fs.js +3 -0
  106. package/dist/types/notifications/git.d.ts +205 -0
  107. package/dist/types/notifications/git.js +3 -0
  108. package/dist/types/notifications/history.d.ts +32 -0
  109. package/dist/types/notifications/history.js +3 -0
  110. package/dist/types/notifications/llm.d.ts +45 -0
  111. package/dist/types/notifications/llm.js +2 -0
  112. package/dist/types/notifications/mcp.d.ts +63 -0
  113. package/dist/types/notifications/mcp.js +3 -0
  114. package/dist/types/notifications/search.d.ts +47 -0
  115. package/dist/types/notifications/search.js +3 -0
  116. package/dist/types/notifications/system.d.ts +20 -0
  117. package/dist/types/notifications/system.js +2 -0
  118. package/dist/types/notifications/terminal.d.ts +17 -0
  119. package/dist/types/notifications/terminal.js +2 -0
  120. package/dist/types/notifications/todo.d.ts +60 -0
  121. package/dist/types/notifications/todo.js +3 -0
  122. package/dist/types/socketMessageTypes.d.ts +3 -0
  123. package/dist/utils.d.ts +3 -0
  124. package/dist/utils.js +7 -1
  125. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Interface for todo notification functions
3
+ */
4
+ export interface TodoNotifications {
5
+ AddTodoRequestNotify(title?: string, agentId?: string, description?: string, phase?: string, category?: string, priority?: string, tags?: string[], toolUseId?: string): void;
6
+ AddTodoResponseNotify(content: string | any, isError?: boolean, toolUseId?: string): void;
7
+ GetTodoRequestNotify(filters?: any, toolUseId?: string): void;
8
+ GetTodoResponseNotify(content: string | any, isError?: boolean, toolUseId?: string): void;
9
+ EditTodoTaskRequestNotify(taskId?: string, title?: string, description?: string, phase?: string, category?: string, priority?: string, tags?: string[], status?: string, toolUseId?: string): void;
10
+ EditTodoTaskResponseNotify(content: string | any, isError?: boolean, toolUseId?: string): void;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ export type StartSubagentTaskRequestNotification = {
2
+ toolUseId: string;
3
+ type: "agentnotify";
4
+ action: "startSubagentTaskRequest";
5
+ data: {
6
+ parentAgentId: string;
7
+ subagentId: string;
8
+ task: string;
9
+ priority?: string;
10
+ dependencies?: string[];
11
+ };
12
+ };
13
+ export type StartSubagentTaskResponseNotification = {
14
+ toolUseId: string;
15
+ type: "agentnotify";
16
+ action: "startSubagentTaskResult";
17
+ content: string | any;
18
+ isError?: boolean;
19
+ };
20
+ export type SubagentTaskCompletedNotification = {
21
+ toolUseId: string;
22
+ type: "agentnotify";
23
+ action: "subagentTaskCompleted";
24
+ data: {
25
+ parentAgentId: string;
26
+ subagentId: string;
27
+ taskId: string;
28
+ result: any;
29
+ status: string;
30
+ };
31
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== AGENT NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,53 @@
1
+ export type WebFetchRequestNotification = {
2
+ toolUseId: string;
3
+ type: "browsernotify";
4
+ action: "webFetchRequest";
5
+ data: {
6
+ url: string;
7
+ method?: string;
8
+ headers?: Record<string, string>;
9
+ body?: string;
10
+ timeout?: number;
11
+ };
12
+ };
13
+ export type WebFetchResponseNotification = {
14
+ toolUseId: string;
15
+ type: "browsernotify";
16
+ action: "webFetchResult";
17
+ content: string | any;
18
+ isError?: boolean;
19
+ data?: {
20
+ status?: number;
21
+ statusText?: string;
22
+ headers?: Record<string, string>;
23
+ url?: string;
24
+ };
25
+ };
26
+ export type WebSearchRequestNotification = {
27
+ toolUseId: string;
28
+ type: "browsernotify";
29
+ action: "webSearchRequest";
30
+ data: {
31
+ query: string;
32
+ maxResults?: number;
33
+ searchEngine?: string;
34
+ filters?: Record<string, any>;
35
+ };
36
+ };
37
+ export type WebSearchResponseNotification = {
38
+ toolUseId: string;
39
+ type: "browsernotify";
40
+ action: "webSearchResult";
41
+ content: string | any;
42
+ isError?: boolean;
43
+ data?: {
44
+ results: Array<{
45
+ title: string;
46
+ url: string;
47
+ snippet: string;
48
+ rank?: number;
49
+ }>;
50
+ totalResults?: number;
51
+ searchTime?: number;
52
+ };
53
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== BROWSER NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ export type UserMessageRequestNotification = {
2
+ toolUseId: string;
3
+ type: "chatnotify";
4
+ action: "sendMessageRequest";
5
+ data: {
6
+ message: string;
7
+ payload?: any;
8
+ };
9
+ };
10
+ export type AgentTextResponseNotification = {
11
+ toolUseId: string;
12
+ type: "chatnotify";
13
+ action: "agentTextResponse";
14
+ content: string | any;
15
+ isError?: boolean;
16
+ data?: {
17
+ message: string;
18
+ timestamp?: string;
19
+ agentId?: string;
20
+ conversationId?: string;
21
+ };
22
+ };
23
+ export type GetChatHistoryRequestNotification = {
24
+ toolUseId: string;
25
+ type: "chatnotify";
26
+ action: "getChatHistoryRequest";
27
+ data: {
28
+ sessionId?: string;
29
+ };
30
+ };
31
+ export type GetChatHistoryResultNotification = {
32
+ toolUseId: string;
33
+ type: "chatnotify";
34
+ action: "getChatHistoryResult";
35
+ content: string | any;
36
+ isError?: boolean;
37
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== CHAT NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,55 @@
1
+ export type GrepSearchRequestNotification = {
2
+ toolUseId: string;
3
+ type: "codeutilsnotify";
4
+ action: "grepSearchRequest";
5
+ data: {
6
+ pattern: string;
7
+ filePath?: string;
8
+ recursive?: boolean;
9
+ ignoreCase?: boolean;
10
+ maxResults?: number;
11
+ };
12
+ };
13
+ export type GrepSearchResponseNotification = {
14
+ toolUseId: string;
15
+ type: "codeutilsnotify";
16
+ action: "grepSearchResult";
17
+ content: string | any;
18
+ isError?: boolean;
19
+ data?: {
20
+ matches: Array<{
21
+ file: string;
22
+ line: number;
23
+ content: string;
24
+ matchIndex?: number;
25
+ }>;
26
+ totalMatches?: number;
27
+ };
28
+ };
29
+ export type GlobSearchRequestNotification = {
30
+ toolUseId: string;
31
+ type: "codeutilsnotify";
32
+ action: "globSearchRequest";
33
+ data: {
34
+ pattern: string;
35
+ basePath?: string;
36
+ maxDepth?: number;
37
+ includeDirectories?: boolean;
38
+ };
39
+ };
40
+ export type GlobSearchResponseNotification = {
41
+ toolUseId: string;
42
+ type: "codeutilsnotify";
43
+ action: "globSearchResult";
44
+ content: string | any;
45
+ isError?: boolean;
46
+ data?: {
47
+ files: Array<{
48
+ path: string;
49
+ type: 'file' | 'directory';
50
+ size?: number;
51
+ modified?: string;
52
+ }>;
53
+ totalFiles?: number;
54
+ };
55
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== CODE UTILS NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,55 @@
1
+ export type CrawlerSearchRequestNotification = {
2
+ toolUseId: string;
3
+ type: "crawlernotify";
4
+ action: "crawlerSearchRequest";
5
+ data: {
6
+ url: string;
7
+ searchQuery?: string;
8
+ maxDepth?: number;
9
+ maxPages?: number;
10
+ includeSubdomains?: boolean;
11
+ followRedirects?: boolean;
12
+ };
13
+ };
14
+ export type CrawlerSearchResponseNotification = {
15
+ toolUseId: string;
16
+ type: "crawlernotify";
17
+ action: "crawlerSearchResult";
18
+ content: string | any;
19
+ isError?: boolean;
20
+ data?: {
21
+ pages: Array<{
22
+ url: string;
23
+ title: string;
24
+ content: string;
25
+ depth: number;
26
+ timestamp: string;
27
+ }>;
28
+ totalPages?: number;
29
+ crawlTime?: number;
30
+ };
31
+ };
32
+ export type CrawlerStartRequestNotification = {
33
+ toolUseId: string;
34
+ type: "crawlernotify";
35
+ action: "crawlerStartRequest";
36
+ data: {
37
+ startUrl: string;
38
+ options?: {
39
+ userAgent?: string;
40
+ timeout?: number;
41
+ headers?: Record<string, string>;
42
+ };
43
+ };
44
+ };
45
+ export type CrawlerStartResponseNotification = {
46
+ toolUseId: string;
47
+ type: "crawlernotify";
48
+ action: "crawlerStartResult";
49
+ content: string | any;
50
+ isError?: boolean;
51
+ data?: {
52
+ sessionId: string;
53
+ status: string;
54
+ };
55
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== CRAWLER NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ export type AddMemoryRequestNotification = {
2
+ toolUseId: string;
3
+ type: "dbmemorynotify";
4
+ action: "addKnowledgeRequest";
5
+ data: {
6
+ key: string;
7
+ value: any;
8
+ };
9
+ };
10
+ export type AddMemoryResultNotification = {
11
+ toolUseId: string;
12
+ type: "dbmemorynotify";
13
+ action: "addKnowledgeResult";
14
+ content: string | any;
15
+ isError?: boolean;
16
+ };
17
+ export type GetMemoryRequestNotification = {
18
+ toolUseId: string;
19
+ type: "dbmemorynotify";
20
+ action: "getKnowledgeRequest";
21
+ data: {
22
+ key: string;
23
+ };
24
+ };
25
+ export type GetMemoryResultNotification = {
26
+ toolUseId: string;
27
+ type: "dbmemorynotify";
28
+ action: "getKnowledgeResult";
29
+ content: string | any;
30
+ isError?: boolean;
31
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== DBMEMORY NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,180 @@
1
+ export type FileCreateRequestNotification = {
2
+ toolUseId: string;
3
+ type: "fsnotify";
4
+ action: "createFileRequest";
5
+ data: {
6
+ fileName: string;
7
+ source: string;
8
+ filePath: string;
9
+ };
10
+ };
11
+ export type FileCreateResponseNotification = {
12
+ toolUseId: string;
13
+ type: "fsnotify";
14
+ action: "createFileResult";
15
+ content: string | any;
16
+ isError?: boolean;
17
+ };
18
+ export type FolderCreateRequestNotification = {
19
+ toolUseId: string;
20
+ type: "fsnotify";
21
+ action: "createFolderRequest";
22
+ data: {
23
+ folderName: string;
24
+ folderPath: string;
25
+ };
26
+ };
27
+ export type FolderCreateResponseNotification = {
28
+ toolUseId: string;
29
+ type: "fsnotify";
30
+ action: "createFolderResult";
31
+ content: string | any;
32
+ isError?: boolean;
33
+ };
34
+ export type FileReadRequestNotification = {
35
+ toolUseId: string;
36
+ type: "fsnotify";
37
+ action: "readFileRequest";
38
+ data: {
39
+ filePath: string;
40
+ startLine?: string;
41
+ endLine?: string;
42
+ };
43
+ };
44
+ export type FileReadResponseNotification = {
45
+ toolUseId: string;
46
+ type: "fsnotify";
47
+ action: "readFileResult";
48
+ content: string | any;
49
+ isError?: boolean;
50
+ };
51
+ export type FileEditRequestNotification = {
52
+ toolUseId: string;
53
+ type: "fsnotify";
54
+ action: "updateFileRequest";
55
+ data: {
56
+ fileName: string;
57
+ filePath: string;
58
+ newContent: string;
59
+ };
60
+ };
61
+ export type FileEditResponseNotification = {
62
+ toolUseId: string;
63
+ type: "fsnotify";
64
+ action: "updateFileResult";
65
+ content: string | any;
66
+ isError?: boolean;
67
+ };
68
+ export type FileDeleteRequestNotification = {
69
+ toolUseId: string;
70
+ type: "fsnotify";
71
+ action: "deleteFileRequest";
72
+ data: {
73
+ fileName: string;
74
+ filePath: string;
75
+ };
76
+ };
77
+ export type FileDeleteResponseNotification = {
78
+ toolUseId: string;
79
+ type: "fsnotify";
80
+ action: "deleteFileResult";
81
+ content: string | any;
82
+ isError?: boolean;
83
+ };
84
+ export type FolderDeleteRequestNotification = {
85
+ toolUseId: string;
86
+ type: "fsnotify";
87
+ action: "deleteFolderRequest";
88
+ data: {
89
+ folderName: string;
90
+ folderPath: string;
91
+ };
92
+ };
93
+ export type FolderDeleteResponseNotification = {
94
+ toolUseId: string;
95
+ type: "fsnotify";
96
+ action: "deleteFolderResult";
97
+ content: string | any;
98
+ isError?: boolean;
99
+ };
100
+ export type ListDirectoryRequestNotification = {
101
+ toolUseId: string;
102
+ type: "fsnotify";
103
+ action: "listDirectoryRequest";
104
+ data: {
105
+ dirPath: string;
106
+ };
107
+ };
108
+ export type ListDirectoryResponseNotification = {
109
+ toolUseId: string;
110
+ type: "fsnotify";
111
+ action: "listDirectoryResult";
112
+ content: string | any;
113
+ isError?: boolean;
114
+ };
115
+ export type WriteToFileRequestNotification = {
116
+ toolUseId: string;
117
+ type: "fsnotify";
118
+ action: "writeToFileRequest";
119
+ data: {
120
+ filePath: string;
121
+ text: string;
122
+ };
123
+ };
124
+ export type WriteToFileResponseNotification = {
125
+ toolUseId: string;
126
+ type: "fsnotify";
127
+ action: "writeToFileResult";
128
+ content: string | any;
129
+ isError?: boolean;
130
+ };
131
+ export type AppendToFileRequestNotification = {
132
+ toolUseId: string;
133
+ type: "fsnotify";
134
+ action: "appendToFileRequest";
135
+ data: {
136
+ filePath: string;
137
+ text: string;
138
+ };
139
+ };
140
+ export type AppendToFileResponseNotification = {
141
+ toolUseId: string;
142
+ type: "fsnotify";
143
+ action: "appendToFileResult";
144
+ content: string | any;
145
+ isError?: boolean;
146
+ };
147
+ export type CopyFileRequestNotification = {
148
+ toolUseId: string;
149
+ type: "fsnotify";
150
+ action: "copyFileRequest";
151
+ data: {
152
+ sourceFile: string;
153
+ destinationFile: string;
154
+ };
155
+ };
156
+ export type CopyFileResponseNotification = {
157
+ toolUseId: string;
158
+ type: "fsnotify";
159
+ action: "copyFileResult";
160
+ content: string | any;
161
+ isError?: boolean;
162
+ };
163
+ export type MoveFileRequestNotification = {
164
+ toolUseId: string;
165
+ type: "fsnotify";
166
+ action: "moveFileRequest";
167
+ data: {
168
+ sourceFile: string;
169
+ destinationFile: string;
170
+ };
171
+ };
172
+ export type MoveFileResponseNotification = {
173
+ toolUseId: string;
174
+ type: "fsnotify";
175
+ action: "moveFileResult";
176
+ content: string | any;
177
+ isError?: boolean;
178
+ };
179
+ export type FileSystemRequestNotification = FileCreateRequestNotification | FolderCreateRequestNotification | FileReadRequestNotification | FileEditRequestNotification | FileDeleteRequestNotification | FolderDeleteRequestNotification | ListDirectoryRequestNotification | WriteToFileRequestNotification | AppendToFileRequestNotification | CopyFileRequestNotification | MoveFileRequestNotification;
180
+ export type FileSystemResponseNotification = FileCreateResponseNotification | FolderCreateResponseNotification | FileReadResponseNotification | FileEditResponseNotification | FileDeleteResponseNotification | FolderDeleteResponseNotification | ListDirectoryResponseNotification | WriteToFileResponseNotification | AppendToFileResponseNotification | CopyFileResponseNotification | MoveFileResponseNotification;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ===== FILE SYSTEM NOTIFICATIONS =====
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,205 @@
1
+ export type GitInitRequestNotification = {
2
+ toolUseId: string;
3
+ type: "gitnotify";
4
+ action: "initRequest";
5
+ data: {
6
+ path?: string;
7
+ };
8
+ };
9
+ export type GitInitResponseNotification = {
10
+ toolUseId: string;
11
+ type: "gitnotify";
12
+ action: "initResult";
13
+ content: string | any;
14
+ isError?: boolean;
15
+ };
16
+ export type GitPullRequestNotification = {
17
+ toolUseId: string;
18
+ type: "gitnotify";
19
+ action: "pullRequest";
20
+ data: {
21
+ path?: string;
22
+ };
23
+ };
24
+ export type GitPullResponseNotification = {
25
+ toolUseId: string;
26
+ type: "gitnotify";
27
+ action: "pullResult";
28
+ content: string | any;
29
+ isError?: boolean;
30
+ };
31
+ export type GitPushRequestNotification = {
32
+ toolUseId: string;
33
+ type: "gitnotify";
34
+ action: "pushRequest";
35
+ data: {
36
+ path?: string;
37
+ };
38
+ };
39
+ export type GitPushResponseNotification = {
40
+ toolUseId: string;
41
+ type: "gitnotify";
42
+ action: "pushResult";
43
+ content: string | any;
44
+ isError?: boolean;
45
+ };
46
+ export type GitStatusRequestNotification = {
47
+ toolUseId: string;
48
+ type: "gitnotify";
49
+ action: "statusRequest";
50
+ data: {
51
+ path?: string;
52
+ };
53
+ };
54
+ export type GitStatusResponseNotification = {
55
+ toolUseId: string;
56
+ type: "gitnotify";
57
+ action: "statusResult";
58
+ content: string | any;
59
+ isError?: boolean;
60
+ };
61
+ export type GitAddRequestNotification = {
62
+ toolUseId: string;
63
+ type: "gitnotify";
64
+ action: "addRequest";
65
+ data: {
66
+ path?: string;
67
+ files?: string[];
68
+ };
69
+ };
70
+ export type GitAddResponseNotification = {
71
+ toolUseId: string;
72
+ type: "gitnotify";
73
+ action: "addResult";
74
+ content: string | any;
75
+ isError?: boolean;
76
+ };
77
+ export type GitCommitRequestNotification = {
78
+ toolUseId: string;
79
+ type: "gitnotify";
80
+ action: "commitRequest";
81
+ data: {
82
+ path?: string;
83
+ message?: string;
84
+ };
85
+ };
86
+ export type GitCommitResponseNotification = {
87
+ toolUseId: string;
88
+ type: "gitnotify";
89
+ action: "commitResult";
90
+ content: string | any;
91
+ isError?: boolean;
92
+ };
93
+ export type GitCheckoutRequestNotification = {
94
+ toolUseId: string;
95
+ type: "gitnotify";
96
+ action: "checkoutRequest";
97
+ data: {
98
+ path?: string;
99
+ branchName?: string;
100
+ };
101
+ };
102
+ export type GitCheckoutResponseNotification = {
103
+ toolUseId: string;
104
+ type: "gitnotify";
105
+ action: "checkoutResult";
106
+ content: string | any;
107
+ isError?: boolean;
108
+ };
109
+ export type GitBranchRequestNotification = {
110
+ toolUseId: string;
111
+ type: "gitnotify";
112
+ action: "branchRequest";
113
+ data: {
114
+ path?: string;
115
+ branchName?: string;
116
+ };
117
+ };
118
+ export type GitBranchResponseNotification = {
119
+ toolUseId: string;
120
+ type: "gitnotify";
121
+ action: "branchResult";
122
+ content: string | any;
123
+ isError?: boolean;
124
+ };
125
+ export type GitLogsRequestNotification = {
126
+ toolUseId: string;
127
+ type: "gitnotify";
128
+ action: "logsRequest";
129
+ data: {
130
+ path?: string;
131
+ };
132
+ };
133
+ export type GitLogsResponseNotification = {
134
+ toolUseId: string;
135
+ type: "gitnotify";
136
+ action: "logsResult";
137
+ content: string | any;
138
+ isError?: boolean;
139
+ };
140
+ export type GitDiffRequestNotification = {
141
+ toolUseId: string;
142
+ type: "gitnotify";
143
+ action: "diffRequest";
144
+ data: {
145
+ path?: string;
146
+ };
147
+ };
148
+ export type GitDiffResponseNotification = {
149
+ toolUseId: string;
150
+ type: "gitnotify";
151
+ action: "diffResult";
152
+ content: string | any;
153
+ isError?: boolean;
154
+ };
155
+ export type GitRemoteAddRequestNotification = {
156
+ toolUseId: string;
157
+ type: "gitnotify";
158
+ action: "remoteAddRequest";
159
+ data: {
160
+ path?: string;
161
+ remoteName?: string;
162
+ remoteUrl?: string;
163
+ };
164
+ };
165
+ export type GitRemoteAddResponseNotification = {
166
+ toolUseId: string;
167
+ type: "gitnotify";
168
+ action: "remoteAddResult";
169
+ content: string | any;
170
+ isError?: boolean;
171
+ };
172
+ export type GitRemoteRemoveRequestNotification = {
173
+ toolUseId: string;
174
+ type: "gitnotify";
175
+ action: "remoteRemoveRequest";
176
+ data: {
177
+ path?: string;
178
+ remoteName?: string;
179
+ };
180
+ };
181
+ export type GitRemoteRemoveResponseNotification = {
182
+ toolUseId: string;
183
+ type: "gitnotify";
184
+ action: "remoteRemoveResult";
185
+ content: string | any;
186
+ isError?: boolean;
187
+ };
188
+ export type GitCloneRequestNotification = {
189
+ toolUseId: string;
190
+ type: "gitnotify";
191
+ action: "cloneRequest";
192
+ data: {
193
+ repoUrl?: string;
194
+ targetPath?: string;
195
+ };
196
+ };
197
+ export type GitCloneResponseNotification = {
198
+ toolUseId: string;
199
+ type: "gitnotify";
200
+ action: "cloneResult";
201
+ content: string | any;
202
+ isError?: boolean;
203
+ };
204
+ export type GitNotification = GitInitRequestNotification | GitPullRequestNotification | GitPushRequestNotification | GitStatusRequestNotification | GitAddRequestNotification | GitCommitRequestNotification | GitCheckoutRequestNotification | GitBranchRequestNotification | GitLogsRequestNotification | GitDiffRequestNotification | GitRemoteAddRequestNotification | GitRemoteRemoveRequestNotification | GitCloneRequestNotification;
205
+ export type GitResponseNotification = GitInitResponseNotification | GitPullResponseNotification | GitPushResponseNotification | GitStatusResponseNotification | GitAddResponseNotification | GitCommitResponseNotification | GitCheckoutResponseNotification | GitBranchResponseNotification | GitLogsResponseNotification | GitDiffResponseNotification | GitRemoteAddResponseNotification | GitRemoteRemoveResponseNotification | GitCloneResponseNotification;