mindroot 9.1.0__py3-none-any.whl → 9.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.

@@ -4,7 +4,9 @@ import json
4
4
  import subprocess
5
5
  from pathlib import Path
6
6
  from lib.providers.services import service
7
+ import lib
7
8
  from lib.plugins import list_enabled, get_plugin_path
9
+ import mindroot.coreplugins
8
10
 
9
11
 
10
12
  def should_skip_directory(directory):
@@ -132,36 +134,29 @@ async def scan_env_vars(params=None, context=None):
132
134
  }
133
135
  all_env_vars.update(env_vars)
134
136
 
135
- # Also scan the coreplugins directory
136
- coreplugins_path = '/files/mindroot/src/mindroot/coreplugins'
137
+ # Also scan the core directories (lib and coreplugins)
138
+ core_env_vars = set()
139
+ lib_path = os.path.dirname(lib.__file__)
140
+ mindroot_path = os.path.dirname(lib_path)
141
+
142
+ # Scan lib directory
143
+ if os.path.isdir(lib_path):
144
+ lib_vars = scan_directory_for_env_vars(lib_path)
145
+ core_env_vars.update(lib_vars)
146
+
147
+ # Scan coreplugins directory
148
+ coreplugins_path = os.path.join(mindroot_path, 'coreplugins')
137
149
  if os.path.isdir(coreplugins_path):
138
- env_vars = scan_directory_for_env_vars(coreplugins_path)
139
- if env_vars:
140
- if 'core' not in results:
141
- results['core'] = {
142
- 'plugin_name': 'core',
143
- 'category': 'core',
144
- 'env_vars': []
145
- }
146
- results['core']['env_vars'].extend(list(env_vars))
147
- all_env_vars.update(env_vars)
150
+ coreplugins_vars = scan_directory_for_env_vars(coreplugins_path)
151
+ core_env_vars.update(coreplugins_vars)
148
152
 
149
- # Also scan the lib directory
150
- lib_path = '/files/mindroot/src/mindroot/lib'
151
- if os.path.isdir(lib_path):
152
- env_vars = scan_directory_for_env_vars(lib_path)
153
- if env_vars:
154
- if 'core' not in results:
155
- results['core'] = {
156
- 'plugin_name': 'core',
157
- 'category': 'core',
158
- 'env_vars': []
159
- }
160
- # Add only new variables to avoid duplicates
161
- existing_vars = set(results['core']['env_vars'])
162
- new_vars = env_vars - existing_vars
163
- results['core']['env_vars'].extend(list(new_vars))
164
- all_env_vars.update(new_vars)
153
+ if core_env_vars:
154
+ results['core'] = {
155
+ 'plugin_name': 'core',
156
+ 'category': 'core',
157
+ 'env_vars': sorted(list(core_env_vars))
158
+ }
159
+ all_env_vars.update(core_env_vars)
165
160
 
166
161
  # Get current environment variables
167
162
  current_env = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mindroot
3
- Version: 9.1.0
3
+ Version: 9.2.0
4
4
  Summary: MindRoot AI Agent Framework
5
5
  Requires-Python: >=3.9
6
6
  License-File: LICENSE
@@ -913,7 +913,7 @@ mindroot/coreplugins/email/test_batch.py,sha256=gCe_E02K0sCrOWi4meEELx0rckeCRXaF
913
913
  mindroot/coreplugins/email/test_email.py,sha256=SrG6Luts0r9YbDqSsBT8I45gIKZi3s3Q5d_dPNxj1Q0,5328
914
914
  mindroot/coreplugins/email/backup/mod.py,sha256=6vvFGpOzCCfEDYlaJBEixRgNRIfvp-mcD6siCwvtxcI,2118
915
915
  mindroot/coreplugins/env_manager/__init__.py,sha256=zcQypdwauAdtsj1Be-QZcPeLU_T3LiYaoWKWmIRKsnY,100
916
- mindroot/coreplugins/env_manager/mod.py,sha256=fcap4fmo1c_mW8ED8V6W6QErg8_RwfzWIPuZL6vHw1o,8176
916
+ mindroot/coreplugins/env_manager/mod.py,sha256=gVc_-5YZRWZ0HHaQWILnQz04oSnnoRDgqRBL6wqqnog,7807
917
917
  mindroot/coreplugins/env_manager/router.py,sha256=f0d3BoeuwdUXBVJ4Kco8PURIWue5g_xI-5PGi6_6pF8,1185
918
918
  mindroot/coreplugins/env_manager/inject/admin.jinja2,sha256=BLGzp3Osc1aKo5-4rOwM3Gy4-FdoJQh7oYcTMrkaW-s,462
919
919
  mindroot/coreplugins/env_manager/static/css/env-manager.css,sha256=Y-538HHrkYtiyX-l15sYUJ6mmspbJVJZniHQKz6sL9g,4288
@@ -1826,9 +1826,9 @@ mindroot/protocols/services/stream_chat.py,sha256=fMnPfwaB5fdNMBLTEg8BXKAGvrELKH
1826
1826
  mindroot/registry/__init__.py,sha256=40Xy9bmPHsgdIrOzbtBGzf4XMqXVi9P8oZTJhn0r654,151
1827
1827
  mindroot/registry/component_manager.py,sha256=WZFNPg4SNvpqsM5NFiC2DpgmrJQCyR9cNhrCBpp30Qk,995
1828
1828
  mindroot/registry/data_access.py,sha256=NgNMamxIjaKeYxzxnVaQz1Y-Rm0AI51si3788_JHUTM,5316
1829
- mindroot-9.1.0.dist-info/licenses/LICENSE,sha256=8plAmZh8y9ccuuqFFz4kp7G-cO_qsPgAOoHNvabSB4U,1070
1830
- mindroot-9.1.0.dist-info/METADATA,sha256=ydC57sIWRLy3f2wJXLGSW3Fzhn2lVqsS1KqQbGuPO1g,891
1831
- mindroot-9.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1832
- mindroot-9.1.0.dist-info/entry_points.txt,sha256=0bpyjMccLttx6VcjDp6zfJPN0Kk0rffor6IdIbP0j4c,50
1833
- mindroot-9.1.0.dist-info/top_level.txt,sha256=gwKm7DmNjhdrCJTYCrxa9Szne4lLpCtrEBltfsX-Mm8,9
1834
- mindroot-9.1.0.dist-info/RECORD,,
1829
+ mindroot-9.2.0.dist-info/licenses/LICENSE,sha256=8plAmZh8y9ccuuqFFz4kp7G-cO_qsPgAOoHNvabSB4U,1070
1830
+ mindroot-9.2.0.dist-info/METADATA,sha256=YMYUpTxmYkwH8qigO998NI6gc_R0H5qQVelCoz_-UGs,891
1831
+ mindroot-9.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1832
+ mindroot-9.2.0.dist-info/entry_points.txt,sha256=0bpyjMccLttx6VcjDp6zfJPN0Kk0rffor6IdIbP0j4c,50
1833
+ mindroot-9.2.0.dist-info/top_level.txt,sha256=gwKm7DmNjhdrCJTYCrxa9Szne4lLpCtrEBltfsX-Mm8,9
1834
+ mindroot-9.2.0.dist-info/RECORD,,