forgexa-cli 1.110.0__tar.gz → 1.110.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.
Files changed (40) hide show
  1. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/PKG-INFO +1 -1
  2. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/__init__.py +1 -1
  3. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/agent_core.py +4 -0
  4. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/daemon.py +1 -1
  5. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/ocr_adapter.py +9 -2
  6. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli.egg-info/PKG-INFO +1 -1
  7. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/pyproject.toml +1 -1
  8. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/README.md +0 -0
  9. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/_build_config.py +0 -0
  10. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/_local_bind.py +0 -0
  11. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/autoupgrade.py +0 -0
  12. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/aws_evidence.py +0 -0
  13. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/aws_logs_evidence.py +0 -0
  14. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/code_review_rules.py +0 -0
  15. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/component_runtime.py +0 -0
  16. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/main.py +0 -0
  17. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/observability_contract.py +0 -0
  18. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/observability_evidence.py +0 -0
  19. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/py.typed +0 -0
  20. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/runtime_evidence.py +0 -0
  21. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/workspace_storage.py +0 -0
  22. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli/zcode_protocol.py +0 -0
  23. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli.egg-info/SOURCES.txt +0 -0
  24. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli.egg-info/dependency_links.txt +0 -0
  25. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli.egg-info/entry_points.txt +0 -0
  26. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli.egg-info/requires.txt +0 -0
  27. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/forgexa_cli.egg-info/top_level.txt +0 -0
  28. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/setup.cfg +0 -0
  29. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_auth_and_runtime_commands.py +0 -0
  30. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_autoupgrade.py +0 -0
  31. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_check_command.py +0 -0
  32. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_delivery_review_packaged.py +0 -0
  33. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_expiry_warnings_and_revoke.py +0 -0
  34. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_local_bind_commands.py +0 -0
  35. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_publish_script.py +0 -0
  36. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_runtime_credentials.py +0 -0
  37. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_session_credentials.py +0 -0
  38. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_silent_install.py +0 -0
  39. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/tests/test_upgrade_observability.py +0 -0
  40. {forgexa_cli-1.110.0 → forgexa_cli-1.110.1}/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.110.0
3
+ Version: 1.110.1
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.110.0"
2
+ __version__ = "1.110.1"
@@ -6882,8 +6882,12 @@ def copilot_base_env(env: dict[str, str], *, copilot_home: str | Path) -> dict[s
6882
6882
  TERM=dumb suppresses TTY-detection (copilot suspends when it can't
6883
6883
  acquire a pseudo-terminal); COPILOT_HOME points at the prepared home
6884
6884
  (see prepare_copilot_home).
6885
+ A classic PAT must not shadow a supported token or the saved CLI login.
6885
6886
  """
6886
6887
  env = dict(env)
6888
+ for key in COPILOT_TOKEN_ENV_VARS:
6889
+ if env.get(key, "").strip().startswith("ghp_"):
6890
+ env.pop(key)
6887
6891
  env["TERM"] = "dumb" # suppress TTY-detection that suspends the process
6888
6892
  env["COPILOT_HOME"] = str(copilot_home)
6889
6893
  env.setdefault("TOKIO_WORKER_THREADS", "2")
@@ -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.110.0"
1431
+ DAEMON_VERSION = "1.110.1"
1432
1432
 
1433
1433
 
1434
1434
  def _detect_client_type() -> str:
@@ -41,6 +41,7 @@ else:
41
41
  OCR_COMPONENT_ID = "forgexa.ocr"
42
42
  OCR_OUTPUT_LIMIT = 1024 * 1024
43
43
  OCR_FILE_LIMIT = 5000
44
+ OCR_REVIEW_DEFAULT_MAX_FILES = 200
44
45
  OCR_REVIEW_SANDBOX = "darwin-git-objects-v1"
45
46
 
46
47
 
@@ -135,6 +136,8 @@ def validate_ocr_review_evidence(
135
136
  head_sha: str,
136
137
  merge_base_sha: str,
137
138
  changed_files: list[str],
139
+ *,
140
+ max_changed_files: int = OCR_REVIEW_DEFAULT_MAX_FILES,
138
141
  ) -> dict[str, Any]:
139
142
  if not isinstance(evidence, dict) or set(evidence) != {
140
143
  "identity",
@@ -156,7 +159,7 @@ def validate_ocr_review_evidence(
156
159
  if (
157
160
  not isinstance(reviewed, list)
158
161
  or not isinstance(excluded, list)
159
- or len(reviewed) + len(excluded) > 200
162
+ or len(reviewed) + len(excluded) > min(max_changed_files, OCR_FILE_LIMIT)
160
163
  ):
161
164
  raise OcrAdapterError("ocr_evidence_invalid")
162
165
  paths = [_path(path) for path in reviewed]
@@ -579,6 +582,7 @@ async def run_ocr_range_preview(
579
582
  expected_external_instance: str | None = None,
580
583
  expected_identity: dict | None = None,
581
584
  selection_revision: int | None = None,
585
+ max_changed_files: int = OCR_REVIEW_DEFAULT_MAX_FILES,
582
586
  timeout: float = 30,
583
587
  on_identity=None,
584
588
  ) -> dict[str, Any]:
@@ -595,7 +599,7 @@ async def run_ocr_range_preview(
595
599
  raise OcrAdapterError("ocr_request_invalid")
596
600
  if (
597
601
  not isinstance(changed_files, list)
598
- or len(changed_files) > 200
602
+ or len(changed_files) > min(max_changed_files, OCR_FILE_LIMIT)
599
603
  or len(set(changed_files)) != len(changed_files)
600
604
  ):
601
605
  raise OcrAdapterError("ocr_request_invalid")
@@ -856,6 +860,7 @@ async def run_selected_ocr_range_preview(
856
860
  changed_files: list[str],
857
861
  *,
858
862
  expected_identity: dict | None = None,
863
+ max_changed_files: int = OCR_REVIEW_DEFAULT_MAX_FILES,
859
864
  timeout: float = 30,
860
865
  on_identity=None,
861
866
  ) -> dict[str, Any]:
@@ -892,6 +897,7 @@ async def run_selected_ocr_range_preview(
892
897
  external_executable=Path(executable),
893
898
  expected_identity=expected_identity,
894
899
  selection_revision=revision,
900
+ max_changed_files=max_changed_files,
895
901
  timeout=timeout,
896
902
  on_identity=on_identity,
897
903
  )
@@ -911,6 +917,7 @@ async def run_selected_ocr_range_preview(
911
917
  merge_base_sha,
912
918
  changed_files,
913
919
  expected_identity=expected_identity,
920
+ max_changed_files=max_changed_files,
914
921
  timeout=timeout,
915
922
  on_identity=on_identity,
916
923
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.110.0
3
+ Version: 1.110.1
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.110.0"
3
+ version = "1.110.1"
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