aethergraph 0.1.0a2__py3-none-any.whl → 0.1.0a3__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.
aethergraph/__main__.py CHANGED
@@ -191,6 +191,9 @@ def main(argv: list[str] | None = None) -> int:
191
191
 
192
192
  # Export them to environment so the worker factory can read them
193
193
  os.environ["AETHERGRAPH_WORKSPACE"] = args.workspace
194
+ os.environ.setdefault(
195
+ "AETHERGRAPH_ROOT", args.workspace
196
+ ) # AETHERGRAPH_ROOT is the workspace root in env
194
197
  os.environ["AETHERGRAPH_PROJECT_ROOT"] = str(project_root)
195
198
  os.environ["AETHERGRAPH_LOAD_MODULES"] = ",".join(modules)
196
199
  os.environ["AETHERGRAPH_LOAD_PATHS"] = os.pathsep.join(paths)
@@ -24,6 +24,8 @@ from aethergraph.api.v1.viz import router as vis_router
24
24
 
25
25
  # include apis
26
26
  from aethergraph.config.config import AppSettings
27
+ from aethergraph.config.context import set_current_settings
28
+ from aethergraph.config.loader import load_settings
27
29
  from aethergraph.core.runtime.runtime_services import install_services
28
30
 
29
31
  # import built-in agents and plugins to register them
@@ -227,6 +229,10 @@ def create_app_from_env() -> FastAPI:
227
229
  workspace = os.environ.get("AETHERGRAPH_WORKSPACE", "./aethergraph_data")
228
230
  log_level = os.environ.get("AETHERGRAPH_LOG_LEVEL", "warning")
229
231
 
232
+ # 0) Load settings from env like `start_server` and CLI would (__main__.py)
233
+ cfg = load_settings()
234
+ set_current_settings(cfg)
235
+
230
236
  # 1) Load user graphs in *this* process
231
237
  _load_user_graphs_from_env()
232
238
 
@@ -234,7 +240,7 @@ def create_app_from_env() -> FastAPI:
234
240
  # If you have a config system, wire it here
235
241
  app = create_app(
236
242
  workspace=workspace,
237
- cfg=None, # or AppSettings.from_env(), etc.
243
+ cfg=cfg,
238
244
  log_level=log_level,
239
245
  )
240
246
  return app
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aethergraph
3
- Version: 0.1.0a2
3
+ Version: 0.1.0a3
4
4
  Summary: Python-first agentic DAG execution framework
5
5
  Author-email: Zhaocheng Liu <zhaocheng@aiperture.io>
6
6
  License: Apache License
@@ -1,5 +1,5 @@
1
1
  aethergraph/__init__.py,sha256=PfO5TwpE9Al0bGFjHx2prPH-ExtS6gSEWWoGdBQHXaQ,1170
2
- aethergraph/__main__.py,sha256=cf8CBwugeTnszHXDj52duWpeMyG92b7Ux3A9MxB19zY,12030
2
+ aethergraph/__main__.py,sha256=G48bLF4H0eq49ohrigcWhZwCbGv-m3xgLhhcoe0zJU4,12182
3
3
  aethergraph/api/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  aethergraph/api/v1/agents.py,sha256=DucSEDzhjiPuWtvzzD0gbT8SjEgPaPlNTvz6HFi4QwE,1334
5
5
  aethergraph/api/v1/apps.py,sha256=d1mZt6LHfGWHIjRwnMa9SPal061PKFJSUnE-ArOsraA,2184
@@ -127,7 +127,7 @@ aethergraph/plugins/utils/data_io.py,sha256=7gfd8jUUmYJmAupwno7O9TwteVWsjY_Tnp0q
127
127
  aethergraph/runner/__init__.py,sha256=l90QHNCvY7rLgHQSKxWA3faiqXF8pt_2mApMuUgR37c,190
128
128
  aethergraph/runtime/__init__.py,sha256=DGqEf7pqQG1h_RxHC3ecU_zcLGbvGivTsmeGOlNzZJI,2063
