@codebolt/codeboltjs 1.1.52 → 1.1.53

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 CHANGED
@@ -107,6 +107,7 @@ declare class Codebolt {
107
107
  stopProcess: () => void;
108
108
  };
109
109
  stopProcess: () => void;
110
+ processFinished: () => void;
110
111
  sendConfirmationRequest: (confirmationMessage: string, buttons?: string[]) => Promise<string>;
111
112
  sendNotificationEvent: (notificationMessage: string, type: "debug" | "git" | "planner" | "browser" | "editor" | "terminal" | "preview") => void;
112
113
  };
package/modules/chat.d.ts CHANGED
@@ -44,6 +44,11 @@ declare const cbchat: {
44
44
  * Sends a specific message to the server to stop the process.
45
45
  */
46
46
  stopProcess: () => void;
47
+ /**
48
+ * Stops the ongoing process.
49
+ * Sends a specific message to the server to stop the process.
50
+ */
51
+ processFinished: () => void;
47
52
  /**
48
53
  * Sends a confirmation request to the server with two options: Yes or No.
49
54
  * @returns {Promise<string>} A promise that resolves with the server's response.
package/modules/chat.js CHANGED
@@ -126,6 +126,18 @@ const cbchat = {
126
126
  "type": "processStoped"
127
127
  }));
128
128
  },
129
+ /**
130
+ * Stops the ongoing process.
131
+ * Sends a specific message to the server to stop the process.
132
+ */
133
+ processFinished: () => {
134
+ // Implement the logic to stop the process here
135
+ console.log("Process Finished ...");
136
+ // For example, you might want to send a specific message to the server to stop the process
137
+ websocket_1.default.getWebsocket.send(JSON.stringify({
138
+ "type": "processFinished"
139
+ }));
140
+ },
129
141
  /**
130
142
  * Sends a confirmation request to the server with two options: Yes or No.
131
143
  * @returns {Promise<string>} A promise that resolves with the server's response.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebolt/codeboltjs",
3
- "version": "1.1.52",
3
+ "version": "1.1.53",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -130,6 +130,18 @@ const cbchat = {
130
130
  "type": "processStoped"
131
131
  }));
132
132
  },
133
+ /**
134
+ * Stops the ongoing process.
135
+ * Sends a specific message to the server to stop the process.
136
+ */
137
+ processFinished: () => {
138
+ // Implement the logic to stop the process here
139
+ console.log("Process Finished ...");
140
+ // For example, you might want to send a specific message to the server to stop the process
141
+ cbws.getWebsocket.send(JSON.stringify({
142
+ "type": "processFinished"
143
+ }));
144
+ },
133
145
 
134
146
  /**
135
147
  * Sends a confirmation request to the server with two options: Yes or No.