mindroot 7.7.0__py3-none-any.whl → 8.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 (35) hide show
  1. mindroot/coreplugins/admin/plugin_manager.py +126 -3
  2. mindroot/coreplugins/admin/plugin_manager_backup.py +615 -0
  3. mindroot/coreplugins/admin/router.py +3 -1
  4. mindroot/coreplugins/admin/server_router.py +8 -1
  5. mindroot/coreplugins/admin/static/js/plugin-advanced-install.js +83 -12
  6. mindroot/coreplugins/admin/static/js/plugin-index-browser.js +138 -10
  7. mindroot/coreplugins/admin/static/js/plugin-install-dialog.js +345 -0
  8. mindroot/coreplugins/admin/static/js/server-control.js +68 -6
  9. mindroot/coreplugins/agent/agent.py +4 -0
  10. mindroot/coreplugins/chat/models.py +0 -1
  11. mindroot/coreplugins/chat/router.py +31 -0
  12. mindroot/coreplugins/chat/services.py +24 -0
  13. mindroot/coreplugins/chat/static/css/dark.css +35 -0
  14. mindroot/coreplugins/chat/static/css/default.css +35 -0
  15. mindroot/coreplugins/chat/static/js/chatform.js +185 -0
  16. mindroot/coreplugins/env_manager/__init__.py +3 -0
  17. mindroot/coreplugins/env_manager/inject/admin.jinja2 +16 -0
  18. mindroot/coreplugins/env_manager/mod.py +228 -0
  19. mindroot/coreplugins/env_manager/router.py +40 -0
  20. mindroot/coreplugins/env_manager/static/css/env-manager.css +263 -0
  21. mindroot/coreplugins/env_manager/static/js/env-manager.js +380 -0
  22. mindroot/coreplugins/home/router.py +33 -2
  23. mindroot/coreplugins/home/static/css/enhanced.css +111 -5
  24. mindroot/coreplugins/home/templates/home.jinja2 +7 -4
  25. mindroot/lib/chatlog.py +5 -1
  26. mindroot/lib/streamcmd.py +139 -0
  27. mindroot/lib/templates.py +13 -2
  28. mindroot/server.py +12 -25
  29. mindroot-8.2.0.dist-info/METADATA +15 -0
  30. {mindroot-7.7.0.dist-info → mindroot-8.2.0.dist-info}/RECORD +34 -25
  31. {mindroot-7.7.0.dist-info → mindroot-8.2.0.dist-info}/WHEEL +1 -1
  32. mindroot-7.7.0.dist-info/METADATA +0 -310
  33. {mindroot-7.7.0.dist-info → mindroot-8.2.0.dist-info}/entry_points.txt +0 -0
  34. {mindroot-7.7.0.dist-info → mindroot-8.2.0.dist-info}/licenses/LICENSE +0 -0
  35. {mindroot-7.7.0.dist-info → mindroot-8.2.0.dist-info}/top_level.txt +0 -0
