forgexa-cli 1.107.2__tar.gz → 1.107.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 (40) hide show
  1. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/PKG-INFO +1 -1
  2. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/__init__.py +1 -1
  3. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/agent_core.py +2 -0
  4. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/daemon.py +14 -1
  5. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli.egg-info/PKG-INFO +1 -1
  6. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/pyproject.toml +1 -1
  7. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/README.md +0 -0
  8. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/_build_config.py +0 -0
  9. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/_local_bind.py +0 -0
  10. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/autoupgrade.py +0 -0
  11. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/aws_evidence.py +0 -0
  12. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/aws_logs_evidence.py +0 -0
  13. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/code_review_rules.py +0 -0
  14. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/component_runtime.py +0 -0
  15. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/main.py +0 -0
  16. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/observability_contract.py +0 -0
  17. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/observability_evidence.py +0 -0
  18. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/ocr_adapter.py +0 -0
  19. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/py.typed +0 -0
  20. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/runtime_evidence.py +0 -0
  21. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/workspace_storage.py +0 -0
  22. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli/zcode_protocol.py +0 -0
  23. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli.egg-info/SOURCES.txt +0 -0
  24. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli.egg-info/dependency_links.txt +0 -0
  25. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli.egg-info/entry_points.txt +0 -0
  26. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli.egg-info/requires.txt +0 -0
  27. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/forgexa_cli.egg-info/top_level.txt +0 -0
  28. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/setup.cfg +0 -0
  29. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_auth_and_runtime_commands.py +0 -0
  30. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_autoupgrade.py +0 -0
  31. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_check_command.py +0 -0
  32. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_delivery_review_packaged.py +0 -0
  33. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_expiry_warnings_and_revoke.py +0 -0
  34. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_local_bind_commands.py +0 -0
  35. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_publish_script.py +0 -0
  36. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_runtime_credentials.py +0 -0
  37. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_session_credentials.py +0 -0
  38. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_silent_install.py +0 -0
  39. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_upgrade_observability.py +0 -0
  40. {forgexa_cli-1.107.2 → forgexa_cli-1.107.5}/tests/test_workspace_storage.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.107.2
3
+ Version: 1.107.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.107.2"
2
+ __version__ = "1.107.5"
@@ -3263,6 +3263,8 @@ def _parse_claude_output(stdout: str) -> dict:
3263
3263
  for data in reversed(parsed):
3264
3264
  if data.get("type") == "result":
3265
3265
  _extract_from(data)
3266
+ if data.get("subtype") == "error_max_turns":
3267
+ metrics["claude_result_subtype"] = "error_max_turns"
3266
3268
  break
3267
3269
 
3268
3270
  # ── 4. Fallback: scan all lines for any usage/cost data ──
@@ -1428,7 +1428,7 @@ except (ImportError, ModuleNotFoundError):
1428
1428
  # DAEMON_VERSION is the protocol/logic version of the daemon code.
1429
1429
  # Kept in sync with pyproject.toml version via bump-version.sh.
1430
1430
  # CLIENT_TYPE identifies which packaging/distribution this daemon runs in.
1431
- DAEMON_VERSION = "1.107.2"
1431
+ DAEMON_VERSION = "1.107.5"
1432
1432
 
1433
1433
 
1434
1434
  def _detect_client_type() -> str:
@@ -7941,6 +7941,19 @@ class ProcessManager:
7941
7941
 
7942
7942
  # Parse Claude JSON output for metrics
7943
7943
  metrics = self._parse_claude_output(stdout)
7944
+ if metrics.get("claude_result_subtype") == "error_max_turns":
7945
+ return TaskResult(
7946
+ status="failed",
7947
+ exit_code=returncode or 1,
7948
+ stdout=stdout[-settings.AGENT_MAX_OUTPUT_SIZE:],
7949
+ stderr=stderr[-10000:],
7950
+ error=(
7951
+ f"Claude reached its maximum number of turns ({max_turns}). "
7952
+ "Review the retained output and narrow the task before retrying."
7953
+ ),
7954
+ failure_code="agent_turn_limit",
7955
+ metrics=metrics,
7956
+ )
7944
7957
  structured_errors = self._extract_output_signals("\n".join(part for part in (stdout, stderr) if part))["error_messages"]
7945
7958
  structured_error_text = "; ".join(str(msg).strip() for msg in structured_errors if str(msg).strip())
7946
7959
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.107.2
3
+ Version: 1.107.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.107.2"
3
+ version = "1.107.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