Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin definer #92

Closed
wants to merge 8 commits into from

Commits on Sep 9, 2024

  1. Merge pull request #2 from warpy-ai/refactor_credentials_encription

    Refactor credentials encription
    jucasoliveira authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    1d7ced7 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. feat(commands): refactor clear, exit, file, fileTree, web commands to…

    … use Plugin interface for better organization and extensibility
    
    feat(commands): add Plugin interface with name, keyword, description, execute properties
    feat(commands): refactor clear command to use Plugin interface and improve code structure
    feat(commands): refactor exit command to use Plugin interface and enhance code readability
    feat(commands): refactor file command to use Plugin interface and improve modularity
    feat(commands): refactor fileTree command to use Plugin interface for consistency
    feat(commands): refactor index file to load plugins dynamically for better scalability
    feat(commands): refactor web command to use Plugin interface and enhance code structure
    feat(context): remove debug logs from context functions for cleaner code
    feat(engine): add hasContext property to AiEngineConfig for context handling
    feat(engine): update Engine class to handle hasContext property in engine options
    feat(engine): update generateResponse function to include hasContext parameter for context-aware responses
    
    refactor(anthropic.ts): add optional parameter 'hasContext' with default value
    false to control adding context based on the flag
    refactor(webHandler.ts): update console log message for clarity
    refactor(index.ts): add new function 'determinePlugins' to handle plugin
    determination logic, refactor plugin execution flow to use the new function
    and improve error handling
    refactor(utils.ts): add new function 'promptCerebro' to handle prompt
    response for Cerebro engine, improve error handling in 'promptResponse'
    jucasoliveira committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    c6833cc View commit details
    Browse the repository at this point in the history
  2. add unuit test

    jucasoliveira committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    d594dc9 View commit details
    Browse the repository at this point in the history
  3. add changes

    jucasoliveira committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    ec9d6b7 View commit details
    Browse the repository at this point in the history
  4. chore(commands): add eslint-disable comments for specific rules in in…

    …dex.ts
    
    feat(commands): implement loading and handling of plugins in index.ts to enhance modularity and extensibility
    feat(commands): add list.ts and scrapper.ts plugins to provide listing and web scraping functionalities
    feat(engine): refactor Engine class into a function to create AI engine instances based on engine type
    feat(engine): add support for different AI engine types in Engine function to improve flexibility
    feat(engine): update generateResponse function to use Engine function for creating AI engine instances
    feat(engine): add eslint-disable comment for specific rule in anthropic.ts
    feat(handlers): update handleWebResearch function to return webContext for better error handling
    feat(index): refactor determinePlugins function into determinePlugins module for better organization
    feat(index): update chat command in index.ts to use determinePlugins module for plugin determination
    
    docs(intro.ts): update introduction message and usage instructions for TerminalGPT
    feat(intro.ts): enhance TerminalGPT with plugin support for extended functionality
    feat(rag/index.ts): add function to determine applicable plugins based on user input
    refactor(utils.ts): remove unused import of clipboard package
    jucasoliveira committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    7a49012 View commit details
    Browse the repository at this point in the history
  5. refactor(intro.ts): change intro function to be asynchronous to suppo…

    …rt async operations
    
    feat(intro.ts): update ASCII art in intro function for better visual presentation
    feat(rag/index.ts): add functionality to store and retrieve conversation context in determinePlugins function
    jucasoliveira committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    9a81231 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. feat(Engine.ts): Add support for 'hasContext' parameter in engine fun…

    …ctions to handle context in different engine types
    
    feat(anthropic.ts): Remove unnecessary console.log statement
    feat(gemini.ts): Update GeminiEngine to handle context based on 'hasContext' parameter
    feat(ollama.ts): Update OllamaEngine to handle context based on 'hasContext' parameter and 'baseURL' parameter
    feat(openAi.ts): Update OpenAIEngine to handle context based on 'hasContext' parameter
    jucasoliveira committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    1ed4eb7 View commit details
    Browse the repository at this point in the history
  2. feat(package.json): add execa package to dependencies for executing c…

    …ommands
    
    feat(package.json): add @types/execa to devDependencies for type definitions
    feat(commands): add new 'update' command to update the package
    refactor(index.ts): call checkIsLatestVersion function before apiKeyPrompt
    refactor(utils.ts): add checkIsLatestVersion function to compare package version
    feat(version.ts): add getTerminalGPTLatestVersion function to fetch latest version
    refactor(utils.ts): import currentPackage from package.json for version comparison
    refactor(tsconfig.json): set resolveJsonModule to true for JSON module resolution
    jucasoliveira committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    59c0a60 View commit details
    Browse the repository at this point in the history