mcli-framework 7.6.2__py3-none-any.whl → 7.7.2__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 mcli-framework might be problematic. Click here for more details.
- mcli/app/main.py +14 -2
- mcli/self/self_cmd.py +0 -28
- {mcli_framework-7.6.2.dist-info → mcli_framework-7.7.2.dist-info}/METADATA +2 -2
- {mcli_framework-7.6.2.dist-info → mcli_framework-7.7.2.dist-info}/RECORD +8 -8
- {mcli_framework-7.6.2.dist-info → mcli_framework-7.7.2.dist-info}/WHEEL +0 -0
- {mcli_framework-7.6.2.dist-info → mcli_framework-7.7.2.dist-info}/entry_points.txt +0 -0
- {mcli_framework-7.6.2.dist-info → mcli_framework-7.7.2.dist-info}/licenses/LICENSE +0 -0
- {mcli_framework-7.6.2.dist-info → mcli_framework-7.7.2.dist-info}/top_level.txt +0 -0
mcli/app/main.py
CHANGED
|
@@ -456,8 +456,20 @@ def create_app() -> click.Group:
|
|
|
456
456
|
def get_version_info(verbose: bool = False) -> str:
|
|
457
457
|
"""Get version info, cached to prevent multiple calls."""
|
|
458
458
|
try:
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
# Try mcli-framework first (PyPI package name), then mcli (local dev)
|
|
460
|
+
mcli_version = None
|
|
461
|
+
meta = None
|
|
462
|
+
|
|
463
|
+
for pkg_name in ["mcli-framework", "mcli"]:
|
|
464
|
+
try:
|
|
465
|
+
mcli_version = version(pkg_name)
|
|
466
|
+
meta = metadata(pkg_name)
|
|
467
|
+
break
|
|
468
|
+
except Exception:
|
|
469
|
+
continue
|
|
470
|
+
|
|
471
|
+
if mcli_version is None:
|
|
472
|
+
return "Could not determine version: Package metadata not found"
|
|
461
473
|
|
|
462
474
|
info = [f"mcli version {mcli_version}"]
|
|
463
475
|
|
mcli/self/self_cmd.py
CHANGED
|
@@ -1243,34 +1243,6 @@ def update(check: bool, pre: bool, yes: bool, skip_ci_check: bool):
|
|
|
1243
1243
|
|
|
1244
1244
|
console.print(f"[dim]{traceback.format_exc()}[/dim]")
|
|
1245
1245
|
|
|
1246
|
-
# Validate syntax
|
|
1247
|
-
try:
|
|
1248
|
-
compile(new_code, "<string>", "exec")
|
|
1249
|
-
except SyntaxError as e:
|
|
1250
|
-
click.echo(f"❌ Syntax error in edited code: {e}", err=True)
|
|
1251
|
-
should_save = Prompt.ask("Save anyway?", choices=["y", "n"], default="n")
|
|
1252
|
-
if should_save.lower() != "y":
|
|
1253
|
-
return 1
|
|
1254
|
-
|
|
1255
|
-
# Update the command
|
|
1256
|
-
command_data["code"] = new_code
|
|
1257
|
-
command_data["updated_at"] = datetime.now().isoformat()
|
|
1258
|
-
|
|
1259
|
-
with open(command_file, "w") as f:
|
|
1260
|
-
json.dump(command_data, f, indent=2)
|
|
1261
|
-
|
|
1262
|
-
# Update lockfile
|
|
1263
|
-
manager.generate_lockfile()
|
|
1264
|
-
|
|
1265
|
-
click.echo(f"✅ Updated command: {command_name}")
|
|
1266
|
-
click.echo(f"📁 Saved to: {command_file}")
|
|
1267
|
-
click.echo(f"🔄 Reload with: mcli self reload" or "restart mcli")
|
|
1268
|
-
|
|
1269
|
-
finally:
|
|
1270
|
-
Path(tmp_path).unlink(missing_ok=True)
|
|
1271
|
-
|
|
1272
|
-
return 0
|
|
1273
|
-
|
|
1274
1246
|
|
|
1275
1247
|
# Register the plugin group with self_app
|
|
1276
1248
|
self_app.add_command(plugin)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcli-framework
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.7.2
|
|
4
4
|
Summary: 🚀 High-performance CLI framework with Rust extensions, AI chat, and stunning visuals
|
|
5
5
|
Author-email: Luis Fernandez de la Vara <luis@lefv.io>
|
|
6
6
|
Maintainer-email: Luis Fernandez de la Vara <luis@lefv.io>
|
|
@@ -278,7 +278,7 @@ After installation, you'll have full tab completion:
|
|
|
278
278
|
- `mcli workflow <TAB>` → shows workflow subcommands
|
|
279
279
|
- `mcli workflow politician-trading <TAB>` → shows politician-trading options
|
|
280
280
|
|
|
281
|
-
See [SHELL_COMPLETION.md](SHELL_COMPLETION.md) for detailed setup and troubleshooting.
|
|
281
|
+
See [SHELL_COMPLETION.md](docs/features/SHELL_COMPLETION.md) for detailed setup and troubleshooting.
|
|
282
282
|
|
|
283
283
|
## Development Workflow
|
|
284
284
|
|
|
@@ -3,7 +3,7 @@ mcli/config.toml,sha256=263yEVvP_W9F2zOLssUBgy7amKaRAFQuBrfxcMhKxaQ,1706
|
|
|
3
3
|
mcli/app/chat_cmd.py,sha256=OJK91iX-f-CL5-m3ECG4IlcbLbsWQpPp7XWuGnb0cVQ,1552
|
|
4
4
|
mcli/app/commands_cmd.py,sha256=Llk7ImF7Nye4ph7VVEfE37Bxhxe4a19eTQWxStrppVs,32369
|
|
5
5
|
mcli/app/completion_helpers.py,sha256=e62C6w2N-XoD66GYYHgtvKKoD3kYMuIeBBGzVKbuL04,7497
|
|
6
|
-
mcli/app/main.py,sha256=
|
|
6
|
+
mcli/app/main.py,sha256=vzG-QDrJixH-KIOzuqO01hpRpfF8Go2cQWOAyEs_m0M,19467
|
|
7
7
|
mcli/app/model_cmd.py,sha256=PO8SHRAuHFhP83sS0CNFmfBvULHMMJvYpq9Im62zLlg,16741
|
|
8
8
|
mcli/app/model/model.py,sha256=EUGu_td-hRlbf4OElkdk1-0p7WyuG7sZmb-Ux2-J9KY,39061
|
|
9
9
|
mcli/app/video/video.py,sha256=3TL8vG3XSKzH_Iyy-IHPZOwNtT7js0VqVVNwIgfDvpk,41910
|
|
@@ -145,7 +145,7 @@ mcli/public/oi/oi.py,sha256=SQabQWQ1pE67pWYEHwIDc3R93DARJfB6VHk7qxWx9xo,308
|
|
|
145
145
|
mcli/self/completion_cmd.py,sha256=FKNVc_4ikWTGbDHybiNZGdxrggvt6A6q1rnzuyFVzVM,7754
|
|
146
146
|
mcli/self/logs_cmd.py,sha256=SCzZ4VZs6p42hksun_w4WN33xIZgmq7RjdWX8P2WcT4,15056
|
|
147
147
|
mcli/self/redis_cmd.py,sha256=Cl0LQ3Mqt27gLeb542_xw6bJBbIE-CBmWyMmaUTSk8c,9426
|
|
148
|
-
mcli/self/self_cmd.py,sha256=
|
|
148
|
+
mcli/self/self_cmd.py,sha256=f1zTuINsfA9pKczxeDS4ODRwSwnj2mlmOQ_dDLttXT0,45640
|
|
149
149
|
mcli/self/test_cmd.py,sha256=WjzgoH1WFa79wc8A7O6UMuJfookLfgciUNcCMbKHAQQ,21
|
|
150
150
|
mcli/self/visual_cmd.py,sha256=jXighahHxeM9HANQ2Brk6nKFgi2ZuQBOBH7PE5xhebk,9428
|
|
151
151
|
mcli/test/cron_test_cmd.py,sha256=Ai4Smg2WxULeiMD5s2m_S_fXdMAAQsKHpSc4iJGSnwI,26156
|
|
@@ -206,9 +206,9 @@ mcli/workflow/scheduler/persistence.py,sha256=SU8-F5wTpTercZvTeAXKlGI7gwHyfmYDhX
|
|
|
206
206
|
mcli/workflow/scheduler/scheduler.py,sha256=1Ujq9VgL1rSTCAtshuLA2_sodW6HOj0MEZem7Ga-kic,23351
|
|
207
207
|
mcli/workflow/sync/test_cmd.py,sha256=neVgs9zEnKSxlvzDpFkuCGucqnzjrShm2OvJtHibslg,10009
|
|
208
208
|
mcli/workflow/wakatime/wakatime.py,sha256=sEjsUKa3-XyE8Ni6sAb_D3GAY5jDcA30KknW9YTbLTA,142
|
|
209
|
-
mcli_framework-7.
|
|
210
|
-
mcli_framework-7.
|
|
211
|
-
mcli_framework-7.
|
|
212
|
-
mcli_framework-7.
|
|
213
|
-
mcli_framework-7.
|
|
214
|
-
mcli_framework-7.
|
|
209
|
+
mcli_framework-7.7.2.dist-info/licenses/LICENSE,sha256=sahwAMfrJv2-V66HNPTp7A9UmMjxtyejwTZZoWQvEcI,1075
|
|
210
|
+
mcli_framework-7.7.2.dist-info/METADATA,sha256=zZi-Wv5339y-FN2xMzboiynJBOrhNy71uTR2x5ME1t0,14816
|
|
211
|
+
mcli_framework-7.7.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
212
|
+
mcli_framework-7.7.2.dist-info/entry_points.txt,sha256=dYrZbDIm-KUPsl1wfv600Kx_8sMy89phMkCihbDRgP8,261
|
|
213
|
+
mcli_framework-7.7.2.dist-info/top_level.txt,sha256=_bnO8J2EUkliWivey_1le0UrnocFKmyVMQjbQ8iVXjc,5
|
|
214
|
+
mcli_framework-7.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|