janito 2.5.1__tar.gz → 2.6.0__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 (297) hide show
  1. {janito-2.5.1 → janito-2.6.0}/PKG-INFO +412 -412
  2. {janito-2.5.1 → janito-2.6.0}/README.md +6 -6
  3. {janito-2.5.1 → janito-2.6.0}/docs/reference/cli-options.md +11 -1
  4. janito-2.6.0/docs/security.md +29 -0
  5. janito-2.6.0/git_diff.txt +0 -0
  6. janito-2.6.0/github_diff +0 -0
  7. {janito-2.5.1 → janito-2.6.0}/janito/agent/setup_agent.py +231 -223
  8. janito-2.6.0/janito/agent/templates/profiles/system_prompt_template_software_developer.txt.j2 +39 -0
  9. janito-2.6.0/janito/cli/chat_mode/bindings.py +37 -0
  10. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/session.py +282 -294
  11. janito-2.6.0/janito/cli/chat_mode/session_profile_select.py +150 -0
  12. janito-2.6.0/janito/cli/chat_mode/shell/commands/tools.py +73 -0
  13. janito-2.6.0/janito/cli/chat_mode/toolbar.py +83 -0
  14. janito-2.6.0/janito/cli/cli_commands/list_tools.py +71 -0
  15. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/show_system_prompt.py +70 -49
  16. {janito-2.5.1 → janito-2.6.0}/janito/cli/core/runner.py +6 -1
  17. {janito-2.5.1 → janito-2.6.0}/janito/cli/core/setters.py +43 -34
  18. {janito-2.5.1 → janito-2.6.0}/janito/cli/main_cli.py +25 -1
  19. {janito-2.5.1 → janito-2.6.0}/janito/cli/prompt_core.py +76 -69
  20. {janito-2.5.1 → janito-2.6.0}/janito/cli/rich_terminal_reporter.py +22 -1
  21. {janito-2.5.1 → janito-2.6.0}/janito/cli/single_shot_mode/handler.py +95 -94
  22. {janito-2.5.1 → janito-2.6.0}/janito/drivers/driver_registry.py +27 -29
  23. {janito-2.5.1 → janito-2.6.0}/janito/drivers/openai/driver.py +436 -494
  24. {janito-2.5.1 → janito-2.6.0}/janito/llm/agent.py +54 -68
  25. {janito-2.5.1 → janito-2.6.0}/janito/provider_registry.py +178 -178
  26. janito-2.6.0/janito/providers/anthropic/model_info.py +41 -0
  27. janito-2.6.0/janito/providers/anthropic/provider.py +80 -0
  28. {janito-2.5.1 → janito-2.6.0}/janito/providers/provider_static_info.py +18 -17
  29. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/__init__.py +66 -65
  30. janito-2.6.0/janito/tools/adapters/local/adapter.py +162 -0
  31. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/create_directory.py +9 -9
  32. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/create_file.py +12 -12
  33. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/delete_text_in_file.py +16 -16
  34. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/find_files.py +2 -2
  35. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/get_file_outline/core.py +5 -5
  36. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/get_file_outline/search_outline.py +4 -4
  37. janito-2.6.0/janito/tools/adapters/local/open_html_in_browser.py +39 -0
  38. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/python_file_run.py +4 -4
  39. janito-2.6.0/janito/tools/adapters/local/read_files.py +40 -0
  40. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/remove_directory.py +5 -5
  41. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/remove_file.py +4 -4
  42. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/replace_text_in_file.py +21 -21
  43. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/run_bash_command.py +1 -1
  44. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/search_text/pattern_utils.py +2 -2
  45. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/search_text/traverse_directory.py +10 -10
  46. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/core.py +7 -7
  47. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/css_validator.py +2 -2
  48. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/html_validator.py +7 -7
  49. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/js_validator.py +2 -2
  50. janito-2.6.0/janito/tools/adapters/local/validate_file_syntax/json_validator.py +6 -0
  51. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/markdown_validator.py +2 -2
  52. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/ps1_validator.py +2 -2
  53. janito-2.6.0/janito/tools/adapters/local/validate_file_syntax/python_validator.py +5 -0
  54. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/xml_validator.py +2 -2
  55. janito-2.6.0/janito/tools/adapters/local/validate_file_syntax/yaml_validator.py +6 -0
  56. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/view_file.py +12 -12
  57. janito-2.6.0/janito/tools/path_security.py +204 -0
  58. {janito-2.5.1 → janito-2.6.0}/janito/tools/tool_use_tracker.py +12 -12
  59. {janito-2.5.1 → janito-2.6.0}/janito/tools/tools_adapter.py +66 -34
  60. {janito-2.5.1 → janito-2.6.0}/janito.egg-info/PKG-INFO +412 -412
  61. {janito-2.5.1 → janito-2.6.0}/janito.egg-info/SOURCES.txt +7 -2
  62. {janito-2.5.1 → janito-2.6.0}/setup.cfg +4 -4
  63. janito-2.6.0/tests/adapters/local/test_read_files.py +24 -0
  64. {janito-2.5.1 → janito-2.6.0}/tests/test_cli_list_models.py +26 -26
  65. {janito-2.5.1 → janito-2.6.0}/tools/release.py +160 -160
  66. janito-2.5.1/janito/cli/chat_mode/bindings.py +0 -62
  67. janito-2.5.1/janito/cli/chat_mode/session_profile_select.py +0 -80
  68. janito-2.5.1/janito/cli/chat_mode/shell/commands/tools.py +0 -70
  69. janito-2.5.1/janito/cli/chat_mode/toolbar.py +0 -109
  70. janito-2.5.1/janito/cli/cli_commands/list_tools.py +0 -86
  71. janito-2.5.1/janito/drivers/anthropic/driver.py +0 -113
  72. janito-2.5.1/janito/providers/anthropic/model_info.py +0 -22
  73. janito-2.5.1/janito/providers/anthropic/provider.py +0 -67
  74. janito-2.5.1/janito/tools/adapters/local/adapter.py +0 -101
  75. janito-2.5.1/janito/tools/adapters/local/get_file_outline/python_outline_v2.py +0 -156
  76. janito-2.5.1/janito/tools/adapters/local/open_html_in_browser.py +0 -39
  77. janito-2.5.1/janito/tools/adapters/local/validate_file_syntax/json_validator.py +0 -6
  78. janito-2.5.1/janito/tools/adapters/local/validate_file_syntax/python_validator.py +0 -5
  79. janito-2.5.1/janito/tools/adapters/local/validate_file_syntax/yaml_validator.py +0 -6
  80. {janito-2.5.1 → janito-2.6.0}/.codespellrc +0 -0
  81. {janito-2.5.1 → janito-2.6.0}/.github/workflows/python-app.yml +0 -0
  82. {janito-2.5.1 → janito-2.6.0}/.gitignore +0 -0
  83. {janito-2.5.1 → janito-2.6.0}/.pre-commit-config.yaml +0 -0
  84. {janito-2.5.1 → janito-2.6.0}/.secrets.baseline +0 -0
  85. {janito-2.5.1 → janito-2.6.0}/.vscode/settings.json +0 -0
  86. {janito-2.5.1 → janito-2.6.0}/CHANGELOG.md +0 -0
  87. {janito-2.5.1 → janito-2.6.0}/LICENSE +0 -0
  88. {janito-2.5.1 → janito-2.6.0}/PROVIDERS.md +0 -0
  89. {janito-2.5.1 → janito-2.6.0}/README-dev.md +0 -0
  90. {janito-2.5.1 → janito-2.6.0}/adding_mcp.txt +0 -0
  91. {janito-2.5.1 → janito-2.6.0}/docs/DIV.md +0 -0
  92. {janito-2.5.1 → janito-2.6.0}/docs/Interfaces.txt +0 -0
  93. {janito-2.5.1 → janito-2.6.0}/docs/TOOLBAR-STYLING.md +0 -0
  94. {janito-2.5.1 → janito-2.6.0}/docs/about/costs.md +0 -0
  95. {janito-2.5.1 → janito-2.6.0}/docs/about/vs-webchats.md +0 -0
  96. {janito-2.5.1 → janito-2.6.0}/docs/about/why.md +0 -0
  97. {janito-2.5.1 → janito-2.6.0}/docs/alternatives.md +0 -0
  98. {janito-2.5.1 → janito-2.6.0}/docs/code_intelligence/agentic-frameworks-comparison.md +0 -0
  99. {janito-2.5.1 → janito-2.6.0}/docs/code_intelligence/code-generation-challenges.md +0 -0
  100. {janito-2.5.1 → janito-2.6.0}/docs/code_intelligence/code-generation-observability.md +0 -0
  101. {janito-2.5.1 → janito-2.6.0}/docs/code_intelligence/our-approach.md +0 -0
  102. {janito-2.5.1 → janito-2.6.0}/docs/code_intelligence/why-string-replacement.md +0 -0
  103. {janito-2.5.1 → janito-2.6.0}/docs/concepts/analysis-style.md +0 -0
  104. {janito-2.5.1 → janito-2.6.0}/docs/concepts/index.md +0 -0
  105. {janito-2.5.1 → janito-2.6.0}/docs/concepts/language-model-clients.md +0 -0
  106. {janito-2.5.1 → janito-2.6.0}/docs/concepts/prompt-design-style.md +0 -0
  107. {janito-2.5.1 → janito-2.6.0}/docs/deepseek-setup.md +0 -0
  108. {janito-2.5.1 → janito-2.6.0}/docs/driver-flow.md +0 -0
  109. {janito-2.5.1 → janito-2.6.0}/docs/driver-request-cancellation.md +0 -0
  110. {janito-2.5.1 → janito-2.6.0}/docs/drivers/events.md +0 -0
  111. {janito-2.5.1 → janito-2.6.0}/docs/drivers.md +0 -0
  112. {janito-2.5.1 → janito-2.6.0}/docs/event-bus.md +0 -0
  113. {janito-2.5.1 → janito-2.6.0}/docs/guides/configuration.md +0 -0
  114. {janito-2.5.1 → janito-2.6.0}/docs/guides/developing.md +0 -0
  115. {janito-2.5.1 → janito-2.6.0}/docs/guides/installation.md +0 -0
  116. {janito-2.5.1 → janito-2.6.0}/docs/guides/profiles.md +0 -0
  117. {janito-2.5.1 → janito-2.6.0}/docs/guides/prompting/README.md +0 -0
  118. {janito-2.5.1 → janito-2.6.0}/docs/guides/single-shot-terminal.md +0 -0
  119. {janito-2.5.1 → janito-2.6.0}/docs/guides/terminal-shell.md +0 -0
  120. {janito-2.5.1 → janito-2.6.0}/docs/guides/tools-developer-guide.md +0 -0
  121. {janito-2.5.1 → janito-2.6.0}/docs/guides/using.md +0 -0
  122. {janito-2.5.1 → janito-2.6.0}/docs/guides/using_tools.md +0 -0
  123. {janito-2.5.1 → janito-2.6.0}/docs/imgs/code-generation-observability.png +0 -0
  124. {janito-2.5.1 → janito-2.6.0}/docs/imgs/code_generation_observability.png +0 -0
  125. {janito-2.5.1 → janito-2.6.0}/docs/imgs/happy-programmer.png +0 -0
  126. {janito-2.5.1 → janito-2.6.0}/docs/imgs/happy-programmer.svg +0 -0
  127. {janito-2.5.1 → janito-2.6.0}/docs/imgs/terminal-one-shot.png +0 -0
  128. {janito-2.5.1 → janito-2.6.0}/docs/imgs/terminal-shell.png +0 -0
  129. {janito-2.5.1 → janito-2.6.0}/docs/imgs/terminal_one_shot.png +0 -0
  130. {janito-2.5.1 → janito-2.6.0}/docs/imgs/terminal_shell.png +0 -0
  131. {janito-2.5.1 → janito-2.6.0}/docs/index.md +0 -0
  132. {janito-2.5.1 → janito-2.6.0}/docs/llm-drivers-required-config.md +0 -0
  133. {janito-2.5.1 → janito-2.6.0}/docs/llm-drivers.md +0 -0
  134. {janito-2.5.1 → janito-2.6.0}/docs/meta/developer-toolchain.md +0 -0
  135. {janito-2.5.1 → janito-2.6.0}/docs/meta/quality-checks.txt +0 -0
  136. {janito-2.5.1 → janito-2.6.0}/docs/reference/api.md +0 -0
  137. {janito-2.5.1 → janito-2.6.0}/docs/reference/azure-openai.md +0 -0
  138. {janito-2.5.1 → janito-2.6.0}/docs/reference/message-handler-model.md +0 -0
  139. {janito-2.5.1 → janito-2.6.0}/docs/reference/rich-message-handler.md +0 -0
  140. {janito-2.5.1 → janito-2.6.0}/docs/supported-providers-models.md +0 -0
  141. {janito-2.5.1 → janito-2.6.0}/docs/terms.md +0 -0
  142. {janito-2.5.1 → janito-2.6.0}/docs/tools-index.md +0 -0
  143. {janito-2.5.1 → janito-2.6.0}/docs/tools-natural-results.md +0 -0
  144. {janito-2.5.1 → janito-2.6.0}/docs/tools-precision.md +0 -0
  145. {janito-2.5.1 → janito-2.6.0}/janito/__init__.py +0 -0
  146. {janito-2.5.1 → janito-2.6.0}/janito/__main__.py +0 -0
  147. {janito-2.5.1 → janito-2.6.0}/janito/_version.py +0 -0
  148. {janito-2.5.1 → janito-2.6.0}/janito/agent/templates/profiles/system_prompt_template_assistant.txt.j2 +0 -0
  149. {janito-2.5.1 → janito-2.6.0}/janito/agent/templates/profiles/system_prompt_template_developer.txt.j2 +0 -0
  150. {janito-2.5.1 → janito-2.6.0}/janito/cli/__init__.py +0 -0
  151. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/chat_entry.py +0 -0
  152. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/prompt_style.py +0 -0
  153. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/script_runner.py +0 -0
  154. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/autocomplete.py +0 -0
  155. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/__init__.py +0 -0
  156. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/_priv_check.py +0 -0
  157. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/bang.py +0 -0
  158. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/base.py +0 -0
  159. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/clear.py +0 -0
  160. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/conversation_restart.py +0 -0
  161. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/execute.py +0 -0
  162. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/help.py +0 -0
  163. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/history_view.py +0 -0
  164. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/lang.py +0 -0
  165. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/livelogs.py +0 -0
  166. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/model.py +0 -0
  167. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/multi.py +0 -0
  168. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/prompt.py +0 -0
  169. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/read.py +0 -0
  170. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/role.py +0 -0
  171. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/session.py +0 -0
  172. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/session_control.py +0 -0
  173. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/utility.py +0 -0
  174. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/verbose.py +0 -0
  175. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands/write.py +0 -0
  176. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/commands.bak.zip +0 -0
  177. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/input_history.py +0 -0
  178. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/session/__init__.py +0 -0
  179. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/session/history.py +0 -0
  180. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/session/manager.py +0 -0
  181. {janito-2.5.1 → janito-2.6.0}/janito/cli/chat_mode/shell/session.bak.zip +0 -0
  182. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/list_models.py +0 -0
  183. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/list_providers.py +0 -0
  184. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/model_selection.py +0 -0
  185. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/model_utils.py +0 -0
  186. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/set_api_key.py +0 -0
  187. {janito-2.5.1 → janito-2.6.0}/janito/cli/cli_commands/show_config.py +0 -0
  188. {janito-2.5.1 → janito-2.6.0}/janito/cli/config.py +0 -0
  189. {janito-2.5.1 → janito-2.6.0}/janito/cli/console.py +0 -0
  190. {janito-2.5.1 → janito-2.6.0}/janito/cli/core/__init__.py +0 -0
  191. {janito-2.5.1 → janito-2.6.0}/janito/cli/core/event_logger.py +0 -0
  192. {janito-2.5.1 → janito-2.6.0}/janito/cli/core/getters.py +0 -0
  193. {janito-2.5.1 → janito-2.6.0}/janito/cli/core/unsetters.py +0 -0
  194. {janito-2.5.1 → janito-2.6.0}/janito/cli/main.py +0 -0
  195. {janito-2.5.1 → janito-2.6.0}/janito/cli/prompt_handler.py +0 -0
  196. {janito-2.5.1 → janito-2.6.0}/janito/cli/prompt_setup.py +0 -0
  197. {janito-2.5.1 → janito-2.6.0}/janito/cli/single_shot_mode/__init__.py +0 -0
  198. {janito-2.5.1 → janito-2.6.0}/janito/cli/utils.py +0 -0
  199. {janito-2.5.1 → janito-2.6.0}/janito/cli/verbose_output.py +0 -0
  200. {janito-2.5.1 → janito-2.6.0}/janito/config.py +0 -0
  201. {janito-2.5.1 → janito-2.6.0}/janito/config_manager.py +0 -0
  202. {janito-2.5.1 → janito-2.6.0}/janito/conversation_history.py +0 -0
  203. {janito-2.5.1 → janito-2.6.0}/janito/dir_walk_utils.py +0 -0
  204. {janito-2.5.1 → janito-2.6.0}/janito/driver_events.py +0 -0
  205. {janito-2.5.1 → janito-2.6.0}/janito/drivers/azure_openai/driver.py +0 -0
  206. {janito-2.5.1 → janito-2.6.0}/janito/drivers/dashscope.bak.zip +0 -0
  207. {janito-2.5.1 → janito-2.6.0}/janito/drivers/mistralai/driver.py +0 -0
  208. {janito-2.5.1 → janito-2.6.0}/janito/drivers/openai/README.md +0 -0
  209. {janito-2.5.1 → janito-2.6.0}/janito/drivers/openai_responses.bak.zip +0 -0
  210. {janito-2.5.1 → janito-2.6.0}/janito/event_bus/__init__.py +0 -0
  211. {janito-2.5.1 → janito-2.6.0}/janito/event_bus/bus.py +0 -0
  212. {janito-2.5.1 → janito-2.6.0}/janito/event_bus/event.py +0 -0
  213. {janito-2.5.1 → janito-2.6.0}/janito/event_bus/handler.py +0 -0
  214. {janito-2.5.1 → janito-2.6.0}/janito/event_bus/queue_bus.py +0 -0
  215. {janito-2.5.1 → janito-2.6.0}/janito/exceptions.py +0 -0
  216. {janito-2.5.1 → janito-2.6.0}/janito/formatting.py +0 -0
  217. {janito-2.5.1 → janito-2.6.0}/janito/formatting_token.py +0 -0
  218. {janito-2.5.1 → janito-2.6.0}/janito/gitignore_utils.py +0 -0
  219. {janito-2.5.1 → janito-2.6.0}/janito/i18n/__init__.py +0 -0
  220. {janito-2.5.1 → janito-2.6.0}/janito/i18n/messages.py +0 -0
  221. {janito-2.5.1 → janito-2.6.0}/janito/i18n/pt.py +0 -0
  222. {janito-2.5.1 → janito-2.6.0}/janito/llm/README.md +0 -0
  223. {janito-2.5.1 → janito-2.6.0}/janito/llm/__init__.py +0 -0
  224. {janito-2.5.1 → janito-2.6.0}/janito/llm/auth.py +0 -0
  225. {janito-2.5.1 → janito-2.6.0}/janito/llm/driver.py +0 -0
  226. {janito-2.5.1 → janito-2.6.0}/janito/llm/driver_config.py +0 -0
  227. {janito-2.5.1 → janito-2.6.0}/janito/llm/driver_config_builder.py +0 -0
  228. {janito-2.5.1 → janito-2.6.0}/janito/llm/driver_input.py +0 -0
  229. {janito-2.5.1 → janito-2.6.0}/janito/llm/message_parts.py +0 -0
  230. {janito-2.5.1 → janito-2.6.0}/janito/llm/model.py +0 -0
  231. {janito-2.5.1 → janito-2.6.0}/janito/llm/provider.py +0 -0
  232. {janito-2.5.1 → janito-2.6.0}/janito/perf_singleton.py +0 -0
  233. {janito-2.5.1 → janito-2.6.0}/janito/performance_collector.py +0 -0
  234. {janito-2.5.1 → janito-2.6.0}/janito/platform_discovery.py +0 -0
  235. {janito-2.5.1 → janito-2.6.0}/janito/provider_config.py +0 -0
  236. {janito-2.5.1 → janito-2.6.0}/janito/providers/__init__.py +0 -0
  237. {janito-2.5.1 → janito-2.6.0}/janito/providers/azure_openai/model_info.py +0 -0
  238. {janito-2.5.1 → janito-2.6.0}/janito/providers/azure_openai/provider.py +0 -0
  239. {janito-2.5.1 → janito-2.6.0}/janito/providers/dashscope.bak.zip +0 -0
  240. {janito-2.5.1 → janito-2.6.0}/janito/providers/deepseek/__init__.py +0 -0
  241. {janito-2.5.1 → janito-2.6.0}/janito/providers/deepseek/model_info.py +0 -0
  242. {janito-2.5.1 → janito-2.6.0}/janito/providers/deepseek/provider.py +0 -0
  243. {janito-2.5.1 → janito-2.6.0}/janito/providers/google/__init__.py +0 -0
  244. {janito-2.5.1 → janito-2.6.0}/janito/providers/google/model_info.py +0 -0
  245. {janito-2.5.1 → janito-2.6.0}/janito/providers/google/provider.py +0 -0
  246. {janito-2.5.1 → janito-2.6.0}/janito/providers/mistralai/model_info.py +0 -0
  247. {janito-2.5.1 → janito-2.6.0}/janito/providers/mistralai/provider.py +0 -0
  248. {janito-2.5.1 → janito-2.6.0}/janito/providers/openai/__init__.py +0 -0
  249. {janito-2.5.1 → janito-2.6.0}/janito/providers/openai/model_info.py +0 -0
  250. {janito-2.5.1 → janito-2.6.0}/janito/providers/openai/provider.py +0 -0
  251. {janito-2.5.1 → janito-2.6.0}/janito/providers/openai/schema_generator.py +0 -0
  252. {janito-2.5.1 → janito-2.6.0}/janito/providers/registry.py +0 -0
  253. {janito-2.5.1 → janito-2.6.0}/janito/report_events.py +0 -0
  254. {janito-2.5.1 → janito-2.6.0}/janito/shell.bak.zip +0 -0
  255. {janito-2.5.1 → janito-2.6.0}/janito/tools/DOCSTRING_STANDARD.txt +0 -0
  256. {janito-2.5.1 → janito-2.6.0}/janito/tools/README.md +0 -0
  257. {janito-2.5.1 → janito-2.6.0}/janito/tools/__init__.py +0 -0
  258. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/__init__.py +0 -0
  259. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/ask_user.py +0 -0
  260. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/copy_file.py +0 -0
  261. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/fetch_url.py +0 -0
  262. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/get_file_outline/__init__.py +0 -0
  263. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/get_file_outline/java_outline.py +0 -0
  264. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/get_file_outline/markdown_outline.py +0 -0
  265. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/get_file_outline/python_outline.py +0 -0
  266. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/move_file.py +0 -0
  267. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/open_url.py +0 -0
  268. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/python_code_run.py +0 -0
  269. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/python_command_run.py +0 -0
  270. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/run_powershell_command.py +0 -0
  271. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/search_text/__init__.py +0 -0
  272. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/search_text/core.py +0 -0
  273. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/search_text/match_lines.py +0 -0
  274. {janito-2.5.1 → janito-2.6.0}/janito/tools/adapters/local/validate_file_syntax/__init__.py +0 -0
  275. {janito-2.5.1 → janito-2.6.0}/janito/tools/inspect_registry.py +0 -0
  276. {janito-2.5.1 → janito-2.6.0}/janito/tools/outline_file.bak.zip +0 -0
  277. {janito-2.5.1 → janito-2.6.0}/janito/tools/permissions.py +0 -0
  278. {janito-2.5.1 → janito-2.6.0}/janito/tools/permissions_parse.py +0 -0
  279. {janito-2.5.1 → janito-2.6.0}/janito/tools/tool_base.py +0 -0
  280. {janito-2.5.1 → janito-2.6.0}/janito/tools/tool_events.py +0 -0
  281. {janito-2.5.1 → janito-2.6.0}/janito/tools/tool_run_exception.py +0 -0
  282. {janito-2.5.1 → janito-2.6.0}/janito/tools/tool_utils.py +0 -0
  283. {janito-2.5.1 → janito-2.6.0}/janito/tools/tools_schema.py +0 -0
  284. {janito-2.5.1 → janito-2.6.0}/janito/utils.py +0 -0
  285. {janito-2.5.1 → janito-2.6.0}/janito.egg-info/dependency_links.txt +0 -0
  286. {janito-2.5.1 → janito-2.6.0}/janito.egg-info/entry_points.txt +0 -0
  287. {janito-2.5.1 → janito-2.6.0}/janito.egg-info/requires.txt +0 -0
  288. {janito-2.5.1 → janito-2.6.0}/janito.egg-info/top_level.txt +0 -0
  289. {janito-2.5.1 → janito-2.6.0}/mkdocs.yml +0 -0
  290. {janito-2.5.1 → janito-2.6.0}/pyproject.toml +0 -0
  291. {janito-2.5.1 → janito-2.6.0}/pytest.ini +0 -0
  292. {janito-2.5.1 → janito-2.6.0}/requirements-dev.txt +0 -0
  293. {janito-2.5.1 → janito-2.6.0}/requirements.txt +0 -0
  294. {janito-2.5.1 → janito-2.6.0}/tests/adapters/local/get_file_outline/test_core_outline.py +0 -0
  295. {janito-2.5.1 → janito-2.6.0}/tests/test_cli_list_providers.py +0 -0
  296. {janito-2.5.1 → janito-2.6.0}/tests/test_cli_version.py +0 -0
  297. {janito-2.5.1 → janito-2.6.0}/tox.ini +0 -0
