akashcli 4.8.1__tar.gz → 4.8.2__tar.gz

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.
Files changed (33) hide show
  1. {akashcli-4.8.1 → akashcli-4.8.2}/PKG-INFO +1 -1
  2. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/cli.py +10 -6
  3. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli.egg-info/PKG-INFO +1 -1
  4. {akashcli-4.8.1 → akashcli-4.8.2}/pyproject.toml +1 -1
  5. {akashcli-4.8.1 → akashcli-4.8.2}/README.md +0 -0
  6. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/__init__.py +0 -0
  7. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/_net.py +0 -0
  8. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/auth.py +0 -0
  9. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/client.py +0 -0
  10. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/config.py +0 -0
  11. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/crypto.py +0 -0
  12. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/env_manager.py +0 -0
  13. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/exceptions.py +0 -0
  14. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/exec.py +0 -0
  15. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/integrity.py +0 -0
  16. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/logger.py +0 -0
  17. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/models.py +0 -0
  18. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/p2p.py +0 -0
  19. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/packages.py +0 -0
  20. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/relay.py +0 -0
  21. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/restore.py +0 -0
  22. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/snapshot_crypto.py +0 -0
  23. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/storage.py +0 -0
  24. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/terminal.py +0 -0
  25. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/updater.py +0 -0
  26. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/uploader.py +0 -0
  27. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli/utils.py +0 -0
  28. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli.egg-info/SOURCES.txt +0 -0
  29. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli.egg-info/dependency_links.txt +0 -0
  30. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli.egg-info/entry_points.txt +0 -0
  31. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli.egg-info/requires.txt +0 -0
  32. {akashcli-4.8.1 → akashcli-4.8.2}/akashcli.egg-info/top_level.txt +0 -0
  33. {akashcli-4.8.1 → akashcli-4.8.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akashcli
3
- Version: 4.8.1
3
+ Version: 4.8.2
4
4
  Summary: Akash CLI — secure remote shell relay, file vault, and device management
5
5
  License-Expression: MIT
6
6
  Keywords: akash,cli,relay,remote-shell,vault
@@ -51,7 +51,7 @@ class _Spin:
51
51
  _FRAMES = ("⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏")
52
52
 
53
53
  def __init__(self, label: str, min_seconds: float = 0.35, disabled: bool = False, prefix: str = ""):
54
- self._label = label
54
+ self._label = re.sub(r'[\r\n\t]+', ' ', str(label)).strip()
55
55
  self._prefix = prefix
56
56
  self._disabled = disabled or (not sys.stdout.isatty())
57
57
  self._min_seconds = min_seconds
@@ -90,7 +90,7 @@ class _Spin:
90
90
  return self
91
91
 
92
92
  def update(self, label: str):
93
- self._label = label
93
+ self._label = re.sub(r'[\r\n\t]+', ' ', str(label)).strip()
94
94
 
95
95
  def __exit__(self, *_):
96
96
  if self._disabled:
@@ -3679,7 +3679,8 @@ def mcp_serve(
3679
3679
 
3680
3680
  if t_name == "akash_exec_command":
3681
3681
  cmd = args.get("command", "")
3682
- disp_cmd = cmd if len(cmd) <= 32 else cmd[:29] + "…"
3682
+ one_line_cmd = re.sub(r'[\r\n\t]+', ' ', cmd).strip()
3683
+ disp_cmd = one_line_cmd if len(one_line_cmd) <= 36 else one_line_cmd[:33] + "…"
3683
3684
 
3684
3685
  is_safe, sec_reason = _sanitize_agent_command(cmd, scopes=cached.get("scopes", "*"))
3685
3686
  if not is_safe:
@@ -3788,7 +3789,8 @@ def mcp_serve(
3788
3789
 
3789
3790
  elif t_name == "akash_read_file":
3790
3791
  f_path = args.get("path", "")
3791
- disp_f = f_path if len(f_path) <= 32 else f_path[:29] + "…"
3792
+ c_f = re.sub(r'[\r\n\t]+', ' ', f_path).strip()
3793
+ disp_f = c_f if len(c_f) <= 36 else c_f[:33] + "…"
3792
3794
  with _Spin(f"read: {disp_f}", min_seconds=0.15, prefix=ts_pfx):
3793
3795
  res_text, is_err = _handle_tool_read_file(args, cached.get("scopes", "*"))
3794
3796
  elapsed_ms = (time.monotonic() - t0) * 1000
@@ -3802,7 +3804,8 @@ def mcp_serve(
3802
3804
 
3803
3805
  elif t_name == "akash_write_file":
3804
3806
  f_path = args.get("path", "")
3805
- disp_f = f_path if len(f_path) <= 32 else f_path[:29] + "…"
3807
+ c_f = re.sub(r'[\r\n\t]+', ' ', f_path).strip()
3808
+ disp_f = c_f if len(c_f) <= 36 else c_f[:33] + "…"
3806
3809
  _save_undo_checkpoint()
3807
3810
  with _Spin(f"write: {disp_f}", min_seconds=0.15, prefix=ts_pfx):
3808
3811
  res_text, is_err = _handle_tool_write_file(args, cached.get("scopes", "*"))
@@ -3817,7 +3820,8 @@ def mcp_serve(
3817
3820
 
3818
3821
  elif t_name == "akash_list_dir":
3819
3822
  d_path = args.get("path", ".")
3820
- disp_d = d_path if len(d_path) <= 32 else d_path[:29] + "…"
3823
+ c_d = re.sub(r'[\r\n\t]+', ' ', d_path).strip()
3824
+ disp_d = c_d if len(c_d) <= 36 else c_d[:33] + "…"
3821
3825
  with _Spin(f"list: {disp_d}", min_seconds=0.15, prefix=ts_pfx):
3822
3826
  res_text, is_err = _handle_tool_list_dir(args, cached.get("scopes", "*"))
3823
3827
  elapsed_ms = (time.monotonic() - t0) * 1000
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akashcli
3
- Version: 4.8.1
3
+ Version: 4.8.2
4
4
  Summary: Akash CLI — secure remote shell relay, file vault, and device management
5
5
  License-Expression: MIT
6
6
  Keywords: akash,cli,relay,remote-shell,vault
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "akashcli"
3
- version = "4.8.1"
3
+ version = "4.8.2"
4
4
  description = "Akash CLI — secure remote shell relay, file vault, and device management"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes