conduct-cli 0.4.65__tar.gz → 0.4.67__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 (24) hide show
  1. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/PKG-INFO +1 -1
  2. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/pyproject.toml +1 -1
  3. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/main.py +19 -2
  4. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/PKG-INFO +1 -1
  5. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/README.md +0 -0
  6. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/setup.cfg +0 -0
  7. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/setup.py +0 -0
  8. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/__init__.py +0 -0
  9. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/api.py +0 -0
  10. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/guard.py +0 -0
  11. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/guardmcp.py +0 -0
  12. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/hook_precompact_template.py +0 -0
  13. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/hook_session_start_template.py +0 -0
  14. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/hook_template.py +0 -0
  15. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli/mcp_server.py +0 -0
  16. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
  17. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
  18. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/entry_points.txt +0 -0
  19. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/requires.txt +0 -0
  20. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/top_level.txt +0 -0
  21. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/tests/test_guard_policy.py +0 -0
  22. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/tests/test_guard_savings.py +0 -0
  23. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/tests/test_hook_syntax.py +0 -0
  24. {conduct_cli-0.4.65 → conduct_cli-0.4.67}/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.65
3
+ Version: 0.4.67
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.65"
7
+ version = "0.4.67"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -2341,11 +2341,26 @@ def cmd_test_security_verify(args):
2341
2341
 
2342
2342
  import urllib.request
2343
2343
 
2344
- TIMEOUT = 240 # serial worker at CONCURRENCY=1: 15 runs × ~10s = ~150s; headroom for 2+ workers
2344
+ TIMEOUT = 300 # 15 runs × ~28s / 4 workers ≈ 105s; 300s gives headroom for queue variance
2345
2345
  POLL_SECS = 5
2346
2346
 
2347
- # ── Step 1: post test findings ────────────────────────────────────────
2347
+ # ── Step 0: fresh Security Automation project ─────────────────────────
2348
2348
  print(f"\n{BOLD}▶ conduct test-security-verify{RESET}")
2349
+ print(f" {GRAY}Step 0/3 — refreshing Security Automation project…{RESET}")
2350
+ try:
2351
+ req = urllib.request.Request(
2352
+ f"{api_url}/secure/refresh-automation?workspace_id={workspace_id}",
2353
+ data=b"{}",
2354
+ headers={"Content-Type": "application/json", "X-Api-Key": api_key},
2355
+ method="POST",
2356
+ )
2357
+ with urllib.request.urlopen(req, timeout=15) as resp:
2358
+ _json.loads(resp.read())
2359
+ print(f" {GREEN}✓{RESET} Fresh project created with latest YAML\n")
2360
+ except Exception as e:
2361
+ print(f" {YELLOW}⚠ refresh failed ({e}) — using existing project{RESET}\n")
2362
+
2363
+ # ── Step 1: post test findings ────────────────────────────────────────
2349
2364
  print(f" {GRAY}Step 1/3 — posting {len(_SECURITY_TEST_CASES)} test findings…{RESET}\n")
2350
2365
 
2351
2366
  # Clean previous run
@@ -2400,6 +2415,7 @@ def cmd_test_security_verify(args):
2400
2415
 
2401
2416
  # ── Step 2: poll until all findings move off "open" ───────────────────
2402
2417
  print(f"\n {GRAY}Step 2/3 — waiting for triage pipeline (timeout {TIMEOUT}s)…{RESET}\n")
2418
+
2403
2419
  deadline = _time.time() + TIMEOUT
2404
2420
  final_statuses: dict[str, str] = {}
2405
2421
 
@@ -2435,6 +2451,7 @@ def cmd_test_security_verify(args):
2435
2451
  # ── Step 3: report per-finding results ────────────────────────────────
2436
2452
  print(f"\n {GRAY}Step 3/3 — results{RESET}\n")
2437
2453
 
2454
+
2438
2455
  all_pass = True
2439
2456
  name_by_id = {}
2440
2457
  for i, (name, *_) in enumerate(_SECURITY_TEST_CASES):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.65
3
+ Version: 0.4.67
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