flock-core 0.4.522__py3-none-any.whl → 0.4.523__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/webapp/app/api/execution.py +13 -9
- {flock_core-0.4.522.dist-info → flock_core-0.4.523.dist-info}/METADATA +1 -1
- {flock_core-0.4.522.dist-info → flock_core-0.4.523.dist-info}/RECORD +6 -6
- {flock_core-0.4.522.dist-info → flock_core-0.4.523.dist-info}/WHEEL +0 -0
- {flock_core-0.4.522.dist-info → flock_core-0.4.523.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.522.dist-info → flock_core-0.4.523.dist-info}/licenses/LICENSE +0 -0
|
@@ -10,9 +10,9 @@ from fastapi import ( # Ensure Form and HTTPException are imported
|
|
|
10
10
|
Form,
|
|
11
11
|
Request,
|
|
12
12
|
)
|
|
13
|
+
from fastapi.encoders import jsonable_encoder
|
|
13
14
|
from fastapi.responses import HTMLResponse
|
|
14
15
|
from fastapi.templating import Jinja2Templates
|
|
15
|
-
from pydantic import BaseModel
|
|
16
16
|
|
|
17
17
|
if TYPE_CHECKING:
|
|
18
18
|
from flock.core.flock import Flock
|
|
@@ -152,10 +152,13 @@ async def htmx_run_flock(
|
|
|
152
152
|
return HTMLResponse(f"<p class='error'>Error processing inputs for {start_agent_name}: {e_parse}</p>")
|
|
153
153
|
|
|
154
154
|
result_data = await run_current_flock_service(start_agent_name, inputs, request.app.state)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
raw_json_for_template = json.dumps(
|
|
158
|
+
jsonable_encoder(result_data), # ← converts every nested BaseModel, datetime, etc.
|
|
159
|
+
indent=2,
|
|
160
|
+
ensure_ascii=False
|
|
161
|
+
)
|
|
159
162
|
# Unescape newlines for proper display in HTML <pre> tag
|
|
160
163
|
result_data_raw_json_str = raw_json_for_template.replace('\\n', '\n')
|
|
161
164
|
root_path = request.scope.get("root_path", "")
|
|
@@ -219,10 +222,11 @@ async def htmx_run_shared_flock(
|
|
|
219
222
|
|
|
220
223
|
shared_logger.info(f"HTMX Run Shared: Executing agent '{start_agent_name}' in pre-loaded Flock '{temp_flock.name}'. Inputs: {list(inputs.keys())}")
|
|
221
224
|
result_data = await temp_flock.run_async(start_agent=start_agent_name, input=inputs, box_result=False)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
raw_json_for_template = json.dumps(
|
|
226
|
+
jsonable_encoder(result_data), # ← converts every nested BaseModel, datetime, etc.
|
|
227
|
+
indent=2,
|
|
228
|
+
ensure_ascii=False
|
|
229
|
+
)
|
|
226
230
|
# Unescape newlines for proper display in HTML <pre> tag
|
|
227
231
|
result_data_raw_json_str = raw_json_for_template.replace('\\n', '\n')
|
|
228
232
|
shared_logger.info(f"HTMX Run Shared: Agent '{start_agent_name}' executed. Result keys: {list(result_data.keys()) if isinstance(result_data, dict) else 'N/A'}")
|
|
@@ -502,7 +502,7 @@ flock/webapp/app/theme_mapper.py,sha256=QzWwLWpED78oYp3FjZ9zxv1KxCyj43m8MZ0fhfzz
|
|
|
502
502
|
flock/webapp/app/utils.py,sha256=RF8DMKKAj1XPmm4txUdo2OdswI1ATQ7cqUm6G9JFDzA,2942
|
|
503
503
|
flock/webapp/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
504
504
|
flock/webapp/app/api/agent_management.py,sha256=5xqO94QjjAYvxImyjKV9EGUQOvo4n3eqs7pGwGPSQJ4,10394
|
|
505
|
-
flock/webapp/app/api/execution.py,sha256=
|
|
505
|
+
flock/webapp/app/api/execution.py,sha256=EeOhpABZ1STcRKIa8pXRqWeqtD4KS8KAWTNYbVns2FQ,13432
|
|
506
506
|
flock/webapp/app/api/flock_management.py,sha256=1o-6-36kTnUjI3am_BqLpdrcz0aqFXrxE-hQHIFcCsg,4869
|
|
507
507
|
flock/webapp/app/api/registry_viewer.py,sha256=IoInxJiRR0yFlecG_l2_eRc6l35RQQyEDMG9BcBkipY,1020
|
|
508
508
|
flock/webapp/app/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -562,8 +562,8 @@ flock/workflow/agent_execution_activity.py,sha256=Gy6FtuVAjf0NiUXmC3syS2eJpNQF4R
|
|
|
562
562
|
flock/workflow/flock_workflow.py,sha256=iSUF_soFvWar0ffpkzE4irkDZRx0p4HnwmEBi_Ne2sY,9666
|
|
563
563
|
flock/workflow/temporal_config.py,sha256=3_8O7SDEjMsSMXsWJBfnb6XTp0TFaz39uyzSlMTSF_I,3988
|
|
564
564
|
flock/workflow/temporal_setup.py,sha256=YIHnSBntzOchHfMSh8hoLeNXrz3B1UbR14YrR6soM7A,1606
|
|
565
|
-
flock_core-0.4.
|
|
566
|
-
flock_core-0.4.
|
|
567
|
-
flock_core-0.4.
|
|
568
|
-
flock_core-0.4.
|
|
569
|
-
flock_core-0.4.
|
|
565
|
+
flock_core-0.4.523.dist-info/METADATA,sha256=vpIiEYBpEyuBEwT9iQ7eU70WzJT2OMmetWqBLYfncc0,22786
|
|
566
|
+
flock_core-0.4.523.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
567
|
+
flock_core-0.4.523.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
568
|
+
flock_core-0.4.523.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
569
|
+
flock_core-0.4.523.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|