@codebolt/codeboltjs 1.1.55 → 1.1.57
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/index.d.ts +1 -0
- package/modules/project.d.ts +1 -0
- package/modules/project.js +6 -1
- package/modules/websocket.js +7 -7
- package/package.json +1 -1
- package/src/modules/project.ts +7 -2
- package/src/modules/websocket.ts +7 -7
package/index.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ declare class Codebolt {
|
|
|
179
179
|
project: {
|
|
180
180
|
getProjectSettings: (output: any) => void;
|
|
181
181
|
getProjectPath: () => Promise<import("@codebolt/types").GetProjectPathResponse>;
|
|
182
|
+
runProject: () => void;
|
|
182
183
|
};
|
|
183
184
|
dbmemory: {
|
|
184
185
|
addKnowledge: (key: string, value: any) => Promise<import("@codebolt/types").MemorySetResponse>;
|
package/modules/project.d.ts
CHANGED
package/modules/project.js
CHANGED
package/modules/websocket.js
CHANGED
|
@@ -57,13 +57,13 @@ class cbws {
|
|
|
57
57
|
});
|
|
58
58
|
this.websocket.on('open', () => {
|
|
59
59
|
console.log('WebSocket connected');
|
|
60
|
-
if (this.websocket) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
60
|
+
// if (this.websocket) {
|
|
61
|
+
// this.websocket.send(JSON.stringify({
|
|
62
|
+
// "type": "sendMessage",
|
|
63
|
+
// "message": initialMessage
|
|
64
|
+
// }));
|
|
65
|
+
// resolve(this.websocket);
|
|
66
|
+
// }
|
|
67
67
|
});
|
|
68
68
|
this.websocket.on('message', (data) => {
|
|
69
69
|
// Handle incoming WebSocket messages here.
|
package/package.json
CHANGED
package/src/modules/project.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import cbws from './websocket';
|
|
2
|
-
import {GetProjectPathResponse } from '@codebolt/types';
|
|
2
|
+
import { GetProjectPathResponse } from '@codebolt/types';
|
|
3
3
|
/**
|
|
4
4
|
* A module for interacting with project settings and paths.
|
|
5
5
|
*/
|
|
@@ -29,6 +29,11 @@ const cbproject = {
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
runProject: () => {
|
|
34
|
+
cbws.getWebsocket.send(JSON.stringify({
|
|
35
|
+
"type": "runProject"
|
|
36
|
+
}));
|
|
37
|
+
},
|
|
33
38
|
};
|
|
34
39
|
export default cbproject
|
package/src/modules/websocket.ts
CHANGED
|
@@ -56,13 +56,13 @@ class cbws {
|
|
|
56
56
|
|
|
57
57
|
this.websocket.on('open', () => {
|
|
58
58
|
console.log('WebSocket connected');
|
|
59
|
-
if (this.websocket) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
59
|
+
// if (this.websocket) {
|
|
60
|
+
// this.websocket.send(JSON.stringify({
|
|
61
|
+
// "type": "sendMessage",
|
|
62
|
+
// "message": initialMessage
|
|
63
|
+
// }));
|
|
64
|
+
// resolve(this.websocket);
|
|
65
|
+
// }
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
this.websocket.on('message', (data: WebSocket.Data) => {
|