forgexa-cli 1.22.4__tar.gz → 1.22.5__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 (21) hide show
  1. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/PKG-INFO +1 -1
  2. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli/__init__.py +1 -1
  3. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli/daemon.py +11 -4
  4. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli.egg-info/PKG-INFO +1 -1
  5. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/pyproject.toml +1 -1
  6. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/README.md +0 -0
  7. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli/_build_config.py +0 -0
  8. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli/autoupgrade.py +0 -0
  9. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli/main.py +0 -0
  10. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli/py.typed +0 -0
  11. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli.egg-info/SOURCES.txt +0 -0
  12. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli.egg-info/dependency_links.txt +0 -0
  13. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli.egg-info/entry_points.txt +0 -0
  14. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli.egg-info/requires.txt +0 -0
  15. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/forgexa_cli.egg-info/top_level.txt +0 -0
  16. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/setup.cfg +0 -0
  17. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/tests/test_auth_and_runtime_commands.py +0 -0
  18. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/tests/test_autoupgrade.py +0 -0
  19. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/tests/test_check_command.py +0 -0
  20. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/tests/test_silent_install.py +0 -0
  21. {forgexa_cli-1.22.4 → forgexa_cli-1.22.5}/tests/test_upgrade_observability.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.22.4
3
+ Version: 1.22.5
4
4
  Summary: Forgexa CLI — command-line client and AI agent runtime for the Forgexa platform
5
5
  Author-email: Jason Sun <dev.winds@gmail.com>
6
6
  License-Expression: MIT
@@ -1,2 +1,2 @@
1
1
  """forgexa-cli — Forgexa command-line client."""
2
- __version__ = "1.22.4"
2
+ __version__ = "1.22.5"
@@ -555,7 +555,7 @@ except (ImportError, ModuleNotFoundError):
555
555
  # DAEMON_VERSION is the protocol/logic version of the daemon code.
556
556
  # Kept in sync with pyproject.toml version via bump-version.sh.
557
557
  # CLIENT_TYPE identifies which packaging/distribution this daemon runs in.
558
- DAEMON_VERSION = "1.22.4"
558
+ DAEMON_VERSION = "1.22.5"
559
559
 
560
560
 
561
561
  def _detect_client_type() -> str:
@@ -2622,6 +2622,13 @@ class WorkspaceManager:
2622
2622
  self._safe_rmtree(ws_path)
2623
2623
 
2624
2624
  if main_repo.exists():
2625
+ # Prune also preserves explicitly locked worktrees, even after
2626
+ # their directories disappear. Unlock before pruning so a stale
2627
+ # registration cannot keep its branch ref occupied forever.
2628
+ try:
2629
+ await self._git("worktree", "unlock", str(ws_path), cwd=main_repo)
2630
+ except RuntimeError:
2631
+ pass
2625
2632
  try:
2626
2633
  await self._git("worktree", "prune", cwd=main_repo)
2627
2634
  except RuntimeError:
@@ -2706,9 +2713,9 @@ class WorkspaceManager:
2706
2713
  for candidate_path, candidate_branch in entries:
2707
2714
  if candidate_path == main_repo or candidate_branch != target_ref:
2708
2715
  continue
2709
- if not candidate_path.exists():
2710
- continue
2711
- if not healthy_only or await self._is_healthy_worktree(candidate_path, main_repo=main_repo):
2716
+ if not healthy_only:
2717
+ return candidate_path
2718
+ if candidate_path.exists() and await self._is_healthy_worktree(candidate_path, main_repo=main_repo):
2712
2719
  return candidate_path
2713
2720
 
2714
2721
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.22.4
3
+ Version: 1.22.5
4
4
  Summary: Forgexa CLI — command-line client and AI agent runtime for the Forgexa platform
5
5
  Author-email: Jason Sun <dev.winds@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "forgexa-cli"
3
- version = "1.22.4"
3
+ version = "1.22.5"
4
4
  description = "Forgexa CLI — command-line client and AI agent runtime for the Forgexa platform"
5
5
  requires-python = ">=3.9"
6
6
  license = "MIT"
File without changes
File without changes