nimcode 0.5.3__tar.gz → 0.5.5__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.
Files changed (48) hide show
  1. {nimcode-0.5.3 → nimcode-0.5.5}/PKG-INFO +8 -2
  2. {nimcode-0.5.3 → nimcode-0.5.5}/README.md +7 -1
  3. nimcode-0.5.5/src/nimcode/__version__.py +1 -0
  4. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/repl.py +2 -1
  5. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/tools.py +6 -1
  6. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode.egg-info/PKG-INFO +8 -2
  7. nimcode-0.5.3/src/nimcode/__version__.py +0 -1
  8. {nimcode-0.5.3 → nimcode-0.5.5}/setup.cfg +0 -0
  9. {nimcode-0.5.3 → nimcode-0.5.5}/setup.py +0 -0
  10. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/__init__.py +0 -0
  11. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/agent.py +0 -0
  12. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/cli.py +0 -0
  13. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/config.py +0 -0
  14. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/lenient_parser.py +0 -0
  15. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/mcp_client.py +0 -0
  16. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/memory.py +0 -0
  17. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/model_registry.py +0 -0
  18. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/nim_client.py +0 -0
  19. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/permissions.py +0 -0
  20. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/plugin_manager.py +0 -0
  21. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/rag.py +0 -0
  22. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/repo_map.py +0 -0
  23. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/updater.py +0 -0
  24. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode/watcher.py +0 -0
  25. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode.egg-info/SOURCES.txt +0 -0
  26. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode.egg-info/dependency_links.txt +0 -0
  27. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode.egg-info/entry_points.txt +0 -0
  28. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode.egg-info/requires.txt +0 -0
  29. {nimcode-0.5.3 → nimcode-0.5.5}/src/nimcode.egg-info/top_level.txt +0 -0
  30. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_agent.py +0 -0
  31. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_cli.py +0 -0
  32. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_config.py +0 -0
  33. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_lenient_parser.py +0 -0
  34. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_mcp_client.py +0 -0
  35. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_memory.py +0 -0
  36. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_model_registry.py +0 -0
  37. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_nim_client.py +0 -0
  38. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_permissions.py +0 -0
  39. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_plan_injection.py +0 -0
  40. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_plugin_manager.py +0 -0
  41. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_repl.py +0 -0
  42. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_repl_extra.py +0 -0
  43. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_repl_fixes.py +0 -0
  44. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_repl_trust.py +0 -0
  45. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_repo_map.py +0 -0
  46. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_tools.py +0 -0
  47. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_updater.py +0 -0
  48. {nimcode-0.5.3 → nimcode-0.5.5}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nimcode
3
- Version: 0.5.3
3
+ Version: 0.5.5
4
4
  Summary: A standalone, robust coding agent for NVIDIA NIM models.
5
5
  Home-page: https://github.com/Batunash/nimcode
6
6
  Author: Autonomous Agent
@@ -193,7 +193,13 @@ NimCode's behavior can be fully customized through `~/.nimcode/settings.json` (g
193
193
 
194
194
  ## 📋 Changelog
195
195
 
196
- ### v0.5.3 (Latest)
196
+ ### v0.5.5 (Latest)
197
+ - 🐛 **UI Bug Fix**: Fixed a visual bug where the CLI welcome banner hardcoded `NimCode v0.2.0` despite the user having updated to a newer version.
198
+
199
+ ### v0.5.4
200
+ - 🐛 **Bug Fix**: Fixed a bug where the `Read` tool would crash with a `TypeError` if an LLM provided the `offset` and `limit` arguments as strings (e.g. `'1'`) instead of integers.
201
+
202
+ ### v0.5.3
197
203
  - 🧭 **Phase/Task Plan Architecture**: `/plan` mode now forces the AI to output plans with meticulous Phase -> Task -> Checklist hierarchy (inspired by Claude Code), fixing superficial plan generation.
198
204
 
199
205
  ### v0.5.2
@@ -172,7 +172,13 @@ NimCode's behavior can be fully customized through `~/.nimcode/settings.json` (g
172
172
 
173
173
  ## 📋 Changelog
174
174
 
