forgexa-cli 1.108.1__tar.gz → 1.108.2__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.108.1 → forgexa_cli-1.108.2}/PKG-INFO +1 -1
  2. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/__init__.py +1 -1
  3. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/agent_core.py +81 -7
  4. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/daemon.py +1 -1
  5. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli.egg-info/PKG-INFO +1 -1
  6. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/pyproject.toml +1 -1
  7. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/README.md +0 -0
  8. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/_build_config.py +0 -0
  9. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/_local_bind.py +0 -0
  10. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/autoupgrade.py +0 -0
  11. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/aws_evidence.py +0 -0
  12. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/aws_logs_evidence.py +0 -0
  13. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/code_review_rules.py +0 -0
  14. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/component_runtime.py +0 -0
  15. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/main.py +0 -0
  16. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/observability_contract.py +0 -0
  17. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/observability_evidence.py +0 -0
  18. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/ocr_adapter.py +0 -0
  19. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/py.typed +0 -0
  20. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/runtime_evidence.py +0 -0
  21. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/workspace_storage.py +0 -0
  22. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli/zcode_protocol.py +0 -0
  23. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli.egg-info/SOURCES.txt +0 -0
  24. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli.egg-info/dependency_links.txt +0 -0
  25. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli.egg-info/entry_points.txt +0 -0
  26. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli.egg-info/requires.txt +0 -0
  27. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/forgexa_cli.egg-info/top_level.txt +0 -0
  28. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/setup.cfg +0 -0
  29. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_auth_and_runtime_commands.py +0 -0
  30. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_autoupgrade.py +0 -0
  31. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_check_command.py +0 -0
  32. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_delivery_review_packaged.py +0 -0
  33. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_expiry_warnings_and_revoke.py +0 -0
  34. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_local_bind_commands.py +0 -0
  35. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_publish_script.py +0 -0
  36. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_runtime_credentials.py +0 -0
  37. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_session_credentials.py +0 -0
  38. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_silent_install.py +0 -0
  39. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/tests/test_upgrade_observability.py +0 -0
  40. {forgexa_cli-1.108.1 → forgexa_cli-1.108.2}/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.108.1
3
+ Version: 1.108.2
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.108.1"
2
+ __version__ = "1.108.2"
@@ -5208,6 +5208,7 @@ def deepseek_harness_profile_lock_path(workspace_path: str | Path) -> Path:
5208
5208
 
5209
5209
  def deepseek_harness_overlay(
5210
5210
  *, cwd: Path, credentials_path: Path, provider: str, model: str, read_only: bool = False,
5211
+ project_review: bool = False,
5211
5212
  ) -> list[dict]:
5212
5213
  if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}", model):
5213
5214
  raise ValueError("Invalid DeepSeek Harness model ID")
@@ -5251,6 +5252,18 @@ def deepseek_harness_overlay(
5251
5252
  "reasoningEffort": "high", "maxTokens": 32768,
5252
5253
  }},
5253
5254
  ])
5255
+ if project_review:
5256
+ review_disabled = {
5257
+ "plan-mode", "skill-filesystem", "tool-bash", "tool-fs", "tool-fs-search",
5258
+ "tool-goal", "tool-jobs", "tool-plugin-manager", "tool-pwsh", "tool-ralph",
5259
+ "tool-skill", "tool-subagent", "tool-subagent-control", "tool-subagent-fork",
5260
+ "tool-subagent-list-agents", "tool-todo", "tool-web", "tool-workflow",
5261
+ }
5262
+ for row in rows:
5263
+ if row["id"] in review_disabled:
5264
+ row["disabled"] = True
5265
+ existing = {row["id"] for row in rows}
5266
+ rows.extend({"id": name, "disabled": True} for name in sorted(review_disabled - existing))
5254
5267
  return rows
5255
5268
 
5256
5269
 
