-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from devchat-ai/optimize_webview_communicatio…
…n_idea Enhance Webview Communication and Context Handling
- Loading branch information
Showing
31 changed files
with
378 additions
and
240 deletions.
There are no files selected for viewing
Submodule gui
updated
5 files
+4 −0 | .env.example | |
+26 −8 | src/util/APIUtil.ts | |
+11 −23 | src/util/MessageUtil.ts | |
+0 −585 | src/util/ideaBridge.ts | |
+24 −7 | src/views/pages/ChatPanel.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
package ai.devchat.core | ||
|
||
object DevChatActions { | ||
const val SEND_MESSAGE_REQUEST = "sendMessage/request" | ||
const val SEND_MESSAGE_REQUEST = "sendMessage" | ||
const val SEND_MESSAGE_RESPONSE = "sendMessage/response" | ||
const val REGENERATION_REQUEST = "regeneration/request" | ||
const val REGENERATION_REQUEST = "regeneration" | ||
const val SEND_USER_MESSAGE_REQUEST = "sendUserMessage/request" | ||
const val SEND_USER_MESSAGE_RESPONSE = "sendUserMessage/response" | ||
const val SEND_USER_MESSAGE_RESPONSE = "chatWithDevChat" | ||
const val CODE_DIFF_APPLY_REQUEST = "codeDiffApply/request" | ||
const val CODE_DIFF_APPLY_RESPONSE = "codeDiffApply/response" | ||
const val ADD_CONTEXT_NOTIFY = "addContext/notify" | ||
const val LIST_COMMANDS_REQUEST = "listCommands/request" | ||
const val LIST_COMMANDS_RESPONSE = "listCommands/response" | ||
const val LOAD_CONVERSATIONS_REQUEST = "loadConversations/request" | ||
const val CODE_DIFF_APPLY_RESPONSE = "codeDiffApply" | ||
const val ADD_CONTEXT_NOTIFY = "contextDetailResponse" | ||
const val LIST_COMMANDS_REQUEST = "regCommandList" | ||
const val LIST_COMMANDS_RESPONSE = "regCommandList" | ||
const val NEW_CONVERSATIONS_REQUEST = "setNewTopic" | ||
const val LOAD_CONVERSATIONS_REQUEST = "getTopicDetail" | ||
const val LOAD_CONVERSATIONS_RESPONSE = "loadConversations/response" | ||
const val LOAD_HISTORY_MESSAGES_REQUEST = "loadHistoryMessages/request" | ||
const val LOAD_HISTORY_MESSAGES_RESPONSE = "loadHistoryMessages/response" | ||
const val OPEN_LINK_REQUEST = "openLink/request" | ||
const val LOAD_HISTORY_MESSAGES_REQUEST = "historyMessages" | ||
const val LOAD_HISTORY_MESSAGES_RESPONSE = "reloadMessage" | ||
const val OPEN_LINK_REQUEST = "openLink" | ||
const val OPEN_LINK_RESPONSE = "openLink/response" | ||
const val LIST_TOPICS_REQUEST = "listTopics/request" | ||
const val LIST_TOPICS_RESPONSE = "listTopics/response" | ||
const val INSERT_CODE_REQUEST = "insertCode/request" | ||
const val LIST_TOPICS_REQUEST = "getTopics" | ||
const val LIST_TOPICS_RESPONSE = "listTopics" | ||
const val INSERT_CODE_REQUEST = "code_apply" | ||
const val INSERT_CODE_RESPONSE = "insertCode/response" | ||
const val NEW_SRC_FILE_REQUEST = "newSrcFile/request" | ||
const val NEW_SRC_FILE_REQUEST = "code_new_file" | ||
const val NEW_SRC_FILE_RESPONSE = "newSrcFile/response" | ||
const val REPLACE_FILE_CONTENT_REQUEST = "replaceFileContent/request" | ||
const val REPLACE_FILE_CONTENT_REQUEST = "code_file_apply" | ||
const val REPLACE_FILE_CONTENT_RESPONSE = "replaceFileContent/response" | ||
const val VIEW_DIFF_REQUEST = "viewDiff/request" | ||
const val VIEW_DIFF_REQUEST = "show_diff" | ||
const val VIEW_DIFF_RESPONSE = "viewDiff/response" | ||
const val GET_IDE_SERVICE_PORT_REQUEST = "getIDEServicePort/request" | ||
const val GET_IDE_SERVICE_PORT_RESPONSE = "getIDEServicePort/response" | ||
const val GET_SETTING_REQUEST = "getSetting/request" | ||
const val GET_SETTING_RESPONSE = "getSetting/response" | ||
const val UPDATE_SETTING_REQUEST = "updateSetting/request" | ||
const val UPDATE_SETTING_RESPONSE = "updateSetting/response" | ||
const val GET_SERVER_SETTINGS_REQUEST = "getServerSettings/request" | ||
const val GET_SERVER_SETTINGS_RESPONSE = "getServerSettings/response" | ||
const val UPDATE_SERVER_SETTINGS_REQUEST = "updateServerSettings/request" | ||
const val GET_IDE_SERVICE_PORT_REQUEST = "getIDEServicePort" | ||
const val GET_IDE_SERVICE_PORT_RESPONSE = "getIDEServicePort" | ||
const val GET_SETTING_REQUEST = "readConfig" | ||
const val GET_SETTING_RESPONSE = "readConfig" | ||
const val UPDATE_SETTING_REQUEST = "writeConfig" | ||
const val UPDATE_SETTING_RESPONSE = "updateSetting" | ||
const val GET_SERVER_SETTINGS_REQUEST = "readServerConfigBase" | ||
const val GET_SERVER_SETTINGS_RESPONSE = "readServerConfigBase" | ||
const val UPDATE_SERVER_SETTINGS_REQUEST = "writeServerConfigBase" | ||
const val UPDATE_SERVER_SETTINGS_RESPONSE = "updateServerSettings/response" | ||
const val INPUT_REQUEST = "input/request" | ||
const val INPUT_REQUEST = "userInput" | ||
const val INPUT_RESPONSE = "input/response" | ||
const val STOP_GENERATION_REQUEST = "stopGeneration/request" | ||
const val STOP_GENERATION_REQUEST = "stopDevChat" | ||
const val STOP_GENERATION_RESPONSE = "stopGeneration/request" | ||
const val DELETE_LAST_CONVERSATION_REQUEST = "deleteLastConversation/request" | ||
const val DELETE_LAST_CONVERSATION_RESPONSE = "deleteLastConversation/response" | ||
const val DELETE_TOPIC_REQUEST = "deleteTopic/request" | ||
const val DELETE_LAST_CONVERSATION_REQUEST = "deleteChatMessage" | ||
const val DELETE_LAST_CONVERSATION_RESPONSE = "deletedChatMessage" | ||
const val DELETE_TOPIC_REQUEST = "deleteTopic" | ||
const val DELETE_TOPIC_RESPONSE = "deleteTopic/response" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.