mindroot 9.24.0__py3-none-any.whl → 10.2.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.

Files changed (269) hide show
  1. mindroot/coreplugins/chat/services.py +2 -2
  2. mindroot/coreplugins/chat/static/js/chat.js +15 -4
  3. mindroot/coreplugins/chat/static/js/chatform.js +1 -1
  4. mindroot/coreplugins/check_list/helpers.py +221 -0
  5. mindroot/coreplugins/check_list/mod.py +383 -126
  6. mindroot/coreplugins/check_list/mod.py.backup +378 -0
  7. mindroot/coreplugins/check_list/mod.py.backup2 +506 -0
  8. mindroot/coreplugins/check_list/mod.py.backup3 +506 -0
  9. mindroot/coreplugins/check_list/plugin_info.json +14 -0
  10. mindroot/docs/_build/doctrees/developer_documentation.doctree +0 -0
  11. mindroot/docs/_build/doctrees/embed_chat.doctree +0 -0
  12. mindroot/docs/_build/doctrees/environment.pickle +0 -0
  13. mindroot/docs/_build/doctrees/source/mindroot.coreplugins.check_list.doctree +0 -0
  14. mindroot/docs/_build/doctrees/source/mindroot.lib.doctree +0 -0
  15. mindroot/docs/_build/doctrees/user_documentation.doctree +0 -0
  16. mindroot/docs/_build/html/_images/apikey.png +0 -0
  17. mindroot/docs/_build/html/_images/chatwidgetx.png +0 -0
  18. mindroot/docs/_build/html/_images/disablechatavatar.png +0 -0
  19. mindroot/docs/_build/html/_images/widgetform.png +0 -0
  20. mindroot/docs/_build/html/_images/widgetonpage.png +0 -0
  21. mindroot/docs/_build/html/_modules/index.html +1 -0
  22. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/agent_importer.html +282 -86
  23. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/agent_router.html +281 -88
  24. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/asset_manager.html +280 -84
  25. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/command_router.html +281 -88
  26. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/mcp_catalog_routes.html +279 -86
  27. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/mcp_publish_routes.html +284 -91
  28. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/mcp_registry_routes.html +284 -91
  29. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/mcp_routes.html +281 -88
  30. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/mod.html +280 -84
  31. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/oauth_callback_router.html +280 -87
  32. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/persona_handler.html +282 -86
  33. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/persona_router.html +285 -89
  34. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/plugin_manager.html +281 -88
  35. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/plugin_router.html +280 -87
  36. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/plugin_routes.html +280 -87
  37. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/registry_settings_routes.html +280 -87
  38. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/router.html +281 -88
  39. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/server_router.html +280 -84
  40. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/service_models.html +280 -87
  41. mindroot/docs/_build/html/_modules/mindroot/coreplugins/admin/settings_router.html +1 -0
  42. mindroot/docs/_build/html/_modules/mindroot/coreplugins/api_keys/api_key_manager.html +280 -87
  43. mindroot/docs/_build/html/_modules/mindroot/coreplugins/api_keys/mod.html +279 -86
  44. mindroot/docs/_build/html/_modules/mindroot/coreplugins/api_keys/router.html +280 -87
  45. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/commands.html +281 -88
  46. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/mod.html +279 -86
  47. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/models.html +280 -87
  48. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/router.html +281 -88
  49. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/services.html +283 -90
  50. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/widget_manager.html +279 -86
  51. mindroot/docs/_build/html/_modules/mindroot/coreplugins/chat/widget_routes.html +279 -86
  52. mindroot/docs/_build/html/_modules/mindroot/coreplugins/check_list/mod.html +669 -213
  53. mindroot/docs/_build/html/_modules/mindroot/coreplugins/credits/conversion.html +280 -87
  54. mindroot/docs/_build/html/_modules/mindroot/coreplugins/credits/ledger.html +281 -88
  55. mindroot/docs/_build/html/_modules/mindroot/coreplugins/credits/mod.html +281 -88
  56. mindroot/docs/_build/html/_modules/mindroot/coreplugins/credits/models.html +279 -86
  57. mindroot/docs/_build/html/_modules/mindroot/coreplugins/credits/router.html +279 -86
  58. mindroot/docs/_build/html/_modules/mindroot/coreplugins/credits/storage.html +279 -86
  59. mindroot/docs/_build/html/_modules/mindroot/coreplugins/email/email_provider.html +280 -87
  60. mindroot/docs/_build/html/_modules/mindroot/coreplugins/email/imap_handler.html +284 -91
  61. mindroot/docs/_build/html/_modules/mindroot/coreplugins/email/mod.html +280 -87
  62. mindroot/docs/_build/html/_modules/mindroot/coreplugins/email/services.html +280 -87
  63. mindroot/docs/_build/html/_modules/mindroot/coreplugins/email/smtp_handler.html +280 -87
  64. mindroot/docs/_build/html/_modules/mindroot/coreplugins/email/test_email_service.html +280 -87
  65. mindroot/docs/_build/html/_modules/mindroot/coreplugins/env_manager/mod.html +281 -88
  66. mindroot/docs/_build/html/_modules/mindroot/coreplugins/env_manager/router.html +280 -87
  67. mindroot/docs/_build/html/_modules/mindroot/coreplugins/events/router.html +280 -87
  68. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/handlers/agent_ops.html +280 -87
  69. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/handlers/index_ops.html +280 -87
  70. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/handlers/plugin_ops.html +284 -91
  71. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/handlers/publish.html +281 -88
  72. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/mod.html +279 -86
  73. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/models.html +282 -86
  74. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/router.html +284 -91
  75. mindroot/docs/_build/html/_modules/mindroot/coreplugins/index/utils.html +282 -86
  76. mindroot/docs/_build/html/_modules/mindroot/coreplugins/jwt_auth/middleware.html +1 -0
  77. mindroot/docs/_build/html/_modules/mindroot/coreplugins/jwt_auth/mod.html +279 -86
  78. mindroot/docs/_build/html/_modules/mindroot/coreplugins/jwt_auth/router.html +280 -87
  79. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/language_detection.html +280 -84
  80. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/middleware.html +280 -84
  81. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/mod.html +282 -86
  82. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/test_enhanced.html +280 -84
  83. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/test_l8n_standalone.html +282 -86
  84. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/test_middleware.html +282 -86
  85. mindroot/docs/_build/html/_modules/mindroot/coreplugins/l8n/utils.html +280 -84
  86. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/catalog_commands.html +282 -86
  87. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/catalog_manager.html +280 -84
  88. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/dynamic_commands.html +280 -84
  89. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/mcp_manager.html +282 -86
  90. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/mod.html +282 -86
  91. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/oauth_storage.html +280 -84
  92. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/server_installer.html +282 -86
  93. mindroot/docs/_build/html/_modules/mindroot/coreplugins/mcp_/testmcpclient.html +285 -89
  94. mindroot/docs/_build/html/_modules/mindroot/coreplugins/persona/init_persona.html +280 -84
  95. mindroot/docs/_build/html/_modules/mindroot/coreplugins/persona/mod.html +282 -86
  96. mindroot/docs/_build/html/_modules/mindroot/coreplugins/startup/mod.html +282 -86
  97. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/credit_integration.html +280 -84
  98. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/mod.html +282 -86
  99. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/models.html +280 -84
  100. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/router.html +285 -89
  101. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/storage.html +282 -86
  102. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/stripe_integration.html +280 -84
  103. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/subscription_manager.html +280 -84
  104. mindroot/docs/_build/html/_modules/mindroot/coreplugins/subscriptions/webhook_handler.html +280 -84
  105. mindroot/docs/_build/html/_modules/mindroot/coreplugins/usage/handlers.html +282 -86
  106. mindroot/docs/_build/html/_modules/mindroot/coreplugins/usage/mod.html +282 -86
  107. mindroot/docs/_build/html/_modules/mindroot/coreplugins/usage/models.html +282 -86
  108. mindroot/docs/_build/html/_modules/mindroot/coreplugins/usage/reporting.html +282 -86
  109. mindroot/docs/_build/html/_modules/mindroot/coreplugins/usage/router.html +282 -86
  110. mindroot/docs/_build/html/_modules/mindroot/coreplugins/usage/storage.html +285 -89
  111. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/admin_init.html +282 -86
  112. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/email_service.html +282 -86
  113. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/mod.html +280 -84
  114. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/models.html +282 -86
  115. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/password_reset_service.html +282 -86
  116. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/role_service.html +282 -86
  117. mindroot/docs/_build/html/_modules/mindroot/coreplugins/user_service/router.html +282 -86
  118. mindroot/docs/_build/html/_modules/mindroot/lib/auth/api_key.html +280 -84
  119. mindroot/docs/_build/html/_modules/mindroot/lib/auth/auth.html +282 -86
  120. mindroot/docs/_build/html/_modules/mindroot/lib/buchatlog.html +285 -89
  121. mindroot/docs/_build/html/_modules/mindroot/lib/buchatlog2.html +282 -86
  122. mindroot/docs/_build/html/_modules/mindroot/lib/butemplates.html +282 -86
  123. mindroot/docs/_build/html/_modules/mindroot/lib/chatcontext.html +285 -89
  124. mindroot/docs/_build/html/_modules/mindroot/lib/chatlog.html +440 -91
  125. mindroot/docs/_build/html/_modules/mindroot/lib/chatlog_optimized.html +282 -86
  126. mindroot/docs/_build/html/_modules/mindroot/lib/json_escape.html +280 -84
  127. mindroot/docs/_build/html/_modules/mindroot/lib/json_str_block/json_str_block.html +282 -86
  128. mindroot/docs/_build/html/_modules/mindroot/lib/parent_templates.html +282 -86
  129. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/installation.html +280 -84
  130. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/l8n_static_handler.html +280 -84
  131. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/loader.html +282 -86
  132. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/loader_with_l8n.html +282 -86
  133. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/manifest.html +282 -86
  134. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/mapping.html +280 -84
  135. mindroot/docs/_build/html/_modules/mindroot/lib/plugins/paths.html +282 -86
  136. mindroot/docs/_build/html/_modules/mindroot/lib/plugins_install.html +282 -86
  137. mindroot/docs/_build/html/_modules/mindroot/lib/providers/commands.html +282 -87
  138. mindroot/docs/_build/html/_modules/mindroot/lib/providers/hooks.html +280 -85
  139. mindroot/docs/_build/html/_modules/mindroot/lib/providers/missing.html +282 -87
  140. mindroot/docs/_build/html/_modules/mindroot/lib/providers/model_preferences_v2.html +1 -0
  141. mindroot/docs/_build/html/_modules/mindroot/lib/providers/services.html +282 -87
  142. mindroot/docs/_build/html/_modules/mindroot/lib/providers.html +285 -89
  143. mindroot/docs/_build/html/_modules/mindroot/lib/route_decorators.html +282 -86
  144. mindroot/docs/_build/html/_modules/mindroot/lib/session_files.html +282 -86
  145. mindroot/docs/_build/html/_modules/mindroot/lib/streamcmd.html +282 -86
  146. mindroot/docs/_build/html/_modules/mindroot/lib/templates.html +1 -0
  147. mindroot/docs/_build/html/_modules/mindroot/lib/token_counter.html +280 -84
  148. mindroot/docs/_build/html/_modules/mindroot/migrate.html +282 -86
  149. mindroot/docs/_build/html/_modules/mindroot/registry/component_manager.html +282 -86
  150. mindroot/docs/_build/html/_modules/mindroot/registry/data_access.html +285 -89
  151. mindroot/docs/_build/html/_modules/mindroot/server.html +1 -0
  152. mindroot/docs/_build/html/_modules/mindroot/server_missing_normal_args.html +282 -86
  153. mindroot/docs/_build/html/_modules/mindroot/server_prev.html +282 -86
  154. mindroot/docs/_build/html/_sources/developer_documentation.rst.txt +1 -1
  155. mindroot/docs/_build/html/_sources/embed_chat.rst.txt +54 -0
  156. mindroot/docs/_build/html/_sources/user_documentation.rst.txt +6 -1
  157. mindroot/docs/_build/html/chat_with_assistant.html +1 -0
  158. mindroot/docs/_build/html/developer_documentation.html +5 -4
  159. mindroot/docs/_build/html/embed_chat.html +381 -0
  160. mindroot/docs/_build/html/genindex.html +9 -2
  161. mindroot/docs/_build/html/getting_started.html +1 -0
  162. mindroot/docs/_build/html/index.html +2 -0
  163. mindroot/docs/_build/html/install_plugins_with_tools.html +1 -0
  164. mindroot/docs/_build/html/installation.html +1 -0
  165. mindroot/docs/_build/html/llm_api_key.html +1 -0
  166. mindroot/docs/_build/html/llm_plugin_installation.html +1 -0
  167. mindroot/docs/_build/html/objects.inv +0 -0
  168. mindroot/docs/_build/html/programming_task.html +4 -3
  169. mindroot/docs/_build/html/py-modindex.html +2 -1
  170. mindroot/docs/_build/html/search.html +1 -0
  171. mindroot/docs/_build/html/searchindex.js +1 -1
  172. mindroot/docs/_build/html/source/ahp.html +1 -0
  173. mindroot/docs/_build/html/source/mindroot.coreplugins.admin.html +1 -0
  174. mindroot/docs/_build/html/source/mindroot.coreplugins.api_keys.html +1 -0
  175. mindroot/docs/_build/html/source/mindroot.coreplugins.chat.html +1 -0
  176. mindroot/docs/_build/html/source/mindroot.coreplugins.chat_avatar.html +1 -0
  177. mindroot/docs/_build/html/source/mindroot.coreplugins.check_list.html +76 -45
  178. mindroot/docs/_build/html/source/mindroot.coreplugins.credits.html +1 -0
  179. mindroot/docs/_build/html/source/mindroot.coreplugins.email.html +1 -0
  180. mindroot/docs/_build/html/source/mindroot.coreplugins.env_manager.html +1 -0
  181. mindroot/docs/_build/html/source/mindroot.coreplugins.events.html +1 -0
  182. mindroot/docs/_build/html/source/mindroot.coreplugins.html +3 -0
  183. mindroot/docs/_build/html/source/mindroot.coreplugins.index.handlers.html +1 -0
  184. mindroot/docs/_build/html/source/mindroot.coreplugins.index.html +1 -0
  185. mindroot/docs/_build/html/source/mindroot.coreplugins.jwt_auth.html +1 -0
  186. mindroot/docs/_build/html/source/mindroot.coreplugins.l8n.html +1 -0
  187. mindroot/docs/_build/html/source/mindroot.coreplugins.mcp_.html +1 -0
  188. mindroot/docs/_build/html/source/mindroot.coreplugins.persona.html +1 -0
  189. mindroot/docs/_build/html/source/mindroot.coreplugins.startup.html +1 -0
  190. mindroot/docs/_build/html/source/mindroot.coreplugins.subscriptions.html +1 -0
  191. mindroot/docs/_build/html/source/mindroot.coreplugins.usage.html +1 -0
  192. mindroot/docs/_build/html/source/mindroot.coreplugins.user_service.html +1 -0
  193. mindroot/docs/_build/html/source/mindroot.html +2 -0
  194. mindroot/docs/_build/html/source/mindroot.lib.auth.html +1 -0
  195. mindroot/docs/_build/html/source/mindroot.lib.html +34 -3
  196. mindroot/docs/_build/html/source/mindroot.lib.json_str_block.html +1 -0
  197. mindroot/docs/_build/html/source/mindroot.lib.plugins.html +1 -0
  198. mindroot/docs/_build/html/source/mindroot.lib.providers.backup.html +1 -0
  199. mindroot/docs/_build/html/source/mindroot.lib.providers.html +1 -0
  200. mindroot/docs/_build/html/source/mindroot.registry.html +1 -0
  201. mindroot/docs/_build/html/source/modules.html +1 -0
  202. mindroot/docs/_build/html/source/mr_agent_expert_instr.html +1 -0
  203. mindroot/docs/_build/html/starting_mindroot.html +1 -0
  204. mindroot/docs/_build/html/user_documentation.html +9 -0
  205. mindroot/docs/apikey.png +0 -0
  206. mindroot/docs/chatwidget1.png +0 -0
  207. mindroot/docs/chatwidgetx.png +0 -0
  208. mindroot/docs/disablechatavatar.png +0 -0
  209. mindroot/docs/embed_chat.rst +54 -0
  210. mindroot/docs/user_documentation.rst +6 -1
  211. mindroot/docs/widgetform.png +0 -0
  212. mindroot/docs/widgetonpage.png +0 -0
  213. mindroot/lib/buchatlog3.py +592 -0
  214. mindroot/lib/chatlog.py +155 -5
  215. {mindroot-9.24.0.dist-info → mindroot-10.2.0.dist-info}/METADATA +1 -1
  216. {mindroot-9.24.0.dist-info → mindroot-10.2.0.dist-info}/RECORD +220 -248
  217. mindroot/docs/_build/html/.buildinfo.bak +0 -4
  218. mindroot/docs/_build/html/_static/_sphinx_javascript_frameworks_compat.js +0 -123
  219. mindroot/docs/_build/html/_static/css/badge_only.css +0 -1
  220. mindroot/docs/_build/html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
  221. mindroot/docs/_build/html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  222. mindroot/docs/_build/html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  223. mindroot/docs/_build/html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  224. mindroot/docs/_build/html/_static/css/fonts/fontawesome-webfont.eot +0 -0
  225. mindroot/docs/_build/html/_static/css/fonts/fontawesome-webfont.svg +0 -2671
  226. mindroot/docs/_build/html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  227. mindroot/docs/_build/html/_static/css/fonts/fontawesome-webfont.woff +0 -0
  228. mindroot/docs/_build/html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  229. mindroot/docs/_build/html/_static/css/fonts/lato-bold-italic.woff +0 -0
  230. mindroot/docs/_build/html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
  231. mindroot/docs/_build/html/_static/css/fonts/lato-bold.woff +0 -0
  232. mindroot/docs/_build/html/_static/css/fonts/lato-bold.woff2 +0 -0
  233. mindroot/docs/_build/html/_static/css/fonts/lato-normal-italic.woff +0 -0
  234. mindroot/docs/_build/html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  235. mindroot/docs/_build/html/_static/css/fonts/lato-normal.woff +0 -0
  236. mindroot/docs/_build/html/_static/css/fonts/lato-normal.woff2 +0 -0
  237. mindroot/docs/_build/html/_static/css/theme.css +0 -4
  238. mindroot/docs/_build/html/_static/fonts/Lato/lato-bold.eot +0 -0
  239. mindroot/docs/_build/html/_static/fonts/Lato/lato-bold.ttf +0 -0
  240. mindroot/docs/_build/html/_static/fonts/Lato/lato-bold.woff +0 -0
  241. mindroot/docs/_build/html/_static/fonts/Lato/lato-bold.woff2 +0 -0
  242. mindroot/docs/_build/html/_static/fonts/Lato/lato-bolditalic.eot +0 -0
  243. mindroot/docs/_build/html/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
  244. mindroot/docs/_build/html/_static/fonts/Lato/lato-bolditalic.woff +0 -0
  245. mindroot/docs/_build/html/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
  246. mindroot/docs/_build/html/_static/fonts/Lato/lato-italic.eot +0 -0
  247. mindroot/docs/_build/html/_static/fonts/Lato/lato-italic.ttf +0 -0
  248. mindroot/docs/_build/html/_static/fonts/Lato/lato-italic.woff +0 -0
  249. mindroot/docs/_build/html/_static/fonts/Lato/lato-italic.woff2 +0 -0
  250. mindroot/docs/_build/html/_static/fonts/Lato/lato-regular.eot +0 -0
  251. mindroot/docs/_build/html/_static/fonts/Lato/lato-regular.ttf +0 -0
  252. mindroot/docs/_build/html/_static/fonts/Lato/lato-regular.woff +0 -0
  253. mindroot/docs/_build/html/_static/fonts/Lato/lato-regular.woff2 +0 -0
  254. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
  255. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
  256. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
  257. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
  258. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  259. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  260. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  261. mindroot/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  262. mindroot/docs/_build/html/_static/jquery.js +0 -2
  263. mindroot/docs/_build/html/_static/js/badge_only.js +0 -1
  264. mindroot/docs/_build/html/_static/js/theme.js +0 -1
  265. mindroot/docs/_build/html/_static/js/versions.js +0 -228
  266. {mindroot-9.24.0.dist-info → mindroot-10.2.0.dist-info}/WHEEL +0 -0
  267. {mindroot-9.24.0.dist-info → mindroot-10.2.0.dist-info}/entry_points.txt +0 -0
  268. {mindroot-9.24.0.dist-info → mindroot-10.2.0.dist-info}/licenses/LICENSE +0 -0
  269. {mindroot-9.24.0.dist-info → mindroot-10.2.0.dist-info}/top_level.txt +0 -0
