nimcode 0.8.6__tar.gz → 0.8.7__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.
- {nimcode-0.8.6 → nimcode-0.8.7}/PKG-INFO +1 -1
- nimcode-0.8.7/src/nimcode/__version__.py +1 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/agent.py +3 -1
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/model_registry.py +1 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/tools.py +4 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode.egg-info/PKG-INFO +1 -1
- nimcode-0.8.6/src/nimcode/__version__.py +0 -1
- {nimcode-0.8.6 → nimcode-0.8.7}/README.md +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/setup.cfg +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/setup.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/__init__.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/agents/__init__.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/agents/qa_agent.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/cli.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/config.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/lenient_parser.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/mcp_client.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/memory.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/nim_client.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/permissions.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/plugin_manager.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/rag.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/repl.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/repo_map.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/task_manager.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/updater.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode/watcher.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode.egg-info/SOURCES.txt +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode.egg-info/dependency_links.txt +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode.egg-info/entry_points.txt +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode.egg-info/requires.txt +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/src/nimcode.egg-info/top_level.txt +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_advanced_blockers.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_agent.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_bash_blockers.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_cli.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_config.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_lazy_blockers.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_lenient_parser.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_mcp_client.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_memory.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_model_registry.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_nim_client.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_permissions.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_plan_injection.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_plugin_manager.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_qa_agent.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_repl.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_repl_extra.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_repl_fixes.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_repl_trust.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_repo_map.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_task_manager.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_tools.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_updater.py +0 -0
- {nimcode-0.8.6 → nimcode-0.8.7}/tests/test_version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.8.7"
|
|
@@ -277,7 +277,9 @@ class Agent:
|
|
|
277
277
|
self.max_turns = max_turns if max_turns is not None else (0 if cfg_max_turns == 0 else cfg_max_turns)
|
|
278
278
|
|
|
279
279
|
cfg_max_tokens = self.settings.get("max_tokens", 120000)
|
|
280
|
-
|
|
280
|
+
from .model_registry import get_context_window
|
|
281
|
+
model_limit = get_context_window(self.model)
|
|
282
|
+
effective_max_tokens = max_tokens if max_tokens is not None else min(cfg_max_tokens, model_limit)
|
|
281
283
|
self.memory = MemoryManager(max_tokens=effective_max_tokens)
|
|
282
284
|
|
|
283
285
|
self.permission_engine = PermissionEngine(mode=permission_mode)
|
|
@@ -306,6 +306,8 @@ class ToolRegistry:
|
|
|
306
306
|
|
|
307
307
|
@staticmethod
|
|
308
308
|
def _check_lazy_code(content: str, file_path: str):
|
|
309
|
+
if file_path.lower().endswith(('.md', '.txt', '.json', '.yaml', '.yml', '.csv', '.ini', '.toml')):
|
|
310
|
+
return
|
|
309
311
|
import re
|
|
310
312
|
# Broad regex for // TO DO, // TODO, # TODO, // FIXME, etc. with flexible spaces
|
|
311
313
|
if re.search(r'(?i)(?://|#)\s*(?:to\s*do|fix\s*me)', content):
|
|
@@ -680,6 +682,8 @@ class ToolRegistry:
|
|
|
680
682
|
|
|
681
683
|
@staticmethod
|
|
682
684
|
def _check_dependency_hallucination(content: str, file_path: str, cwd: str):
|
|
685
|
+
if file_path.lower().endswith(('.md', '.txt', '.json', '.yaml', '.yml', '.csv', '.ini', '.toml')):
|
|
686
|
+
return
|
|
683
687
|
import re
|
|
684
688
|
pass
|
|
685
689
|
import json
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.6"
|
|
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
|