From ad6cff4498e3cc6726777854e6b4b915e46f2bf4 Mon Sep 17 00:00:00 2001 From: Fahad Date: Sun, 15 Jun 2025 18:43:37 +0400 Subject: [PATCH] Lint, bump --- config.py | 2 +- tests/test_tracer.py | 8 ++++---- tools/tracer.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.py b/config.py index c626bc7..7877872 100644 --- a/config.py +++ b/config.py @@ -14,7 +14,7 @@ import os # These values are used in server responses and for tracking releases # IMPORTANT: This is the single source of truth for version and author info # Semantic versioning: MAJOR.MINOR.PATCH -__version__ = "4.6.1" +__version__ = "4.7.0" # Last update date in ISO format __updated__ = "2025-06-15" # Primary maintainer diff --git a/tests/test_tracer.py b/tests/test_tracer.py index e4afcfb..debc6a2 100644 --- a/tests/test_tracer.py +++ b/tests/test_tracer.py @@ -82,7 +82,7 @@ class TestTracerTool: # Check content includes expected sections content = output.text - assert "Enhanced Analysis Prompt" in content + assert "STATIC CODE ANALYSIS REQUEST" in content assert "Analysis Instructions" in content assert "BookingManager finalizeInvoice method" in content assert "precision" in content @@ -104,7 +104,7 @@ class TestTracerTool: # Check content includes expected sections content = output.text - assert "Enhanced Analysis Prompt" in content + assert "STATIC CODE ANALYSIS REQUEST" in content assert "payment processing flow" in content assert "dependencies" in content assert "DEPENDENCY FLOW DIAGRAM" in content @@ -113,7 +113,7 @@ class TestTracerTool: """Test enhanced prompt creation for precision mode""" prompt = tracer_tool._create_enhanced_prompt("BookingManager::finalizeInvoice", "precision") - assert "STATIC CODE ANALYSIS REQUEST" in prompt + assert "TARGET:" in prompt assert "BookingManager::finalizeInvoice" in prompt assert "precision" in prompt assert "execution path" in prompt @@ -124,7 +124,7 @@ class TestTracerTool: """Test enhanced prompt creation for dependencies mode""" prompt = tracer_tool._create_enhanced_prompt("validation function", "dependencies") - assert "STATIC CODE ANALYSIS REQUEST" in prompt + assert "TARGET:" in prompt assert "validation function" in prompt assert "dependencies" in prompt assert "bidirectional dependencies" in prompt diff --git a/tools/tracer.py b/tools/tracer.py index 5570309..491dbe8 100644 --- a/tools/tracer.py +++ b/tools/tracer.py @@ -112,7 +112,7 @@ in question: - If you are unable to find the code or mentioned files, look for the relevant code in subfolders. If unsure, ask the user to confirm location of folder / filename - You MUST carry this task using your own tools, do NOT delegate this to any other model -- DO NOT automatically use any zen tools (including zen:analyze, zen:debug, zen:chat, etc.) to perform this analysis. +- DO NOT automatically use any zen tools (including zen:analyze, zen:debug, zen:chat, etc.) to perform this analysis. - EXCEPTION: If files are very large or the codebase is too complex for direct analysis due to context limitations, you may use zen tools with a larger context model to assist with analysis by passing only the relevant files - Understand carefully and fully how this code is used, what it depends on, and what other parts of the system depend on it @@ -138,7 +138,7 @@ immediately then do not stop after displaying your output, proceed directly to y } return f""" - + TARGET: {original_prompt} MODE: {trace_mode}