PikoAi 0.1.21__tar.gz → 0.1.22__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.
Files changed (45) hide show
  1. {pikoai-0.1.21/Src/PikoAi.egg-info → pikoai-0.1.22}/PKG-INFO +1 -1
  2. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Agents/Executor/executor.py +6 -4
  3. {pikoai-0.1.21 → pikoai-0.1.22/Src/PikoAi.egg-info}/PKG-INFO +1 -1
  4. {pikoai-0.1.21 → pikoai-0.1.22}/setup.py +1 -1
  5. {pikoai-0.1.21 → pikoai-0.1.22}/LICENSE +0 -0
  6. {pikoai-0.1.21 → pikoai-0.1.22}/README.md +0 -0
  7. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Agents/Executor/__init__.py +0 -0
  8. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Agents/Executor/prompts.py +0 -0
  9. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Agents/__init__.py +0 -0
  10. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/__init__.py +0 -0
  11. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/base_env.py +0 -0
  12. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/base_executor.py +0 -0
  13. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/env.py +0 -0
  14. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/js_executor.py +0 -0
  15. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/python_executor.py +0 -0
  16. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/shell.py +0 -0
  17. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/tests/__init__.py +0 -0
  18. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/tests/test_python_executor.py +0 -0
  19. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Env/tests/test_shell_executor.py +0 -0
  20. {pikoai-0.1.21 → pikoai-0.1.22}/Src/OpenCopilot.py +0 -0
  21. {pikoai-0.1.21 → pikoai-0.1.22}/Src/PikoAi.egg-info/SOURCES.txt +0 -0
  22. {pikoai-0.1.21 → pikoai-0.1.22}/Src/PikoAi.egg-info/dependency_links.txt +0 -0
  23. {pikoai-0.1.21 → pikoai-0.1.22}/Src/PikoAi.egg-info/entry_points.txt +0 -0
  24. {pikoai-0.1.21 → pikoai-0.1.22}/Src/PikoAi.egg-info/requires.txt +0 -0
  25. {pikoai-0.1.21 → pikoai-0.1.22}/Src/PikoAi.egg-info/top_level.txt +0 -0
  26. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/__init__.py +0 -0
  27. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/file_task.py +0 -0
  28. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/system_details.py +0 -0
  29. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/tool_dir.json +0 -0
  30. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/tool_manager.py +0 -0
  31. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/userinp.py +0 -0
  32. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/web_loader.py +0 -0
  33. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Tools/web_search.py +0 -0
  34. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Utils/__init__.py +0 -0
  35. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Utils/executor_utils.py +0 -0
  36. {pikoai-0.1.21 → pikoai-0.1.22}/Src/Utils/ter_interface.py +0 -0
  37. {pikoai-0.1.21 → pikoai-0.1.22}/Src/cli.py +0 -0
  38. {pikoai-0.1.21 → pikoai-0.1.22}/Src/llm_interface/__init__.py +0 -0
  39. {pikoai-0.1.21 → pikoai-0.1.22}/Src/llm_interface/llm.py +0 -0
  40. {pikoai-0.1.21 → pikoai-0.1.22}/setup.cfg +0 -0
  41. {pikoai-0.1.21 → pikoai-0.1.22}/test/test.py +0 -0
  42. {pikoai-0.1.21 → pikoai-0.1.22}/test/test_file_task.py +0 -0
  43. {pikoai-0.1.21 → pikoai-0.1.22}/test/test_opencopilot_file_integration.py +0 -0
  44. {pikoai-0.1.21 → pikoai-0.1.22}/test/testjs.py +0 -0
  45. {pikoai-0.1.21 → pikoai-0.1.22}/test/testscript.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PikoAi
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: An AI-powered task automation tool
5
5
  Home-page: https://github.com/nihaaaar22/OS-Assistant
6
6
  Author: Nihar S
@@ -21,8 +21,8 @@ class RateLimiter:
21
21
  def wait_if_needed(self):
22
22
  if self.last_call_time is not None:
23
23
  elapsed = time.time() - self.last_call_time
24
- if elapsed < 1.0:
25
- time.sleep(1.0 - elapsed)
24
+ if elapsed < self.wait_time:
25
+ time.sleep(self.wait_time - elapsed)
26
26
  self.last_call_time = time.time()
27
27
 
28
28
  class executor:
@@ -46,8 +46,10 @@ class executor:
46
46
  self.llm = LiteLLMInterface()
47
47
 
48
48
  def get_tool_dir(self):
49
- import pkg_resources
50
- tool_dir_path = pkg_resources.resource_filename('Tools', 'tool_dir.json')
49
+ # Use direct path resolution instead of pkg_resources
50
+ # pkg_resources is used for finding resources within installed packages,
51
+ # but since we're working with a local project structure, we can use direct paths
52
+ tool_dir_path = os.path.join(os.path.dirname(__file__), '../../Tools/tool_dir.json')
51
53
  with open(tool_dir_path, "r") as file:
52
54
  return file.read()
53
55
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PikoAi
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: An AI-powered task automation tool
5
5
  Home-page: https://github.com/nihaaaar22/OS-Assistant
6
6
  Author: Nihar S
@@ -3,7 +3,7 @@ from pathlib import Path
3
3
 
4
4
  setup(
5
5
  name="PikoAi",
6
- version="0.1.21",
6
+ version="0.1.22",
7
7
  packages=find_packages(where="Src"),
8
8
  py_modules=["cli", "OpenCopilot"],
9
9
  package_dir={"": "Src"},
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes