File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818 "license" : " MIT" ,
1919 "homepage" : " https://codeboltai.github.io" ,
2020 "dependencies" : {
21- "@codebolt/types" : " ^1.0.9 " ,
21+ "@codebolt/types" : " ^1.0.10 " ,
2222 "tree-sitter" : " ^0.21.1" ,
2323 "tree-sitter-javascript" : " ^0.21.2" ,
2424 "typedoc-plugin-missing-exports" : " ^2.2.0" ,
Original file line number Diff line number Diff line change 11// chat.ts
22import cbws from './websocket' ;
33import { EventEmitter } from 'events' ;
4- import { ChatMessage } from '@codebolt/types'
4+ import { ChatMessage , UserMessage } from '@codebolt/types'
55
66
77
@@ -63,9 +63,9 @@ const cbchat = {
6363 /**
6464 * Waits for a reply to a sent message.
6565 * @param {string } message - The message for which a reply is expected.
66- * @returns {Promise<ChatMessage > } A promise that resolves with the reply.
66+ * @returns {Promise<UserMessage > } A promise that resolves with the reply.
6767 */
68- waitforReply : ( message : string ) : Promise < string > => {
68+ waitforReply : ( message : string ) : Promise < UserMessage > => {
6969 return new Promise ( ( resolve , reject ) => {
7070 cbws . getWebsocket . send ( JSON . stringify ( {
7171 "type" : "waitforReply" ,
You can’t perform that action at this time.
0 commit comments