Skip to content

Restructure#521

Merged
MervinPraison merged 5 commits intomainfrom
develop
May 27, 2025
Merged

Restructure#521
MervinPraison merged 5 commits intomainfrom
develop

Conversation

@MervinPraison
Copy link
Copy Markdown
Owner

@MervinPraison MervinPraison commented May 27, 2025

Summary by CodeRabbit

  • Chores

    • Updated workflow configuration for publishing Python packages.
    • Added .qodo to the list of ignored files in version control.
    • Adjusted workflow steps to run commands within the correct source directory.
  • Removals

    • Deleted configuration and translation files for the user interface, including all localization files (Bengali, English, Gujarati, Hebrew, Hindi, Kannada, Malayalam, Marathi, Tamil, Telugu, and Chinese) and a UI configuration file. This removes multilingual UI support and custom UI settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented May 27, 2025

Warning

Rate limit exceeded

@MervinPraison has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 2 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 7bff809 and e597c4a.

📒 Files selected for processing (9)
  • .github/workflows/python-package.yml (1 hunks)
  • .github/workflows/test-comprehensive.yml (1 hunks)
  • .github/workflows/test-core.yml (2 hunks)
  • .github/workflows/test-extended.yml (2 hunks)
  • .github/workflows/test-frameworks.yml (1 hunks)
  • .github/workflows/test-real.yml (1 hunks)
  • .github/workflows/unittest.yml (1 hunks)
  • src/praisonai/README.md (1 hunks)
  • src/praisonai/praisonai/README.md (1 hunks)
## Walkthrough

This update removes multiple UI configuration and translation files for various languages, including Bengali, English, Gujarati, Hebrew, Hindi, Kannada, Malayalam, Marathi, Tamil, Telugu, and Chinese. Additionally, it deletes a Chainlit UI configuration file and updates the GitHub Actions workflows to specify build, publish, and working directories. The `.gitignore` is updated to exclude `.qodo` files.

## Changes

| File(s)                                                                                  | Change Summary                                                                                  |
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
| .github/workflows/python-publish.yml                                                     | Updated build and publish steps to use explicit source and distribution directories.            |
| .github/workflows/python-package.yml<br>.github/workflows/test-comprehensive.yml<br>.github/workflows/test-core.yml<br>.github/workflows/test-frameworks.yml<br>.github/workflows/test-real.yml<br>.github/workflows/unittest.yml | Modified install dependencies steps to change working directory to `src/praisonai`; removed `PYTHONPATH` modifications; updated coverage target in test-core.yml. |
| .gitignore                                                                               | Added `.qodo` to ignored files.                                                                 |
| praisonai/ui/config/.chainlit/config.toml                                                | Deleted Chainlit UI configuration file.                                                         |
| praisonai/ui/config/translations/bn.json<br>praisonai/ui/config/translations/en-US.json<br>praisonai/ui/config/translations/gu.json<br>praisonai/ui/config/translations/he-IL.json<br>praisonai/ui/config/translations/hi.json<br>praisonai/ui/config/translations/kn.json<br>praisonai/ui/config/translations/ml.json<br>praisonai/ui/config/translations/mr.json<br>praisonai/ui/config/translations/ta.json<br>praisonai/ui/config/translations/te.json<br>praisonai/ui/config/translations/zh-CN.json | Deleted all translation JSON files for Bengali, English, Gujarati, Hebrew, Hindi, Kannada, Malayalam, Marathi, Tamil, Telugu, and Chinese. |

## Poem

> A hop and a skip, the files disappear,  
> Translations and configs, now out of here!  
> The build path is set, workflows aligned,  
> `.qodo` ignored—no files left behind.  
> With a twitch of my nose and a wiggle of ear,  
> The code feels lighter, the repo more clear!  
> 🐇✨

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@netlify
Copy link
Copy Markdown

netlify bot commented May 27, 2025

Deploy Preview for praisonai canceled.

Name Link
🔨 Latest commit e597c4a
🔍 Latest deploy log https://app.netlify.com/projects/praisonai/deploys/6835565d649c7200075922a8

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @MervinPraison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Gemini here, providing a summary for this pull request titled "Restructure". Based on the changes, it appears this PR involves a significant restructuring of the project, primarily focused on removing components related to the Chainlit framework and its associated UI elements and localization. Configuration files, numerous localization JSON files, and some SVG assets have been removed.

Highlights

  • Removal of Chainlit Configuration: The chainlit.toml configuration file has been completely removed, indicating the likely removal or replacement of the Chainlit framework.
  • Deletion of Localization Files: Multiple JSON files containing localization strings for various languages (bn, en, gu, he, hi, kn, ml, mr, ta, te) have been deleted, suggesting the removal of the localized UI components.
  • Removal of UI Assets: Several SVG icon files (praison_logo.svg, praison_logo_dark.svg) have been removed, which were likely associated with the removed UI.
  • Git Ignore Update: The .gitignore file has been updated to include .qodo, suggesting a new local directory or tool is being introduced as part of the restructuring.

