janito 1.0.0__tar.gz → 1.0.1__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 (57) hide show
  1. {janito-1.0.0 → janito-1.0.1}/PKG-INFO +1 -1
  2. janito-1.0.1/janito/__init__.py +1 -0
  3. {janito-1.0.0 → janito-1.0.1}/janito/cli/runner.py +3 -0
  4. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/chat_loop.py +2 -1
  5. {janito-1.0.0 → janito-1.0.1}/janito/templates/system_instructions.j2 +2 -0
  6. {janito-1.0.0 → janito-1.0.1}/janito.egg-info/PKG-INFO +1 -1
  7. {janito-1.0.0 → janito-1.0.1}/pyproject.toml +1 -1
  8. janito-1.0.0/janito/__init__.py +0 -1
  9. {janito-1.0.0 → janito-1.0.1}/LICENSE +0 -0
  10. {janito-1.0.0 → janito-1.0.1}/README.md +0 -0
  11. {janito-1.0.0 → janito-1.0.1}/janito/__main__.py +0 -0
  12. {janito-1.0.0 → janito-1.0.1}/janito/agent/__init__.py +0 -0
  13. {janito-1.0.0 → janito-1.0.1}/janito/agent/agent.py +0 -0
  14. {janito-1.0.0 → janito-1.0.1}/janito/agent/config.py +0 -0
  15. {janito-1.0.0 → janito-1.0.1}/janito/agent/config_defaults.py +0 -0
  16. {janito-1.0.0 → janito-1.0.1}/janito/agent/conversation.py +0 -0
  17. {janito-1.0.0 → janito-1.0.1}/janito/agent/queued_tool_handler.py +0 -0
  18. {janito-1.0.0 → janito-1.0.1}/janito/agent/runtime_config.py +0 -0
  19. {janito-1.0.0 → janito-1.0.1}/janito/agent/tool_handler.py +0 -0
  20. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/__init__.py +0 -0
  21. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/ask_user.py +0 -0
  22. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/bash_exec.py +0 -0
  23. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/create_directory.py +0 -0
  24. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/create_file.py +0 -0
  25. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/fetch_url.py +0 -0
  26. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/file_str_replace.py +0 -0
  27. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/find_files.py +0 -0
  28. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/gitignore_utils.py +0 -0
  29. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/move_file.py +0 -0
  30. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/remove_file.py +0 -0
  31. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/rich_live.py +0 -0
  32. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/rich_utils.py +0 -0
  33. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/search_text.py +0 -0
  34. {janito-1.0.0 → janito-1.0.1}/janito/agent/tools/view_file.py +0 -0
  35. {janito-1.0.0 → janito-1.0.1}/janito/cli/__init__.py +0 -0
  36. {janito-1.0.0 → janito-1.0.1}/janito/cli/_print_config.py +0 -0
  37. {janito-1.0.0 → janito-1.0.1}/janito/cli/_utils.py +0 -0
  38. {janito-1.0.0 → janito-1.0.1}/janito/cli/arg_parser.py +0 -0
  39. {janito-1.0.0 → janito-1.0.1}/janito/cli/config_commands.py +0 -0
  40. {janito-1.0.0 → janito-1.0.1}/janito/cli/logging_setup.py +0 -0
  41. {janito-1.0.0 → janito-1.0.1}/janito/cli/main.py +0 -0
  42. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/__init__.py +0 -0
  43. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/commands.py +0 -0
  44. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/config_shell.py +0 -0
  45. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/load_prompt.py +0 -0
  46. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/session_manager.py +0 -0
  47. {janito-1.0.0 → janito-1.0.1}/janito/cli_chat_shell/ui.py +0 -0
  48. {janito-1.0.0 → janito-1.0.1}/janito/render_prompt.py +0 -0
  49. {janito-1.0.0 → janito-1.0.1}/janito/web/__init__.py +0 -0
  50. {janito-1.0.0 → janito-1.0.1}/janito/web/__main__.py +0 -0
  51. {janito-1.0.0 → janito-1.0.1}/janito/web/app.py +0 -0
  52. {janito-1.0.0 → janito-1.0.1}/janito.egg-info/SOURCES.txt +0 -0
  53. {janito-1.0.0 → janito-1.0.1}/janito.egg-info/dependency_links.txt +0 -0
  54. {janito-1.0.0 → janito-1.0.1}/janito.egg-info/entry_points.txt +0 -0
  55. {janito-1.0.0 → janito-1.0.1}/janito.egg-info/requires.txt +0 -0
  56. {janito-1.0.0 → janito-1.0.1}/janito.egg-info/top_level.txt +0 -0
  57. {janito-1.0.0 → janito-1.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janito
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: An agent framework with built-in tools.
5
5
  Author-email: João Pinto <joao.pinto@gmail.com>
6
6
  License: MIT
@@ -0,0 +1 @@
1
+ __version__ = "1.0.1"
@@ -31,6 +31,9 @@ def run_cli(args):
31
31
  sys.exit(0)
32
32
 
33
33
  role = args.role or unified_config.get("role", "software engineer")
34
+ # Ensure runtime_config is updated so chat shell sees the role
35
+ if args.role:
36
+ runtime_config.set('role', args.role)
34
37
  # if args.role:
35
38
  # runtime_config.set('role', args.role)
36
39
  system_prompt = args.system_prompt or unified_config.get("system_prompt")
@@ -6,6 +6,7 @@ from .ui import print_welcome, get_toolbar_func, get_prompt_session
6
6
  from janito import __version__
7
7
  from .commands import handle_command
8
8
  from janito.agent.config import effective_config
9
+ from janito.agent.runtime_config import runtime_config
9
10
  from janito.agent.conversation import EmptyResponseError, ProviderError
10
11
 
11
12
 
@@ -68,7 +69,7 @@ def start_chat_shell(agent, continue_session=False):
68
69
  session = get_prompt_session(
69
70
  get_toolbar_func(
70
71
  get_messages, get_usage, get_elapsed, model_name=model_name,
71
- role_ref=lambda: effective_config.get('role')
72
+ role_ref=lambda: runtime_config.get('role') or effective_config.get('role')
72
73
  ),
73
74
  mem_history
74
75
  )
@@ -1,5 +1,7 @@
1
1
  You are a helpful {{ role }}.
2
2
 
3
+ When using tools, please describe the purpose before calling them.
4
+
3
5
  <context>
4
6
  Always review `docs/structure.md` before conducting file-specific searches.
5
7
  Unless specified otherwise, look for the files that match the questions context.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janito
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: An agent framework with built-in tools.
5
5
  Author-email: João Pinto <joao.pinto@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "janito"
3
- version = "1.0.0"
3
+ version = "1.0.1"
4
4
  description = "An agent framework with built-in tools."
5
5
  authors = [
6
6
  { name = "João Pinto", email = "joao.pinto@gmail.com" }
@@ -1 +0,0 @@
1
- __version__ = "1.0.0"
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