skypilot-nightly 1.0.0.dev20251026__py3-none-any.whl → 1.0.0.dev20251029__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.
Potentially problematic release.
This version of skypilot-nightly might be problematic. Click here for more details.
- sky/__init__.py +2 -2
- sky/adaptors/coreweave.py +278 -0
- sky/backends/backend_utils.py +9 -6
- sky/backends/cloud_vm_ray_backend.py +2 -3
- sky/check.py +25 -13
- sky/client/cli/command.py +34 -15
- sky/client/sdk.py +4 -4
- sky/cloud_stores.py +73 -0
- sky/core.py +7 -5
- sky/dashboard/out/404.html +1 -1
- sky/dashboard/out/_next/static/{wDQ7aGvICzMNmjIaC37TT → DabuSAKsc_y0wyJxpTIdQ}/_buildManifest.js +1 -1
- sky/dashboard/out/_next/static/chunks/{1141-d5204f35a3388bf4.js → 1141-c3c10e2c6ed71a8f.js} +1 -1
- sky/dashboard/out/_next/static/chunks/2755.a239c652bf8684dd.js +26 -0
- sky/dashboard/out/_next/static/chunks/3294.87a13fba0058865b.js +1 -0
- sky/dashboard/out/_next/static/chunks/{3785.538eb23a098fc304.js → 3785.170be320e0060eaf.js} +1 -1
- sky/dashboard/out/_next/static/chunks/4282-49b2065b7336e496.js +1 -0
- sky/dashboard/out/_next/static/chunks/7615-80aa7b09f45a86d2.js +1 -0
- sky/dashboard/out/_next/static/chunks/8969-4ed9236db997b42b.js +1 -0
- sky/dashboard/out/_next/static/chunks/9360.10a3aac7aad5e3aa.js +31 -0
- sky/dashboard/out/_next/static/chunks/pages/clusters/[cluster]/[job]-ac4a217f17b087cb.js +16 -0
- sky/dashboard/out/_next/static/chunks/pages/clusters/{[cluster]-fbf2907ce2bb67e2.js → [cluster]-1704039ccaf997cf.js} +1 -1
- sky/dashboard/out/_next/static/chunks/pages/{jobs-0dc34cf9a8710a9f.js → jobs-7eee823559e5cf9f.js} +1 -1
- sky/dashboard/out/_next/static/chunks/pages/{users-96d6b8bb2dec055f.js → users-2b172f13f8538a7a.js} +1 -1
- sky/dashboard/out/_next/static/chunks/pages/workspaces/{[name]-fb1b4d3bfb047cad.js → [name]-bbfe5860c93470fd.js} +1 -1
- sky/dashboard/out/_next/static/chunks/pages/{workspaces-6fc994fa1ee6c6bf.js → workspaces-1891376c08050940.js} +1 -1
- sky/dashboard/out/_next/static/chunks/{webpack-4abaae354da0ba13.js → webpack-485984ca04e021d0.js} +1 -1
- sky/dashboard/out/_next/static/css/0748ce22df867032.css +3 -0
- sky/dashboard/out/clusters/[cluster]/[job].html +1 -1
- sky/dashboard/out/clusters/[cluster].html +1 -1
- sky/dashboard/out/clusters.html +1 -1
- sky/dashboard/out/config.html +1 -1
- sky/dashboard/out/index.html +1 -1
- sky/dashboard/out/infra/[context].html +1 -1
- sky/dashboard/out/infra.html +1 -1
- sky/dashboard/out/jobs/[job].html +1 -1
- sky/dashboard/out/jobs/pools/[pool].html +1 -1
- sky/dashboard/out/jobs.html +1 -1
- sky/dashboard/out/users.html +1 -1
- sky/dashboard/out/volumes.html +1 -1
- sky/dashboard/out/workspace/new.html +1 -1
- sky/dashboard/out/workspaces/[name].html +1 -1
- sky/dashboard/out/workspaces.html +1 -1
- sky/data/data_utils.py +92 -1
- sky/data/mounting_utils.py +39 -0
- sky/data/storage.py +166 -9
- sky/global_user_state.py +59 -83
- sky/jobs/server/server.py +2 -2
- sky/jobs/utils.py +5 -6
- sky/optimizer.py +1 -1
- sky/provision/kubernetes/instance.py +88 -19
- sky/provision/kubernetes/volume.py +2 -2
- sky/schemas/api/responses.py +2 -5
- sky/serve/replica_managers.py +2 -2
- sky/serve/serve_utils.py +9 -2
- sky/server/requests/payloads.py +2 -0
- sky/server/requests/requests.py +182 -84
- sky/server/requests/serializers/decoders.py +3 -3
- sky/server/requests/serializers/encoders.py +33 -6
- sky/server/server.py +34 -7
- sky/server/stream_utils.py +56 -13
- sky/setup_files/dependencies.py +2 -0
- sky/task.py +10 -0
- sky/templates/nebius-ray.yml.j2 +1 -0
- sky/utils/cli_utils/status_utils.py +8 -2
- sky/utils/context_utils.py +13 -1
- sky/utils/resources_utils.py +53 -29
- {skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/METADATA +50 -34
- {skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/RECORD +74 -73
- sky/dashboard/out/_next/static/chunks/2755.227c84f5adf75c6b.js +0 -26
- sky/dashboard/out/_next/static/chunks/3015-2dcace420c8939f4.js +0 -1
- sky/dashboard/out/_next/static/chunks/3294.6d5054a953a818cb.js +0 -1
- sky/dashboard/out/_next/static/chunks/4282-d2f3ef2fbf78e347.js +0 -1
- sky/dashboard/out/_next/static/chunks/8969-0389e2cb52412db3.js +0 -1
- sky/dashboard/out/_next/static/chunks/9360.07d78b8552bc9d17.js +0 -31
- sky/dashboard/out/_next/static/chunks/pages/clusters/[cluster]/[job]-c815b90e296b8075.js +0 -16
- sky/dashboard/out/_next/static/css/4c052b4444e52a58.css +0 -3
- /sky/dashboard/out/_next/static/{wDQ7aGvICzMNmjIaC37TT → DabuSAKsc_y0wyJxpTIdQ}/_ssgManifest.js +0 -0
- /sky/dashboard/out/_next/static/chunks/pages/{_app-513d332313670f2a.js → _app-bde01e4a2beec258.js} +0 -0
- {skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/WHEEL +0 -0
- {skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/entry_points.txt +0 -0
- {skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/licenses/LICENSE +0 -0
- {skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/top_level.txt +0 -0
{skypilot_nightly-1.0.0.dev20251026.dist-info → skypilot_nightly-1.0.0.dev20251029.dist-info}/RECORD
RENAMED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
sky/__init__.py,sha256=
|
|
1
|
+
sky/__init__.py,sha256=xSj-CXtwlIPTtuNESwErAXwpCXDbUlrBkZ_LlU5VeoM,6759
|
|
2
2
|
sky/admin_policy.py,sha256=XdcJnYqmude-LGGop-8U-FeiJcqtfYsYtIy4rmoCJnM,9799
|
|
3
3
|
sky/authentication.py,sha256=BK5Fkuk3EmS4DwCrxI_8a4SQHUNFYu9GztWSzPissSA,20123
|
|
4
|
-
sky/check.py,sha256=
|
|
4
|
+
sky/check.py,sha256=Dkp_cNygZozrMA8l5rjs311v6TbUN2YjSZjih8mLW-I,30407
|
|
5
5
|
sky/cli.py,sha256=VXIZryeTtJPYpPTBKymVPmuOCyh8knfWrq-qnkr6R-4,178
|
|
6
|
-
sky/cloud_stores.py,sha256=
|
|
7
|
-
sky/core.py,sha256
|
|
6
|
+
sky/cloud_stores.py,sha256=hHFsxErSV9rpX-qCdol3klHrKm0Hw0FSZiJJ-24Z5Ro,29222
|
|
7
|
+
sky/core.py,sha256=-5dVKl8HvpiuTTqSUDUPd87r4knnYOD5xAwABxWoE4s,58329
|
|
8
8
|
sky/dag.py,sha256=0ZpAEDXuIFo1SP7YJpF9vXiFxpRwqP8od-UXMg95td8,3929
|
|
9
9
|
sky/exceptions.py,sha256=DTQN5db2N6FntRRw0rRLyQG2q7HDvnylpvjkRF8wYBk,20830
|
|
10
10
|
sky/execution.py,sha256=klMjceOMCMDzyYczazrT-kiS6kGqfyBO_9KvlZzyTUw,35849
|
|
11
|
-
sky/global_user_state.py,sha256
|
|
11
|
+
sky/global_user_state.py,sha256=1psopgTljHowMLV36jpnrAEyjB2EGc05VSifpoUL7dc,106271
|
|
12
12
|
sky/models.py,sha256=ZKisLai7vqUr6_BPev6Oziu5N23WLzTh9nRtHSlRchw,3999
|
|
13
|
-
sky/optimizer.py,sha256=
|
|
13
|
+
sky/optimizer.py,sha256=JZDxm3lcpXXk_jlUE5lg25XCJhx_-E0RUBIXhCW8E-w,64160
|
|
14
14
|
sky/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
sky/resources.py,sha256=jojeuFmMEi-_7MJtR1i8SoEoUG89FrFHoZk1NQx7DzA,107795
|
|
16
16
|
sky/sky_logging.py,sha256=afm0zBNQ_Aa4AFlED2nDIlOkEsCTeyvHRx7FsfIsoLg,9618
|
|
17
17
|
sky/skypilot_config.py,sha256=vGcVxghXdV0o02FhgCMB7SyH-TPrcMPmMQdXWFVPsNQ,37601
|
|
18
|
-
sky/task.py,sha256=
|
|
18
|
+
sky/task.py,sha256=Hxq6cX4UIrt5WpVaTqB-ks6rF5964Iz7sI6D7SenA0I,79213
|
|
19
19
|
sky/adaptors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
sky/adaptors/aws.py,sha256=4caUTO5nxZQyDVPyQdoPljaF-Lz_Fa6NEnu3FfmLZd4,8633
|
|
21
21
|
sky/adaptors/azure.py,sha256=7l5jobSTsTUcTo3ptrgOpRgngHY92U64eQBPxvDe1HA,21986
|
|
22
22
|
sky/adaptors/cloudflare.py,sha256=8XFjBKMusnR7EmteEGAsAAQUG4J0lDlqk7lkaum_5-4,8276
|
|
23
23
|
sky/adaptors/common.py,sha256=D4PE2l4zSJxKboVYgvHcEBvwkT-dyBMn2uA-v_Ee7dk,3771
|
|
24
|
+
sky/adaptors/coreweave.py,sha256=63BnmsdJEkoDbDT9HFs11GZRvXDSyOBDA73FoAB3gCE,10278
|
|
24
25
|
sky/adaptors/cudo.py,sha256=WGvIQrlzJkGDe02Ve7pygA56tHwUc4kwS3XHW8kMFAA,239
|
|
25
26
|
sky/adaptors/do.py,sha256=vR5zddoWtSUTuOBeRobY1WAvb_ueaOlBzsnR_gwgBMM,1026
|
|
26
27
|
sky/adaptors/docker.py,sha256=_kzpZ0fkWHqqQAVVl0llTsCE31KYz3Sjn8psTBQHVkA,468
|
|
@@ -38,8 +39,8 @@ sky/adaptors/vast.py,sha256=tpvmHi7IkQNzbbHVkeo04kUSajoEpSzXr2XgeO_I1LU,695
|
|
|
38
39
|
sky/adaptors/vsphere.py,sha256=zJP9SeObEoLrpgHW2VHvZE48EhgVf8GfAEIwBeaDMfM,2129
|
|
39
40
|
sky/backends/__init__.py,sha256=l1xXpkzPFMma0ZkT4GzVMu7uvgS3AsECg6zLc0S3JHQ,702
|
|
40
41
|
sky/backends/backend.py,sha256=zmF6TuKtUwzsP1hq0TI9nuuUySlPc9sgeW6F4GC8Ckk,8352
|
|
41
|
-
sky/backends/backend_utils.py,sha256=
|
|
42
|
-
sky/backends/cloud_vm_ray_backend.py,sha256=
|
|
42
|
+
sky/backends/backend_utils.py,sha256=Me206396KzCyM9d5_fCDjH2Cn0Qw-61N0BF072Kzn_A,179251
|
|
43
|
+
sky/backends/cloud_vm_ray_backend.py,sha256=UHXf-ii2IB2KzCIonIYJqbzGdn_rFRhyVX9pWM8SwQw,309450
|
|
43
44
|
sky/backends/docker_utils.py,sha256=_EhM6NStZDAwcegppQqExaB5iuSn1qL4xFFUqXAz2Uk,8392
|
|
44
45
|
sky/backends/local_docker_backend.py,sha256=ncc8-WJrMRnqPl9fzvGr-nftIz7tTzKtUi-p_z_nH60,17366
|
|
45
46
|
sky/backends/wheel_utils.py,sha256=DE71Muq5qLRhGpCVg1Rb6YOI7S_BzT8Hak27Pz8L4yw,12486
|
|
@@ -86,11 +87,11 @@ sky/catalog/data_fetchers/fetch_vsphere.py,sha256=Yf7tKzwJsQ_4f64IT1EAP108C1D3Rg
|
|
|
86
87
|
sky/client/__init__.py,sha256=pz6xvVSd9X-gwqbsDL0E9QOojYqM0KAD0j-NCyCIF1k,38
|
|
87
88
|
sky/client/common.py,sha256=j8ENgeRN3KdKBf0-pi1K9w1HtkqrkBR12QtF_wGWG8M,16950
|
|
88
89
|
sky/client/oauth.py,sha256=sNJ_DMsSTcxluj5FeNQ2IafZJLImRFmCAZ79bXeABn4,2871
|
|
89
|
-
sky/client/sdk.py,sha256=
|
|
90
|
+
sky/client/sdk.py,sha256=fiNkg_CtoNDzqCPM-i230c4W_4IIa7WlDp9ga8TMa2Y,109351
|
|
90
91
|
sky/client/sdk_async.py,sha256=8G_E9Dn4d80rV-wxRH4zZUXZGAm6rLw3C8PI07fXwwQ,31106
|
|
91
92
|
sky/client/service_account_auth.py,sha256=5jXk0G6ufuW-SHCO7BEHQeTO0_2a8KfFmA63auXFRj4,1529
|
|
92
93
|
sky/client/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
|
-
sky/client/cli/command.py,sha256=
|
|
94
|
+
sky/client/cli/command.py,sha256=qx5M92K1X-PUynTmy8fQce5DZBItWKQpTusQFN5B20k,258281
|
|
94
95
|
sky/client/cli/deprecation_utils.py,sha256=H_d5UyF2CekEoThduAzt5cihBO8hwKYMu0-Wqfbjv5E,3370
|
|
95
96
|
sky/client/cli/flags.py,sha256=hwQ4Y9lwTbfqYoINWUTqRMGBoXxBy4_E5hqtXbBcEeg,12219
|
|
96
97
|
sky/client/cli/table_utils.py,sha256=2aFdevW6B18mztZdhynP4ptgKW4Yp7bYC9B_ZWmzjiw,10215
|
|
@@ -123,29 +124,30 @@ sky/clouds/utils/azure_utils.py,sha256=NToRBnhEyuUvb-nBnsKTxjhOBRkMcrelL8LK4w6s4
|
|
|
123
124
|
sky/clouds/utils/gcp_utils.py,sha256=09MF4Vx0EW7S-GXGpyxpl2aQlHrqeu9ioV0nyionAyk,9890
|
|
124
125
|
sky/clouds/utils/oci_utils.py,sha256=TFqAqRLggg4Z0bhxrrq8nouSSomZy-ub1frHXEkud2M,7302
|
|
125
126
|
sky/clouds/utils/scp_utils.py,sha256=VGuccVO5uFGr8-yolWSoYrgr11z6cIeDBGcqkBzAyOs,18409
|
|
126
|
-
sky/dashboard/out/404.html,sha256=
|
|
127
|
-
sky/dashboard/out/clusters.html,sha256=
|
|
128
|
-
sky/dashboard/out/config.html,sha256=
|
|
127
|
+
sky/dashboard/out/404.html,sha256=ubG1fPudJbxujpqLqF8s8a2oQNNc99qbevcs1Chdi5Q,1423
|
|
128
|
+
sky/dashboard/out/clusters.html,sha256=0xIYJvXymKdil25YaL_F9s3WsR0aKGrDhI-FfyaHIUs,1418
|
|
129
|
+
sky/dashboard/out/config.html,sha256=c0SBu_kWa__dOwoOh4VIAoh8IUk937bP91Gk-0PxP8o,1414
|
|
129
130
|
sky/dashboard/out/favicon.ico,sha256=XilUZZglAl_1zRsg85QsbQgmQAzGPQjcUIJ-A3AzYn8,93590
|
|
130
|
-
sky/dashboard/out/index.html,sha256=
|
|
131
|
-
sky/dashboard/out/infra.html,sha256
|
|
132
|
-
sky/dashboard/out/jobs.html,sha256=
|
|
131
|
+
sky/dashboard/out/index.html,sha256=nigE-jzy4aAQO0doVNBiZRHEOxXQuGqJIAxxLUqHxzQ,1407
|
|
132
|
+
sky/dashboard/out/infra.html,sha256=-bCNHx0wwY4bCumcgUx2G2naDDTjfZbQ9tRu0cEqIe8,1412
|
|
133
|
+
sky/dashboard/out/jobs.html,sha256=yAOcGhh6g280geePAidLKgbLqBoaE3jxlPCdDlNYpWk,1410
|
|
133
134
|
sky/dashboard/out/skypilot.svg,sha256=c0iRtlfLlaUm2p0rG9NFmo5FN0Qhf3pq5Xph-AeMPJw,5064
|
|
134
|
-
sky/dashboard/out/users.html,sha256=
|
|
135
|
-
sky/dashboard/out/volumes.html,sha256=
|
|
136
|
-
sky/dashboard/out/workspaces.html,sha256=
|
|
137
|
-
sky/dashboard/out/_next/static/
|
|
135
|
+
sky/dashboard/out/users.html,sha256=F3VLXRMKvm3TklLtimr6wBlbo6M2rEAwgIMNpH_Lk0A,1412
|
|
136
|
+
sky/dashboard/out/volumes.html,sha256=EBcdyD-nNgBBgtUkBB8Dz4n1VY9UwFhT9rYY4VYOHUE,1416
|
|
137
|
+
sky/dashboard/out/workspaces.html,sha256=v5f-OukWahy-0Jc_8ZJWe_y4odc1oYLfOZ3v_iPTDDM,1422
|
|
138
|
+
sky/dashboard/out/_next/static/DabuSAKsc_y0wyJxpTIdQ/_buildManifest.js,sha256=ja5xIERT0vnQiXmxqHtZJIO7H0_oIRoYwmNdpEB-JuE,2394
|
|
139
|
+
sky/dashboard/out/_next/static/DabuSAKsc_y0wyJxpTIdQ/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
|
|
140
|
+
sky/dashboard/out/_next/static/chunks/1141-c3c10e2c6ed71a8f.js,sha256=wLWbYmunpjre6_MWVJ0S6bcNxl80ZDIQbKpemswPs1g,18362
|
|
138
141
|
sky/dashboard/out/_next/static/chunks/1272-1ef0bf0237faccdb.js,sha256=VJ6y-Z6Eg2T93hQIRfWAbjAkQ7nQhglmIaVbEpKSILY,38451
|
|
139
142
|
sky/dashboard/out/_next/static/chunks/1871-81adbc5f25dff78f.js,sha256=-JlmbDZU15pEAv54lv5-4j7UziaKTaYyF9FSwRdB-wM,20697
|
|
140
143
|
sky/dashboard/out/_next/static/chunks/2350.fab69e61bac57b23.js,sha256=TQCHO4AUL9MZo1e_8GOiL8y6vjQpj5tdXZ8oCKwM1LA,271
|
|
141
144
|
sky/dashboard/out/_next/static/chunks/2369.fc20f0c2c8ed9fe7.js,sha256=qkKMDvgq-AVeC811VipJzXHAB__R4G2eHj-I-7_N2Ek,8177
|
|
142
|
-
sky/dashboard/out/_next/static/chunks/2755.
|
|
143
|
-
sky/dashboard/out/_next/static/chunks/
|
|
144
|
-
sky/dashboard/out/_next/static/chunks/
|
|
145
|
-
sky/dashboard/out/_next/static/chunks/3785.538eb23a098fc304.js,sha256=Own0ZujlOtoLd5kzfKanOn3lqYPVttITN12JIQe8ykw,4538
|
|
145
|
+
sky/dashboard/out/_next/static/chunks/2755.a239c652bf8684dd.js,sha256=3vi_o3hQZNt0Q521M0ojuAVSfK1LXFguP0e7LSggFV8,56936
|
|
146
|
+
sky/dashboard/out/_next/static/chunks/3294.87a13fba0058865b.js,sha256=sijIiwrwYbDGI4657rzsyK_k15G07t3RWNq4vPHkbk0,42374
|
|
147
|
+
sky/dashboard/out/_next/static/chunks/3785.170be320e0060eaf.js,sha256=wOmGq6LNTMXjzEZJgMEUmvVPT3bbnfhcJ-dZZuhyPC0,4538
|
|
146
148
|
sky/dashboard/out/_next/static/chunks/3850-ff4a9a69d978632b.js,sha256=XphBY9psNzmvGD28zgDunQEb-TX0_eOVaElmcuOjD1g,7455
|
|
147
149
|
sky/dashboard/out/_next/static/chunks/3937.210053269f121201.js,sha256=0tYP8uuog_WLEZmEuej4zenfX0PUa17nR874wSSBgqI,54583
|
|
148
|
-
sky/dashboard/out/_next/static/chunks/4282-
|
|
150
|
+
sky/dashboard/out/_next/static/chunks/4282-49b2065b7336e496.js,sha256=plYl5-iJknhrdzEIWBxYKTLFc4rkNeSBcXvoEzXFhJk,8883
|
|
149
151
|
sky/dashboard/out/_next/static/chunks/4725.a830b5c9e7867c92.js,sha256=lB9_aX3RDlK4C1hcKfD9_AJ3ekjxSICk3mRNhoDL1Ek,16007
|
|
150
152
|
sky/dashboard/out/_next/static/chunks/4937.a2baa2df5572a276.js,sha256=WSR1BWr-lYNW6tNy2zN_eeAM16NbzByx5kzjF06vkIA,9318
|
|
151
153
|
sky/dashboard/out/_next/static/chunks/5739-d67458fcb1386c92.js,sha256=UMLEyZH3SWcAdDnaOYztbUYUzCCP2t0KiwP2vT_swDQ,65504
|
|
@@ -158,51 +160,50 @@ sky/dashboard/out/_next/static/chunks/6989-01359c57e018caa4.js,sha256=iIEGQp3dsC
|
|
|
158
160
|
sky/dashboard/out/_next/static/chunks/6990-f6818c84ed8f1c86.js,sha256=S_U1sK3gxmP1Lw9QkbrfWmjpdc1qeR2olYlNx04klOQ,16152
|
|
159
161
|
sky/dashboard/out/_next/static/chunks/7359-c8d04e06886000b3.js,sha256=xYHgSaC-IzLl8rjWP56VOQOt_34T0pZ-37e-sAyua74,9624
|
|
160
162
|
sky/dashboard/out/_next/static/chunks/7411-b15471acd2cba716.js,sha256=Dnmr9e-yZQbnkjwzqIZU3aK-3u1Tqr8STF-ODYWLkaw,13304
|
|
163
|
+
sky/dashboard/out/_next/static/chunks/7615-80aa7b09f45a86d2.js,sha256=eiIh_ag7EurH7uNPas2gTrHXlR0hue81b9zWLiyR-Sg,40501
|
|
161
164
|
sky/dashboard/out/_next/static/chunks/8640.5b9475a2d18c5416.js,sha256=FTVy8VJRwSeEK7QH0GzTjs1b8aIz9x-pVlRcSVHdrfw,2398
|
|
162
|
-
sky/dashboard/out/_next/static/chunks/8969-
|
|
165
|
+
sky/dashboard/out/_next/static/chunks/8969-4ed9236db997b42b.js,sha256=vh1xIMBPL5fjVhjK_S9ZWlX-YkfrA4Fg0lh8p5srM0w,14640
|
|
163
166
|
sky/dashboard/out/_next/static/chunks/9025.c12318fb6a1a9093.js,sha256=1Txv8nMuBYtB0UoWdwmFbkA2iB85jgKB1EJJrE1ETDo,10605
|
|
164
167
|
sky/dashboard/out/_next/static/chunks/9353-cff34f7e773b2e2b.js,sha256=NQ69Op6P6pP4ZkMjhUPSEgzcd5czXQ9BLOWz6IeYWz4,17611
|
|
165
|
-
sky/dashboard/out/_next/static/chunks/9360.
|
|
168
|
+
sky/dashboard/out/_next/static/chunks/9360.10a3aac7aad5e3aa.js,sha256=72PsXUTpQwa1AHMSYFn-MTqjTSBUrywy3xBOOJkyjeA,20788
|
|
166
169
|
sky/dashboard/out/_next/static/chunks/9847.3aaca6bb33455140.js,sha256=kN42YbIl4M-2zBVFZzHWFGgzF0qZ4w11P_Kn6juuXZI,39896
|
|
167
170
|
sky/dashboard/out/_next/static/chunks/fd9d1056-86323a29a8f7e46a.js,sha256=2lquiZSfbI-gX4j4TW4JSMLL_D5ShqwydgWpFyXrTy8,172834
|
|
168
171
|
sky/dashboard/out/_next/static/chunks/framework-cf60a09ccd051a10.js,sha256=_QbamfAbTV4_xMVOTjz0rhiAPAi8ET5MuSNjjW5oMng,140965
|
|
169
172
|
sky/dashboard/out/_next/static/chunks/main-app-587214043926b3cc.js,sha256=t7glRfataAjNw691Wni-ZU4a3BsygRzPKoI8NOm-lsY,116244
|
|
170
173
|
sky/dashboard/out/_next/static/chunks/main-f15ccb73239a3bf1.js,sha256=jxOPLDVX3rkMc_jvGx2a-N2v6mvfOa8O6V0o-sLT0tI,110208
|
|
171
174
|
sky/dashboard/out/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
|
|
172
|
-
sky/dashboard/out/_next/static/chunks/webpack-
|
|
173
|
-
sky/dashboard/out/_next/static/chunks/pages/_app-
|
|
175
|
+
sky/dashboard/out/_next/static/chunks/webpack-485984ca04e021d0.js,sha256=j7Murp_sQMeuWxP81xubtmtDO7n580DrRGnn_wlAkIA,4770
|
|
176
|
+
sky/dashboard/out/_next/static/chunks/pages/_app-bde01e4a2beec258.js,sha256=ZLZluABDOfg5D5yPS3kly42sCQTmBuI20Tcisv_Sr9A,95518
|
|
174
177
|
sky/dashboard/out/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
|
|
175
178
|
sky/dashboard/out/_next/static/chunks/pages/clusters-9e0df5442b04f7d0.js,sha256=vJs6GPARm5X6JFKdkQGZgnnuZR9tzqKhFGutKDJp0_8,869
|
|
176
179
|
sky/dashboard/out/_next/static/chunks/pages/config-dfb9bf07b13045f4.js,sha256=imQqQzmk2dN9ly16TS_d7BV1rHuhzYxrkyx4YUylJCw,796
|
|
177
180
|
sky/dashboard/out/_next/static/chunks/pages/index-444f1804401f04ea.js,sha256=caOxDw7dl3NlA86txmKO4O-D02wQ_o8WbGleTa-bU1I,482
|
|
178
181
|
sky/dashboard/out/_next/static/chunks/pages/infra-c84a3b8a9d599b02.js,sha256=6n-qM-Lnba_O1VeECtRXe5hZqS84Y-4lupwBom3Bkgs,839
|
|
179
|
-
sky/dashboard/out/_next/static/chunks/pages/jobs-
|
|
180
|
-
sky/dashboard/out/_next/static/chunks/pages/users-
|
|
182
|
+
sky/dashboard/out/_next/static/chunks/pages/jobs-7eee823559e5cf9f.js,sha256=IckqalcdtnDUyIluq-N8kXKLc0aUJVQmPAul79JU8Co,842
|
|
183
|
+
sky/dashboard/out/_next/static/chunks/pages/users-2b172f13f8538a7a.js,sha256=IqJHGjybu16uHZtsmWLNAq2xpRVJftc8Y83Di_5nI_I,858
|
|
181
184
|
sky/dashboard/out/_next/static/chunks/pages/volumes-d2af9d22e87cc4ba.js,sha256=c9C0dqj-5vhByRT7E2kpe0tvrgPETTHjNc8SUa55rQA,826
|
|
182
|
-
sky/dashboard/out/_next/static/chunks/pages/workspaces-
|
|
183
|
-
sky/dashboard/out/_next/static/chunks/pages/clusters/[cluster]-
|
|
184
|
-
sky/dashboard/out/_next/static/chunks/pages/clusters/[cluster]/[job]-
|
|
185
|
+
sky/dashboard/out/_next/static/chunks/pages/workspaces-1891376c08050940.js,sha256=xlUnm5HFa71yHCUhlJqGh4tZf71i2k4n-n-Gdkt7H7g,863
|
|
186
|
+
sky/dashboard/out/_next/static/chunks/pages/clusters/[cluster]-1704039ccaf997cf.js,sha256=ZC5IjfHMKZoNvX9UYvuZFZ7yqLoJ2fTuDkrob0oYoLI,18489
|
|
187
|
+
sky/dashboard/out/_next/static/chunks/pages/clusters/[cluster]/[job]-ac4a217f17b087cb.js,sha256=IGVEB7gR1ciAzgVx-nbF9C0lVpefli72S3EaoHvr3pc,26750
|
|
185
188
|
sky/dashboard/out/_next/static/chunks/pages/infra/[context]-9b6e47c2e8b485a2.js,sha256=RIGSY2uYiG96kDZgIZCjis8lINGkHD3vwepRHqzjVvA,847
|
|
186
189
|
sky/dashboard/out/_next/static/chunks/pages/jobs/[job]-eb5822dac0c9509b.js,sha256=ywlhEuCMXrbnrZU95mM_7EcEWaGYbctPdT4T75T_TQo,29936
|
|
187
190
|
sky/dashboard/out/_next/static/chunks/pages/jobs/pools/[pool]-e020fd69dbe76cea.js,sha256=5eIt_lFp0D_BEUV71mu4rNxapiZpB8368SMtRbh-Qec,26183
|
|
188
191
|
sky/dashboard/out/_next/static/chunks/pages/workspace/new-3f88a1c7e86a3f86.js,sha256=83s5N5CZwIaRcmYMfqn2we60n2VRmgFw6Tbx18b8-e0,762
|
|
189
|
-
sky/dashboard/out/_next/static/chunks/pages/workspaces/[name]-
|
|
190
|
-
sky/dashboard/out/_next/static/css/
|
|
191
|
-
sky/dashboard/out/
|
|
192
|
-
sky/dashboard/out/
|
|
193
|
-
sky/dashboard/out/
|
|
194
|
-
sky/dashboard/out/
|
|
195
|
-
sky/dashboard/out/
|
|
196
|
-
sky/dashboard/out/jobs/[job].html,sha256=zByBeTJ9IeDubBJO_5kwGqFOJo3MWIKjJob0RdJRaE4,2305
|
|
197
|
-
sky/dashboard/out/jobs/pools/[pool].html,sha256=9kqhVV4wSm-Qnl-DUfiBVKK6m32H-RvNPXGfG6QvAYg,2143
|
|
192
|
+
sky/dashboard/out/_next/static/chunks/pages/workspaces/[name]-bbfe5860c93470fd.js,sha256=HgFshvSkQ5d2zqiroEamSPU8oH-T_586y6D7MSwoGDo,1495
|
|
193
|
+
sky/dashboard/out/_next/static/css/0748ce22df867032.css,sha256=rNxC33B_yW5Yn9SEfUu3QDjgMD7BIMT9kwsmqCcgk4Y,56737
|
|
194
|
+
sky/dashboard/out/clusters/[cluster].html,sha256=KBY7AmIxaySrTiGjp-WSp2jiYgc-I6X5HfpzRzR5TqM,2937
|
|
195
|
+
sky/dashboard/out/clusters/[cluster]/[job].html,sha256=toqHv8w6MostGM0O2SUozOQqQqmFzAM1YzjEz8WfaWY,2073
|
|
196
|
+
sky/dashboard/out/infra/[context].html,sha256=0sakix9DPpV5BA9g1sqp7fafbfT1QIDZfswzTRMqJRc,1436
|
|
197
|
+
sky/dashboard/out/jobs/[job].html,sha256=2MN1AuA-QfRkKXU9j7AkvvE3x1Wr_wKGLWTWzk2f-7g,2305
|
|
198
|
+
sky/dashboard/out/jobs/pools/[pool].html,sha256=67DjEZphzIgIpO8lpNFH1A2DUuERY7FFUxpfGgmt4Fw,2143
|
|
198
199
|
sky/dashboard/out/videos/cursor-small.mp4,sha256=8tRdp1vjawOrXUar1cfjOc-nkaKmcwCPZx_LO0XlCvQ,203285
|
|
199
|
-
sky/dashboard/out/workspace/new.html,sha256=
|
|
200
|
-
sky/dashboard/out/workspaces/[name].html,sha256=
|
|
200
|
+
sky/dashboard/out/workspace/new.html,sha256=JyfHsmZ55n3wQOBsNW-xXFB_noz_RjEQY8dvpLluMNA,1428
|
|
201
|
+
sky/dashboard/out/workspaces/[name].html,sha256=Y8Uryh8H9Xvx5rkQHuU7WPKw-Zwx8OlAlSu4vfSHW1o,2759
|
|
201
202
|
sky/data/__init__.py,sha256=Nhaf1NURisXpZuwWANa2IuCyppIuc720FRwqSE2oEwY,184
|
|
202
203
|
sky/data/data_transfer.py,sha256=N8b0CQebDuHieXjvEVwlYmK6DbQxUGG1RQJEyTbh3dU,12040
|
|
203
|
-
sky/data/data_utils.py,sha256=
|
|
204
|
-
sky/data/mounting_utils.py,sha256=
|
|
205
|
-
sky/data/storage.py,sha256=
|
|
204
|
+
sky/data/data_utils.py,sha256=jzqTZ3jzhmEFCSmPewZBIlyFd9oKQ8oOsoKxUklIgc0,38849
|
|
205
|
+
sky/data/mounting_utils.py,sha256=z18byBOZmVFsWbhCtS-kZaBuv-KnO3zT4QN-FOlMEEA,28178
|
|
206
|
+
sky/data/storage.py,sha256=MRdzcWD6RB9ZTPKVIG04LJLaWdqneiOyRpTRyIHeMHE,216710
|
|
206
207
|
sky/data/storage_utils.py,sha256=bqCE7WQVOpFMxqVRkxee4oLn-iImh4ZL8qB5IicXh0w,14230
|
|
207
208
|
sky/jobs/__init__.py,sha256=BiABNdlab7xZDOv4C34kc1XuxG6C_Ip7Q96mT2iCnIg,1686
|
|
208
209
|
sky/jobs/constants.py,sha256=KF4g6B9ueU1jOE7BltMif2pPqCKOt0jeyTdvlxOJD5k,3057
|
|
@@ -210,13 +211,13 @@ sky/jobs/controller.py,sha256=S6JFb5R6BQHLROVB_bzV_blIWJN7NJ_DOyTBy_Jh-Es,57083
|
|
|
210
211
|
sky/jobs/recovery_strategy.py,sha256=FUyHTOtJ0rvTL-vznX8FcJP84ORlavewptLXr3r9evI,38423
|
|
211
212
|
sky/jobs/scheduler.py,sha256=sUa83wiiuv0bwYDcn9-J1uCqZjhUkfE8z_hjG5Xl7rY,17210
|
|
212
213
|
sky/jobs/state.py,sha256=8dAhqcnEzPUxbsGvWWA1baKjnpb6xNHKqE3C6vv014Q,98052
|
|
213
|
-
sky/jobs/utils.py,sha256=
|
|
214
|
+
sky/jobs/utils.py,sha256=QlP_VJayleaW_G2OVUTnykVx0cMNxIYNnTVOElpBty8,103732
|
|
214
215
|
sky/jobs/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
216
|
sky/jobs/client/sdk.py,sha256=ZF-rtLhynC1VK8UNO3aaxcluOo3QnltokGYxJfhI7_g,17818
|
|
216
217
|
sky/jobs/client/sdk_async.py,sha256=RlYs0S5cenlIH8NIM74QYhLeDR0qqCYK3MVGWBhCu8c,5188
|
|
217
218
|
sky/jobs/server/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
218
219
|
sky/jobs/server/core.py,sha256=TkjqVXHwoIgyhCOp1WrHYTiKX0ilpaIxhShPl7tSIuk,48638
|
|
219
|
-
sky/jobs/server/server.py,sha256=
|
|
220
|
+
sky/jobs/server/server.py,sha256=ffCvclUG435hQIR2lkS69slTcaODJkxLgDhyrjB3WCA,9654
|
|
220
221
|
sky/jobs/server/utils.py,sha256=JuTkyqNJNR4JMBSLGPIyv6BA8mwppRzrZTjPNAxJ7cs,5077
|
|
221
222
|
sky/logs/__init__.py,sha256=zW4gAEvWDz5S53FlLp3krAuKrmTSJ0e3kZDnhxSbW4E,722
|
|
222
223
|
sky/logs/agent.py,sha256=Jwpzio10P45BS6cugt6Ovu3_ZhysuXVcL_aneYZQENE,4766
|
|
@@ -269,11 +270,11 @@ sky/provision/hyperbolic/utils.py,sha256=NCa3ULvIi64-YHYoOnPd3SShlJ6VuQsEwaTBqHF
|
|
|
269
270
|
sky/provision/kubernetes/__init__.py,sha256=xUHCbN5fkbnM5_E1trFHHOndTsvEwBdi-8qvvpK92io,1030
|
|
270
271
|
sky/provision/kubernetes/config.py,sha256=iY6WfgmRK_z5mzHGe_8hQS2Op3qKmZ18UY2MgArIGRE,27782
|
|
271
272
|
sky/provision/kubernetes/constants.py,sha256=vZJQsAVjAgwsOskB48tIFSXtNw7IFnJOQE_H6N-vOYQ,1130
|
|
272
|
-
sky/provision/kubernetes/instance.py,sha256=
|
|
273
|
+
sky/provision/kubernetes/instance.py,sha256=mxaZQpztKS6SoIB5wEeyXui0_32D0KMfhjFx2pMS0W4,80542
|
|
273
274
|
sky/provision/kubernetes/network.py,sha256=NXwG2VGA-xekmbydFbivdfyZla0JVW2cWN4SDEe5x4s,12822
|
|
274
275
|
sky/provision/kubernetes/network_utils.py,sha256=qFiACDq4S1WKMyVbxhGax-K2SJM-4viC8CyEzwvXt6c,11480
|
|
275
276
|
sky/provision/kubernetes/utils.py,sha256=8kfYAae6fqAA-gqsC-agUN5_QvdxLG3rZW4nhEefqIo,153961
|
|
276
|
-
sky/provision/kubernetes/volume.py,sha256=
|
|
277
|
+
sky/provision/kubernetes/volume.py,sha256=jgGiyssaP4m6dChtR5RMyxUl2PD1Qbhdt2i2NcQglU8,11521
|
|
277
278
|
sky/provision/kubernetes/manifests/fusermount-server-daemonset.yaml,sha256=5oDGZUsDpO1B9E9JZptkakdIy7LWVR_CqHFFZpMulJE,1270
|
|
278
279
|
sky/provision/lambda_cloud/__init__.py,sha256=6EEvSgtUeEiup9ivIFevHmgv0GqleroO2X0K7TRa2nE,612
|
|
279
280
|
sky/provision/lambda_cloud/config.py,sha256=jq1iLzp4Up61r4JGxvtpVbJlgXnea3LHYQhCQyyl7ik,272
|
|
@@ -337,7 +338,7 @@ sky/provision/vsphere/common/vapiconnect.py,sha256=piU29ZfdYCJQMV5n-5J0EQ8G56AWO
|
|
|
337
338
|
sky/provision/vsphere/common/vim_utils.py,sha256=TjDgxIzV5Iuc5j1aFNL3NpaOwS0KKXhEUEwq7dzQT-s,17849
|
|
338
339
|
sky/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
339
340
|
sky/schemas/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
340
|
-
sky/schemas/api/responses.py,sha256=
|
|
341
|
+
sky/schemas/api/responses.py,sha256=JUSLfmCTJM76bU7Uhs6Z0mAcZ6FYYf9oJ6iXIM8pF0M,6780
|
|
341
342
|
sky/schemas/db/README,sha256=M93NBw29groxXu-Gy7sgqSyxpppXpRBbXxEXANLhVCo,122
|
|
342
343
|
sky/schemas/db/env.py,sha256=T-2a00Z9RcaIqcMu90R-RNA_lCutsWBRopDy4LQFnoM,2918
|
|
343
344
|
sky/schemas/db/script.py.mako,sha256=04kgeBtNMa4cCnG8CfQcKt6P6rnloIfj8wy0u_DBydM,704
|
|
@@ -375,10 +376,10 @@ sky/serve/constants.py,sha256=VYQKGuwaPI9o2xC5HzB0TGKdiMeE9gOiX82K5yGEfGg,5062
|
|
|
375
376
|
sky/serve/controller.py,sha256=lyB6EHIfEMqKg-gshFLKUHEZqs77ufsD_ev6catz10Q,13975
|
|
376
377
|
sky/serve/load_balancer.py,sha256=gQpjOwnpu2HLdymbYCeCgJodDklMEwYMGgYU9ThXHPM,15774
|
|
377
378
|
sky/serve/load_balancing_policies.py,sha256=hhPrcuwT_rEJx4DMRC6iuLpUY8wOabUtXtPK7clg1F8,10148
|
|
378
|
-
sky/serve/replica_managers.py,sha256=
|
|
379
|
+
sky/serve/replica_managers.py,sha256=q-UQwvZ45MHHlU1J7JYj4svSiCsquEtaYx1FpbXGrzc,70860
|
|
379
380
|
sky/serve/serve_rpc_utils.py,sha256=6MTwPRt7h0pVnOthO4JUs1UEBbCLZ-prd-Pzjy_QPmw,7116
|
|
380
381
|
sky/serve/serve_state.py,sha256=pRtxWBagIUUvgrKNZ51-9xfW0hadSGILIMzVRzm_0IU,33321
|
|
381
|
-
sky/serve/serve_utils.py,sha256=
|
|
382
|
+
sky/serve/serve_utils.py,sha256=LNGmegwQeSSFlpelx_ZceI4Mv_f0OZrkmPJkxe4VsDk,71129
|
|
382
383
|
sky/serve/service.py,sha256=J3KeyHfMJaoTszHRQ6mhgKNEi-UBUBNr9F8WMq_NF4M,18363
|
|
383
384
|
sky/serve/service_spec.py,sha256=5AjPXjtqc4e1CJWHiH998suRJMkHcQHi4mUaX52_Mhs,24800
|
|
384
385
|
sky/serve/spot_placer.py,sha256=auRlYZNg8uIW-lxiirxpDP-iIaJtkrhesm6OGMgwPq4,11288
|
|
@@ -397,9 +398,9 @@ sky/server/constants.py,sha256=54w38B5AsRVCMCPP_iN7YoaApxbcttt3pue0VEP9DWg,2615
|
|
|
397
398
|
sky/server/daemons.py,sha256=pEmLE0JsR6C8ZSxt8sr4ncPfZcDYvXqDCycU0IDcQ8U,9238
|
|
398
399
|
sky/server/metrics.py,sha256=8mTyD-zo2gyAJSPJyCtTR8oImeFJ2K-sAdlje5Bf5U4,5781
|
|
399
400
|
sky/server/rest.py,sha256=XDvKhVY9br9zt4TNbygUH_XDbH_wugzxKNYlbqVHJjY,16045
|
|
400
|
-
sky/server/server.py,sha256=
|
|
401
|
+
sky/server/server.py,sha256=bSGnZhBqlAuzcRLzmNEVuPtujVGMeyoSkvhNEKtEji4,89435
|
|
401
402
|
sky/server/state.py,sha256=YbVOMJ1JipQQv17gLIGyiGN7MKfnP83qlUa5MB1z0Yk,747
|
|
402
|
-
sky/server/stream_utils.py,sha256=
|
|
403
|
+
sky/server/stream_utils.py,sha256=2SSVU55LcrE4NBTjWASpOlYmnocVBzF90vSiaedkDM0,18578
|
|
403
404
|
sky/server/uvicorn.py,sha256=etFyJP9Kz5uRhM619VrQMiVhJKWPxTqbaz9H1wW1EWs,11955
|
|
404
405
|
sky/server/versions.py,sha256=3atZzUa7y1XeKNcrfVxKWAo_5ZyCOnbY7DKpIqed7Do,10011
|
|
405
406
|
sky/server/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -411,20 +412,20 @@ sky/server/html/token_page.html,sha256=eUndS5u1foL9vaWGPRTLMt7lCzD1g0wYJ2v_EeeFz
|
|
|
411
412
|
sky/server/requests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
412
413
|
sky/server/requests/event_loop.py,sha256=OhpPbuce65bbjpGRlcJa78AVnYSm08SzFKt70ypCUuQ,1211
|
|
413
414
|
sky/server/requests/executor.py,sha256=quK4m2OVY_7uFASLAo-P8mzTu2i820y5hQWU8tyLbFI,37029
|
|
414
|
-
sky/server/requests/payloads.py,sha256=
|
|
415
|
+
sky/server/requests/payloads.py,sha256=UjtddICL5dyIWCpT2HSlWPGQwSmLqlmMD8C6PM4Sz3U,28367
|
|
415
416
|
sky/server/requests/preconditions.py,sha256=L_4ow2Twl0h2sk2P4waL2e1WVfYm4p4DFwmR6Nip8Bw,7486
|
|
416
417
|
sky/server/requests/process.py,sha256=UpJp5rZizNMFRCNRtudFSjbcJhFarFbtAGDWI9x_ZyE,13197
|
|
417
|
-
sky/server/requests/requests.py,sha256=
|
|
418
|
+
sky/server/requests/requests.py,sha256=0T5MQCKVqoduBK4bUneYylgUpzawLju3aK-7-pCtMLg,44607
|
|
418
419
|
sky/server/requests/threads.py,sha256=AwzbcoeLDz5RnSi0jJSD3u4lGDiYkCaa1qDvPkUqeMI,4131
|
|
419
420
|
sky/server/requests/queues/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
420
421
|
sky/server/requests/queues/local_queue.py,sha256=X6VkBiUmgd_kfqIK1hCtMWG1b8GiZbY70TBiBR6c6GY,416
|
|
421
422
|
sky/server/requests/queues/mp_queue.py,sha256=jDqP4Jd28U3ibSFyMR1DF9I2OWZrPZqFJrG5S6RFpyw,3403
|
|
422
423
|
sky/server/requests/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
423
|
-
sky/server/requests/serializers/decoders.py,sha256=
|
|
424
|
-
sky/server/requests/serializers/encoders.py,sha256=
|
|
424
|
+
sky/server/requests/serializers/decoders.py,sha256=ATRaQoor9OgVUrFuVy0nHJbBuJf1nSi-0fAHaitruXk,8853
|
|
425
|
+
sky/server/requests/serializers/encoders.py,sha256=whfOlrsZkZTHE5MLO3a1TqwLu_CxwYWWmsFVlN_d6tE,9694
|
|
425
426
|
sky/setup_files/MANIFEST.in,sha256=4gbgHHwSdP6BbMJv5XOt-2K6wUVWF_T9CGsdESvh918,776
|
|
426
427
|
sky/setup_files/alembic.ini,sha256=d85kX5QMzCHxrgOct7StGixQEkaO7LKGKjSXLIwBRZI,5201
|
|
427
|
-
sky/setup_files/dependencies.py,sha256=
|
|
428
|
+
sky/setup_files/dependencies.py,sha256=Aiezyr7MD5LxbqvV1pB2E1A060tn7OcTMuRr7J8hePo,9491
|
|
428
429
|
sky/setup_files/setup.py,sha256=4M8u9Y4wwmFCJk-EfsnMWtpNq7ynzqbjdVTKW3w5GXA,7820
|
|
429
430
|
sky/skylet/LICENSE,sha256=BnFrJSvUFpMUoH5mOpWnEvaC5R6Uux8W6WXgrte8iYg,12381
|
|
430
431
|
sky/skylet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -478,7 +479,7 @@ sky/templates/kubernetes-port-forward-proxy-command.sh,sha256=iw7mypHszg6Ggq9Mby
|
|
|
478
479
|
sky/templates/kubernetes-ray.yml.j2,sha256=ojqdmqBL-pv9OZHj-lbsz2ZVePbDVs3XMc7sxllaIYo,64661
|
|
479
480
|
sky/templates/lambda-ray.yml.j2,sha256=PbUjxrGhyxhXxL2cmONAI_PRsua3I3Xr5V8yoEy7H6c,4760
|
|
480
481
|
sky/templates/local-ray.yml.j2,sha256=FNHeyHF6nW9nU9QLIZceUWfvrFTTcO51KqhTnYCEFaA,1185
|
|
481
|
-
sky/templates/nebius-ray.yml.j2,sha256=
|
|
482
|
+
sky/templates/nebius-ray.yml.j2,sha256=s8CA67eOvvtiTNTlDCdn85k9UQZDbTPEfPzhaisZt7E,6873
|
|
482
483
|
sky/templates/oci-ray.yml.j2,sha256=TvB2at81DuXSG1QV4dxmqjjMdfDTsCU5T4JH01vI5DU,4810
|
|
483
484
|
sky/templates/paperspace-ray.yml.j2,sha256=PcB21RMfxO5Gne1qT7J_JjnZENLVHrAwVegjIEb_F6E,4283
|
|
484
485
|
sky/templates/primeintellect-ray.yml.j2,sha256=XgX3btMxxlGKzlUvOv4ZfM820vEfFSp4kBHKfkZkBoE,2696
|
|
@@ -515,7 +516,7 @@ sky/utils/common.py,sha256=SS-NXSqMD34GeUSxMJuZ-Kce_2yPxiPdXhQoNQR5Lho,2834
|
|
|
515
516
|
sky/utils/common_utils.py,sha256=3p-x8pU5tAFxJ95eW-KpY-aRPTGqL6ZvMbUO_iSiPVM,39147
|
|
516
517
|
sky/utils/config_utils.py,sha256=agfDWJi79DH5XKD_GBvUwhRwmB0-ZkYbKCjcEgV6gP4,13861
|
|
517
518
|
sky/utils/context.py,sha256=ghSrVZLnrPwdFlqnaS_lKoyJGHZljbBt2X4O3MbdQp4,13712
|
|
518
|
-
sky/utils/context_utils.py,sha256=
|
|
519
|
+
sky/utils/context_utils.py,sha256=MvYBkaXItIBSFN7OiNlbWIo7eQR4G_sLUzgNbzypljo,7999
|
|
519
520
|
sky/utils/control_master_utils.py,sha256=iD4M0onjYOdZ2RuxjwMBl4KhafHXJzuHjvqlBUnu-VE,1450
|
|
520
521
|
sky/utils/controller_utils.py,sha256=V1xvlC95gi7Rc8MuIbPyHe8Qe4Pc2BlcMfw_377pBW0,61702
|
|
521
522
|
sky/utils/dag_utils.py,sha256=kPakbl9CVo1RECow7QHnp8Am-qLiTUWEcIPIUBKN1JQ,8563
|
|
@@ -532,7 +533,7 @@ sky/utils/message_utils.py,sha256=zi2Z7PEX6Xq_zvho-aEZe_J7UvpKOLdVDdGAcipRQPU,26
|
|
|
532
533
|
sky/utils/perf_utils.py,sha256=HxmTmVQc5DSfqJwISPxdVLWmUxNZHbibJg1kKVI-1Cg,700
|
|
533
534
|
sky/utils/registry.py,sha256=I08nS0rvCF-xR5GEZoHEVgN1jcOeglz77h7xPpBCIjU,4179
|
|
534
535
|
sky/utils/resource_checker.py,sha256=uM6erLKU73k_tfuldh_kCj9gxhjuy0khI4TMSC6aCes,10700
|
|
535
|
-
sky/utils/resources_utils.py,sha256=
|
|
536
|
+
sky/utils/resources_utils.py,sha256=OY_kXGnoaubEZUK-KftW-ZJmdA47Qj6TT6Z-Q5wdt-s,17892
|
|
536
537
|
sky/utils/rich_console_utils.py,sha256=wPvAlshaFHuMZSjiDnaK3OSBppZLBjAn-lj7AvxNBQk,553
|
|
537
538
|
sky/utils/rich_utils.py,sha256=Zb48ZeOX58WG2me48XYk2VO4N_BXL154xJwqlHu0zw8,20031
|
|
538
539
|
sky/utils/schemas.py,sha256=dtyKZjv1-t010khv6yf6ckJ_JaOzbfUXhE6eUTBrsrM,58042
|
|
@@ -548,7 +549,7 @@ sky/utils/yaml_utils.py,sha256=atDwwOjx92l-8uOUIKPeWqs_s1yDLAuBjiOYIOSwK_k,3117
|
|
|
548
549
|
sky/utils/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
549
550
|
sky/utils/aws/get_default_security_group.py,sha256=LPzz5133ZUMbzDD3iqqACL9PdlgqiQR5hKZIn-D1zhw,228
|
|
550
551
|
sky/utils/cli_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
551
|
-
sky/utils/cli_utils/status_utils.py,sha256=
|
|
552
|
+
sky/utils/cli_utils/status_utils.py,sha256=vd3wJadFQLyOXNdZ7pIPHauzo_w7ZY18U2XZRJBe_ZI,16441
|
|
552
553
|
sky/utils/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
553
554
|
sky/utils/db/db_utils.py,sha256=C3s89lC2fH2Pz6KWNBRAJYiJXMIScOYVfABlxqZt_ic,17768
|
|
554
555
|
sky/utils/db/migration_utils.py,sha256=Kv1oPC67dYWGBkdj10WHvdubfKZsZA31pSmbCWT_5G4,5147
|
|
@@ -579,9 +580,9 @@ sky/workspaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
579
580
|
sky/workspaces/core.py,sha256=kRrdh-8MhX1953pML1B_DoStnDuNrsmHcZlnWoAxVo0,27218
|
|
580
581
|
sky/workspaces/server.py,sha256=T1K52wR88nARVMUBf2cpIP3VURjDNQTcN6HIp7prghE,3511
|
|
581
582
|
sky/workspaces/utils.py,sha256=IIAiFoS6sdb2t0X5YoX9AietpTanZUQNTK8cePun-sY,2143
|
|
582
|
-
skypilot_nightly-1.0.0.
|
|
583
|
-
skypilot_nightly-1.0.0.
|
|
584
|
-
skypilot_nightly-1.0.0.
|
|
585
|
-
skypilot_nightly-1.0.0.
|
|
586
|
-
skypilot_nightly-1.0.0.
|
|
587
|
-
skypilot_nightly-1.0.0.
|
|
583
|
+
skypilot_nightly-1.0.0.dev20251029.dist-info/licenses/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
|
|
584
|
+
skypilot_nightly-1.0.0.dev20251029.dist-info/METADATA,sha256=mRrNFnHNGfqA30BuWNTQtNSTU9dJT9pF6tgOar2Yfbg,32069
|
|
585
|
+
skypilot_nightly-1.0.0.dev20251029.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
586
|
+
skypilot_nightly-1.0.0.dev20251029.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
|
|
587
|
+
skypilot_nightly-1.0.0.dev20251029.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
|
|
588
|
+
skypilot_nightly-1.0.0.dev20251029.dist-info/RECORD,,
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2755],{81260:function(e,s,t){t.d(s,{Z:function(){return r}});/**
|
|
2
|
-
* @license lucide-react v0.407.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/let r=(0,t(60998).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},47603:function(e,s,t){t.d(s,{Z:function(){return r}});/**
|
|
7
|
-
* @license lucide-react v0.407.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/let r=(0,t(60998).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},1812:function(e,s,t){t.d(s,{X:function(){return l}});var r=t(85893),n=t(67294);let a=e=>{if(!(null==e?void 0:e.message))return"An unexpected error occurred.";let s=e.message;return s.includes("failed:")&&(s=s.split("failed:")[1].trim()),s},l=e=>{let{error:s,title:t="Error",onDismiss:l}=e,[i,o]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{s&&o(!1)},[s]),!s||i)return null;let c="string"==typeof s?s:a(s);return(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-md p-3 mb-4",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,r.jsx)("div",{className:"ml-3",children:(0,r.jsxs)("div",{className:"text-sm text-red-800",children:[(0,r.jsxs)("strong",{children:[t,":"]})," ",c]})})]}),(0,r.jsx)("button",{onClick:()=>{o(!0),l&&l()},className:"flex-shrink-0 ml-4 text-red-400 hover:text-red-600 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 focus:ring-offset-red-50 rounded","aria-label":"Dismiss error",children:(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})})}},27669:function(e,s,t){t.r(s),t.d(s,{Users:function(){return K}});var r=t(85893),n=t(67294),a=t(45697),l=t.n(a),i=t(55739),o=t(41664),c=t.n(o),d=t(11163),u=t(30803),m=t(68764),x=t(53081),h=t(23266),p=t(68969),g=t(6378),b=t(36856),f=t(51214),j=t(94545),v=t(36989),y=t(60998);/**
|
|
12
|
-
* @license lucide-react v0.407.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/let w=(0,y.Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var N=t(13626),k=t(81260);/**
|
|
17
|
-
* @license lucide-react v0.407.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/let C=(0,y.Z)("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),_=(0,y.Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var S=t(16826),R=t(70282),E=t(43767);/**
|
|
22
|
-
* @license lucide-react v0.407.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/let D=(0,y.Z)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),I=(0,y.Z)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);var Z=t(47603),L=t(27325);t(9353);var F=t(23001),U=t(66235),A=t(37673),M=t(47145),T=t(50326),P=t(1812);let z=new Set(t(23015).statusGroups.active),q=(e,s)=>e&&e.includes("@")?e.split("@")[0]:e||"N/A",V=(e,s)=>e&&e.includes("@")?e:s||"-",O=f.nb.REFRESH_INTERVAL,B=e=>{let{message:s,onDismiss:t}=e;return s?(0,r.jsx)("div",{className:"bg-green-50 border border-green-200 rounded p-4 mb-6",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)("svg",{className:"h-5 w-5 text-green-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,r.jsx)("div",{className:"ml-3",children:(0,r.jsx)("p",{className:"text-sm font-medium text-green-800",children:s})})]}),t&&(0,r.jsx)("div",{className:"ml-auto pl-3",children:(0,r.jsx)("div",{className:"-mx-1.5 -my-1.5",children:(0,r.jsxs)("button",{type:"button",onClick:t,className:"inline-flex rounded-md bg-green-50 p-1.5 text-green-500 hover:bg-green-100 focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2 focus:ring-offset-green-50",children:[(0,r.jsx)("span",{className:"sr-only",children:"Dismiss"}),(0,r.jsx)("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})})})]})}):null};function K(){let e=(0,d.useRouter)(),{userEmail:s}=(0,U.Ap)(),[t,a]=(0,n.useState)(!1),l=(0,n.useRef)(null),o=(0,F.X)(),[c,m]=(0,n.useState)(!1),[b,f]=(0,n.useState)({username:"",password:"",role:"user"}),[j,v]=(0,n.useState)(!1),[y,R]=(0,n.useState)({open:!1,message:"",userName:""}),[E,D]=(0,n.useState)(null),[I,Z]=(0,n.useState)(!1),[L,A]=(0,n.useState)(!1),[z,q]=(0,n.useState)(!1),[V,K]=(0,n.useState)(null),[J,W]=(0,n.useState)(!1),[Q,X]=(0,n.useState)(null),[Y,G]=(0,n.useState)("import"),[ee,es]=(0,n.useState)(!1),[et,er]=(0,n.useState)(null),[en,ea]=(0,n.useState)(""),[el,ei]=(0,n.useState)(!1),[eo,ec]=(0,n.useState)(null),[ed,eu]=(0,n.useState)(!1),[em,ex]=(0,n.useState)(null),[eh,ep]=(0,n.useState)(null),[eg,eb]=(0,n.useState)(!1),[ef,ej]=(0,n.useState)(null),[ev,ey]=(0,n.useState)(null),[ew,eN]=(0,n.useState)(void 0),[ek,eC]=(0,n.useState)("users"),[e_,eS]=(0,n.useState)(!1),[eR,eE]=(0,n.useState)(!1),[eD,eI]=(0,n.useState)(null),[eZ,eL]=(0,n.useState)(!1),[eF,eU]=(0,n.useState)(""),[eA,eM]=(0,n.useState)(""),[eT,eP]=(0,n.useState)(()=>{if(e.isReady){let s=e.query.deduplicate;if(void 0!==s)return"true"===s}return!0});(0,n.useEffect)(()=>{if(e.isReady){let s=e.query.deduplicate;if(void 0===s)ez(!0);else{let e="true"===s;eT!==e&&eP(e)}}},[e.isReady,e.query.deduplicate]);let ez=s=>{let t={...e.query};t.deduplicate=s.toString(),e.replace({pathname:e.pathname,query:t},void 0,{shallow:!0})};(0,n.useEffect)(()=>{e.isReady&&("service-accounts"===e.query.tab?eC("service-accounts"):eC("users"))},[e.isReady,e.query.tab]),(0,n.useEffect)(()=>{(async function(){try{let e=await M.x.get("/api/health");if(e.ok){let s=await e.json();eN(!!s.basic_auth_enabled)}else eN(!1)}catch(e){eN(!1)}})()},[]);let eq=(0,n.useCallback)(async()=>{if(E&&Date.now()-E.timestamp<3e5)return E;Z(!0);try{let e=await M.x.get("/users/role");if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to get user role")}let s=await e.json(),t={role:s.role,name:s.name,id:s.id,timestamp:Date.now()};return D(t),Z(!1),t}catch(e){throw Z(!1),e}},[E]);(0,n.useEffect)(()=>{eq().catch(()=>{console.error("Failed to get user role")})},[eq]);let eV=async(e,s)=>{try{let t=await eq();if("admin"!==t.role)return R({open:!0,message:e,userName:t.name.toLowerCase()}),!1;return s(),!0}catch(e){return console.error("Failed to check user role:",e),R({open:!0,message:"Error: ".concat(e.message),userName:""}),!1}},eO=()=>{g.default.invalidate(x.R),g.default.invalidate(h.getClusters),g.default.invalidate(p.getManagedJobs,[{allUsers:!0,skipFinished:!0,fields:["user_hash","status"]}]),l.current&&l.current()},eB=async()=>{if(!b.username||!b.password){ey(Error("Username and password are required.")),m(!1);return}v(!0),ey(null),ej(null);try{let e=await M.x.post("/users/create",b);if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to create user")}ej('User "'.concat(b.username,'" created successfully!')),m(!1),f({username:"",password:"",role:"user"}),eO()}catch(e){ey(e),m(!1),f({username:"",password:"",role:"user"})}finally{v(!1)}},eK=async e=>{let s=e.target.files[0];s&&(K(s),X(null))},e$=async()=>{if(!V){alert("Please select a CSV file first.");return}W(!0);try{let e=new FileReader;e.onload=async e=>{try{let s=e.target.result,t=await M.x.post("/users/import",{csv_content:s});if(!t.ok){let e=await t.json();throw Error(e.detail||"Failed to import users")}let r=await t.json(),n="Import completed. ".concat(r.success_count," users created successfully.");r.error_count>0&&(n+="\n".concat(r.error_count," failed."),r.creation_errors.length>0&&(n+="\nErrors: ".concat(r.creation_errors.slice(0,3).join(", ")),r.creation_errors.length>3&&(n+=" and ".concat(r.creation_errors.length-3," more...")))),X({message:n}),r.success_count>0&&eO()}catch(e){alert("Error importing users: ".concat(e.message))}finally{W(!1)}},e.readAsText(V)}catch(e){alert("Error reading file: ".concat(e.message)),W(!1)}},eH=async e=>{er(e),ea(""),es(!0)},eJ=async()=>{if(!en){ey(Error("Please enter a new password."));return}ei(!0),ec(null);try{let e=await M.x.post("/users/update",{user_id:et.userId,password:en});if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to reset password")}ej('Password reset successfully for user "'.concat(et.usernameDisplay,'"!')),es(!1),er(null),ea("")}catch(e){es(!1),er(null),ea(""),ec(null),ey(e)}finally{ei(!1)}},eW=async()=>{if(em){eb(!0),ep(null);try{let e=await M.x.post("/users/delete",{user_id:em.userId});if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to delete user")}ej('User "'.concat(em.usernameDisplay,'" deleted successfully!')),eu(!1),ex(null),eO()}catch(e){eu(!1),ex(null),ep(null),ey(e)}finally{eb(!1)}}},eQ=()=>{eu(!1),ex(null)},eX=()=>{es(!1),er(null),ea("")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{className:"text-base flex items-center",children:[(0,r.jsx)("button",{className:"leading-none mr-6 pb-2 px-2 border-b-2 ".concat("users"===ek?"text-sky-blue border-sky-500":"text-gray-500 hover:text-gray-700 border-transparent"),onClick:()=>{eC("users"),e.push("/users",void 0,{shallow:!0})},children:"Users"}),(0,r.jsx)("button",{className:"leading-none pb-2 px-2 border-b-2 ".concat("service-accounts"===ek?"text-sky-blue border-sky-500":"text-gray-500 hover:text-gray-700 border-transparent"),onClick:()=>{eC("service-accounts"),e.push("/users?tab=service-accounts",void 0,{shallow:!0})},children:"Service Accounts"})]}),(0,r.jsxs)("div",{className:"flex items-center",children:[t&&(0,r.jsxs)("div",{className:"flex items-center mr-2",children:[(0,r.jsx)(i.Z,{size:15,className:"mt-0"}),(0,r.jsx)("span",{className:"ml-2 text-gray-500",children:"Loading..."})]}),"users"===ek&&ew&&(null==E?void 0:E.role)==="admin"&&(0,r.jsx)("button",{onClick:async()=>{await eV("cannot create users",()=>{m(!0)})},className:"text-sky-blue hover:text-sky-blue-bright flex items-center rounded px-2 py-1 mr-2",title:"Create New User",children:"+ New User"}),"users"===ek&&ew&&(null==E?void 0:E.role)==="admin"&&(0,r.jsxs)("button",{onClick:async()=>{await eV("cannot import users",()=>{q(!0)})},className:"text-sky-blue hover:text-sky-blue-bright flex items-center rounded px-2 py-1 mr-2",title:"Import/Export Users",children:[(0,r.jsx)(w,{className:"h-4 w-4 mr-1"}),"Import/Export"]}),(0,r.jsxs)("button",{onClick:eO,disabled:t,className:"text-sky-blue hover:text-sky-blue-bright flex items-center",children:[(0,r.jsx)(N.Z,{className:"h-4 w-4 mr-1.5"}),!o&&(0,r.jsx)("span",{children:"Refresh"})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsxs)("div",{className:"relative flex-1 max-w-md",children:[(0,r.jsx)("input",{type:"text",placeholder:"users"===ek?"Search users by name, email, or role":"Search by service account name, or created by",value:"users"===ek?eF:eA,onChange:e=>{"users"===ek?eU(e.target.value):eM(e.target.value)},className:"h-8 w-full px-3 pr-8 text-sm border border-gray-300 rounded-md focus:ring-1 focus:ring-sky-500 focus:border-sky-500 outline-none"}),("users"===ek&&eF||"service-accounts"===ek&&eA)&&(0,r.jsx)("button",{onClick:()=>{"users"===ek?eU(""):eM("")},className:"absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",title:"Clear search",children:(0,r.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),"users"===ek&&!s&&(0,r.jsxs)("label",{className:"flex items-center cursor-pointer ml-4",children:[(0,r.jsx)("input",{type:"checkbox",checked:eT,onChange:e=>{let s=e.target.checked;eP(s),ez(s)},className:"sr-only"}),(0,r.jsx)("div",{className:"relative inline-flex h-5 w-9 items-center rounded-full transition-colors ".concat(eT?"bg-sky-600":"bg-gray-300"),children:(0,r.jsx)("span",{className:"inline-block h-3 w-3 transform rounded-full bg-white transition-transform ".concat(eT?"translate-x-5":"translate-x-1")})}),(0,r.jsx)("span",{className:"ml-2 text-sm text-gray-700",children:"Deduplicate users"})]}),"service-accounts"===ek&&(0,r.jsxs)("button",{onClick:()=>{eV("cannot create service account tokens",()=>{eS(!0)})},className:"ml-4 bg-sky-600 hover:bg-sky-700 text-white flex items-center rounded-md px-3 py-1 text-sm font-medium transition-colors duration-200",title:"Create Service Account",children:[(0,r.jsx)(k.Z,{className:"h-4 w-4 mr-2"}),"Create Service Account"]})]}),(0,r.jsxs)("div",{className:"fixed top-20 right-4 z-[9999] max-w-md",children:[(0,r.jsx)(B,{message:ef,onDismiss:()=>ej(null)}),(0,r.jsx)(P.X,{error:ev,title:"Error",onDismiss:()=>ey(null)})]}),"users"===ek?(0,r.jsx)($,{refreshInterval:O,setLoading:a,refreshDataRef:l,checkPermissionAndAct:eV,roleLoading:I,onResetPassword:eH,onDeleteUser:e=>{eV("cannot delete users",()=>{ex(e),eu(!0)})},basicAuthEnabled:ew,currentUserRole:null==E?void 0:E.role,currentUserId:null==E?void 0:E.id,searchQuery:eF,setSearchQuery:eU,deduplicateUsers:eT}):(0,r.jsx)(H,{checkPermissionAndAct:eV,userRoleCache:E,setCreateSuccess:ej,setCreateError:ey,showCreateDialog:e_,setShowCreateDialog:eS,showRotateDialog:eR,setShowRotateDialog:eE,tokenToRotate:eD,setTokenToRotate:eI,rotating:eZ,setRotating:eL,searchQuery:eA,setSearchQuery:eM}),(0,r.jsx)(T.Vq,{open:c,onOpenChange:e=>{m(e),e||ey(null)},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-md",children:[(0,r.jsx)(T.fK,{children:(0,r.jsx)(T.$N,{children:"Create User"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-4",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Username"}),(0,r.jsx)("input",{className:"border rounded px-3 py-2 w-full",placeholder:"Username",value:b.username,onChange:e=>f({...b,username:e.target.value})})]}),(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{className:"border rounded px-3 py-2 w-full pr-10",placeholder:"Password",type:L?"text":"password",value:b.password,onChange:e=>f({...b,password:e.target.value})}),(0,r.jsx)("button",{type:"button",className:"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400 hover:text-gray-600",onClick:()=>A(!L),children:L?(0,r.jsx)(C,{className:"h-4 w-4"}):(0,r.jsx)(_,{className:"h-4 w-4"})})]})]}),(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Role"}),(0,r.jsxs)("select",{className:"border rounded px-3 py-2 w-full",value:b.role,onChange:e=>f({...b,role:e.target.value}),children:[(0,r.jsx)("option",{value:"user",children:"User"}),(0,r.jsx)("option",{value:"admin",children:"Admin"})]})]})]}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2",onClick:()=>m(!1),disabled:j,children:"Cancel"}),(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-sky-600 text-white hover:bg-sky-700 h-10 px-4 py-2",onClick:eB,disabled:j,children:j?"Creating...":"Create"})]})]})}),(0,r.jsx)(T.Vq,{open:y.open,onOpenChange:e=>{R(s=>({...s,open:e})),e||ey(null)},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-md transition-all duration-200 ease-in-out",children:[(0,r.jsxs)(T.fK,{children:[(0,r.jsx)(T.$N,{children:"Permission Denied"}),(0,r.jsx)(T.Be,{children:I?(0,r.jsxs)("div",{className:"flex items-center py-2",children:[(0,r.jsx)(i.Z,{size:16,className:"mr-2"}),(0,r.jsx)("span",{children:"Checking permissions..."})]}):(0,r.jsx)(r.Fragment,{children:y.userName?(0,r.jsxs)(r.Fragment,{children:[y.userName," is logged in as non-admin and ",y.message,"."]}):y.message})})]}),(0,r.jsx)(T.cN,{children:(0,r.jsx)(u.z,{variant:"outline",onClick:()=>R(e=>({...e,open:!1})),disabled:I,children:"OK"})})]})}),(0,r.jsx)(T.Vq,{open:z,onOpenChange:e=>{q(e),e||ey(null)},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-lg",children:[(0,r.jsx)(T.fK,{children:(0,r.jsx)(T.$N,{children:"Import/Export Users"})}),(0,r.jsxs)("div",{className:"flex border-b border-gray-200 mb-4",children:[(0,r.jsx)("button",{className:"px-4 py-2 text-sm font-medium ".concat("import"===Y?"border-b-2 border-sky-500 text-sky-600":"text-gray-500 hover:text-gray-700"),onClick:()=>G("import"),children:"Import"}),(0,r.jsx)("button",{className:"px-4 py-2 text-sm font-medium ".concat("export"===Y?"border-b-2 border-sky-500 text-sky-600":"text-gray-500 hover:text-gray-700"),onClick:()=>G("export"),children:"Export"})]}),(0,r.jsx)("div",{className:"flex flex-col gap-4 py-4",children:"import"===Y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"CSV File"}),(0,r.jsx)("input",{type:"file",accept:".csv",onChange:eK,className:"border rounded px-3 py-2 w-full"}),(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:["CSV should have columns: username, password, role",(0,r.jsx)("br",{}),"Supports both plain text passwords and exported password hashes."]})]}),Q&&(0,r.jsx)("div",{className:"p-3 bg-green-50 border border-green-200 rounded text-green-700 text-sm",children:Q.message})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Export Users to CSV"}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"Download all users as a CSV file with password hashes."}),(0,r.jsxs)("div",{className:"p-3 bg-amber-50 border border-amber-200 rounded",children:[(0,r.jsx)("p",{className:"text-sm text-amber-700",children:"⚠️ This will export all users with columns: username, password (hashed), role"}),(0,r.jsx)("p",{className:"text-xs text-amber-600 mt-1",children:"Password hashes can be imported directly for system backups."})]})]})})}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2",onClick:()=>q(!1),disabled:J,children:"Cancel"}),"import"===Y?(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-sky-600 text-white hover:bg-sky-700 h-10 px-4 py-2",onClick:e$,disabled:J||!V,children:J?"Importing...":"Import"}):(0,r.jsxs)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-sky-600 text-white hover:bg-sky-700 h-10 px-4 py-2",onClick:async()=>{try{let e=await M.x.get("/users/export");if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to export users")}let s=await e.json(),t=s.csv_content,r=new Blob([t],{type:"text/csv;charset=utf-8;"}),n=URL.createObjectURL(r),a=document.createElement("a");a.href=n;let l=new Date,i=e=>String(e).padStart(2,"0"),o=l.getFullYear(),c=i(l.getMonth()+1),d=i(l.getDate()),u=i(l.getHours()),m=i(l.getMinutes()),x=i(l.getSeconds());a.download="users_export_".concat(o,"-").concat(c,"-").concat(d,"-").concat(u,"-").concat(m,"-").concat(x,".csv"),a.click(),URL.revokeObjectURL(n),alert("Successfully exported ".concat(s.user_count," users to CSV file."))}catch(e){alert("Error exporting users: ".concat(e.message))}},children:[(0,r.jsx)(S.Z,{className:"h-4 w-4 mr-1"}),"Export"]})]})]})}),(0,r.jsx)(T.Vq,{open:ee,onOpenChange:e=>{e||(eX(),ey(null))},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-md",children:[(0,r.jsxs)(T.fK,{children:[(0,r.jsx)(T.$N,{children:"Reset Password"}),(0,r.jsxs)(T.Be,{children:["Enter a new password for"," ",(null==et?void 0:et.usernameDisplay)||"this user","."]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-4 py-4",children:(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"New Password"}),(0,r.jsx)("input",{type:"password",className:"border rounded px-3 py-2 w-full",placeholder:"Enter new password",value:en,onChange:e=>ea(e.target.value),autoFocus:!0})]})}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)(u.z,{variant:"outline",onClick:eX,disabled:el,children:"Cancel"}),(0,r.jsx)(u.z,{variant:"default",onClick:eJ,disabled:el||!en,className:"bg-sky-600 text-white hover:bg-sky-700",children:el?"Resetting...":"Reset Password"})]})]})}),(0,r.jsx)(T.Vq,{open:ed,onOpenChange:e=>{e||(eQ(),ey(null))},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-md",children:[(0,r.jsxs)(T.fK,{children:[(0,r.jsx)(T.$N,{children:"Delete User"}),(0,r.jsxs)(T.Be,{children:['Are you sure you want to delete user "',(null==em?void 0:em.usernameDisplay)||"this user",'"? This action cannot be undone.']})]}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)(u.z,{variant:"outline",onClick:eQ,disabled:eg,children:"Cancel"}),(0,r.jsx)(u.z,{variant:"destructive",onClick:eW,disabled:eg,children:eg?"Deleting...":"Delete"})]})]})})]})}function $(e){let{refreshInterval:s,setLoading:t,refreshDataRef:a,checkPermissionAndAct:l,roleLoading:o,onResetPassword:d,onDeleteUser:u,basicAuthEnabled:f,currentUserRole:y,currentUserId:w,searchQuery:N,setSearchQuery:k,deduplicateUsers:C}=e,[_,S]=(0,n.useState)([]),[L,F]=(0,n.useState)(!0),[U,T]=(0,n.useState)(!1),[P,O]=(0,n.useState)({key:"username",direction:"ascending"}),[B,K]=(0,n.useState)(null),[$,H]=(0,n.useState)(""),J=(0,n.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&e&&t(!0),e&&F(!0);try{let s=await g.default.get(x.R),r=(s||[]).map(e=>({...e,usernameDisplay:q(e.username,e.userId),fullEmailID:V(e.username,e.userId),clusterCount:-1,jobCount:-1}));S(r),T(!0),t&&e&&t(!1),e&&F(!1);let[n,a]=await Promise.all([g.default.get(h.getClusters),g.default.get(p.getManagedJobs,[{allUsers:!0,skipFinished:!0,fields:["user_hash","status"]}])]),l=a.jobs||[],i=(s||[]).map(e=>{let s=(n||[]).filter(s=>s.user_hash===e.userId),t=(l||[]).filter(s=>s.user_hash===e.userId&&z.has(s.status)).length;return{...e,usernameDisplay:q(e.username,e.userId),fullEmailID:V(e.username,e.userId),clusterCount:s.length,jobCount:t}});S(i)}catch(s){console.error("Failed to fetch or process user data:",s),S([]),T(!0),t&&e&&t(!1),e&&F(!1)}},[t]);(0,n.useEffect)(()=>{a&&(a.current=()=>J(!0))},[a,J]),(0,n.useEffect)(()=>{(async()=>{T(!1),F(!0),await b.ZP.preloadForPage("users"),J(!0)})();let e=setInterval(()=>{"visible"===window.document.visibilityState&&J(!1)},s);return()=>clearInterval(e)},[J,s]);let W=(0,n.useMemo)(()=>{let e=_;if(null==N?void 0:N.trim()){let s=N.toLowerCase();e=_.filter(e=>{var t,r,n;return(null===(t=e.usernameDisplay)||void 0===t?void 0:t.toLowerCase().includes(s))||(null===(r=e.fullEmailID)||void 0===r?void 0:r.toLowerCase().includes(s))||(null===(n=e.role)||void 0===n?void 0:n.toLowerCase().includes(s))})}if(C){let s={};e.forEach(e=>{let t=e.usernameDisplay;s[t]?(s[t].userIds.push(e.userId),-1!==e.clusterCount&&(-1===s[t].clusterCount?s[t].clusterCount=e.clusterCount:s[t].clusterCount+=e.clusterCount),-1!==e.jobCount&&(-1===s[t].jobCount?s[t].jobCount=e.jobCount:s[t].jobCount+=e.jobCount),e.created_at&&(!s[t].created_at||e.created_at<s[t].created_at)&&(s[t].created_at=e.created_at)):s[t]={...e,userIds:[e.userId],clusterCount:e.clusterCount,jobCount:e.jobCount,created_at:e.created_at}}),e=Object.values(s)}return(0,j.R0)(e,P.key,P.direction)},[_,P,N,C]),Q=e=>{let s="ascending";P.key===e&&"ascending"===P.direction&&(s="descending"),O({key:e,direction:s})},X=e=>P.key===e?"ascending"===P.direction?" ↑":" ↓":"",Y=async(e,s)=>{await l("cannot edit user role",()=>{K(e),H(s)})},G=()=>{K(null),H("")},ee=async e=>{if(!e||!$){console.error("User ID or role is missing."),alert("Error: User ID or role is missing.");return}F(!0);try{let s=await M.x.post("/users/update",{user_id:e,role:$});if(!s.ok){let e=await s.json();throw Error(e.detail||"Failed to update role")}g.default.invalidate(x.R),await J(!0),G()}catch(e){console.error("Failed to update user role:",e),alert("Error updating role: ".concat(e.message))}finally{F(!1)}};return L&&0===_.length&&!U?(0,r.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,r.jsx)(i.Z,{})}):U?W&&0!==W.length?(0,r.jsx)(A.Zb,{children:(0,r.jsx)("div",{className:"overflow-x-auto rounded-lg",children:(0,r.jsxs)(m.iA,{className:"min-w-full",children:[(0,r.jsx)(m.xD,{children:(0,r.jsxs)(m.SC,{children:[(0,r.jsxs)(m.ss,{onClick:()=>Q("usernameDisplay"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Name",X("usernameDisplay")]}),!C&&(0,r.jsxs)(m.ss,{onClick:()=>Q("fullEmailID"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["User ID",X("fullEmailID")]}),!C&&(0,r.jsxs)(m.ss,{onClick:()=>Q("role"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Role",X("role")]}),(0,r.jsxs)(m.ss,{onClick:()=>Q("created_at"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Joined",X("created_at")]}),(0,r.jsxs)(m.ss,{onClick:()=>Q("clusterCount"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Clusters",X("clusterCount")]}),(0,r.jsxs)(m.ss,{onClick:()=>Q("jobCount"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Jobs",X("jobCount")]}),!C&&(f||"admin"===y)&&(0,r.jsx)(m.ss,{className:"whitespace-nowrap w-1/7",children:"Actions"})]})}),(0,r.jsx)(m.RM,{children:W.map(e=>(0,r.jsxs)(m.SC,{children:[(0,r.jsx)(m.pj,{className:"truncate",title:e.username,children:e.usernameDisplay}),!C&&(0,r.jsx)(m.pj,{className:"truncate",title:e.fullEmailID,children:e.fullEmailID}),!C&&(0,r.jsx)(m.pj,{className:"truncate",title:e.role,children:(0,r.jsx)("div",{className:"flex items-center gap-2",children:B===e.userId?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("select",{value:$,onChange:e=>H(e.target.value),className:"block w-auto p-1 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-sky-blue focus:border-sky-blue sm:text-sm",children:[(0,r.jsx)("option",{value:"admin",children:"Admin"}),(0,r.jsx)("option",{value:"user",children:"User"})]}),(0,r.jsx)("button",{onClick:()=>ee(e.userId),className:"text-green-600 hover:text-green-800 p-1",title:"Save",children:(0,r.jsx)(R.Z,{className:"h-4 w-4"})}),(0,r.jsx)("button",{onClick:G,className:"text-gray-500 hover:text-gray-700 p-1",title:"Cancel",children:(0,r.jsx)(E.Z,{className:"h-4 w-4"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"capitalize",children:e.role}),"admin"===y&&(0,r.jsx)("button",{onClick:()=>Y(e.userId,e.role),className:"text-blue-600 hover:text-blue-700 p-1",title:"Edit role",children:(0,r.jsx)(D,{className:"h-3 w-3"})})]})})}),(0,r.jsx)(m.pj,{className:"truncate",children:e.created_at?(0,r.jsx)(v.Zg,{date:new Date(1e3*e.created_at)}):"-"}),(0,r.jsx)(m.pj,{children:-1===e.clusterCount?(0,r.jsxs)("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-400 rounded text-xs font-medium flex items-center",children:[(0,r.jsx)(i.Z,{size:10,className:"mr-1"}),"Loading..."]}):(0,r.jsx)(c(),{href:"/clusters?user=".concat(encodeURIComponent(e.userId)),className:"px-2 py-0.5 rounded text-xs font-medium transition-colors duration-200 cursor-pointer inline-block ".concat(e.clusterCount>0?"bg-blue-100 text-blue-600 hover:bg-blue-200 hover:text-blue-700":"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-700"),title:"View ".concat(e.clusterCount," cluster").concat(1!==e.clusterCount?"s":""," for ").concat(e.usernameDisplay),children:e.clusterCount})}),(0,r.jsx)(m.pj,{children:-1===e.jobCount?(0,r.jsxs)("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-400 rounded text-xs font-medium flex items-center",children:[(0,r.jsx)(i.Z,{size:10,className:"mr-1"}),"Loading..."]}):(0,r.jsx)(c(),{href:"/jobs?user=".concat(encodeURIComponent(e.userId)),className:"px-2 py-0.5 rounded text-xs font-medium transition-colors duration-200 cursor-pointer inline-block ".concat(e.jobCount>0?"bg-green-100 text-green-600 hover:bg-green-200 hover:text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-700"),title:"View ".concat(e.jobCount," active job").concat(1!==e.jobCount?"s":""," for ").concat(e.usernameDisplay),children:e.jobCount})}),!C&&(f||"admin"===y)&&(0,r.jsx)(m.pj,{className:"relative",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[f&&(0,r.jsx)("button",{onClick:"admin"===y||e.userId===w?async()=>{d(e)}:void 0,className:"admin"===y||e.userId===w?"text-blue-600 hover:text-blue-700 p-1":"text-gray-300 cursor-not-allowed p-1",title:"admin"===y||e.userId===w?"Reset Password":"You can only reset your own password",disabled:"admin"!==y&&e.userId!==w,children:(0,r.jsx)(I,{className:"h-4 w-4"})}),"admin"===y&&(0,r.jsx)("button",{onClick:()=>u(e),className:"text-red-600 hover:text-red-700 p-1",title:"Delete User",children:(0,r.jsx)(Z.Z,{className:"h-4 w-4"})})]})})]},e.userId))})]})})}):(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)("p",{className:"text-lg font-semibold text-gray-500",children:(null==N?void 0:N.trim())?"No users match your search.":"No users found."}),(0,r.jsx)("p",{className:"text-sm text-gray-400 mt-1",children:(null==N?void 0:N.trim())?"Try adjusting your search terms.":"There are currently no users to display."})]}):(0,r.jsxs)("div",{className:"flex justify-center items-center h-64",children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)("span",{className:"ml-2 text-gray-500",children:"Loading users..."})]})}function H(e){let{checkPermissionAndAct:s,userRoleCache:t,setCreateSuccess:a,setCreateError:l,showCreateDialog:o,setShowCreateDialog:d,showRotateDialog:u,setShowRotateDialog:x,tokenToRotate:b,setTokenToRotate:f,rotating:j,setRotating:y,searchQuery:w,setSearchQuery:k}=e,[C,_]=(0,n.useState)([]),[S,F]=(0,n.useState)(!0),[U,P]=(0,n.useState)(!1),[q,V]=(0,n.useState)(null),[O,B]=(0,n.useState)(null),[K,$]=(0,n.useState)({token_name:"",expires_in_days:30}),[H,J]=(0,n.useState)(""),[W,Q]=(0,n.useState)(!1),[X,Y]=(0,n.useState)(!1),[G,ee]=(0,n.useState)(""),[es,et]=(0,n.useState)(null),[er,en]=(0,n.useState)(null),[ea,el]=(0,n.useState)(null),[ei,eo]=(0,n.useState)(""),[ec,ed]=(0,n.useState)([]),eu=async()=>{try{F(!0);let e=await M.x.get("/users/service-account-tokens");if(!e.ok){console.error("Failed to fetch tokens"),_([]),ed([]);return}let s=await e.json();_(s||[]);let[t,r]=await Promise.all([g.default.get(h.getClusters),g.default.get(p.getManagedJobs,[{allUsers:!0,skipFinished:!0,fields:["user_hash","status"]}])]),n=t||[],a=(null==r?void 0:r.jobs)||[],l=(s||[]).map(e=>{let s=e.service_account_user_id,t=n.filter(e=>e.user_hash===s),r=a.filter(e=>e.user_hash===s&&z.has(e.status));return{...e,clusterCount:t.length,jobCount:r.length,primaryRole:e.service_account_roles&&e.service_account_roles.length>0?e.service_account_roles[0]:"user"}});ed(l)}catch(e){console.error("Error fetching tokens and counts:",e),_([]),ed([])}finally{F(!1)}};(0,n.useEffect)(()=>{eu()},[]);let em=async(e,t)=>{await s("cannot edit service account role",()=>{el(e),eo(t)})},ex=()=>{el(null),eo("")},eh=async e=>{if(!e||!ei){console.error("Token ID or role is missing."),l(Error("Token ID or role is missing."));return}F(!0);try{let s=await M.x.post("/users/service-account-tokens/update-role",{token_id:e,role:ei});if(!s.ok){let e=await s.json();throw Error(e.detail||"Failed to update role")}a("Service account role updated successfully!"),await eu(),ex()}catch(e){console.error("Failed to update service account role:",e),l(e)}finally{F(!1)}},ep=async e=>{try{await navigator.clipboard.writeText(e),ee("Copied!"),setTimeout(()=>ee(""),2e3)}catch(e){console.error("Failed to copy:",e)}},eg=async()=>{if(!K.token_name.trim()){l(Error("Token name is required"));return}Q(!0);try{let e={token_name:K.token_name.trim(),expires_in_days:""===K.expires_in_days?null:K.expires_in_days},s=await M.x.post("/users/service-account-tokens",e);if(s.ok){let e=await s.json();et(e.token),$({token_name:"",expires_in_days:30}),await eu()}else{let e=await s.json();throw Error(e.detail||"Failed to create token")}}catch(e){l(e)}finally{Q(!1)}},eb=async()=>{if(q){Y(!0),B(null);try{let e=await M.x.post("/users/service-account-tokens/delete",{token_id:q.token_id});if(e.ok)a('Service account "'.concat(q.token_name,'" deleted successfully!')),P(!1),V(null),B(null),await eu();else{let s=await e.json();throw Error(s.detail||"Failed to delete service account")}}catch(e){P(!1),V(null),B(null),l(e)}finally{Y(!1)}}},ef=async()=>{if(b){y(!0);try{let e={token_id:b.token_id,expires_in_days:""===H?null:parseInt(H)},s=await M.x.post("/users/service-account-tokens/rotate",e);if(s.ok){let e=await s.json();en(e.token),await eu()}else{let e=await s.json();throw Error(e.detail||"Failed to rotate token")}}catch(e){l(e)}finally{y(!1)}}},ej=ec.filter(e=>{var s,t,r,n;if(!(null==w?void 0:w.trim()))return!0;let a=w.toLowerCase();return(null===(s=e.token_name)||void 0===s?void 0:s.toLowerCase().includes(a))||(null===(t=e.creator_name)||void 0===t?void 0:t.toLowerCase().includes(a))||(null===(r=e.service_account_name)||void 0===r?void 0:r.toLowerCase().includes(a))||(null===(n=e.primaryRole)||void 0===n?void 0:n.toLowerCase().includes(a))});return S&&0===ec.length?(0,r.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,r.jsx)(i.Z,{size:32}),(0,r.jsx)("span",{className:"ml-3",children:"Loading tokens..."})]}):(0,r.jsxs)(r.Fragment,{children:[0===ej.length?(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)(I,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,r.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:(null==w?void 0:w.trim())?"No tokens match your search":"No service accounts"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:(null==w?void 0:w.trim())?"Try adjusting your search terms.":"No service accounts have been created yet."})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(A.Zb,{children:(0,r.jsxs)(m.iA,{children:[(0,r.jsx)(m.xD,{children:(0,r.jsxs)(m.SC,{children:[(0,r.jsx)(m.ss,{children:"Name"}),(0,r.jsx)(m.ss,{children:"Created by"}),(0,r.jsx)(m.ss,{children:"Role"}),(0,r.jsx)(m.ss,{children:"Clusters"}),(0,r.jsx)(m.ss,{children:"Jobs"}),(0,r.jsx)(m.ss,{children:"Created"}),(0,r.jsx)(m.ss,{children:"Last used"}),(0,r.jsx)(m.ss,{children:"Expires"}),(0,r.jsx)(m.ss,{children:"Actions"})]})}),(0,r.jsx)(m.RM,{children:ej.map(e=>(0,r.jsxs)(m.SC,{children:[(0,r.jsx)(m.pj,{className:"truncate",title:e.token_name,children:e.token_name}),(0,r.jsx)(m.pj,{className:"truncate",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("span",{children:e.creator_name||"Unknown"}),e.creator_user_hash!==(null==t?void 0:t.id)&&(0,r.jsx)("span",{className:"ml-2 px-1.5 py-0.5 text-xs bg-gray-100 text-gray-600 rounded",children:"Other"})]})}),(0,r.jsx)(m.pj,{className:"truncate",children:(0,r.jsx)("div",{className:"flex items-center gap-2",children:ea===e.token_id?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("select",{value:ei,onChange:e=>eo(e.target.value),className:"block w-auto p-1 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-sky-blue focus:border-sky-blue sm:text-sm",children:[(0,r.jsx)("option",{value:"admin",children:"Admin"}),(0,r.jsx)("option",{value:"user",children:"User"})]}),(0,r.jsx)("button",{onClick:()=>eh(e.token_id),className:"text-green-600 hover:text-green-800 p-1",title:"Save",children:(0,r.jsx)(R.Z,{className:"h-4 w-4"})}),(0,r.jsx)("button",{onClick:ex,className:"text-gray-500 hover:text-gray-700 p-1",title:"Cancel",children:(0,r.jsx)(E.Z,{className:"h-4 w-4"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"capitalize",children:e.primaryRole}),((null==t?void 0:t.role)==="admin"||e.creator_user_hash===(null==t?void 0:t.id))&&(0,r.jsx)("button",{onClick:()=>em(e.token_id,e.primaryRole),className:"text-blue-600 hover:text-blue-700 p-1",title:"Edit role",children:(0,r.jsx)(D,{className:"h-3 w-3"})})]})})}),(0,r.jsx)(m.pj,{children:(0,r.jsx)(c(),{href:"/clusters?user=".concat(encodeURIComponent(e.service_account_user_id)),className:"px-2 py-0.5 rounded text-xs font-medium transition-colors duration-200 cursor-pointer inline-block ".concat(e.clusterCount>0?"bg-blue-100 text-blue-600 hover:bg-blue-200 hover:text-blue-700":"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-700"),title:"View ".concat(e.clusterCount," cluster").concat(1!==e.clusterCount?"s":""," for ").concat(e.token_name),children:e.clusterCount})}),(0,r.jsx)(m.pj,{children:(0,r.jsx)(c(),{href:"/jobs?user=".concat(encodeURIComponent(e.service_account_user_id)),className:"px-2 py-0.5 rounded text-xs font-medium transition-colors duration-200 cursor-pointer inline-block ".concat(e.jobCount>0?"bg-green-100 text-green-600 hover:bg-green-200 hover:text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-700"),title:"View ".concat(e.jobCount," active job").concat(1!==e.jobCount?"s":""," for ").concat(e.token_name),children:e.jobCount})}),(0,r.jsx)(m.pj,{className:"truncate",children:e.created_at?(0,r.jsx)(v.Zg,{date:new Date(1e3*e.created_at)}):"Never"}),(0,r.jsx)(m.pj,{className:"truncate",children:e.last_used_at?(0,r.jsx)(v.Zg,{date:new Date(1e3*e.last_used_at)}):"Never"}),(0,r.jsx)(m.pj,{className:"truncate",children:e.expires_at?new Date(1e3*e.expires_at)<new Date?(0,r.jsx)("span",{className:"text-red-600",children:"Expired"}):(0,r.jsx)(v.Zg,{date:new Date(1e3*e.expires_at)}):"Never"}),(0,r.jsx)(m.pj,{children:(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[((null==t?void 0:t.role)==="admin"||e.creator_user_hash===(null==t?void 0:t.id))&&(0,r.jsx)(v.WH,{content:"Rotate token",className:"capitalize text-sm text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>{s("cannot rotate service account tokens",()=>{f(e),x(!0)})},className:"text-sky-blue hover:text-sky-blue-bright font-medium inline-flex items-center",children:(0,r.jsx)(N.Z,{className:"h-4 w-4"})})}),((null==t?void 0:t.role)==="admin"||e.creator_user_hash===(null==t?void 0:t.id))&&(0,r.jsx)(v.WH,{content:"Delete ".concat(e.token_name),className:"capitalize text-sm text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>{s("cannot delete service account tokens",()=>{V(e),P(!0)})},className:"text-red-600 hover:text-red-800 font-medium inline-flex items-center",children:(0,r.jsx)(Z.Z,{className:"h-4 w-4"})})})]})})]},e.token_id))})]})})}),(0,r.jsx)(T.Vq,{open:o,onOpenChange:e=>{d(e),e||(et(null),l(null))},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-2xl",children:[(0,r.jsxs)(T.fK,{children:[(0,r.jsx)(T.$N,{children:"Create Service Account"}),(0,r.jsx)(T.Be,{children:"Create a new service account with an API token for programmatic access to SkyPilot."})]}),(0,r.jsx)("div",{className:"flex flex-col gap-4 py-4",children:es?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"p-4 bg-green-50 border border-green-200 rounded-lg",children:[(0,r.jsxs)("div",{className:"flex items-center mb-3",children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-green-900",children:"⚠️ Service account created successfully - save this token now!"}),(0,r.jsx)(v.WH,{content:G?"Copied!":"Copy token",className:"text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>ep(es),className:"flex items-center text-green-600 hover:text-green-800 transition-colors duration-200 p-1 ml-2",children:G?(0,r.jsx)(R.Z,{className:"w-4 h-4"}):(0,r.jsx)(L.Z,{className:"w-4 h-4"})})})]}),(0,r.jsx)("p",{className:"text-sm text-green-700 mb-3",children:"This service account token will not be shown again. Please copy and store it securely."}),(0,r.jsx)("div",{className:"bg-white border border-green-300 rounded-md p-3",children:(0,r.jsx)("code",{className:"text-sm text-gray-800 font-mono break-all block",children:es})})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Service Account Name"}),(0,r.jsx)("input",{className:"border rounded px-3 py-2 w-full",placeholder:"e.g., ci-pipeline, monitoring-system",value:K.token_name,onChange:e=>$({...K,token_name:e.target.value})})]}),(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Expiration (days)"}),(0,r.jsx)("input",{type:"number",className:"border rounded px-3 py-2 w-full",placeholder:"e.g., 30",min:"0",max:"365",value:K.expires_in_days||"",onChange:e=>$({...K,expires_in_days:e.target.value?parseInt(e.target.value):null})}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"Leave empty or enter 0 to never expire. Maximum 365 days."})]})]})}),(0,r.jsx)(T.cN,{children:es?(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-sky-600 text-white hover:bg-sky-700 h-10 px-4 py-2",onClick:()=>{d(!1),et(null)},children:"Close"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2",onClick:()=>{d(!1),et(null)},disabled:W,children:"Cancel"}),(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-sky-600 text-white hover:bg-sky-700 h-10 px-4 py-2",onClick:eg,disabled:W||!K.token_name.trim(),children:W?"Creating...":"Create Token"})]})})]})}),(0,r.jsx)(T.Vq,{open:U,onOpenChange:e=>{P(e),e||(V(null),l(null))},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-md",children:[(0,r.jsxs)(T.fK,{children:[(0,r.jsx)(T.$N,{children:"Delete Service Account Token"}),(0,r.jsxs)(T.Be,{children:['Are you sure you want to delete the service account "',null==q?void 0:q.token_name,'"',(null==q?void 0:q.creator_user_hash)!==(null==t?void 0:t.id)&&(null==t?void 0:t.role)==="admin"?" owned by ".concat(null==q?void 0:q.creator_name):"","? This action cannot be undone and will immediately revoke access for any systems using this token."]})]}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2",onClick:()=>{P(!1),V(null)},disabled:X,children:"Cancel"}),(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-red-600 text-white hover:bg-red-700 h-10 px-4 py-2",onClick:eb,disabled:X,children:X?"Deleting...":"Delete Token"})]})]})}),(0,r.jsx)(T.Vq,{open:u,onOpenChange:e=>{x(e),e||(f(null),J(""),en(null),l(null))},children:(0,r.jsxs)(T.cZ,{className:"sm:max-w-2xl",children:[(0,r.jsxs)(T.fK,{children:[(0,r.jsx)(T.$N,{children:"Rotate Service Account Token"}),(0,r.jsxs)(T.Be,{children:['Rotate the service account token "',null==b?void 0:b.token_name,'"',(null==b?void 0:b.creator_user_hash)!==(null==t?void 0:t.id)&&(null==t?void 0:t.role)==="admin"?" owned by ".concat(null==b?void 0:b.creator_name):"",". This will generate a new token value and invalidate the current one."]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-4 py-4",children:er?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"p-4 bg-green-50 border border-green-200 rounded-lg",children:[(0,r.jsxs)("div",{className:"flex items-center mb-3",children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-green-900",children:"\uD83D\uDD04 Service account token rotated successfully - save this new token now!"}),(0,r.jsx)(v.WH,{content:G?"Copied!":"Copy token",className:"text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>ep(er),className:"flex items-center text-green-600 hover:text-green-800 transition-colors duration-200 p-1 ml-2",children:G?(0,r.jsx)(R.Z,{className:"w-4 h-4"}):(0,r.jsx)(L.Z,{className:"w-4 h-4"})})})]}),(0,r.jsx)("p",{className:"text-sm text-green-700 mb-3",children:"This new token replaces the old one. Please copy and store it securely. The old token is now invalid."}),(0,r.jsx)("div",{className:"bg-white border border-green-300 rounded-md p-3",children:(0,r.jsx)("code",{className:"text-sm text-gray-800 font-mono break-all block",children:er})})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"New Expiration (days)"}),(0,r.jsx)("input",{type:"number",className:"border rounded px-3 py-2 w-full",placeholder:"Leave empty to preserve current expiration",min:"0",max:"365",value:H,onChange:e=>J(e.target.value)}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"Leave empty to preserve current expiration. Enter number of days for new expiration, or enter 0 to set to never expire. Maximum 365 days."})]}),(0,r.jsx)("div",{className:"p-3 bg-amber-50 border border-amber-200 rounded",children:(0,r.jsx)("p",{className:"text-sm text-amber-700",children:"⚠️ Any systems using the current token will need to be updated with the new token."})})]})}),(0,r.jsx)(T.cN,{children:er?(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-green-600 text-white hover:bg-green-700 h-10 px-4 py-2",onClick:()=>{x(!1),f(null),J(""),en(null)},children:"Close"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2",onClick:()=>{x(!1),f(null),J(""),en(null)},disabled:j,children:"Cancel"}),(0,r.jsx)("button",{className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-sky-600 text-white hover:bg-sky-700 h-10 px-4 py-2",onClick:ef,disabled:j,children:j?"Rotating...":"Rotate Token"})]})})]})})]})}$.propTypes={refreshInterval:l().number.isRequired,setLoading:l().func.isRequired,refreshDataRef:l().shape({current:l().func}).isRequired,checkPermissionAndAct:l().func.isRequired,roleLoading:l().bool.isRequired,onResetPassword:l().func.isRequired,onDeleteUser:l().func.isRequired,basicAuthEnabled:l().bool,currentUserRole:l().string,currentUserId:l().string}},12003:function(e,s,t){t.d(s,{j:function(){return l}});var r=t(90512);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.W,l=(e,s)=>t=>{var r;if((null==s?void 0:s.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:l,defaultVariants:i}=s,o=Object.keys(l).map(e=>{let s=null==t?void 0:t[e],r=null==i?void 0:i[e];if(null===s)return null;let a=n(s)||n(r);return l[e][a]}),c=t&&Object.entries(t).reduce((e,s)=>{let[t,r]=s;return void 0===r||(e[t]=r),e},{});return a(e,o,null==s?void 0:null===(r=s.compoundVariants)||void 0===r?void 0:r.reduce((e,s)=>{let{class:t,className:r,...n}=s;return Object.entries(n).every(e=>{let[s,t]=e;return Array.isArray(t)?t.includes({...i,...c}[s]):({...i,...c})[s]===t})?[...e,t,r]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}}]);
|