184 Commits

Author SHA1 Message Date
bobo.yang
5aefba5941 chore: Optimize code completion and logging
- Refactor code completion event logging
- Add manual trigger flag to log events
- Implement message logging for code completion
- Update public workflow installation process
2024-11-26 09:42:35 +08:00
Rankin Zheng
cb11ec567e Merge branch 'main' into auto_custom_workflow 2024-09-02 15:49:27 +08:00
Rankin Zheng
60cc1e376e workflow(update): refresh workflow commands on registration
Update the workflow command list automatically when new workflows are registered
or modified. This ensures the command list displayed to the user is always current
and accurate, eliminating the need for manual refreshes.
2024-08-28 06:50:35 +08:00
Luo Tim
cc35fd3380 Replace assistant names in source 2024-08-27 16:44:49 +08:00
Rankin Zheng
adedbec510 feat(workflow): update custom workflows asynchronously
Modify the workflow update mechanism to include asynchronous updates for custom workflows
in addition to the standard workflows. This ensures that both default and custom workflows
are updated efficiently, improving the overall functionality and user experience within the
DevChat environment.

BREAKING CHANGE: Custom workflow updates now occur asynchronously alongside standard
workflow updates. This may affect downstream systems that rely on synchronous workflow
updates. Systems should now handle the asynchronous nature of custom workflow updates.
2024-08-26 18:31:03 +08:00
bobo.yang
964a545393 feat: Add local service port check for workflow commands
- Introduce conditional check for DC_LOCALSERVICE_PORT
- Call getWorkflowCommandList if local service port is set
- Enhance handleRegCommandList function with new logic
2024-07-18 07:30:30 +08:00
bobo.yang
99f7a1d4da feat: Implement local service management
- Add local service start/stop functionality
- Integrate local service port discovery and setup
- Update DevChatClient to use dynamic port from environment
2024-07-16 07:55:02 +08:00
kagami
0910fbf1ec Remove unnecessary fileds in log related response 2024-07-11 10:38:06 +08:00
kagami
feb34588ab Use the inner get/post method 2024-07-11 10:38:06 +08:00
kagami
6eb7f1f408 Get workflows info via client 2024-07-11 10:38:06 +08:00
kagami
b9df28d20d Get and delete topics via client 2024-07-11 10:38:05 +08:00
kagami
bebe32fa18 Get logs of a topic via client 2024-07-11 10:38:05 +08:00
kagami
84ef68c500 Delete log via client 2024-07-11 10:38:05 +08:00
kagami
2be88bd9ad Use devchat client & cli for chatting and workflow respectively 2024-07-11 10:38:05 +08:00
bobo.yang
71778df267 feat: Add code editing and diff display functionality
- Implement applyDiffToCode function for code editing
- Add getCodeEditorPath to locate platform-specific binaries
- Integrate new functionality with existing diff display system
2024-07-04 21:48:01 +08:00
bobo.yang
9681738eca refactor: Remove chat messages cache
- Removed messageHistory utility and related functions
- Updated loadTopicHistoryFromCurrentMessageHistory to fetch logs directly
- Removed addMessageToHistory and message deletion from messageHistory
2024-06-18 20:33:55 +08:00
bobo.yang
a8e125afab Refactor messageHandler.ts and workflowContextHandler.ts 2024-06-17 21:33:30 +08:00
bobo.yang
c937e67c70 Refactor historyMessagesBase.ts and handlerRegister.ts 2024-06-17 21:33:30 +08:00
bobo.yang
2bdf9d01eb feat: Add getCurrentFileInfo and getIDEServicePort handlers
- Added getCurrentFileInfo handler to retrieve the absolute path of the current file
- Added getIDEServicePort handler to retrieve the IDE service port
- Updated fileHandler.ts and handlerRegister.ts to include the new handlers
- Created getCurrentFileInfo.ts in ide_services/endpoints to implement the getCurrentFileInfo handler
- Updated services.ts in ide_services to include the getCurrentFileInfo handler
2024-06-16 22:06:27 +08:00
bobo.yang
cce0020696 Refactor configHandler.ts to read and write YAML configuration files 2024-06-14 13:24:07 +08:00
bobo.yang
87178d1e5e chore: Update logger.trace calls to improve code readability 2024-05-18 15:12:32 +08:00
bobo.yang
60d2c5b808 Update submodules and workflow commands 2024-05-13 21:43:06 +08:00
Rankin Zheng
a6e6400ca5 Update gui version 2024-04-28 22:34:35 +08:00
bobo.yang
2b505b5536 Refactor DevChatConfig instantiation to use getInstance() method 2024-04-17 00:07:09 +08:00
Rankin Zheng
8c188c6a03 refactor: Simplify message handling in MessageHandler
- Extract message response logic into a new method shouldSendResponse
- Remove redundant try/catch blocks for parsing message text
- Improve readability and maintainability of the handleMessage method
2024-04-15 22:50:51 +08:00
Rankin Zheng
48b180ab67 refactor: Enhance file creation stability in handler
- Wrap file creation logic in try-catch for error handling
- Ensure smooth file creation and opening in editor
- Display error message on file creation or opening failure
2024-04-15 22:50:51 +08:00
Rankin Zheng
e087bc9586 feat: Enhance file creation in codeBlockHandler
- Add detailed JSDoc comments for createAndOpenFile function
- Refactor createAndOpenFile to streamline document creation and opening
- Improve readability by adding in-line comments for clarity
2024-04-15 22:50:51 +08:00
Rankin Zheng
6679c355ae feat: Add function to open code in new file
- Implemented createAndOpenFile to open a document with the provided content
- Registered createAndOpenFile handler for 'code_new_file' messages
- Enhanced codeBlockHandler and handlerRegister with new functionality
2024-04-15 22:50:15 +08:00
Rankin Zheng
5cc1a551c2 feat: Enhance file creation from code blocks
- Add validation for message content in createAndOpenFile
- Ensure newly opened files are not in preview mode
- Display error message for invalid message formats
2024-04-13 16:42:54 +08:00
Rankin Zheng
c17865f1cf refactor: Simplify message handling in MessageHandler
- Extract message response logic into a new method shouldSendResponse
- Remove redundant try/catch blocks for parsing message text
- Improve readability and maintainability of the handleMessage method
2024-04-13 15:22:45 +08:00
Rankin Zheng
49f213d5ab refactor: Enhance file creation stability in handler
- Wrap file creation logic in try-catch for error handling
- Ensure smooth file creation and opening in editor
- Display error message on file creation or opening failure
2024-04-13 14:41:31 +08:00
Rankin Zheng
0a68e974e2 feat: Enhance file creation in codeBlockHandler
- Add detailed JSDoc comments for createAndOpenFile function
- Refactor createAndOpenFile to streamline document creation and opening
- Improve readability by adding in-line comments for clarity
2024-04-13 08:24:15 +08:00
Rankin Zheng
fae242d247 feat: Add function to open code in new file
- Implemented createAndOpenFile to open a document with the provided content
- Registered createAndOpenFile handler for 'code_new_file' messages
- Enhanced codeBlockHandler and handlerRegister with new functionality
2024-04-12 23:28:02 +08:00
bobo.yang
5f113d10a1 code completion for vscode 0.1 2024-04-08 22:10:56 +08:00
bobo.yang
e007feabe5 Add recommend property to Command interface 2024-04-01 17:18:24 +08:00
bobo.yang
caa386904c Refactor configHandler.ts to handle empty and wildcard keys 2024-04-01 17:15:44 +08:00
bobo.yang
40d0fa502b feat: Enhance config management in VSCode plugin
- Refactor to use a single instance of DevChatConfig for efficiency
- Update regInMessage and regOutMessage functions for better flexibility
- Implement new getters and setters in DevChatConfig to handle complex keys
2024-04-01 17:15:44 +08:00
bobo.yang
c52c4339e0 save work 2024-04-01 17:15:44 +08:00
bobo.yang
0a74fd6dd5 fix: Prevent duplicate chat command execution
- Added a check to prevent sending a new command if one is already in progress
- Utilized UiUtilWrapper to display an error message when a second command is attempted
- Ensured that the check is reset after the command execution completes
2024-03-15 11:47:02 +08:00
bobo.yang
33a4ee14f1 refactor: Remove usage of deprecated contexts and APIs
- Comment out refDefsContext and defRefsContext usage in loadContexts
- Replace accessKey logic with defaultModel in several files
- Remove unused functions related to API key handling

