janito 1.6.0__py3-none-any.whl → 1.7.0__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.
Files changed (43) hide show
  1. janito/__init__.py +1 -1
  2. janito/agent/config.py +2 -2
  3. janito/agent/config_defaults.py +1 -0
  4. janito/agent/conversation.py +4 -1
  5. janito/agent/openai_client.py +2 -0
  6. janito/agent/platform_discovery.py +90 -0
  7. janito/agent/profile_manager.py +83 -91
  8. janito/agent/rich_message_handler.py +72 -64
  9. janito/agent/templates/profiles/system_prompt_template_base.toml +76 -0
  10. janito/agent/templates/profiles/system_prompt_template_default.toml +3 -0
  11. janito/agent/templates/profiles/system_prompt_template_technical.toml +13 -0
  12. janito/agent/tests/test_prompt_toml.py +61 -0
  13. janito/agent/tools/__init__.py +4 -0
  14. janito/agent/tools/ask_user.py +8 -2
  15. janito/agent/tools/create_directory.py +27 -10
  16. janito/agent/tools/find_files.py +2 -10
  17. janito/agent/tools/get_file_outline.py +29 -0
  18. janito/agent/tools/get_lines.py +9 -10
  19. janito/agent/tools/memory.py +68 -0
  20. janito/agent/tools/run_bash_command.py +79 -60
  21. janito/agent/tools/run_powershell_command.py +153 -0
  22. janito/agent/tools/run_python_command.py +4 -0
  23. janito/agent/tools/search_files.py +0 -6
  24. janito/cli/_print_config.py +1 -1
  25. janito/cli/config_commands.py +1 -1
  26. janito/cli/main.py +1 -1
  27. janito/cli/runner/__init__.py +0 -2
  28. janito/cli/runner/cli_main.py +3 -13
  29. janito/cli/runner/config.py +4 -2
  30. janito/cli/runner/scan.py +22 -9
  31. janito/cli_chat_shell/chat_loop.py +13 -9
  32. janito/cli_chat_shell/chat_ui.py +2 -2
  33. janito/cli_chat_shell/commands/__init__.py +2 -0
  34. janito/cli_chat_shell/commands/sum.py +49 -0
  35. janito/cli_chat_shell/load_prompt.py +47 -8
  36. janito/cli_chat_shell/ui.py +8 -2
  37. janito/web/app.py +6 -9
  38. {janito-1.6.0.dist-info → janito-1.7.0.dist-info}/METADATA +17 -9
  39. {janito-1.6.0.dist-info → janito-1.7.0.dist-info}/RECORD +43 -35
  40. {janito-1.6.0.dist-info → janito-1.7.0.dist-info}/WHEEL +0 -0
  41. {janito-1.6.0.dist-info → janito-1.7.0.dist-info}/entry_points.txt +0 -0
  42. {janito-1.6.0.dist-info → janito-1.7.0.dist-info}/licenses/LICENSE +0 -0
  43. {janito-1.6.0.dist-info → janito-1.7.0.dist-info}/top_level.txt +0 -0
@@ -1,36 +1,42 @@
1
- janito/__init__.py,sha256=PTA-UJ0gOgRLnjvcmghK_Up95KKEx6TmFCJ8J8l7GRI,23
1
+ janito/__init__.py,sha256=XDkqD7tg6140OaT-GWVelJpBREPl5hVT6A8vmk41J2M,23
2
2
  janito/__main__.py,sha256=KKIoPBE9xPcb54PRYO2UOt0ti04iAwLeJlg8YY36vew,76
3
3
  janito/rich_utils.py,sha256=gZ4uAYyAeSk_H1uCGYhYkFoel5Z1SDmNhp241pnniqg,1085
4
4
  janito/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- janito/agent/config.py,sha256=gD2puBUjKbb8bv_KbGUBP7OeeW0JqEEvYQXmIjv0avE,4617
6
- janito/agent/config_defaults.py,sha256=dL3_8mRzEd7c_CF6GQe_-LAN3vWZpOFpm2cgaitpkYo,482
5
+ janito/agent/config.py,sha256=vygbu5gW-NVk0rAL5fOMD2AQPl2QoGbA65AHf1Ppcqk,4653
6
+ janito/agent/config_defaults.py,sha256=_fkVCbnp0JUeYV_0mvoh8a4R_oJQer-lBZS71PR76O8,529
7
7
  janito/agent/config_utils.py,sha256=UmvR236wDrMc-aTy9LxVbop6YeoJaaPb1d2DBMlkSRg,254
