Hacker-GPT / HackerGPT-2.0

#1 Trusted Ethical Hacking AI. Get help with your hacking journey on web apps, networks, and cloud without needing expert skills.
https://chat.hackerai.co/
GNU General Public License v3.0
576 stars 86 forks source link

Adapting Plugin Logic and Enhance Menu for HackerGPT 2.0 from HackerGPT #8

Closed thehackergpt closed 4 months ago

thehackergpt commented 5 months ago

Background

Our objective is to replicate and adapt the plugins logic found in the original HackerGPT repository ("https://github.com/HackerGPT/HackerGPT") for our new HackerGPT version. This involves integrating the enhance menu that appears as users type, a feature well-received in the current implementation at hackergpt.co. This integration must ensure compatibility with the design and functionality of chatbot-2v, providing a seamless experience where users can access and utilize plugins based on their subscription status (Free or Plus).

Objective

To migrate the existing plugins logic and enhance menu from HackerGPT into the chatbot-2v UI, ensuring that the feature is both stylistically in tune with the new version and functionally identical to the existing system. This includes the implementation of a plugin store popup for installing plugins, pre-installing certain plugins for new users, and allowing users the option to hide the enhance menu as needed.

Actions and Considerations (ACC)

  1. Enhance Menu Integration:

    • [x] Copy the enhance menu logic from the original HackerGPT repository, ensuring it activates as users begin typing. Image
    • [x] Adapt the menu's style to align with the chatbot-2v design, maintaining consistency across the platform.
  2. Plugin Access Control:

    • [x] Implement logic to differentiate plugin access between Free and Plus users, mirroring the functionality on hackergpt.co.
    • [x] Ensure that plugin availability is clearly communicated within the UI, preventing confusion.
  3. Plugin Store and Installation:

    • [x] Develop a plugin store popup that allows users to browse and install plugins either from the enhance menu or the sidebar. Image
    • [x] Pre-install selected plugins for new users, similar to the approach on hackergpt.co. Image
  4. Functionality and Routing:

    • [x] Integrate the plugin functionality with the existing openai route.ts, ensuring plugins trigger correctly upon user interaction.
    • [x] Capture and utilize plugin IDs effectively when messages are sent, ensuring accurate plugin response.
  5. User Interface Adjustments:

    • [x] Allow users the flexibility to hide the enhance menu, preserving user preference and space within the chat interface. Image
  6. Testing and Validation:

    • [x] Conduct thorough testing of the enhance menu and plugin functionality across different user types (Free and Plus).
    • [x] Validate the user experience, ensuring the enhance menu and plugins operate seamlessly and without errors.

Expected Outcomes

thehackergpt commented 4 months ago

I had trouble pre-installing plugins into local storage, so the plugin store will not be visible now. As soon we figure out how to save plugins correctly to local storage and make sure they work with the plugin store, we can complete step 3 (Plugin Store and Installation).

thehackergpt commented 4 months ago

Additional suggestions: