supervaizer 0.10.14__py3-none-any.whl → 0.10.16__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.14"
8
+ VERSION = "0.10.16"
9
9
  API_VERSION = "v1"
10
10
  TELEMETRY_VERSION = "v1"
@@ -267,6 +267,7 @@ def create_admin_routes() -> APIRouter:
267
267
  "db_name": "TinyDB",
268
268
  "data_storage_path": str(storage.db_path.absolute()),
269
269
  "api_key": os.getenv("SUPERVAIZER_API_KEY"),
270
+ "server_id": os.getenv("SUPERVAIZER_SERVER_ID"),
270
271
  },
271
272
  )
272
273
  except Exception as e:
@@ -31,6 +31,13 @@
31
31
  .htmx-request { opacity: 0.5; }
32
32
  .htmx-request.htmx-swapping { opacity: 1; }
33
33
  </style>
34
+ <script>
35
+ // Persist admin API key from URL so it survives navigation (e.g. Register with supervisor)
36
+ (function() {
37
+ var m = /[?&]key=([^&]+)/.exec(window.location.search);
38
+ if (m) try { sessionStorage.setItem('admin_api_key', decodeURIComponent(m[1])); } catch (e) {}
39
+ })();
40
+ </script>
34
41
  </head>
35
42
  <body class="bg-gray-50 min-h-screen">
36
43
  <!-- Navigation -->
@@ -116,7 +116,7 @@
116
116
  if (registerBtn) {
117
117
  registerBtn.addEventListener('click', async function() {
118
118
  const params = new URLSearchParams(window.location.search);
119
- const key = params.get('key');
119
+ const key = params.get('key') || (function() { try { return sessionStorage.getItem('admin_api_key'); } catch (e) { return null; } })();
120
120
  const url = key ? '/admin/api/server/register?key=' + encodeURIComponent(key) : '/admin/api/server/register';
121
121
  registerResult.classList.add('hidden');
122
122
  registerIndicator.classList.remove('htmx-indicator');
supervaizer/server.py CHANGED
@@ -99,6 +99,7 @@ def save_server_info_to_storage(server_instance: "Server") -> None:
99
99
 
100
100
  # Create server info
101
101
  server_info = ServerInfo(
102
+ id=getattr(server_instance, "server_id", "N/A"),
102
103
  host=getattr(server_instance, "host", "N/A"),
103
104
  port=getattr(server_instance, "port", "N/A"),
104
105
  api_version=API_VERSION,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supervaizer
3
- Version: 0.10.14
3
+ Version: 0.10.16
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=i4qCZA4QHMUjh0f98jJvNxzbOymi4JZbT3f5jnMBsqg,349
2
+ supervaizer/__version__.py,sha256=QaT5-7oPKicGM1NEZA3o0YUXumr2CHNnFaQkucnCcow,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,17 +13,17 @@ 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=JKjxJXM0Mosc6LxuRzWB7TAaV0k-P_Cj_3U39gFARZs,22209
16
+ supervaizer/server.py,sha256=JLavzhd8PVTDtqfupaHGnshnY5GCi5rxTC4ThGcml9M,22270
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
20
- supervaizer/admin/routes.py,sha256=LV9BTrJxpetj8ljhpDmSfVlmbUpXgWrggXqhMZKAI6Y,47625
20
+ supervaizer/admin/routes.py,sha256=utXv4Agn9Cz9V6IG8XCKSJnRPK4qi7Ge7Ti9ZUlSB4w,47694
21
21
  supervaizer/admin/static/favicon.ico,sha256=wFyXw96AplZoEcW45dJBeC1pHTcPSH07HGWbtrc49mI,5558
22
22
  supervaizer/admin/static/js/job-start-form.js,sha256=s--AGVYzgc9mE20POYeM0BNm0Wy41aBZVv99tc0cSPU,11938
23
23
  supervaizer/admin/templates/agent_detail.html,sha256=DFOGfjuQNC39FOLYUW_jD0A01WpBY1umatGCslyJ0_c,7581
24
24
  supervaizer/admin/templates/agents.html,sha256=orB_z1iMFE2MKhFm9XejwZjmzMC1PVT69oB-F9YZPHQ,12678
25
25
  supervaizer/admin/templates/agents_grid.html,sha256=Hqgmgc4RhtnR-resuMZ8rj4uPJl6mHBOBTtZ5rLG90A,6106
26
- supervaizer/admin/templates/base.html,sha256=ZGS-6IxGRYK41E5Jp3MVrGSwCugg8AVHtW21kKCBDvo,10405
26
+ supervaizer/admin/templates/base.html,sha256=G82_3NtUdUvPcaEwlpq50OMosbAE6t-yxVMmpqKNuZU,10743
27
27
  supervaizer/admin/templates/case_detail.html,sha256=cJ4TUJI3ix3a-veb4g0Tp0AY-uJr0SducK70MZPFsZQ,13848
28
28
  supervaizer/admin/templates/cases_list.html,sha256=UV4SfULzxNiOpG8aNddablpwf6hVNpRbAc6dgTmp6_E,9324
29
29
  supervaizer/admin/templates/cases_table.html,sha256=VyL5mEF003FTNHym1UYBD8JkvhA9wR328ciTKNKxdb8,6619
@@ -36,7 +36,7 @@ supervaizer/admin/templates/jobs_list.html,sha256=VJ2VYe62dHXvjQQgUAVyKcn58rO591
36
36
  supervaizer/admin/templates/jobs_table.html,sha256=BCOI_7QlxJ5XOra7WKou48a2lNwQYASCMFTtgzHNotw,5974
37
37
  supervaizer/admin/templates/navigation.html,sha256=Ci_CMLqBuIKRt3JCFtn9Vjz1AAkqC75WMT6IQUiByFI,11724
38
38
  supervaizer/admin/templates/recent_activity.html,sha256=hL06GXF1a-C_tkj3pRLrDTTDqG0KplcWMZFengFMuEc,4843
39
- supervaizer/admin/templates/server.html,sha256=CScvNTNdc0Wi2entmzZHSnqrBjqIOZUsbQrWD58pBYM,8527
39
+ supervaizer/admin/templates/server.html,sha256=GNAxqXfa8uALmK2Sb5FF3YVHI8FFa0HfeD23wpExtsA,8632
40
40
  supervaizer/admin/templates/server_status_cards.html,sha256=yJ36hkfgQpscYkiaodFDQPnmJWeb2W7gey09Z3T6JsY,7882
41
41
  supervaizer/admin/templates/supervaize_instructions.html,sha256=LTLla1xgIeLpFf7bond_lxH5qdQQ2ak52Fd7hqChi1I,10225
42
42
  supervaizer/deploy/__init__.py,sha256=DvngGQu8tS_Yz5FU4kKCvPpod11IGCtZWkUNeB5aVHI,557
@@ -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.14.dist-info/METADATA,sha256=e85FBmO2LXuMABh6_GLkgOD0zSFiq8qh_4uvTksFnhs,12648
76
- supervaizer-0.10.14.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
77
- supervaizer-0.10.14.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
78
- supervaizer-0.10.14.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
79
- supervaizer-0.10.14.dist-info/RECORD,,
75
+ supervaizer-0.10.16.dist-info/METADATA,sha256=UvJETzha6fW44ZdWMSkjHibtWbdNPvNodAvV837HVgo,12648
76
+ supervaizer-0.10.16.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
77
+ supervaizer-0.10.16.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
78
+ supervaizer-0.10.16.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
79
+ supervaizer-0.10.16.dist-info/RECORD,,