175
- ### v0.5.3 (Latest)
175
+ ### v0.5.5 (Latest)
176
+ - 🐛 **UI Bug Fix**: Fixed a visual bug where the CLI welcome banner hardcoded `NimCode v0.2.0` despite the user having updated to a newer version.
177
+
178
+ ### v0.5.4
179
+ - 🐛 **Bug Fix**: Fixed a bug where the `Read` tool would crash with a `TypeError` if an LLM provided the `offset` and `limit` arguments as strings (e.g. `'1'`) instead of integers.
180
+
181
+ ### v0.5.3
176
182
  - 🧭 **Phase/Task Plan Architecture**: `/plan` mode now forces the AI to output plans with meticulous Phase -> Task -> Checklist hierarchy (inspired by Claude Code), fixing superficial plan generation.
177
183
 
178
184
  ### v0.5.2
@@ -0,0 +1 @@
1
+ __version__ = "0.5.5"
@@ -191,7 +191,8 @@ class NimcodeREPL:
191
191
  right_content = "[bold orange3]Tips for getting started[/bold orange3]\nRun [cyan]/help[/cyan] to see available commands and shortcuts.\nUse [cyan]/models[/cyan] to change the current model.\n\n[bold orange3]What's new[/bold orange3]\n• Added native multiline REPL support (Alt+Enter for newline).\n• Reverted to classic UI.\n• More robust JSON parsing for tools."
192
192
 
193
193
  table.add_row(left_content, right_content)
194
- panel = Panel(table, title="[bold orange3]NimCode v0.2.0[/bold orange3]", border_style="orange3", box=ROUNDED, title_align="left")
194
+ from .__version__ import __version__
195
+ panel = Panel(table, title=f"[bold orange3]NimCode v{__version__}[/bold orange3]", border_style="orange3", box=ROUNDED, title_align="left")
195
196
  console.print(panel)
196
197
  console.print()
197
198
 
@@ -399,6 +399,12 @@ class ToolRegistry:
399
399
 
400
400
  @staticmethod
401
401
  def _execute_read(file_path: str, cwd: str, offset: int = 1, limit: int = 0) -> str:
402
+ try:
403
+ offset = max(1, int(offset))
404
+ limit = max(0, int(limit))
405
+ except ValueError:
406
+ return "Error executing Read: 'offset' and 'limit' must be integers."
407
+
402
408
  full_path = os.path.join(cwd, file_path)
403
409
  if not os.path.exists(full_path):
404
410
  raise ToolError(f"File not found: {file_path}")
@@ -417,7 +423,6 @@ class ToolRegistry:
417
423
  all_lines = f.readlines()
418
424
 
419
425
  total = len(all_lines)
420
- offset = max(1, int(offset))
421
426
 
422
427
  # No limit → whole file (and cache it).
423
428
  if limit == 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nimcode
3
- Version: 0.5.3
3
+ Version: 0.5.5
4
4
  Summary: A standalone, robust coding agent for NVIDIA NIM models.
5
5
  Home-page: https://github.com/Batunash/nimcode
6
6
  Author: Autonomous Agent
@@ -193,7 +193,13 @@ NimCode's behavior can be fully customized through `~/.nimcode/settings.json` (g
193
193
 
194
194
  ## 📋 Changelog
195
195
 
196
- ### v0.5.3 (Latest)
196
+ ### v0.5.5 (Latest)
197
+ - 🐛 **UI Bug Fix**: Fixed a visual bug where the CLI welcome banner hardcoded `NimCode v0.2.0` despite the user having updated to a newer version.
198
+
199
+ ### v0.5.4
200
+ - 🐛 **Bug Fix**: Fixed a bug where the `Read` tool would crash with a `TypeError` if an LLM provided the `offset` and `limit` arguments as strings (e.g. `'1'`) instead of integers.
201
+
202
+ ### v0.5.3
197
203
  - 🧭 **Phase/Task Plan Architecture**: `/plan` mode now forces the AI to output plans with meticulous Phase -> Task -> Checklist hierarchy (inspired by Claude Code), fixing superficial plan generation.
198
204
 
199
205
  ### v0.5.2
@@ -1 +0,0 @@
1
- __version__ = "0.5.3"
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