conduct-cli 0.4.92__tar.gz → 0.4.93__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 (27) hide show
  1. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/PKG-INFO +1 -1
  2. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/pyproject.toml +1 -1
  3. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/main.py +18 -0
  4. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli.egg-info/PKG-INFO +1 -1
  5. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/README.md +0 -0
  6. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/setup.cfg +0 -0
  7. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/setup.py +0 -0
  8. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/__init__.py +0 -0
  9. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/api.py +0 -0
  10. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/guard.py +0 -0
  11. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/guardmcp.py +0 -0
  12. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/hook_precompact_template.py +0 -0
  13. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/hook_session_start_template.py +0 -0
  14. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/hook_stop_template.py +0 -0
  15. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/hook_template.py +0 -0
  16. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/mcp_server.py +0 -0
  17. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/memory.py +0 -0
  18. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli/paxel.py +0 -0
  19. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
  20. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
  21. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli.egg-info/entry_points.txt +0 -0
  22. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli.egg-info/requires.txt +0 -0
  23. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/src/conduct_cli.egg-info/top_level.txt +0 -0
  24. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/tests/test_guard_policy.py +0 -0
  25. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/tests/test_guard_savings.py +0 -0
  26. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/tests/test_hook_syntax.py +0 -0
  27. {conduct_cli-0.4.92 → conduct_cli-0.4.93}/tests/test_switch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.92
3
+ Version: 0.4.93
4
4
  Summary: CLI for Conduct AI — install agents, manage projects, run tests
5
5
  Author-email: Conduct AI <hello@conductai.ai>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "conduct-cli"
7
- version = "0.4.92"
7
+ version = "0.4.93"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -2372,12 +2372,30 @@ def cmd_run(args):
2372
2372
  print(f" {GRAY}{k}={v}{RESET}")
2373
2373
  print()
2374
2374
 
2375
+ # Preflight: estimate turns + show files likely to be modified
2376
+ try:
2377
+ pf = api.req("POST", f"{server}/workflows/{workflow_id}/preflight", json_h, {
2378
+ "issue_title": initial_state.get("title", ""),
2379
+ "issue_body": initial_state.get("body", ""),
2380
+ })
2381
+ suggested = pf.get("suggested_max_turns", 20)
2382
+ files = pf.get("total_files", [])
2383
+ print(f" {BOLD}Estimated turns:{RESET} {suggested}")
2384
+ if files:
2385
+ print(f" {BOLD}Files likely to be modified:{RESET} {', '.join(files)}")
2386
+ print()
2387
+ except Exception:
2388
+ suggested = 20
2389
+
2375
2390
  # Call the test-trigger endpoint so the YAML's built-in test_trigger.payload
2376
2391
  # (PR fixture, issue fixture, etc.) is loaded and the configured repo is
2377
2392
  # injected — instead of running with an empty trigger context.
2378
2393
  body: dict = {**initial_state}
2394
+ # Use preflight suggestion unless user explicitly passed --max-turns
2379
2395
  if getattr(args, "max_turns", None):
2380
2396
  body["__max_turns"] = args.max_turns
2397
+ elif suggested > 20:
2398
+ body["__max_turns"] = suggested
2381
2399
  run = api.req("POST", f"{server}/workflows/{workflow_id}/trigger", json_h, body)
2382
2400
  _stream_run(server, workflow_id, run["id"], workspace_id, token, api_key)
2383
2401
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.92
3
+ Version: 0.4.93
4
4
  Summary: CLI for Conduct AI — install agents, manage projects, run tests
5
5
  Author-email: Conduct AI <hello@conductai.ai>
6
6
  License: MIT
File without changes
File without changes
File without changes