mindroot 8.11.0__py3-none-any.whl → 8.13.0__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 mindroot might be problematic. Click here for more details.

@@ -21,6 +21,17 @@ export class ChatHistory {
21
21
  setTimeout( () => {
22
22
  window.initializeCodeCopyButtons()
23
23
  }, 3000);
24
+
25
+ // Trigger re-render to ensure all messages are displayed
26
+ this.chat.requestUpdate();
27
+
28
+ // Scroll to bottom after loading history (no animation)
29
+ setTimeout(() => {
30
+ // Reset user scrolling flag and scroll to bottom
31
+ this.chat.userScrolling = false;
32
+ window.userScrolling = false;
33
+ this.chat._scrollToBottom(true);
34
+ }, 100);
24
35
 
25
36
  } catch (error) {
26
37
  console.error('Error loading history:', error);
@@ -345,7 +345,7 @@ class Chat extends BaseEl {
345
345
  this.messages = [...this.messages, { content: html, sender: 'ai', spinning: 'no' }]
346
346
  }
347
347
 
348
- _scrollToBottom() {
348
+ _scrollToBottom(forceInstant = false) {
349
349
  const chatLog = this.shadowRoot.querySelector('.chat-log');
350
350
  if (!chatLog) return;
351
351
 
@@ -359,7 +359,7 @@ class Chat extends BaseEl {
359
359
  if (window.access_token && window.access_token.length > 20) {
360
360
  console.log('this is an embed probably, not scrolling messages')
361
361
  } else {
362
- lastEl.scrollIntoView({ behavior: 'instant', block: 'end' });
362
+ lastEl.scrollIntoView({ behavior: forceInstant ? 'instant' : 'instant', block: 'end' });
363
363
  }
364
364
 
365
365
  } else {
@@ -30,10 +30,8 @@ async def load_session_data(session_id: str, property: str):
30
30
  # check for existing file
31
31
  # if not, create it
32
32
  if not os.path.exists(name):
33
- print("Session data file not found, creating it")
34
- os.makedirs(os.path.dirname(name), exist_ok=True)
35
- with open(name, "w") as f:
36
- f.write("{}")
33
+ print("Session data file not found, returning None")
34
+ return None
37
35
  # load existing data
38
36
  data = json.load(open(name))
39
37
  # return data
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mindroot
3
- Version: 8.11.0
3
+ Version: 8.13.0
4
4
  Summary: MindRoot AI Agent Framework
5
5
  Requires-Python: >=3.9
6
6
  License-File: LICENSE
@@ -489,8 +489,8 @@ mindroot/coreplugins/chat/static/js/action.js,sha256=A26Cnwk8un8jSV1ujZeHMSBMNa4
489
489
  mindroot/coreplugins/chat/static/js/auth.js,sha256=HbzBIz2yGdWQggVGzEsIzNG272T7xuxcEloDFBLtXLM,979
490
490
  mindroot/coreplugins/chat/static/js/authfetch.js,sha256=a05Vj4pt6Qnu4WdF7jsismVijubUXZuR6ndWeYBOtZY,526
491
491
  mindroot/coreplugins/chat/static/js/base.js,sha256=AtaHATjxpQNQ7Lv8RUlV0n3icrpmC2dmnkAdSI_v714,1285
492
- mindroot/coreplugins/chat/static/js/chat-history.js,sha256=J-9Kv5pNW2HWQuPbgGiyMESOFnAOd25cSLK-CxIU1Mg,5912
493
- mindroot/coreplugins/chat/static/js/chat.js,sha256=u2GqdPI4WGYz0v4d1GH2QbK9wTzsJzV6zr0Xz0E1nmw,13147
492
+ mindroot/coreplugins/chat/static/js/chat-history.js,sha256=CwMQgVQQKCTEjOkM5O-BsBbCaJCr7UemDgrAkJXZH80,6378
493
+ mindroot/coreplugins/chat/static/js/chat.js,sha256=9Btd00L9108RCkJHUqFW4ov1qS41cD5dcfivbze-few,13194
494
494
  mindroot/coreplugins/chat/static/js/chatform.js,sha256=hXluGkTIxCMzp_3v1IPBwcDvAdjQqcrP5ojJd95I1wA,17823
495
495
  mindroot/coreplugins/chat/static/js/chatmessage.js,sha256=qoRb6XWKzzbMOIowIt3admWO8FaT2VqWGhN_anQlGSQ,1272
496
496
  mindroot/coreplugins/chat/static/js/cmdprefixes.js,sha256=Gip5WQXYb_VFK51OYlNtxT1fKUATKLsuVUpaGBKBwig,1022
@@ -1780,7 +1780,7 @@ mindroot/lib/parent_templates.py,sha256=elcQFFwrFtfAYfQOSTs06aiDDigN1f1R2f8I1V-w
1780
1780
  mindroot/lib/plugins.py,sha256=96QElzJ6cuS9BpQJQZMJblDCF2toO14Z80D7DRAjMDc,1592
1781
1781
  mindroot/lib/plugins_install.py,sha256=CUDkdDhIKkwN3U1hfKaTq8QUwGApFrNKmt3iycZuTKs,2042
1782
1782
  mindroot/lib/route_decorators.py,sha256=L3E-bn48zhuxk6YPtyc2oP76-5WuV_SmjxtngJeYGmM,2153
1783
- mindroot/lib/session_files.py,sha256=Vl50YfEnKt8ucGSDIavsAdbAcf8IbMG3Fdgm4pEh2Yg,1263
1783
+ mindroot/lib/session_files.py,sha256=yY8TKfJPGZoK4yAy3WbfrJ7I5xL6NfDJmIICH6qC7Bw,1167
1784
1784
  mindroot/lib/streamcmd.py,sha256=f9n3OtryEkMbNNuFr5BAZn1EpSLUKuDZw-zpo97XxJk,4714
1785
1785
  mindroot/lib/templates.py,sha256=5dODCS6UeC9Y_PdMWlUuQCCZUUt2ICR0S1YF6XrG3eM,15154
1786
1786
  mindroot/lib/token_counter.py,sha256=U3tyw2CG1uK1FmupOHzTkyBwx5UKI30hRrRTqu_-ALQ,7170
@@ -1821,9 +1821,9 @@ mindroot/protocols/services/stream_chat.py,sha256=fMnPfwaB5fdNMBLTEg8BXKAGvrELKH
1821
1821
  mindroot/registry/__init__.py,sha256=40Xy9bmPHsgdIrOzbtBGzf4XMqXVi9P8oZTJhn0r654,151
1822
1822
  mindroot/registry/component_manager.py,sha256=WZFNPg4SNvpqsM5NFiC2DpgmrJQCyR9cNhrCBpp30Qk,995
1823
1823
  mindroot/registry/data_access.py,sha256=NgNMamxIjaKeYxzxnVaQz1Y-Rm0AI51si3788_JHUTM,5316
1824
- mindroot-8.11.0.dist-info/licenses/LICENSE,sha256=8plAmZh8y9ccuuqFFz4kp7G-cO_qsPgAOoHNvabSB4U,1070
1825
- mindroot-8.11.0.dist-info/METADATA,sha256=wef7mud8dSSLBdP0uNYhmySIvcexiy-Hth-h4Tk471U,892
1826
- mindroot-8.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1827
- mindroot-8.11.0.dist-info/entry_points.txt,sha256=0bpyjMccLttx6VcjDp6zfJPN0Kk0rffor6IdIbP0j4c,50
1828
- mindroot-8.11.0.dist-info/top_level.txt,sha256=gwKm7DmNjhdrCJTYCrxa9Szne4lLpCtrEBltfsX-Mm8,9
1829
- mindroot-8.11.0.dist-info/RECORD,,
1824
+ mindroot-8.13.0.dist-info/licenses/LICENSE,sha256=8plAmZh8y9ccuuqFFz4kp7G-cO_qsPgAOoHNvabSB4U,1070
1825
+ mindroot-8.13.0.dist-info/METADATA,sha256=_zCH38FtgPU8Na2nBDSHZTs5HWkxLk2QvH4RUfhhWUg,892
1826
+ mindroot-8.13.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1827
+ mindroot-8.13.0.dist-info/entry_points.txt,sha256=0bpyjMccLttx6VcjDp6zfJPN0Kk0rffor6IdIbP0j4c,50
1828
+ mindroot-8.13.0.dist-info/top_level.txt,sha256=gwKm7DmNjhdrCJTYCrxa9Szne4lLpCtrEBltfsX-Mm8,9
1829
+ mindroot-8.13.0.dist-info/RECORD,,