ziya 0.1.29__tar.gz → 0.1.31__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.29 → ziya-0.1.31}/PKG-INFO +1 -1
  2. {ziya-0.1.29 → ziya-0.1.31}/app/agents/prompts.py +22 -6
  3. {ziya-0.1.29 → ziya-0.1.31}/pyproject.toml +1 -1
  4. {ziya-0.1.29 → ziya-0.1.31}/templates/asset-manifest.json +3 -3
  5. {ziya-0.1.29 → ziya-0.1.31}/templates/index.html +1 -1
  6. ziya-0.1.29/templates/static/js/main.fa1774f6.js → ziya-0.1.31/templates/static/js/main.69f6f0d1.js +3 -3
  7. ziya-0.1.29/templates/static/js/main.fa1774f6.js.LICENSE.txt → ziya-0.1.31/templates/static/js/main.69f6f0d1.js.LICENSE.txt +0 -2
  8. ziya-0.1.31/templates/static/js/main.69f6f0d1.js.map +1 -0
  9. ziya-0.1.29/templates/static/js/main.fa1774f6.js.map +0 -1
  10. {ziya-0.1.29 → ziya-0.1.31}/LICENSE +0 -0
  11. {ziya-0.1.29 → ziya-0.1.31}/README.md +0 -0
  12. {ziya-0.1.29 → ziya-0.1.31}/app/__init__.py +0 -0
  13. {ziya-0.1.29 → ziya-0.1.31}/app/agents/__init__.py +0 -0
  14. {ziya-0.1.29 → ziya-0.1.31}/app/agents/agent.py +0 -0
  15. {ziya-0.1.29 → ziya-0.1.31}/app/main.py +0 -0
  16. {ziya-0.1.29 → ziya-0.1.31}/app/server.py +0 -0
  17. {ziya-0.1.29 → ziya-0.1.31}/app/utils/__init__.py +0 -0
  18. {ziya-0.1.29 → ziya-0.1.31}/app/utils/directory_util.py +0 -0
  19. {ziya-0.1.29 → ziya-0.1.31}/app/utils/gitignore_parser.py +0 -0
  20. {ziya-0.1.29 → ziya-0.1.31}/app/utils/langchain_validation_util.py +0 -0
  21. {ziya-0.1.29 → ziya-0.1.31}/app/utils/logging_utils.py +0 -0
  22. {ziya-0.1.29 → ziya-0.1.31}/app/utils/print_tree_util.py +0 -0
  23. {ziya-0.1.29 → ziya-0.1.31}/app/utils/version_util.py +0 -0
  24. {ziya-0.1.29 → ziya-0.1.31}/scripts.py +0 -0
  25. {ziya-0.1.29 → ziya-0.1.31}/templates/favicon.ico +0 -0
  26. {ziya-0.1.29 → ziya-0.1.31}/templates/static/css/main.8af23da0.css +0 -0
  27. {ziya-0.1.29 → ziya-0.1.31}/templates/static/css/main.8af23da0.css.map +0 -0
  28. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-brands-400.455ea818179b4def0c43.woff2 +0 -0
  29. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-brands-400.60127e352b7a11f7f1bc.ttf +0 -0
  30. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-regular-400.21cb8f55d8e0c5b89751.woff2 +0 -0
  31. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-regular-400.eb91f7b948a42799f678.ttf +0 -0
  32. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2 +0 -0
  33. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf +0 -0
  34. {ziya-0.1.29 → ziya-0.1.31}/templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf +0 -0
  35. {ziya-0.1.29 → ziya-0.1.31}/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.29
3
+ Version: 0.1.31
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -3,11 +3,27 @@ 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 unless the user specifies otherwise.
10
+ Follow these strict guidelines for diff formatting:
11
+
12
+ 1. Start each diff block with ```diff (no asterisks or other characters before or after)
13
+ 2. For existing file modifications:
14
+ - Use --- to indicate the original file path
15
+ - Use +++ to indicate the new file path (usually the same as the original)
16
+ - Use @@ to indicate the line numbers being changed
17
+ - Use - for lines being removed
18
+ - Use + for lines being added
19
+ 3. For new file creation:
20
+ - Use --- /dev/null to indicate a new file
21
+ - Use +++ b/<new_file_path> for the new file path
22
+ - Start with @@ -0,0 +1,<number_of_lines> @@ to indicate new file content
23
+ - Use + for each line of the new file content
24
+ 4. End each diff block with ``` on a new line
25
+
26
+ 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
27
 
12
28
  The codebase is provided at the end of this prompt in a specific format.
13
29
  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 +41,8 @@ Below is the current codebase of the user:
25
41
  ---------------------------------------
26
42
  Codebase ends here.
27
43
 
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
44
+ Remember to strictly adhere to the diff format guidelines provided above when suggesting code changes.
45
+
30
46
  """
31
47
 
32
48
  conversational_prompt = ChatPromptTemplate.from_messages(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.29"
3
+ version = "0.1.31"
4
4
  description = ""
5
5
  authors = ["Vishnu Krishnaprasad <vishnukool@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/css/main.8af23da0.css",
4
- "main.js": "/static/js/main.fa1774f6.js",
4
+ "main.js": "/static/js/main.69f6f0d1.js",
5
5
  "static/media/fa-solid-900.ttf": "/static/media/fa-solid-900.bacd5de623fb563b961a.ttf",
6
6
  "static/media/fa-brands-400.ttf": "/static/media/fa-brands-400.60127e352b7a11f7f1bc.ttf",
7
7
  "static/media/fa-solid-900.woff2": "/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2",
@@ -12,10 +12,10 @@
12
12
  "static/media/fa-v4compatibility.woff2": "/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2",
13
13
  "index.html": "/index.html",
14
14
  "main.8af23da0.css.map": "/static/css/main.8af23da0.css.map",
15
- "main.fa1774f6.js.map": "/static/js/main.fa1774f6.js.map"
15
+ "main.69f6f0d1.js.map": "/static/js/main.69f6f0d1.js.map"
16
16
  },
17
17
  "entrypoints": [
18
18
  "static/css/main.8af23da0.css",
19
- "static/js/main.fa1774f6.js"
19
+ "static/js/main.69f6f0d1.js"
20
20
  ]
21
21
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Ziya - Code Assistant</title><link rel="icon" href="/favicon.ico" type="image/x-icon"><script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script><script defer="defer" src="/static/js/main.fa1774f6.js"></script><link href="/static/css/main.8af23da0.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Ziya - Code Assistant</title><link rel="icon" href="/favicon.ico" type="image/x-icon"><script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script><script defer="defer" src="/static/js/main.69f6f0d1.js"></script><link href="/static/css/main.8af23da0.css" rel="stylesheet"></head><body><div id="root"></div></body></html>