flock-core 0.4.517__py3-none-any.whl → 0.4.519__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.

@@ -154,14 +154,14 @@ async def htmx_run_flock(
154
154
  raw_json_for_template = json.dumps(result_data, indent=2)
155
155
  # Unescape newlines for proper display in HTML <pre> tag
156
156
  result_data_raw_json_str = raw_json_for_template.replace('\\n', '\n')
157
-
157
+ root_path = request.scope.get("root_path", "")
158
158
  return templates.TemplateResponse(
159
159
  "partials/_results_display.html",
160
160
  {
161
161
  "request": request,
162
162
  "result": result_data,
163
163
  "result_raw_json": result_data_raw_json_str,
164
- "feedback_endpoint": "/ui/api/flock/htmx/feedback",
164
+ "feedback_endpoint": f"{root_path}/ui/api/flock/htmx/feedback",
165
165
  "share_id": None,
166
166
  "flock_name": current_flock_from_state.name,
167
167
  "agent_name": start_agent_name,
@@ -226,6 +226,7 @@ async def htmx_run_shared_flock(
226
226
  except Exception as e:
227
227
  shared_logger.error(f"HTMX Run Shared: Error during execution for '{start_agent_name}' (share_id: {share_id}): {e}", exc_info=True)
228
228
  return HTMLResponse(f"<p class='error'>An unexpected error occurred: {e!s}</p>")
229
+ root_path = request.scope.get("root_path", "")
229
230
 
230
231
  return templates.TemplateResponse(
231
232
  "partials/_results_display.html",
@@ -233,7 +234,7 @@ async def htmx_run_shared_flock(
233
234
  "request": request,
234
235
  "result": result_data,
235
236
  "result_raw_json": result_data_raw_json_str,
236
- "feedback_endpoint": "/ui/api/flock/htmx/feedback-shared",
237
+ "feedback_endpoint": f"{root_path}/ui/api/flock/htmx/feedback-shared",
237
238
  "share_id": share_id,
238
239
  "flock_name": temp_flock.name,
239
240
  "agent_name": start_agent_name,
@@ -19,10 +19,8 @@
19
19
  <input type="hidden" name="agent_name" value="{{ entry.agent }}">
20
20
  <input type="hidden" name="actual_response" value='{{ entry.raw_json | replace("'", "&#39;") }}'>
21
21
  <input type="hidden" name="reason" value="positive">
22
- </form>
23
-
24
- <a href="#"
25
- hx-post="{% if share_id %}/chat/htmx/feedback-shared{% else %}/chat/htmx/feedback{% endif %}"
22
+ </form> <a href="#"
23
+ hx-post="{% if share_id %}{{ url_for('chat_feedback_shared') }}{% else %}{{ url_for('chat_feedback') }}{% endif %}"
26
24
  hx-include="closest .feedback-meta"
27
25
  hx-target="closest .bubble"
28
26
  hx-swap="innerHTML"
@@ -34,9 +32,8 @@
34
32
  </div>
35
33
 
36
34
  <!-- Feedback form (initially hidden, toggled by 👎 link) -->
37
- <div x-show="showForm" style="width: 800px;">
38
- <form
39
- hx-post="{% if share_id %}/chat/htmx/feedback-shared{% else %}/chat/htmx/feedback{% endif %}"
35
+ <div x-show="showForm" style="width: 800px;"> <form
36
+ hx-post="{% if share_id %}{{ url_for('chat_feedback_shared') }}{% else %}{{ url_for('chat_feedback') }}{% endif %}"
40
37
  hx-target="closest .bubble"
41
38
  hx-swap="innerHTML"
42
39
  x-on:htmx:afterRequest="showForm=false"
@@ -1,8 +1,7 @@
1
1
  <article>
2
2
  <h3>Theme Switcher</h3>
3
3
  <div style="display:flex; gap:0.5rem; flex-wrap:wrap; align-items:center;">
4
- <label for="theme-select" style="margin:0;">Select Theme:</label>
5
- <select id="theme-select" name="theme" hx-get="{{ url_for('htmx_theme_preview') }}" hx-target="#theme-preview" hx-trigger="load, change" hx-include="#theme-select">
4
+ <label for="theme-select" style="margin:0;">Select Theme:</label> <select id="theme-select" name="theme" hx-get="{{ url_for('htmx_theme_preview') }}" hx-target="#theme-preview" hx-trigger="load, change" hx-include="#theme-select" hx-swap="innerHTML">
6
5
  {% for t in themes %}
7
6
  <option value="{{ t }}" {% if t == current_theme %}selected{% endif %}>{{ t }}</option>
8
7
  {% endfor %}
@@ -1,11 +1,24 @@
1
1
  {% if css_vars_str %}
2
- <style>
3
- {{ css_vars_str | safe }}
4
- </style>
2
+ <script>
3
+ (function() {
4
+ // Remove any existing theme preview
5
+ var existingPreview = document.getElementById('theme-preview-css');
6
+ if (existingPreview) {
7
+ existingPreview.remove();
8
+ }
9
+
10
+ // Inject new theme preview CSS
11
+ var style = document.createElement('style');
12
+ style.id = 'theme-preview-css';
13
+ style.textContent = `{{ css_vars_str | safe }}`;
14
+ document.head.appendChild(style);
15
+ })();
16
+ </script>
5
17
  {% endif %}
6
18
  <article style="border:1px solid var(--pico-border-color); padding:1rem; border-radius:8px;">
7
19
  <hgroup>
8
20
  <h3>Theme Preview: {{ theme_name }}</h3>
21
+ <p><small>Preview applied globally - navigate away or refresh to revert</small></p>
9
22
  </hgroup>
10
23
  <div class="grid" style="grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:0.5rem;">
11
24
  {% for color_name, color_value in main_colors %}
@@ -20,4 +33,4 @@
20
33
  <button class="secondary">Secondary</button>
21
34
  <button class="contrast">Contrast</button>
22
35
  <p>Sample text with <a href="#">link</a>, <mark>mark</mark>, <code>code</code>.</p>
23
- </article>
36
+ </article>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flock-core
3
- Version: 0.4.517
3
+ Version: 0.4.519
4
4
  Summary: Declarative LLM Orchestration at Scale
5
5
  Author-email: Andre Ratzenberger <andre.ratzenberger@whiteduck.de>
6
6
  License-File: LICENSE
@@ -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=wRuJ3v2PXgpyiPZ_0t4qYDG7tgQgBlAn1I9QZocQN2U,12995
505
+ flock/webapp/app/api/execution.py,sha256=tmExz11EPYmltYsQ-xB58ueXZbmlpW1fJFi0s6LjWnU,13120
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
@@ -528,7 +528,7 @@ flock/webapp/templates/partials/_agent_list.html,sha256=0TcutldXJncQP6jMsXh8cnbj
528
528
  flock/webapp/templates/partials/_agent_manager_view.html,sha256=8oJlxjtgeOkCQcfhaAmE4s_tklk25Jw0XScXpS_MVr0,2571
529
529
  flock/webapp/templates/partials/_agent_tools_checklist.html,sha256=T60fb7OrJYHUw0hJLC_otskgvbH9dZXbv5klgWBkSWk,686
530
530
  flock/webapp/templates/partials/_chat_container.html,sha256=MHj9yRHy_wVZD6f_Csc0bZBhtxJMfr2V5bRRAaXiqtU,843
531
- flock/webapp/templates/partials/_chat_messages.html,sha256=Tt9wD8JoX1bQ6lPWOCGtWWY9rw-ULyToVDcmEaDz07M,3790
531
+ flock/webapp/templates/partials/_chat_messages.html,sha256=CEvNAVLCanBXRW6-3Oy11XzUUlWdUEZml9nujO92kPQ,3831
532
532
  flock/webapp/templates/partials/_chat_settings_form.html,sha256=iPb0XT52VLyU9HDsoFH41uXosGJsuXwaU1smKDWc_ms,4538
533
533
  flock/webapp/templates/partials/_create_flock_form.html,sha256=7IukF4rQwdn3D5fVXqusGlTmNeoJXEwclhzQt57NVDY,2823
534
534
  flock/webapp/templates/partials/_dashboard_flock_detail.html,sha256=RWPshcq3-11j13jw5j-x4r3AMULdNHsWK4ejfLYD4MM,1044
@@ -548,13 +548,13 @@ flock/webapp/templates/partials/_registry_table.html,sha256=z4EW5G3DTknymBeSlpL2
548
548
  flock/webapp/templates/partials/_registry_viewer_content.html,sha256=FBqP1YRL-rfE6YpgtWnpyFqATUhVKUHTGvF6QbIOKrw,1968
549
549
  flock/webapp/templates/partials/_results_display.html,sha256=1UJvCeyJTPxuJYUcGUM8O8uhNvCxxOfxpCjC-PCr80U,5268
550
550
  flock/webapp/templates/partials/_settings_env_content.html,sha256=16h1ppTGNY7wNkxQkaNhouTNN22tlw_u5rBk6cdhzFk,597
551
- flock/webapp/templates/partials/_settings_theme_content.html,sha256=wjd4Pg_NjEaraTo84DekbJhfKO5AIMnDje6eR-kMufo,833
551
+ flock/webapp/templates/partials/_settings_theme_content.html,sha256=TPkqLyXJHwWOOgjLVURLpHA2JJRncZGf78Q6olIZIJc,852
552
552
  flock/webapp/templates/partials/_settings_view.html,sha256=f2h9jnDv8-JRkDzsbk_1oqAGoCBrMwL0Zp4-ENSAdwY,1375
553
553
  flock/webapp/templates/partials/_share_chat_link_snippet.html,sha256=N83lNAbkZiDfzZYviKwURPGGErSZhRlxnNzUqXsB7lE,793
554
554
  flock/webapp/templates/partials/_share_link_snippet.html,sha256=6en9lOdtu8FwVbtmkJzSQpHQ1WFXHnCbe84FDgAEF3U,1533
555
555
  flock/webapp/templates/partials/_sidebar.html,sha256=yfhEcF3xKI5j1c3iq46mU8mmPvgyvCHXe6xT7vsE6KM,4984
556
556
  flock/webapp/templates/partials/_structured_data_view.html,sha256=TEaXcMGba9ruxEc_MLxygIO1qWcuSTo1FnosFtGSKWI,2101
557
- flock/webapp/templates/partials/_theme_preview.html,sha256=81vP5z8958LjhGWGwjVAVw3zW0uvYwfcXlU30i9exmo,867
557
+ flock/webapp/templates/partials/_theme_preview.html,sha256=THeMYTXzgzHJxzWqaTtUhmJyBZT3saLRAa6wzZa4qnk,1347
558
558
  flock/workflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
559
559
  flock/workflow/activities.py,sha256=fyvefDOWZhhj5gCYIHR9Aqm2DbE6XI6-sXESFnnYRuc,9911
560
560
  flock/workflow/agent_activities.py,sha256=NhBZscflEf2IMfSRa_pBM_TRP7uVEF_O0ROvWZ33eDc,963
@@ -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.517.dist-info/METADATA,sha256=ofFT82sCre9PCN_3qdS4c9jz8mwCAAEUb4SYX01jQBY,22786
566
- flock_core-0.4.517.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
567
- flock_core-0.4.517.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
568
- flock_core-0.4.517.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
569
- flock_core-0.4.517.dist-info/RECORD,,
565
+ flock_core-0.4.519.dist-info/METADATA,sha256=UJPnE19ciayD-HSGtRkXKBxy2wAUA7eLE4hVpoISg1w,22786
566
+ flock_core-0.4.519.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
567
+ flock_core-0.4.519.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
568
+ flock_core-0.4.519.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
569
+ flock_core-0.4.519.dist-info/RECORD,,