ziya 0.1.40__tar.gz → 0.1.41__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 (34) hide show
  1. {ziya-0.1.40 → ziya-0.1.41}/PKG-INFO +4 -2
  2. {ziya-0.1.40 → ziya-0.1.41}/README.md +3 -1
  3. {ziya-0.1.40 → ziya-0.1.41}/app/agents/agent.py +2 -1
  4. {ziya-0.1.40 → ziya-0.1.41}/app/main.py +5 -1
  5. {ziya-0.1.40 → ziya-0.1.41}/app/server.py +3 -2
  6. {ziya-0.1.40 → ziya-0.1.41}/pyproject.toml +1 -1
  7. {ziya-0.1.40 → ziya-0.1.41}/LICENSE +0 -0
  8. {ziya-0.1.40 → ziya-0.1.41}/app/__init__.py +0 -0
  9. {ziya-0.1.40 → ziya-0.1.41}/app/agents/__init__.py +0 -0
  10. {ziya-0.1.40 → ziya-0.1.41}/app/agents/prompts.py +0 -0
  11. {ziya-0.1.40 → ziya-0.1.41}/app/utils/__init__.py +0 -0
  12. {ziya-0.1.40 → ziya-0.1.41}/app/utils/directory_util.py +0 -0
  13. {ziya-0.1.40 → ziya-0.1.41}/app/utils/gitignore_parser.py +0 -0
  14. {ziya-0.1.40 → ziya-0.1.41}/app/utils/langchain_validation_util.py +0 -0
  15. {ziya-0.1.40 → ziya-0.1.41}/app/utils/logging_utils.py +0 -0
  16. {ziya-0.1.40 → ziya-0.1.41}/app/utils/print_tree_util.py +0 -0
  17. {ziya-0.1.40 → ziya-0.1.41}/app/utils/version_util.py +0 -0
  18. {ziya-0.1.40 → ziya-0.1.41}/scripts.py +0 -0
  19. {ziya-0.1.40 → ziya-0.1.41}/templates/asset-manifest.json +0 -0
  20. {ziya-0.1.40 → ziya-0.1.41}/templates/favicon.ico +0 -0
  21. {ziya-0.1.40 → ziya-0.1.41}/templates/index.html +0 -0
  22. {ziya-0.1.40 → ziya-0.1.41}/templates/static/css/main.8af23da0.css +0 -0
  23. {ziya-0.1.40 → ziya-0.1.41}/templates/static/css/main.8af23da0.css.map +0 -0
  24. {ziya-0.1.40 → ziya-0.1.41}/templates/static/js/main.69f6f0d1.js +0 -0
  25. {ziya-0.1.40 → ziya-0.1.41}/templates/static/js/main.69f6f0d1.js.LICENSE.txt +0 -0
  26. {ziya-0.1.40 → ziya-0.1.41}/templates/static/js/main.69f6f0d1.js.map +0 -0
  27. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-brands-400.455ea818179b4def0c43.woff2 +0 -0
  28. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-brands-400.60127e352b7a11f7f1bc.ttf +0 -0
  29. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-regular-400.21cb8f55d8e0c5b89751.woff2 +0 -0
  30. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-regular-400.eb91f7b948a42799f678.ttf +0 -0
  31. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2 +0 -0
  32. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf +0 -0
  33. {ziya-0.1.40 → ziya-0.1.41}/templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf +0 -0
  34. {ziya-0.1.40 → ziya-0.1.41}/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.40
3
+ Version: 0.1.41
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -83,10 +83,12 @@ ziya
83
83
 
84
84
  `--profile`: AWS profile to use for the Bedrock LLM.
85
85
 
86
- `--model`: The AWS Bedrock Model to use, one of `sonnet`(default), `sonnet3.5`, `haiku` or `opus`.
86
+ `--model`: The AWS Bedrock Model to use, one of `sonnet3.5`(default), `sonnet`, `haiku` or `opus`.
87
87
 
88
88
  `--port`: The port number for frontend app. Default is `6969`.
89
89
 
90
+ `--max-depth`: Maximum depth for folder structure traversal. Default is `15`.
91
+
90
92
  ```bash
91
93
  ziya --exclude='tst,build,*.py' --profile=ziya --model=sonnet3.5 --port=8080
92
94
  ```
@@ -57,10 +57,12 @@ ziya
57
57
 
58
58
  `--profile`: AWS profile to use for the Bedrock LLM.
59
59
 
