supervaizer 0.10.7__py3-none-any.whl → 0.10.9__py3-none-any.whl

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.
@@ -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"
supervaizer/account.py CHANGED
@@ -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>
supervaizer/server.py CHANGED
@@ -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),
@@ -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
@@ -1,6 +1,6 @@
1
1
  supervaizer/__init__.py,sha256=eBbGjduMBH-FDjcGlSqeR4Kf4uo60Cf1DrRur8VGkJo,2341
2
- supervaizer/__version__.py,sha256=1R9B16uCS3ZHqPie7nLzq_rpRlT7BczW3iMuyvfmqAA,348
3
- supervaizer/account.py,sha256=-K1pd590Lp2TncZ2jn442kBLxnm482G3WnQavVFxZ1s,11102
2
+ supervaizer/__version__.py,sha256=LtDXeoaiX6Sv5-o1zm5x4AX1tKa1Zt9vXyke7riyv84,348
3
+ supervaizer/account.py,sha256=bxANsh-97dRGGpzstT1XKGThPHqRqvJC022Hfrb2RyM,11102
4
4
  supervaizer/account_service.py,sha256=z4lw8qp8XvCrU6Ndf4VHRnQwY_071410ts5_7E8YDAs,3046
5
5
  supervaizer/agent.py,sha256=Clenvdr_v-lV7_v6YCcevp8dj5JUNvpTWrBZBYM82lg,36509
6
6
  supervaizer/case.py,sha256=dOgRujyf4MFcZ-937zxJbqLIPduKg6ZspHuhnWiq13Q,14385
@@ -13,7 +13,7 @@ supervaizer/job_service.py,sha256=22Qe7Z5_u3R28tcNH_21YMIYciWFtJaM7I-MXtIhBMU,46
13
13
  supervaizer/lifecycle.py,sha256=5CunJN7MsM5blyNiFMJMLFDUBmTmmAsPE24QC-gSbYA,13958
14
14
  supervaizer/parameter.py,sha256=sYDuGof_w6mlix0oxjB6odV0sO0QSBL1KwFZa3Y2cOA,8157
15
15
  supervaizer/routes.py,sha256=o3u7pGGLE0MQzWtQNdd5xk1M0G9Y_BR_JiLVmCFtdC4,34319
16
- supervaizer/server.py,sha256=aZ51nZQ9aVdd-D_6tYa_SBtmSsNhCDvMfgaUrnGnmos,21639
16
+ supervaizer/server.py,sha256=O6zoGk01-owb7kh9lI6mTlIfkPeqwY-rbYUzfOj2v34,21902
17
17
  supervaizer/server_utils.py,sha256=FMglpADQBJynkR2v-pfwANu6obsaPvR9j0BQc5Otpac,1590
18
18
  supervaizer/storage.py,sha256=WLX8ggwt1AGF07DrfD1K6PyP2-N45c_Ep4CL0iPLVbI,15332
19
19
  supervaizer/telemetry.py,sha256=XSYw8ZwoY8W6C7mhwHU67t7trJzWd7CBkkSNdsDT_HA,2596
@@ -28,7 +28,7 @@ supervaizer/admin/templates/cases_list.html,sha256=UV4SfULzxNiOpG8aNddablpwf6hVN
28
28
  supervaizer/admin/templates/cases_table.html,sha256=VyL5mEF003FTNHym1UYBD8JkvhA9wR328ciTKNKxdb8,6619
29
29
  supervaizer/admin/templates/console.html,sha256=tLGGf8vHjGK77Il6SYlgparoU_xz3nbvNpGVQRkVNCc,13966
30
30
  supervaizer/admin/templates/dashboard.html,sha256=3Pu5bR78QUcPNp5MyXkyibfp-wxYdJyyf77v3O_f_hU,7873
31
- supervaizer/admin/templates/index.html,sha256=JRYAp5IiMQ6khBL8lI8NtJ-jN4SdOpiLIZWTEbFcy_o,1912
31
+ supervaizer/admin/templates/index.html,sha256=zG5LL8yPyk9k8hbqZt2vT8fjGR-HRleUB9yByKulc1E,2409
32
32
  supervaizer/admin/templates/job_detail.html,sha256=LDTMWLURyVCp7SMTxQ4M8AFqNpbbUVUx253negp9JNA,10790
33
33
  supervaizer/admin/templates/job_start_test.html,sha256=eAogAit0JfuMU4N5YR7N03w0nD_Bi9mtiX8uJ7dHLPg,4270
34
34
  supervaizer/admin/templates/jobs_list.html,sha256=VJ2VYe62dHXvjQQgUAVyKcn58rO5919UuP3VKgxLVhM,9136
@@ -70,8 +70,8 @@ supervaizer/protocol/a2a/routes.py,sha256=rkQTNBD1NTYimKCb8iOk4bVf9ldDP1LqHfOsyh
70
70
  supervaizer/utils/__init__.py,sha256=fd0NFwN_cen3QPms2SOnuz4jcetay3f_31dit2As7EA,458
71
71
  supervaizer/utils/version_check.py,sha256=-tsOURpHVh0LNTbpQsyJDJENKszC-NzXDSO_EToEQPE,1893
72
72
  supervaizer/py.typed,sha256=bHhvLx7c6MqrzXVPbdK3qAOcSxzp4wDtTx4QifMC2EY,74
73
- supervaizer-0.10.7.dist-info/METADATA,sha256=0nTpJOIEnG4twRiuZFshkrg0v098HUc37JuvfHV9P9Q,12647
74
- supervaizer-0.10.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
75
- supervaizer-0.10.7.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
76
- supervaizer-0.10.7.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
77
- supervaizer-0.10.7.dist-info/RECORD,,
73
+ supervaizer-0.10.9.dist-info/METADATA,sha256=c3n7f3HrIez3_PQ7BXE6gpgmaxmc2DgIB9N18lAlVS0,12647
74
+ supervaizer-0.10.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
75
+ supervaizer-0.10.9.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
76
+ supervaizer-0.10.9.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
77
+ supervaizer-0.10.9.dist-info/RECORD,,