@@ -1,310 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mindroot
3
- Version: 7.7.0
4
- Summary: An agent framework using LLMs
5
- Author-email: Jason Livesay <runvnc@gmail.com>
6
- Project-URL: Homepage, https://github.com/runvnc/mindroot
7
- Classifier: Development Status :: 3 - Alpha
8
- Classifier: Intended Audience :: Developers
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.7
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Requires-Python: >=3.7
15
- Description-Content-Type: text/markdown
16
- License-File: LICENSE
17
- Requires-Dist: fastapi
18
- Requires-Dist: aiofiles
19
- Requires-Dist: uvicorn
20
- Requires-Dist: jinja2
21
- Requires-Dist: nanoid
22
- Requires-Dist: termcolor
23
- Requires-Dist: colored
24
- Requires-Dist: loguru
25
- Requires-Dist: python-multipart
26
- Requires-Dist: pytz
27
- Requires-Dist: PyJWT
28
- Requires-Dist: pluggy
29
- Requires-Dist: sse_starlette
30
- Requires-Dist: partial-json-parser
31
- Requires-Dist: pydantic
32
- Requires-Dist: setuptools
33
- Requires-Dist: requests
34
- Requires-Dist: aiohttp
35
- Requires-Dist: Pillow
36
- Requires-Dist: psutil
37
- Requires-Dist: aiosmtplib
38
- Requires-Dist: pydantic[email]
39
- Requires-Dist: bcrypt
40
- Requires-Dist: rich
41
- Requires-Dist: colorama
42
- Dynamic: license-file
43
-
44
- # Table of Contents
45
- - [Installation](#installation)
46
- - [Configuration](#configuration)
47
- - [Starting the Server](#starting-the-server)
48
- - [Installing Plugins](#installing-plugins)
49
- - [Developers: Creating Plugins and Tool Commands etc.](#developers-creating-plugins-and-tool-commands-etc)
50
- - [Adding Commands to Agents](#adding-commands-to-agents)
51
- - [API Documentation](#api-documentation)
52
- - Python SDK
53
- - [Key Features](#key-features)
54
- - [Gallery](#gallery)
55
- - [Admin Interface](#admin-interface)
56
- - [Plugin Management](#plugin-management)
57
- - [3D Graph Visualization](#3d-graph-visualization)
58
- - [Chain Rule Explanation](#chain-rule-explanation)
59
- - [Character Generation](#character-generation)
60
- - [Fantasy Character Creation](#fantasy-character-creation)
61
- - [Morgan's Method](#morgans-method)
62
- - [Heygen Integration Demo](#heygen-integration-demo)
63
-
64
- MindRoot
65
-
66
- ---
67
-
68
- [![PyPI](https://img.shields.io/pypi/v/mindroot)](https://pypi.org/project/mindroot/)
69
-
70
-
71
- MindRoot is a plugin-based Python framework and UI for creating, deploying, and sharing AI agents, tool commands, and applications. The UI is completely customizable.
72
-
73
- Installation
74
- ------------
75
-
76
- You can install MindRoot simply using pip:
77
-
78
- (As with all Python projects, you almost certainly want to create a virtual environment first: `python -m venv venv` and `source venv/bin/activate`)
79
-
80
- ```bash
81
- pip install mindroot
82
- ```
83
- In some cases, you may need to install `libgl-dev` (`sudo apt install libgl-dev`).
84
-
85
- Configuration
86
- -------------
87
-
88
- You will need to set environment variables like JWT_SECRET_KEY (anything you want) and LLM provider keys etc.
89
-
90
- To enable email verification: env. variable REQUIRE_EMAIL_VERIFY=true
91
-
92
- See [SMTP core plugin readme](src/mindroot/coreplugins/smtp_email/README.md)
93
-
94
- Starting the Server
95
- -------------------
96
-
97
- Go to the directory with the virtual environment and run:
98
-
99
- ```bash
100
- mindroot
101
- ```
102
-
103
- or if you want to start the server on a different port:
104
- ```bash
105
- mindroot -p 8001
106
- ```
107
-
108
- Note that you will always need to start from that working directory if you want your
109
- settings to be preserved.
110
-
111
- Creating an Admin User
112
- -----------------------
113
-
114
- For the initial startup, you will need to create an admin user.
115
- Use a command like this the first time you run it:
116
- ```bash
117
- mindroot --admin-user admin --admin-password pass1234
118
- ```
119
-
120
- Installing Plugins
121
- ------------------
122
-
123
- Most of the commands or services are in plugins that you have to install.
124
- Go to the /admin page and find the Plugins section
125
- Click on the 'default' Index
126
- It should show a list of Plugins
127
- I suggest installing all of them.
128
-
129
- The first would be either Anthropic (recommended) or OpenAI
130
-
131
- *Important: You will need either `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` set in your environment variables.*
132
-
133
- To install a plugin just click the Install button and wait 10-20 seconds and you will see a confirmation pop up.
134
-
135
- **Important: You will need to restart the server to see the changes.**
136
-
137
- For now I recommend not using the Server control section on the Admin page but rather just
138
- hit Control-C in the terminal and then run `mindroot` again, unless you start the program
139
- with `pm2` in which case the server control Stop or Restart works well since it will just
140
- exist and auto-restart.
141
-
142
- # Knowledgebase
143
-
144
- Go to `/admin` | Plugins | Install from Github | `runvnc/mr_kb`
145
-
146
- # Walkthrough: Custom Agent Using a Knowledgebase
147
-
148
- [Walkthrough](agents.md)
149
-
150
- # Existing Plugins
151
-
152
- Most plugins are in external repos, which anyone can create. You do not need to make a PR or anything.
153
- You can install from the Index or also just using the `Install from Github` button on the admin | Plugins tab.
154
- Enter `[github user]/[repo name]` to install from a repo.
155
-
156
- # Plugin List
157
-
158
- | Plugin Name | Description |
159
- |-------------|------------------------|
160
- | mr_kb | Knowledge base integration |
161
- | ah_flux | Data flow or state management system |
162
- | mr_imagen | Google Imagen or similar image generation integration |
163
- | mr_opentab | Opens new browser tabs or manages tab functionality |
164
- | ah_history | Show chat history links on left side |
165
- | mr_grok | Integration with xAI's Grok model |
166
- | mr_groq | Integration with Groq's LLM API |
167
- | mr_mysql | MySQL database connector |
168
- | ah_add_timestamp | Adds timestamps to messages or logs |
169
- | emr_test | Electronic Medical Record testing module |
170
- | ah_anthropic | Integration with Anthropic's Claude models |
171
- | mr_journal | Journaling or note-taking functionality |
172
- | ah_swapface | Face swapping for images |
173
- | mr_tavily_search | Integration with Tavily search API |
174
- | ah_word | Microsoft Word document processing |
175
- | mr_gemini | Integration with Google's Gemini models |
176
- | mr_hide_mobile_menu | UI enhancement to hide menu on mobile devices |
177
- | ah_files | File commands like read() and write() |
178
- | mr_dice | Random number generation or dice rolling functionality |
179
- | mr_deepseek | Integration with DeepSeek AI models |
180
- | mr_deepgram | Speech-to-text via Deepgram API |
181
- | ah_workspace | Show embedded iframe the AI can edit |
182
- | mr_redact | Text redaction for sensitive information |
183
- | mr_job_queue | Background job processing system |
184
- | mr_heygen | Integration with Heygen video generation |
185
- | ah_excel | Microsoft Excel spreadsheet processing |
186
- | ah_togetherai | Integration with Together.ai models |
187
- | mr_supabase | Supabase database integration |
188
- | mr_browser_use | Browser automation or control |
189
- | ah_look_at | Image and PDF viewing commands |
190
- | ah_runpod_sd | Stable Diffusion via RunPod |
191
- | mr_sqlite | SQLite database integration |
192
- | mr_reddit | Reddit API integration (create a bot) |
193
- | ah_max_context | Truncate conversation |
194
- | mr_yolo_replicate | YOLO object detection via Replicate |
195
- | ah_filetree | File system browser with tree view |
196
- | mr_cerebras | Integration with Cerebras AI models |
197
- | ah_faceswap | Face swapping functionality for images |
198
- | ah_think | Chain of thought commands (important) |
199
- | ah_shell | execute_command() in shell, dir, mkdir |
200
- | ah_openai | OpenAI API integration |
201
- | ah_user_memory | Agent can store and remember things |
202
- | mr_f5_tts | F5 text-to-speech integration |
203
- | mr_wani2v_replicate | Wani2v model via Replicate |
204
- | ah_concise_results | Truncate messages |
205
- | ah_img_tags | Image tagging or classification |
206
- | ah_openrouter | OpenRouter.ai API integration |
207
- | mr_hud | Heads-up display UI component |
208
- | ah_session_data | Session data management |
209
- | mr_typing | Typing indicator or text input enhancement |
210
- | mr_fireworks | Integration with Fireworks.ai models |
211
- | mr_computer_use | Computer control or automation functionality |
212
-
213
-
214
- Developers: Creating Plugins and Tool Commands etc.
215
- ---------------------------------------------------
216
-
217
- See the [Plugin Documentation](plugins.md)
218
-
219
-
220
- Adding Commands to Agents
221
- -------------------------
222
-
223
- Go to Admin -> Agents
224
- Select an agent from the drop down, such as Assistant
225
-
226
- There are toggle switches for all of the commands. I recommend avoiding the 'replace_' commands
227
- in files for now because they are not reliable.
228
-
229
-
230
- API Documentation
231
- ----------------
232
-
233
- MindRoot provides a REST API for programmatic interaction with agents. This allows you to integrate AI capabilities into your applications without using the web interface.
234
-
235
- For detailed information on available endpoints, authentication, and usage examples, see the [API Documentation](api.md).
236
-
237
- Python SDK
238
- ----------
239
-
240
- There is also an SDK for Python that interacts with the API. You can install it with pip:
241
- ```bash
242
- pip install mrsdk
243
- ```
244
-
245
- Usage example:
246
- ```python
247
- from mrsdk import MindRootClient
248
-
249
- client = MindRootClient(api_key="your_api_key_here",
250
- base_url="http://localhost:8010")
251
-
252
- result = client.run_task(
253
- agent_name="Assistant",
254
- instructions="What is the square root of 256? Show your work."
255
- )
256
-
257
- print(result["results"])
258
- ```
259
-
260
- Further details including how to get a full trace of the agent activity,
261
- see the repo here: [mrsdk](https://github.com/runvnc/mrsdk)
262
-
263
-
264
- Key Features:
265
- -------------
266
-
267
- - Public registry for sharing and finding plugins, agents, personas, models, and knowledgebases
268
- - https://registry.agenthost.org (work in progress)
269
- - Customizable and swappable for user-specific registries
270
- - Extensible plugin architecture for adding services, commands, and building arbitrary web apps
271
- - Customizable AI agents with persona definitions
272
- - Intelligent service management based on agent requirements
273
- - Flexible service providers for various AI capabilities
274
- - Plugins can add/use hooks and pipelines such as for modifying prompts, running startup commands, or anything you want
275
- - Easily customizable UI built on Jinja2 and Lit Web Components
276
- - Support for both local and remote AI services
277
- - RAG: easily share, find and use pre-generated embeddings and documents for topic knowledgebases
278
-
279
-
280
- ## Gallery
281
-
282
- ### Admin Interface
283
- ![Admin Interface](gallery/dash1.png)
284
-
285
- ### Plugin Management
286
- ![Plugin Management](gallery/plugins.png)
287
-
288
- ### Computer Use
289
- ![Computer Use](gallery/cu.gif)
290
-
291
- ### 3D Graph Visualization
292
- ![3D Graph Demo](gallery/3dgraph.gif)
293
-
294
- ### Chain Rule Explanation
295
- ![Chain Rule Demo](gallery/chainrule.gif)
296
-
297
- ### Character Generation
298
- ![Character Generation](gallery/char4.gif)
299
-
300
- ### Fantasy Character Creation
301
- ![Fantasy Character](gallery/fantasychar.gif)
302
-
303
- ### Morgan's Method
304
- ![Morgan's Method](gallery/morgan1.gif)
305
-
306
- ### Heygen Integration Demos
307
- ![Heygen Integration](gallery/heygenscn.png)
308
-
309
-
310
-