forgexa-cli 1.99.3__tar.gz → 1.100.0__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.
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/PKG-INFO +1 -1
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/__init__.py +1 -1
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/daemon.py +15 -36
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli.egg-info/PKG-INFO +1 -1
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/pyproject.toml +1 -1
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/README.md +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/_build_config.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/_local_bind.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/agent_core.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/autoupgrade.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/aws_evidence.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/aws_logs_evidence.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/component_runtime.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/main.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/observability_contract.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/observability_evidence.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/ocr_adapter.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/py.typed +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/runtime_evidence.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/workspace_storage.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli/zcode_protocol.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli.egg-info/SOURCES.txt +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli.egg-info/dependency_links.txt +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli.egg-info/entry_points.txt +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli.egg-info/requires.txt +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/forgexa_cli.egg-info/top_level.txt +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/setup.cfg +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_auth_and_runtime_commands.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_autoupgrade.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_check_command.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_expiry_warnings_and_revoke.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_local_bind_commands.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_publish_script.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_runtime_credentials.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_session_credentials.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_silent_install.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_upgrade_observability.py +0 -0
- {forgexa_cli-1.99.3 → forgexa_cli-1.100.0}/tests/test_workspace_storage.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""forgexa-cli — Forgexa command-line client."""
|
|
2
|
-
__version__ = "1.
|
|
2
|
+
__version__ = "1.100.0"
|
|
@@ -1412,7 +1412,7 @@ except (ImportError, ModuleNotFoundError):
|
|
|
1412
1412
|
# DAEMON_VERSION is the protocol/logic version of the daemon code.
|
|
1413
1413
|
# Kept in sync with pyproject.toml version via bump-version.sh.
|
|
1414
1414
|
# CLIENT_TYPE identifies which packaging/distribution this daemon runs in.
|
|
1415
|
-
DAEMON_VERSION = "1.
|
|
1415
|
+
DAEMON_VERSION = "1.100.0"
|
|
1416
1416
|
|
|
1417
1417
|
|
|
1418
1418
|
def _detect_client_type() -> str:
|
|
@@ -3855,7 +3855,7 @@ class WorkspaceManager:
|
|
|
3855
3855
|
output = await self._git(
|
|
3856
3856
|
"ls-remote", repo_url, ref,
|
|
3857
3857
|
project_key=project_key,
|
|
3858
|
-
timeout=
|
|
3858
|
+
timeout=60,
|
|
3859
3859
|
)
|
|
3860
3860
|
if not output.strip():
|
|
3861
3861
|
# `git ls-remote` exits 0 even when the ref pattern matches no
|
|
@@ -3882,7 +3882,7 @@ class WorkspaceManager:
|
|
|
3882
3882
|
# Classify into failure_class using error markers (not free-text parsing)
|
|
3883
3883
|
if self._is_retryable_git_transport_error(exc):
|
|
3884
3884
|
failure_class = "network_transient"
|
|
3885
|
-
remediation = "Check network
|
|
3885
|
+
remediation = "Check this runtime's VPN/network, DNS, and firewall access to the repository host and port"
|
|
3886
3886
|
elif any(m in err_lower for m in (
|
|
3887
3887
|
"permission denied", "authentication failed", "access denied",
|
|
3888
3888
|
"could not read from remote", "fatal: could not read",
|
|
@@ -6397,8 +6397,10 @@ class WorkspaceManager:
|
|
|
6397
6397
|
_known_hosts_null = str(_kh_dir / "known_hosts")
|
|
6398
6398
|
env = {
|
|
6399
6399
|
**os.environ,
|
|
6400
|
+
"GIT_TERMINAL_PROMPT": "0",
|
|
6400
6401
|
"GIT_SSH_COMMAND": (
|
|
6401
6402
|
f'ssh -i "{key_path_safe}"'
|
|
6403
|
+
" -o BatchMode=yes"
|
|
6402
6404
|
f" -o StrictHostKeyChecking=accept-new"
|
|
6403
6405
|
f" -o UserKnownHostsFile={_known_hosts_null}"
|
|
6404
6406
|
f" -o IdentitiesOnly=yes"
|
|
@@ -6476,50 +6478,27 @@ class WorkspaceManager:
|
|
|
6476
6478
|
env=env,
|
|
6477
6479
|
**_agent_process_group_kwargs(),
|
|
6478
6480
|
)
|
|
6481
|
+
communication = asyncio.create_task(proc.communicate())
|
|
6479
6482
|
try:
|
|
6480
|
-
stdout, stderr = await asyncio.wait_for(
|
|
6483
|
+
stdout, stderr = await asyncio.wait_for(asyncio.shield(communication), timeout=timeout)
|
|
6481
6484
|
except asyncio.CancelledError:
|
|
6482
6485
|
_kill_proc(proc)
|
|
6483
6486
|
try:
|
|
6484
|
-
await asyncio.shield(asyncio.wait_for(
|
|
6487
|
+
await asyncio.shield(asyncio.wait_for(communication, timeout=5.0))
|
|
6485
6488
|
except Exception:
|
|
6486
6489
|
pass
|
|
6487
6490
|
raise
|
|
6488
6491
|
except (TimeoutError, asyncio.TimeoutError):
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
# A plain proc.kill() only kills the direct child (git); the
|
|
6492
|
-
# ssh grandchild becomes orphaned, keeps the stderr pipe open,
|
|
6493
|
-
# and proc.communicate() can never return EOF.
|
|
6494
|
-
try:
|
|
6495
|
-
if _MANAGED_WSL_POLICY is not None:
|
|
6496
|
-
_kill_proc(proc)
|
|
6497
|
-
elif sys.platform != "win32":
|
|
6498
|
-
import signal as _signal
|
|
6499
|
-
try:
|
|
6500
|
-
os.killpg(os.getpgid(proc.pid), _signal.SIGKILL)
|
|
6501
|
-
except (ProcessLookupError, PermissionError, OSError):
|
|
6502
|
-
pass
|
|
6503
|
-
else:
|
|
6504
|
-
# Windows: taskkill /F /T kills the process tree
|
|
6505
|
-
import subprocess as _subprocess
|
|
6506
|
-
_subprocess.run(
|
|
6507
|
-
["taskkill", "/F", "/T", "/PID", str(proc.pid)],
|
|
6508
|
-
capture_output=True,
|
|
6509
|
-
**_agent_process_group_kwargs(),
|
|
6510
|
-
)
|
|
6511
|
-
except Exception:
|
|
6512
|
-
pass
|
|
6513
|
-
finally:
|
|
6514
|
-
try:
|
|
6515
|
-
proc.kill()
|
|
6516
|
-
except Exception:
|
|
6517
|
-
pass
|
|
6492
|
+
_kill_proc(proc)
|
|
6493
|
+
error_message = self._summarize_git_error(f"git {' '.join(args)} timed out after {timeout}s")
|
|
6518
6494
|
try:
|
|
6519
|
-
await asyncio.wait_for(
|
|
6495
|
+
_, stderr = await asyncio.wait_for(communication, timeout=5.0)
|
|
6496
|
+
diagnostic = self._summarize_git_error(stderr.decode(errors="replace"), tail=True)
|
|
6497
|
+
if diagnostic.strip():
|
|
6498
|
+
error_message += f"\n{diagnostic}"
|
|
6520
6499
|
except Exception:
|
|
6521
6500
|
pass
|
|
6522
|
-
raise RuntimeError(
|
|
6501
|
+
raise RuntimeError(error_message) from None
|
|
6523
6502
|
finally:
|
|
6524
6503
|
# Clean up temp SSH key file if created
|
|
6525
6504
|
if env and "GIT_SSH_COMMAND" in env:
|
|
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
|
|
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
|