444 Commits

Author SHA1 Message Date
bobo.yang
d349ea42a5 Improve statusBarView tooltip and command handling
- Update tooltip text to 'DevChat is checking ..., please wait'.
- Set command property to undefined to avoid "command '' not found" error.
2023-06-13 08:23:46 +08:00
bobo.yang
22a5705c59 Add terminal disposal before running new command
- Import logger in uiUtil_vscode.ts.
- Iterate through existing terminals and dispose the one with the same name.
- Create a new terminal and run the command.
2023-06-13 08:21:29 +08:00
boob.yang
427f27c97a
Merge pull request #179 from covespace/log_devchat_fail_reason
Log devchat fail reason
2023-06-12 08:44:33 +08:00
bobo.yang
2503da5a09 Update DevChat installation command
- Replace 'python' with 'python3' in DevChat Install command.
2023-06-12 08:42:30 +08:00
bobo.yang
13f161506f Improve DevChat dependency check and error handling
- Add logger import to commandsBase.ts.
- Replace plain error handling with logger in checkDevChatDependency.
- Refactor getPipxEnvironmentPath and updateEnvironmentPath functions.
2023-06-12 08:39:02 +08:00
boob.yang
857f73a4d9
Merge pull request #177 from covespace/fix_statusbar_error
Fix versionChanged assignment in statusBarViewBase.ts
2023-06-09 12:43:23 +08:00
bobo.yang
dde0ff2e44 Fix versionChanged assignment in statusBarViewBase.ts
- Corrected the assignment of versionChanged variable.
- Removed unnecessary const declaration.
2023-06-09 12:39:31 +08:00
boob.yang
2861f59a74
Merge pull request #176 from covespace/fix_stop_status_error
let userStop to false before sendMessage
2023-06-09 12:10:36 +08:00
bobo.yang
01c2fc545b let userStop to false before sendMessage 2023-06-09 12:09:18 +08:00
Rankin Zheng
4cbc6ca526
Merge pull request #175 from covespace/fix-stop-gerneration
Move stopDevChat message sending to StopButton onClick
2023-06-09 12:03:11 +08:00
Rankin Zheng
8d271361ef Move stopDevChat message sending to StopButton onClick
- Removed messageUtil.sendMessage from chatSlice stopGenerating action.
- Added messageUtil.sendMessage to StopButton onClick event in ChatPanel index.tsx.
2023-06-09 12:01:56 +08:00
Rankin Zheng
c16d7e1404
Merge pull request #174 from covespace/fix-hello-load-error
Fix hello load error
2023-06-09 11:21:25 +08:00
boob.yang
ec29c43875
Merge pull request #173 from covespace/reedit_context_command
Reedit context command
2023-06-09 11:17:47 +08:00
Rankin Zheng
09ab19289f Add keys to Accordion.Item components in ChatPanel
- Assign unique keys to Accordion.Item components in InputMessage.tsx.
- Update MessageContainer.tsx to include keys for Accordion.Item components.
2023-06-09 11:16:20 +08:00
bobo.yang
adec218709 Update instructions in code and commit_message workflows
- Clarify response guidelines in code/instruct.txt.
- Add more details to commit_message/instruct.txt.
- Emphasize the importance of diff output in <context>.
2023-06-09 11:16:12 +08:00
Rankin Zheng
c60860559e Add keys to mapped elements in ChatPanel components
- Add unique keys to mapped elements in InputMessage.tsx.
- Refactor MessageContainer.tsx to use keys for mapped elements.
- Remove unused IDs from ChatPanel/index.tsx.
2023-06-09 11:10:23 +08:00
Rankin Zheng
056f6dafaa fix svg DOM property invliad 2023-06-09 11:09:57 +08:00
Rankin Zheng
dd6146f5d2 Fix context mapping in ChatPanel
- Add optional chaining to context mapping in loadHistoryMessages handler.
- Prevent potential errors when context is undefined or null.
2023-06-09 10:47:23 +08:00
bobo.yang
ad9ec2291c Fix tree command in tree context _setting_.json
- Update tree command to properly exclude __pycache__ and .pytest_cache directories.
2023-06-09 10:46:44 +08:00
bobo.yang
f510d1de62 Explicitly define array types in sendMessageBase.ts
- Change contextPaths, instructionPaths, and referencePaths to explicitly define string[] type.
2023-06-09 10:45:17 +08:00
Rankin Zheng
4b5279c1c8 Introduce custom hooks for Redux store
- Create hooks.ts file to define useAppDispatch and useAppSelector hooks.
- Replace useDispatch and useSelector with custom hooks in InputMessage.tsx and MessageContainer.tsx.
- Update RootState and AppDispatch types in store.ts.
2023-06-09 09:26:37 +08:00
bobo.yang
d998dbd71d Add edit functionality to custom contexts
- Add edit property to CustomContext interface.
- Implement edit functionality in CustomContexts class.
- Update _setting_.json files for git_log_for_releasenote and tree contexts.
2023-06-09 08:56:42 +08:00
Jinglei Ren
3d4ea2be70
Update README.md 2023-06-09 00:00:47 +08:00
Rankin Zheng
f770aa94dc
Merge pull request #172 from covespace/129-implement-state-management-for-react-component-using-mobx-or-react-context
129 implement state management for react component using mobx or react context
2023-06-08 23:21:08 +08:00
Rankin Zheng
76e1f945a3 Add text truncation to InputMessage and MessageContainer
- Replace plain text with Text component and truncate='end' in InputMessage.tsx.
- Update MessageContainer.tsx to use Text component with truncate='end' for context display.
2023-06-08 23:18:59 +08:00
Rankin Zheng
a58d5580b6 Refactor InputMessage and inputSlice for menu handling
- Replace local state with Redux actions for menu management in InputMessage.tsx.
- Add openMenu, closeMenu, and setCurrentMenuIndex actions to inputSlice.ts.
- Update useSelector and useDispatch for menu-related states in InputMessage.tsx.
2023-06-08 20:53:38 +08:00
Rankin Zheng
7ebf8014be Refactor InputMessage and MessageContainer to use Redux
- Replace contextsHandlers with Redux actions in InputMessage.tsx.
- Update InputContexts to use useSelector and useDispatch.
- Remove onRefillClick prop and use Redux actions in MessageContainer.tsx.
- Update inputSlice with new actions for context management.
2023-06-08 20:40:05 +08:00
Rankin Zheng
3fc3c21abb Update InputMessage and chatSlice for message handling
- Import selectGenerating, newMessage, and startGenerating in InputMessage.tsx.
- Remove onSendClick prop and use Redux actions instead.
- Add messageUtil calls to chatSlice for sendMessage, regeneration, and stopDevChat.
2023-06-08 20:11:00 +08:00
Rankin Zheng
1771e87028 Refactor ChatPanel to use Redux for message handling
- Replace messageHandlers with Redux actions and selectors.
- Add newMessage, updateMessage, shiftMessage, and popMessage actions to chatSlice.
- Update MessageContainer to use useSelector for messages.
2023-06-08 19:54:21 +08:00
Rankin Zheng
6a0744515b Refactor MessageContainer to use Redux selectors
- Replace generating and responsed props with useSelector.
- Import selectGenerating and selectResponsed from chatSlice.
- Update MessageBlink component to use Redux selectors.
2023-06-08 19:28:15 +08:00
Rankin Zheng
b8e53f60c7 Implement chatSlice and refactor ChatPanel
- Create chatSlice with generating, responsed, currentMessage, and errorMessage states.
- Refactor ChatPanel to use Redux selectors and actions from chatSlice.
- Update store.ts to include chatReducer.
2023-06-08 19:27:51 +08:00
Rankin Zheng
cbfb4ed744 Remove console.log from inputSlice
- Remove unnecessary console.log statement from setValue reducer in inputSlice.ts.
2023-06-08 18:29:39 +08:00
Rankin Zheng
042fa274e4 Update dependencies and integrate Redux 2023-06-08 17:33:44 +08:00
Rankin Zheng
51a2e66053 Update dependencies and integrate Redux
- Update react-redux to ^8.0.7.
- Add remote-redux-devtools ^0.5.16 and @reduxjs/toolkit ^1.9.5.
- Implement Redux store and inputSlice for managing input state.
- Refactor InputMessage and ChatPanel components to use Redux.
2023-06-08 17:32:57 +08:00
Rankin Zheng
62a7542690 Remove unused imports from App.tsx
- Remove useState, Navbar, Header, Footer, Aside, Text, MediaQuery, and Burger imports.
2023-06-08 10:55:19 +08:00
Rankin Zheng
b1b707b512 Uncomment onScrollPositionChange in ChatPanel
- Re-enable onScrollPositionChange event handler in ChatPanel.
2023-06-08 10:47:24 +08:00
boob.yang
1b9ddfc03f
Merge pull request #170 from covespace/update_topicid
Refactor topicManager.ts to use firstMessageHash
2023-06-08 09:07:34 +08:00
bobo.yang
4d483a2096 Refactor topicManager.ts to use firstMessageHash
- Added condition to check for currentTopicId.
- Updated currentTopicId to use firstMessageHash.
2023-06-08 09:06:53 +08:00
boob.yang
d1921a34a7
Merge pull request #169 from covespace/fix_topic_history_error
Update historyMessagesBase.ts to use firstMessageHash
2023-06-07 22:00:12 +08:00
bobo.yang
3b35a8e03c Update historyMessagesBase.ts to use firstMessageHash
- Added check for topic existence and firstMessageHash.
- Replaced topicId with topic.firstMessageHash in logOptions.
2023-06-07 21:58:33 +08:00
boob.yang
de85a82849
Merge pull request #168 from covespace/add_tags
Add tags
2023-06-07 08:18:14 +08:00
bobo.yang
59ba922472 add git log context fore relase note command 2023-06-07 08:16:22 +08:00
bobo.yang
71a3125999 add release_note command 2023-06-07 07:34:31 +08:00
bobo.yang
5abfb12e19 Update package.json with new version and keywords
- Bump version from 0.0.49 to 0.1.8.
- Add categories: Programming Languages, Snippets, Machine Learning, Education.
- Add multiple keywords related to AI, programming languages, and features.
2023-06-07 07:23:19 +08:00
boob.yang
69837e88a5
Merge pull request #167 from covespace/refactor_topic_method
Refactor topic method
2023-06-06 21:17:33 +08:00
boob.yang
dd2b79d07a
Merge pull request #166 from covespace/fix_click_option_error
Add double dash to DevChat arguments
2023-06-06 21:13:45 +08:00
bobo.yang
2afe176895 Add double dash to DevChat arguments
- Update devchat.ts to include a double dash in the chat() method.
- Ensure proper separation of options and content in the chat() method.
2023-06-06 21:11:15 +08:00
boob.yang
34ae3923f9
Merge pull request #165 from covespace/update_devchat_proxy_url
update url for DevChat proxy
2023-06-06 18:47:55 +08:00
bobo.yang
b5b9574ba7 update url for DevChat proxy 2023-06-06 18:47:22 +08:00
Rankin Zheng
a8af5e09bb
Merge pull request #164 from covespace/113-refill-the-input-with-a-previous-prompt
113 refill the input with a previous prompt
2023-06-06 18:13:54 +08:00