ziya 0.1.30__py3-none-any.whl → 0.1.32__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/agents/prompts.py CHANGED
@@ -3,11 +3,35 @@ from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
3
3
  # import pydevd_pycharm
4
4
 
5
5
  template = """
6
- You are an excellent coder. Help the user with their coding tasks. You are given the codebase
7
- of the user in your context.
8
6
 
9
- IMPORTANT: When recommending code changes, format your response as a git diff unless the user specifies otherwise.
10
- Do this only for code changes, like file modification and creation. For each new file recommendation, the format should start with ```diff
7
+ You are an excellent coder. Help the user with their coding tasks. You are given the codebase of the user in your context.
8
+
9
+ IMPORTANT: When recommending code changes, format your response as a standard Git diff format unless the user specifies otherwise.
10
+ Follow these strict guidelines for diff formatting:
11
+
12
+ 1. Start each diff block with ```diff (use exactly this format, no asterisks or extra characters)
13
+ 2. For existing file modifications:
14
+ - Begin with diff --git a/<original_file_path> b/<new_file_path> on a new line.
15
+ - Use --- a/<original_file_path> to indicate the original file.
16
+ - Use +++ b/<new_file_path> to indicate the new file (usually the same as the original).
17
+ - Use @@ to indicate the line numbers being changed.
18
+ - Use - for lines being removed
19
+ - Use + for lines being added
20
+ 3. For new file creation:
21
+ - Use diff --git a/dev/null b/<new_file_path> to start the diff.
22
+ - Use --- /dev/null to indicate a new file.
23
+ - Use +++ b/<new_file_path> for the new file path.
24
+ - Start with @@ -0,0 +1,<number_of_lines> @@ to indicate new file content.
25
+ - Use + for each line of the new file content.
26
+ 4. For file deletions:
27
+ - Use diff --git a/<deleted_file_path> b/dev/null.
28
+ - Use --- a/<deleted_file_path> to indicate the original file.
29
+ - Use +++ /dev/null to indicate that the file is being deleted.
30
+ - Do not include content under the diff.
31
+
32
+ 5. End each diff block with ``` on a new line
33
+
34
+ Do not include any explanatory text within the diff blocks. If you need to provide explanations or comments, do so outside the diff blocks.
11
35
 
12
36
  The codebase is provided at the end of this prompt in a specific format.
13
37
  The code that the user has given to you for context is in the format like below where first line has the File path and then the content follows.
@@ -25,8 +49,8 @@ Below is the current codebase of the user:
25
49
  ---------------------------------------
26
50
  Codebase ends here.
27
51
 
28
- IMPORTANT: When recommending code changes, format your response as a git diff unless the user specifies otherwise.
29
- Do this only for code changes, like file modification and creation. For each new file recommendation, the format should start with ```diff
52
+ Remember to strictly adhere to the Git diff format guidelines provided above when suggesting code changes.
53
+
30
54
  """
31
55
 
32
56
  conversational_prompt = ChatPromptTemplate.from_messages(
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.30"
3
+ version = "0.1.32"
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.30
3
+ Version: 0.1.32
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -1,7 +1,7 @@
1
1
  app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  app/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  app/agents/agent.py,sha256=dOUyRSaQPjSv41pH8oHbBACY6TRM9OUUabFuj4-EJnQ,3615
4
- app/agents/prompts.py,sha256=NgofQR4kmG5Mq3c5A40NaDjSx2_mLiO5VenU3pU0k2w,1732
4
+ app/agents/prompts.py,sha256=s1gtElttFwaXCrW6FHOlvTPXbguyuZvrd1BEGmLkfhU,2785
5
5
  app/main.py,sha256=DH-3gMO4MLwUA7RoMR6YwOTwrrbIeE3bOSyTFLkgS4w,4065
6
6
  app/server.py,sha256=EOuQ_DqNjYmD2prB4_ttiUxVIeSxGxno76feoD0zfXM,3488
7
7
  app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -11,7 +11,7 @@ app/utils/langchain_validation_util.py,sha256=RgmKayKMApvUA7SPF_DrBAcYdIzzLUVJfn
11
11
  app/utils/logging_utils.py,sha256=8JEcc1t7L-a0G4HLmM8zFydNNSOd5l2-gkTxviLQUns,280
12
12
  app/utils/print_tree_util.py,sha256=O4Rb-GS8UODxfH7Z6bZGsr-opG6QLmvdaU1im5kh4IA,1419
13
13
  app/utils/version_util.py,sha256=NcvMWIImJDcO9K5OMX6jJD4q6Zb8Y117Mu8sWIkhxEc,631
14
- pyproject.toml,sha256=BLfwSznjUwDt_-TxeOZeig6KGK3G-0R4MGwNRoIl0kw,804
14
+ pyproject.toml,sha256=AHKCAo23W6h-8JXVbT1OOU81ZEcwG_1QDXAjOzUAtjA,804
15
15
  scripts.py,sha256=70BOvYoboMhl3Bxjy73m1ozmI8UV8JZVyi2RwUptkK8,809
16
16
  templates/asset-manifest.json,sha256=UKfHq1FKhejTUZgnopTN1Z3FZjnc92z9jh0UQF9_NLc,1157
17
17
  templates/favicon.ico,sha256=HgB8xAZdDHFK2lODUsp2H_Dds_i14pnpydx7NEJrNrU,15086
@@ -29,8 +29,8 @@ templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2,sha256=rhfBavvqIW
29
29
  templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf,sha256=tJkNDQxfXTjWLpNu6hIGdOWEx-6o3O44qXXAz5o3U5s,420332
30
30
  templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf,sha256=_49SX7BQxdJFGczI9XI9hbLlHt0_m8ZUivVa663U8mk,10832
31
31
  templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2,sha256=x6hp-sopnRW-EKAfGdB2WnxNRtiSLZuTFyNcHkpvCYI,4792
32
- ziya-0.1.30.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
- ziya-0.1.30.dist-info/METADATA,sha256=FH2L075sujke2s0cbj6y120YYb8LGNx4uq24XxjxAsU,2691
34
- ziya-0.1.30.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
- ziya-0.1.30.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
- ziya-0.1.30.dist-info/RECORD,,
32
+ ziya-0.1.32.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
+ ziya-0.1.32.dist-info/METADATA,sha256=uTg24LY8U9Iya6nJw0aJAxMTmz0LISL0p1eadazu6W0,2691
34
+ ziya-0.1.32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
+ ziya-0.1.32.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
+ ziya-0.1.32.dist-info/RECORD,,
File without changes
File without changes