janito 3.16.3__py3-none-any.whl → 3.17.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.
janito/config_manager.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import json
2
+ import os
2
3
  from pathlib import Path
3
4
  from threading import Lock
4
5
 
@@ -95,7 +96,14 @@ class ConfigManager:
95
96
  f.write("\n")
96
97
 
97
98
  def get(self, key, default=None):
98
- # Precedence: runtime_overrides > file_config > defaults
99
+ # Precedence: runtime_overrides > environment variables > file_config > defaults
100
+ # Special handling for base_url to check BASE_URL environment variable
101
+ if key == "base_url":
102
+ env_value = os.environ.get("BASE_URL")
103
+ if env_value is not None:
104
+ return env_value
105
+
106
+ # Standard precedence for other keys
99
107
  for layer in (self.runtime_overrides, self.file_config, self.defaults):
100
108
  if key in layer and layer[key] is not None:
101
109
  return layer[key]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janito
3
- Version: 3.16.3
3
+ Version: 3.17.0
4
4
  Summary: A new Python package called janito.
5
5
  Author-email: João Pinto <janito@ikignosis.org>
6
6
  Project-URL: Homepage, https://github.com/ikignosis/janito
@@ -4,7 +4,7 @@ janito/__main__.py,sha256=lPQ8kAyYfyeS1KopmJ8EVY5g1YswlIqCS615mM_B_rM,70
4
4
  janito/_version.py,sha256=nsX_0pSnMlBdPtQfo7-jSpHdr6c64NQci57iXCaTf2A,2292
5
5
  janito/agent_events.py,sha256=qOxoqeHQy3eITkfh3gaLoHWqrNH3aGlcRvEBZc2wsow,2114
6
6
  janito/config.py,sha256=DXuC74NEywKvpTkOSrrxJGvHdL_tvXEf27pkedV3XZA,313
7
- janito/config_manager.py,sha256=0dnECwhkgk8dWYZDtHZ24lNXhYJ4PkmYEDty9Vc1s3c,6281
7
+ janito/config_manager.py,sha256=ab2NdGpqWUUmDTJkkt4wP4LIkJHZHY553SE9oOMMIvE,6600
8
8
  janito/conversation_history.py,sha256=GqqEJElTVONzOMRe-9g25WCMcDi0PF7DOnqGWLTrY_8,897
9
9
  janito/dir_walk_utils.py,sha256=ON9EyVH7Aaik8WtCH5z8DQis9ycdoNVkjNvU16HH498,1193
10
10
  janito/driver_events.py,sha256=51ab7KW_W6fVZVeO0ez-HJFY4NbTI327ZlEmEsEkxQc,3405
@@ -266,9 +266,9 @@ janito/tools/tool_utils.py,sha256=alPm9DvtXSw_zPRKvP5GjbebPRf_nfvmWk2TNlL5Cws,12
266
266
  janito/tools/tools_adapter.py,sha256=3Phjw34mOqG0KvXzQpZKIWigfSgZWRvdYuSdvV7Dj4M,21965
267
267
  janito/tools/tools_schema.py,sha256=bv7jQfjh6yCbiRNPJykmbCTBgZZrOV2z_WqWQOjeY5o,4324
268
268
  janito/tools/url_whitelist.py,sha256=0CPLkHTp5HgnwgjxwgXnJmwPeZQ30q4j3YjW59hiUUE,4295
269
- janito-3.16.3.dist-info/licenses/LICENSE,sha256=dXV4fOF2ZErugtN8l_Nrj5tsRTYgtjE3cgiya0UfBio,11356
270
- janito-3.16.3.dist-info/METADATA,sha256=CfsM8gUX4A0-ohWhRhshVu1z-QcU2r6jwMIULoLvOPo,1722
271
- janito-3.16.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
272
- janito-3.16.3.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
273
- janito-3.16.3.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
274
- janito-3.16.3.dist-info/RECORD,,
269
+ janito-3.17.0.dist-info/licenses/LICENSE,sha256=dXV4fOF2ZErugtN8l_Nrj5tsRTYgtjE3cgiya0UfBio,11356
270
+ janito-3.17.0.dist-info/METADATA,sha256=YvWqlpOy7MCmguHjU2GYCVbrKUncckYYoVRy-LFfqP8,1722
271
+ janito-3.17.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
272
+ janito-3.17.0.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
273
+ janito-3.17.0.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
274
+ janito-3.17.0.dist-info/RECORD,,