Changelog

Click here to see the changelog
  • .gitignore
    • Added .qodo to the ignore list (line 75).
  • chainlit.toml
    • File deleted.
  • i18n/locales/bn/translation.json
    • File deleted.
  • i18n/locales/en/translation.json
    • File deleted.
  • i18n/locales/gu/translation.json
    • File deleted.
  • i18n/locales/he/translation.json
    • File deleted.
  • i18n/locales/hi/translation.json
    • File deleted.
  • i18n/locales/kn/translation.json
    • File deleted.
  • i18n/locales/ml/translation.json
    • File deleted.
  • i18n/locales/mr/translation.json
    • File deleted.
  • i18n/locales/ta/translation.json
    • File deleted.
  • i18n/locales/te/translation.json
    • File deleted.
  • praisonai/ui/public/praison_logo.svg
    • File deleted.
  • praisonai/ui/public/praison_logo_dark.svg
    • File deleted.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Old config files fade,
New structure takes its place,
Code evolves and grows.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request, titled "Restructure", involves significant changes, primarily the deletion of numerous files, including the Chainlit configuration file (chainlit.toml), all localization files, and several UI assets. There is also a minor addition to the .gitignore file.

The most critical issue with this PR is the complete lack of a description. For a restructuring effort of this magnitude, a detailed explanation of the changes, their rationale, and their impact is essential for a proper review and for future maintainability. Without this, it's very difficult to understand the intent and to verify that functionality hasn't been unintentionally lost or broken.

My review focuses on the implications of these deletions. While some configurations previously in chainlit.toml might now be handled in Python code (e.g., within chainlit_ui.py), this needs to be confirmed. The removal of all localization files is a major concern if internationalization was an active feature, as it would represent a significant feature regression. Similarly, the deletion of UI assets without clear replacements or explanations is also a point of concern.

Summary of Findings

  • Lack of Pull Request Description: The PR is titled "Restructure" but lacks any description. For a change of this scale, involving the deletion of many configuration, localization, and asset files, a detailed description is crucial for reviewers to understand the intent, impact, and to verify the changes. This is a critical process issue.
  • Configuration Management Unclear: The chainlit.toml file, which managed many application settings, has been deleted. It's unclear how these configurations (e.g., custom CSS, security settings, feature flags) are now handled. This could impact application behavior, security, and maintainability.
  • Removal of Internationalization (i18n) Support: All localization files (translation.json for multiple languages) have been deleted, suggesting i18n support has been removed. This is a significant feature change and needs justification and clarification on how multilingual users will be supported.
  • Removal of UI Assets: Key UI assets like logos and the favicon have been deleted. The impact on branding and UI, and whether these are replaced, is not clear.

Merge Readiness

This pull request is not ready to be merged in its current state.

The primary reason is the critical lack of a pull request description, which makes it impossible to fully understand the scope, rationale, and impact of this significant "Restructure". The deletion of key configuration and localization files raises serious questions about how these aspects are now managed and whether functionality has been unintentionally lost or degraded.

Before this PR can be considered for merging, I strongly recommend the author provide a comprehensive description addressing the following:

  1. The overall goal and strategy behind this restructuring.
  2. How configurations previously in chainlit.toml are now managed (e.g., custom CSS, security settings, feature flags).
  3. The reasoning for removing all localization files and the plan for internationalization support, if any.
  4. The status of the deleted UI assets (logos, favicon) – whether they are replaced or no longer needed.

Addressing the high and medium severity issues raised in the review comments, particularly by providing these clarifications, is essential. As a reviewer, I am unable to approve pull requests; this PR should be thoroughly reviewed and approved by other designated maintainers once the necessary information and any required code changes are in place.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🔭 Outside diff range comments (2)
.github/workflows/test-frameworks.yml (1)

48-52: 🛠️ Refactor suggestion

⚠️ Potential issue

Scope dependency installs with working-directory
Similar to other workflows, the cd src/praisonai here only applies to that shell session. Use working-directory: src/praisonai on the Install dependencies step so that all pip installs target the correct directory.

-    - name: Install dependencies
-      run: |
-        cd src/praisonai
-        uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
-        uv pip install --system duckduckgo_search
-        uv pip install --system pytest pytest-asyncio pytest-cov
+    - name: Install dependencies
+      working-directory: src/praisonai
+      run: |
+        uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
+        uv pip install --system duckduckgo_search
+        uv pip install --system pytest pytest-asyncio pytest-cov
.github/workflows/test-comprehensive.yml (1)