60
- `--model`: The AWS Bedrock Model to use, one of `sonnet`(default), `sonnet3.5`, `haiku` or `opus`.
60
+ `--model`: The AWS Bedrock Model to use, one of `sonnet3.5`(default), `sonnet`, `haiku` or `opus`.
61
61
 
62
62
  `--port`: The port number for frontend app. Default is `6969`.
63
63
 
64
+ `--max-depth`: Maximum depth for folder structure traversal. Default is `15`.
65
+
64
66
  ```bash
65
67
  ziya --exclude='tst,build,*.py' --profile=ziya --model=sonnet3.5 --port=8080
66
68
  ```
@@ -30,10 +30,11 @@ else:
30
30
  logger.info("No AWS profile specified via --aws-profile flag, using default credentials")
31
31
  model_id = {
32
32
  "sonnet3.5": "us.anthropic.claude-3-5-sonnet-20240620-v1:0",
33
+ "sonnet3.5-v2": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
33
34
  "opus": "us.anthropic.claude-3-opus-20240229-v1:0",
34
35
  "sonnet": "us.anthropic.claude-3-sonnet-20240229-v1:0",
35
36
  "haiku": "us.anthropic.claude-3-haiku-20240307-v1:0",
36
- }[os.environ.get("ZIYA_AWS_MODEL", "sonnet3.5")]
37
+ }[os.environ.get("ZIYA_AWS_MODEL", "sonnet3.5-v2")]
37
38
  logger.info(f"Using Claude Model: {model_id}")
38
39
 
39
40
  model = ChatBedrock(
@@ -17,12 +17,14 @@ def parse_arguments():
17
17
  help="List of files or directories to exclude (e.g., --exclude 'tst,build,*.py')")
18
18
  parser.add_argument("--profile", type=str, default=None,
19
19
  help="AWS profile to use (e.g., --profile ziya)")
20
- parser.add_argument("--model", type=str, choices=["sonnet", "sonnet3.5", "haiku", "opus"], default="sonnet3.5",
20
+ parser.add_argument("--model", type=str, choices=["sonnet", "sonnet3.5", "sonnet3.5-v2", "haiku", "opus"], default="sonnet3.5-v2",
21
21
  help="AWS Bedrock Model to use (e.g., --model sonnet)")
22
22
  parser.add_argument("--port", type=int, default=6969,
23
23
  help="Port number to run Ziya frontend on (e.g., --port 8080)")
24
24
  parser.add_argument("--version", action="store_true",
25
25
  help="Prints the version of Ziya")
26
+ parser.add_argument("--max-depth", type=int, default=15,
27
+ help="Maximum depth for folder structure traversal (e.g., --max-depth 20)")
26
28
  return parser.parse_args()
27
29
 
28
30
 
@@ -37,6 +39,8 @@ def setup_environment(args):
37
39
  if args.model:
38
40
  os.environ["ZIYA_AWS_MODEL"] = args.model
39
41
 
42
+ os.environ["ZIYA_MAX_DEPTH"] = str(args.max_depth)
43
+
40
44
 
41
45
  def check_version_and_upgrade():
42
46
  current_version = get_current_version()
@@ -43,7 +43,7 @@ async def favicon():
43
43
  return FileResponse('../templates/favicon.ico')
44
44
 
45
45
 
46
- def get_folder_structure(directory: str, ignored_patterns: List[Tuple[str, str]], max_depth: int = 12) -> Dict[str, Any]:
46
+ def get_folder_structure(directory: str, ignored_patterns: List[Tuple[str, str]], max_depth: int) -> Dict[str, Any]:
47
47
  should_ignore_fn = parse_gitignore_patterns(ignored_patterns)
48
48
 
49
49
  def count_tokens(file_path: str) -> int:
@@ -87,8 +87,9 @@ def get_folder_structure(directory: str, ignored_patterns: List[Tuple[str, str]]
87
87
  async def get_folders():
88
88
  # pydevd_pycharm.settrace('localhost', port=59939, stdoutToServer=True, stderrToServer=True)
89
89
  user_codebase_dir = os.environ["ZIYA_USER_CODEBASE_DIR"]
90
+ max_depth = int(os.environ.get("ZIYA_MAX_DEPTH"))
90
91
  ignored_patterns: List[Tuple[str, str]] = get_ignored_patterns(user_codebase_dir)
91
- return get_folder_structure(user_codebase_dir, ignored_patterns)
92
+ return get_folder_structure(user_codebase_dir, ignored_patterns, max_depth)
92
93
 
93
94
 
94
95
  @app.get('/api/default-included-folders')
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.40"
3
+ version = "0.1.41"
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