janito 1.14.1__py3-none-any.whl → 1.14.3__py3-none-any.whl

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.
janito/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.14.1"
1
+ __version__ = "1.14.3"
@@ -3,10 +3,20 @@ from janito.agent.runtime_config import runtime_config
3
3
 
4
4
  def handle_prompt(console, shell_state=None, **kwargs):
5
5
  profile_manager = kwargs.get("profile_manager")
6
- prompt = profile_manager.system_prompt_template if profile_manager else None
7
- if not prompt and profile_manager:
6
+ if not profile_manager and shell_state and hasattr(shell_state, "profile_manager"):
7
+ profile_manager = shell_state.profile_manager
8
+ prompt = None
9
+ if profile_manager:
8
10
  prompt = profile_manager.system_prompt_template
9
- console.print(f"[bold magenta]System Prompt:[/bold magenta]\n{prompt}")
11
+ if not prompt:
12
+ profile_manager.refresh_prompt()
13
+ prompt = profile_manager.system_prompt_template
14
+ if not prompt:
15
+ console.print(
16
+ "[bold red]System prompt is not initialized. Please check your profile configuration.[/bold red]"
17
+ )
18
+ else:
19
+ console.print(f"[bold magenta]System Prompt:[/bold magenta]\n{prompt}")
10
20
 
11
21
 
12
22
  handle_prompt.help_text = "Show the system prompt"
