supervaizer 0.10.7__tar.gz → 0.10.9__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.
Files changed (77) hide show
  1. {supervaizer-0.10.7 → supervaizer-0.10.9}/PKG-INFO +1 -1
  2. {supervaizer-0.10.7 → supervaizer-0.10.9}/pyproject.toml +1 -1
  3. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/__version__.py +1 -1
  4. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/account.py +1 -1
  5. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/index.html +12 -0
  6. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/server.py +17 -14
  7. {supervaizer-0.10.7 → supervaizer-0.10.9}/.gitignore +0 -0
  8. {supervaizer-0.10.7 → supervaizer-0.10.9}/LICENSE.md +0 -0
  9. {supervaizer-0.10.7 → supervaizer-0.10.9}/README.md +0 -0
  10. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/__init__.py +0 -0
  11. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/account_service.py +0 -0
  12. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/routes.py +0 -0
  13. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/static/js/job-start-form.js +0 -0
  14. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/agent_detail.html +0 -0
  15. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/agents.html +0 -0
  16. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/agents_grid.html +0 -0
  17. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/base.html +0 -0
  18. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/case_detail.html +0 -0
  19. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/cases_list.html +0 -0
  20. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/cases_table.html +0 -0
  21. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/console.html +0 -0
  22. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/dashboard.html +0 -0
  23. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/job_detail.html +0 -0
  24. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/job_start_test.html +0 -0
  25. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/jobs_list.html +0 -0
  26. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/jobs_table.html +0 -0
  27. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/navigation.html +0 -0
  28. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/recent_activity.html +0 -0
  29. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/server.html +0 -0
  30. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/server_status_cards.html +0 -0
  31. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/admin/templates/supervaize_instructions.html +0 -0
  32. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/agent.py +0 -0
  33. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/case.py +0 -0
  34. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/cli.py +0 -0
  35. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/common.py +0 -0
  36. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/__init__.py +0 -0
  37. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/cli.py +0 -0
  38. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/__init__.py +0 -0
  39. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/clean.py +0 -0
  40. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/down.py +0 -0
  41. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/local.py +0 -0
  42. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/plan.py +0 -0
  43. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/status.py +0 -0
  44. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/commands/up.py +0 -0
  45. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/docker.py +0 -0
  46. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/driver_factory.py +0 -0
  47. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/drivers/__init__.py +0 -0
  48. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/drivers/aws_app_runner.py +0 -0
  49. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/drivers/base.py +0 -0
  50. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/drivers/cloud_run.py +0 -0
  51. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/drivers/do_app_platform.py +0 -0
  52. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/health.py +0 -0
  53. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/state.py +0 -0
  54. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/templates/Dockerfile.template +0 -0
  55. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/templates/debug_env.py +0 -0
  56. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/templates/docker-compose.yml.template +0 -0
  57. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/templates/dockerignore.template +0 -0
  58. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/templates/entrypoint.sh +0 -0
  59. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/deploy/utils.py +0 -0
  60. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/event.py +0 -0
  61. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/examples/controller_template.py +0 -0
  62. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/instructions.py +0 -0
  63. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/job.py +0 -0
  64. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/job_service.py +0 -0
  65. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/lifecycle.py +0 -0
  66. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/parameter.py +0 -0
  67. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/protocol/__init__.py +0 -0
  68. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/protocol/a2a/__init__.py +0 -0
  69. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/protocol/a2a/model.py +0 -0
  70. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/protocol/a2a/routes.py +0 -0
  71. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/py.typed +0 -0
  72. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/routes.py +0 -0
  73. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/server_utils.py +0 -0
  74. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/storage.py +0 -0
  75. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/telemetry.py +0 -0
  76. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/utils/__init__.py +0 -0
  77. {supervaizer-0.10.7 → supervaizer-0.10.9}/src/supervaizer/utils/version_check.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supervaizer
3
- Version: 0.10.7
3
+ Version: 0.10.9
4
4
  Summary: Controller system for Supervaize
5
5
  Project-URL: Homepage, https://supervaize.com
6
6
  Project-URL: Repository, https://github.com/supervaize/supervaizer
@@ -121,7 +121,7 @@ mypy_path = "src"
121
121
  disallow_any_expr = false
122
122
 
123
123
  [tool.bumpversion]
124
- current_version = "0.10.7"
124
+ current_version = "0.10.9"
125
125
  commit = true
126
126
  tag = true
127
127
  tag_name = "v{new_version}"
@@ -5,6 +5,6 @@
5
5
  # https://mozilla.org/MPL/2.0/.
6
6
 
7
7
 
