Skip to content

Conversation

@MervinPraison
Copy link
Owner

@MervinPraison MervinPraison commented May 30, 2025

Summary by CodeRabbit

  • New Features

    • Added documentation and example for integrating Playwright browser automation with agents, including setup instructions and usage examples.
  • Bug Fixes

    • Updated the PraisonAI package to version 2.2.22 across all environments and documentation for improved stability.
  • Documentation

    • Added a new guide for Playwright MCP integration.
    • Updated navigation to include the new Playwright documentation.
    • Refreshed installation instructions and version references throughout the documentation.
  • Chores

    • Bumped version numbers for PraisonAI and PraisonAI Agents packages.

…mentation

- Updated the version of PraisonAI from 2.2.21 to 2.2.22 in all relevant Dockerfiles.
- Adjusted README and local development documentation to reflect the new version.
- Ensured consistency in versioning across all instances where PraisonAI is referenced.
@MervinPraison MervinPraison merged commit 7705586 into main May 30, 2025
3 of 11 checks passed
@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 30, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update increments the PraisonAI package version from 2.2.21 to 2.2.22 across all Dockerfiles, deployment scripts, and documentation. It also adds documentation and an example for integrating Playwright MCP with PraisonAI agents. The praisonaiagents package version is incremented, and related documentation navigation is updated.

Changes

