flock-core 0.4.0b42__py3-none-any.whl → 0.4.0b43__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 flock-core might be problematic. Click here for more details.
- flock/core/flock.py +1 -0
- flock/webapp/run.py +12 -7
- {flock_core-0.4.0b42.dist-info → flock_core-0.4.0b43.dist-info}/METADATA +1 -1
- {flock_core-0.4.0b42.dist-info → flock_core-0.4.0b43.dist-info}/RECORD +7 -7
- {flock_core-0.4.0b42.dist-info → flock_core-0.4.0b43.dist-info}/WHEEL +0 -0
- {flock_core-0.4.0b42.dist-info → flock_core-0.4.0b43.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.0b42.dist-info → flock_core-0.4.0b43.dist-info}/licenses/LICENSE +0 -0
flock/core/flock.py
CHANGED
flock/webapp/run.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import os # For environment variable
|
|
2
2
|
import sys
|
|
3
|
+
from collections.abc import Callable, Sequence
|
|
3
4
|
from pathlib import Path
|
|
4
|
-
from typing import TYPE_CHECKING
|
|
5
|
+
from typing import TYPE_CHECKING, Any
|
|
5
6
|
|
|
6
7
|
import uvicorn
|
|
7
8
|
|
|
9
|
+
from flock.core.api.custom_endpoint import FlockEndpoint
|
|
10
|
+
|
|
8
11
|
if TYPE_CHECKING:
|
|
9
12
|
from flock.core import Flock
|
|
10
13
|
|
|
@@ -17,6 +20,7 @@ def start_integrated_server(
|
|
|
17
20
|
port: int,
|
|
18
21
|
server_name: str, # Currently unused as UI sets its own title
|
|
19
22
|
theme_name: str | None = None,
|
|
23
|
+
custom_endpoints: Sequence[FlockEndpoint] | dict[tuple[str, list[str] | None], Callable[..., Any]] | None = None,
|
|
20
24
|
):
|
|
21
25
|
"""Starts the webapp, preloads flock & theme, includes API routes (TODO)."""
|
|
22
26
|
print(
|
|
@@ -29,6 +33,10 @@ def start_integrated_server(
|
|
|
29
33
|
sys.path.insert(0, str(src_dir))
|
|
30
34
|
|
|
31
35
|
# Import necessary webapp components *after* path setup
|
|
36
|
+
from flock.core.api.endpoints import (
|
|
37
|
+
create_api_router, # Need to adapt this later
|
|
38
|
+
)
|
|
39
|
+
from flock.core.api.main import FlockAPI
|
|
32
40
|
from flock.core.api.run_store import (
|
|
33
41
|
RunStore, # Needed for API routes later
|
|
34
42
|
)
|
|
@@ -40,7 +48,6 @@ def start_integrated_server(
|
|
|
40
48
|
from flock.webapp.app.services.flock_service import (
|
|
41
49
|
set_current_flock_instance_programmatically,
|
|
42
50
|
)
|
|
43
|
-
# from flock.core.api.endpoints import create_api_router # Need to adapt this later
|
|
44
51
|
|
|
45
52
|
# 1. Set Theme (use provided or default)
|
|
46
53
|
set_current_theme_name(
|
|
@@ -55,11 +62,9 @@ def start_integrated_server(
|
|
|
55
62
|
)
|
|
56
63
|
print(f"Flock '{flock_instance.name}' preloaded.")
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
# webapp_fastapi_app.include_router(api_router, prefix="/api")
|
|
62
|
-
# print("API routes included.")
|
|
65
|
+
flock_api = FlockAPI(flock_instance, custom_endpoints)
|
|
66
|
+
webapp_fastapi_app.include_router(flock_api.app.router, prefix="/api")
|
|
67
|
+
print("API routes included.")
|
|
63
68
|
|
|
64
69
|
# 4. Run Uvicorn - STILL PASSING INSTANCE here because we need to modify it (add routes)
|
|
65
70
|
# and set state BEFORE running. Reload won't work well here.
|
|
@@ -19,7 +19,7 @@ flock/cli/view_results.py,sha256=dOzK0O1FHSIDERnx48y-2Xke9BkOHS7pcOhs64AyIg0,781
|
|
|
19
19
|
flock/cli/yaml_editor.py,sha256=K3N0bh61G1TSDAZDnurqW9e_-hO6CtSQKXQqlDhCjVo,12527
|
|
20
20
|
flock/cli/assets/release_notes.md,sha256=bqnk50jxM3w5uY44Dc7MkdT8XmRREFxrVBAG9XCOSSU,4896
|
|
21
21
|
flock/core/__init__.py,sha256=p7lmQULRu9ejIAELfanZiyMhW0CougIPvyFHW2nqBFQ,847
|
|
22
|
-
flock/core/flock.py,sha256=
|
|
22
|
+
flock/core/flock.py,sha256=hO4s-dgXbX9sT0T9E8uosyraTNJbg5jPmzmTPTWGw-k,30479
|
|
23
23
|
flock/core/flock_agent.py,sha256=JTqaGD_OnZSd3bVU989WMsK1rAT6UGn-JYrPxFV15EE,39576
|
|
24
24
|
flock/core/flock_evaluator.py,sha256=dOXZeDOGZcAmJ9ahqq_2bdGUU1VOXY4skmwTVpAjiVw,1685
|
|
25
25
|
flock/core/flock_factory.py,sha256=_4zsjkEmJnCR7IvJ3SUHnDbX6c7Tt3E4P5ohxwKvE6w,3173
|
|
@@ -440,7 +440,7 @@ flock/themes/zenburned.toml,sha256=UEmquBbcAO3Zj652XKUwCsNoC2iQSlIh-q5c6DH-7Kc,1
|
|
|
440
440
|
flock/themes/zenwritten-dark.toml,sha256=To5l6520_3UqAGiEumpzGWsHhXxqu9ThrMildXKgIO0,1669
|
|
441
441
|
flock/themes/zenwritten-light.toml,sha256=G1iEheCPfBNsMTGaVpEVpDzYBHA_T-MV27rolUYolmE,1666
|
|
442
442
|
flock/webapp/__init__.py,sha256=YtRbbyciN3Z2oMB9fdXZuvM3e49R8m2mY5qHLDoapRA,37
|
|
443
|
-
flock/webapp/run.py,sha256=
|
|
443
|
+
flock/webapp/run.py,sha256=nr73BOhZpYwzV44N1gyTI9OpZ0eEO1qvrboT78cK0xY,5133
|
|
444
444
|
flock/webapp/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
445
445
|
flock/webapp/app/config.py,sha256=t4-4OCa_tqktkJLQgVbAmwFA7MoyahFE1IEDItsqqpY,4155
|
|
446
446
|
flock/webapp/app/main.py,sha256=xCk2zhSAlgd2YmVT8Sfw-kwq9dnTBMtRybJpz__cCQw,42975
|
|
@@ -495,8 +495,8 @@ flock/workflow/agent_execution_activity.py,sha256=Gy6FtuVAjf0NiUXmC3syS2eJpNQF4R
|
|
|
495
495
|
flock/workflow/flock_workflow.py,sha256=iSUF_soFvWar0ffpkzE4irkDZRx0p4HnwmEBi_Ne2sY,9666
|
|
496
496
|
flock/workflow/temporal_config.py,sha256=3_8O7SDEjMsSMXsWJBfnb6XTp0TFaz39uyzSlMTSF_I,3988
|
|
497
497
|
flock/workflow/temporal_setup.py,sha256=YIHnSBntzOchHfMSh8hoLeNXrz3B1UbR14YrR6soM7A,1606
|
|
498
|
-
flock_core-0.4.
|
|
499
|
-
flock_core-0.4.
|
|
500
|
-
flock_core-0.4.
|
|
501
|
-
flock_core-0.4.
|
|
502
|
-
flock_core-0.4.
|
|
498
|
+
flock_core-0.4.0b43.dist-info/METADATA,sha256=9V2dw83Zii9udURZd6uTcqSS2vsDJOQdwuSu62ia21s,17125
|
|
499
|
+
flock_core-0.4.0b43.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
500
|
+
flock_core-0.4.0b43.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
501
|
+
flock_core-0.4.0b43.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
502
|
+
flock_core-0.4.0b43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|