ziya 0.1.44__py3-none-any.whl → 0.1.45__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 ziya might be problematic. Click here for more details.

app/utils/code_util.py CHANGED
@@ -83,9 +83,18 @@ def correct_git_diff(git_diff: str, original_file_path: str) -> str:
83
83
  """
84
84
  # Split the diff into lines
85
85
  lines = git_diff.split('\n')
86
+ is_new_file = False
87
+ # Check if this is a new file creation
88
+ if lines and lines[0].startswith('diff --git a/dev/null'):
89
+ is_new_file = True
90
+ # Check if 'new file mode 100644' is present in the first few lines
91
+ has_file_mode = any('new file mode 100' in line for line in lines[:3])
92
+ if not has_file_mode:
93
+ # Insert the missing line after the first line
94
+ mode_line = 'new file mode 100644'
95
+ lines.insert(1, mode_line)
96
+ logger.info(f"Added missing '{mode_line}' to new file diff")
86
97
 
87
- # Check if this is a new file creation by looking for "new file mode" in the diff
88
- is_new_file = any('new file mode 100644' in line for line in lines[:5])
89
98
  original_content = []
90
99
 
91
100
  if not is_new_file:
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.44"
3
+ version = "0.1.45"
4
4
  description = ""
5
5
  authors = ["Vishnu Krishnaprasad <vishnukool@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ziya
3
- Version: 0.1.44
3
+ Version: 0.1.45
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -5,14 +5,14 @@ app/agents/prompts.py,sha256=Hm0TJcABRgnpV2bbBobigPznxeLVhyRLEHm7maQ9CEE,3873
5
5
  app/main.py,sha256=5bZk9PUm00bdk_w2gJTWJVQFcJ13WU3eN16vFU1AMk0,4303
6
6
  app/server.py,sha256=Ii_JFygHdMmxYsEtVm2L0vRRMINWgim3_cWLmVha8mg,4704
7
7
  app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- app/utils/code_util.py,sha256=xE-MI8Ayv31_dsLhDe2ncPZLa7beyHcXYfwgvm-xlP4,12042
8
+ app/utils/code_util.py,sha256=aqyDneAOJPXc1fujEaNXvfPCqoOrYOcq0cyWFFhXvaI,12440
9
9
  app/utils/directory_util.py,sha256=2zxsSxSOZKesjhgjF3KguY__fC9XkjxHHnDbcxtnhXk,2762
10
10
  app/utils/gitignore_parser.py,sha256=Li3hQd60eclIuN2qxn8-NQ5sxRyMcnS88DFUxVHdx-A,7487
11
11
  app/utils/langchain_validation_util.py,sha256=RgmKayKMApvUA7SPF_DrBAcYdIzzLUVJfnOwTSc1Eug,527
12
12
  app/utils/logging_utils.py,sha256=8JEcc1t7L-a0G4HLmM8zFydNNSOd5l2-gkTxviLQUns,280
13
13
  app/utils/print_tree_util.py,sha256=O4Rb-GS8UODxfH7Z6bZGsr-opG6QLmvdaU1im5kh4IA,1419
14
14
  app/utils/version_util.py,sha256=NcvMWIImJDcO9K5OMX6jJD4q6Zb8Y117Mu8sWIkhxEc,631
15
- pyproject.toml,sha256=WBtOx4nV8fhMkpOspzzfWXbb1F-KUJGa6LI3OMZ06_w,934
15
+ pyproject.toml,sha256=Dk7YaPVfwZD3KfhcP9Ky_-eAP9f0buKeVqFCffwzRS4,934
16
16
  scripts.py,sha256=70BOvYoboMhl3Bxjy73m1ozmI8UV8JZVyi2RwUptkK8,809
17
17
  templates/asset-manifest.json,sha256=CWTbaK4qJuG_uzscwg8HZ9leGVx06vlQKAVEDcLvtqo,1157
18
18
  templates/favicon.ico,sha256=HgB8xAZdDHFK2lODUsp2H_Dds_i14pnpydx7NEJrNrU,15086
@@ -30,8 +30,8 @@ templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2,sha256=rhfBavvqIW
30
30
  templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf,sha256=tJkNDQxfXTjWLpNu6hIGdOWEx-6o3O44qXXAz5o3U5s,420332
31
31
  templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf,sha256=_49SX7BQxdJFGczI9XI9hbLlHt0_m8ZUivVa663U8mk,10832
32
32
  templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2,sha256=x6hp-sopnRW-EKAfGdB2WnxNRtiSLZuTFyNcHkpvCYI,4792
33
- ziya-0.1.44.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
34
- ziya-0.1.44.dist-info/METADATA,sha256=O6uEKTh4y79uiZDJTl6w3PmqtmfWkDTHIv4x7EzKcyY,2867
35
- ziya-0.1.44.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- ziya-0.1.44.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
37
- ziya-0.1.44.dist-info/RECORD,,
33
+ ziya-0.1.45.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
34
+ ziya-0.1.45.dist-info/METADATA,sha256=UOwRhVy88bS15LJgUgUQe-IdtUCIxPJCfmWVvkWiNgc,2867
35
+ ziya-0.1.45.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ ziya-0.1.45.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
37
+ ziya-0.1.45.dist-info/RECORD,,
File without changes
File without changes