janito 1.0.0__py3-none-any.whl → 1.0.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.0.0"
1
+ __version__ = "1.0.1"
janito/cli/runner.py CHANGED
@@ -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,4 +1,4 @@
1
- janito/__init__.py,sha256=ZhzQKWZ8RFrTIkj7z87B144DI95e8LMfA5w8NDWQDtg,23
1
+ janito/__init__.py,sha256=j9q3lYMZra0QrErNnn9E5GNXxWLOlDgeOkmX8oXa7ro,23
2
2
  janito/__main__.py,sha256=CBScR30Tm-vuhIJM8o5HXKr0q-smICiwSVyuU68BP8U,78
3
3
  janito/render_prompt.py,sha256=HrMUELV4tI3PWqv6RM6teiVvnUejdehBcnHUFzit3Bo,445
4
4
  janito/agent/__init__.py,sha256=CByAH5Yk-yH64zo0RU7Z3nsn_7Vmandphqk0JNlpyj8,21
@@ -31,21 +31,21 @@ janito/cli/arg_parser.py,sha256=6Y_gBJSPk7tdHKSAsi1fQdr4pnCp8dcSGFrlu7s8KiI,2498
31
31
  janito/cli/config_commands.py,sha256=Ovk2LszVrHcKSqXjlH-fvJYhT3axZomlh9_wpNQfSYI,5675
32
32
  janito/cli/logging_setup.py,sha256=dWQ0wFf4YuF5lxZlhpN6lis7G56LeFYUwQdh9nA5NmA,1141
33
33
  janito/cli/main.py,sha256=ONmn_lIPu8_Rd57j3YfWEx46fWj8gAkONPLdctABwy0,1333
34
- janito/cli/runner.py,sha256=OWQ1i1FsrojBRiahoTIKcx4fChHv2qXzDjF7hhvD7lg,5228
34
+ janito/cli/runner.py,sha256=K_xpygfg4MpyLuI6hx3s1I6-leEd80w08l3F6PIO4so,5362
35
35
  janito/cli_chat_shell/__init__.py,sha256=PDGl7xK_vgkROoXvUxGZqVQFfuL9U4TjdexpP8E2JKg,41
36
- janito/cli_chat_shell/chat_loop.py,sha256=ySuwJ9JPkYDTZ8Ls2moxNDB1h9dtIHVpEOsIkcn5lyg,5173
36
+ janito/cli_chat_shell/chat_loop.py,sha256=KjnmhOYU0zblBzV5Q80BCqgvKSi_rPpE3TykzzDoexk,5259
37
37
  janito/cli_chat_shell/commands.py,sha256=Tvhw8azybchGS1qi2yJEn3FKho-FDYOK1ZT865GYwhM,7615
38
38
  janito/cli_chat_shell/config_shell.py,sha256=s59PCt_TmBPqQJ_C8nkKo4kCcW9aq3Jhpe9RlRCa0-s,3265
39
39
  janito/cli_chat_shell/load_prompt.py,sha256=EuUlHg317T8f5VqEMaJxFgzWBl51zC2sND0eeYr6pJ4,612
40
40
  janito/cli_chat_shell/session_manager.py,sha256=Gax0pC0ediDsExLUwPEg_nD8MdSrznaHoer53zxLYuE,1966
41
41
  janito/cli_chat_shell/ui.py,sha256=7O36dWaXDQ5r-GGD6a57iHSiDpN2pkdav3HxSdf6CIc,5279
42
- janito/templates/system_instructions.j2,sha256=CZatXq9HGwcg4tjMhI91etDILAvLsI5mw8wiXO3zTSk,1725
42
+ janito/templates/system_instructions.j2,sha256=f-hRp0ZliGac8vg6HJiYkU0TketpFoSbUunh9TOQrtE,1795
43
43
  janito/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  janito/web/__main__.py,sha256=oPXNF332aCeI7aUWr7_8M57oOKugw422VrEubxFp0P4,354
45
45
  janito/web/app.py,sha256=bZse9S_F9hFSYRTJxoel5RjrtoAmvJ_lYkPfKRmBI1o,4125
46
- janito-1.0.0.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
47
- janito-1.0.0.dist-info/METADATA,sha256=ZKWmFtrHsA4zxTjv9BcuT1QJCZylN4MEBBV5YmONkZU,5103
48
- janito-1.0.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
49
- janito-1.0.0.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
50
- janito-1.0.0.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
51
- janito-1.0.0.dist-info/RECORD,,
46
+ janito-1.0.1.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
47
+ janito-1.0.1.dist-info/METADATA,sha256=NcSx21pY78wR4NzupbiIuEc0srPMn9nToBpLFbKZQjM,5103
48
+ janito-1.0.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
49
+ janito-1.0.1.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
50
+ janito-1.0.1.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
51
+ janito-1.0.1.dist-info/RECORD,,
File without changes