janito/shell/main.py CHANGED
@@ -295,6 +295,7 @@ def start_chat_shell(
295
295
  console.clear()
296
296
  shell_state = ShellState()
297
297
  shell_state.profile_manager = profile_manager
298
+ profile_manager.refresh_prompt()
298
299
  user_input_history = UserInputHistory()
299
300
  user_input_dicts = user_input_history.load()
300
301
  mem_history = shell_state.mem_history
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janito
3
- Version: 1.14.1
4
- Summary: Natural Language Programming Agent,
3
+ Version: 1.14.3
4
+ Summary: Language Model Thin Client,
5
5
  Author-email: João Pinto <joao.pinto@gmail.com>
6
6
  License-Expression: MIT
7
7
  Project-URL: homepage, https://janito.dev
@@ -29,12 +29,10 @@ Requires-Dist: mkdocs>=1.5.3; extra == "docs"
29
29
  Requires-Dist: mkdocs-material>=9.4.8; extra == "docs"
30
30
  Dynamic: license-file
31
31
 
32
- # 🚀 Janito: Natural Language Programming Agent
32
+ # 🚀 Janito: Language Model Thin Client
33
33
 
34
34
  Janito is an AI-powered assistant for the command line and web that interprets natural language system_prompt_template to edit code, manage files, and analyze projects using patterns and tools designed by experienced software engineers. It prioritizes transparency, interactive clarification, and precise, reviewable changes.
35
35
 
36
- ![Janito Terminal Shell Screenshot](https://github.com/joaompinto/janito/raw/main/docs/imgs/terminal_shell.png)
37
-
38
36
 
39
37
  For a technical overview, see the [Architecture Guide](docs/reference/architecture.md).
40
38
 
@@ -45,6 +43,7 @@ For a technical overview, see the [Architecture Guide](docs/reference/architectu
45
43
 
46
44
  ---
47
45
 
46
+
48
47
  ## Listing Available Tools
49
48
 
50
49
  To list all registered tools on the command line, use the option:
@@ -66,7 +65,7 @@ Janito supports multiple ways for users to interact with the agent:
66
65
  - **Web Interface:** Launch a browser-based UI for chat and project management (`janito --web`).
67
66
 
68
67
 
69
- ![Janito Terminal Screenshot](https://github.com/joaompinto/janito/blob/main/docs/imgs/terminal.png?raw=true)
68
+ ![Janito Terminal Screenshot](https://github.com/joaompinto/janito/blob/main/docs/imgs/terminal_one_shot.png?raw=true)
70
69
 
71
70
  ### 🛠️ Common CLI Modifiers
72
71
 
@@ -82,6 +81,7 @@ These modifiers can be combined with any interface mode for tailored workflows.
82
81
 
83
82
  ---
84
83
 
84
+
85
85
  ## 📝 Full CLI Options Reference
86
86
 
87
87
  The full list of CLI options has been moved to its own document for clarity. Please see [docs/CLI_OPTIONS.md](docs/CLI_OPTIONS.md) for a comprehensive, up-to-date reference of all supported command-line flags and their descriptions.
@@ -108,6 +108,7 @@ janito --web
108
108
 
109
109
  ---
110
110
 
111
+
111
112
  ## ✨ Key Features
112
113
 
113
114
  - 📝 **Code Editing via Natural Language:** Modify, create, or delete code files simply by describing the changes.
@@ -159,6 +160,7 @@ For details on using models hosted on Azure OpenAI, see [docs/reference/azure-op
159
160
 
160
161
  ---
161
162
 
163
+
162
164
  ## 🧑‍💻 System Prompt & Role
163
165
 
164
166
  Janito operates using a system prompt template that defines its behavior, communication profile, and capabilities. By default, Janito assumes the role of a "software engineer"—this means its responses and actions are tailored to the expectations and best practices of professional software engineering.
@@ -178,6 +180,7 @@ For more details or to customize the prompt, see the template file at `janito/ag
178
180
 
179
181
  ---
180
182
 
183
+
181
184
  ## 🥛 Vanilla Mode
182
185
 
183
186
  Janito supports a "vanilla mode" for pure LLM interaction:
@@ -278,6 +281,7 @@ See `janito/render_prompt.py` and `janito/agent/templates/` for implementation d
278
281
 
279
282
  ---
280
283
 
284
+
281
285
  ## 📂 termweb File Viewer (Web File Preview)
282
286
 
283
287
  Janito includes a lightweight web file viewer (termweb) that starts by default when you use the CLI chat shell. This feature allows you to click on file paths in the terminal (when using a Rich-compatible terminal) and instantly preview file contents in your browser—no full IDE required!
@@ -305,4 +309,5 @@ Janito includes a lightweight web file viewer (termweb) that starts by default w
305
309
  - Uses the Rich library’s link markup for clickable terminal links.
306
310
 
307
311
  ---
312
+
308
313
  _generated by janito.dev_
@@ -1,4 +1,4 @@
1
- janito/__init__.py,sha256=3FOgNNeZQVwOLG4zC5axze1mPCdl1GBkcL_JMAbAQcw,24
1
+ janito/__init__.py,sha256=RRlnM2cJwV2DWJtQnG5hIWOxPEZtWsd0G75BOYBeZTo,24
2
2
  janito/__main__.py,sha256=KKIoPBE9xPcb54PRYO2UOt0ti04iAwLeJlg8YY36vew,76
3
3
  janito/rich_utils.py,sha256=x7OsZdwtAOtUu_HYbrAMga0LElFMPbQL8GZ62vw5Jh8,1825
4
4
  janito/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -105,7 +105,7 @@ janito/i18n/pt.py,sha256=52-ENCIrPW4A1tXFRT28xA8TwuUFoihs6ezJj-m3-Y4,4260
105
105
  janito/livereload/app.py,sha256=oJTKDN5vpix26d1MA5iQz9mPLDu4VaHisAW8wtOUEhY,666
106
106
  janito/shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  janito/shell/input_history.py,sha256=JedB9TQoRf31l2XGadeQtyx1qAAFPLRyXSvMLltRwZE,2542
108
- janito/shell/main.py,sha256=ZMVAMvUAbbfYqdSdQwe6fSeHsc82rGmwZhzR9n4f-zY,12169
108
+ janito/shell/main.py,sha256=q_Odl3mZRlWF91ZqH9z2TLQuOaiJxtcaTZ-ExR93_PE,12207
109
109
  janito/shell/commands/__init__.py,sha256=CJGXhVFEQdbIL214g3vF7vhyvlvtjqjFHjSMMTjXHjM,2016
110
110
  janito/shell/commands/config.py,sha256=UTNbyNOLpIqlAle_JpCiffP7h5IOk7wxih-10_ok62w,959
111
111
  janito/shell/commands/conversation_restart.py,sha256=b32vWa7rm43lA1SrFZ0v-OAB-zf4dTP307rEr52Mt9A,2825
@@ -113,7 +113,7 @@ janito/shell/commands/edit.py,sha256=l06cigmTSfWmhzCSP7enajHf2EW6HaKlQyr-5QLLEFw
113
113
  janito/shell/commands/history_view.py,sha256=SoAR5bPIF6xN85F6HoxQJxAV8BluU_934T-CaMYnN7A,797
114
114
  janito/shell/commands/lang.py,sha256=Ry1OgQmzgR0p6SgjWg-j5sdpHkLRIUCVGtTzkBOhJzg,599
115
115
  janito/shell/commands/livelogs.py,sha256=GDx9UL7bYOfemCBsIWLrKOCgG-PYy7X_VLrl5USqpgE,1758
116
- janito/shell/commands/prompt.py,sha256=OpcKg3-Vhy8enFJEc2LS-JrEQzH4Y-nogzVj2-dnGqI,2059
116
+ janito/shell/commands/prompt.py,sha256=r16Xmjv5mSn4eVF7SHy9mSSxvYoXM3L-ij0WeELG_Qo,2437
117
117
  janito/shell/commands/session.py,sha256=tYav6GgjAZkvWhlI_rfG6OArNqW6Wn2DTv39Hb20QYc,1262
118
118
  janito/shell/commands/session_control.py,sha256=PAFg00vXQvIhAuCtd4L149hrj8jGguB0EtBJwo-CFLo,1295
119
119
  janito/shell/commands/termweb_log.py,sha256=xxFz2GhFRI7w7jNk0D0Gq6RFBuzIZF1paDMK2MBeNWA,3519
@@ -154,9 +154,9 @@ janito/tests/test_rich_utils.py,sha256=S_mGVynekAP0DM4A_ZaY-SseJGtdlBJxOlzc-v8lJ
154
154
  janito/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
155
  janito/web/__main__.py,sha256=5Ck6okOZmxKYkQ-ir4mxXDH7XWMNR-9szgsm0UyQLE0,734
156
156
  janito/web/app.py,sha256=-zUBA1zlnrZdYbI421CSAgFZXOisLmIznNzUJrkSLQQ,4762
157
- janito-1.14.1.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
158
- janito-1.14.1.dist-info/METADATA,sha256=5nRgmmcZUp0v0Bb9C-1ilF4xSNQcPAe6wdefLAhtluU,13025
159
- janito-1.14.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
160
- janito-1.14.1.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
161
- janito-1.14.1.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
162
- janito-1.14.1.dist-info/RECORD,,
157
+ janito-1.14.3.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
158
+ janito-1.14.3.dist-info/METADATA,sha256=sEoeDSpRcwVXhol4d1CGLJINmYjEDlXTMP7UGpEuB8Y,12917
159
+ janito-1.14.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
160
+ janito-1.14.3.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
161
+ janito-1.14.3.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
162
+ janito-1.14.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5