forgexa-cli 1.108.1__tar.gz → 1.109.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.108.1 → forgexa_cli-1.109.1}/PKG-INFO +1 -1
  2. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/__init__.py +1 -1
  3. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/agent_core.py +247 -26
  4. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/daemon.py +1 -1
  5. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/zcode_protocol.py +3 -0
  6. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli.egg-info/PKG-INFO +1 -1
  7. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/pyproject.toml +1 -1
  8. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/README.md +0 -0
  9. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/_build_config.py +0 -0
  10. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/_local_bind.py +0 -0
  11. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/autoupgrade.py +0 -0
  12. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/aws_evidence.py +0 -0
  13. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/aws_logs_evidence.py +0 -0
  14. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/code_review_rules.py +0 -0
  15. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/component_runtime.py +0 -0
  16. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/main.py +0 -0
  17. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/observability_contract.py +0 -0
  18. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/observability_evidence.py +0 -0
  19. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/ocr_adapter.py +0 -0
  20. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/py.typed +0 -0
  21. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/runtime_evidence.py +0 -0
  22. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli/workspace_storage.py +0 -0
  23. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli.egg-info/SOURCES.txt +0 -0
  24. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli.egg-info/dependency_links.txt +0 -0
  25. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli.egg-info/entry_points.txt +0 -0
  26. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli.egg-info/requires.txt +0 -0
  27. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/forgexa_cli.egg-info/top_level.txt +0 -0
  28. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/setup.cfg +0 -0
  29. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_auth_and_runtime_commands.py +0 -0
  30. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_autoupgrade.py +0 -0
  31. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_check_command.py +0 -0
  32. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_delivery_review_packaged.py +0 -0
  33. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_expiry_warnings_and_revoke.py +0 -0
  34. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_local_bind_commands.py +0 -0
  35. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_publish_script.py +0 -0
  36. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_runtime_credentials.py +0 -0
  37. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_session_credentials.py +0 -0
  38. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_silent_install.py +0 -0
  39. {forgexa_cli-1.108.1 → forgexa_cli-1.109.1}/tests/test_upgrade_observability.py +0 -0
  40. {forgexa_cli-1.108.1 → forgexa_cli-1.109.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.108.1
3
+ Version: 1.109.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.108.1"
2
+ __version__ = "1.109.1"
@@ -3879,6 +3879,26 @@ def delivery_review_sandbox_exec() -> str | None:
3879
3879
  return executable
3880
3880
 
3881
3881
 
3882
+ def project_review_node_read_paths(node: str) -> set[Path]:
3883
+ node_path = Path(node).resolve()
3884
+ node_root = node_path.parent
3885
+ paths = {node_root, node_root.parent / "lib"}
3886
+ if sys.platform == "darwin" and Path("/usr/bin/otool").is_file():
3887
+ try:
3888
+ result = subprocess.run(
3889
+ ["/usr/bin/otool", "-L", str(node_path)],
3890
+ capture_output=True, text=True, timeout=5, check=False,
3891
+ )
3892
+ except (OSError, subprocess.SubprocessError):
3893
+ result = None
3894
+ if result and result.returncode == 0:
3895
+ for line in result.stdout.splitlines()[1:]:
3896
+ match = re.match(r"\s*(/.*) \(compatibility version ", line)
3897
+ if match and not match[1].startswith(("/usr/lib/", "/System/Library/")):
3898
+ paths.add(Path(match[1]).resolve().parent)
3899
+ return {path.resolve() for path in paths if path.exists()}
3900
+
3901
+
3882
3902
  def delivery_review_linux_command(
3883
3903
  command: list[str], *, cwd: Path, home: Path, writable: bool = False, network: bool = True,
3884
3904
  read_paths: list[Path] | None = None, write_paths: list[Path] | None = None,
@@ -4391,16 +4411,21 @@ def approve_minimax_build(binary: str, evidence: dict) -> dict:
4391
4411
  def build_minimax_command(
4392
4412
  binary: str, *, cwd: str | Path, config: str | Path,
4393
4413
  timeout: float = 300, max_steps: int = 60, model: str | None = None,
4394
- session_id: str | None = None,
4414
+ session_id: str | None = None, project_review: bool = False,
4395
4415
  ) -> list[str]:
4396
4416
  if type(timeout) not in (int, float) or not math.isfinite(timeout) or timeout <= 0 or type(max_steps) is not int or not 1 <= max_steps <= 1000:
4397
4417
  raise ValueError("MiniMax requires a positive timeout and a bounded step budget")
4418
+ if project_review and session_id is not None:
4419
+ raise ValueError("MiniMax project review cannot resume a native session")
4398
4420
  command = [binary, "exec", "--cwd", str(Path(cwd).resolve()), "--input", "-",
4399
- "--input-format", "text", "--output-format", "stream-json", "--mode", "standard",
4421
+ "--input-format", "text", "--output-format", "stream-json", "--mode",
4422
+ "lightweight" if project_review else "standard",
4400
4423
  "--prompt-mode", "coding", "--permission", "smart", "--config", str(config),
4401
- "--timeout", f"{timeout:g}s", "--max-steps", str(max_steps)]
4424
+ "--timeout", f"{math.ceil(timeout)}s", "--max-steps", str(max_steps)]
4402
4425
  if model is not None:
4403
- if not re.fullmatch(r"[A-Za-z0-9._-]+/[A-Za-z0-9._:/-]+(?:#[A-Za-z0-9._-]+)?", model):
4426
+ if not re.fullmatch(
4427
+ r"(?:custom_provider:)?[A-Za-z0-9._-]+/[A-Za-z0-9._:/-]+(?:#[A-Za-z0-9._-]+)?", model,
4428
+ ):
4404
4429
  raise ValueError("Invalid MiniMax provider/model reference")
4405
4430
  command += ["--model", model]
4406
4431
  if session_id is not None:
@@ -4479,6 +4504,7 @@ async def run_minimax(
4479
4504
  cancel_requested: Any = None,
4480
4505
  component_lease: Any = None,
4481
4506
  read_only: bool = False, delivery_review: bool = False,
4507
+ review_home: Path | None = None, review_source: Path | None = None,
4482
4508
  ) -> dict:
4483
4509
  lease = (
4484
4510
  component_lease if component_lease is not None else component_runtime.current_execution()
@@ -4492,10 +4518,29 @@ async def run_minimax(
4492
4518
  stderr_bytes = 0
4493
4519
  deadline = time.monotonic()
4494
4520
  try:
4495
- if type(timeout) not in (int, float) or not math.isfinite(timeout) or timeout <= 0:
4521
+ if review_home is not None and (
4522
+ sys.platform != "darwin"
4523
+ or not read_only
4524
+ or not delivery_review
4525
+ or session_id is not None
4526
+ or review_source is None
4527
+ or lease is not None
4528
+ ):
4529
+ raise RuntimeError(
4530
+ "MiniMax project review requires an isolated, non-resumable macOS session"
4531
+ )
4532
+ if (
4533
+ type(timeout) not in (int, float)
4534
+ or not math.isfinite(timeout)
4535
+ or timeout <= 0
4536
+ ):
4496
4537
  raise ValueError("MiniMax requires a finite positive host deadline")
4497
4538
  deadline += timeout
4498
- if not isinstance(prompt, str) or not prompt.strip() or len(prompt.encode("utf-8")) > MINIMAX_MAX_OUTPUT_BYTES:
4539
+ if (
4540
+ not isinstance(prompt, str)
4541
+ or not prompt.strip()
4542
+ or len(prompt.encode("utf-8")) > MINIMAX_MAX_OUTPUT_BYTES
4543
+ ):
4499
4544
  raise ValueError("MiniMax prompt is empty or exceeds the input budget")
4500
4545
  issue = await asyncio.wait_for(asyncio.to_thread(minimax_verification_issue, binary),
4501
4546
  timeout=max(0.001, deadline - time.monotonic()))
@@ -4520,7 +4565,9 @@ async def run_minimax(
4520
4565
  raise RuntimeError("MiniMax model override is not authorized by the accepted profile policy")
4521
4566
  binding_identity = hashlib.sha256(json.dumps({
4522
4567
  "admission": admission["fingerprint"], "workspace": str(cwd),
4523
- "model": model, "prompt_mode": "coding", "context_mode": "standard", "read_only": read_only,
4568
+ "model": model, "prompt_mode": "coding",
4569
+ "context_mode": "lightweight" if review_home is not None else "standard",
4570
+ "read_only": read_only,
4524
4571
  }, sort_keys=True).encode()).hexdigest()
4525
4572
  if session_id:
4526
4573
  binding = root / "bindings" / (hashlib.sha256(session_id.encode()).hexdigest() + ".json")
@@ -4532,23 +4579,106 @@ async def run_minimax(
4532
4579
  raise RuntimeError("MiniMax profile has an interrupted run; process-tree recovery is required")
4533
4580
  temporary = tempfile.TemporaryDirectory(prefix="run-", dir=root)
4534
4581
  temporary_root = Path(temporary.name)
4582
+ config = root / "config/runtime.json"
4583
+ environment = minimax_base_env(root, temporary_root)
4584
+ review_paths = []
4585
+ auth = None
4586
+ if review_home is not None:
4587
+ private = review_home.resolve()
4588
+ node = Path(admission["build"]["node"]).resolve()
4589
+ package = Path(admission["build"]["package_root"]).resolve()
4590
+ review_paths = [*project_review_node_read_paths(str(node)), package]
4591
+ source = review_source.resolve()
4592
+ if any(
4593
+ path == source or path in source.parents or source in path.parents
4594
+ for path in [root.resolve(), *review_paths]
4595
+ ):
4596
+ raise RuntimeError("MiniMax review runtime overlaps the original repository")
4597
+ data = private / "data"
4598
+ data.mkdir(mode=0o700)
4599
+ for config_source, target in (
4600
+ (root / "data/config.yaml", data / "config.yaml"),
4601
+ (config, private / "runtime.json"),
4602
+ ):
4603
+ shutil.copyfile(_minimax_private_path(config_source), target)
4604
+ target.chmod(0o600)
4605
+ config = private / "runtime.json"
4606
+ auth_source = root / "data/auth"
4607
+ if auth_source.exists() or auth_source.is_symlink():
4608
+ auth = _minimax_private_path(auth_source, directory=True).resolve()
4609
+ for state_file in auth.rglob("auth-state.json"):
4610
+ auth_state = json.loads(
4611
+ _minimax_private_path(state_file).read_text(encoding="utf-8")
4612
+ )
4613
+ if (
4614
+ not isinstance(auth_state, dict)
4615
+ or auth_state.get("storeKind") != "file"
4616
+ ):
4617
+ raise RuntimeError(
4618
+ "MiniMax project review cannot reuse keyring-based authentication"
4619
+ )
4620
+ (data / "auth").symlink_to(auth, target_is_directory=True)
4621
+ if auth is not None:
4622
+ review_paths.append(auth)
4623
+ environment.update(
4624
+ HOME=str(private),
4625
+ USERPROFILE=str(private),
4626
+ MINIMAX_DATA_DIR=str(data),
4627
+ TMPDIR=str(private),
4628
+ TMP=str(private),
4629
+ TEMP=str(private),
4630
+ OPENSSL_CONF=os.devnull,
4631
+ )
4535
4632
  remaining = deadline - time.monotonic()
4536
4633
  if remaining <= 0:
4537
4634
  raise asyncio.TimeoutError()
4538
- command = build_minimax_command(admission["build"]["node"], cwd=cwd,
4539
- config=root / "config/runtime.json", timeout=remaining,
4540
- max_steps=max_steps, model=model, session_id=session_id)
4635
+ command = build_minimax_command(
4636
+ admission["build"]["node"],
4637
+ cwd=cwd,
4638
+ config=config,
4639
+ timeout=remaining,
4640
+ max_steps=max_steps,
4641
+ model=model,
4642
+ session_id=session_id,
4643
+ project_review=review_home is not None,
4644
+ )
4541
4645
  command.insert(1, admission["build"]["entry"])
4542
4646
  command, environment = await asyncio.to_thread(
4543
- component_runtime.harness_command, lease, "minimax", binary, command,
4544
- minimax_base_env(root, temporary_root),
4545
- )
4546
- command = _minimax_sandbox(
4547
- command, admission, cwd, temporary_root, read_only=read_only, delivery_review=delivery_review,
4647
+ component_runtime.harness_command,
4648
+ lease,
4649
+ "minimax",
4650
+ binary,
4651
+ command,
4652
+ environment,
4548
4653
  )
4654
+ if review_home is not None:
4655
+ command = delivery_review_sandbox_command(
4656
+ command,
4657
+ cwd,
4658
+ private,
4659
+ writable=False,
4660
+ read_paths=review_paths,
4661
+ restrict_global_reads=True,
4662
+ )
4663
+ command[2] += (
4664
+ f"(deny process-exec (require-not (literal {json.dumps(str(node))})))"
4665
+ )
4666
+ if auth is not None:
4667
+ command[2] += f"(allow file-write* (subpath {json.dumps(str(auth))}))"
4668
+ else:
4669
+ command = _minimax_sandbox(
4670
+ command,
4671
+ admission,
4672
+ cwd,
4673
+ temporary_root,
4674
+ read_only=read_only,
4675
+ delivery_review=delivery_review,
4676
+ )
4549
4677
  if cancel_requested is not None and cancel_requested():
4550
4678
  return state.finish(-1, cancelled=True)
4551
- _minimax_write_record(active, {"fingerprint": binding_identity, "state": "spawning"})
4679
+ _minimax_write_record(
4680
+ active, {"fingerprint": binding_identity, "state": "spawning"}
4681
+ )
4552
4682
  if lease is not None:
4553
4683
  await asyncio.to_thread(lease.begin_spawn)
4554
4684
  process = await asyncio.create_subprocess_exec(
@@ -4604,11 +4734,28 @@ async def run_minimax(
4604
4734
  if state.error:
4605
4735
  break
4606
4736
  for event in events:
4607
- if event["type"] == "session":
4608
- binding = root / "bindings" / (hashlib.sha256(event["session_id"].encode()).hexdigest() + ".json")
4609
- _minimax_write_record(binding, {"fingerprint": binding_identity})
4737
+ if review_home is not None and event["type"] == "tool_call":
4738
+ state.fail(
4739
+ "MiniMax lightweight review attempted a tool",
4740
+ "minimax_review_tool_detected",
4741
+ )
4742
+ break
4743
+ if event["type"] == "session" and review_home is None:
4744
+ binding = (
4745
+ root
4746
+ / "bindings"
4747
+ / (
4748
+ hashlib.sha256(event["session_id"].encode()).hexdigest()
4749
+ + ".json"
4750
+ )
4751
+ )
4752
+ _minimax_write_record(
4753
+ binding, {"fingerprint": binding_identity}
4754
+ )
4610
4755
  if on_event is not None:
4611
4756
  await on_event(event)
4757
+ if state.error:
4758
+ break
4612
4759
  if on_chunk is not None:
4613
4760
  await on_chunk(json.dumps({"type": "minimax.progress", "sequence": state.sequence}))
4614
4761
  if not state.error:
@@ -5208,6 +5355,7 @@ def deepseek_harness_profile_lock_path(workspace_path: str | Path) -> Path:
5208
5355
 
5209
5356
  def deepseek_harness_overlay(
5210
5357
  *, cwd: Path, credentials_path: Path, provider: str, model: str, read_only: bool = False,
5358
+ project_review: bool = False,
5211
5359
  ) -> list[dict]:
5212
5360
  if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}", model):
5213
5361
  raise ValueError("Invalid DeepSeek Harness model ID")
@@ -5251,6 +5399,18 @@ def deepseek_harness_overlay(
5251
5399
  "reasoningEffort": "high", "maxTokens": 32768,
5252
5400
  }},
5253
5401
  ])
5402
+ if project_review:
5403
+ review_disabled = {
5404
+ "plan-mode", "skill-filesystem", "tool-bash", "tool-fs", "tool-fs-search",
5405
+ "tool-goal", "tool-jobs", "tool-plugin-manager", "tool-pwsh", "tool-ralph",
5406
+ "tool-skill", "tool-subagent", "tool-subagent-control", "tool-subagent-fork",
5407
+ "tool-subagent-list-agents", "tool-todo", "tool-web", "tool-workflow",
5408
+ }
5409
+ for row in rows:
5410
+ if row["id"] in review_disabled:
5411
+ row["disabled"] = True
5412
+ existing = {row["id"] for row in rows}
5413
+ rows.extend({"id": name, "disabled": True} for name in sorted(review_disabled - existing))
5254
5414
  return rows
5255
5415
 
5256
5416
 
@@ -5323,16 +5483,41 @@ def deepseek_harness_sandbox_command(
5323
5483
 
5324
5484
  @contextmanager
5325
5485
  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,
5486
+ binary: str,
5487
+ workspace_path: str | Path,
5488
+ *,
5489
+ model: str | None = None,
5490
+ session_id: str | None = None,
5491
+ read_only: bool = False,
5492
+ delivery_review: bool = False,
5493
+ review_home: Path | None = None,
5494
+ review_source: Path | None = None,
5495
+ review_read_paths: list[Path] | None = None,
5328
5496
  ):
5329
5497
  binary = os.path.abspath(shutil.which(binary) or os.path.expanduser(binary))
5330
5498
  cwd = Path(workspace_path).expanduser().resolve()
5331
- home = deepseek_harness_home(cwd)
5499
+ if review_home is not None and (
5500
+ sys.platform != "darwin"
5501
+ or not read_only
5502
+ or not delivery_review
5503
+ or session_id
5504
+ or review_source is None
5505
+ ):
5506
+ raise RuntimeError(
5507
+ "DeepSeek project review requires an isolated, non-resumable macOS session"
5508
+ )
5509
+ home = (
5510
+ review_home.resolve() if review_home is not None else deepseek_harness_home(cwd)
5511
+ )
5332
5512
  home.mkdir(parents=True, exist_ok=True, mode=0o700)
5333
5513
  if sys.platform != "win32":
5334
5514
  home.chmod(0o700)
5335
- lock = acquire_file_lock(deepseek_harness_profile_lock_path(cwd))
5515
+ lock_path = (
5516
+ home / "profile.lock"
5517
+ if review_home is not None
5518
+ else deepseek_harness_profile_lock_path(cwd)
5519
+ )
5520
+ lock = acquire_file_lock(lock_path)
5336
5521
  if lock is None:
5337
5522
  raise RuntimeError("DeepSeek Harness profile is busy with another local turn")
5338
5523
  try:
@@ -5363,11 +5548,13 @@ def deepseek_harness_runtime(
5363
5548
  source_home = Path(os.environ.get("DSH_HOME", str(Path.home() / ".dsh"))).expanduser().resolve()
5364
5549
  credentials = Path(os.environ.get("FACTORY_DEEPSEEK_HARNESS_CREDENTIALS", str(source_home / ".credentials.yaml"))).expanduser().resolve()
5365
5550
  configuration = deepseek_harness_configuration(binary, credentials, env)
5551
+ if review_home is not None:
5552
+ env.update(HOME=str(home), USERPROFILE=str(home), OPENSSL_CONF=os.devnull)
5366
5553
  selected_model = model or os.environ.get("FACTORY_DEEPSEEK_HARNESS_MODEL", "").strip() or "deepseek-flash"
5367
5554
  overlay = temporary_root / "run.patch.json"
5368
5555
  composition = deepseek_harness_overlay(
5369
5556
  cwd=cwd, credentials_path=credentials, provider=configuration["provider"],
5370
- model=selected_model, read_only=read_only,
5557
+ model=selected_model, read_only=read_only, project_review=review_home is not None,
5371
5558
  )
5372
5559
  identity = hashlib.sha256(json.dumps({"build": deepseek_harness_build_info(binary)["fingerprint"], "overlay": composition}, sort_keys=True).encode()).hexdigest()
5373
5560
  env["FORGEXA_DEEPSEEK_HARNESS_COMPOSITION"] = identity
@@ -5377,6 +5564,36 @@ def deepseek_harness_runtime(
5377
5564
  raise RuntimeError("Native Harness session configuration changed or is not owned by Forgexa; start a new session")
5378
5565
  overlay.write_text(json.dumps(composition), encoding="utf-8")
5379
5566
  command = build_deepseek_harness_command(binary, overlay_path=overlay, session_id=session_id)
5567
+ if review_home is not None:
5568
+ paths = list(review_read_paths or [])
5569
+ if credentials.is_file():
5570
+ paths.append(credentials)
5571
+ source = review_source.resolve()
5572
+ executable = Path(binary)
5573
+ paths_to_check = [
5574
+ *paths,
5575
+ executable.parent.resolve(),
5576
+ executable.resolve().parent,
5577
+ ]
5578
+ if any(
5579
+ path == source or path in source.parents or source in path.parents
5580
+ for path in paths_to_check
5581
+ ):
5582
+ raise RuntimeError(
5583
+ "DeepSeek review runtime overlaps the original repository"
5584
+ )
5585
+ yield (
5586
+ delivery_review_sandbox_command(
5587
+ command,
5588
+ cwd,
5589
+ home,
5590
+ writable=False,
5591
+ read_paths=paths,
5592
+ restrict_global_reads=True,
5593
+ ),
5594
+ env,
5595
+ )
5596
+ return
5380
5597
  read_paths = []
5381
5598
  if delivery_review:
5382
5599
  executable = Path(binary)
@@ -5408,6 +5625,8 @@ async def run_deepseek_harness(
5408
5625
  cancel_requested: Any = None,
5409
5626
  component_lease: Any = None,
5410
5627
  read_only: bool = False, delivery_review: bool = False,
5628
+ review_home: Path | None = None, review_source: Path | None = None,
5629
+ review_read_paths: list[Path] | None = None,
5411
5630
  ) -> dict:
5412
5631
  """Execute and validate a supervised one-shot process with bounded output."""
5413
5632
  process = None
@@ -5421,7 +5640,8 @@ async def run_deepseek_harness(
5421
5640
  stderr_text = ""
5422
5641
  runtime = deepseek_harness_runtime(
5423
5642
  binary, workspace_path, model=model, session_id=session_id,
5424
- read_only=read_only, delivery_review=delivery_review,
5643
+ read_only=read_only, delivery_review=delivery_review, review_home=review_home,
5644
+ review_source=review_source, review_read_paths=review_read_paths,
5425
5645
  )
5426
5646
  entered = False
5427
5647
  try:
@@ -5490,7 +5710,8 @@ async def run_deepseek_harness(
5490
5710
  if state.error:
5491
5711
  _kill_proc(process)
5492
5712
  break
5493
- if event is not None and event.get("type") == "session" and env.get("FORGEXA_DEEPSEEK_HARNESS_COMPOSITION"):
5713
+ if (review_home is None and event is not None and event.get("type") == "session"
5714
+ and env.get("FORGEXA_DEEPSEEK_HARNESS_COMPOSITION")):
5494
5715
  binding = deepseek_harness_home(workspace_path) / "forgexa-session-bindings" / (hashlib.sha256(state.session_id.encode()).hexdigest() + ".json")
5495
5716
  with tempfile.NamedTemporaryFile("w", encoding="utf-8", dir=binding.parent, delete=False) as temporary:
5496
5717
  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.109.1"
1432
1432
 
1433
1433
 
1434
1434
  def _detect_client_type() -> str:
@@ -251,6 +251,7 @@ class ZCodeProtocolSession:
251
251
  model: dict[str, Any] | None = None,
252
252
  tool_allowlist: list[str] | None = None,
253
253
  tool_denylist: list[str] | None = None,
254
+ title_generation_enabled: bool | None = None,
254
255
  ) -> ZCodeSession:
255
256
  workspace_path = str(Path(workspace).resolve())
256
257
  params: dict[str, Any] = {
@@ -266,6 +267,8 @@ class ZCodeProtocolSession:
266
267
  }
267
268
  if model:
268
269
  params["model"] = model
270
+ if title_generation_enabled is not None:
271
+ params["titleGenerationEnabled"] = title_generation_enabled
269
272
  result = await self._request("session/create", params)
270
273
  return self._accept_session_snapshot(result)
271
274
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgexa-cli
3
- Version: 1.108.1
3
+ Version: 1.109.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.108.1"
3
+ version = "1.109.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