8
8
  janito/agent/content_handler.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- janito/agent/conversation.py,sha256=fFdWmyxUBbqm3LWL1INVd1MKAQS7EbTPuGRBBAjWom8,4956
9
+ janito/agent/conversation.py,sha256=bTHCmOphS-fQHSUkF2mL0oTIwT-9IsGbA3Ajy7ZgRCI,5178
10
10
  janito/agent/conversation_api.py,sha256=v85_BwcyNceeYZorDKnjpgpDUY5sfvTwQMoVjXxAdmE,3441
11
11
  janito/agent/conversation_exceptions.py,sha256=F36wOPRx0yFaiQUuVqxktkRdNlnXVOUovAEdB40poNM,260
12
12
  janito/agent/conversation_tool_calls.py,sha256=7RWy_TVxXZY8Cmafy2XtSF1sCLf9O3NIC7dw1PtVYqk,874
13
13
  janito/agent/conversation_ui.py,sha256=y4f0IoJQoWGrFMB3yi7uIwXokuTjhFtJGK_R7zcTv3w,397
14
14
  janito/agent/message_handler.py,sha256=Za4xUflbRvamlJP_4_YEStOiXuCYYjI1uQkHabTaUtA,754
15
- janito/agent/openai_client.py,sha256=LM-94jjmARIuuASMCZeJ6N8_seobaQ_lbkeksTLZl24,4624
15
+ janito/agent/openai_client.py,sha256=nsBQZQ_F_wBd6kVTbbT0Jr5LM0suMGkEtGsCY_r7K88,4707
16
16
  janito/agent/openai_schema_generator.py,sha256=hqe7VVIf5mPcnSn38_MOlI9HJtTayN-aAXJz9iwxp4s,4821
17
- janito/agent/profile_manager.py,sha256=WSd8ZaOCF5MN4EvSIysl-w3TuTaExi8247BASoyta2E,6364
17
+ janito/agent/platform_discovery.py,sha256=yp6KTvc-_u22Dr8-J4cdjVMUS8HkCf343aeSGRu2wek,2712
18
+ janito/agent/profile_manager.py,sha256=Kzf1PhG5JtbYVXb-ikshwsFwNs1Xwa4KPi-SLRDGKIM,6097
18
19
  janito/agent/queued_message_handler.py,sha256=sWyadc4h1xkFn_kgO0Hp5lgzj_8J23i-tV31M1lNtV0,1422
19
20
  janito/agent/rich_live.py,sha256=NKWU89hRakiJ-0N6FPg40bYREOxQizqicbDv9eUfsKs,927
20
- janito/agent/rich_message_handler.py,sha256=JjoGLJThYd-nO5qLB2FsAyaHoTOS4lTEPP-N91nZPeA,2301
21
+ janito/agent/rich_message_handler.py,sha256=I2eXkE91Zqbz9losj2SDkEYRpHtJAd_u-P46x3QpOPY,2512
21
22
  janito/agent/runtime_config.py,sha256=xSx0-RD-WVA9niSCEmEn2ZPLFbQfRhPwwGIa8tid_v8,901
22
23
  janito/agent/tool_base.py,sha256=b7WJkoCUObFK-WjUXfUm874UmKujYQFAyC7FVkxDOMo,1901
23
24
  janito/agent/tool_registry.py,sha256=Wa1mNzTBKsxQyFCc2hQgDDRrb-m6TI_XbBGebCzr-6U,4037
24
25
  janito/agent/tool_registry_core.py,sha256=bF7rRn3ZMpU7JXBFhYQPg2XxczhN572Xc5pbdLBPkvE,148
