truefoundry 0.2.0rc10__py3-none-any.whl → 0.2.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.

Potentially problematic release.


This version of truefoundry might be problematic. Click here for more details.

@@ -39,8 +39,6 @@ from truefoundry.autodeploy.tools.commit import CommitConfirmation
39
39
  from truefoundry.autodeploy.tools.docker_run import DockerRun, DockerRunLog
40
40
  from truefoundry.autodeploy.utils.client import get_git_binary
41
41
 
42
- git = get_git_binary()
43
-
44
42
 
45
43
  def _get_openai_client() -> OpenAI:
46
44
  if AUTODEPLOY_OPENAI_BASE_URL is not None and AUTODEPLOY_OPENAI_API_KEY is not None:
@@ -144,6 +142,7 @@ def _parse_env(project_root_path: str, env_path: str) -> Dict:
144
142
 
145
143
 
146
144
  def _check_repo(project_root_path: str, console: Console):
145
+ git = get_git_binary()
147
146
  try:
148
147
  repo = git.Repo(path=project_root_path, search_parent_directories=True)
149
148
  if repo.is_dirty():
@@ -21,8 +21,6 @@ from truefoundry.autodeploy.utils.client import get_git_binary
21
21
  from truefoundry.autodeploy.utils.diff import LLMDiff
22
22
  from truefoundry.autodeploy.utils.pydantic_compat import model_dump
23
23
 
24
- git = get_git_binary()
25
-
26
24
 
27
25
  class CommitConfirmation(Event):
28
26
  patch: str
@@ -110,6 +108,7 @@ The patch should have any changes that is not described in the commit message.
110
108
  )
111
109
 
112
110
  def __init__(self, project_root_path: str):
111
+ git = get_git_binary()
113
112
  self.project_root_path = project_root_path
