flock-core 0.4.521__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 -2
- {flock_core-0.4.521.dist-info → flock_core-0.4.523.dist-info}/METADATA +1 -1
- {flock_core-0.4.521.dist-info → flock_core-0.4.523.dist-info}/RECORD +6 -6
- {flock_core-0.4.521.dist-info → flock_core-0.4.523.dist-info}/WHEEL +0 -0
- {flock_core-0.4.521.dist-info → flock_core-0.4.523.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.521.dist-info → flock_core-0.4.523.dist-info}/licenses/LICENSE +0 -0
|
@@ -10,6 +10,7 @@ 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
16
|
|
|
@@ -151,7 +152,13 @@ async def htmx_run_flock(
|
|
|
151
152
|
return HTMLResponse(f"<p class='error'>Error processing inputs for {start_agent_name}: {e_parse}</p>")
|
|
152
153
|
|
|
153
154
|
result_data = await run_current_flock_service(start_agent_name, inputs, request.app.state)
|
|
154
|
-
|
|
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
|
+
)
|
|
155
162
|
# Unescape newlines for proper display in HTML <pre> tag
|
|
156
163
|
result_data_raw_json_str = raw_json_for_template.replace('\\n', '\n')
|
|
157
164
|
root_path = request.scope.get("root_path", "")
|
|
@@ -215,7 +222,11 @@ async def htmx_run_shared_flock(
|
|
|
215
222
|
|
|
216
223
|
shared_logger.info(f"HTMX Run Shared: Executing agent '{start_agent_name}' in pre-loaded Flock '{temp_flock.name}'. Inputs: {list(inputs.keys())}")
|
|
217
224
|
result_data = await temp_flock.run_async(start_agent=start_agent_name, input=inputs, box_result=False)
|
|
218
|
-
raw_json_for_template = json.dumps(
|
|
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
|
+
)
|
|
219
230
|
# Unescape newlines for proper display in HTML <pre> tag
|
|
220
231
|
result_data_raw_json_str = raw_json_for_template.replace('\\n', '\n')
|
|
221
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
|