25
- janito/agent/tools/__init__.py,sha256=68YCMWtkepgjOBkptPNmQpv7Tgb5_58uOWxAMR8fjII,979
26
- janito/agent/tools/ask_user.py,sha256=ZQGKI-cjK8CG6O3elEf5v6c5iybVzgfNiZienK6I2oQ,2912
27
- janito/agent/tools/create_directory.py,sha256=vIKP0kYnU3Ypik9e_iNwuwU7rkb5sdUtHMj2q8NA37A,1303
26
+ janito/agent/templates/profiles/system_prompt_template_base.toml,sha256=yXFmiSs-wcbhQsWifCw3EUbak_cLeLEUKiaCSius7W8,3566
27
+ janito/agent/templates/profiles/system_prompt_template_default.toml,sha256=RNxWgiaxBd92QNmKnHzCpzZpCUwop33q8BKlSJEd7as,158
28
+ janito/agent/templates/profiles/system_prompt_template_technical.toml,sha256=VBCThop4M44TuV7JtfHLeXNKlrOfuV7T0jBgj_Gy2oE,679
29
+ janito/agent/tests/test_prompt_toml.py,sha256=f7MitmT-5EIl2NFcy89xWPmBSb5ELhwKmiTH2777rFY,2016
30
+ janito/agent/tools/__init__.py,sha256=13ocBokds3I00rQg871yaKNbNDlSGXljcMRpq2FiO-4,1085
31
+ janito/agent/tools/ask_user.py,sha256=HHbNGwZiV-ec5Zb3zx9DpwBsWY_fgbHU6AXmbGkHrFA,3195
32
+ janito/agent/tools/create_directory.py,sha256=YLDaINn0OJG6DmOsJEu9K0NjTu4sGrGVCNNVxn7U46Q,2156
28
33
  janito/agent/tools/create_file.py,sha256=wkPpo42KS3958Jialjyt8_Lv0CXIRgOmUI5EJ7wNw3o,2230
29
34
  janito/agent/tools/fetch_url.py,sha256=xsNdxfyDBj6nLYBsMiQoBr685-TUxRx3s3893F7E2ek,2027
30
- janito/agent/tools/find_files.py,sha256=CMUAAC-3skw2OKbu_wN6SFBeiVx-xWgVrA5_u4a6sLc,2604
31
- janito/agent/tools/get_file_outline.py,sha256=e9RNijfE5koaSB0mJe-L3j-fjG4I1YgTJeToDMTTFuY,5348
32
- janito/agent/tools/get_lines.py,sha256=pCV9ut6-GTRj5rBCp8hijTAwh37D8hPXScOjuy1HWUQ,3926
35
+ janito/agent/tools/find_files.py,sha256=tyB9WoUHK4qFakiQRKNZR5xyG1U20aJwjptqDef4A_I,2182
36
+ janito/agent/tools/get_file_outline.py,sha256=5rxDh_tDu-SDfQQj54Qy3KlBqHPh4QTzg5971ea6QcE,6733
37
+ janito/agent/tools/get_lines.py,sha256=TqlhItxUXHpbqEHs2Jnsas2ijXBWWTYHHnFDVAO4hTo,3760
33
38
  janito/agent/tools/gitignore_utils.py,sha256=fDLyRZmCu6Hqhp1BEN8hs7oG0FtA-1SM9TGDz4g0lbw,1470
39
+ janito/agent/tools/memory.py,sha256=ApfXwfggSCa08f-e0pfHVBIjlFpYv_MDiOo7Cah0oYM,2516
34
40
  janito/agent/tools/move_file.py,sha256=6-90TNlL9JnhWMFCtoy59TRZq2xk6VrP8Mv-EpPDP80,2568
35
41
  janito/agent/tools/py_compile_file.py,sha256=pfHDXVa75WhO5Io_rXF0DnIB8y2BypoAsS4wNCVANeE,1601
36
42
  janito/agent/tools/remove_directory.py,sha256=oMme-7e6hZG5Z0Wxu6SpdWjop_yMMZlrBtwkoqfn2NY,2192
@@ -38,44 +44,46 @@ janito/agent/tools/remove_file.py,sha256=dq17r-vd61LGS6RLic77BlD6ZzuAjWBBUGtUsX5
38
44
  janito/agent/tools/replace_file.py,sha256=oex5dncfny0Lv9om3LVs1u77IOemKZ7Cjh4IRIz_paM,2381
39
45
  janito/agent/tools/replace_text_in_file.py,sha256=DNafuM6CFTKVEimP6jb9IHglG3BGCezQDLRbqSJ6TfI,5288
40
46
  janito/agent/tools/rich_live.py,sha256=KpAN-dF0h9LZnYvSK-UKR_sbDnnDw0jUxY3cj_EW_wQ,1215
