supervaizer 0.9.6__tar.gz → 0.9.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {supervaizer-0.9.6 → supervaizer-0.9.7}/PKG-INFO +1 -1
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/__version__.py +1 -1
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/agent.py +2 -2
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/cli.py +16 -5
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/server.py +7 -2
- {supervaizer-0.9.6 → supervaizer-0.9.7}/.gitignore +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/LICENSE.md +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/README.md +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/pyproject.toml +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/__init__.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/account.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/account_service.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/routes.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/agent_detail.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/agents.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/agents_grid.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/base.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/case_detail.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/cases_list.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/cases_table.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/console.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/dashboard.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/job_detail.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/jobs_list.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/jobs_table.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/navigation.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/recent_activity.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/server.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/server_status_cards.html +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/case.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/common.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/event.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/examples/controller-template.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/instructions.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/job.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/job_service.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/lifecycle.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/parameter.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/__init__.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/a2a/__init__.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/a2a/model.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/a2a/routes.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/acp/__init__.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/acp/model.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/protocol/acp/routes.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/py.typed +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/routes.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/server_utils.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/storage.py +0 -0
- {supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/telemetry.py +0 -0
|
@@ -553,7 +553,7 @@ class Agent(AgentAbstract):
|
|
|
553
553
|
"""Returns registration info for the agent"""
|
|
554
554
|
return {
|
|
555
555
|
"name": self.name,
|
|
556
|
-
"id": self.id,
|
|
556
|
+
"id": f"{self.id}",
|
|
557
557
|
"author": self.author,
|
|
558
558
|
"developer": self.developer,
|
|
559
559
|
"maintainer": self.maintainer,
|
|
@@ -567,7 +567,7 @@ class Agent(AgentAbstract):
|
|
|
567
567
|
"parameters_setup": self.parameters_setup.registration_info
|
|
568
568
|
if self.parameters_setup
|
|
569
569
|
else None,
|
|
570
|
-
"server_agent_id": self.server_agent_id,
|
|
570
|
+
"server_agent_id": f"{self.server_agent_id}",
|
|
571
571
|
"server_agent_status": self.server_agent_status,
|
|
572
572
|
"server_agent_onboarding_status": self.server_agent_onboarding_status,
|
|
573
573
|
"server_encrypted_parameters": self.server_encrypted_parameters,
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
import os
|
|
8
8
|
import shutil
|
|
9
|
+
import signal
|
|
10
|
+
import subprocess
|
|
9
11
|
import sys
|
|
12
|
+
from typing import Any
|
|
10
13
|
from pathlib import Path
|
|
11
14
|
from typing import Optional
|
|
12
15
|
|
|
@@ -79,12 +82,20 @@ def start(
|
|
|
79
82
|
console.print(f"[bold green]Starting Supervaizer Controller v{VERSION}[/]")
|
|
80
83
|
console.print(f"Loading configuration from [bold]{script_path}[/]")
|
|
81
84
|
|
|
82
|
-
# Execute the script
|
|
83
|
-
with open(script_path, "r") as f:
|
|
84
|
-
script_content = f.read()
|
|
85
|
+
# Execute the script in a new Python process with proper signal handling
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
def signal_handler(signum: int, frame: Any) -> None:
|
|
88
|
+
# Send the signal to the subprocess
|
|
89
|
+
if "process" in globals():
|
|
90
|
+
globals()["process"].terminate()
|
|
91
|
+
sys.exit(0)
|
|
92
|
+
|
|
93
|
+
signal.signal(signal.SIGINT, signal_handler)
|
|
94
|
+
signal.signal(signal.SIGTERM, signal_handler)
|
|
95
|
+
|
|
96
|
+
process = subprocess.Popen([sys.executable, script_path])
|
|
97
|
+
globals()["process"] = process
|
|
98
|
+
process.wait()
|
|
88
99
|
|
|
89
100
|
|
|
90
101
|
@app.command()
|
|
@@ -131,6 +131,8 @@ class ServerAbstract(SvBaseModel):
|
|
|
131
131
|
The server can be configured with various endpoints (A2A, ACP, admin interface)
|
|
132
132
|
and supports encryption/decryption of parameters using RSA keys.
|
|
133
133
|
|
|
134
|
+
Note that when the supervisor ccount is set, the A2A protocol is automatically activated to provide HEALTH CHECK endpoints.
|
|
135
|
+
|
|
134
136
|
public_url: full url (including scheme and port) to use for outbound connections and registration.
|
|
135
137
|
This is especially important in Docker environments where the binding
|
|
136
138
|
address (0.0.0.0) can't be used for outbound connections. Set to
|
|
@@ -359,12 +361,15 @@ class Server(ServerAbstract):
|
|
|
359
361
|
|
|
360
362
|
# Create routes
|
|
361
363
|
if self.supervisor_account:
|
|
362
|
-
log.info(
|
|
364
|
+
log.info(
|
|
365
|
+
"[Server launch] 🚀 Deploy Supervaizer routes - also activates A2A routes"
|
|
366
|
+
)
|
|
363
367
|
self.app.include_router(create_default_routes(self))
|
|
364
368
|
self.app.include_router(create_utils_routes(self))
|
|
365
369
|
self.app.include_router(create_agents_routes(self))
|
|
370
|
+
self.a2a_endpoints = True # Needed by supervaize.
|
|
366
371
|
if self.a2a_endpoints:
|
|
367
|
-
log.info("[Server launch] 📢 Deploy A2A routes")
|
|
372
|
+
log.info("[Server launch] 📢 Deploy A2A routes ")
|
|
368
373
|
self.app.include_router(create_a2a_routes(self))
|
|
369
374
|
if self.acp_endpoints:
|
|
370
375
|
log.info("[Server launch] 📢 Deploy ACP routes")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/recent_activity.html
RENAMED
|
File without changes
|
|
File without changes
|
{supervaizer-0.9.6 → supervaizer-0.9.7}/src/supervaizer/admin/templates/server_status_cards.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|