@@ -1,412 +1,412 @@
1
- Metadata-Version: 2.4
2
- Name: janito
3
- Version: 2.5.1
4
- Summary: A new Python package called janito.
5
- Author-email: João Pinto <lamego.pinto@gmail.com>
6
- Project-URL: Homepage, https://github.com/janito-dev/janito
7
- Requires-Python: >=3.7
8
- Description-Content-Type: text/markdown
9
- License-File: LICENSE
10
- Requires-Dist: attrs==25.3.0
11
- Requires-Dist: rich==14.0.0
12
- Requires-Dist: pathspec==0.12.1
13
- Requires-Dist: setuptools>=61.0
14
- Requires-Dist: pyyaml>=6.0
15
- Requires-Dist: jinja2>=3.0.0
16
- Requires-Dist: prompt_toolkit>=3.0.51
17
- Requires-Dist: lxml>=5.4.0
18
- Requires-Dist: requests>=2.32.4
19
- Requires-Dist: bs4>=0.0.2
20
- Requires-Dist: questionary>=2.0.1
21
- Provides-Extra: dev
22
- Requires-Dist: pytest; extra == "dev"
23
- Requires-Dist: pre-commit; extra == "dev"
24
- Requires-Dist: ruff==0.11.9; extra == "dev"
25
- Requires-Dist: detect-secrets==1.4.0; extra == "dev"
26
- Requires-Dist: codespell==2.4.1; extra == "dev"
27
- Requires-Dist: black; extra == "dev"
28
- Requires-Dist: questionary>=2.0.1; extra == "dev"
29
- Requires-Dist: setuptools_scm>=8.0; extra == "dev"
30
- Dynamic: license-file
31
-
32
- # Janito
33
-
34
- Janito is a command-line interface (CLI) tool for managing and interacting with Large Language Model (LLM) providers. It enables you to configure API keys, select providers and models, and submit prompts to various LLMs from your terminal. Janito is designed for extensibility, supporting multiple providers and a wide range of tools for automation and productivity.
35
-
36
- ## Features
37
-
38
- - 🔑 Manage API keys and provider configurations
39
- - 🤖 Interact with multiple LLM providers (OpenAI, Google Gemini, Mistral, DeepSeek, and more)
40
- - 🛠️ List and use a variety of registered tools
41
- - 📝 Submit prompts and receive responses directly from the CLI
42
- - 📋 List available models for each provider
43
- - 🧩 Extensible architecture for adding new providers and tools
44
- - 🎛️ Rich terminal output and event logging
45
-
46
- ### Advanced and Architectural Features
47
-
48
- - ⚡ **Event-driven architecture**: Modular, decoupled system using a custom EventBus for extensibility and integration.
49
- - 🧑‍💻 **Tool registry & dynamic tool execution**: Register new tools easily, execute them by name or call from automation pipelines.
50
- - 🤖 **LLM Agent automation**: Supports agent-like workflows with the ability to chain tools or make decisions during LLM conversations.
51
- - 🏗️ **Extensible provider management**: Add, configure, or switch between LLM providers and their models on the fly.
52
- - 🧰 **Rich tool ecosystem**: Includes file operations, local/remote script and command execution, text processing, and internet access (fetching URLs), all reusable by LLM or user.
53
- - 📝 **Comprehensive event & history reporting**: Detailed logs of prompts, events, tool usage, and responses for traceability and audit.
54
- - 🖥️ **Enhanced terminal UI**: Colorful, informative real-time outputs and logs to improve productivity and insight during LLM usage.
55
-
56
- ## Installation
57
-
58
- Janito is a Python package. Since this is a development version, you can install it directly from GitHub:
59
-
60
- ```bash
61
- pip install git+https://github.com/janito-dev/janito.git
62
- ```
63
-
64
- ### First launch and quick setup
65
-
66
- Janito integrates with external LLM providers (list below), and most of them require a subscription to get an API_KEY.
67
-
68
- > [!NOTE]
69
- > Today, on June the 26th 2025, Google has a free tier subscription for its Gemini-2.5-flash model. Despite the limitation of the model and of the rate limit of the free tier, it can be used for testing janito. The API_KEY for Gemini is available [here](https://aistudio.google.com/app/apikey).
70
-
71
- > [!NOTE]
72
- > [Here](https://github.com/cheahjs/free-llm-api-resources/blob/main/README.md) a list of various services that provide free access or credits towards API-based LLM usage. Note that not all of them are supported by Janito, yet.
73
-
74
- For a quick usage you can:
75
-
76
- 1. once you get the API_KEY from your favourite LLM provider, setup the API_KEY in Janito
77
-
78
- ```bash
79
- janito --set-api-key API_KEY -p PROVIDER
80
- ```
81
-
82
- 2. then run janito from command line with the specific LLM provider of your choice
83
-
84
- ```bash
85
- janito -p PROVIDER "Hello, who are you? How can you help me in my tasks?"
86
- ```
87
-
88
- 3. or you can run janito in interactive mode without the trailing argument
89
-
90
- ```bash
91
- janito -p PROVIDER
92
- ```
93
-
94
- 4. if you want to setup a specific provider for any further interactions you can use:
95
-
96
- ```bash
97
- janito -set provider=PROVIDER
98
- ```
99
-
100
- > [!WARNING]
101
- > Currently the supported providers are: `openai`, `google`, `azure_openai`. You can get more details with `janito --list-providers`.
102
-
103
- 5. for more advanced setup, continue reading.
104
-
105
-
106
- ## Usage
107
-
108
- After installation, use the `janito` command in your terminal.
109
-
110
- Janito supports both general-purpose and specialized assistance through the use of **profiles**. Profiles allow you to select a specific system prompt template and behavior for the agent, enabling workflows tailored to different roles or tasks (e.g., developer, writer, data analyst), or to use Janito as a generic AI assistant.
111
-
112
- ### Profiles: General-Purpose and Specialized Assistance
113
-
114
- - By default, Janito acts as a general-purpose assistant.
115
- - You can select a specialized profile using the `--profile` option:
116
- ```bash
117
- janito --profile developer "Refactor this code for better readability."
118
- janito --profile writer "Draft a blog post about AI in healthcare."
119
- ```
120
- - Profiles change the system prompt and agent behavior to suit the selected role or workflow.
121
- - To see available profiles or customize them, refer to the documentation or the `agent/templates/profiles/` directory.
122
-
123
- > **Tip:** Use `--profile` for targeted workflows, or omit it for a general-purpose assistant.
124
-
125
- Janito has configuration options, like `--set api-key API_KEY` and `--set provider=PROVIDER`, that create durable configurations and single shoot options, like `-p PROVIDER` and `-m MODEL`, that are active for the single run of the command or session.
126
-
127
- ### Basic Commands
128
-
129
- - **Set API Key for a Provider (requires -p PROVIDER)**
130
- ```bash
131
- janito --set-api-key API_KEY -p PROVIDER
132
- ```
133
- > **Note:** The `-p PROVIDER` argument is required when setting an API key. For example:
134
- > ```bash
135
- > janito --set-api-key sk-xxxxxxx -p openai
136
- > ```
137
-
138
- - **Set the Provider (durable)**
139
- ```bash
140
- janito --set provider=provider_name
141
- ```
142
-
143
- - **List Supported Providers**
144
- ```bash
145
- janito --list-providers
146
- ```
147
-
148
- - **List Registered Tools**
149
- ```bash
150
- janito --list-tools
151
- ```
152
-
153
- - **List Models for a Provider**
154
- ```bash
155
- janito -p PROVIDER --list-models
156
- ```
157
-
158
- - **Submit a Prompt**
159
- ```bash
160
- janito "What is the capital of France?"
161
- ```
162
-
163
- - **Start Interactive Chat Shell**
164
- ```bash
165
- janito
166
- ```
167
-
168
- ### Advanced Options
169
-
170
- - **Enable Execution Tools (Code/Shell Execution)**
171
-
172
- By default, **all tool privileges (read, write, execute)** are disabled for safety. This means Janito starts with no permissions to run tools that read, write, or execute code/shell commands unless you explicitly enable them.
173
-
174
- - To enable **read** tools (e.g., file reading, searching): add `-r` or `--read`
175
- - To enable **write** tools (e.g., file editing): add `-w` or `--write`
176
- - To enable **execution** tools (code/shell execution): add `-x` or `--exec`
177
-
178
- You can combine these flags as needed. For example, to enable both read and write tools:
179
-
180
- ```bash
181
- janito -r -w "Read and update this file: ..."
182
- ```
183
-
184
- To enable all permissions (read, write, execute):
185
-
186
- ```bash
187
- janito -r -w -x "Run this code: print('Hello, world!')"
188
- ```
189
-
190
- > **Warning:** Enabling execution tools allows running arbitrary code or shell commands. Only use `--exec` if you trust your prompt and environment.
191
-
192
- - **Set a System Prompt**
193
- ```bash
194
- janito -s path/to/system_prompt.txt "Your prompt here"
195
- ```
196
-
197
- - **Select Model and Provider Temporarily**
198
- ```bash
199
- janito -p openai -m gpt-3.5-turbo "Your prompt here"
200
- janito -p google -m gemini-2.5-flash "Your prompt here"
201
- ```
202
-
203
- - **Set Provider-Specific Config (for the selected provider)**
204
- ```bash
205
- # syntax: janito --set PROVIDER.KEY=VALUE
206
- # example: set the default model for openai provider
207
- janito --set openai.model=gpt-4o
208
-
209
- ```
210
- > **Note:** Use `--set PROVIDER.key=value` for provider-specific settings (e.g., `openai.max_tokens`, `openai.base_url`).
211
-
212
- - **Enable Event Logging**
213
- ```bash
214
- janito -e "Your prompt here"
215
- ```
216
-
217
- ## 🌟 CLI Options Reference
218
-
219
- ### Core CLI Options
220
- | Option | Description |
221
- |------------------------|-----------------------------------------------------------------------------|
222
-
223
- | `--version` | Show program version |
224
- | `--list-tools` | List all registered tools |
225
- | `--list-providers` | List all supported LLM providers |
226
- | `-l`, `--list-models` | List models for current/selected provider |
227
- | `--set-api-key` | Set API key for a provider. **Requires** `-p PROVIDER` to specify the provider. |
228
- | `--set provider=name` | Set the current LLM provider (e.g., `janito --set provider=openai`) |
229
- | `--set PROVIDER.model=MODEL` or `--set model=MODEL` | Set the default model for the current/selected provider, or globally. (e.g., `janito --set openai.model=gpt-3.5-turbo`) |
230
- | `-s`, `--system` | Set a system prompt (e.g., `janito -s path/to/system_prompt.txt "Your prompt here"`) |
231
-
232
- | `-p`, `--provider` | Select LLM provider (overrides config) (e.g., `janito -p openai "Your prompt here"`) |
233
- | `-m`, `--model` | Select model for the provider (e.g., `janito -m gpt-3.5-turbo "Your prompt here"`) |
234
- | `-v`, `--verbose` | Print extra information before answering |
235
- | `-R`, `--raw` | Print raw JSON response from API |
236
- | `-e`, `--event-log` | Log events to console as they occur |
237
- | `"user_prompt"` | Prompt to submit for the non interactive mode (e.g. `janito "What is the capital of France?"`) |
238
-
239
- ### 🧩 Extended Chat Mode Commands
240
- Once inside the interactive chat mode, you can use these slash commands:
241
-
242
- #### 📲 Basic Interaction
243
- | Command | Description |
244
- |-------------------|----------------------------------------------|
245
- | `/exit` or `exit` | Exit chat mode |
246
- | `/help` | Show available commands |
247
- | `/multi` | Activate multiline input mode |
248
- | `/clear` | Clear the terminal screen |
249
- | `/history` | Show input history |
250
- | `/view` | Print current conversation history |
251
- | `/track` | Show tool usage history |
252
-
253
- #### 💬 Conversation Management
254
- | Command | Description |
255
- |---------------------|----------------------------------------------|
256
- | `/restart` | Start a new conversation (reset context) |
257
- | `/prompt` | Show the current system prompt |
258
- | `/role <description>` | Change the system role |
259
- | `/lang [code]` | Change interface language (e.g., `/lang en`) |
260
-
261
- #### 🛠️ Tool & Provider Interaction
262
- | Command | Description |
263
- |----------------------|----------------------------------------------|
264
- | `/tools` | List available tools |
265
- | `/-status` | Show status of server |
266
- | `/-logs` | Show last lines of logs |
267
- | `/livelogs` | Show live updates from server log file |
268
- | `/edit <filename>` | Open file in browser-based editor |
269
-
270
- #### 📊 Output Control
271
- | Command | Description |
272
- |---------------------|----------------------------------------------|
273
- | `/verbose` | Show current verbose mode status |
274
- | `/verbose [on|off]` | Set verbose mode |
275
-
276
- ## Extending Janito
277
-
278
- Janito is built to be extensible. You can add new LLM providers or tools by implementing new modules in the `janito/providers` or `janito/tools` directories, respectively. See the source code and developer documentation for more details.
279
-
280
- ## Supported Providers
281
-
282
- - OpenAI
283
- - OpenAI over Azure
284
- - Google Gemini
285
- - DeepSeek
286
-
287
- See [docs/supported-providers-models.md](docs/supported-providers-models.md) for more details.
288
-
289
- ## Contributing
290
-
291
- Contributions are welcome! Please see the `CONTRIBUTING.md` (if available) or open an issue to get started.
292
-
293
- ---
294
-
295
- ## Developer Documentation
296
-
297
- For developer-specific setup, versioning, and contribution guidelines, see [README-dev.md](./README-dev.md).
298
-
299
- ## License
300
-
301
- This project is licensed under the terms of the MIT license.
302
-
303
- For more information, see the documentation in the `docs/` directory or run `janito --help`.
304
-
305
- ---
306
-
307
- # Support
308
-
309
-
310
- ## 📖 Detailed Documentation
311
-
312
- Full and up-to-date documentation is available at: https://janito-dev.github.io/janito/
313
-
314
- ---
315
-
316
-
317
- ## FAQ: Setting API Keys
318
-
319
- - [Multiple API_KEY setup](#faq-multiple-api-key)
320
- - [Use a specific model](#faq-use-specific-model)
321
- - [Fetch the availale LLM providers](#faq-fetch-providers)
322
- - [Fetch the availale models](#faq-fetch-models)
323
-
324
-
325
- <a id="faq-multiple-api-key"></a>
326
- ### Multiple API_KEY setup
327
-
328
- To set an API key for a provider, you **must** specify both the API key and the provider name:
329
-
330
- ```bash
331
- janito --set-api-key YOUR_API_KEY -p PROVIDER_NAME
332
- ```
333
-
334
- You can have an API_KEY for each LLM provider
335
-
336
- ```bash
337
- janito --set-api-key API_KEY_1 -p PROVIDER_1
338
- janito --set-api-key API_KEY_2 -p PROVIDER_2
339
- ```
340
-
341
- Then you can easily use one provider or the other without changing the API_KEY
342
-
343
- ```bash
344
- janito -p PROVIDER_1 "What provider do you use?"
345
- janito -p PROVIDER_2 "What provider do you use?"
346
- ```
347
-
348
- If you omit the `-p PROVIDER_NAME` argument, Janito will show an error and not set the key.
349
-
350
- <a id="faq-use-specific-model"></a>
351
- ### Use a specific model
352
-
353
- To use a specific model, you can use the `-m` option in the follwing way:
354
-
355
- ```bash
356
- janito -m gpt-4.1-nano -p openai "What model do you use?"
357
- ```
358
-
359
- Or you can use the durable `--set` option:
360
-
361
- ```bash
362
- janito --set provider=openai
363
- janito --set model=gpt-4.1-nano
364
- janito "What model do you use?"
365
- ```
366
-
367
- <a id="faq-fetch-providers"></a>
368
- ### Fetch the availale LLM providers
369
-
370
- You can list all the LLM providers available using:
371
-
372
- ```bash
373
- janito --list-providers
374
- ```
375
-
376
- <a id="faq-fetch-models"></a>
377
- ### Fetch the availale models
378
-
379
- Each LLM provider has its own models, the best way to check what are the available models is usign the following commands:
380
-
381
- ```bash
382
- janito -p openai --list-models
383
- janito -p google --list-models
384
- janito -p azure_openai --list-models
385
- janito -p deepseek --list-models
386
- ```
387
-
388
-
389
- ## Ask Me Anything
390
-
391
- <div align="center">
392
- <a href="https://github.com/janito-dev/janito" title="Ask Me Anything">
393
- <img width="250" src="docs/imgs/ama.png" alt="Ask Me Anything">
394
- </a>
395
- </div
396
-
397
- When the FAQ are not enough, you can contact the contributors of the project by direct questions
398
-
399
- <p align="center">
400
- <kbd><a href="../../issues/new?labels=question">Ask a question</a></kbd> <kbd><a href="../../issues?q=is%3Aissue+is%3Aclosed+label%3Aquestion">Read questions</a></kbd>
401
- </p>
402
-
403
- #### Guidelines
404
-
405
- - :mag: Ensure your question hasn't already been answered.
406
- - :memo: Use a succinct title and description.
407
- - :bug: Bugs & feature requests should be opened on the relevant issue tracker.
408
- - :signal_strength: Support questions are better asked on Stack Overflow.
409
- - :blush: Be nice, civil and polite.
410
- - :heart_eyes: If you include at least one emoji in your question, the feedback will probably come faster.
411
- - [Read more AMAs](https://github.com/sindresorhus/amas)
412
- - [What's an AMA?](https://en.wikipedia.org/wiki/R/IAmA)
1
+ Metadata-Version: 2.4
2
+ Name: janito
3
+ Version: 2.6.0
4
+ Summary: A new Python package called janito.
5
+ Author-email: João Pinto <lamego.pinto@gmail.com>
6
+ Project-URL: Homepage, https://github.com/janito-dev/janito
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: attrs==25.3.0
11
+ Requires-Dist: rich==14.0.0
12
+ Requires-Dist: pathspec==0.12.1
13
+ Requires-Dist: setuptools>=61.0
14
+ Requires-Dist: pyyaml>=6.0
15
+ Requires-Dist: jinja2>=3.0.0
16
+ Requires-Dist: prompt_toolkit>=3.0.51
17
+ Requires-Dist: lxml>=5.4.0
18
+ Requires-Dist: requests>=2.32.4
19
+ Requires-Dist: bs4>=0.0.2
20
+ Requires-Dist: questionary>=2.0.1
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest; extra == "dev"
23
+ Requires-Dist: pre-commit; extra == "dev"
24
+ Requires-Dist: ruff==0.11.9; extra == "dev"
25
+ Requires-Dist: detect-secrets==1.4.0; extra == "dev"
26
+ Requires-Dist: codespell==2.4.1; extra == "dev"
27
+ Requires-Dist: black; extra == "dev"
28
+ Requires-Dist: questionary>=2.0.1; extra == "dev"
29
+ Requires-Dist: setuptools_scm>=8.0; extra == "dev"
30
+ Dynamic: license-file
31
+
32
+ # Janito
33
+
34
+ Janito is a command-line interface (CLI) tool for managing and interacting with Large Language Model (LLM) providers. It enables you to configure API keys, select providers and models, and submit prompts to various LLMs from your terminal. Janito is designed for extensibility, supporting multiple providers and a wide range of tools for automation and productivity.
35
+
36
+ ## Features
37
+
38
+ - 🔑 Manage API keys and provider configurations
39
+ - 🤖 Interact with multiple LLM providers (OpenAI, Google Gemini, Mistral, DeepSeek, and more)
40
+ - 🛠️ List and use a variety of registered tools
41
+ - 📝 Submit prompts and receive responses directly from the CLI
42
+ - 📋 List available models for each provider
43
+ - 🧩 Extensible architecture for adding new providers and tools
44
+ - 🎛️ Rich terminal output and event logging
45
+
46
+ ### Advanced and Architectural Features
47
+
48
+ - ⚡ **Event-driven architecture**: Modular, decoupled system using a custom EventBus for extensibility and integration.
49
+ - 🧑‍💻 **Tool registry & dynamic tool execution**: Register new tools easily, execute them by name or call from automation pipelines.
50
+ - 🤖 **LLM Agent automation**: Supports agent-like workflows with the ability to chain tools or make decisions during LLM conversations.
51
+ - 🏗️ **Extensible provider management**: Add, configure, or switch between LLM providers and their models on the fly.
52
+ - 🧰 **Rich tool ecosystem**: Includes file operations, local/remote script and command execution, text processing, and internet access (fetching URLs), all reusable by LLM or user.
53
+ - 📝 **Comprehensive event & history reporting**: Detailed logs of prompts, events, tool usage, and responses for traceability and audit.
54
+ - 🖥️ **Enhanced terminal UI**: Colorful, informative real-time outputs and logs to improve productivity and insight during LLM usage.
55
+
56
+ ## Installation
57
+
58
+ Janito is a Python package. Since this is a development version, you can install it directly from GitHub:
59
+
60
+ ```bash
61
+ pip install git+https://github.com/janito-dev/janito.git
62
+ ```
63
+
64
+ ### First launch and quick setup
65
+
66
+ Janito integrates with external LLM providers (list below), and most of them require a subscription to get an API_KEY.
67
+
68
+ > [!NOTE]
69
+ > Today, on June the 26th 2025, Google has a free tier subscription for its Gemini-2.5-flash model. Despite the limitation of the model and of the rate limit of the free tier, it can be used for testing janito. The API_KEY for Gemini is available [here](https://aistudio.google.com/app/apikey).
70
+
71
+ > [!NOTE]
72
+ > [Here](https://github.com/cheahjs/free-llm-api-resources/blob/main/README.md) a list of various services that provide free access or credits towards API-based LLM usage. Note that not all of them are supported by Janito, yet.
73
+
74
+ For a quick usage you can:
75
+
76
+ 1. once you get the API_KEY from your favourite LLM provider, setup the API_KEY in Janito
77
+
78
+ ```bash
79
+ janito --set-api-key API_KEY -p PROVIDER
80
+ ```
81
+
82
+ 2. then run janito from command line with the specific LLM provider of your choice
83
+
84
+ ```bash
85
+ janito -p PROVIDER "Hello, who are you? How can you help me in my tasks?"
86
+ ```
87
+
88
+ 3. or you can run janito in interactive mode without the trailing argument
89
+
90
+ ```bash
91
+ janito -p PROVIDER
92
+ ```
93
+
94
+ 4. if you want to setup a specific provider for any further interactions you can use:
95
+
96
+ ```bash
97
+ janito -set provider=PROVIDER
98
+ ```
99
+
100
+ > [!WARNING]
101
+ > Currently the supported providers are: `openai`, `google`, `azure_openai`. You can get more details with `janito --list-providers`.
102
+
103
+ 5. for more advanced setup, continue reading.
104
+
105
+
106
+ ## Usage
107
+
108
+ After installation, use the `janito` command in your terminal.
109
+
110
+ Janito supports both general-purpose and specialized assistance through the use of **profiles**. Profiles allow you to select a specific system prompt template and behavior for the agent, enabling workflows tailored to different roles or tasks (e.g., developer, writer, data analyst), or to use Janito as a generic AI assistant.
111
+
112
+ ### Profiles: General-Purpose and Specialized Assistance
113
+
114
+ - By default, Janito acts as a general-purpose assistant.
115
+ - You can select a specialized profile using the `--profile` option:
116
+ ```bash
117
+ janito --profile developer "Refactor this code for better readability."
118
+ janito --profile writer "Draft a blog post about AI in healthcare."
119
+ ```
120
+ - Profiles change the system prompt and agent behavior to suit the selected role or workflow.
121
+ - To see available profiles or customize them, refer to the documentation or the `agent/templates/profiles/` directory.
122
+
123
+ > **Tip:** Use `--profile` for targeted workflows, or omit it for a general-purpose assistant.
124
+
125
+ Janito has configuration options, like `--set api-key API_KEY` and `--set provider=PROVIDER`, that create durable configurations and single shoot options, like `-p PROVIDER` and `-m MODEL`, that are active for the single run of the command or session.
126
+
127
+ ### Basic Commands
128
+
129
+ - **Set API Key for a Provider (requires -p PROVIDER)**
130
+ ```bash
131
+ janito --set-api-key API_KEY -p PROVIDER
132
+ ```
133
+ > **Note:** The `-p PROVIDER` argument is required when setting an API key. For example:
134
+ > ```bash
135
+ > janito --set-api-key sk-xxxxxxx -p openai
136
+ > ```
137
+
138
+ - **Set the Provider (durable)**
139
+ ```bash
140
+ janito --set provider=provider_name
141
+ ```
142
+
143
+ - **List Supported Providers**
144
+ ```bash
145
+ janito --list-providers
146
+ ```
147
+
148
+ - **List Registered Tools**
149
+ ```bash
150
+ janito --list-tools
151
+ ```
152
+
153
+ - **List Models for a Provider**
154
+ ```bash
155
+ janito -p PROVIDER --list-models
156
+ ```
157
+
158
+ - **Submit a Prompt**
159
+ ```bash
160
+ janito "What is the capital of France?"
161
+ ```
162
+
163
+ - **Start Interactive Chat Shell**
164
+ ```bash
165
+ janito
166
+ ```
167
+
168
+ ### Advanced Options
169
+
170
+ - **Enable Execution Tools (Code/Shell Execution)**
171
+
172
+ By default, **all tool privileges (read, write, execute)** are disabled for safety. This means Janito starts with no permissions to run tools that read, write, or execute code/shell commands unless you explicitly enable them.
173
+
174
+ - To enable **read** tools (e.g., file reading, searching): add `-r` or `--read`
175
+ - To enable **write** tools (e.g., file editing): add `-w` or `--write`
176
+ - To enable **execution** tools (code/shell execution): add `-x` or `--exec`
177
+
178
+ You can combine these flags as needed. For example, to enable both read and write tools:
179
+
180
+ ```bash
181
+ janito -r -w "Read and update this file: ..."
182
+ ```
183
+
184
+ To enable all permissions (read, write, execute):
185
+
186
+ ```bash
187
+ janito -r -w -x "Run this code: print('Hello, world!')"
188
+ ```
189
+
190
+ > **Warning:** Enabling execution tools allows running arbitrary code or shell commands. Only use `--exec` if you trust your prompt and environment.
191
+
192
+ - **Set a System Prompt**
193
+ ```bash
194
+ janito -s path/to/system_prompt.txt "Your prompt here"
195
+ ```
196
+
197
+ - **Select Model and Provider Temporarily**
198
+ ```bash
199
+ janito -p openai -m gpt-3.5-turbo "Your prompt here"
200
+ janito -p google -m gemini-2.5-flash "Your prompt here"
201
+ ```
202
+
203
+ - **Set Provider-Specific Config (for the selected provider)**
204
+ ```bash
205
+ # syntax: janito --set PROVIDER.KEY=VALUE
206
+ # example: set the default model for openai provider
207
+ janito --set openai.model=gpt-4o
208
+
209
+ ```
210
+ > **Note:** Use `--set PROVIDER.key=value` for provider-specific settings (e.g., `openai.max_tokens`, `openai.base_url`).
211
+
212
+ - **Enable Event Logging**
213
+ ```bash
214
+ janito -e "Your prompt here"
215
+ ```
216
+
217
+ ## 🌟 CLI Options Reference
218
+
219
+ ### Core CLI Options
220
+ | Option | Description |
221
+ |------------------------|-----------------------------------------------------------------------------|
222
+
223
+ | `--version` | Show program version |
224
+ | `--list-tools` | List all registered tools |
225
+ | `--list-providers` | List all supported LLM providers |
226
+ | `-l`, `--list-models` | List models for current/selected provider |
227
+ | `--set-api-key` | Set API key for a provider. **Requires** `-p PROVIDER` to specify the provider. |
228
+ | `--set provider=name` | Set the current LLM provider (e.g., `janito --set provider=openai`) |
229
+ | `--set PROVIDER.model=MODEL` or `--set model=MODEL` | Set the default model for the current/selected provider, or globally. (e.g., `janito --set openai.model=gpt-3.5-turbo`) |
230
+ | `-s`, `--system` | Set a system prompt (e.g., `janito -s path/to/system_prompt.txt "Your prompt here"`) |
231
+
232
+ | `-p`, `--provider` | Select LLM provider (overrides config) (e.g., `janito -p openai "Your prompt here"`) |
233
+ | `-m`, `--model` | Select model for the provider (e.g., `janito -m gpt-3.5-turbo "Your prompt here"`) |
234
+ | `-v`, `--verbose` | Print extra information before answering |
235
+ | `-R`, `--raw` | Print raw JSON response from API |
236
+ | `-e`, `--event-log` | Log events to console as they occur |
237
+ | `"user_prompt"` | Prompt to submit for the non interactive mode (e.g. `janito "What is the capital of France?"`) |
238
+
239
+ ### 🧩 Extended Chat Mode Commands
240
+ Once inside the interactive chat mode, you can use these slash commands:
241
+
242
+ #### 📲 Basic Interaction
243
+ | Command | Description |
244
+ |-------------------|----------------------------------------------|
245
+ | `/exit` or `exit` | Exit chat mode |
246
+ | `/help` | Show available commands |
247
+ | `/multi` | Activate multiline input mode |
248
+ | `/clear` | Clear the terminal screen |
249
+ | `/history` | Show input history |
250
+ | `/view` | Print current conversation history |
251
+ | `/track` | Show tool usage history |
252
+
253
+ #### 💬 Conversation Management
254
+ | Command | Description |
255
+ |---------------------|----------------------------------------------|
256
+ | `/restart` | Start a new conversation (reset context) |
257
+ | `/prompt` | Show the current system prompt |
258
+ | `/role <description>` | Change the system role |
259
+ | `/lang [code]` | Change interface language (e.g., `/lang en`) |
260
+
261
+ #### 🛠️ Tool & Provider Interaction
262
+ | Command | Description |
263
+ |----------------------|----------------------------------------------|
264
+ | `/tools` | List available tools |
265
+ | `/-status` | Show status of server |
266
+ | `/-logs` | Show last lines of logs |
267
+ | `/livelogs` | Show live updates from server log file |
268
+ | `/edit <filename>` | Open file in browser-based editor |
269
+
270
+ #### 📊 Output Control
271
+ | Command | Description |
272
+ |---------------------|----------------------------------------------|
273
+ | `/verbose` | Show current verbose mode status |
274
+ | `/verbose [on|off]` | Set verbose mode |
275
+
276
+ ## Extending Janito
277
+
278
+ Janito is built to be extensible. You can add new LLM providers or tools by implementing new modules in the `janito/providers` or `janito/tools` directories, respectively. See the source code and developer documentation for more details.
279
+
280
+ ## Supported Providers
281
+
282
+ - OpenAI
283
+ - OpenAI over Azure
284
+ - Google Gemini
285
+ - DeepSeek
286
+
287
+ See [docs/supported-providers-models.md](docs/supported-providers-models.md) for more details.
288
+
289
+ ## Contributing
290
+
291
+ Contributions are welcome! Please see the `CONTRIBUTING.md` (if available) or open an issue to get started.
292
+
293
+ ---
294
+
295
+ ## Developer Documentation
296
+
297
+ For developer-specific setup, versioning, and contribution guidelines, see [README-dev.md](./README-dev.md).
298
+
299
+ ## License
300
+
301
+ This project is licensed under the terms of the MIT license.
302
+
303
+ For more information, see the documentation in the `docs/` directory or run `janito --help`.
304
+
305
+ ---
306
+
307
+ # Support
308
+
309
+
310
+ ## 📖 Detailed Documentation
311
+
312
+ Full and up-to-date documentation is available at: https://janito-dev.github.io/janito/
313
+
314
+ ---
315
+
316
+
317
+ ## FAQ: Setting API Keys
318
+
319
+ - [Multiple API_KEY setup](#faq-multiple-api-key)
320
+ - [Use a specific model](#faq-use-specific-model)
321
+ - [Fetch the available LLM providers](#faq-fetch-providers)
322
+ - [Fetch the available models](#faq-fetch-models)
323
+
324
+
325
+ <a id="faq-multiple-api-key"></a>
326
+ ### Multiple API_KEY setup
327
+
328
+ To set an API key for a provider, you **must** specify both the API key and the provider name:
329
+
330
+ ```bash
331
+ janito --set-api-key YOUR_API_KEY -p PROVIDER_NAME
332
+ ```
333
+
334
+ You can have an API_KEY for each LLM provider
335
+
336
+ ```bash
337
+ janito --set-api-key API_KEY_1 -p PROVIDER_1
338
+ janito --set-api-key API_KEY_2 -p PROVIDER_2
339
+ ```
340
+
341
+ Then you can easily use one provider or the other without changing the API_KEY
342
+
343
+ ```bash
344
+ janito -p PROVIDER_1 "What provider do you use?"
345
+ janito -p PROVIDER_2 "What provider do you use?"
346
+ ```
347
+
348
+ If you omit the `-p PROVIDER_NAME` argument, Janito will show an error and not set the key.
349
+
350
+ <a id="faq-use-specific-model"></a>
351
+ ### Use a specific model
352
+
353
+ To use a specific model, you can use the `-m` option in the following way:
354
+
355
+ ```bash
356
+ janito -m gpt-4.1-nano -p openai "What model do you use?"
357
+ ```
358
+
359
+ Or you can use the durable `--set` option:
360
+
361
+ ```bash
362
+ janito --set provider=openai
363
+ janito --set model=gpt-4.1-nano
364
+ janito "What model do you use?"
365
+ ```
366
+
367
+ <a id="faq-fetch-providers"></a>
368
+ ### Fetch the available LLM providers
369
+
370
+ You can list all the LLM providers available using:
371
+
372
+ ```bash
373
+ janito --list-providers
374
+ ```
375
+
376
+ <a id="faq-fetch-models"></a>
377
+ ### Fetch the available models
378
+
379
+ Each LLM provider has its own models, the best way to check what are the available models is using the following commands:
380
+
381
+ ```bash
382
+ janito -p openai --list-models
383
+ janito -p google --list-models
384
+ janito -p azure_openai --list-models
385
+ janito -p deepseek --list-models
386
+ ```
387
+
388
+
389
+ ## Ask Me Anything
390
+
391
+ <div align="center">
392
+ <a href="https://github.com/janito-dev/janito" title="Ask Me Anything">
393
+ <img width="250" src="docs/imgs/ama.png" alt="Ask Me Anything">
394
+ </a>
395
+ </div
396
+
397
+ When the FAQ are not enough, you can contact the contributors of the project by direct questions
398
+
399
+ <p align="center">
400
+ <kbd><a href="../../issues/new?labels=question">Ask a question</a></kbd> <kbd><a href="../../issues?q=is%3Aissue+is%3Aclosed+label%3Aquestion">Read questions</a></kbd>
401
+ </p>
402
+
403
+ #### Guidelines
404
+
405
+ - :mag: Ensure your question hasn't already been answered.
406
+ - :memo: Use a succinct title and description.
407
+ - :bug: Bugs & feature requests should be opened on the relevant issue tracker.
408
+ - :signal_strength: Support questions are better asked on Stack Overflow.
409
+ - :blush: Be nice, civil and polite.
410
+ - :heart_eyes: If you include at least one emoji in your question, the feedback will probably come faster.
411
+ - [Read more AMAs](https://github.com/sindresorhus/amas)
412
+ - [What's an AMA?](https://en.wikipedia.org/wiki/R/IAmA)