8
- VERSION = "0.10.7"
8
+ VERSION = "0.10.9"
9
9
  API_VERSION = "v1"
10
10
  TELEMETRY_VERSION = "v1"
@@ -62,7 +62,7 @@ class AccountAbstract(SvBaseModel):
62
62
  {
63
63
  "workspace_id": "ws_1234567890abcdef",
64
64
  "api_key": "sk_1234567890abcdef",
65
- "api_url": "https://api.supervaize.com",
65
+ "api_url": "https://app.supervaize.com",
66
66
  }
67
67
  ]
68
68
  },
@@ -35,6 +35,14 @@
35
35
  OpenAPI
36
36
  </a>
37
37
  </li>
38
+ <li><strong>BASE:</strong> {{ base }}
39
+ <br>
40
+ <strong>PUBLIC_URL:</strong> {{ public_url }}
41
+ <br>
42
+ <strong>FULL_URL:</strong> {{ full_url }}
43
+ <br>
44
+ </li>
45
+
38
46
  {% if show_admin %}
39
47
  <li>
40
48
  <a href="{{ base }}/admin" class="text-blue-600 hover:text-blue-800 font-medium">
@@ -45,6 +53,10 @@
45
53
  </ul>
46
54
  </div>
47
55
  </div>
56
+ <hr>
57
+ <div class="mt-8">
58
+ TO REPLACE THIS FILE, create an index.html at the root of the project and it will be served as the home page.
59
+ </div>
48
60
  </main>
49
61
  </body>
50
62
  </html>
@@ -78,21 +78,19 @@ def save_server_info_to_storage(server_instance: "Server") -> None:
78
78
  agents = []
79
79
  if hasattr(server_instance, "agents") and server_instance.agents:
80
80
  for agent in server_instance.agents:
81
- agents.append(
82
- {
83
- "name": agent.name,
84
- "description": agent.description,
85
- "version": agent.version,
86
- "api_path": agent.path,
87
- "slug": agent.slug,
88
- "instructions_path": agent.instructions_path,
89
- }
90
- )
81
+ agents.append({
82
+ "name": agent.name,
83
+ "description": agent.description,
84
+ "version": agent.version,
85
+ "api_path": agent.path,
86
+ "slug": agent.slug,
87
+ "instructions_path": agent.instructions_path,
88
+ })
91
89
 
92
90
  # Create server info
93
91
  server_info = ServerInfo(
94
- host=getattr(server_instance, "host", "0.0.0.0"),
95
- port=getattr(server_instance, "port", 8000),
92
+ host=getattr(server_instance, "host", "N/A"),
93
+ port=getattr(server_instance, "port", "N/A"),
96
94
  api_version=API_VERSION,
97
95
  environment=os.getenv("SUPERVAIZER_ENVIRONMENT", "development"),
98
96
  agents=agents,
@@ -238,10 +236,10 @@ class Server(ServerAbstract):
238
236
  supervisor_account: Optional[Account] = None,
239
237
  a2a_endpoints: bool = True,
240
238
  admin_interface: bool = True,
241
- scheme: str = "http",
239
+ scheme: str = os.getenv("SUPERVAIZER_SCHEME", "https"),
242
240
  environment: str = os.getenv("SUPERVAIZER_ENVIRONMENT", "dev"),
243
241
  host: str = os.getenv("SUPERVAIZER_HOST", "0.0.0.0"),
244
- port: int = int(os.getenv("SUPERVAIZER_PORT", 8000)),
242
+ port: int = int(os.getenv("SUPERVAIZER_PORT", 443)),
245
243
  debug: bool = False,
246
244
  reload: bool = False,
247
245
  mac_addr: str = "",
@@ -386,12 +384,17 @@ class Server(ServerAbstract):
386
384
 
387
385
  @self.app.get("/", response_class=HTMLResponse)
388
386
  async def home_page(request: Request) -> HTMLResponse:
387
+ root_index = Path.cwd() / "index.html"
388
+ if root_index.is_file():
389
+ return HTMLResponse(content=root_index.read_text(encoding="utf-8"))
389
390
  base = self.public_url or f"{self.scheme}://{self.host}:{self.port}"
390
391
  return _home_templates.TemplateResponse(
391
392
  "index.html",
392
393
  {
393
394
  "request": request,
394
395
  "base": base,
396
+ "public_url": self.public_url,
397
+ "full_url": f"{self.scheme}://{self.host}:{self.port}",
395
398
  "version": VERSION,
396
399
  "api_version": API_VERSION,
397
400
  "show_admin": bool(self.api_key and admin_interface),
File without changes
File without changes
File without changes