Skip to content

Commit c9786fb

Browse files
committed
Release v3.11.3
1 parent 95e8e38 commit c9786fb

File tree

12 files changed

+63
-16
lines changed

12 files changed

+63
-16
lines changed

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>=3.11.2" \
19+
"praisonai>=3.11.3" \
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>=3.11.2" \
23+
"praisonai>=3.11.3" \
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>=3.11.2" \
19+
"praisonai>=3.11.3" \
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 = "0.14.2"
7+
version = "0.14.3"
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/v3.11.2.tar.gz"
7-
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.11.2.tar.gz | shasum -a 256`.split.first
6+
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.11.3.tar.gz"
7+
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.11.3.tar.gz | shasum -a 256`.split.first
88
license "MIT"
99

1010
depends_on "python@3.11"

src/praisonai/praisonai/cli/features/bots_cli.py

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,44 @@ def _load_agent(self, file_path: Optional[str]):
163163
return Agent(name="assistant", instructions="You are a helpful assistant.")
164164

165165

166-
def handle_bot_command(args) -> None:
167-
"""Handle bot CLI command."""
166+
def handle_bot_command(args) -> int:
167+
"""Handle bot CLI command.
168+
169+
Args:
170+
args: Either a list of command-line arguments (from main.py unknown_args)
171+
or an argparse.Namespace object (from legacy add_bot_parser).
172+
173+
Returns:
174+
Exit code (0 for success, 1 for error)
175+
"""
176+
import argparse
177+
178+
# If args is a list, parse it using argparse
179+
if isinstance(args, list):
180+
parser = argparse.ArgumentParser(prog="praisonai bot")
181+
subparsers = parser.add_subparsers(dest="platform", help="Bot platform")
182+
183+
# Telegram
184+
telegram_parser = subparsers.add_parser("telegram", help="Start a Telegram bot")
185+
telegram_parser.add_argument("--token", help="Telegram bot token")
186+
telegram_parser.add_argument("--agent", help="Path to agent configuration file")
187+
188+
# Discord
189+
discord_parser = subparsers.add_parser("discord", help="Start a Discord bot")
190+
discord_parser.add_argument("--token", help="Discord bot token")
191+
discord_parser.add_argument("--agent", help="Path to agent configuration file")
192+
193+
# Slack
194+
slack_parser = subparsers.add_parser("slack", help="Start a Slack bot")
195+
slack_parser.add_argument("--token", help="Slack bot token")
196+
slack_parser.add_argument("--app-token", dest="app_token", help="Slack app token for Socket Mode")
197+
slack_parser.add_argument("--agent", help="Path to agent configuration file")
198+
199+
try:
200+
args = parser.parse_args(args)
201+
except SystemExit:
202+
return 1
203+
168204
handler = BotHandler()
169205

170206
platform = getattr(args, "platform", None)
@@ -174,20 +210,29 @@ def handle_bot_command(args) -> None:
174210
token=getattr(args, "token", None),
175211
agent_file=getattr(args, "agent", None),
176212
)
213+
return 0
177214
elif platform == "discord":
178215
handler.start_discord(
179216
token=getattr(args, "token", None),
180217
agent_file=getattr(args, "agent", None),
181218
)
219+
return 0
182220
elif platform == "slack":
183221
handler.start_slack(
184222
token=getattr(args, "token", None),
185223
app_token=getattr(args, "app_token", None),
186224
agent_file=getattr(args, "agent", None),
187225
)
226+
return 0
188227
else:
189228
print("Available platforms: telegram, discord, slack")
190229
print("Usage: praisonai bot <platform> [options]")
230+
print("")
231+
print("Examples:")
232+
print(" praisonai bot telegram --token $TELEGRAM_BOT_TOKEN")
233+
print(" praisonai bot discord --token $DISCORD_BOT_TOKEN")
234+
print(" praisonai bot slack --token $SLACK_BOT_TOKEN")
235+
return 1
191236

192237

193238
def add_bot_parser(subparsers) -> None:

src/praisonai/praisonai/cli/legacy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
'a2a', 'containers', 'passthrough', 'responses', 'search', 'realtime-api',
2222
'doctor', 'registry', 'package', 'install', 'uninstall', 'acp', 'debug',
2323
'lsp', 'diag', 'persistence', 'browser',
24+
# Bot/Gateway/Sandbox commands (added for resident agent features)
25+
'bot', 'gateway', 'sandbox', 'wizard', 'migrate', 'security',
2426
}
2527

2628
# Typer commands that have been implemented

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==3.11.2 gunicorn markdown\n")
60+
file.write("RUN pip install flask praisonai==3.11.3 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__ = "3.11.2"
1+
__version__ = "3.11.3"

0 commit comments

Comments
 (0)