supervaizer 0.10.19__py3-none-any.whl → 0.10.20__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.19"
8
+ VERSION = "0.10.20"
9
9
  API_VERSION = "v1"
10
10
  TELEMETRY_VERSION = "v1"
@@ -41,12 +41,7 @@
41
41
  OpenAPI
42
42
  </a>
43
43
  </li>
44
- <li><strong>BASE:</strong> {{ base }}
45
- <br>
46
- <strong>PUBLIC_URL:</strong> {{ public_url }}
47
- <br>
48
- <strong>FULL_URL:</strong> {{ full_url }}
49
- <br>
44
+ <li><strong>BASE URL:</strong> {{ base }}
50
45
  </li>
51
46
 
52
47
  {% if show_admin %}
supervaizer/server.py CHANGED
@@ -23,7 +23,7 @@ from fastapi.exceptions import RequestValidationError
23
23
  from fastapi.responses import HTMLResponse, JSONResponse
24
24
  from fastapi.security import APIKeyHeader
25
25
  from fastapi.templating import Jinja2Templates
26
- from pydantic import BaseModel, field_validator, Field
26
+ from pydantic import BaseModel, Field, field_validator
27
27
  from rich import inspect
28
28
 
29
29
  from supervaizer.__version__ import API_VERSION, VERSION
@@ -456,6 +456,9 @@ class Server(ServerAbstract):
456
456
 
457
457
  @self.app.get("/", response_class=HTMLResponse)
458
458
  async def home_page(request: Request) -> HTMLResponse:
459
+ root_index = Path.cwd() / "index.html"
460
+ if root_index.is_file():
461
+ return HTMLResponse(content=root_index.read_text(encoding="utf-8"))
459
462
  base = self.public_url or f"{self.scheme}://{self.host}:{self.port}"
460
463
  return _home_templates.TemplateResponse(
461
464
  "index.html",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supervaizer
3
- Version: 0.10.19
3
+ Version: 0.10.20
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,5 +1,5 @@
1
1
  supervaizer/__init__.py,sha256=UNFcgJT-2708tLRFXohWr3320LVAzh3_WZZhrU9j1Iw,2427
2
- supervaizer/__version__.py,sha256=x_tdqJbY4Pat6SUTo8KifXRlzKFdxq7sDKpCqYVKK8I,349
2
+ supervaizer/__version__.py,sha256=drpYX5azSrHqoV48zazptpdg5x0BljAt8ryFjryTRW4,349
3
3
  supervaizer/account.py,sha256=POChw9c2ZjBNvesz6JmvBzYmMD40M5oxtz5IupuMqsw,11683
4
4
  supervaizer/account_service.py,sha256=ZgZ0fhsbSVA076c-35ZZoYJBrQZsAwfFS7namVeoD3s,3459
5
5
  supervaizer/agent.py,sha256=EtmqBH9fsO4k8YcHnjj55_4uOmb5URZwLlIIJReWg7A,36516
@@ -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=GuDvL4hBt7RXHD1rohnsRVisZHXsf0xqcjbkIbIm0DM,24590
16
+ supervaizer/server.py,sha256=B_AY3swbHDvq51km7B5t2qYjv7BOP4hb2q0upPxFrRA,24762
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
@@ -29,7 +29,7 @@ supervaizer/admin/templates/cases_list.html,sha256=UV4SfULzxNiOpG8aNddablpwf6hVN
29
29
  supervaizer/admin/templates/cases_table.html,sha256=VyL5mEF003FTNHym1UYBD8JkvhA9wR328ciTKNKxdb8,6619
30
30
  supervaizer/admin/templates/console.html,sha256=tLGGf8vHjGK77Il6SYlgparoU_xz3nbvNpGVQRkVNCc,13966
31
31
  supervaizer/admin/templates/dashboard.html,sha256=3Pu5bR78QUcPNp5MyXkyibfp-wxYdJyyf77v3O_f_hU,7873
32
- supervaizer/admin/templates/index.html,sha256=DsPsVPRd9_XBd6VvjZpFfxkEYT2pZMdBblHuwlPrseQ,2879
32
+ supervaizer/admin/templates/index.html,sha256=TcAJFfWUtbaidTjhhRjop7RP5BayHf4sFGVR6nJ_OL0,2660
33
33
  supervaizer/admin/templates/job_detail.html,sha256=LDTMWLURyVCp7SMTxQ4M8AFqNpbbUVUx253negp9JNA,10790
34
34
  supervaizer/admin/templates/job_start_test.html,sha256=eAogAit0JfuMU4N5YR7N03w0nD_Bi9mtiX8uJ7dHLPg,4270
35
35
  supervaizer/admin/templates/jobs_list.html,sha256=VJ2VYe62dHXvjQQgUAVyKcn58rO5919UuP3VKgxLVhM,9136
@@ -72,8 +72,8 @@ supervaizer/protocol/a2a/routes.py,sha256=rkQTNBD1NTYimKCb8iOk4bVf9ldDP1LqHfOsyh
72
72
  supervaizer/utils/__init__.py,sha256=fd0NFwN_cen3QPms2SOnuz4jcetay3f_31dit2As7EA,458
73
73
  supervaizer/utils/version_check.py,sha256=-tsOURpHVh0LNTbpQsyJDJENKszC-NzXDSO_EToEQPE,1893
74
74
  supervaizer/py.typed,sha256=bHhvLx7c6MqrzXVPbdK3qAOcSxzp4wDtTx4QifMC2EY,74
75
- supervaizer-0.10.19.dist-info/METADATA,sha256=Buu9WiUyRnu5Yt3mp11TWHT7Q-Vqv-Irw0Z4iYO5gfA,12647
76
- supervaizer-0.10.19.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
77
- supervaizer-0.10.19.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
78
- supervaizer-0.10.19.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
79
- supervaizer-0.10.19.dist-info/RECORD,,
75
+ supervaizer-0.10.20.dist-info/METADATA,sha256=bkOvjB7atvt6-dfrBYDJi_vtA9npeD5IZd55Odw4sxQ,12647
76
+ supervaizer-0.10.20.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
77
+ supervaizer-0.10.20.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
78
+ supervaizer-0.10.20.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
79
+ supervaizer-0.10.20.dist-info/RECORD,,