devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
351 stars 42 forks source link

Implement command recommendations with directory awareness on welcome page #236

Closed yangbobo2021 closed 9 months ago

yangbobo2021 commented 9 months ago

Feature Request

Description: In order to display recommended commands on the welcome page, the system needs to be aware of the commands' directory information. It is expected that commands from the 'org' and 'sys' directories are recommended. If a user inputs a command that lacks the necessary description information, the system should return the contents of the README.md file found within the command's directory. If the README.md file is absent or the input is incorrect, an error description should be presented to the user.

Expected Behavior:

  1. The welcome page should be able to recommend commands from the specified 'org' and 'sys' directories.
  2. On receiving a command input without a description, the system should check for a README.md in the relevant command directory and return its contents.
  3. If no README.md is found or if the command input is incorrect, the system should provide an error message to the user detailing the mistake.

Additional context:

Please let me know if more information is needed or if there are any questions regarding this feature request.