wafer-cli 0.2.28__py3-none-any.whl → 0.2.29__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.
- wafer/global_config.py +13 -0
- {wafer_cli-0.2.28.dist-info → wafer_cli-0.2.29.dist-info}/METADATA +1 -1
- {wafer_cli-0.2.28.dist-info → wafer_cli-0.2.29.dist-info}/RECORD +6 -6
- {wafer_cli-0.2.28.dist-info → wafer_cli-0.2.29.dist-info}/WHEEL +0 -0
- {wafer_cli-0.2.28.dist-info → wafer_cli-0.2.29.dist-info}/entry_points.txt +0 -0
- {wafer_cli-0.2.28.dist-info → wafer_cli-0.2.29.dist-info}/top_level.txt +0 -0
wafer/global_config.py
CHANGED
|
@@ -234,7 +234,20 @@ def get_supabase_anon_key() -> str:
|
|
|
234
234
|
|
|
235
235
|
The anon key is public and used for client-side auth operations
|
|
236
236
|
like token refresh.
|
|
237
|
+
|
|
238
|
+
If SUPABASE_URL is set via env var, infer the matching anon key
|
|
239
|
+
from the built-in environments. Otherwise, use the config file's environment.
|
|
237
240
|
"""
|
|
241
|
+
supabase_url = get_supabase_url()
|
|
242
|
+
|
|
243
|
+
# If SUPABASE_URL was set via env var, find matching environment
|
|
244
|
+
if os.environ.get("SUPABASE_URL"):
|
|
245
|
+
# Check built-in environments to find matching Supabase URL
|
|
246
|
+
for env_name, env in BUILTIN_ENVIRONMENTS.items():
|
|
247
|
+
if env.supabase_url == supabase_url:
|
|
248
|
+
return env.supabase_anon_key
|
|
249
|
+
|
|
250
|
+
# Otherwise, use config file's environment
|
|
238
251
|
return load_global_config().get_api_environment().supabase_anon_key
|
|
239
252
|
|
|
240
253
|
|
|
@@ -11,7 +11,7 @@ wafer/cli_instructions.py,sha256=bziUKDNDAXABVMvKPLEMXm-hFSD2TcFSh-FKRYa949k,469
|
|
|
11
11
|
wafer/config.py,sha256=h5Eo9_yfWqWGoPNdVQikI9GoZVUeysunSYiixf1mKcw,3411
|
|
12
12
|
wafer/corpus.py,sha256=CY9T7wXENNDJxnrtI-XsQmXeptrFfKG4x-lngrc9_3s,24748
|
|
13
13
|
wafer/evaluate.py,sha256=HMFQD-uwC6Wky1t_0JxYZaoHWgLaTBkjxOxgpZVnGrc,190519
|
|
14
|
-
wafer/global_config.py,sha256=
|
|
14
|
+
wafer/global_config.py,sha256=iu1HbTDr1695tSeDG2NfkK7PiY7XD6vjCk37w1wHbgk,11920
|
|
15
15
|
wafer/gpu_run.py,sha256=TwqXy72T7f2I7e6n5WWod3xgxCPnDhU0BgLsB4CUoQY,9716
|
|
16
16
|
wafer/inference.py,sha256=tZCO5i05FKY27ewis3CSBHFBeFbXY3xwj0DSjdoMY9s,4314
|
|
17
17
|
wafer/kernel_scope.py,sha256=hKCwCIVZWl5xFdoA5G9kPucdG9O0jw9Zgyso-mc6aZo,20801
|
|
@@ -40,8 +40,8 @@ wafer/templates/optimize_kernel.py,sha256=4-MaKm_C9BQHQEllrNLLYkcdhJpcj6D-8zbJ4F
|
|
|
40
40
|
wafer/templates/optimize_kernelbench.py,sha256=T3co9Y9eSLWDrZG66gwQVFMdnGVoyUQos-TxnMMBLL8,3747
|
|
41
41
|
wafer/templates/trace_analyze.py,sha256=B7CiRlsokERzBjLL-k49kGjpU2zlJZqzTE05xbRS1WI,2878
|
|
42
42
|
wafer/tests/test_eval_cli_parity.py,sha256=SGmaj2NGBZ7GdDF53bXsECvQbV21iHZw8YeL_MJOLk0,7206
|
|
43
|
-
wafer_cli-0.2.
|
|
44
|
-
wafer_cli-0.2.
|
|
45
|
-
wafer_cli-0.2.
|
|
46
|
-
wafer_cli-0.2.
|
|
47
|
-
wafer_cli-0.2.
|
|
43
|
+
wafer_cli-0.2.29.dist-info/METADATA,sha256=Cqwe6AdROCtQG3Xo6BzyICS2n5Rvtk-ex85P_s0PSIU,2799
|
|
44
|
+
wafer_cli-0.2.29.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
45
|
+
wafer_cli-0.2.29.dist-info/entry_points.txt,sha256=WqB7hB__WhtPY8y1cO2sZiUz7fCq6Ik-usAigpeFvWE,41
|
|
46
|
+
wafer_cli-0.2.29.dist-info/top_level.txt,sha256=2MK1IVMWfpLL8BZCQ3E9aG6L6L666gSA_teYlwan4fs,6
|
|
47
|
+
wafer_cli-0.2.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|