Skip to content

Commit ec5c626

Browse files
authored
Merge pull request #494 from Hirudika4/dev6
fix: Update aider-genius application with the latest jaseci stack
2 parents 37ad3f0 + 76c5b0f commit ec5c626

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

aider-genius/aider/checkpoints/genius_mode.jac

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class GeniusAgent {
160160
issues = [];
161161
if (self.coder.auto_lint and self.coder.abs_fnames ) {
162162
try {
163-
for fname in <>list(self.coder.abs_fnames) {
163+
for fname in `list(self.coder.abs_fnames) {
164164
lint_result = self.coder.linter.lint(fname);
165165
if lint_result {
166166
issues.append(
@@ -684,7 +684,7 @@ class GeniusAgent {
684684
queries.append(f" 'python error solution ' {error_key_terms} ");
685685
}
686686
unique_queries = [];
687-
seen = <>set();
687+
seen = `set();
688688
for query in queries {
689689
if (query.lower() not in seen) {
690690
unique_queries.append(query);
@@ -711,7 +711,7 @@ class GeniusAgent {
711711
'Checking code style and syntax'
712712
);
713713
try {
714-
self.coder.commands.cmd_lint(fnames=<>list(self.coder.abs_fnames));
714+
self.coder.commands.cmd_lint(fnames=`list(self.coder.abs_fnames));
715715
lint_passed = (self.coder.lint_outcome is not False);
716716
validation_results['lint_passed'] = lint_passed;
717717
if not lint_passed {
@@ -815,7 +815,7 @@ class GeniusAgent {
815815

816816
"""Generate a comprehensive report of the agent's work"""
817817
def generate_report(self: Any) -> str {
818-
<>report =
818+
`report =
819819

820820
['Genius Agent Execution Report',
821821
('=' * 40),
@@ -826,24 +826,24 @@ class GeniusAgent {
826826
'',
827827
'Completed Tasks:'];
828828
for task in self.completed_tasks {
829-
<>report.append(f" ' ' {task['name']} ");
829+
`report.append(f" ' ' {task['name']} ");
830830
}
831831
if self.failed_tasks {
832-
<>report.append('\nFailed Tasks:');
832+
`report.append('\nFailed Tasks:');
833833
for task in self.failed_tasks {
834-
<>report.append(f" ' ' {task['name']} ");
834+
`report.append(f" ' ' {task['name']} ");
835835
}
836836
}
837837
if self.validation_results {
838-
<>report.extend(
838+
`report.extend(
839839

840840
['\nFinal Validation Results:',
841841
f" ' Lint: ' {'' if self.validation_results['lint_passed'] else ''} ",
842842
f" ' Tests: ' {'' if self.validation_results['tests_passed'] else ''} ",
843843
f" ' Security: ' {'' if self.validation_results['security_passed'] else ''} "]
844844
);
845845
}
846-
return '\n'.join(<>report);
846+
return '\n'.join(`report);
847847
}
848848

849849
"""Main execution loop for the Genius Agent. Implements the complete agent architecture with feedback loops."""
@@ -901,8 +901,8 @@ class GeniusAgent {
901901
self._handle_validation_failure(current_task, validation_details);
902902
}
903903
}
904-
<>report = self.generate_report();
905-
self.coder.io.tool_output(<>report);
904+
`report = self.generate_report();
905+
self.coder.io.tool_output(`report);
906906
success =
907907
((len(self.completed_tasks) > 0)
908908
and (not self.validation_results
@@ -976,7 +976,7 @@ class GeniusAgent {
976976
"""Legacy wrapper for backwards compatibility"""
977977
class GeniusMode(GeniusAgent) {
978978
def __init__(self: Any, coder: Any, task: Any = None, max_iterations: Any = 5) {
979-
<>super().init(coder, task, max_iterations);
979+
`super().init(coder, task, max_iterations);
980980
}
981981
}
982982

aider-genius/aider/checkpoints/genius_multi.jac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import from pathlib { Path }
88
import from typing { Any, Dict, List, Optional, Tuple }
99
import from aider.web_search { web_search, create_web_searcher }
1010
import from mcp_client { list_mcp_tools, call_mcp_tool }
11-
import from byllm {Model}
11+
import from byllm.lib {Model}
1212

1313
glob llm = Model(model_name="gpt-4o-mini");
1414

@@ -889,7 +889,7 @@ walker GeniusAgent {
889889
has execution_state: ExecutionState;
890890

891891
# Initialize the agent and start at root
892-
can start with `root entry {
892+
can start with Root entry {
893893
# Initialize execution state
894894
self.execution_state = ExecutionState(
895895
task_description=self.task,

aider-genius/aider/checkpoints/genius_osp.jac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import re;
55
import from pathlib { Path }
66
import from typing { Any, Dict, List, Optional, Tuple }
77
import from aider.web_search { web_search, create_web_searcher }
8-
import from mtllm {Model}
8+
import from byllm.lib {Model}
99

1010
with entry {
1111
try {
@@ -994,7 +994,7 @@ walker GeniusAgent {
994994
has planning_complete: bool = False;
995995

996996
# Initialize the agent and start at root
997-
can start with `root entry {
997+
can start with Root entry {
998998
# Initialize web searcher if available
999999
if WEB_SEARCH_AVAILABLE and create_web_searcher {
10001000
self.web_searcher = create_web_searcher(print_error=self.coder.io.tool_error);

aider-genius/aider/genius.jac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import from pathlib { Path }
88
import from typing { Any, Dict, List, Optional, Tuple }
99
import from aider.web_search { web_search, create_web_searcher }
1010
import from mcp_client { list_mcp_tools, call_mcp_tool }
11-
import from byllm {Model}
11+
import from byllm.lib {Model}
1212

1313
glob llm = Model(model_name="gpt-4o-mini");
1414

@@ -771,7 +771,7 @@ walker GeniusAgent {
771771
has planning_complete: bool = False;
772772

773773
# Initialize the agent and start at root
774-
can start with `root entry {
774+
can start with Root entry {
775775
# Set up planning and editor models first
776776
self.planning_model = Model(model_name="gpt-4.1-mini");
777777
self.editor_model = Model(model_name="gpt-4.1-mini");

aider-genius/aider/test.jac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import from mtllm { Model }
1+
import from byllm.lib { Model }
22
import from aider.web_search { web_search, create_web_searcher, WebSearcher }
33
import from typing { Optional, Dict, Any }
44
import from mcp_client { list_mcp_tools, call_mcp_tool }
55
import mcp_client;
66

77

88
with entry {
9-
planning_model = Model(model_name="gemini/gemini-2.5-flash", temperature=0.1,verbose=True);
9+
planning_model = Model(model_name="gemini/gemini-2.5-flash",config={"temperature": 0.1, "verbose": True});
1010
}
1111

1212
# Perform a web search using the Serper API.

aider-genius/aider/web_search.jac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class WebSearcher {
9696
data: Dict[(str, Any)],
9797
num_results: int
9898
) -> str {
99-
if not isinstance(data, <>dict) {
99+
if not isinstance(data, dict) {
100100
return 'Invalid search response format';
101101
}
102102
organic_results = data.get('organic', []);

0 commit comments

Comments
 (0)