49-53: 🛠️ Refactor suggestion

⚠️ Potential issue

Adopt working-directory for dependency installation
The cd src/praisonai command only affects its own step. Replace it by setting working-directory: src/praisonai directly on the Install dependencies step to consistently install packages in the correct folder.

-    - name: Install dependencies
-      run: |
-        cd src/praisonai
-        uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
-        uv pip install --system duckduckgo_search
-        uv pip install --system pytest pytest-asyncio pytest-cov pytest-benchmark
+    - name: Install dependencies
+      working-directory: src/praisonai
+      run: |
+        uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
+        uv pip install --system duckduckgo_search
+        uv pip install --system pytest pytest-asyncio pytest-cov pytest-benchmark
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 45c0596 and 7bff809.

📒 Files selected for processing (6)
  • .github/workflows/python-package.yml (1 hunks)
  • .github/workflows/test-comprehensive.yml (1 hunks)
  • .github/workflows/test-core.yml (2 hunks)
  • .github/workflows/test-frameworks.yml (1 hunks)
  • .github/workflows/test-real.yml (1 hunks)
  • .github/workflows/unittest.yml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/unittest.yml
🔇 Additional comments (1)
.github/workflows/test-core.yml (1)

45-45: Approve updated coverage target to praisonai
Switching from --cov=praisonaiagents to --cov=praisonai aligns with the new package structure.

Comment on lines +27 to +29
- name: Set working directory
run: |
cd src/praisonai
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Use persistent working-directory instead of a one-off cd step
The standalone cd src/praisonai runs in its own shell and will not affect the following Install dependencies step. To ensure installs happen in src/praisonai, leverage the step-level working-directory property.

-    - name: Set working directory
-      run: |
-        cd src/praisonai
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        python -m pip install flake8 pytest
-        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+    - name: Install dependencies
+      working-directory: src/praisonai
+      run: |
+        python -m pip install --upgrade pip
+        python -m pip install flake8 pytest
+        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Set working directory
run: |
cd src/praisonai
- name: Install dependencies
working-directory: src/praisonai
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
🤖 Prompt for AI Agents
In .github/workflows/python-package.yml at lines 27 to 29, replace the step that
runs `cd src/praisonai` with setting the `working-directory` property on the
relevant steps. Remove the standalone `cd` command and instead add
`working-directory: src/praisonai` to the steps that need to run in that
directory, such as the `Install dependencies` step, to ensure the directory
change persists across steps.

Comment on lines +57 to 60
cd src/praisonai
uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
uv pip install --system pytest pytest-asyncio pytest-cov

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Use step-level working-directory for real-tests dependency installs
Running cd src/praisonai as its own step won’t persist for subsequent commands. Switch to:

- name: Install dependencies
  working-directory: src/praisonai
  run: |
    uv pip install --system ."[…]"
    uv pip install --system pytest pytest-asyncio pytest-cov

This ensures all installs occur in the intended directory.

🤖 Prompt for AI Agents
In .github/workflows/test-real.yml around lines 57 to 60, the current commands
use 'cd src/praisonai' in one step, which does not persist for subsequent
commands. To fix this, remove the separate 'cd' command and instead set the
'working-directory' property at the step level to 'src/praisonai'. Then run both
pip install commands within that step so they execute in the correct directory.

Comment on lines +32 to 35
cd src/praisonai
uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
uv pip install --system duckduckgo_search
uv pip install --system pytest pytest-asyncio pytest-cov
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Scope core dependency installs with working-directory
As with other workflows, the cd src/praisonai here is ephemeral. Use the working-directory field on the Install dependencies step to guarantee the correct context.

-    - name: Install dependencies
-      run: |
-        cd src/praisonai
-        uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
-        uv pip install --system duckduckgo_search
-        uv pip install --system pytest pytest-asyncio pytest-cov
+    - name: Install dependencies
+      working-directory: src/praisonai
+      run: |
+        uv pip install --system ."[ui,gradio,api,agentops,google,openai,anthropic,cohere,chat,code,realtime,call,crewai,autogen]"
+        uv pip install --system duckduckgo_search
+        uv pip install --system pytest pytest-asyncio pytest-cov
🤖 Prompt for AI Agents
In .github/workflows/test-core.yml around lines 32 to 35, replace the use of 'cd
src/praisonai' with the 'working-directory' field in the 'Install dependencies'
step to ensure the commands run in the correct directory context. Remove the
'cd' command and set 'working-directory: src/praisonai' for the step that
installs dependencies, so the installs are scoped properly and consistent with
other workflows.

@MervinPraison MervinPraison merged commit 2f0bfb5 into main May 27, 2025
12 of 15 checks passed
shaneholloman pushed a commit to shaneholloman/praisonai that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant