mcli-framework 7.0.4__py3-none-any.whl → 7.0.6__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/self/self_cmd.py +27 -13
- {mcli_framework-7.0.4.dist-info → mcli_framework-7.0.6.dist-info}/METADATA +1 -1
- {mcli_framework-7.0.4.dist-info → mcli_framework-7.0.6.dist-info}/RECORD +7 -7
- {mcli_framework-7.0.4.dist-info → mcli_framework-7.0.6.dist-info}/WHEEL +0 -0
- {mcli_framework-7.0.4.dist-info → mcli_framework-7.0.6.dist-info}/entry_points.txt +0 -0
- {mcli_framework-7.0.4.dist-info → mcli_framework-7.0.6.dist-info}/licenses/LICENSE +0 -0
- {mcli_framework-7.0.4.dist-info → mcli_framework-7.0.6.dist-info}/top_level.txt +0 -0
mcli/self/self_cmd.py
CHANGED
|
@@ -774,18 +774,15 @@ def logs(type: str, lines: int, follow: bool, date: str, grep: str, level: str):
|
|
|
774
774
|
from datetime import datetime
|
|
775
775
|
from pathlib import Path
|
|
776
776
|
|
|
777
|
-
#
|
|
778
|
-
|
|
779
|
-
# Go up 5 levels: file -> self -> mcli -> src -> repo_root
|
|
780
|
-
project_root = current_file.parents[4]
|
|
781
|
-
logs_dir = project_root / "logs"
|
|
777
|
+
# Import get_logs_dir to get the correct logs directory
|
|
778
|
+
from mcli.lib.paths import get_logs_dir
|
|
782
779
|
|
|
783
|
-
#
|
|
784
|
-
|
|
785
|
-
logs_dir = Path.cwd() / "logs"
|
|
780
|
+
# Get the logs directory (creates it if it doesn't exist)
|
|
781
|
+
logs_dir = get_logs_dir()
|
|
786
782
|
|
|
787
783
|
if not logs_dir.exists():
|
|
788
784
|
click.echo("❌ Logs directory not found", err=True)
|
|
785
|
+
click.echo(f"Expected location: {logs_dir}", err=True)
|
|
789
786
|
return
|
|
790
787
|
|
|
791
788
|
# Determine which log files to read
|
|
@@ -1275,16 +1272,33 @@ def update(check: bool, pre: bool, yes: bool, skip_ci_check: bool):
|
|
|
1275
1272
|
# Install update
|
|
1276
1273
|
console.print(f"[cyan]📦 Installing mcli {latest_version}...[/cyan]")
|
|
1277
1274
|
|
|
1278
|
-
#
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1275
|
+
# Detect if we're running from a uv tool installation
|
|
1276
|
+
# uv tool installations are typically in ~/.local/share/uv/tools/
|
|
1277
|
+
is_uv_tool = ".local/share/uv/tools/" in sys.executable or \
|
|
1278
|
+
"\\AppData\\Local\\uv\\tools\\" in sys.executable
|
|
1279
|
+
|
|
1280
|
+
if is_uv_tool:
|
|
1281
|
+
# Use uv tool install for uv tool environments
|
|
1282
|
+
console.print("[dim]Detected uv tool installation, using 'uv tool install'[/dim]")
|
|
1283
|
+
cmd = ["uv", "tool", "install", "--force", "mcli-framework"]
|
|
1284
|
+
if pre:
|
|
1285
|
+
# For pre-releases, we'd need to specify the version explicitly
|
|
1286
|
+
# For now, --pre is not supported with uv tool install in this context
|
|
1287
|
+
console.print("[yellow]⚠️ Pre-release flag not supported with uv tool install[/yellow]")
|
|
1288
|
+
else:
|
|
1289
|
+
# Use pip to upgrade for regular installations
|
|
1290
|
+
cmd = [sys.executable, "-m", "pip", "install", "--upgrade", "mcli-framework"]
|
|
1291
|
+
if pre:
|
|
1292
|
+
cmd.append("--pre")
|
|
1282
1293
|
|
|
1283
1294
|
result = subprocess.run(cmd, capture_output=True, text=True)
|
|
1284
1295
|
|
|
1285
1296
|
if result.returncode == 0:
|
|
1286
1297
|
console.print(f"[green]✅ Successfully updated to mcli {latest_version}![/green]")
|
|
1287
|
-
|
|
1298
|
+
if is_uv_tool:
|
|
1299
|
+
console.print("[yellow]ℹ️ Run 'hash -r' to refresh your shell's command cache[/yellow]")
|
|
1300
|
+
else:
|
|
1301
|
+
console.print("[yellow]ℹ️ Restart your terminal or run 'hash -r' to use the new version[/yellow]")
|
|
1288
1302
|
else:
|
|
1289
1303
|
console.print(f"[red]❌ Update failed:[/red]")
|
|
1290
1304
|
console.print(result.stderr)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcli-framework
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.6
|
|
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>
|
|
@@ -118,7 +118,7 @@ mcli/ml/tests/test_integration.py,sha256=gyH7gnghshD4z9zZKqs3uZTK7oZdgVF_Ujcbe6-
|
|
|
118
118
|
mcli/ml/tests/test_training_dashboard.py,sha256=9P1JrUCei7YydSJR8L4OrVmEWm5-SAy3e6S3h87JplQ,13588
|
|
119
119
|
mcli/public/public.py,sha256=t9BkO1XV7s3YcoH0bbIpyjZ05UX_vBjaKtKkuDX7wZ0,114
|
|
120
120
|
mcli/public/oi/oi.py,sha256=SQabQWQ1pE67pWYEHwIDc3R93DARJfB6VHk7qxWx9xo,308
|
|
121
|
-
mcli/self/self_cmd.py,sha256=
|
|
121
|
+
mcli/self/self_cmd.py,sha256=v6f5_Gm7CvBLJU_IZIDjC8Uz7nEExDfHnf1SOPgj7Gs,48458
|
|
122
122
|
mcli/workflow/lsh_integration.py,sha256=khwmMPsdYdkmmLxlZi_UqUo2p0Nf-6GF6PPbtOrmoYQ,13290
|
|
123
123
|
mcli/workflow/workflow.py,sha256=t58OVXmU9uQCJnyXuIbMAm8lihSzJ_jI10vXPNpZspk,928
|
|
124
124
|
mcli/workflow/daemon/api_daemon.py,sha256=hA4Jolvb2C0T5_adKeI7BYE5wajfH9BFmk4bK1CmbE4,29000
|
|
@@ -179,9 +179,9 @@ mcli/workflow/sync/sync_cmd.py,sha256=S8TuZS_WAsdeD3_j8-XSAZFFrpynAwTWnCC0e6DCLh
|
|
|
179
179
|
mcli/workflow/sync/test_cmd.py,sha256=neVgs9zEnKSxlvzDpFkuCGucqnzjrShm2OvJtHibslg,10009
|
|
180
180
|
mcli/workflow/videos/videos.py,sha256=C47ViVv6qqqkSKQz6YXjzhok4UrqFbya8w5k_x7hToM,8360
|
|
181
181
|
mcli/workflow/wakatime/wakatime.py,sha256=sEjsUKa3-XyE8Ni6sAb_D3GAY5jDcA30KknW9YTbLTA,142
|
|
182
|
-
mcli_framework-7.0.
|
|
183
|
-
mcli_framework-7.0.
|
|
184
|
-
mcli_framework-7.0.
|
|
185
|
-
mcli_framework-7.0.
|
|
186
|
-
mcli_framework-7.0.
|
|
187
|
-
mcli_framework-7.0.
|
|
182
|
+
mcli_framework-7.0.6.dist-info/licenses/LICENSE,sha256=sahwAMfrJv2-V66HNPTp7A9UmMjxtyejwTZZoWQvEcI,1075
|
|
183
|
+
mcli_framework-7.0.6.dist-info/METADATA,sha256=dOo-hFZkRTcnniOHoClyy-W3juTZgc6TsXsYEqgRFWo,14307
|
|
184
|
+
mcli_framework-7.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
185
|
+
mcli_framework-7.0.6.dist-info/entry_points.txt,sha256=dYrZbDIm-KUPsl1wfv600Kx_8sMy89phMkCihbDRgP8,261
|
|
186
|
+
mcli_framework-7.0.6.dist-info/top_level.txt,sha256=_bnO8J2EUkliWivey_1le0UrnocFKmyVMQjbQ8iVXjc,5
|
|
187
|
+
mcli_framework-7.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|