chore: Checkpoint commit of unstaged changes, including new tests and debug scripts
This commit is contained in:
@@ -22,6 +22,9 @@ paths = []
|
||||
[gemini_cli]
|
||||
binary_path = "gemini"
|
||||
|
||||
[deepseek]
|
||||
reasoning_effort = "medium"
|
||||
|
||||
[agent.tools]
|
||||
run_powershell = true
|
||||
read_file = true
|
||||
|
||||
@@ -3,11 +3,12 @@ roles = [
|
||||
"AI",
|
||||
"Vendor API",
|
||||
"System",
|
||||
"Reasoning",
|
||||
]
|
||||
active = "main"
|
||||
auto_add = true
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-25T21:54:43"
|
||||
last_updated = "2026-02-26T21:33:34"
|
||||
history = []
|
||||
|
||||
@@ -3,12 +3,13 @@ roles = [
|
||||
"AI",
|
||||
"Vendor API",
|
||||
"System",
|
||||
"Reasoning",
|
||||
]
|
||||
history = []
|
||||
active = "TestDisc_1772074463"
|
||||
active = "TestDisc_1772159592"
|
||||
auto_add = true
|
||||
|
||||
[discussions.TestDisc_1772074463]
|
||||
[discussions.TestDisc_1772159592]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-25T21:54:37"
|
||||
last_updated = "2026-02-26T21:33:27"
|
||||
history = []
|
||||
|
||||
@@ -22,6 +22,9 @@ paths = []
|
||||
[gemini_cli]
|
||||
binary_path = "gemini"
|
||||
|
||||
[deepseek]
|
||||
reasoning_effort = "medium"
|
||||
|
||||
[agent.tools]
|
||||
run_powershell = true
|
||||
read_file = true
|
||||
|
||||
@@ -3,11 +3,12 @@ roles = [
|
||||
"AI",
|
||||
"Vendor API",
|
||||
"System",
|
||||
"Reasoning",
|
||||
]
|
||||
active = "main"
|
||||
auto_add = true
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-25T21:55:13"
|
||||
last_updated = "2026-02-26T21:34:05"
|
||||
history = []
|
||||
|
||||
@@ -22,6 +22,9 @@ paths = []
|
||||
[gemini_cli]
|
||||
binary_path = "gemini"
|
||||
|
||||
[deepseek]
|
||||
reasoning_effort = "medium"
|
||||
|
||||
[agent.tools]
|
||||
run_powershell = true
|
||||
read_file = true
|
||||
|
||||
@@ -3,11 +3,12 @@ roles = [
|
||||
"AI",
|
||||
"Vendor API",
|
||||
"System",
|
||||
"Reasoning",
|
||||
]
|
||||
active = "main"
|
||||
auto_add = true
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-25T21:55:00"
|
||||
last_updated = "2026-02-26T21:33:51"
|
||||
history = []
|
||||
|
||||
@@ -20,7 +20,10 @@ base_dir = "."
|
||||
paths = []
|
||||
|
||||
[gemini_cli]
|
||||
binary_path = "\"C:\\projects\\manual_slop\\.venv\\Scripts\\python.exe\" \"C:\\projects\\manual_slop\\tests\\mock_gemini_cli.py\""
|
||||
binary_path = "gemini"
|
||||
|
||||
[deepseek]
|
||||
reasoning_effort = "medium"
|
||||
|
||||
[agent.tools]
|
||||
run_powershell = true
|
||||
|
||||
@@ -3,26 +3,12 @@ roles = [
|
||||
"AI",
|
||||
"Vendor API",
|
||||
"System",
|
||||
"Reasoning",
|
||||
]
|
||||
active = "testing gemini-cli"
|
||||
active = "main"
|
||||
auto_add = true
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-25T23:33:11"
|
||||
history = [
|
||||
"@2026-02-25T22:34:11\nSystem:\n[PERFORMANCE ALERT] CPU usage high: 92.2%. Please consider optimizing recent changes or reducing load.",
|
||||
]
|
||||
|
||||
[discussions."testing deepseek"]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-26T12:38:38"
|
||||
history = [
|
||||
"@2026-02-26T12:38:30\nUser:\nwasap deepseek?",
|
||||
"@2026-02-26T12:38:34\nAI:\nHey there! 👋 I'm DeepSeek, an AI assistant created by DeepSeek Company. I'm here to help you with various tasks like coding, writing, analysis, problem-solving, and more!\n\nI can:\n- Write and debug code in multiple programming languages\n- Help with technical questions and explanations\n- Assist with writing and content creation\n- Analyze documents and data\n- Search the web for current information (when you enable it)\n- Work with files and directories\n\nWhat can I help you with today? Whether it's coding, learning something new, or just having a conversation, I'm ready to assist! 😊",
|
||||
]
|
||||
|
||||
[discussions."testing gemini-cli"]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-26T13:08:53"
|
||||
last_updated = "2026-02-26T21:34:07"
|
||||
history = []
|
||||
|
||||
44
tests/test_ast_parser_curated.py
Normal file
44
tests/test_ast_parser_curated.py
Normal file
@@ -0,0 +1,44 @@
|
||||
import pytest
|
||||
from file_cache import ASTParser
|
||||
|
||||
def test_ast_parser_get_curated_view():
|
||||
parser = ASTParser("python")
|
||||
code = '''
|
||||
@core_logic
|
||||
def core_func():
|
||||
"""Core logic doc."""
|
||||
print("this should be preserved")
|
||||
return True
|
||||
|
||||
def hot_func():
|
||||
# [HOT]
|
||||
print("this should also be preserved")
|
||||
return 42
|
||||
|
||||
def normal_func():
|
||||
"""Normal doc."""
|
||||
print("this should be stripped")
|
||||
return None
|
||||
|
||||
class MyClass:
|
||||
@core_logic
|
||||
def core_method(self):
|
||||
print("method preserved")
|
||||
'''
|
||||
curated = parser.get_curated_view(code)
|
||||
|
||||
# Check that core_func is preserved
|
||||
assert 'print("this should be preserved")' in curated
|
||||
assert 'return True' in curated
|
||||
|
||||
# Check that hot_func is preserved
|
||||
assert '# [HOT]' in curated
|
||||
assert 'print("this should also be preserved")' in curated
|
||||
|
||||
# Check that normal_func is stripped but docstring is preserved
|
||||
assert '"""Normal doc."""' in curated
|
||||
assert 'print("this should be stripped")' not in curated
|
||||
assert '...' in curated
|
||||
|
||||
# Check that core_method is preserved
|
||||
assert 'print("method preserved")' in curated
|
||||
Reference in New Issue
Block a user