41
- janito/agent/tools/run_bash_command.py,sha256=yDyVVQspaV_bNqOoAyplwczOpwu62MhNMHsQGkV37s8,6878
42
- janito/agent/tools/run_python_command.py,sha256=_NdpRMNeHIf4h0ARaYUyO7ncHEbLXICFk8uJVdwpCPU,6099
43
- janito/agent/tools/search_files.py,sha256=iyED-9QW1zGEJWIlqHPTQYanMDZA8vK4qIQ03eO4ZkU,3240
47
+ janito/agent/tools/run_bash_command.py,sha256=bSWpEklSABWwt_p_snahiCCJXOgahaVWZvVu9q1OX68,7372
48
+ janito/agent/tools/run_powershell_command.py,sha256=5oEP3_Sf_k9uKBlGwlDxQOVEVG-rgOUdIJqnxF3fHF4,7080
49
+ janito/agent/tools/run_python_command.py,sha256=mR8hRWSzBMDI7BbRWBPaun2J6H5V2lstoef1SeOVLYM,6232
50
+ janito/agent/tools/search_files.py,sha256=AEcEqm1LnD2avn9jiJoI13PtTOY8cZ5TlwlvO4-sF5w,2914
44
51
  janito/agent/tools/tools_utils.py,sha256=ud0S8uVe1I3hKQBdQMf_RcYEDt7baTGBGeDd5IU23-o,358
45
52
  janito/agent/tools/utils.py,sha256=zsW-ROZJYYFeDAhwN0YHMAqsnjfBXPdvJJVAa_TmQ1g,1136
46
53
  janito/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
- janito/cli/_print_config.py,sha256=VRv_KSVaeMmqmF5cHQC0YfRqem3LgcsXoWRn6fyNJfQ,3566
54
+ janito/cli/_print_config.py,sha256=C_27QdwzhqorzeJflBFK0f46zTUtqqmdYe3EBurjOOE,3574
48
55
  janito/cli/_utils.py,sha256=tRAUMDWKczd81ZvKYkwpsHWSeLzQoVlOoQ-lOw9Iujw,291
49
56
  janito/cli/arg_parser.py,sha256=AXzq6TIRjD7EBWb176CCszMz7LWuCtMu4c0a03XRQk8,5897
50
- janito/cli/config_commands.py,sha256=CHIeqxs6rwAfvfaq_hZYrSdWtG0oQjsZBfMo95RUfLk,8531
57
+ janito/cli/config_commands.py,sha256=vfU7XciVMRNR5kDvn6tnCo1PLvSEXg0Y0PzLcDEFI9w,8539
51
58
  janito/cli/logging_setup.py,sha256=u2FxjJo-klLsY6aHxBuDymDYnuw9bc--1aqqsVeW9jc,1213
52
- janito/cli/main.py,sha256=2_fy_wPu7wAL-pxvdC65wxu6Wz4sFTTP5N6SLShT5Ak,1289
53
- janito/cli/runner/__init__.py,sha256=LBu8S8JS73biePK_WwSIlRBwM1c5DX5DGklN7acIyO0,70
54
- janito/cli/runner/cli_main.py,sha256=hKbvMmWZHm01z9qSUYTJ8bUUkE1o3YC55S7PYGN4Eqk,5446
55
- janito/cli/runner/config.py,sha256=7uqzw7vIA_SCCJFACjE_pHtPb9l9IXsaZW-ra_0AdQ0,1705
59
+ janito/cli/main.py,sha256=GYVkD0tTzG91HTVI5ovOELm7QsZK8MKJ2aWkRRQztVQ,1298
60
+ janito/cli/runner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
+ janito/cli/runner/cli_main.py,sha256=98M9SGh-KdM4Sw7zVbJciM18wpNawy8nvbXqP5RuJ1w,4928
62
+ janito/cli/runner/config.py,sha256=dxF8BdJDRXJc7rR3pMAp3KEw4zo2Y2dlrwRtsK3jam4,1744
56
63
  janito/cli/runner/formatting.py,sha256=k0mtHoglqR8fKcebSK81iWTT_EL-gDl7eNfjlFZRY6g,287
57
- janito/cli/runner/scan.py,sha256=QTA67URhdJtIE8jw7aA2NA0cal1d64G7v36NCH0E0w4,1760
64
+ janito/cli/runner/scan.py,sha256=cOxaiSm_NM5hHzI6RoVROuLhYdpg0xPLN86ocGGOFk0,2107
58
65
  janito/cli_chat_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
- janito/cli_chat_shell/chat_loop.py,sha256=DD71TzcJublz3I3zRiylw6EPD2SuGNah2P81FZQmYVo,4450
66
+ janito/cli_chat_shell/chat_loop.py,sha256=Wbjw_2ltrE53jj4-l6itKtzE0-PDytgMTr0ZEHBq4SM,4607
60
67
  janito/cli_chat_shell/chat_state.py,sha256=5wLSjZV0y5fHyU-Lkl4J4-G2GRY0n7gfcAof3515_Bo,1162