129
129
  aethergraph/server/__init__.py,sha256=sAOwqEBX6vWES6_D0CBDCYcpVaIM6pz8El-mGxp3zpA,133
130
- aethergraph/server/app_factory.py,sha256=gzH8-OuwowuUIIEM3kIPzUbPxyHl9rDtFMC8Uui2EXQ,8865
130
+ aethergraph/server/app_factory.py,sha256=F1rMcAjz0My1KvcYl-7KdEt_RjkGwHuPvAYfOiE5_6g,9084
131
131
  aethergraph/server/loading.py,sha256=XRnUHijNt8I-KL8t9DnYkPN9D-ffZHa61Tg4QjSUjOU,4179
132
132
  aethergraph/server/server.py,sha256=Y4QOfstxIDK45gAn-f_bFlrQtwi6FK-TKKL6GQHltBY,3644
133
133
  aethergraph/server/server_state.py,sha256=_8nB_aQ7lEgn3uUhHfQNZgxei-5w5hj3tBWK5IoDSzY,7262
@@ -347,10 +347,10 @@ aethergraph/storage/vector_index/faiss_index.py,sha256=uHEJyqkbWFcTIcZ3nXY0UWBjY
347
347
  aethergraph/storage/vector_index/sqlite_index.py,sha256=zoU7uSlMPGQKJE3UpVWGdMBV5Z7Ft-Hw0r7hKTuwgLo,6271
348
348
  aethergraph/tools/__init__.py,sha256=X6UEYgaxAoB532m40LPo0uMvMierk3gmVvsjM7MA4ow,458
349
349
  aethergraph/utils/optdeps.py,sha256=wlIq0e_WBTXBgYGqzYxaCcg_D47vDccqY3sql5zKbW4,285
350
- aethergraph-0.1.0a2.dist-info/licenses/LICENSE,sha256=JcWMZSXRGzXgAJMkTpqHvmyXtsYoAwRcB0rnNS0cRCE,10034
351
- aethergraph-0.1.0a2.dist-info/licenses/NOTICE,sha256=10TYfrFmJdzpCWge_f-DYyDtYDzU2MtE5qtQr4Sm8kc,1338
352
- aethergraph-0.1.0a2.dist-info/METADATA,sha256=qC2CM3WNMlK07r3BFxYqgCNMxhGokbHWy16WCnjt4vU,22262
353
- aethergraph-0.1.0a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
354
- aethergraph-0.1.0a2.dist-info/entry_points.txt,sha256=aqzsmIiAbKW3Z2uAcAi1Z1bkUu7vKrUuApttCPhhOyA,110
355
- aethergraph-0.1.0a2.dist-info/top_level.txt,sha256=omXbbeG3KmSv0unFePBbnmxe6L0k9E5CSoANPs7FMkY,12
356
- aethergraph-0.1.0a2.dist-info/RECORD,,
350
+ aethergraph-0.1.0a3.dist-info/licenses/LICENSE,sha256=JcWMZSXRGzXgAJMkTpqHvmyXtsYoAwRcB0rnNS0cRCE,10034
351
+ aethergraph-0.1.0a3.dist-info/licenses/NOTICE,sha256=10TYfrFmJdzpCWge_f-DYyDtYDzU2MtE5qtQr4Sm8kc,1338
352
+ aethergraph-0.1.0a3.dist-info/METADATA,sha256=3ctNYPMBmp8tG_cdlz71TvD5RKOVb_3jvXf5AWm7ZFE,22262
353
+ aethergraph-0.1.0a3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
354
+ aethergraph-0.1.0a3.dist-info/entry_points.txt,sha256=aqzsmIiAbKW3Z2uAcAi1Z1bkUu7vKrUuApttCPhhOyA,110
355
+ aethergraph-0.1.0a3.dist-info/top_level.txt,sha256=omXbbeG3KmSv0unFePBbnmxe6L0k9E5CSoANPs7FMkY,12
356
+ aethergraph-0.1.0a3.dist-info/RECORD,,