forgexa-cli 1.107.1__tar.gz → 1.107.3__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.107.1 → forgexa_cli-1.107.3}/PKG-INFO +1 -1
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/__init__.py +1 -1
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/agent_core.py +28 -10
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/daemon.py +6 -2
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli.egg-info/PKG-INFO +1 -1
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/pyproject.toml +1 -1
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/README.md +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/_build_config.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/_local_bind.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/autoupgrade.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/aws_evidence.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/aws_logs_evidence.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/code_review_rules.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/component_runtime.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/main.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/observability_contract.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/observability_evidence.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/ocr_adapter.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/py.typed +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/runtime_evidence.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/workspace_storage.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli/zcode_protocol.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli.egg-info/SOURCES.txt +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli.egg-info/dependency_links.txt +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli.egg-info/entry_points.txt +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli.egg-info/requires.txt +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/forgexa_cli.egg-info/top_level.txt +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/setup.cfg +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_auth_and_runtime_commands.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_autoupgrade.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_check_command.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_delivery_review_packaged.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_expiry_warnings_and_revoke.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_local_bind_commands.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_publish_script.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_runtime_credentials.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_session_credentials.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_silent_install.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_upgrade_observability.py +0 -0
- {forgexa_cli-1.107.1 → forgexa_cli-1.107.3}/tests/test_workspace_storage.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""forgexa-cli — Forgexa command-line client."""
|
|
2
|
-
__version__ = "1.107.
|
|
2
|
+
__version__ = "1.107.3"
|
|
@@ -1300,8 +1300,8 @@ class DiscoveredAgent:
|
|
|
1300
1300
|
selection_revision: int | None = None
|
|
1301
1301
|
|
|
1302
1302
|
|
|
1303
|
-
def
|
|
1304
|
-
"""Pair
|
|
1303
|
+
def _wsl_npm_agent_node(path: str) -> str | None:
|
|
1304
|
+
"""Pair supported WSL npm agents with their installation's executable Node."""
|
|
1305
1305
|
if sys.platform != "linux" or not os.environ.get("WSL_DISTRO_NAME"):
|
|
1306
1306
|
return None
|
|
1307
1307
|
try:
|
|
@@ -1315,7 +1315,9 @@ def _wsl_copilot_node(path: str) -> str | None:
|
|
|
1315
1315
|
return None
|
|
1316
1316
|
for parent in resolved.parents:
|
|
1317
1317
|
if parent.name == "node_modules" and parent.parent.name == "lib":
|
|
1318
|
-
if resolved.relative_to(parent).parts[:2]
|
|
1318
|
+
if resolved.relative_to(parent).parts[:2] not in {
|
|
1319
|
+
("@github", "copilot"), ("@anthropic-ai", "claude-code"),
|
|
1320
|
+
}:
|
|
1319
1321
|
return None
|
|
1320
1322
|
node = parent.parent.parent / "bin" / "node"
|
|
1321
1323
|
if node.is_file() and os.access(node, os.X_OK):
|
|
@@ -1329,9 +1331,9 @@ def _wsl_copilot_node(path: str) -> str | None:
|
|
|
1329
1331
|
def _prepare_agent_command(
|
|
1330
1332
|
command: list[str], *, preserve_argv: bool = True,
|
|
1331
1333
|
) -> list[str]:
|
|
1332
|
-
"""Preserve argv with target-local
|
|
1334
|
+
"""Preserve argv with target-local npm agent Node or Windows script shims."""
|
|
1333
1335
|
if command:
|
|
1334
|
-
node =
|
|
1336
|
+
node = _wsl_npm_agent_node(command[0])
|
|
1335
1337
|
if node is not None:
|
|
1336
1338
|
issue = AgentDiscovery._wsl_execution_issue(command[0])
|
|
1337
1339
|
if issue:
|
|
@@ -2254,12 +2256,24 @@ class AgentDiscovery:
|
|
|
2254
2256
|
# not this host's cwd. Refuse rather than check another tool.
|
|
2255
2257
|
if not search_path or any(not Path(entry).is_absolute() for entry in search_path.split(os.pathsep)):
|
|
2256
2258
|
return issue
|
|
2257
|
-
interpreter =
|
|
2259
|
+
interpreter = _wsl_npm_agent_node(candidate) or shutil.which(arguments[0], path=search_path)
|
|
2258
2260
|
if not interpreter:
|
|
2259
2261
|
return issue
|
|
2260
2262
|
candidate = interpreter
|
|
2261
2263
|
return issue
|
|
2262
2264
|
|
|
2265
|
+
@staticmethod
|
|
2266
|
+
def _resolve_wsl_candidate(candidate: str, automatic_command: str | None) -> tuple[str, str | None]:
|
|
2267
|
+
issue = AgentDiscovery._wsl_execution_issue(candidate)
|
|
2268
|
+
if issue and automatic_command:
|
|
2269
|
+
for directory in os.get_exec_path():
|
|
2270
|
+
if not Path(directory).is_absolute():
|
|
2271
|
+
continue
|
|
2272
|
+
alternative = shutil.which(automatic_command, path=directory)
|
|
2273
|
+
if alternative and alternative != candidate and not AgentDiscovery._wsl_execution_issue(alternative):
|
|
2274
|
+
return alternative, None
|
|
2275
|
+
return candidate, issue
|
|
2276
|
+
|
|
2263
2277
|
async def discover(self) -> list[DiscoveredAgent]:
|
|
2264
2278
|
self._expand_path()
|
|
2265
2279
|
# Probe bwrap support once at discovery time and log a clear warning
|
|
@@ -2296,14 +2310,18 @@ class AgentDiscovery:
|
|
|
2296
2310
|
cmd = managed.argv_prefix[-1] if managed is not None else custom_path or spec["commands"][0]
|
|
2297
2311
|
resolved = shutil.which(cmd)
|
|
2298
2312
|
if resolved:
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2313
|
+
resolved, issue = await asyncio.to_thread(
|
|
2314
|
+
self._resolve_wsl_candidate, resolved,
|
|
2315
|
+
cmd if managed is None and not custom_path else None,
|
|
2316
|
+
)
|
|
2302
2317
|
if issue:
|
|
2303
2318
|
logger.warning(
|
|
2304
|
-
"Agent %s has an unavailable Linux-side WSL toolchain; skipping",
|
|
2319
|
+
"Agent %s has an unavailable Linux-side WSL toolchain at %s; skipping: %s",
|
|
2320
|
+
agent_id, resolved, issue,
|
|
2305
2321
|
)
|
|
2306
2322
|
return None
|
|
2323
|
+
if managed is None:
|
|
2324
|
+
await asyncio.to_thread(component_runtime.validate_external_executable, resolved)
|
|
2307
2325
|
version = (
|
|
2308
2326
|
await self._get_version(spec["detect"], resolved)
|
|
2309
2327
|
if managed is None
|
|
@@ -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.
|
|
1431
|
+
DAEMON_VERSION = "1.107.3"
|
|
1432
1432
|
|
|
1433
1433
|
|
|
1434
1434
|
def _detect_client_type() -> str:
|
|
@@ -14207,7 +14207,11 @@ class RuntimeDaemon:
|
|
|
14207
14207
|
|
|
14208
14208
|
# 2. Prepare workspace
|
|
14209
14209
|
authorized = await reporter.report_progress(
|
|
14210
|
-
task.task_id, 5, "preparing_workspace",
|
|
14210
|
+
task.task_id, 5, "preparing_workspace",
|
|
14211
|
+
output_lines=None if is_local_bind else [
|
|
14212
|
+
"[daemon] Preparing Git workspace (clone, fetch, or checkout). The agent has not started yet.",
|
|
14213
|
+
],
|
|
14214
|
+
execution_attempt_id=task.execution_attempt_id,
|
|
14211
14215
|
)
|
|
14212
14216
|
if is_local_bind and not authorized:
|
|
14213
14217
|
await report_task_complete(TaskResult(
|
|
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
|
|
File without changes
|