supervaizer 0.10.6__tar.gz → 0.10.8__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.6 → supervaizer-0.10.8}/PKG-INFO +1 -1
  2. {supervaizer-0.10.6 → supervaizer-0.10.8}/pyproject.toml +1 -1
  3. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/__version__.py +1 -1
  4. {supervaizer-0.10.6/src/supervaizer/deploy → supervaizer-0.10.8/src/supervaizer/admin}/templates/index.html +5 -0
  5. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/examples/controller_template.py +21 -23
  6. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/server.py +13 -12
  7. {supervaizer-0.10.6 → supervaizer-0.10.8}/.gitignore +0 -0
  8. {supervaizer-0.10.6 → supervaizer-0.10.8}/LICENSE.md +0 -0
  9. {supervaizer-0.10.6 → supervaizer-0.10.8}/README.md +0 -0
  10. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/__init__.py +0 -0
  11. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/account.py +0 -0
  12. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/account_service.py +0 -0
  13. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/routes.py +0 -0
  14. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/static/js/job-start-form.js +0 -0
  15. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/agent_detail.html +0 -0
  16. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/agents.html +0 -0
  17. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/agents_grid.html +0 -0
  18. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/base.html +0 -0
  19. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/case_detail.html +0 -0
  20. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/cases_list.html +0 -0
  21. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/cases_table.html +0 -0
  22. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/console.html +0 -0
  23. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/dashboard.html +0 -0
  24. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/job_detail.html +0 -0
  25. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/job_start_test.html +0 -0
  26. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/jobs_list.html +0 -0
  27. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/jobs_table.html +0 -0
  28. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/navigation.html +0 -0
  29. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/recent_activity.html +0 -0
  30. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/server.html +0 -0
  31. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/server_status_cards.html +0 -0
  32. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/admin/templates/supervaize_instructions.html +0 -0
  33. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/agent.py +0 -0
  34. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/case.py +0 -0
  35. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/cli.py +0 -0
  36. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/common.py +0 -0
  37. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/__init__.py +0 -0
  38. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/cli.py +0 -0
  39. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/__init__.py +0 -0
  40. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/clean.py +0 -0
  41. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/down.py +0 -0
  42. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/local.py +0 -0
  43. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/plan.py +0 -0
  44. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/status.py +0 -0
  45. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/commands/up.py +0 -0
  46. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/docker.py +0 -0
  47. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/driver_factory.py +0 -0
  48. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/drivers/__init__.py +0 -0
  49. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/drivers/aws_app_runner.py +0 -0
  50. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/drivers/base.py +0 -0
  51. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/drivers/cloud_run.py +0 -0
  52. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/drivers/do_app_platform.py +0 -0
  53. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/health.py +0 -0
  54. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/state.py +0 -0
  55. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/templates/Dockerfile.template +0 -0
  56. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/templates/debug_env.py +0 -0
  57. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/templates/docker-compose.yml.template +0 -0
  58. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/templates/dockerignore.template +0 -0
  59. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/templates/entrypoint.sh +0 -0
  60. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/deploy/utils.py +0 -0
  61. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/event.py +0 -0
  62. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/instructions.py +0 -0
  63. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/job.py +0 -0
  64. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/job_service.py +0 -0
  65. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/lifecycle.py +0 -0
  66. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/parameter.py +0 -0
  67. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/protocol/__init__.py +0 -0
  68. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/protocol/a2a/__init__.py +0 -0
  69. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/protocol/a2a/model.py +0 -0
  70. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/protocol/a2a/routes.py +0 -0
  71. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/py.typed +0 -0
  72. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/routes.py +0 -0
  73. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/server_utils.py +0 -0
  74. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/storage.py +0 -0
  75. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/telemetry.py +0 -0
  76. {supervaizer-0.10.6 → supervaizer-0.10.8}/src/supervaizer/utils/__init__.py +0 -0
  77. {supervaizer-0.10.6 → supervaizer-0.10.8}/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.6
3
+ Version: 0.10.8
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.6"
124
+ current_version = "0.10.8"
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.6"
8
+ VERSION = "0.10.8"
9
9
  API_VERSION = "v1"
10
10
  TELEMETRY_VERSION = "v1"
@@ -35,6 +35,11 @@
35
35
  OpenAPI
36
36
  </a>
37
37
  </li>
38
+ <li> BASE: {{ base }}
39
+ </li>
40
+ <li>
41
+ TO REPLACE THIS FILE, create an index.html at the root of the project and it will be served as the home page.
42
+ </li>
38
43
  {% if show_admin %}
39
44
  <li>
40
45
  <a href="{{ base }}/admin" class="text-blue-600 hover:text-blue-800 font-medium">
@@ -34,28 +34,26 @@ DEV_PUBLIC_URL = "https://myagent-dev.loca.lt"
34
34
  PROD_PUBLIC_URL = "https://myagent.cloud-hosting.net:8001"
35
35
 
36
36
  # Define the parameters and secrets expected by the agent
37
- agent_parameters: ParametersSetup | None = ParametersSetup.from_list(
38
- [
39
- Parameter(
40
- name="OPEN_API_KEY",
41
- description="OpenAPI Key",
42
- is_environment=True,
43
- is_secret=True,
44
- ),
45
- Parameter(
46
- name="SERPER_API",
47
- description="Server API key updated",
48
- is_environment=True,
49
- is_secret=True,
50
- ),
51
- Parameter(
52
- name="COMPETITOR_SUMMARY_URL",
53
- description="Competitor Summary URL",
54
- is_environment=True,
55
- is_secret=False,
56
- ),
57
- ]
58
- )
37
+ agent_parameters: ParametersSetup | None = ParametersSetup.from_list([
38
+ Parameter(
39
+ name="OPEN_API_KEY",
40
+ description="OpenAPI Key",
41
+ is_environment=True,
42
+ is_secret=True,
43
+ ),
44
+ Parameter(
45
+ name="SERPER_API",
46
+ description="Server API key updated",
47
+ is_environment=True,
48
+ is_secret=True,
49
+ ),
50
+ Parameter(
51
+ name="COMPETITOR_SUMMARY_URL",
52
+ description="Competitor Summary URL",
53
+ is_environment=True,
54
+ is_secret=False,
55
+ ),
56
+ ])
59
57
 
60
58
  # Define the method used to start a job
61
59
  job_start_method: AgentMethod = AgentMethod(
@@ -180,7 +178,7 @@ agent: Agent = Agent(
180
178
  account: Account = Account(
181
179
  workspace_id=os.getenv("SUPERVAIZE_WORKSPACE_ID") or "dummy_workspace_id",
182
180
  api_key=os.getenv("SUPERVAIZE_API_KEY") or "dummy_api_key",
183
- api_url=os.getenv("SUPERVAIZE_API_URL") or "https://api.supervaize.com",
181
+ api_url=os.getenv("SUPERVAIZE_API_URL") or "https://app.supervaize.com",
184
182
  )
185
183
 
186
184
  # Define the supervaizer server capabilities
@@ -78,16 +78,14 @@ 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(
@@ -379,13 +377,16 @@ class Server(ServerAbstract):
379
377
  # Save server info to storage for admin interface
380
378
  save_server_info_to_storage(self)
381
379
 
382
- # Home page (template in deploy/templates)
380
+ # Home page (template in admin/templates)
383
381
  _home_templates = Jinja2Templates(
384
- directory=str(Path(__file__).parent / "deploy" / "templates")
382
+ directory=str(Path(__file__).parent / "admin" / "templates")
385
383
  )
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",
File without changes
File without changes
File without changes