snowglobe 0.4.6__py3-none-any.whl → 0.4.8__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.
- snowglobe/client/src/app.py +13 -1
- snowglobe/client/src/cli.py +6 -0
- {snowglobe-0.4.6.dist-info → snowglobe-0.4.8.dist-info}/METADATA +1 -1
- {snowglobe-0.4.6.dist-info → snowglobe-0.4.8.dist-info}/RECORD +8 -8
- {snowglobe-0.4.6.dist-info → snowglobe-0.4.8.dist-info}/WHEEL +0 -0
- {snowglobe-0.4.6.dist-info → snowglobe-0.4.8.dist-info}/entry_points.txt +0 -0
- {snowglobe-0.4.6.dist-info → snowglobe-0.4.8.dist-info}/licenses/LICENSE +0 -0
- {snowglobe-0.4.6.dist-info → snowglobe-0.4.8.dist-info}/top_level.txt +0 -0
snowglobe/client/src/app.py
CHANGED
@@ -5,6 +5,7 @@ import importlib.util
|
|
5
5
|
import json
|
6
6
|
import logging
|
7
7
|
import os
|
8
|
+
import sys
|
8
9
|
import time
|
9
10
|
import traceback
|
10
11
|
from collections import defaultdict, deque
|
@@ -685,7 +686,17 @@ async def lifespan(app: FastAPI):
|
|
685
686
|
"agent_wrapper", agent_file_path
|
686
687
|
)
|
687
688
|
agent_module = importlib.util.module_from_spec(spec)
|
688
|
-
|
689
|
+
|
690
|
+
# Add current directory to path
|
691
|
+
sys_path_backup = sys.path.copy()
|
692
|
+
current_dir = os.getcwd()
|
693
|
+
if current_dir not in sys.path:
|
694
|
+
sys.path.insert(0, current_dir)
|
695
|
+
|
696
|
+
try:
|
697
|
+
spec.loader.exec_module(agent_module)
|
698
|
+
finally:
|
699
|
+
sys.path = sys_path_backup
|
689
700
|
|
690
701
|
if not hasattr(agent_module, "process_scenario"):
|
691
702
|
LOGGER.warning(
|
@@ -699,6 +710,7 @@ async def lifespan(app: FastAPI):
|
|
699
710
|
}
|
700
711
|
|
701
712
|
except Exception as e:
|
713
|
+
traceback.print_exc()
|
702
714
|
LOGGER.error(f"Error loading agent {filename}: {e}")
|
703
715
|
continue
|
704
716
|
|
snowglobe/client/src/cli.py
CHANGED
@@ -401,6 +401,8 @@ def test_agent_wrapper(filename: str, app_id: str, app_name: str) -> Tuple[bool,
|
|
401
401
|
return False, "Invalid response format"
|
402
402
|
|
403
403
|
except Exception as e:
|
404
|
+
import traceback
|
405
|
+
traceback.print_exc()
|
404
406
|
return False, f"Error: {str(e)}"
|
405
407
|
|
406
408
|
|
@@ -603,6 +605,8 @@ def _create_auth_server(config_key: str, rc_path: str) -> FastAPI:
|
|
603
605
|
|
604
606
|
return {"written": True}
|
605
607
|
except Exception as e:
|
608
|
+
import traceback
|
609
|
+
traceback.print_exc()
|
606
610
|
error(f"Failed to process key configuration: {e}")
|
607
611
|
return {"error": "Failed to process key configuration request"}
|
608
612
|
|
@@ -787,6 +791,8 @@ def start(
|
|
787
791
|
else:
|
788
792
|
console.print()
|
789
793
|
except Exception:
|
794
|
+
import traceback
|
795
|
+
traceback.print_exc()
|
790
796
|
# Do not block startup if we cannot load agents mapping
|
791
797
|
pass
|
792
798
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
snowglobe/client/__init__.py,sha256=kzp9wPUUYBXqDSKZbfmD4vrAQvrWSW5HOvtpFlEJWfs,353
|
2
|
-
snowglobe/client/src/app.py,sha256=
|
3
|
-
snowglobe/client/src/cli.py,sha256=
|
2
|
+
snowglobe/client/src/app.py,sha256=Ij7nB88VeGtz4iEKc9iwCQnG-AdsYaIDscwcU7SzDXg,39112
|
3
|
+
snowglobe/client/src/cli.py,sha256=DIOI4E0ZeEljXDiEZb9rkbTWdHi3m4owWvyKtAC5Ro0,27999
|
4
4
|
snowglobe/client/src/cli_utils.py,sha256=6C7J5gow8xveQYF4w6ewtQJKI7VvlLTx7FS_7gl7RwI,17227
|
5
5
|
snowglobe/client/src/config.py,sha256=YRx_AQEZoHaAqk6guTxynIEGV_iJ3wNNGtMmaKsYMbc,10488
|
6
6
|
snowglobe/client/src/models.py,sha256=BX310WrDN9Fd8v68me3XGL_ic1ulvjCrZyIT2ND1eUo,866
|
7
7
|
snowglobe/client/src/project_manager.py,sha256=Ze-qs4dQI2kIV-PmtWZ1b67hMUfsnsMHus90aT8HOow,9970
|
8
8
|
snowglobe/client/src/stats.py,sha256=IdaXroOZBmvLVa_p9pDE6hsxsc7-fBEDnLf8O6Ch0GA,1596
|
9
9
|
snowglobe/client/src/utils.py,sha256=hHOht0hc8fv3OuPTz2Tqs639CzSAF34JTZs5ifKV6YI,3708
|
10
|
-
snowglobe-0.4.
|
11
|
-
snowglobe-0.4.
|
12
|
-
snowglobe-0.4.
|
13
|
-
snowglobe-0.4.
|
14
|
-
snowglobe-0.4.
|
15
|
-
snowglobe-0.4.
|
10
|
+
snowglobe-0.4.8.dist-info/licenses/LICENSE,sha256=S90V6iFU5ZeSg44JQYS1To3pa7ZEobrHc_t483qSKSI,1070
|
11
|
+
snowglobe-0.4.8.dist-info/METADATA,sha256=158Z9QgzGaU4HIBqe020xSQMI7evAz0bZdlpl29yPZI,4467
|
12
|
+
snowglobe-0.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
13
|
+
snowglobe-0.4.8.dist-info/entry_points.txt,sha256=mqx4mTwFPHttjctE2ceYTYWCCIG30Ji2C89aaCYgHcM,71
|
14
|
+
snowglobe-0.4.8.dist-info/top_level.txt,sha256=PoyYihnCBjRyjeIT19yBcE47JTe7i1OwRXvJ4d5EohM,10
|
15
|
+
snowglobe-0.4.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|