114
113
  self.repo = git.Repo(
115
114
  path=self.project_root_path, search_parent_directories=True
@@ -59,7 +59,9 @@ Avoid reading *.lock type files as they tend to be large
59
59
  file_size = os.path.getsize(file_path)
60
60
 
61
61
  if file_size > MAX_FILE_SIZE_READ:
62
- return ReadFile.Response(error=f"File size exceeds {MAX_FILE_SIZE_READ} bytes limit")
62
+ return ReadFile.Response(
63
+ error=f"File size exceeds {MAX_FILE_SIZE_READ} bytes limit"
64
+ )
63
65
 
64
66
  with open(file_path, "r", encoding="utf8") as f:
65
67
  response = ReadFile.Response(data=[])
@@ -68,7 +70,7 @@ Avoid reading *.lock type files as they tend to be large
68
70
  return response
69
71
  except FileNotFoundError as ex:
70
72
  return ReadFile.Response(error=str(ex))
71
- except UnicodeDecodeError as ex:
73
+ except UnicodeDecodeError:
72
74
  return ReadFile.Response(
73
75
  error="This is a binary file, reading it is prohibited."
74
76
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.2.0rc10
3
+ Version: 0.2.1
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhichoudhary06@gmail.com
@@ -5,19 +5,19 @@ truefoundry/autodeploy/agents/base.py,sha256=woCry229x7WX0IZmBopW_e_NB76aCLQRLXZ
5
5
  truefoundry/autodeploy/agents/developer.py,sha256=u1BfjaMDX6Ad32vWYOEFZPWFK33ux0Ro8JztrRAFviY,4126
6
6
  truefoundry/autodeploy/agents/project_identifier.py,sha256=wOFCUIbN-3mVQEToJ2svKm8XvxZ_IxIvUF2P3VqQu94,4438
7
7
  truefoundry/autodeploy/agents/tester.py,sha256=Ci-382r3R8M1NCpbnmcBBHZa4UBCVjyrrt5bwufHDm4,2352
8
- truefoundry/autodeploy/cli.py,sha256=-wCCaokrSeXw8vKbYVVvnKoHMmtsHcXTaZJiKANtWXc,13648
8
+ truefoundry/autodeploy/cli.py,sha256=Di2JNoMUDkmZej9p3MESdO0w4dKUxO1N70CAe6HdBdw,13651
9
9
  truefoundry/autodeploy/constants.py,sha256=m3qQh2gsrqRLqiTbxmddS8CwWX9v7s7oEBHOEvHbFec,1553
10
10
  truefoundry/autodeploy/exception.py,sha256=fa_ZyTDUKiMKG2Uayynk1yWcEMsuVluqk2GtV4tfTPU,158
11
11
  truefoundry/autodeploy/logger.py,sha256=tkV2UKcOTFl5nz0cn4eRbzxF-2CZd8b7MK9vnhaflYw,325
12
12
  truefoundry/autodeploy/tools/__init__.py,sha256=9zJiC1d4bv9EL-p5XTCa9fAQ6ZKV--AbgeLz9bBBkyQ,875
13
13
  truefoundry/autodeploy/tools/ask.py,sha256=MxUFLP7rjpdJ85gCc3El0wUqTZDjpjAw7WOTdV4LLWE,856
14
14
  truefoundry/autodeploy/tools/base.py,sha256=X7bBhJ2-mkc1_uo9dLtIoZOgKsvoCsmvCzdh_j0rdys,665
15
- truefoundry/autodeploy/tools/commit.py,sha256=ozQFzG3OL1SR9lBaiV70ECNXunqMERCpdVauzVMTTPs,5983
15
+ truefoundry/autodeploy/tools/commit.py,sha256=Xk5h7mO9veOJ85LEWTXsp0xkTTHdFLMP4j90Zh4jHWk,5990
16
16
  truefoundry/autodeploy/tools/docker_build.py,sha256=6LfWLJYh3Y3kCIVOC8lFcZjWHIk3iWEuw_qoAxx642k,3931
17
17
  truefoundry/autodeploy/tools/docker_run.py,sha256=6sAyguh_slSLBLIHV2e5QFpAs7XC-0UOjUU1BGqMxJU,4993
18
18
  truefoundry/autodeploy/tools/file_type_counts.py,sha256=4p6IHp-j1vBzELpepFhNwfmB88cUUAFdVDQdzv4lGtM,2288
19
19
  truefoundry/autodeploy/tools/list_files.py,sha256=9z_Nih_N8v7qe14znl7_-3MKZjw5RylVyy7L8qvU1es,2577
20
- truefoundry/autodeploy/tools/read_file.py,sha256=LVvpFaFtSnBFVnH8TnmVJlylU46Wkc8wC5GotNirc0E,2155
20
+ truefoundry/autodeploy/tools/read_file.py,sha256=fX5nVEN7aE_-jiHzYmeqm6-Nr-HV1YX5Pj0_UiFU2qA,2187
21
21
  truefoundry/autodeploy/tools/send_request.py,sha256=5q_fAo0tXRiHg9M3XpdwhCzUtDUWVh17239oU4LkZfI,1614
22
22
  truefoundry/autodeploy/tools/write_file.py,sha256=EcYetnJ4X-NWsd_CdYUKfOnAdz2XXiRukTzJfb_GzFs,3130
23
23
  truefoundry/autodeploy/utils/client.py,sha256=PvbSkfgAjAogGjisinqmh4mP4svowxAC0IwzEQz3Ai0,453
@@ -31,7 +31,7 @@ truefoundry/deploy/cli/cli.py,sha256=gaOareV2M6DhiTXHuyVJy5RrcvJTmGaCF5A1vrVeYeI
31
31
  truefoundry/deploy/cli/deploy.py,sha256=hOb0GY1tiPzKy5P85iYAML0WyGSmKBXJgwxD5k5VoME,5105
32
32
  truefoundry/langchain/__init__.py,sha256=kQrM0qr2EoB-EFaPkVVVcmSBSJ8KsQzv0nx-LGzmCRo,53
33
33
  truefoundry/ml/__init__.py,sha256=yFjvF-e1RW488vLHgn5M7TXoajqww6grkKHb3mhqDEw,179
34
- truefoundry-0.2.0rc10.dist-info/METADATA,sha256=PrMY6TuPf6d26cIpsmQe1Im-_fOKzhw8k7iQ-hqniq8,1840
35
- truefoundry-0.2.0rc10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- truefoundry-0.2.0rc10.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
37
- truefoundry-0.2.0rc10.dist-info/RECORD,,
34
+ truefoundry-0.2.1.dist-info/METADATA,sha256=9fXToZ6JrnzTnSlguIKl1oz_Pyohy_3GjjmpSOdl2d8,1836
35
+ truefoundry-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ truefoundry-0.2.1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
37
+ truefoundry-0.2.1.dist-info/RECORD,,