ziya 0.1.44__tar.gz → 0.1.45__tar.gz

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.

Files changed (35) hide show
  1. {ziya-0.1.44 → ziya-0.1.45}/PKG-INFO +1 -1
  2. {ziya-0.1.44 → ziya-0.1.45}/app/utils/code_util.py +11 -2
  3. {ziya-0.1.44 → ziya-0.1.45}/pyproject.toml +1 -1
  4. {ziya-0.1.44 → ziya-0.1.45}/LICENSE +0 -0
  5. {ziya-0.1.44 → ziya-0.1.45}/README.md +0 -0
  6. {ziya-0.1.44 → ziya-0.1.45}/app/__init__.py +0 -0
  7. {ziya-0.1.44 → ziya-0.1.45}/app/agents/__init__.py +0 -0
  8. {ziya-0.1.44 → ziya-0.1.45}/app/agents/agent.py +0 -0
  9. {ziya-0.1.44 → ziya-0.1.45}/app/agents/prompts.py +0 -0
  10. {ziya-0.1.44 → ziya-0.1.45}/app/main.py +0 -0
  11. {ziya-0.1.44 → ziya-0.1.45}/app/server.py +0 -0
  12. {ziya-0.1.44 → ziya-0.1.45}/app/utils/__init__.py +0 -0
  13. {ziya-0.1.44 → ziya-0.1.45}/app/utils/directory_util.py +0 -0
  14. {ziya-0.1.44 → ziya-0.1.45}/app/utils/gitignore_parser.py +0 -0
  15. {ziya-0.1.44 → ziya-0.1.45}/app/utils/langchain_validation_util.py +0 -0
  16. {ziya-0.1.44 → ziya-0.1.45}/app/utils/logging_utils.py +0 -0
  17. {ziya-0.1.44 → ziya-0.1.45}/app/utils/print_tree_util.py +0 -0
  18. {ziya-0.1.44 → ziya-0.1.45}/app/utils/version_util.py +0 -0
  19. {ziya-0.1.44 → ziya-0.1.45}/scripts.py +0 -0
  20. {ziya-0.1.44 → ziya-0.1.45}/templates/asset-manifest.json +0 -0
  21. {ziya-0.1.44 → ziya-0.1.45}/templates/favicon.ico +0 -0
  22. {ziya-0.1.44 → ziya-0.1.45}/templates/index.html +0 -0
  23. {ziya-0.1.44 → ziya-0.1.45}/templates/static/css/main.8af23da0.css +0 -0
  24. {ziya-0.1.44 → ziya-0.1.45}/templates/static/css/main.8af23da0.css.map +0 -0
  25. {ziya-0.1.44 → ziya-0.1.45}/templates/static/js/main.50c95184.js +0 -0
  26. {ziya-0.1.44 → ziya-0.1.45}/templates/static/js/main.50c95184.js.LICENSE.txt +0 -0
  27. {ziya-0.1.44 → ziya-0.1.45}/templates/static/js/main.50c95184.js.map +0 -0
  28. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-brands-400.455ea818179b4def0c43.woff2 +0 -0
  29. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-brands-400.60127e352b7a11f7f1bc.ttf +0 -0
  30. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-regular-400.21cb8f55d8e0c5b89751.woff2 +0 -0
  31. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-regular-400.eb91f7b948a42799f678.ttf +0 -0
  32. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2 +0 -0
  33. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf +0 -0
  34. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf +0 -0
  35. {ziya-0.1.44 → ziya-0.1.45}/templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2 +0 -0
@@ -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
@@ -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:
@@ -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"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes