forgexa-cli 1.104.4__tar.gz → 1.105.1__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.104.4 → forgexa_cli-1.105.1}/PKG-INFO +1 -1
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/__init__.py +1 -1
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/agent_core.py +14 -2
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/daemon.py +22 -2
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli.egg-info/PKG-INFO +1 -1
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/pyproject.toml +1 -1
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/README.md +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/_build_config.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/_local_bind.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/autoupgrade.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/aws_evidence.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/aws_logs_evidence.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/code_review_rules.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/component_runtime.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/main.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/observability_contract.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/observability_evidence.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/ocr_adapter.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/py.typed +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/runtime_evidence.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/workspace_storage.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli/zcode_protocol.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli.egg-info/SOURCES.txt +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli.egg-info/dependency_links.txt +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli.egg-info/entry_points.txt +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli.egg-info/requires.txt +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/forgexa_cli.egg-info/top_level.txt +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/setup.cfg +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_auth_and_runtime_commands.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_autoupgrade.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_check_command.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_delivery_review_packaged.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_expiry_warnings_and_revoke.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_local_bind_commands.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_publish_script.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_runtime_credentials.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_session_credentials.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_silent_install.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/tests/test_upgrade_observability.py +0 -0
- {forgexa_cli-1.104.4 → forgexa_cli-1.105.1}/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.105.1"
|
|
@@ -6408,6 +6408,18 @@ def copilot_base_env(env: dict[str, str], *, copilot_home: str | Path) -> dict[s
|
|
|
6408
6408
|
|
|
6409
6409
|
|
|
6410
6410
|
COPILOT_TOKEN_ENV_VARS = ("COPILOT_GITHUB_TOKEN", "GH_TOKEN", "GITHUB_TOKEN")
|
|
6411
|
+
# Writer bindings contain filesystem identities, not portable configuration.
|
|
6412
|
+
COPILOT_HOME_RUNTIME_ENTRIES = frozenset({
|
|
6413
|
+
"session-state", "logs", ".mcp-writer.lock", ".mcp-writer.binding",
|
|
6414
|
+
})
|
|
6415
|
+
|
|
6416
|
+
|
|
6417
|
+
def is_copilot_shared_writer_identity_error(*messages: str | None) -> bool:
|
|
6418
|
+
"""Recognize rejection of a directory-bound Copilot writer identity."""
|
|
6419
|
+
return any(
|
|
6420
|
+
"the shared writer lock or its directory changed" in str(message or "").lower()
|
|
6421
|
+
for message in messages
|
|
6422
|
+
)
|
|
6411
6423
|
|
|
6412
6424
|
|
|
6413
6425
|
def copilot_interactive_home() -> Path:
|
|
@@ -6902,7 +6914,7 @@ def prepare_copilot_home() -> str:
|
|
|
6902
6914
|
if not migration_marker.exists():
|
|
6903
6915
|
cleanup_succeeded = True
|
|
6904
6916
|
for target_child in list(target_root.iterdir()):
|
|
6905
|
-
if target_child.name in
|
|
6917
|
+
if target_child.name in COPILOT_HOME_RUNTIME_ENTRIES:
|
|
6906
6918
|
continue
|
|
6907
6919
|
if target_child.name not in source_names:
|
|
6908
6920
|
try:
|
|
@@ -6937,7 +6949,7 @@ def prepare_copilot_home() -> str:
|
|
|
6937
6949
|
)
|
|
6938
6950
|
source_config_synced = False
|
|
6939
6951
|
for child in source_root.iterdir():
|
|
6940
|
-
if child.name in
|
|
6952
|
+
if child.name in COPILOT_HOME_RUNTIME_ENTRIES:
|
|
6941
6953
|
continue
|
|
6942
6954
|
|
|
6943
6955
|
dest = target_root / child.name
|
|
@@ -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.
|
|
1431
|
+
DAEMON_VERSION = "1.105.1"
|
|
1432
1432
|
|
|
1433
1433
|
|
|
1434
1434
|
def _detect_client_type() -> str:
|
|
@@ -9280,7 +9280,7 @@ class ProcessManager:
|
|
|
9280
9280
|
_isolated_copilot_home = tempfile.mkdtemp(prefix=f"copilot-{task_id[:8]}-")
|
|
9281
9281
|
try:
|
|
9282
9282
|
for child in Path(_master_copilot_home).iterdir():
|
|
9283
|
-
if child.name in
|
|
9283
|
+
if child.name in agent_core.COPILOT_HOME_RUNTIME_ENTRIES:
|
|
9284
9284
|
continue
|
|
9285
9285
|
dest = Path(_isolated_copilot_home) / child.name
|
|
9286
9286
|
try:
|
|
@@ -9488,6 +9488,26 @@ class ProcessManager:
|
|
|
9488
9488
|
break
|
|
9489
9489
|
effective_rc = copilot_exit if copilot_exit is not None else returncode
|
|
9490
9490
|
|
|
9491
|
+
if (
|
|
9492
|
+
agent_core.is_copilot_shared_writer_identity_error(stderr, *structured_errors)
|
|
9493
|
+
and not (copilot_exit == 0 and returncode == 0)
|
|
9494
|
+
):
|
|
9495
|
+
detail = (
|
|
9496
|
+
"Copilot could not validate its shared writer state: "
|
|
9497
|
+
"The shared writer lock or its directory changed. "
|
|
9498
|
+
"Update and restart the executing Forgexa daemon so new task homes "
|
|
9499
|
+
"exclude foreign .mcp-writer.lock and .mcp-writer.binding files. "
|
|
9500
|
+
"Do not delete live locks or retry unchanged state."
|
|
9501
|
+
)
|
|
9502
|
+
logger.error(
|
|
9503
|
+
"Copilot task %s failed state identity validation: %s", task_id, detail,
|
|
9504
|
+
)
|
|
9505
|
+
return TaskResult(
|
|
9506
|
+
status="failed", exit_code=effective_rc or 1,
|
|
9507
|
+
stdout=stdout[-settings.AGENT_MAX_OUTPUT_SIZE:], stderr=stderr[-10000:],
|
|
9508
|
+
error=detail, failure_code="copilot_state_identity_changed", metrics=metrics,
|
|
9509
|
+
)
|
|
9510
|
+
|
|
9491
9511
|
builtin_mcp_error = (
|
|
9492
9512
|
self._copilot_builtin_mcp_failure(stdout)
|
|
9493
9513
|
if not disable_builtin_mcps
|
|
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
|