Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Setup script for OpenAgents.
This is a minimal setup.py that defers to pyproject.toml for configuration.
"""

import os
import shutil
import sys
from pathlib import Path
from setuptools import setup, find_packages

def safe_print(message):
"""Print with fallback for Windows encoding issues."""
try:
print(message)
except UnicodeEncodeError:
# Fallback: remove non-ASCII characters
print(message.encode('ascii', 'replace').decode('ascii'))

def copy_studio_build():
"""Copy studio build files to package directory if they exist."""
project_root = Path(__file__).parent
Expand All @@ -25,11 +35,11 @@ def copy_studio_build():

# Copy build directory
shutil.copytree(studio_build_src, studio_build_dst)
print(f"✅ Copied studio build files from {studio_build_src} to {studio_build_dst}")
safe_print(f"✅ Copied studio build files from {studio_build_src} to {studio_build_dst}")
else:
print(f"⚠️ Studio build directory not found at {studio_build_src}")
print(" The package will work, but users will need Node.js to run the studio.")
print(" To include the built frontend, run 'npm run build' in the studio directory first.")
safe_print(f"⚠️ Studio build directory not found at {studio_build_src}")
safe_print(" The package will work, but users will need Node.js to run the studio.")
safe_print(" To include the built frontend, run 'npm run build' in the studio directory first.")

if __name__ == "__main__":
# Copy studio build files before setup
Expand Down
3 changes: 3 additions & 0 deletions src/openagents/client/cli_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
from typing import Optional

import typer
import yaml
from rich.panel import Panel
from rich.progress import Progress, SpinnerColumn, TextColumn
from rich.table import Table
from rich import box

from openagents.client.cli_shared import app, console
from openagents.client.cli_helpers import configure_workspace_logging

agent_app = typer.Typer(
name="agent",
Expand Down
Loading