janito 1.13.0__py3-none-any.whl → 1.13.1__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.13.0"
1
+ __version__ = "1.13.1"
@@ -44,6 +44,7 @@ def setup_prompt_session(
44
44
  )
45
45
  else (runtime_config.get("role") or effective_config.get("role"))
46
46
  ),
47
+ version=__version__,
47
48
  session_id=session_id,
48
49
  history_ref=history_ref,
49
50
  ),
@@ -36,7 +36,8 @@ def format_tokens(n, tag=None):
36
36
  return f"<{tag}>{val}</{tag}>" if tag else val
37
37
 
38
38
 
39
- def assemble_first_line(model_name, role_ref, style_ref):
39
+ def assemble_first_line(model_name, role_ref, style_ref, version=None):
40
+ version_part = f" Janito v{version}" if version else ""
40
41
  model_part = f" {tr('Model')}: <model>{model_name}</model>" if model_name else ""
41
42
  role_part = ""
42
43
  vanilla_mode = runtime_config.get("vanilla_mode", False)
@@ -50,6 +51,8 @@ def assemble_first_line(model_name, role_ref, style_ref):
50
51
  if style:
51
52
  style_part = f"{tr('Style')}: <b>{style}</b>"
52
53
  first_line_parts = []
54
+ if version_part:
55
+ first_line_parts.append(version_part)
53
56
  if model_part:
54
57
  first_line_parts.append(model_part)
55
58
  if role_part:
@@ -125,7 +128,9 @@ def get_toolbar_func(
125
128
 
126
129
  def get_toolbar():
127
130
  width = get_app().output.get_size().columns
128
- first_line = assemble_first_line(model_name, role_ref, style_ref)
131
+ first_line = assemble_first_line(
132
+ model_name, role_ref, style_ref, version=version
133
+ )
129
134
  second_line = assemble_second_line(
130
135
  width,
131
136
  last_usage_info_ref,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janito
3
- Version: 1.13.0
3
+ Version: 1.13.1
4
4
  Summary: Natural Language Coding Agent,
5
5
  Author-email: João Pinto <joao.pinto@gmail.com>
6
6
  License-Expression: MIT
@@ -13,7 +13,6 @@ Requires-Python: >=3.10
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
15
  Requires-Dist: beautifulsoup4
16
- Requires-Dist: docstring-parser
17
16
  Requires-Dist: flask
18
17
  Requires-Dist: jinja2
19
18
  Requires-Dist: openai
@@ -21,8 +20,10 @@ Requires-Dist: pathspec
21
20
  Requires-Dist: prompt_toolkit
22
21
  Requires-Dist: requests
23
22
  Requires-Dist: rich
24
- Requires-Dist: toml
25
23
  Requires-Dist: lxml
24
+ Requires-Dist: PyYAML
25
+ Requires-Dist: quart
26
+ Requires-Dist: questionary
26
27
  Provides-Extra: docs
27
28
  Requires-Dist: mkdocs>=1.5.3; extra == "docs"
28
29
  Requires-Dist: mkdocs-material>=9.4.8; extra == "docs"
@@ -1,4 +1,4 @@
1
- janito/__init__.py,sha256=3Vxl6FAJt_13oY3p4Zx-Yd9-94VF7otXCDoEarA5jhA,24
1
+ janito/__init__.py,sha256=B1AK9YV1itFsVaGDvnQIKlFZOLc6ZAzK0Pma9tDW1jM,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
@@ -123,11 +123,11 @@ janito/shell/commands/utility.py,sha256=DKcEbBIDmtxxZgWtT9-qBUVmFbCbRUILDo0kecmG
123
123
  janito/shell/commands/verbose.py,sha256=mg7BlsWTkNwbUBN2p_GME4ep3zzAp0jMSc6N4BT3Ebg,980
124
124
  janito/shell/prompt/completer.py,sha256=6gNu0DNNSbUUVgjk8Y0hWwJwk-jbN8Lm6Y4u0mRu930,755
125
125
  janito/shell/prompt/load_prompt.py,sha256=gHedc5TtaFBKiGgwRM_u9nVnBuLHDTSa8VPlPOtoMEA,2125
126
- janito/shell/prompt/session_setup.py,sha256=ry4TqiXYyw3JmZfGRGIpvAgNMXGeWltCwz56NoiBqSY,1531
126
+ janito/shell/prompt/session_setup.py,sha256=WHnQfhd71lfXkxp5Imjgq7PdmNHkydKl_y6T1VKMwCA,1565
127
127
  janito/shell/session/config.py,sha256=5hBgPeYDrgxtVEyVaR8nmw1DYNmSqY8ilyuNyUXnnpQ,3684
128
128
  janito/shell/session/history.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
129
129
  janito/shell/session/manager.py,sha256=LGf2x9mprGOHAJhq7_OfIZM8Z2bmAEJ_KakaZr1XqXc,3116
130
- janito/shell/ui/interactive.py,sha256=sD7z_kXKDW4sMVA3dZ9RslThuaJfLJh1mURgIsiTmVk,7716
130
+ janito/shell/ui/interactive.py,sha256=ZJwABzn651dvijMJs9JT6MvZjHe4Sw4Wykx8WIO2Be4,7901
131
131
  janito/termweb/app.py,sha256=co4a7cw6pC2P79dMZaNxjPJrP_B9suTGRIWTgqK5ccw,3322
132
132
  janito/termweb/static/editor.css,sha256=71xpzRL993GPKKJPfTVcPI6iHhjnUg2U5-z33EAuTWA,3185
133
133
  janito/termweb/static/editor.css.bak,sha256=S7tMjZFtcDZyx4asRf-WNclyuK9_rnemwOc6JpzSwdQ,2908
@@ -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.13.0.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
158
- janito-1.13.0.dist-info/METADATA,sha256=er7ySO_CJRytKqwmORgEU7zFtTJqyt4bGPxms4to_RE,12879
159
- janito-1.13.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
160
- janito-1.13.0.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
161
- janito-1.13.0.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
162
- janito-1.13.0.dist-info/RECORD,,
157
+ janito-1.13.1.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
158
+ janito-1.13.1.dist-info/METADATA,sha256=ZTeYo-o3TM-dF9nMgOuZTRw2nX2rWtw19ns9Yzk5RG4,12898
159
+ janito-1.13.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
160
+ janito-1.13.1.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
161
+ janito-1.13.1.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
162
+ janito-1.13.1.dist-info/RECORD,,