Closes #286
2024-03-10 16:35:10 +08:00
bobo.yang
70ea72fabe refactor: Optimize file content retrieval
- Removed redundant getFileContent function from diffHandler
- Centralized getFileContent into commonUtil for shared usage
- Adjusted imports in devchat to reflect the new location
2024-03-10 16:34:07 +08:00
bobo.yang
d87b7c5801 feat: Implement shortcut for DevChat input focus
- Added keybindings for DevChat input focus shortcut
- Implemented focusHandler to focus on DevChat input upon shortcut
2024-02-07 17:37:02 +08:00
bobo.yang
dd01e78da4 refactor: Remove legacy TopicView components
- Deleted obsolete TopicManager & TopicTreeDataProvider classes
- Cleaned up Topic related logic across several modules
- Replaced TopicManager usage with new methods after webview migration
2024-02-05 16:29:00 +08:00
bobo.yang
eb9fcdede9 filter topics which are deleted. 2024-02-05 11:19:01 +08:00
bobo.yang
9174110805 use TopicEntry as getTopics result 2024-02-05 11:19:01 +08:00
bobo.yang
2beb8e34da feat: Add topic management and update message history retrieval
- Implement new topicHandler with getTopics and deleteTopic functions
- Refactor historyMessagesHandler to accept topicId for message retrieval
- Adjust historyMessagesBase function signature to take topicId as an argument
2024-02-05 11:19:01 +08:00
bobo.yang
81c0e8be73 refactor: Simplify topic interaction in UI
- Remove topic-related views, commands, and handlers from the codebase
- Refactor code to align with the new unified topic interaction method
- Streamline UI by eliminating unnecessary elements and consolidating views
2024-02-05 11:19:01 +08:00
bobo.yang
7f8694ff26 feat: Add path property to command struct
- Include 'path' field in Command interface for directory awareness
- Add 'path' to command object creation for devchat run listing
- Update CommandEntry interface in devchat tool wrapper to hold 'path'
2024-02-03 16:12:37 +08:00
bobo.yang
165fafa7ba Fix contextInfo handling in sendMessage.ts 2024-01-30 17:51:02 +08:00
Rankin Zheng
94c45654b9 Commented out apiKeyInvalidMessage() function call in historyMessagesBase.ts 2024-01-25 16:07:36 +08:00