File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codebolt/codeboltjs" ,
3
- "version" : " 1.1.23 " ,
3
+ "version" : " 1.1.24 " ,
4
4
"description" : " " ,
5
5
"keywords" : [],
6
6
"author" : " " ,
Original file line number Diff line number Diff line change
1
+ import cbws from './websocket' ;
2
+
1
3
/**
2
4
* A utility module for working with code.
3
5
*/
@@ -13,6 +15,20 @@ const cbcodeutils = {
13
15
return new Promise ( ( resolve , reject ) => {
14
16
// Implementation would go here
15
17
} ) ;
18
+ } ,
19
+ getAllFilesAsMarkDown :( ) => {
20
+ return new Promise ( ( resolve , reject ) => {
21
+ cbws . getWebsocket . send ( JSON . stringify ( {
22
+ "type" : "codeEvent" ,
23
+ "action" :"getAllFilesMarkdown"
24
+ } ) ) ;
25
+ cbws . getWebsocket . on ( 'message' , ( data : string ) => {
26
+ const response = JSON . parse ( data ) ;
27
+ if ( response . type === "getAllFilesMarkdownResponse" ) {
28
+ resolve ( response . markdown ) ; // Resolve the Promise with the response data
29
+ }
30
+ } ) ;
31
+ } ) ;
16
32
}
17
33
} ;
18
34
Original file line number Diff line number Diff line change @@ -158,7 +158,11 @@ const cbfs = {
158
158
}
159
159
} ) ;
160
160
} ) ;
161
- }
161
+ } ,
162
+ listFile :( folderPath ?:string ) => {
163
+
164
+ } ,
165
+
162
166
} ;
163
167
164
168
export default cbfs ;
You can’t perform that action at this time.
0 commit comments