Skip to content

Commit 4675577

Browse files
committed
Release v4.5.132
1 parent 426ecfc commit 4675577

13 files changed

Lines changed: 75 additions & 34 deletions

File tree

docker/Dockerfile.chat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
praisonai_tools \
19-
"praisonai>=4.5.131" \
19+
"praisonai>=4.5.132" \
2020
"praisonai[chat]" \
2121
"embedchain[github,youtube]"
2222

docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison
2020
# Install Python packages (using latest versions)
2121
RUN pip install --no-cache-dir \
2222
praisonai_tools \
23-
"praisonai>=4.5.131" \
23+
"praisonai>=4.5.132" \
2424
"praisonai[ui]" \
2525
"praisonai[chat]" \
2626
"praisonai[realtime]" \

docker/Dockerfile.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
praisonai_tools \
19-
"praisonai>=4.5.131" \
19+
"praisonai>=4.5.132" \
2020
"praisonai[ui]" \
2121
"praisonai[crewai]"
2222

src/praisonai-agents/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "praisonaiagents"
7-
version = "1.5.131"
7+
version = "1.5.132"
88
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/praisonai-agents/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/praisonai/praisonai.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class Praisonai < Formula
33

44
desc "AI tools for various AI applications"
55
homepage "https://github.com/MervinPraison/PraisonAI"
6-
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v4.5.131.tar.gz"
7-
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v4.5.131.tar.gz | shasum -a 256`.split.first
6+
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v4.5.132.tar.gz"
7+
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v4.5.132.tar.gz | shasum -a 256`.split.first
88
license "MIT"
99

1010
depends_on "python@3.11"

src/praisonai/praisonai/cli/commands/github.py

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,38 @@ def github_triage(
9494
print(f"[red]PraisonAIAgents SDK not found: {e}[/red]")
9595
raise typer.Exit(1)
9696

97+
import threading
9798
bus = get_default_bus()
9899
agent_logs = []
99100
last_update_time = [time.time()]
101+
update_timer = [None]
100102

101-
def async_update_comment():
102-
# Software debouncer to prevent GitHub API rate limit (5 second throttle)
103-
if time.time() - last_update_time[0] < 5.0:
104-
return
105-
last_update_time[0] = time.time()
106-
103+
def _sync_push_comment():
107104
md_body = f"🚀 **PraisonAI is working**...\n{run_url}\n\n"
108-
for log in agent_logs[-10:]: # keep last 10 steps to avoid massive comment
105+
for log in agent_logs[-15:]: # keep last 15 steps
109106
md_body += f"- {log}\n"
110107

111108
try:
112109
fetch_github_api(f"{api_base}/issues/comments/{comment_id}", token=token, method="PATCH", data={"body": md_body})
113110
except:
114111
pass
112+
finally:
113+
last_update_time[0] = time.time()
114+
update_timer[0] = None
115+
116+
def trigger_comment_update():
117+
if update_timer[0] is not None:
118+
return # already scheduled
119+
120+
elapsed = time.time() - last_update_time[0]
121+
if elapsed >= 3.0:
122+
# Execute inline if throttle expired
123+
_sync_push_comment()
124+
else:
125+
# Schedule deferred update
126+
delay = 3.0 - elapsed
127+
update_timer[0] = threading.Timer(delay, _sync_push_comment)
128+
update_timer[0].start()
115129

116130
async def track_agent_step(event):
117131
try:
@@ -122,8 +136,8 @@ async def track_agent_step(event):
122136
elif event.type == "agent_complete":
123137
agent_logs.append(f"✅ Agent completed: {event.data.get('agent_name')}")
124138
else:
125-
agent_logs.append(f"🔄 Executing: {event.type}")
126-
async_update_comment()
139+
return # skip spam
140+
trigger_comment_update()
127141
except:
128142
pass
129143

@@ -136,7 +150,7 @@ async def track_agent_step(event):
136150
import sys
137151

138152
original_argv = sys.argv
139-
sys.argv = ['praisonai', 'workflow', 'run', agent_file]
153+
sys.argv = ['praisonai', 'workflow', 'run', agent_file, '--var', f'ISSUE_NUMBER={issue}']
140154
try:
141155
praison = PraisonAI()
142156
praison.main()

src/praisonai/praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create_dockerfile(self):
5757
file.write("FROM python:3.11-slim\n")
5858
file.write("WORKDIR /app\n")
5959
file.write("COPY . .\n")
60-
file.write("RUN pip install flask praisonai==4.5.131 gunicorn markdown\n")
60+
file.write("RUN pip install flask praisonai==4.5.132 gunicorn markdown\n")
6161
file.write("EXPOSE 8080\n")
6262
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6363

src/praisonai/praisonai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.5.131"
1+
__version__ = "4.5.132"

src/praisonai/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"rich>=13.7",
1313
"markdown>=3.5",
1414
"pyparsing>=3.0.0",
15-
"praisonaiagents>=1.5.131",
15+
"praisonaiagents>=1.5.132",
1616
"python-dotenv>=0.19.0",
1717
"litellm>=1.81.0,<=1.82.6",
1818
"PyYAML>=6.0",

0 commit comments

Comments
 (0)