@@ -5323,16 +5336,41 @@ def deepseek_harness_sandbox_command(
5323
5336
 
5324
5337
  @contextmanager
5325
5338
  def deepseek_harness_runtime(
5326
- binary: str, workspace_path: str | Path, *, model: str | None = None,
5327
- session_id: str | None = None, read_only: bool = False, delivery_review: bool = False,
5339
+ binary: str,
5340
+ workspace_path: str | Path,
5341
+ *,
5342
+ model: str | None = None,
5343
+ session_id: str | None = None,
5344
+ read_only: bool = False,
5345
+ delivery_review: bool = False,
5346
+ review_home: Path | None = None,
5347
+ review_source: Path | None = None,
5348
+ review_read_paths: list[Path] | None = None,
5328
5349
  ):
5329
5350
  binary = os.path.abspath(shutil.which(binary) or os.path.expanduser(binary))
5330
5351
  cwd = Path(workspace_path).expanduser().resolve()
5331
- home = deepseek_harness_home(cwd)
5352
+ if review_home is not None and (
5353
+ sys.platform != "darwin"
5354
+ or not read_only
5355
+ or not delivery_review
5356
+ or session_id
5357
+ or review_source is None
5358
+ ):
5359
+ raise RuntimeError(
5360
+ "DeepSeek project review requires an isolated, non-resumable macOS session"
5361
+ )
5362
+ home = (
5363
+ review_home.resolve() if review_home is not None else deepseek_harness_home(cwd)
5364
+ )
5332
5365
  home.mkdir(parents=True, exist_ok=True, mode=0o700)
5333
5366
  if sys.platform != "win32":
5334
5367
  home.chmod(0o700)
5335
- lock = acquire_file_lock(deepseek_harness_profile_lock_path(cwd))
5368
+ lock_path = (
5369
+ home / "profile.lock"
5370
+ if review_home is not None
5371
+ else deepseek_harness_profile_lock_path(cwd)
5372
+ )
5373
+ lock = acquire_file_lock(lock_path)
5336
5374
  if lock is None:
5337
5375
  raise RuntimeError("DeepSeek Harness profile is busy with another local turn")
5338
5376
  try:
@@ -5363,11 +5401,13 @@ def deepseek_harness_runtime(
5363
5401
  source_home = Path(os.environ.get("DSH_HOME", str(Path.home() / ".dsh"))).expanduser().resolve()
5364
5402
  credentials = Path(os.environ.get("FACTORY_DEEPSEEK_HARNESS_CREDENTIALS", str(source_home / ".credentials.yaml"))).expanduser().resolve()
5365
5403
  configuration = deepseek_harness_configuration(binary, credentials, env)
5404
+ if review_home is not None:
5405
+ env.update(HOME=str(home), USERPROFILE=str(home), OPENSSL_CONF=os.devnull)
5366
5406
  selected_model = model or os.environ.get("FACTORY_DEEPSEEK_HARNESS_MODEL", "").strip() or "deepseek-flash"
5367
5407
  overlay = temporary_root / "run.patch.json"
5368
5408
  composition = deepseek_harness_overlay(
5369
5409
  cwd=cwd, credentials_path=credentials, provider=configuration["provider"],
5370
- model=selected_model, read_only=read_only,
5410
+ model=selected_model, read_only=read_only, project_review=review_home is not None,
5371
5411
  )
5372
5412
  identity = hashlib.sha256(json.dumps({"build": deepseek_harness_build_info(binary)["fingerprint"], "overlay": composition}, sort_keys=True).encode()).hexdigest()
5373
5413
  env["FORGEXA_DEEPSEEK_HARNESS_COMPOSITION"] = identity
@@ -5377,6 +5417,36 @@ def deepseek_harness_runtime(
5377
5417
  raise RuntimeError("Native Harness session configuration changed or is not owned by Forgexa; start a new session")
5378
5418
  overlay.write_text(json.dumps(composition), encoding="utf-8")
5379
5419
  command = build_deepseek_harness_command(binary, overlay_path=overlay, session_id=session_id)
5420
+ if review_home is not None:
5421
+ paths = list(review_read_paths or [])
5422
+ if credentials.is_file():
5423
+ paths.append(credentials)
5424
+ source = review_source.resolve()
5425
+ executable = Path(binary)
5426
+ paths_to_check = [
5427
+ *paths,
5428
+ executable.parent.resolve(),
5429
+ executable.resolve().parent,
5430
+ ]
5431
+ if any(
5432
+ path == source or path in source.parents or source in path.parents
5433
+ for path in paths_to_check
5434
+ ):
5435
+ raise RuntimeError(
5436
+ "DeepSeek review runtime overlaps the original repository"
5437
+ )
5438
+ yield (
5439
+ delivery_review_sandbox_command(
5440
+ command,
5441
+ cwd,
5442
+ home,
5443
+ writable=False,
5444
+ read_paths=paths,
5445
+ restrict_global_reads=True,
5446
+ ),
5447
+ env,
5448
+ )
5449
+ return
5380
5450
  read_paths = []
5381
5451
  if delivery_review:
5382
5452
  executable = Path(binary)
@@ -5408,6 +5478,8 @@ async def run_deepseek_harness(
5408
5478
  cancel_requested: Any = None,
5409
5479
  component_lease: Any = None,
5410
5480
  read_only: bool = False, delivery_review: bool = False,
5481
+ review_home: Path | None = None, review_source: Path | None = None,
5482
+ review_read_paths: list[Path] | None = None,
5411
5483
  ) -> dict:
5412
5484
  """Execute and validate a supervised one-shot process with bounded output."""
5413
5485
  process = None
@@ -5421,7 +5493,8 @@ async def run_deepseek_harness(
5421
5493
  stderr_text = ""
5422
5494
  runtime = deepseek_harness_runtime(
5423
5495
  binary, workspace_path, model=model, session_id=session_id,
5424
- read_only=read_only, delivery_review=delivery_review,
5496
+ read_only=read_only, delivery_review=delivery_review, review_home=review_home,
5497
+ review_source=review_source, review_read_paths=review_read_paths,
5425
5498
  )
5426
5499
  entered = False
5427
5500
  try:
@@ -5490,7 +5563,8 @@ async def run_deepseek_harness(
5490
5563
  if state.error:
5491
5564
  _kill_proc(process)
5492
5565
  break
5493
- if event is not None and event.get("type") == "session" and env.get("FORGEXA_DEEPSEEK_HARNESS_COMPOSITION"):
5566
+ if (review_home is None and event is not None and event.get("type") == "session"
5567
+ and env.get("FORGEXA_DEEPSEEK_HARNESS_COMPOSITION")):
5494
5568
  binding = deepseek_harness_home(workspace_path) / "forgexa-session-bindings" / (hashlib.sha256(state.session_id.encode()).hexdigest() + ".json")
5495
5569
  with tempfile.NamedTemporaryFile("w", encoding="utf-8", dir=binding.parent, delete=False) as temporary:
5496
5570
  json.dump({"composition": env["FORGEXA_DEEPSEEK_HARNESS_COMPOSITION"]}, temporary)
@@ -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.108.1"
1431
+ DAEMON_VERSION = "1.108.2"
1432
1432
 
1433
1433
 
1434
1434
  def _detect_client_type() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.108.1
3
+ Version: 1.108.2
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.108.1"
3
+ version = "1.108.2"
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