61
- janito/cli_chat_shell/chat_ui.py,sha256=IbP2OVGkLycgcUBvdgbKyIUbCnMduhvoSMYYKlpWULc,1344
68
+ janito/cli_chat_shell/chat_ui.py,sha256=VfDGvRU79FBFXZWzIhi0lTlObssee3SJ7qIqBSiwIDc,1361
62
69
  janito/cli_chat_shell/config_shell.py,sha256=sG04S_z27wI7nXKMaVDcwDpBCuo6Cvd4uhutUQesJKo,3807
63
- janito/cli_chat_shell/load_prompt.py,sha256=8AyHaADBk5_berjt10fISG3Z9Bu5RnVUs2BzNEYOPIQ,633
70
+ janito/cli_chat_shell/load_prompt.py,sha256=gHedc5TtaFBKiGgwRM_u9nVnBuLHDTSa8VPlPOtoMEA,2125
64
71
  janito/cli_chat_shell/session_manager.py,sha256=qzCDpAAXx_YZRVF4GwWPwbkxROwj_14jF52QjkjDGP4,2136
65
- janito/cli_chat_shell/ui.py,sha256=5a5lwlEQs211R6Pr_WYt9HuMoQMjTkbamyoHZC5lsaI,6616
66
- janito/cli_chat_shell/commands/__init__.py,sha256=D06FCOmKCFf02Li63KlkAtW753z5fSGJ_AylMJGvk9A,1378
72
+ janito/cli_chat_shell/ui.py,sha256=sra742hbgGh5-lBR_GcZMrj68tnDFWYOMMMJj-RAy1M,6879
73
+ janito/cli_chat_shell/commands/__init__.py,sha256=9awuBXqZ_jWCigM86qFzDJ-1HZrIw5byPlGKGqTOBOQ,1436
67
74
  janito/cli_chat_shell/commands/config.py,sha256=JTQwIuSBunxDwvGsU_Cu78GkQNYCtDFTPZ7HOxNOZCY,945
68
75
  janito/cli_chat_shell/commands/history_reset.py,sha256=GBY8Cpcm2yE1C3DhiWWQwS7WFYPxoJ3LPmD0hCx8ut8,1017
69
76
  janito/cli_chat_shell/commands/session.py,sha256=64H9UYB-LRSWzMar_C7iNM06MqrKmpRm_Dk9XXIMCiM,1739
70
77
  janito/cli_chat_shell/commands/session_control.py,sha256=7G4XYfI22fHguJgIbIrbcQ_fIbcrvd1gBBXRuYUqtBU,333
78
+ janito/cli_chat_shell/commands/sum.py,sha256=S_46ubHUnGoLNwL5_0VeDmA5YYo99aX8baZuBdU1gZ8,1829
71
79
  janito/cli_chat_shell/commands/system.py,sha256=ixKp6JLagcs6zsXsmTvzSNY4TUFIVzRxhiZfLvI-OJU,2717
72
80
  janito/cli_chat_shell/commands/utility.py,sha256=QUa35hppatRLY24DuXiEIn7gCIcNz4w4qbkRC157QOU,936
73
81
  janito/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
82
  janito/web/__main__.py,sha256=5Ck6okOZmxKYkQ-ir4mxXDH7XWMNR-9szgsm0UyQLE0,734
75
- janito/web/app.py,sha256=O4rQSSqRG-N2tk3ho0CTMeybbrCd8pESFqpmiGASHVk,7453
76
- janito-1.6.0.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
77
- janito-1.6.0.dist-info/METADATA,sha256=JyLiizuc2poewVQtV2F2-H4rdut0FK7u5QvyaNiUhMU,10729
78
- janito-1.6.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
79
- janito-1.6.0.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
80
- janito-1.6.0.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
81
- janito-1.6.0.dist-info/RECORD,,
83
+ janito/web/app.py,sha256=Uvl6gHxkWPov_iD1mhx8Nwt3WZK2rFw7Sgfw7-5qhRk,7357
84
+ janito-1.7.0.dist-info/licenses/LICENSE,sha256=sHBqv0bvtrb29H7WRR-Z603YHm9pLtJIo3nHU_9cmgE,1091
85
+ janito-1.7.0.dist-info/METADATA,sha256=LPIYR8A5UejBMfHNFbLF73qJmDcC0CKm6KQLVbyDf9Y,11062
86
+ janito-1.7.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
87
+ janito-1.7.0.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
88
+ janito-1.7.0.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
89
+ janito-1.7.0.dist-info/RECORD,,
File without changes