cite-agent 1.2.12__tar.gz → 1.2.13__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.
Potentially problematic release.
This version of cite-agent might be problematic. Click here for more details.
- {cite_agent-1.2.12/cite_agent.egg-info → cite_agent-1.2.13}/PKG-INFO +1 -1
- cite_agent-1.2.13/cite_agent/__version__.py +1 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/enhanced_ai_agent.py +50 -30
- {cite_agent-1.2.12 → cite_agent-1.2.13/cite_agent.egg-info}/PKG-INFO +1 -1
- {cite_agent-1.2.12 → cite_agent-1.2.13}/setup.py +1 -1
- cite_agent-1.2.12/cite_agent/__version__.py +0 -1
- {cite_agent-1.2.12 → cite_agent-1.2.13}/LICENSE +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/MANIFEST.in +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/README.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/__main__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/account_client.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/agent_backend_only.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/ascii_plotting.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/auth.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/backend_only_client.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/cli.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/cli_conversational.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/cli_enhanced.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/cli_workflow.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/dashboard.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/rate_limiter.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/session_manager.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/setup_config.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/streaming_ui.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/telemetry.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/ui.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/updater.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/web_search.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/workflow.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent/workflow_integration.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent.egg-info/SOURCES.txt +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent.egg-info/dependency_links.txt +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent.egg-info/entry_points.txt +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent.egg-info/requires.txt +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/cite_agent.egg-info/top_level.txt +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/BETA_LAUNCH_CHECKLIST.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/BETA_RELEASE_CHECKLIST.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/ENHANCED_CAPABILITIES.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/GROQ_RATE_LIMITS.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/INSTALL.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/PUBLISHING_PYPI.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/SECURE_PACKAGING_GUIDE.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/SECURITY_AUDIT.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/USER_GETTING_STARTED.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/docs/playbooks/BETA_LAUNCH_PLAYBOOK.md +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/requirements.txt +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/setup.cfg +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/auth_service/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/auth_service/auth_manager.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/graph/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/graph/knowledge_graph.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/llm_service/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/llm_service/llm_manager.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/paper_service/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/paper_service/openalex.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/performance_service/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/performance_service/rust_performance.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/chatbot.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/citation_manager.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/context_manager.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/conversation_manager.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/critical_paper_detector.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/enhanced_research.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/enhanced_synthesizer.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/query_generator.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/synthesizer.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/search_service/__init__.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/search_service/indexer.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/search_service/search_engine.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/simple_enhanced_main.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/beta_launch_test_suite.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/enhanced/test_account_client.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/enhanced/test_archive_agent.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/enhanced/test_enhanced_agent_runtime.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/enhanced/test_reasoning_engine.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/enhanced/test_setup_config.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/enhanced/test_tool_framework.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/integration_test.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/test_truth_seeking_comprehensive.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_accuracy_system.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_agent_live.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_backend_local.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_cerebras_comparison.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_improved_prompt.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_qualitative_robustness.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_qualitative_system.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_truth_seeking_chinese.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_truth_seeking_comprehensive.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_truth_seeking_real.py +0 -0
- {cite_agent-1.2.12 → cite_agent-1.2.13}/tools/security_audit.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.13"
|
|
@@ -2768,19 +2768,42 @@ class EnhancedNocturnalAgent:
|
|
|
2768
2768
|
|
|
2769
2769
|
# Generic search if no pronoun or pronoun not resolved
|
|
2770
2770
|
if not pronoun_resolved:
|
|
2771
|
-
#
|
|
2772
|
-
|
|
2773
|
-
'looking', 'find', 'folder', 'directory', 'called', 'something',
|
|
2774
|
-
'forgot', 'name', 'think', 'can', 'you', 'look', 'for', 'somewhere',
|
|
2775
|
-
'computer', 'downloads', 'the', 'this', 'that', 'class', 'investment',
|
|
2776
|
-
'check', 'what', 'into', 'in', 'on', 'at', 'to', 'from', 'with',
|
|
2777
|
-
'and', 'or', 'is', 'it', 'my', 'me', 'there', 'here'
|
|
2778
|
-
}
|
|
2771
|
+
# SMART EXTRACTION: Use pattern matching + common sense
|
|
2772
|
+
import re
|
|
2779
2773
|
|
|
2780
|
-
#
|
|
2781
|
-
#
|
|
2782
|
-
|
|
2783
|
-
|
|
2774
|
+
# Strategy: Look for quoted strings or alphanumeric codes
|
|
2775
|
+
# Priority 1: Quoted strings ("cm522", 'my_folder')
|
|
2776
|
+
quoted = re.findall(r'["\']([^"\']+)["\']', request.question)
|
|
2777
|
+
|
|
2778
|
+
if quoted:
|
|
2779
|
+
search_terms = quoted
|
|
2780
|
+
else:
|
|
2781
|
+
# Priority 2: Alphanumeric codes/IDs (cm522, hw03, proj_2024)
|
|
2782
|
+
# Pattern: letters + numbers mixed, or underscores/dashes
|
|
2783
|
+
codes = re.findall(r'\b([a-zA-Z]*\d+[a-zA-Z0-9_-]*|[a-zA-Z0-9]*[_-]+[a-zA-Z0-9]+)\b', request.question)
|
|
2784
|
+
|
|
2785
|
+
# Priority 3: Capitalize words (likely proper nouns: GitHub, MyProject)
|
|
2786
|
+
capitalized = re.findall(r'\b([A-Z][a-zA-Z0-9_-]+)\b', request.question)
|
|
2787
|
+
|
|
2788
|
+
# Priority 4: Long words (≥ 6 chars, likely meaningful)
|
|
2789
|
+
long_words = re.findall(r'\b([a-zA-Z]{6,})\b', request.question)
|
|
2790
|
+
|
|
2791
|
+
# Combine and dedupe
|
|
2792
|
+
search_terms = list(dict.fromkeys(codes + capitalized + long_words))
|
|
2793
|
+
|
|
2794
|
+
# Filter out common words
|
|
2795
|
+
common = {
|
|
2796
|
+
'looking', 'folder', 'directory', 'called', 'something',
|
|
2797
|
+
'downloads', 'documents', 'computer', 'somewhere'
|
|
2798
|
+
}
|
|
2799
|
+
search_terms = [t for t in search_terms if t.lower() not in common][:2]
|
|
2800
|
+
|
|
2801
|
+
debug_mode = os.getenv("NOCTURNAL_DEBUG", "").lower() == "1"
|
|
2802
|
+
if debug_mode:
|
|
2803
|
+
print(f"🔍 EXTRACTED SEARCH TERMS: {search_terms}")
|
|
2804
|
+
|
|
2805
|
+
if not search_terms:
|
|
2806
|
+
search_terms = [''] # Empty search to show "no target found"
|
|
2784
2807
|
|
|
2785
2808
|
# Detect location hints
|
|
2786
2809
|
search_path = "~" # Default to home
|
|
@@ -2790,30 +2813,27 @@ class EnhancedNocturnalAgent:
|
|
|
2790
2813
|
search_path = "~/Documents"
|
|
2791
2814
|
|
|
2792
2815
|
search_results = []
|
|
2793
|
-
searched_terms = []
|
|
2794
2816
|
|
|
2795
|
-
for name in
|
|
2796
|
-
if name
|
|
2817
|
+
for name in search_terms:
|
|
2818
|
+
if not name:
|
|
2797
2819
|
continue
|
|
2798
|
-
|
|
2820
|
+
|
|
2821
|
+
# Search with increasing depth
|
|
2822
|
+
find_cmd = f"find {search_path} -maxdepth 4 -type d -iname '*{name}*' 2>/dev/null | head -20"
|
|
2823
|
+
find_output = self.execute_command(find_cmd)
|
|
2799
2824
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
print(f"🔍 FIND EXECUTED: {find_cmd}")
|
|
2808
|
-
print(f"🔍 FIND OUTPUT: {repr(find_output)}")
|
|
2809
|
-
|
|
2810
|
-
if find_output.strip():
|
|
2811
|
-
search_results.append(f"Searched for '*{name}*' in {search_path}:\n{find_output}")
|
|
2825
|
+
debug_mode = os.getenv("NOCTURNAL_DEBUG", "").lower() == "1"
|
|
2826
|
+
if debug_mode:
|
|
2827
|
+
print(f"🔍 FIND EXECUTED: {find_cmd}")
|
|
2828
|
+
print(f"🔍 FIND OUTPUT: {repr(find_output)}")
|
|
2829
|
+
|
|
2830
|
+
if find_output.strip():
|
|
2831
|
+
search_results.append(f"Searched for '*{name}*' in {search_path}:\n{find_output}")
|
|
2812
2832
|
|
|
2813
2833
|
if search_results:
|
|
2814
2834
|
api_results["shell_info"]["search_results"] = "\n\n".join(search_results)
|
|
2815
|
-
|
|
2816
|
-
api_results["shell_info"]["search_results"] = f"No directories matching
|
|
2835
|
+
else:
|
|
2836
|
+
api_results["shell_info"]["search_results"] = f"No directories found matching query in {search_path}"
|
|
2817
2837
|
|
|
2818
2838
|
tools_used.append("shell_execution")
|
|
2819
2839
|
except Exception as e:
|
|
@@ -7,7 +7,7 @@ long_description = readme_path.read_text() if readme_path.exists() else "Termina
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="cite-agent",
|
|
10
|
-
version="1.2.
|
|
10
|
+
version="1.2.13",
|
|
11
11
|
author="Cite-Agent Team",
|
|
12
12
|
author_email="contact@citeagent.dev",
|
|
13
13
|
description="Terminal AI assistant for academic research with citation verification",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.2.12"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/performance_service/rust_performance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/conversation_manager.py
RENAMED
|
File without changes
|
{cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/critical_paper_detector.py
RENAMED
|
File without changes
|
|
File without changes
|
{cite_agent-1.2.12 → cite_agent-1.2.13}/src/services/research_service/enhanced_synthesizer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cite_agent-1.2.12 → cite_agent-1.2.13}/tests/validation/test_truth_seeking_comprehensive.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|