skypilot-nightly 1.0.0.dev20251029__py3-none-any.whl → 1.0.0.dev20251101__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/aws.py +25 -7
- sky/client/cli/command.py +47 -23
- sky/clouds/aws.py +59 -11
- sky/dashboard/out/404.html +1 -1
- sky/dashboard/out/_next/static/chunks/2755.d6dc6d530fed0b61.js +26 -0
- sky/dashboard/out/_next/static/chunks/{webpack-485984ca04e021d0.js → webpack-e38d5319cd10a3a0.js} +1 -1
- 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/mounting_utils.py +32 -2
- sky/jobs/constants.py +2 -0
- sky/jobs/controller.py +62 -67
- sky/jobs/file_content_utils.py +80 -0
- sky/jobs/log_gc.py +201 -0
- sky/jobs/scheduler.py +15 -2
- sky/jobs/server/core.py +85 -13
- sky/jobs/server/server.py +12 -11
- sky/jobs/server/utils.py +28 -10
- sky/jobs/state.py +216 -40
- sky/jobs/utils.py +60 -22
- sky/metrics/utils.py +18 -0
- sky/schemas/api/responses.py +1 -0
- sky/schemas/db/spot_jobs/004_job_file_contents.py +42 -0
- sky/schemas/db/spot_jobs/005_logs_gc.py +38 -0
- sky/schemas/generated/managed_jobsv1_pb2.py +39 -35
- sky/schemas/generated/managed_jobsv1_pb2.pyi +21 -5
- sky/serve/server/server.py +8 -7
- sky/server/common.py +21 -15
- sky/server/constants.py +1 -1
- sky/server/daemons.py +23 -17
- sky/server/requests/executor.py +7 -3
- sky/server/requests/request_names.py +80 -0
- sky/server/server.py +103 -35
- sky/skylet/constants.py +6 -1
- sky/skylet/events.py +7 -0
- sky/skylet/services.py +18 -7
- sky/ssh_node_pools/server.py +5 -4
- sky/task.py +4 -42
- sky/templates/kubernetes-ray.yml.j2 +1 -1
- sky/templates/websocket_proxy.py +140 -12
- sky/users/permission.py +4 -1
- sky/utils/db/migration_utils.py +1 -1
- sky/utils/resource_checker.py +4 -1
- sky/utils/schemas.py +23 -4
- sky/volumes/server/server.py +4 -3
- sky/workspaces/server.py +7 -6
- {skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/METADATA +36 -36
- {skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/RECORD +67 -62
- sky/dashboard/out/_next/static/chunks/2755.a239c652bf8684dd.js +0 -26
- /sky/dashboard/out/_next/static/{DabuSAKsc_y0wyJxpTIdQ → 8ixeA0NVQJN8HUdijid8b}/_buildManifest.js +0 -0
- /sky/dashboard/out/_next/static/{DabuSAKsc_y0wyJxpTIdQ → 8ixeA0NVQJN8HUdijid8b}/_ssgManifest.js +0 -0
- {skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/WHEEL +0 -0
- {skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/entry_points.txt +0 -0
- {skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/licenses/LICENSE +0 -0
- {skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/top_level.txt +0 -0
{skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sky/__init__.py,sha256=
|
|
1
|
+
sky/__init__.py,sha256=zvPvkTGLb2mvQq8qacMQ0lyRfbTM9kQUNyKqQxJLF08,6759
|
|
2
2
|
sky/admin_policy.py,sha256=XdcJnYqmude-LGGop-8U-FeiJcqtfYsYtIy4rmoCJnM,9799
|
|
3
3
|
sky/authentication.py,sha256=BK5Fkuk3EmS4DwCrxI_8a4SQHUNFYu9GztWSzPissSA,20123
|
|
4
4
|
sky/check.py,sha256=Dkp_cNygZozrMA8l5rjs311v6TbUN2YjSZjih8mLW-I,30407
|
|
@@ -15,9 +15,9 @@ 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=zyltGTVMR_3qlSsckjDVGDxWS0RkSuEC0eusnkZoypg,77346
|
|
19
19
|
sky/adaptors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
-
sky/adaptors/aws.py,sha256=
|
|
20
|
+
sky/adaptors/aws.py,sha256=Mzfm7nE8xqa8y3qwBfX5f4MNiGpJxRIqFrMUcbhQuNE,9350
|
|
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
|
|
@@ -91,12 +91,12 @@ sky/client/sdk.py,sha256=fiNkg_CtoNDzqCPM-i230c4W_4IIa7WlDp9ga8TMa2Y,109351
|
|
|
91
91
|
sky/client/sdk_async.py,sha256=8G_E9Dn4d80rV-wxRH4zZUXZGAm6rLw3C8PI07fXwwQ,31106
|
|
92
92
|
sky/client/service_account_auth.py,sha256=5jXk0G6ufuW-SHCO7BEHQeTO0_2a8KfFmA63auXFRj4,1529
|
|
93
93
|
sky/client/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
94
|
-
sky/client/cli/command.py,sha256=
|
|
94
|
+
sky/client/cli/command.py,sha256=8ijHhQIRcMNSuaN0fQZjM48L9-_9HTDr2qqif7pm9mA,259434
|
|
95
95
|
sky/client/cli/deprecation_utils.py,sha256=H_d5UyF2CekEoThduAzt5cihBO8hwKYMu0-Wqfbjv5E,3370
|
|
96
96
|
sky/client/cli/flags.py,sha256=hwQ4Y9lwTbfqYoINWUTqRMGBoXxBy4_E5hqtXbBcEeg,12219
|
|
97
97
|
sky/client/cli/table_utils.py,sha256=2aFdevW6B18mztZdhynP4ptgKW4Yp7bYC9B_ZWmzjiw,10215
|
|
98
98
|
sky/clouds/__init__.py,sha256=JvZtCgauz5rAids-huDVeeTSyS59aBT1BqMtxvpuD_k,1810
|
|
99
|
-
sky/clouds/aws.py,sha256=
|
|
99
|
+
sky/clouds/aws.py,sha256=D6n3rYRgu10SK8IfGqRg_8GamjYroJwFzTxm1oj9GYw,65565
|
|
100
100
|
sky/clouds/azure.py,sha256=qnabVjfS3em-TvxOIqZ6mMiipnt51MBVf7R0pnyB7bo,33233
|
|
101
101
|
sky/clouds/cloud.py,sha256=2GlEvP8L1GueV8K_02zHWVTkA0A7sOmn1t6iMlEUSus,40160
|
|
102
102
|
sky/clouds/cudo.py,sha256=s1rvATmLCIqSIXCZNTM7sazJDSXWHZWZY161_n-WX18,14113
|
|
@@ -124,25 +124,25 @@ sky/clouds/utils/azure_utils.py,sha256=NToRBnhEyuUvb-nBnsKTxjhOBRkMcrelL8LK4w6s4
|
|
|
124
124
|
sky/clouds/utils/gcp_utils.py,sha256=09MF4Vx0EW7S-GXGpyxpl2aQlHrqeu9ioV0nyionAyk,9890
|
|
125
125
|
sky/clouds/utils/oci_utils.py,sha256=TFqAqRLggg4Z0bhxrrq8nouSSomZy-ub1frHXEkud2M,7302
|
|
126
126
|
sky/clouds/utils/scp_utils.py,sha256=VGuccVO5uFGr8-yolWSoYrgr11z6cIeDBGcqkBzAyOs,18409
|
|
127
|
-
sky/dashboard/out/404.html,sha256=
|
|
128
|
-
sky/dashboard/out/clusters.html,sha256=
|
|
129
|
-
sky/dashboard/out/config.html,sha256=
|
|
127
|
+
sky/dashboard/out/404.html,sha256=tBk_rxkchrYiapECiOj4pCOebnkJwl2rMa3Z5uzQcAk,1423
|
|
128
|
+
sky/dashboard/out/clusters.html,sha256=jDdsqMnI-LT_e0Nqi5B0Llt-vXU-UL_MyoWh-HabFW4,1418
|
|
129
|
+
sky/dashboard/out/config.html,sha256=_TdY8CVeTqCLCEdP1knuL5_wumczKMNIKPiNGWjNsME,1414
|
|
130
130
|
sky/dashboard/out/favicon.ico,sha256=XilUZZglAl_1zRsg85QsbQgmQAzGPQjcUIJ-A3AzYn8,93590
|
|
131
|
-
sky/dashboard/out/index.html,sha256=
|
|
132
|
-
sky/dashboard/out/infra.html,sha256
|
|
133
|
-
sky/dashboard/out/jobs.html,sha256=
|
|
131
|
+
sky/dashboard/out/index.html,sha256=6U1bvgvrsuCZUSIuXJR2t7bhrk4cq60ju4zI6dklf-Y,1407
|
|
132
|
+
sky/dashboard/out/infra.html,sha256=91pCt6G-x_1RpDS-G8tL2HWYps--1-1FEmwUKQDsaJA,1412
|
|
133
|
+
sky/dashboard/out/jobs.html,sha256=6e5ZBO-0MCkclmjjQWwz41TLmvIEdGPPDSa0CyIz5xo,1410
|
|
134
134
|
sky/dashboard/out/skypilot.svg,sha256=c0iRtlfLlaUm2p0rG9NFmo5FN0Qhf3pq5Xph-AeMPJw,5064
|
|
135
|
-
sky/dashboard/out/users.html,sha256=
|
|
136
|
-
sky/dashboard/out/volumes.html,sha256=
|
|
137
|
-
sky/dashboard/out/workspaces.html,sha256=
|
|
138
|
-
sky/dashboard/out/_next/static/
|
|
139
|
-
sky/dashboard/out/_next/static/
|
|
135
|
+
sky/dashboard/out/users.html,sha256=vw895USvvHgI-3BSN4MU6dZn-uBeKYAIO4LMR9O2UJw,1412
|
|
136
|
+
sky/dashboard/out/volumes.html,sha256=fLR8R8jtlL4DPJx0zo7Ph1twYtPoQeSI0afzczYyjC8,1416
|
|
137
|
+
sky/dashboard/out/workspaces.html,sha256=EFa817kCjvStKSn7_lFdjDW-33zK00HSHJRSTAaY2cA,1422
|
|
138
|
+
sky/dashboard/out/_next/static/8ixeA0NVQJN8HUdijid8b/_buildManifest.js,sha256=ja5xIERT0vnQiXmxqHtZJIO7H0_oIRoYwmNdpEB-JuE,2394
|
|
139
|
+
sky/dashboard/out/_next/static/8ixeA0NVQJN8HUdijid8b/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
|
|
140
140
|
sky/dashboard/out/_next/static/chunks/1141-c3c10e2c6ed71a8f.js,sha256=wLWbYmunpjre6_MWVJ0S6bcNxl80ZDIQbKpemswPs1g,18362
|
|
141
141
|
sky/dashboard/out/_next/static/chunks/1272-1ef0bf0237faccdb.js,sha256=VJ6y-Z6Eg2T93hQIRfWAbjAkQ7nQhglmIaVbEpKSILY,38451
|
|
142
142
|
sky/dashboard/out/_next/static/chunks/1871-81adbc5f25dff78f.js,sha256=-JlmbDZU15pEAv54lv5-4j7UziaKTaYyF9FSwRdB-wM,20697
|
|
143
143
|
sky/dashboard/out/_next/static/chunks/2350.fab69e61bac57b23.js,sha256=TQCHO4AUL9MZo1e_8GOiL8y6vjQpj5tdXZ8oCKwM1LA,271
|
|
144
144
|
sky/dashboard/out/_next/static/chunks/2369.fc20f0c2c8ed9fe7.js,sha256=qkKMDvgq-AVeC811VipJzXHAB__R4G2eHj-I-7_N2Ek,8177
|
|
145
|
-
sky/dashboard/out/_next/static/chunks/2755.
|
|
145
|
+
sky/dashboard/out/_next/static/chunks/2755.d6dc6d530fed0b61.js,sha256=699W3yHKJzf0NBrDWQPCCAifVN3klVGcZ3cdlwxTNws,58268
|
|
146
146
|
sky/dashboard/out/_next/static/chunks/3294.87a13fba0058865b.js,sha256=sijIiwrwYbDGI4657rzsyK_k15G07t3RWNq4vPHkbk0,42374
|
|
147
147
|
sky/dashboard/out/_next/static/chunks/3785.170be320e0060eaf.js,sha256=wOmGq6LNTMXjzEZJgMEUmvVPT3bbnfhcJ-dZZuhyPC0,4538
|
|
148
148
|
sky/dashboard/out/_next/static/chunks/3850-ff4a9a69d978632b.js,sha256=XphBY9psNzmvGD28zgDunQEb-TX0_eOVaElmcuOjD1g,7455
|
|
@@ -172,7 +172,7 @@ sky/dashboard/out/_next/static/chunks/framework-cf60a09ccd051a10.js,sha256=_Qbam
|
|
|
172
172
|
sky/dashboard/out/_next/static/chunks/main-app-587214043926b3cc.js,sha256=t7glRfataAjNw691Wni-ZU4a3BsygRzPKoI8NOm-lsY,116244
|
|
173
173
|
sky/dashboard/out/_next/static/chunks/main-f15ccb73239a3bf1.js,sha256=jxOPLDVX3rkMc_jvGx2a-N2v6mvfOa8O6V0o-sLT0tI,110208
|
|
174
174
|
sky/dashboard/out/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
|
|
175
|
-
sky/dashboard/out/_next/static/chunks/webpack-
|
|
175
|
+
sky/dashboard/out/_next/static/chunks/webpack-e38d5319cd10a3a0.js,sha256=F0k12FlkurWsbQFNikc2NA6tMD642RKUUHAf6t1y9AM,4770
|
|
176
176
|
sky/dashboard/out/_next/static/chunks/pages/_app-bde01e4a2beec258.js,sha256=ZLZluABDOfg5D5yPS3kly42sCQTmBuI20Tcisv_Sr9A,95518
|
|
177
177
|
sky/dashboard/out/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
|
|
178
178
|
sky/dashboard/out/_next/static/chunks/pages/clusters-9e0df5442b04f7d0.js,sha256=vJs6GPARm5X6JFKdkQGZgnnuZR9tzqKhFGutKDJp0_8,869
|
|
@@ -191,40 +191,42 @@ sky/dashboard/out/_next/static/chunks/pages/jobs/pools/[pool]-e020fd69dbe76cea.j
|
|
|
191
191
|
sky/dashboard/out/_next/static/chunks/pages/workspace/new-3f88a1c7e86a3f86.js,sha256=83s5N5CZwIaRcmYMfqn2we60n2VRmgFw6Tbx18b8-e0,762
|
|
192
192
|
sky/dashboard/out/_next/static/chunks/pages/workspaces/[name]-bbfe5860c93470fd.js,sha256=HgFshvSkQ5d2zqiroEamSPU8oH-T_586y6D7MSwoGDo,1495
|
|
193
193
|
sky/dashboard/out/_next/static/css/0748ce22df867032.css,sha256=rNxC33B_yW5Yn9SEfUu3QDjgMD7BIMT9kwsmqCcgk4Y,56737
|
|
194
|
-
sky/dashboard/out/clusters/[cluster].html,sha256=
|
|
195
|
-
sky/dashboard/out/clusters/[cluster]/[job].html,sha256=
|
|
196
|
-
sky/dashboard/out/infra/[context].html,sha256=
|
|
197
|
-
sky/dashboard/out/jobs/[job].html,sha256=
|
|
198
|
-
sky/dashboard/out/jobs/pools/[pool].html,sha256=
|
|
194
|
+
sky/dashboard/out/clusters/[cluster].html,sha256=rP0q5ssazV3OwVClN5WzkH3mzsvte2j0yK8cvwH1Whg,2937
|
|
195
|
+
sky/dashboard/out/clusters/[cluster]/[job].html,sha256=tImnuoXYNIsQHoK6MG-VqwTRbQybjdBMVgsbs3ovmMM,2073
|
|
196
|
+
sky/dashboard/out/infra/[context].html,sha256=kBy8tNodFFY8nEljFMp7UfLPGdnVyFOISOOycRtvExM,1436
|
|
197
|
+
sky/dashboard/out/jobs/[job].html,sha256=Enxj1dTKU1iByhfIcOp4WqPZOSl7r2ltuUBIjRe4wI8,2305
|
|
198
|
+
sky/dashboard/out/jobs/pools/[pool].html,sha256=a2iTMX_wQh19DPA4w0WXjMVjs_jSrTd0_u-f3wrUuL8,2143
|
|
199
199
|
sky/dashboard/out/videos/cursor-small.mp4,sha256=8tRdp1vjawOrXUar1cfjOc-nkaKmcwCPZx_LO0XlCvQ,203285
|
|
200
|
-
sky/dashboard/out/workspace/new.html,sha256=
|
|
201
|
-
sky/dashboard/out/workspaces/[name].html,sha256=
|
|
200
|
+
sky/dashboard/out/workspace/new.html,sha256=jLtDCySw7R_QtDlS54aoyft2knSZrM4p18nilX0F_64,1428
|
|
201
|
+
sky/dashboard/out/workspaces/[name].html,sha256=LXowX9rNaEbt5LXP9oKJSivqQuAzjyz_-Yi9PlK6RUo,2759
|
|
202
202
|
sky/data/__init__.py,sha256=Nhaf1NURisXpZuwWANa2IuCyppIuc720FRwqSE2oEwY,184
|
|
203
203
|
sky/data/data_transfer.py,sha256=N8b0CQebDuHieXjvEVwlYmK6DbQxUGG1RQJEyTbh3dU,12040
|
|
204
204
|
sky/data/data_utils.py,sha256=jzqTZ3jzhmEFCSmPewZBIlyFd9oKQ8oOsoKxUklIgc0,38849
|
|
205
|
-
sky/data/mounting_utils.py,sha256=
|
|
205
|
+
sky/data/mounting_utils.py,sha256=QSJ3ijpKJPu5ALOMzNzAjYkIrQriJe0ug960kRcrnKI,29571
|
|
206
206
|
sky/data/storage.py,sha256=MRdzcWD6RB9ZTPKVIG04LJLaWdqneiOyRpTRyIHeMHE,216710
|
|
207
207
|
sky/data/storage_utils.py,sha256=bqCE7WQVOpFMxqVRkxee4oLn-iImh4ZL8qB5IicXh0w,14230
|
|
208
208
|
sky/jobs/__init__.py,sha256=BiABNdlab7xZDOv4C34kc1XuxG6C_Ip7Q96mT2iCnIg,1686
|
|
209
|
-
sky/jobs/constants.py,sha256=
|
|
210
|
-
sky/jobs/controller.py,sha256=
|
|
209
|
+
sky/jobs/constants.py,sha256=Ieo1E98pasRsO2wy7xMI5pVr5yIVr71kebBWKNpceB4,3212
|
|
210
|
+
sky/jobs/controller.py,sha256=5TgU5X4vTh_SyKIHSTQCkVp8fmofQo1ooIiNlkfutjs,56718
|
|
211
|
+
sky/jobs/file_content_utils.py,sha256=qIR5QXuhF9XbBkJOdH8YawF9PTBWIq-22dVMcPDpgfE,2796
|
|
212
|
+
sky/jobs/log_gc.py,sha256=3uBgCwXmfn1LJUTAkvWfYTWUiZOq788W-8WxmVdzSgo,8362
|
|
211
213
|
sky/jobs/recovery_strategy.py,sha256=FUyHTOtJ0rvTL-vznX8FcJP84ORlavewptLXr3r9evI,38423
|
|
212
|
-
sky/jobs/scheduler.py,sha256=
|
|
213
|
-
sky/jobs/state.py,sha256=
|
|
214
|
-
sky/jobs/utils.py,sha256=
|
|
214
|
+
sky/jobs/scheduler.py,sha256=aHgQ9E2xKAn8Il6tjMSzfOnlh1W0LJ5ZeKrqbPzyZk0,17903
|
|
215
|
+
sky/jobs/state.py,sha256=X7lE8BWkeUWOb4ZFLvPCh5cM0pUysihtS8ioedXj6ck,105640
|
|
216
|
+
sky/jobs/utils.py,sha256=K8qvSU3GSB0NiJUNrK3tNCpdxFFcu2L0N4x78OYbP48,105569
|
|
215
217
|
sky/jobs/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
216
218
|
sky/jobs/client/sdk.py,sha256=ZF-rtLhynC1VK8UNO3aaxcluOo3QnltokGYxJfhI7_g,17818
|
|
217
219
|
sky/jobs/client/sdk_async.py,sha256=RlYs0S5cenlIH8NIM74QYhLeDR0qqCYK3MVGWBhCu8c,5188
|
|
218
220
|
sky/jobs/server/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
219
|
-
sky/jobs/server/core.py,sha256=
|
|
220
|
-
sky/jobs/server/server.py,sha256
|
|
221
|
-
sky/jobs/server/utils.py,sha256=
|
|
221
|
+
sky/jobs/server/core.py,sha256=JSR___uUQRQ34WLAbmYfIE2fS-9XV8HUwSNZFLiyyzo,51136
|
|
222
|
+
sky/jobs/server/server.py,sha256=-jpUG2ivHMvQgyfXFpQrrxb7e-7oAdxZmsbqHQw1NO8,9964
|
|
223
|
+
sky/jobs/server/utils.py,sha256=Soc9pVhTUSE1N3NCoMBZ9Rbf8fUM6gmU9g7QNm6fi-g,5759
|
|
222
224
|
sky/logs/__init__.py,sha256=zW4gAEvWDz5S53FlLp3krAuKrmTSJ0e3kZDnhxSbW4E,722
|
|
223
225
|
sky/logs/agent.py,sha256=Jwpzio10P45BS6cugt6Ovu3_ZhysuXVcL_aneYZQENE,4766
|
|
224
226
|
sky/logs/aws.py,sha256=NLl_Ekxcdt6tnh1CufEzPvCch3yyLBSetn4QtBdDKUc,9621
|
|
225
227
|
sky/logs/gcp.py,sha256=eKVEcHO3FJRg_YTcE9omE8uAIF6AdBWWpkEPqWFAqXg,3857
|
|
226
228
|
sky/metrics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
227
|
-
sky/metrics/utils.py,sha256=
|
|
229
|
+
sky/metrics/utils.py,sha256=Gc3JQ6WhujzVJw8k0dB8A_Uo40WWeikEdCwJLgyXVpM,16670
|
|
228
230
|
sky/provision/__init__.py,sha256=JWdDenDcujRsvq2K6RFyk6SjLl0iAvlHfQIt0XPHdjU,9011
|
|
229
231
|
sky/provision/common.py,sha256=B0Gc6D8Bo4debxCOKGup8LDdc1db99TzFQdAlcg2D8Q,10912
|
|
230
232
|
sky/provision/constants.py,sha256=oc_XDUkcoLQ_lwDy5yMeMSWviKS0j0s1c0pjlvpNeWY,800
|
|
@@ -338,7 +340,7 @@ sky/provision/vsphere/common/vapiconnect.py,sha256=piU29ZfdYCJQMV5n-5J0EQ8G56AWO
|
|
|
338
340
|
sky/provision/vsphere/common/vim_utils.py,sha256=TjDgxIzV5Iuc5j1aFNL3NpaOwS0KKXhEUEwq7dzQT-s,17849
|
|
339
341
|
sky/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
340
342
|
sky/schemas/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
341
|
-
sky/schemas/api/responses.py,sha256=
|
|
343
|
+
sky/schemas/api/responses.py,sha256=8ERZLFWZhIdLOvx96BdJ_Val-Lrk-us4Tv7lIplmB6s,6828
|
|
342
344
|
sky/schemas/db/README,sha256=M93NBw29groxXu-Gy7sgqSyxpppXpRBbXxEXANLhVCo,122
|
|
343
345
|
sky/schemas/db/env.py,sha256=T-2a00Z9RcaIqcMu90R-RNA_lCutsWBRopDy4LQFnoM,2918
|
|
344
346
|
sky/schemas/db/script.py.mako,sha256=04kgeBtNMa4cCnG8CfQcKt6P6rnloIfj8wy0u_DBydM,704
|
|
@@ -357,6 +359,8 @@ sky/schemas/db/skypilot_config/001_initial_schema.py,sha256=hdLQpaNack2xlUyr4gI0
|
|
|
357
359
|
sky/schemas/db/spot_jobs/001_initial_schema.py,sha256=eHT3GxFHQhySA1rO5uZq9QlloJdtTMQp93f0CRmayf8,3759
|
|
358
360
|
sky/schemas/db/spot_jobs/002_cluster_pool.py,sha256=9ef0D_lUb4WB0e9uz8E0my_X4cgK_oX-WIj4p8usbOA,1369
|
|
359
361
|
sky/schemas/db/spot_jobs/003_pool_hash.py,sha256=YSBPXx277ErScN1Z0fo54go11j7qnYDmfUvVCshhnhE,872
|
|
362
|
+
sky/schemas/db/spot_jobs/004_job_file_contents.py,sha256=sWBBaCjMUcDGt0jBd98vY-TkFiGkk_-NEPbhTFBmIls,1413
|
|
363
|
+
sky/schemas/db/spot_jobs/005_logs_gc.py,sha256=BdmJx8c7vW1M94ztq0nctTNSxAJKcTQFwRQDhox8nxY,1160
|
|
360
364
|
sky/schemas/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
361
365
|
sky/schemas/generated/autostopv1_pb2.py,sha256=3w4k0woHFxK0qXvYGljLtqpp3IB-oGV15ouKWCUI3l4,2464
|
|
362
366
|
sky/schemas/generated/autostopv1_pb2.pyi,sha256=1slXiAfgnh-Ds-yHJglvhGddatmlOPfh3AAOCheipCk,1772
|
|
@@ -364,8 +368,8 @@ sky/schemas/generated/autostopv1_pb2_grpc.py,sha256=sUoHZNUNjxpsiYzJhSchC7p-uvig
|
|
|
364
368
|
sky/schemas/generated/jobsv1_pb2.py,sha256=B8dtZCkYwtjFmLBLSZ3jA9w4EgHeUXG72Q164Bw7PcY,10166
|
|
365
369
|
sky/schemas/generated/jobsv1_pb2.pyi,sha256=PNGewYm7KNxg7mfcPaTlxB_cJ0aIWFP0F4QRPxYenC0,10775
|
|
366
370
|
sky/schemas/generated/jobsv1_pb2_grpc.py,sha256=1QPd4wx09Hxjot3VpO3TPEbzouMA_cLG4cc-gZFYSSA,22959
|
|
367
|
-
sky/schemas/generated/managed_jobsv1_pb2.py,sha256
|
|
368
|
-
sky/schemas/generated/managed_jobsv1_pb2.pyi,sha256=
|
|
371
|
+
sky/schemas/generated/managed_jobsv1_pb2.py,sha256=-C7kR24cJlIAkDsvMbBY3-dGLJmEzHFwAJYHD2Vz8dw,10754
|
|
372
|
+
sky/schemas/generated/managed_jobsv1_pb2.pyi,sha256=S69u3I6dxZ1eiXiCmluOqtQlObaCoGteoAADoB2GYr8,13975
|
|
369
373
|
sky/schemas/generated/managed_jobsv1_pb2_grpc.py,sha256=XN8gy8iKcBk_GYBMn7cp528tVQU8PcJ32BgieNFUUU8,11916
|
|
370
374
|
sky/schemas/generated/servev1_pb2.py,sha256=1mNJoOB8N-c26WJCRvtk5Q4bkLYGjSKhVAo5ywufZbs,5263
|
|
371
375
|
sky/schemas/generated/servev1_pb2.pyi,sha256=HSjaksOAoaoNLzaWzqwN4UVwHel7BKhVZa9EF1Uo0IM,4619
|
|
@@ -390,15 +394,15 @@ sky/serve/client/sdk_async.py,sha256=idvbLb6q_NBo79OnXE-3SF-bwYFMPzDg_khiNqOLd3o
|
|
|
390
394
|
sky/serve/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
391
395
|
sky/serve/server/core.py,sha256=4w79PONDX5hAem95U1MRDHZ1VNMaBZJkI6hv5d2IKjQ,11011
|
|
392
396
|
sky/serve/server/impl.py,sha256=oQL6qd-rTq9M7Qs3n-fCv0vyQe1F9dAid_OgmRCjyjs,48982
|
|
393
|
-
sky/serve/server/server.py,sha256=
|
|
397
|
+
sky/serve/server/server.py,sha256=Bl0OzTwmXnMhsxwg9HkkzYkp0-SSWgSLVVYpTgjogKg,4931
|
|
394
398
|
sky/server/__init__.py,sha256=MPPBqFzXz6Jv5QSk6td_IcvnfXfNErDZVcizu4MLRow,27
|
|
395
|
-
sky/server/common.py,sha256=
|
|
399
|
+
sky/server/common.py,sha256=3PhyHZKoljKD0Uqy2Y_hMZtv__mAWqA5SE-Qdm_9_RE,40586
|
|
396
400
|
sky/server/config.py,sha256=oQO2Wls01oYIIr4h7B6UiPBNPcsqHlCJ3batir-Zx80,11143
|
|
397
|
-
sky/server/constants.py,sha256=
|
|
398
|
-
sky/server/daemons.py,sha256=
|
|
401
|
+
sky/server/constants.py,sha256=XBxIZy-zK9TM3Lv7IgBPeaqGri4rpmYXAJBYI76kCMI,2615
|
|
402
|
+
sky/server/daemons.py,sha256=LKpOi_nf6qlF3_NCFhoMrUFGNPDHam-RI8CJYe3emNE,9366
|
|
399
403
|
sky/server/metrics.py,sha256=8mTyD-zo2gyAJSPJyCtTR8oImeFJ2K-sAdlje5Bf5U4,5781
|
|
400
404
|
sky/server/rest.py,sha256=XDvKhVY9br9zt4TNbygUH_XDbH_wugzxKNYlbqVHJjY,16045
|
|
401
|
-
sky/server/server.py,sha256=
|
|
405
|
+
sky/server/server.py,sha256=Ct2rdplzKOD-KJAvm5VLKRB0squgiWuVIdxW1cyOfFI,94096
|
|
402
406
|
sky/server/state.py,sha256=YbVOMJ1JipQQv17gLIGyiGN7MKfnP83qlUa5MB1z0Yk,747
|
|
403
407
|
sky/server/stream_utils.py,sha256=2SSVU55LcrE4NBTjWASpOlYmnocVBzF90vSiaedkDM0,18578
|
|
404
408
|
sky/server/uvicorn.py,sha256=etFyJP9Kz5uRhM619VrQMiVhJKWPxTqbaz9H1wW1EWs,11955
|
|
@@ -411,10 +415,11 @@ sky/server/html/log.html,sha256=TSGZktua9Ysl_ysg3w60rjxAxhH61AJnsYDHdtqrjmI,6929
|
|
|
411
415
|
sky/server/html/token_page.html,sha256=eUndS5u1foL9vaWGPRTLMt7lCzD1g0wYJ2v_EeeFzlc,7046
|
|
412
416
|
sky/server/requests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
413
417
|
sky/server/requests/event_loop.py,sha256=OhpPbuce65bbjpGRlcJa78AVnYSm08SzFKt70ypCUuQ,1211
|
|
414
|
-
sky/server/requests/executor.py,sha256=
|
|
418
|
+
sky/server/requests/executor.py,sha256=IeuzZC7ylBnAFpkXvmjLAmxPfXGulH3NX-hF6qOU5kg,37333
|
|
415
419
|
sky/server/requests/payloads.py,sha256=UjtddICL5dyIWCpT2HSlWPGQwSmLqlmMD8C6PM4Sz3U,28367
|
|
416
420
|
sky/server/requests/preconditions.py,sha256=L_4ow2Twl0h2sk2P4waL2e1WVfYm4p4DFwmR6Nip8Bw,7486
|
|
417
421
|
sky/server/requests/process.py,sha256=UpJp5rZizNMFRCNRtudFSjbcJhFarFbtAGDWI9x_ZyE,13197
|
|
422
|
+
sky/server/requests/request_names.py,sha256=k1Av3FfZivtNYmhyAcmL7rL_G-YhkdI7kD5ntOn-FIE,2865
|
|
418
423
|
sky/server/requests/requests.py,sha256=0T5MQCKVqoduBK4bUneYylgUpzawLju3aK-7-pCtMLg,44607
|
|
419
424
|
sky/server/requests/threads.py,sha256=AwzbcoeLDz5RnSi0jJSD3u4lGDiYkCaa1qDvPkUqeMI,4131
|
|
420
425
|
sky/server/requests/queues/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -432,12 +437,12 @@ sky/skylet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
432
437
|
sky/skylet/attempt_skylet.py,sha256=BbnCgMDGc1wxZx6Olp7ezhsXC0E1aYhmfug-9NrJ00g,2137
|
|
433
438
|
sky/skylet/autostop_lib.py,sha256=2eab980ckQ5dA2DFAJlI5bAJ6EI7YI-JSlzFoTA9XwU,9698
|
|
434
439
|
sky/skylet/configs.py,sha256=nNBnpuzoU696FbC3Nv0qKVSDuTw4GAbr7eCcg0_Sldo,2135
|
|
435
|
-
sky/skylet/constants.py,sha256=
|
|
436
|
-
sky/skylet/events.py,sha256=
|
|
440
|
+
sky/skylet/constants.py,sha256=sic93M7HyseSUHFNyrMJd-gCrDLYKXX7FEYVGM-s9cU,26177
|
|
441
|
+
sky/skylet/events.py,sha256=Y6rilGfppFvYkNogD6J5iCd_ZVT8gdDhMpNz8xXd0oQ,16955
|
|
437
442
|
sky/skylet/job_lib.py,sha256=_BlkEQhsTIBfPOaIDVshMTNQPSgkRaNFk5HrP0aH7Qc,53226
|
|
438
443
|
sky/skylet/log_lib.py,sha256=6zQnJJamr5Q1ZPOgP85h2-LlyOAOGl4hhDp6kkRBf7Q,32355
|
|
439
444
|
sky/skylet/log_lib.pyi,sha256=cpbQ4oa1C3Vl5rmPKkA4wupgKTOZlPFZHQiqrhxR_X8,5409
|
|
440
|
-
sky/skylet/services.py,sha256=
|
|
445
|
+
sky/skylet/services.py,sha256=IZXMcWvjqZBlHJYNwK0FrGe8Za0O1y_ql9EmxdX7DI8,27242
|
|
441
446
|
sky/skylet/skylet.py,sha256=Hi07DNpTwvWz575iCLeHCpUlpnQrKQD_SSJdL2SPvo0,3019
|
|
442
447
|
sky/skylet/subprocess_daemon.py,sha256=0eA855Bir4eVwjxn0vKUc53VgDQBnZo_oG2QqYiqZCg,6258
|
|
443
448
|
sky/skylet/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -463,7 +468,7 @@ sky/skylet/ray_patches/worker.py.diff,sha256=agiK3C1elsLO8aLcspfUJvtG-88ckLZoDmx
|
|
|
463
468
|
sky/skylet/ray_patches/worker.py.patch,sha256=_OBhibdr3xOy5Qje6Tt8D1eQVm_msi50TJbCJmOTxVU,565
|
|
464
469
|
sky/ssh_node_pools/__init__.py,sha256=phpYJAd7I0uO1-O87eb9PbetGbtMiKW5mI-NQCZlXPA,40
|
|
465
470
|
sky/ssh_node_pools/core.py,sha256=uUWDsn5zXkOOtIX5dpB_8qwb33_Fy6NhBDQADGAQ5WA,4917
|
|
466
|
-
sky/ssh_node_pools/server.py,sha256=
|
|
471
|
+
sky/ssh_node_pools/server.py,sha256=FxsjXEbA_ea1kNan7hHPR27vSFZPeBHABEkf5jErD04,8555
|
|
467
472
|
sky/templates/aws-ray.yml.j2,sha256=ppW_L_o4g465jOgYNyDBssMt0V5ryWNoeLjs6Xeq9pE,9380
|
|
468
473
|
sky/templates/azure-ray.yml.j2,sha256=cQfCDev0quaVfVst_ly3tA8XrGXuAmAhkRJuS7qxFhg,6373
|
|
469
474
|
sky/templates/cudo-ray.yml.j2,sha256=9g0yFYUk6xPet-JNTPuVDZlVZ9oAcFPL1qaE6fyy-Xc,3797
|
|
@@ -476,7 +481,7 @@ sky/templates/jobs-controller.yaml.j2,sha256=Yif85ihH1Q7YziQ55-KkLaBkkbZUrtE5lmQ
|
|
|
476
481
|
sky/templates/kubernetes-ingress.yml.j2,sha256=73iDklVDWBMbItg0IexCa6_ClXPJOxw7PWz3leku4nE,1340
|
|
477
482
|
sky/templates/kubernetes-loadbalancer.yml.j2,sha256=Dc44sC_-EwDG69eZoD4pkLKQjzxH_qrlhd-rZ2gePJc,804
|
|
478
483
|
sky/templates/kubernetes-port-forward-proxy-command.sh,sha256=iw7mypHszg6Ggq9MbyiYMFOkSlXaQZulaxqC5IWYGCc,3381
|
|
479
|
-
sky/templates/kubernetes-ray.yml.j2,sha256=
|
|
484
|
+
sky/templates/kubernetes-ray.yml.j2,sha256=7WRu73amdR6XTbCRno0qwdtr45oj7s1SJVttI-FHjLI,64712
|
|
480
485
|
sky/templates/lambda-ray.yml.j2,sha256=PbUjxrGhyxhXxL2cmONAI_PRsua3I3Xr5V8yoEy7H6c,4760
|
|
481
486
|
sky/templates/local-ray.yml.j2,sha256=FNHeyHF6nW9nU9QLIZceUWfvrFTTcO51KqhTnYCEFaA,1185
|
|
482
487
|
sky/templates/nebius-ray.yml.j2,sha256=s8CA67eOvvtiTNTlDCdn85k9UQZDbTPEfPzhaisZt7E,6873
|
|
@@ -491,13 +496,13 @@ sky/templates/sky-serve-controller.yaml.j2,sha256=mmSjeGXro-DSDAz55uqKjBa3axd5tX
|
|
|
491
496
|
sky/templates/skypilot-server-kubernetes-proxy.sh,sha256=n5swq5LauF9dnhDWMYqFFHkXeJ44Zjmg1RVbF60jNbE,1079
|
|
492
497
|
sky/templates/vast-ray.yml.j2,sha256=Kjq8AtfL86VllOB8vDSnZeKsyv4QJV-80diXO2xuB6g,3020
|
|
493
498
|
sky/templates/vsphere-ray.yml.j2,sha256=zSCAptPE40wQcxn-bL5GPU-ac5mV9kgsbJXcSJTSWHA,3886
|
|
494
|
-
sky/templates/websocket_proxy.py,sha256=
|
|
499
|
+
sky/templates/websocket_proxy.py,sha256=68VlflqjYtep8jFOLYQOSwPMtLJWknVRoxu8ooxLKE4,10899
|
|
495
500
|
sky/usage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
496
501
|
sky/usage/constants.py,sha256=mFrTgrFIfFf4kpcl-M1VDU7_moD5_mJazUJTUDrybms,1102
|
|
497
502
|
sky/usage/usage_lib.py,sha256=MgNNcaxX1gVYDY7lN9mvDIYNhcp6lKxg4Ptk5_hSVsw,21656
|
|
498
503
|
sky/users/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
499
504
|
sky/users/model.conf,sha256=nPAaMai2fc-nlnEDTfW5Lyw6vgCcOS32BSms4aFOHoY,259
|
|
500
|
-
sky/users/permission.py,sha256=
|
|
505
|
+
sky/users/permission.py,sha256=4O_7XIE8dpyabAxi948VbKjDzy4zVGvyrpDzWzwdWOw,16200
|
|
501
506
|
sky/users/rbac.py,sha256=3ZWukXo85u6zWbPmHcPsF9EtZ3cd_51PLZYf2h-7uAM,3636
|
|
502
507
|
sky/users/server.py,sha256=HncIz1oltx-khqhwqLINmQs9MENRjeR2CCTnvs4TniM,28229
|
|
503
508
|
sky/users/token_service.py,sha256=78Xgm6rkd5M6IMMUekAp2YNLms4teNNvVDPfHh_5jts,7804
|
|
@@ -532,11 +537,11 @@ sky/utils/log_utils.py,sha256=RB5n58CAWmVepd_RAf-mjL2EViBFbtkPtSB5jJT6pLY,29684
|
|
|
532
537
|
sky/utils/message_utils.py,sha256=zi2Z7PEX6Xq_zvho-aEZe_J7UvpKOLdVDdGAcipRQPU,2662
|
|
533
538
|
sky/utils/perf_utils.py,sha256=HxmTmVQc5DSfqJwISPxdVLWmUxNZHbibJg1kKVI-1Cg,700
|
|
534
539
|
sky/utils/registry.py,sha256=I08nS0rvCF-xR5GEZoHEVgN1jcOeglz77h7xPpBCIjU,4179
|
|
535
|
-
sky/utils/resource_checker.py,sha256=
|
|
540
|
+
sky/utils/resource_checker.py,sha256=r3yXLwOIWK7mnrIpzVao77QrHcmGLYdKFFMSQj2Opvc,10793
|
|
536
541
|
sky/utils/resources_utils.py,sha256=OY_kXGnoaubEZUK-KftW-ZJmdA47Qj6TT6Z-Q5wdt-s,17892
|
|
537
542
|
sky/utils/rich_console_utils.py,sha256=wPvAlshaFHuMZSjiDnaK3OSBppZLBjAn-lj7AvxNBQk,553
|
|
538
543
|
sky/utils/rich_utils.py,sha256=Zb48ZeOX58WG2me48XYk2VO4N_BXL154xJwqlHu0zw8,20031
|
|
539
|
-
sky/utils/schemas.py,sha256=
|
|
544
|
+
sky/utils/schemas.py,sha256=MyeiYSxR0hjR7WHJtvv1MxTs_jPwdf51cvE8xGpmGXQ,58789
|
|
540
545
|
sky/utils/serialize_utils.py,sha256=nn2x-8cTZeiVr5cgaBpLOGGpSFtms62QAJFyxs_bodI,630
|
|
541
546
|
sky/utils/status_lib.py,sha256=QGkd6COD1GX1h30Mk9RMUdyeUOMJs5971GkxTcFgdsU,1705
|
|
542
547
|
sky/utils/subprocess_utils.py,sha256=LOdk03dA9NDTgbKisdHGWtIFXTtxeKIRDoSO_Rm8JIQ,16685
|
|
@@ -552,7 +557,7 @@ sky/utils/cli_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
552
557
|
sky/utils/cli_utils/status_utils.py,sha256=vd3wJadFQLyOXNdZ7pIPHauzo_w7ZY18U2XZRJBe_ZI,16441
|
|
553
558
|
sky/utils/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
554
559
|
sky/utils/db/db_utils.py,sha256=C3s89lC2fH2Pz6KWNBRAJYiJXMIScOYVfABlxqZt_ic,17768
|
|
555
|
-
sky/utils/db/migration_utils.py,sha256=
|
|
560
|
+
sky/utils/db/migration_utils.py,sha256=EMPC9V-7Nr74Vnwf6_6TFsavWROZ9ggAMWjF2bSnKnU,5147
|
|
556
561
|
sky/utils/kubernetes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
557
562
|
sky/utils/kubernetes/cleanup-tunnel.sh,sha256=rXMXuMfyB9bzKjLvXdMCjimDVvdjGPMXuqeo2ZNx9OA,2244
|
|
558
563
|
sky/utils/kubernetes/config_map_utils.py,sha256=Qq-Glt1SeYDfhcCqcpRtBDRPum0CYR50gpoa_Xm7u1s,4754
|
|
@@ -575,14 +580,14 @@ sky/volumes/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
575
580
|
sky/volumes/client/sdk.py,sha256=VNZPmx09FSSpn7oVoYWtiY71DLA3BBhM1XXlAWipJmU,4183
|
|
576
581
|
sky/volumes/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
577
582
|
sky/volumes/server/core.py,sha256=ZdKcedOZQEZYT-s-4qQIce5KgIw5AfVNLaPnsIblZkg,9974
|
|
578
|
-
sky/volumes/server/server.py,sha256=
|
|
583
|
+
sky/volumes/server/server.py,sha256=d40OoJWiLeNxrCDlmRVqomr70yG-Dh5YKNfHlmsCRhk,4695
|
|
579
584
|
sky/workspaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
580
585
|
sky/workspaces/core.py,sha256=kRrdh-8MhX1953pML1B_DoStnDuNrsmHcZlnWoAxVo0,27218
|
|
581
|
-
sky/workspaces/server.py,sha256=
|
|
586
|
+
sky/workspaces/server.py,sha256=uR4hSRU3wG5VHh-GU9wo6Z5_353wR0RkK8U6qQy1AKg,3701
|
|
582
587
|
sky/workspaces/utils.py,sha256=IIAiFoS6sdb2t0X5YoX9AietpTanZUQNTK8cePun-sY,2143
|
|
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.
|
|
588
|
-
skypilot_nightly-1.0.0.
|
|
588
|
+
skypilot_nightly-1.0.0.dev20251101.dist-info/licenses/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
|
|
589
|
+
skypilot_nightly-1.0.0.dev20251101.dist-info/METADATA,sha256=uB_Qp4U0vRiTnj4v4yjXuZ61GWsqhidCSje8Rk0t4qs,32069
|
|
590
|
+
skypilot_nightly-1.0.0.dev20251101.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
591
|
+
skypilot_nightly-1.0.0.dev20251101.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
|
|
592
|
+
skypilot_nightly-1.0.0.dev20251101.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
|
|
593
|
+
skypilot_nightly-1.0.0.dev20251101.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,[o,i]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{s&&i(!1)},[s]),!s||o)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:()=>{i(!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 H}});var r=t(85893),n=t(67294),a=t(45697),l=t.n(a),o=t(55739),i=t(41664),c=t.n(i),u=t(11163),d=t(30803),m=t(68764),x=t(53081),h=t(23266),p=t(68969),g=t(6378),f=t(36856),b=t(51214),j=t(94545),y=t(36989),v=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,v.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,v.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,v.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,v.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,v.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 L=t(47603),U=t(27325);t(9353);var F=t(23001),Z=t(66235),A=t(37673),P=t(47145),T=t(50326),M=t(1812),O=t(47615),z=t(10546);let q=new Set(O.statusGroups.active),V=[{label:"Name",value:"name"},{label:"User ID",value:"user id"},{label:"Role",value:"role"},{label:"GPU Type",value:"gpu type"},{label:"Infra",value:"infra"}],B=(e,s)=>{if(!e)return 0;let t=e;if("string"==typeof e)try{let s=e.replace(/'/g,'"').replace(/None/g,"null");t=JSON.parse(s)}catch(s){return console.error("Failed to parse accelerators string:",e,s),0}if("object"==typeof t&&null!==t){let e=Object.entries(t);return 0===e.length?0:(e.length>1&&console.warn("".concat(s," has ").concat(e.length," accelerator entries:"),t),Number(e[0][1])||0)}return 0},G=(e,s)=>e&&e.includes("@")?e.split("@")[0]:e||"N/A",J=(e,s)=>e&&e.includes("@")?e:s||"-",K=b.nb.REFRESH_INTERVAL,$=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 H(){let e=(0,u.useRouter)(),{userEmail:s}=(0,Z.Ap)(),[t,a]=(0,n.useState)(!1),l=(0,n.useRef)(null),i=(0,F.X)(),[c,m]=(0,n.useState)(!1),[f,b]=(0,n.useState)({username:"",password:"",role:"user"}),[j,y]=(0,n.useState)(!1),[v,R]=(0,n.useState)({open:!1,message:"",userName:""}),[E,D]=(0,n.useState)(null),[I,L]=(0,n.useState)(!1),[U,A]=(0,n.useState)(!1),[O,q]=(0,n.useState)(!1),[B,G]=(0,n.useState)(null),[J,H]=(0,n.useState)(!1),[Q,Y]=(0,n.useState)(null),[ee,es]=(0,n.useState)("import"),[et,er]=(0,n.useState)(!1),[en,ea]=(0,n.useState)(null),[el,eo]=(0,n.useState)(""),[ei,ec]=(0,n.useState)(!1),[eu,ed]=(0,n.useState)(null),[em,ex]=(0,n.useState)(!1),[eh,ep]=(0,n.useState)(null),[eg,ef]=(0,n.useState)(null),[eb,ej]=(0,n.useState)(!1),[ey,ev]=(0,n.useState)(null),[ew,eN]=(0,n.useState)(null),[ek,eC]=(0,n.useState)(void 0),[e_,eS]=(0,n.useState)("users"),[eR,eE]=(0,n.useState)(!1),[eD,eI]=(0,n.useState)(!1),[eL,eU]=(0,n.useState)(null),[eF,eZ]=(0,n.useState)(!1),[eA,eP]=(0,n.useState)(""),[eT,eM]=(0,n.useState)(""),[eO,ez]=(0,n.useState)([]),[eq,eV]=(0,n.useState)({name:[],"user id":[],role:[],"gpu type":[],infra:[]}),[eB,eG]=(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 t=e.query.deduplicate;if(void 0===t)eJ(!s);else{let e="true"===t;eB!==e&&eG(e)}}},[e.isReady,e.query.deduplicate,s]);let eJ=s=>{let t={...e.query};t.deduplicate=s.toString(),e.replace({pathname:e.pathname,query:t},void 0,{shallow:!0})},eK=s=>{(0,z.eG)(e,s)},e$=new Map([["name","Name"],["user id","User ID"],["role","Role"],["gpu type","GPU Type"],["infra","Infra"]]);(0,n.useEffect)(()=>{if(e.isReady&&"users"===e_){let s=(0,z.Fu)(e,e$);s.length>0&&ez(s)}},[e.isReady,e_]),(0,n.useEffect)(()=>{e.isReady&&("service-accounts"===e.query.tab?eS("service-accounts"):eS("users"))},[e.isReady,e.query.tab]),(0,n.useEffect)(()=>{(async function(){try{let e=await P.x.get("/api/health");if(e.ok){let s=await e.json();eC(!!s.basic_auth_enabled)}else eC(!1)}catch(e){eC(!1)}})()},[]);let eH=(0,n.useCallback)(async()=>{if(E&&Date.now()-E.timestamp<3e5)return E;L(!0);try{let e=await P.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),L(!1),t}catch(e){throw L(!1),e}},[E]);(0,n.useEffect)(()=>{eH().catch(()=>{console.error("Failed to get user role")})},[eH]);let eW=async(e,s)=>{try{let t=await eH();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}},eX=()=>{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()},eQ=async()=>{if(!f.username||!f.password){eN(Error("Username and password are required.")),m(!1);return}y(!0),eN(null),ev(null);try{let e=await P.x.post("/users/create",f);if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to create user")}ev('User "'.concat(f.username,'" created successfully!')),m(!1),b({username:"",password:"",role:"user"}),eX()}catch(e){eN(e),m(!1),b({username:"",password:"",role:"user"})}finally{y(!1)}},eY=async e=>{let s=e.target.files[0];s&&(G(s),Y(null))},e0=async()=>{if(!B){alert("Please select a CSV file first.");return}H(!0);try{let e=new FileReader;e.onload=async e=>{try{let s=e.target.result,t=await P.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...")))),Y({message:n}),r.success_count>0&&eX()}catch(e){alert("Error importing users: ".concat(e.message))}finally{H(!1)}},e.readAsText(B)}catch(e){alert("Error reading file: ".concat(e.message)),H(!1)}},e1=async e=>{ea(e),eo(""),er(!0)},e2=async()=>{if(!el){eN(Error("Please enter a new password."));return}ec(!0),ed(null);try{let e=await P.x.post("/users/update",{user_id:en.userId,password:el});if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to reset password")}ev('Password reset successfully for user "'.concat(en.usernameDisplay,'"!')),er(!1),ea(null),eo("")}catch(e){er(!1),ea(null),eo(""),ed(null),eN(e)}finally{ec(!1)}},e4=async()=>{if(eh){ej(!0),ef(null);try{let e=await P.x.post("/users/delete",{user_id:eh.userId});if(!e.ok){let s=await e.json();throw Error(s.detail||"Failed to delete user")}ev('User "'.concat(eh.usernameDisplay,'" deleted successfully!')),ex(!1),ep(null),eX()}catch(e){ex(!1),ep(null),ef(null),eN(e)}finally{ej(!1)}}},e3=()=>{ex(!1),ep(null)},e5=()=>{er(!1),ea(null),eo("")};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"===e_?"text-sky-blue border-sky-500":"text-gray-500 hover:text-gray-700 border-transparent"),onClick:()=>{eS("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"===e_?"text-sky-blue border-sky-500":"text-gray-500 hover:text-gray-700 border-transparent"),onClick:()=>{eS("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)(o.Z,{size:15,className:"mt-0"}),(0,r.jsx)("span",{className:"ml-2 text-gray-500",children:"Loading..."})]}),"users"===e_&&ek&&(null==E?void 0:E.role)==="admin"&&(0,r.jsx)("button",{onClick:async()=>{await eW("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"===e_&&ek&&(null==E?void 0:E.role)==="admin"&&(0,r.jsxs)("button",{onClick:async()=>{await eW("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:eX,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"}),!i&&(0,r.jsx)("span",{children:"Refresh"})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:["users"===e_?(0,r.jsx)("div",{className:"w-full sm:w-auto max-w-md",children:(0,r.jsx)(z.ML,{propertyList:V,valueList:eq,setFilters:ez,updateURLParams:eK,placeholder:"Filter users"})}):(0,r.jsxs)("div",{className:"relative flex-1 max-w-md",children:[(0,r.jsx)("input",{type:"text",placeholder:"Search by service account name, or created by",value:eT,onChange:e=>{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"}),eT&&(0,r.jsx)("button",{onClick:()=>{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"===e_&&!s&&(0,r.jsxs)("label",{className:"flex items-center cursor-pointer ml-4",children:[(0,r.jsx)("input",{type:"checkbox",checked:eB,onChange:e=>{let s=e.target.checked;eG(s),eJ(s)},className:"sr-only"}),(0,r.jsx)("div",{className:"relative inline-flex h-5 w-9 items-center rounded-full transition-colors ".concat(eB?"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(eB?"translate-x-5":"translate-x-1")})}),(0,r.jsx)("span",{className:"ml-2 text-sm text-gray-700",children:"Deduplicate users"})]}),"service-accounts"===e_&&(0,r.jsxs)("button",{onClick:()=>{eW("cannot create service account tokens",()=>{eE(!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"]})]}),"users"===e_&&(0,r.jsx)(z.x$,{filters:eO,setFilters:ez,updateURLParams:eK}),(0,r.jsxs)("div",{className:"fixed top-20 right-4 z-[9999] max-w-md",children:[(0,r.jsx)($,{message:ey,onDismiss:()=>ev(null)}),(0,r.jsx)(M.X,{error:ew,title:"Error",onDismiss:()=>eN(null)})]}),"users"===e_?(0,r.jsx)(W,{refreshInterval:K,setLoading:a,refreshDataRef:l,checkPermissionAndAct:eW,roleLoading:I,onResetPassword:e1,onDeleteUser:e=>{eW("cannot delete users",()=>{ep(e),ex(!0)})},basicAuthEnabled:ek,currentUserRole:null==E?void 0:E.role,currentUserId:null==E?void 0:E.id,filters:eO,setValueList:eV,deduplicateUsers:eB}):(0,r.jsx)(X,{checkPermissionAndAct:eW,userRoleCache:E,setCreateSuccess:ev,setCreateError:eN,showCreateDialog:eR,setShowCreateDialog:eE,showRotateDialog:eD,setShowRotateDialog:eI,tokenToRotate:eL,setTokenToRotate:eU,rotating:eF,setRotating:eZ,searchQuery:eT,setSearchQuery:eM}),(0,r.jsx)(T.Vq,{open:c,onOpenChange:e=>{m(e),e||eN(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:f.username,onChange:e=>b({...f,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:U?"text":"password",value:f.password,onChange:e=>b({...f,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(!U),children:U?(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:f.role,onChange:e=>b({...f,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:eQ,disabled:j,children:j?"Creating...":"Create"})]})]})}),(0,r.jsx)(T.Vq,{open:v.open,onOpenChange:e=>{R(s=>({...s,open:e})),e||eN(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)(o.Z,{size:16,className:"mr-2"}),(0,r.jsx)("span",{children:"Checking permissions..."})]}):(0,r.jsx)(r.Fragment,{children:v.userName?(0,r.jsxs)(r.Fragment,{children:[v.userName," is logged in as non-admin and ",v.message,"."]}):v.message})})]}),(0,r.jsx)(T.cN,{children:(0,r.jsx)(d.z,{variant:"outline",onClick:()=>R(e=>({...e,open:!1})),disabled:I,children:"OK"})})]})}),(0,r.jsx)(T.Vq,{open:O,onOpenChange:e=>{q(e),e||eN(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"===ee?"border-b-2 border-sky-500 text-sky-600":"text-gray-500 hover:text-gray-700"),onClick:()=>es("import"),children:"Import"}),(0,r.jsx)("button",{className:"px-4 py-2 text-sm font-medium ".concat("export"===ee?"border-b-2 border-sky-500 text-sky-600":"text-gray-500 hover:text-gray-700"),onClick:()=>es("export"),children:"Export"})]}),(0,r.jsx)("div",{className:"flex flex-col gap-4 py-4",children:"import"===ee?(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:eY,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"===ee?(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:e0,disabled:J||!B,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 P.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,o=e=>String(e).padStart(2,"0"),i=l.getFullYear(),c=o(l.getMonth()+1),u=o(l.getDate()),d=o(l.getHours()),m=o(l.getMinutes()),x=o(l.getSeconds());a.download="users_export_".concat(i,"-").concat(c,"-").concat(u,"-").concat(d,"-").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:et,onOpenChange:e=>{e||(e5(),eN(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==en?void 0:en.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:el,onChange:e=>eo(e.target.value),autoFocus:!0})]})}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)(d.z,{variant:"outline",onClick:e5,disabled:ei,children:"Cancel"}),(0,r.jsx)(d.z,{variant:"default",onClick:e2,disabled:ei||!el,className:"bg-sky-600 text-white hover:bg-sky-700",children:ei?"Resetting...":"Reset Password"})]})]})}),(0,r.jsx)(T.Vq,{open:em,onOpenChange:e=>{e||(e3(),eN(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==eh?void 0:eh.usernameDisplay)||"this user",'"? This action cannot be undone.']})]}),(0,r.jsxs)(T.cN,{children:[(0,r.jsx)(d.z,{variant:"outline",onClick:e3,disabled:eb,children:"Cancel"}),(0,r.jsx)(d.z,{variant:"destructive",onClick:e4,disabled:eb,children:eb?"Deleting...":"Delete"})]})]})})]})}function W(e){let{refreshInterval:s,setLoading:t,refreshDataRef:a,checkPermissionAndAct:l,roleLoading:i,onResetPassword:u,onDeleteUser:d,basicAuthEnabled:b,currentUserRole:v,currentUserId:w,filters:N,setValueList:k,deduplicateUsers:C}=e,[_,S]=(0,n.useState)([]),[U,F]=(0,n.useState)(!0),[Z,T]=(0,n.useState)(!1),[M,O]=(0,n.useState)({key:"username",direction:"ascending"}),[V,K]=(0,n.useState)(null),[$,H]=(0,n.useState)(""),[W,X]=(0,n.useState)({}),[Q,Y]=(0,n.useState)(!1),ee=(0,n.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&e&&t(!0),e&&F(!0),Y(!1);try{let s=await g.default.get(x.R),r=(s||[]).map(e=>({...e,usernameDisplay:G(e.username,e.userId),fullEmailID:J(e.username,e.userId),clusterCount:-1,jobCount:-1,gpuCount:-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","accelerators","job_name","job_id","infra"]}])]),l=a.jobs||[],o={},i=e=>{if(!e)return null;let s=e;if("string"==typeof e)try{let t=e.replace(/'/g,'"').replace(/None/g,"null");s=JSON.parse(t)}catch(e){return null}if("object"==typeof s&&null!==s){let e=Object.entries(s);if(e.length>0)return e[0][0]}return null},c=(e,s,t,r,n,a)=>{e&&s&&t&&(o[e]||(o[e]={}),o[e][s]||(o[e][s]={}),o[e][s][t]||(o[e][s][t]={clusterCount:0,jobCount:0,gpuCount:0}),o[e][s][t].clusterCount+=r,o[e][s][t].jobCount+=n,o[e][s][t].gpuCount+=a)};for(let e of n||[]){let s=e.user_hash;if(!s)continue;let t=i(e.gpus),r=e.infra,n=0;if("STOPPED"!==e.status&&"TERMINATED"!==e.status){let s=B(e.gpus,"Cluster ".concat(e.cluster)),t=e.num_nodes||1;n=s*t}c(r,t,s,1,0,n)}let u=e=>{if(!e||"string"!=typeof e)return 1;let s=e.match(/^(\d+)x/);return s?parseInt(s[1],10):1};for(let e of l||[]){if(!q.has(e.status))continue;let s=e.user_hash;if(!s)continue;let t=i(e.accelerators),r=e.infra,n=B(e.accelerators,"Job ".concat(e.job_id)),a=u(e.resources_str_full),l=n*a;c(r,t,s,0,1,l)}X(o),Y(!0);let d=(s||[]).map(e=>{let s=0,t=0,r=0,a=0;for(let r of n||[])if(r.user_hash===e.userId&&(s++,"STOPPED"!==r.status&&"TERMINATED"!==r.status)){let e=B(r.gpus,"Cluster ".concat(r.cluster)),s=r.num_nodes||1;t+=e*s}for(let s of l||[])if(s.user_hash===e.userId&&q.has(s.status)){r++;let e=B(s.accelerators,"Job ".concat(s.job_id)),t=u(s.resources_str_full);a+=e*t}return{...e,usernameDisplay:G(e.username,e.userId),fullEmailID:J(e.username,e.userId),clusterCount:s,jobCount:r,gpuCount:t+a}}),m=new Set,f=new Set;for(let[e,s]of Object.entries(o))for(let t of(m.add(e),Object.keys(s)))f.add(t);let b=new Set,j=new Set,y=new Set;d.forEach(e=>{e.usernameDisplay&&b.add(e.usernameDisplay),e.userId&&j.add(e.userId),e.role&&y.add(e.role)}),k({name:Array.from(b).sort(),"user id":Array.from(j).sort(),role:Array.from(y).sort(),"gpu type":Array.from(f).sort(),infra:Array.from(m).sort()}),S(d)}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=()=>ee(!0))},[a,ee]),(0,n.useEffect)(()=>{(async()=>{T(!1),F(!0),await f.ZP.preloadForPage("users"),ee(!0)})();let e=setInterval(()=>{"visible"===window.document.visibilityState&&ee(!1)},s);return()=>clearInterval(e)},[ee,s]);let es=(0,n.useMemo)(()=>{let e=_,s=N.filter(e=>"GPU Type"!==e.property&&"Infra"!==e.property),t=N.filter(e=>"GPU Type"===e.property),r=N.filter(e=>"Infra"===e.property);s.length>0&&(e=(0,z.cm)(_.map(e=>({...e,name:e.usernameDisplay,"user id":e.userId})),s));let n=(e,s,t)=>{let r=0,n=0,a=0,l=s.map(e=>e.toLowerCase()),o=t.map(e=>e.toLowerCase()),i=l.length>0,c=o.length>0;for(let[s,t]of Object.entries(W)){let u=s.toLowerCase();if(!c||o.includes(u))for(let[s,o]of Object.entries(t)){let t=s.toLowerCase();if((!i||l.includes(t))&&o[e]){let s=o[e];r+=s.clusterCount,n+=s.jobCount,a+=s.gpuCount}}}return{clusterCount:r,jobCount:n,gpuCount:a}},a=t.length>0,l=r.length>0;if(a||l){let s=t.map(e=>e.value).filter(Boolean),o=r.map(e=>e.value).filter(Boolean),i=s.map(e=>e.toLowerCase()),c=o.map(e=>e.toLowerCase());e=(e=e.filter(e=>{for(let[s,t]of Object.entries(W)){let r=s.toLowerCase();if(!l||c.includes(r))for(let[s,r]of Object.entries(t)){let t=s.toLowerCase();if((!a||i.includes(t))&&r[e.userId])return!0}}return!1})).map(e=>{let t=n(e.userId,s,o);return{...e,clusterCount:t.clusterCount,jobCount:t.jobCount,gpuCount:t.gpuCount}})}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),-1!==e.gpuCount&&(-1===s[t].gpuCount?s[t].gpuCount=e.gpuCount:s[t].gpuCount+=e.gpuCount),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,gpuCount:e.gpuCount,created_at:e.created_at}}),e=Object.values(s)}return(0,j.R0)(e,M.key,M.direction)},[_,M,N,C,W]),et=e=>{let s="ascending";M.key===e&&"ascending"===M.direction&&(s="descending"),O({key:e,direction:s})},er=e=>M.key===e?"ascending"===M.direction?" ↑":" ↓":"",en=async(e,s)=>{await l("cannot edit user role",()=>{K(e),H(s)})},ea=()=>{K(null),H("")},el=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 P.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 ee(!0),ea()}catch(e){console.error("Failed to update user role:",e),alert("Error updating role: ".concat(e.message))}finally{F(!1)}};return U&&0===_.length&&!Z?(0,r.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,r.jsx)(o.Z,{})}):Z?N.some(e=>"GPU Type"===e.property||"Infra"===e.property)&&!Q?(0,r.jsxs)("div",{className:"flex justify-center items-center h-64",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)("span",{className:"ml-2 text-gray-500",children:"Loading filtered data..."})]}):es&&0!==es.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:()=>et("usernameDisplay"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Name",er("usernameDisplay")]}),!C&&(0,r.jsxs)(m.ss,{onClick:()=>et("fullEmailID"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["User ID",er("fullEmailID")]}),!C&&(0,r.jsxs)(m.ss,{onClick:()=>et("role"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Role",er("role")]}),(0,r.jsxs)(m.ss,{onClick:()=>et("created_at"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Joined",er("created_at")]}),(0,r.jsxs)(m.ss,{onClick:()=>et("clusterCount"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Clusters",er("clusterCount")]}),(0,r.jsxs)(m.ss,{onClick:()=>et("jobCount"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["Jobs",er("jobCount")]}),(0,r.jsxs)(m.ss,{onClick:()=>et("gpuCount"),className:"sortable whitespace-nowrap cursor-pointer hover:bg-gray-50 w-1/6",children:["GPUs",er("gpuCount")]}),!C&&(b||"admin"===v)&&(0,r.jsx)(m.ss,{className:"whitespace-nowrap w-1/7",children:"Actions"})]})}),(0,r.jsx)(m.RM,{children:es.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:V===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:()=>el(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:ea,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"===v&&(0,r.jsx)("button",{onClick:()=>en(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)(y.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)(o.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)(o.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})}),(0,r.jsx)(m.pj,{children:-1===e.gpuCount?(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)(o.Z,{size:10,className:"mr-1"}),"Loading..."]}):(0,r.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium ".concat(e.gpuCount>0?"bg-purple-100 text-purple-600":"bg-gray-100 text-gray-500"),title:"Total GPUs: ".concat(e.gpuCount),children:e.gpuCount})}),!C&&(b||"admin"===v)&&(0,r.jsx)(m.pj,{className:"relative",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[b&&(0,r.jsx)("button",{onClick:"admin"===v||e.userId===w?async()=>{u(e)}:void 0,className:"admin"===v||e.userId===w?"text-blue-600 hover:text-blue-700 p-1":"text-gray-300 cursor-not-allowed p-1",title:"admin"===v||e.userId===w?"Reset Password":"You can only reset your own password",disabled:"admin"!==v&&e.userId!==w,children:(0,r.jsx)(I,{className:"h-4 w-4"})}),"admin"===v&&(0,r.jsx)("button",{onClick:()=>d(e),className:"text-red-600 hover:text-red-700 p-1",title:"Delete User",children:(0,r.jsx)(L.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:N.length>0?"No users match your filters.":"No users found."}),(0,r.jsx)("p",{className:"text-sm text-gray-400 mt-1",children:N.length>0?"Try adjusting your filter criteria.":"There are currently no users to display."})]}):(0,r.jsxs)("div",{className:"flex justify-center items-center h-64",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)("span",{className:"ml-2 text-gray-500",children:"Loading users..."})]})}function X(e){let{checkPermissionAndAct:s,userRoleCache:t,setCreateSuccess:a,setCreateError:l,showCreateDialog:i,setShowCreateDialog:u,showRotateDialog:d,setShowRotateDialog:x,tokenToRotate:f,setTokenToRotate:b,rotating:j,setRotating:v,searchQuery:w,setSearchQuery:k}=e,[C,_]=(0,n.useState)([]),[S,F]=(0,n.useState)(!0),[Z,M]=(0,n.useState)(!1),[O,z]=(0,n.useState)(null),[V,G]=(0,n.useState)(null),[J,K]=(0,n.useState)({token_name:"",expires_in_days:30}),[$,H]=(0,n.useState)(""),[W,X]=(0,n.useState)(!1),[Q,Y]=(0,n.useState)(!1),[ee,es]=(0,n.useState)(""),[et,er]=(0,n.useState)(null),[en,ea]=(0,n.useState)(null),[el,eo]=(0,n.useState)(null),[ei,ec]=(0,n.useState)(""),[eu,ed]=(0,n.useState)([]),em=async()=>{try{F(!0);let e=await P.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","accelerators","job_id","infra"]}])]),n=t||[],a=(null==r?void 0:r.jobs)||[],l=(s||[]).map(e=>{let s=e.service_account_user_id,t=0,r=0,l=0,o=0;for(let e of n)e.user_hash===s&&(t++,"STOPPED"!==e.status&&"TERMINATED"!==e.status&&(r+=B(e.gpus,"Cluster ".concat(e.cluster))));for(let e of a)e.user_hash===s&&q.has(e.status)&&(l++,o+=B(e.accelerators,"Job ".concat(e.job_name||e.job_id)));return{...e,clusterCount:t,jobCount:l,gpuCount:r+o,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)(()=>{em()},[]);let ex=async(e,t)=>{await s("cannot edit service account role",()=>{eo(e),ec(t)})},eh=()=>{eo(null),ec("")},ep=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 P.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 em(),eh()}catch(e){console.error("Failed to update service account role:",e),l(e)}finally{F(!1)}},eg=async e=>{try{await navigator.clipboard.writeText(e),es("Copied!"),setTimeout(()=>es(""),2e3)}catch(e){console.error("Failed to copy:",e)}},ef=async()=>{if(!J.token_name.trim()){l(Error("Token name is required"));return}X(!0);try{let e={token_name:J.token_name.trim(),expires_in_days:""===J.expires_in_days?null:J.expires_in_days},s=await P.x.post("/users/service-account-tokens",e);if(s.ok){let e=await s.json();er(e.token),K({token_name:"",expires_in_days:30}),await em()}else{let e=await s.json();throw Error(e.detail||"Failed to create token")}}catch(e){l(e)}finally{X(!1)}},eb=async()=>{if(O){Y(!0),G(null);try{let e=await P.x.post("/users/service-account-tokens/delete",{token_id:O.token_id});if(e.ok)a('Service account "'.concat(O.token_name,'" deleted successfully!')),M(!1),z(null),G(null),await em();else{let s=await e.json();throw Error(s.detail||"Failed to delete service account")}}catch(e){M(!1),z(null),G(null),l(e)}finally{Y(!1)}}},ej=async()=>{if(f){v(!0);try{let e={token_id:f.token_id,expires_in_days:""===$?null:parseInt($)},s=await P.x.post("/users/service-account-tokens/rotate",e);if(s.ok){let e=await s.json();ea(e.token),await em()}else{let e=await s.json();throw Error(e.detail||"Failed to rotate token")}}catch(e){l(e)}finally{v(!1)}}},ey=eu.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===eu.length?(0,r.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,r.jsx)(o.Z,{size:32}),(0,r.jsx)("span",{className:"ml-3",children:"Loading tokens..."})]}):(0,r.jsxs)(r.Fragment,{children:[0===ey.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:"GPUs"}),(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:ey.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:el===e.token_id?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("select",{value:ei,onChange:e=>ec(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:()=>ep(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:eh,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:()=>ex(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,{children:(0,r.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium ".concat(e.gpuCount>0?"bg-purple-100 text-purple-600":"bg-gray-100 text-gray-500"),title:"Total GPUs: ".concat(e.gpuCount),children:e.gpuCount})}),(0,r.jsx)(m.pj,{className:"truncate",children:e.created_at?(0,r.jsx)(y.Zg,{date:new Date(1e3*e.created_at)}):"Never"}),(0,r.jsx)(m.pj,{className:"truncate",children:e.last_used_at?(0,r.jsx)(y.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)(y.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)(y.WH,{content:"Rotate token",className:"capitalize text-sm text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>{s("cannot rotate service account tokens",()=>{b(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)(y.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",()=>{z(e),M(!0)})},className:"text-red-600 hover:text-red-800 font-medium inline-flex items-center",children:(0,r.jsx)(L.Z,{className:"h-4 w-4"})})})]})})]},e.token_id))})]})})}),(0,r.jsx)(T.Vq,{open:i,onOpenChange:e=>{u(e),e||(er(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:et?(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)(y.WH,{content:ee?"Copied!":"Copy token",className:"text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>eg(et),className:"flex items-center text-green-600 hover:text-green-800 transition-colors duration-200 p-1 ml-2",children:ee?(0,r.jsx)(R.Z,{className:"w-4 h-4"}):(0,r.jsx)(U.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:et})})]})}):(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:J.token_name,onChange:e=>K({...J,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:J.expires_in_days||"",onChange:e=>K({...J,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:et?(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:()=>{u(!1),er(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:()=>{u(!1),er(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:ef,disabled:W||!J.token_name.trim(),children:W?"Creating...":"Create Token"})]})})]})}),(0,r.jsx)(T.Vq,{open:Z,onOpenChange:e=>{M(e),e||(z(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==O?void 0:O.token_name,'"',(null==O?void 0:O.creator_user_hash)!==(null==t?void 0:t.id)&&(null==t?void 0:t.role)==="admin"?" owned by ".concat(null==O?void 0:O.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:()=>{M(!1),z(null)},disabled:Q,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:Q,children:Q?"Deleting...":"Delete Token"})]})]})}),(0,r.jsx)(T.Vq,{open:d,onOpenChange:e=>{x(e),e||(b(null),H(""),ea(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==f?void 0:f.token_name,'"',(null==f?void 0:f.creator_user_hash)!==(null==t?void 0:t.id)&&(null==t?void 0:t.role)==="admin"?" owned by ".concat(null==f?void 0:f.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:en?(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)(y.WH,{content:ee?"Copied!":"Copy token",className:"text-muted-foreground",children:(0,r.jsx)("button",{onClick:()=>eg(en),className:"flex items-center text-green-600 hover:text-green-800 transition-colors duration-200 p-1 ml-2",children:ee?(0,r.jsx)(R.Z,{className:"w-4 h-4"}):(0,r.jsx)(U.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:en})})]})}):(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:$,onChange:e=>H(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:en?(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),b(null),H(""),ea(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),b(null),H(""),ea(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:ej,disabled:j,children:j?"Rotating...":"Rotate Token"})]})})]})})]})}W.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:o}=s,i=Object.keys(l).map(e=>{let s=null==t?void 0:t[e],r=null==o?void 0:o[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,i,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({...o,...c}[s]):({...o,...c})[s]===t})?[...e,t,r]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}}]);
|
/sky/dashboard/out/_next/static/{DabuSAKsc_y0wyJxpTIdQ → 8ixeA0NVQJN8HUdijid8b}/_buildManifest.js
RENAMED
|
File without changes
|
/sky/dashboard/out/_next/static/{DabuSAKsc_y0wyJxpTIdQ → 8ixeA0NVQJN8HUdijid8b}/_ssgManifest.js
RENAMED
|
File without changes
|
{skypilot_nightly-1.0.0.dev20251029.dist-info → skypilot_nightly-1.0.0.dev20251101.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|