Files/Paths Change Summary
docker/Dockerfile, docker/Dockerfile.chat, docker/Dockerfile.dev, docker/Dockerfile.ui Bumped praisonai package version from 2.2.21 to 2.2.22 in pip install commands.
docs/api/praisonai/deploy.html, src/praisonai/praisonai/deploy.py Updated Dockerfile creation logic to install praisonai version 2.2.22 instead of 2.2.21.
docker/README.md, docs/developers/local-development.mdx, docs/ui/chat.mdx, docs/ui/code.mdx Updated documentation to reference praisonai 2.2.22 in Dockerfile and install instructions.
src/praisonai/pyproject.toml Updated PraisonAI project version from 2.2.21 to 2.2.22.
src/praisonai-agents/pyproject.toml Bumped praisonaiagents version from 0.0.92 to 0.0.93.
src/praisonai/praisonai.rb Updated Praisonai formula to version 2.2.22 and adjusted SHA256 checksum logic.
docs/mcp/playwright.mdx Added new documentation for integrating Playwright MCP with PraisonAI agents.
docs/mint.json Added "mcp/playwright" to documentation navigation.
examples/python/mcp/playwright-mcp.py Added example Python script demonstrating Playwright MCP integration with PraisonAI agents.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant PraisonAI Agent
    participant Playwright MCP Server

    User->>PraisonAI Agent: Start agent with web search task
    PraisonAI Agent->>Playwright MCP Server: Connect via MCP endpoint (http://localhost:8931/sse)
    PraisonAI Agent->>Playwright MCP Server: Send browser automation/search commands
    Playwright MCP Server-->>PraisonAI Agent: Return results
    PraisonAI Agent-->>User: Provide search findings
Loading

Possibly related PRs

Suggested labels

Review effort 1/5

Poem

A hop and a skip, a version anew,
PraisonAI leaps to 2.2.22!
With Playwright now joining the spring,
Agents can browse, search, and sing.
🐇✨
The docs are refreshed, examples are bright—
This bunny’s code hops into the night!


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 78e0547 and 56a5d46.

⛔ Files ignored due to path filters (3)
  • src/praisonai-agents/tests/kag-research-paper.pdf is excluded by !**/*.pdf
  • src/praisonai-agents/uv.lock is excluded by !**/*.lock
  • src/praisonai/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (16)
  • docker/Dockerfile (1 hunks)
  • docker/Dockerfile.chat (1 hunks)
  • docker/Dockerfile.dev (1 hunks)
  • docker/Dockerfile.ui (1 hunks)
  • docker/README.md (2 hunks)
  • docs/api/praisonai/deploy.html (1 hunks)
  • docs/developers/local-development.mdx (1 hunks)
  • docs/mcp/playwright.mdx (1 hunks)
  • docs/mint.json (1 hunks)
  • docs/ui/chat.mdx (1 hunks)
  • docs/ui/code.mdx (1 hunks)
  • examples/python/mcp/playwright-mcp.py (1 hunks)
  • src/praisonai-agents/pyproject.toml (1 hunks)
  • src/praisonai/praisonai.rb (1 hunks)
  • src/praisonai/praisonai/deploy.py (1 hunks)
  • src/praisonai/pyproject.toml (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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.

Copy link
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

Hello team, gemini-code-assist here to provide a summary of this pull request. Based on the generic title "Develop" and the empty description, the primary intent appears to be a general update and synchronization of the codebase, specifically focusing on dependency version bumps and the introduction of new documentation and examples related to Playwright integration with the Model Context Protocol (MCP). The changes primarily involve updating the required PraisonAI and praisonaiagents package versions across various configurations and adding new files for Playwright MCP support.

Highlights

  • Dependency Version Updates: The pull request updates the required version of the PraisonAI package from >=2.2.21 to >=2.2.22 and the praisonaiagents package from 0.0.92 to 0.0.93 across multiple Dockerfiles, documentation examples, and project configuration files (pyproject.toml, uv.lock, Homebrew formula).
  • Playwright MCP Integration Documentation and Example: New documentation (docs/mcp/playwright.mdx) and a Python example (examples/python/mcp/playwright-mcp.py) have been added to demonstrate how to use Playwright with the Model Context Protocol (MCP) within the PraisonAI framework, enabling agents to interact with web browsers.

Changelog

Click here to see the changelog
  • docker/Dockerfile
    • Updated PraisonAI dependency version to >=2.2.22.
  • docker/Dockerfile.chat
    • Updated PraisonAI dependency version to >=2.2.22.
  • docker/Dockerfile.dev
    • Updated PraisonAI dependency version to >=2.2.22.
  • docker/Dockerfile.ui
    • Updated PraisonAI dependency version to >=2.2.22.
  • docker/README.md
    • Updated mentioned PraisonAI version in 'Package Versions' section to >=2.2.22.
    • Updated specific version pin example in 'Version Pinning' section to ==2.2.22.
  • docs/api/praisonai/deploy.html
    • Updated hardcoded PraisonAI version in Dockerfile example to ==2.2.22.
  • docs/developers/local-development.mdx
    • Updated hardcoded PraisonAI version in Dockerfile example to ==2.2.22.
  • docs/mcp/playwright.mdx
    • Added new documentation file detailing Playwright MCP setup and usage with PraisonAI.
  • docs/mint.json
    • Added 'mcp/playwright' to the documentation navigation structure.
  • docs/ui/chat.mdx
    • Updated hardcoded PraisonAI version in Dockerfile example to ==2.2.22.
  • docs/ui/code.mdx
    • Updated hardcoded PraisonAI version in Dockerfile example to ==2.2.22.
  • examples/python/mcp/playwright-mcp.py
    • Added a new Python example demonstrating Playwright MCP usage with praisonaiagents.
  • src/praisonai-agents/pyproject.toml
    • Updated praisonaiagents package version to 0.0.93.
  • src/praisonai-agents/uv.lock
    • Updated praisonaiagents version in the lock file to 0.0.93.
  • src/praisonai/praisonai.rb
    • Updated Homebrew formula URL and SHA256 to reference PraisonAI v2.2.22.
  • src/praisonai/praisonai/deploy.py
    • Updated hardcoded PraisonAI version in create_dockerfile function to ==2.2.22.
  • src/praisonai/pyproject.toml
    • Updated PraisonAI package version to 2.2.22 in project metadata and poetry configuration.
  • src/praisonai/uv.lock
    • Updated praisonai version in the lock file to 2.2.22.
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.


Versions tick and climb,
New docs arrive in time,
Agents browse the web,
No longer in their bed,
Code evolves, a steady rhyme.

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.

@netlify
Copy link

netlify bot commented May 30, 2025

Deploy Preview for praisonai ready!

Name Link
🔨 Latest commit 56a5d46
🔍 Latest deploy log https://app.netlify.com/projects/praisonai/deploys/6839e69f1924f40008463386
😎 Deploy Preview https://deploy-preview-558--praisonai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
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 primarily handles version bumps for praisonai (to v2.2.22) and praisonaiagents (to v0.0.93) across various configuration files, Dockerfiles, and documentation. A key addition is the new documentation and example for using Playwright with the Model Context Protocol (MCP), which is a welcome enhancement.

Most changes are straightforward and correctly implemented. However, there's a significant concern regarding the SHA256 checksum calculation in the Homebrew formula, which needs to be addressed.

Summary of Findings

  • Homebrew Formula SHA256 Calculation: A high-severity issue was found in src/praisonai/praisonai.rb where the SHA256 checksum for the Homebrew formula is calculated dynamically using a shell command. This practice compromises the integrity verification purpose of the checksum. It should be replaced with a static, pre-calculated hash.
  • Version Updates and Documentation: The version bumps for praisonai and praisonaiagents are consistently applied across Dockerfiles, package metadata, and documentation examples. The new documentation for Playwright MCP (docs/mcp/playwright.mdx) and its corresponding Python example (examples/python/mcp/playwright-mcp.py) are clear, well-structured, and valuable additions.
  • Other Changes: All other changes, primarily version string updates in various files, appear correct and consistent with the main version bumps. No other medium, high, or critical issues were identified in the diff.

Merge Readiness

The pull request introduces necessary version updates and valuable new documentation for Playwright MCP. However, due to the high severity issue identified with the Homebrew formula's SHA256 calculation method, I recommend that this issue be addressed before merging to ensure security and adherence to Homebrew best practices. I am not authorized to approve pull requests; this feedback is for your consideration and further action by the maintainers.

url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.21.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.21.tar.gz | shasum -a 256`.split.first
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.22.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.22.tar.gz | shasum -a 256`.split.first
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The current method of calculating the sha256 checksum using a shell command (via backticks) at runtime is a concern. In Homebrew formulas, the sha256 is intended to be a static, pre-calculated hash of the release artifact. This ensures that Homebrew can verify the integrity and authenticity of the downloaded file against a known, trusted value.

Dynamically calculating the hash from the downloaded file itself, as done here, bypasses this crucial security check. If the artifact at the URL were compromised, this method would simply calculate the hash of the compromised file, and the verification would misleadingly pass.

Could you please update this to use a hardcoded SHA256 hash for the v2.2.22.tar.gz release artifact? You can obtain this by downloading the tarball and then running shasum -a 256 <filename>.tar.gz.

    sha256 "PUT_PRECALCULATED_SHA256_HASH_FOR_v2.2.22_HERE" # e.g., shasum -a 256 praisonai-2.2.22.tar.gz

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.

2 participants