@@ -297,8 +297,8 @@ async def send_message_to_agent(session_id: str, message: str | List[MessagePart
297
297
  context.current_model = context.data['llm']
298
298
 
299
299
  parse_error = False
300
-
301
- results, full_cmds = await agent_.chat_commands(context.current_model, context, messages=context.chat_log.get_recent())
300
+ max_tokens = os.environ.get("MR_MAX_TOKENS", 4000)
301
+ results, full_cmds = await agent_.chat_commands(context.current_model, context, messages=context.chat_log.get_recent(), max_tokens=max_tokens)
302
302
  if results is not None:
303
303
  try:
304
304
  for result in results:
@@ -17,7 +17,7 @@ if (!window.lastScrolled) window.lastScrolled = Date.now();
17
17
 
18
18
  window.lastScrolled = Date.now();
19
19
 
20
- const commandHandlers = {};
20
+ window.commandHandlers = {};
21
21
 
22
22
  // Function to register command handlers
23
23
  window.registerCommandHandler = function(command, handler) {
@@ -205,11 +205,22 @@ class Chat extends BaseEl {
205
205
  }
206
206
 
207
207
  textParam (data) {
208
- if (data.params.text) {
208
+ console.log('textParam', data);
209
+ if (typeof(data) == 'string') {
210
+ try {
211
+ data = JSON.parse(data);
212
+ } catch (e) {
213
+ console.error('Could not parse data string:', e);
214
+ return data;
215
+ }
216
+ }
217
+ if (data?.args?.text) {
218
+ return data.args.text;
219
+ } else if (data?.params?.text) {
209
220
  return data.params.text;
210
221
  } else if (data.params.markdown) {
211
- return data.params.markdown;
212
- } else if (data.params.extensive_chain_of_thoughts) {
222
+ return data?.params?.markdown;
223
+ } else if (data?.params?.extensive_chain_of_thoughts) {
213
224
  return data.params.extensive_chain_of_thoughts;
214
225
  }
215
226
  return JSON.stringify(data.params);
@@ -465,7 +465,7 @@ class ChatForm extends BaseEl {
465
465
  if (this.messageEl.value.trim()) {
466
466
  messageContent.push({
467
467
  type: 'text',
468
- text: this.messageEl.value.replaceAll("\n", "\n\n")
468
+ text: "\n" + this.messageEl.value.replaceAll("\n", "\n\n")
469
469
  })
470
470
  }
471
471
 
@@ -0,0 +1,221 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Helper functions for nested subtask handling in the checklist system.
4
+
5
+ This module provides utilities for:
6
+ - Finding nested subtasks within parent task bodies
7
+ - Updating nested subtask completion status
8
+ - Managing hierarchical task structures
9
+ """
10
+
11
+ import re
12
+ from typing import Dict, List, Optional, Tuple, Any
13
+
14
+
15
+ def find_nested_subtask(subtask_id: str, tasks: List[Dict]) -> Dict[str, Any]:
16
+ """
17
+ Search for a nested subtask within all top-level tasks.
18
+
19
+ Args:
20
+ subtask_id: The label of the nested subtask to find
21
+ tasks: List of top-level task dictionaries
22
+
23
+ Returns:
24
+ Dictionary with:
25
+ - found: bool - Whether the nested subtask was found
26
+ - nested_task: dict - The nested task if found
27
+ - nested_index: int - Index of nested task within parent
28
+ - parent_task: dict - The parent task containing the nested task
29
+ - parent_index: int - Index of parent task in main list
30
+ - parent_nested_tasks: list - All nested tasks from the parent
31
+ """
32
+ print(f"\nSearching for nested subtask: '{subtask_id}'")
33
+
34
+ # Import the parser from the main module
35
+ from .mod import _parse
36
+
37
+ # Iterate through each top-level task
38
+ for parent_index, parent_task in enumerate(tasks):
39
+ print(f"\nChecking parent task {parent_index}: '{parent_task['label']}'")
40
+
41
+ # Parse nested tasks from this parent's body
42
+ nested_tasks = _parse(parent_task['body'])
43
+ print(f"Found {len(nested_tasks)} nested tasks")
44
+
45
+ # Search through nested tasks for matching subtask_id
46
+ for nested_index, nested_task in enumerate(nested_tasks):
47
+ print(f" Nested task {nested_index}: '{nested_task['label']}'")
48
+
49
+ # Check if this nested task matches our search
50
+ if nested_task['label'] == subtask_id:
51
+ print(f"FOUND MATCH!")
52
+ return {
53
+ 'found': True,
54
+ 'nested_task': nested_task,
55
+ 'nested_index': nested_index,
56
+ 'parent_task': parent_task,
57
+ 'parent_index': parent_index,
58
+ 'parent_nested_tasks': nested_tasks
59
+ }
60
+
61
+ # Not found in any nested tasks
62
+ print("Not found in nested tasks")
63
+ return {'found': False}
64
+
65
+
66
+ def update_nested_subtask_status(parent_task: Dict, nested_index: int,
67
+ nested_tasks: List[Dict], done: bool) -> str:
68
+ """
69
+ Update the completion status of a nested subtask within its parent's body.
70
+
71
+ Args:
72
+ parent_task: The parent task dictionary
73
+ nested_index: Index of the nested task to update
74
+ nested_tasks: List of all nested tasks from the parent
75
+ done: New completion status
76
+
77
+ Returns:
78
+ Updated body text for the parent task
79
+ """
80
+ # Update the nested task status
81
+ nested_tasks[nested_index]['done'] = done
82
+
83
+ # Reconstruct the parent's body with updated nested tasks
84
+ body_lines = parent_task['body'].splitlines()
85
+ updated_lines = []
86
+
87
+ nested_task_line_indices = []
88
+
89
+ # Find all nested task lines in the original body
90
+ for i, line in enumerate(body_lines):
91
+ stripped = line.lstrip()
92
+ if (stripped.startswith('- [ ]') or
93
+ stripped.startswith('- [x]') or
94
+ stripped.startswith('- [X]')):
95
+ nested_task_line_indices.append(i)
96
+
97
+ # Update the body by replacing task lines with updated status
98
+ current_nested_idx = 0
99
+ i = 0
100
+
101
+ while i < len(body_lines):
102
+ line = body_lines[i]
103
+ stripped = line.lstrip()
104
+
105
+ # Check if this is a nested task line
106
+ if (stripped.startswith('- [ ]') or
107
+ stripped.startswith('- [x]') or
108
+ stripped.startswith('- [X]')):
109
+
110
+ if current_nested_idx < len(nested_tasks):
111
+ # Replace with updated status
112
+ indent = len(line) - len(stripped)
113
+ checkbox = '- [x]' if nested_tasks[current_nested_idx]['done'] else '- [ ]'
114
+ updated_line = ' ' * indent + checkbox + ' ' + nested_tasks[current_nested_idx]['label']
115
+ updated_lines.append(updated_line)
116
+ current_nested_idx += 1
117
+ else:
118
+ updated_lines.append(line)
119
+ else:
120
+ updated_lines.append(line)
121
+
122
+ i += 1
123
+
124
+ return '\n'.join(updated_lines)
125
+
126
+
127
+ def resolve_subtask_id_with_nesting(subtask_id: Any, tasks: List[Dict],
128
+ cursor: int) -> Tuple[int, Optional[Dict]]:
129
+ """
130
+ Resolve a subtask_id to an index, checking both top-level and nested tasks.
131
+
132
+ Args:
133
+ subtask_id: The subtask identifier (int, string, or None)
134
+ tasks: List of top-level tasks
135
+ cursor: Current cursor position
136
+
137
+ Returns:
138
+ Tuple of (index, nested_info)
139
+ - index: The resolved index (-1 if not found)
140
+ - nested_info: Dict with nested task info if found, None if top-level
141
+ """
142
+ # Default to current cursor position
143
+ if subtask_id is None or subtask_id == -1:
144
+ return cursor, None
145
+
146
+ # If it's a number, convert from 1-based to 0-based for top-level
147
+ if isinstance(subtask_id, int):
148
+ idx = subtask_id - 1
149
+ if 0 <= idx < len(tasks):
150
+ return idx, None
151
+ else:
152
+ return -1, None
153
+
154
+ # It's a string, try to find a matching label
155
+ # First check top-level tasks
156
+ for i, task in enumerate(tasks):
157
+ if task["label"] == subtask_id:
158
+ return i, None
159
+
160
+ # If not found in top-level, search nested tasks
161
+ nested_result = find_nested_subtask(subtask_id, tasks)
162
+ if nested_result['found']:
163
+ return nested_result['parent_index'], nested_result
164
+
165
+ # No match found anywhere
166
+ return -1, None
167
+
168
+
169
+ def format_nested_task_status(nested_info: Dict) -> str:
170
+ """
171
+ Format a nested task for display.
172
+
173
+ Args:
174
+ nested_info: Dictionary containing nested task information
175
+
176
+ Returns:
177
+ Formatted string showing the nested task status
178
+ """
179
+ nested_task = nested_info['nested_task']
180
+ parent_task = nested_info['parent_task']
181
+
182
+ status = "✅" if nested_task["done"] else "❌"
183
+
184
+ return (
185
+ f"{status} **Nested Subtask**: {nested_task['label']} "
186
+ f"(within '{parent_task['label']}')\n"
187
+ f"{nested_task['body']}"
188
+ )
189
+
190
+
191
+ def get_next_incomplete_task(tasks: List[Dict], current_cursor: int) -> int:
192
+ """
193
+ Find the next incomplete task starting from the given cursor position.
194
+
195
+ Args:
196
+ tasks: List of top-level tasks
197
+ current_cursor: Current cursor position
198
+
199
+ Returns:
200
+ Index of next incomplete task, or len(tasks) if all complete
201
+ """
202
+ return next(
203
+ (i for i, t in enumerate(tasks[current_cursor:], current_cursor) if not t["done"]),
204
+ len(tasks),
205
+ )
206
+
207
+
208
+ def has_incomplete_nested_tasks(task: Dict) -> bool:
209
+ """
210
+ Check if a task has any incomplete nested subtasks.
211
+
212
+ Args:
213
+ task: Task dictionary to check
214
+
215
+ Returns:
216
+ True if there are incomplete nested tasks, False otherwise
217
+ """
218
+ from .mod import _parse
219
+
220
+ nested_tasks = _parse(task['body'])
221
+ return any(not nested_task['done'] for nested_task in nested_tasks)