pycoze 0.1.398__tar.gz → 0.1.400__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 (43) hide show
  1. {pycoze-0.1.398 → pycoze-0.1.400}/PKG-INFO +1 -1
  2. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/chat.py +2 -2
  3. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/chat_base.py +2 -2
  4. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/lib.py +2 -2
  5. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/prompt.md +1 -2
  6. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze.egg-info/PKG-INFO +1 -1
  7. {pycoze-0.1.398 → pycoze-0.1.400}/setup.py +1 -1
  8. {pycoze-0.1.398 → pycoze-0.1.400}/LICENSE +0 -0
  9. {pycoze-0.1.398 → pycoze-0.1.400}/README.md +0 -0
  10. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/__init__.py +0 -0
  11. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ai/__init__.py +0 -0
  12. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ai/llm/__init__.py +0 -0
  13. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ai/llm/chat.py +0 -0
  14. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ai/llm/text_to_image_prompt.py +0 -0
  15. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ai/vram_reserve.py +0 -0
  16. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/api/__init__.py +0 -0
  17. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/api/lib/__init__.py +0 -0
  18. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/api/lib/tab.py +0 -0
  19. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/api/lib/view.py +0 -0
  20. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/api/lib/web.py +0 -0
  21. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/api/lib/window.py +0 -0
  22. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/__init__.py +0 -0
  23. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/message.py +0 -0
  24. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/bot/tools.py +0 -0
  25. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/reference/__init__.py +0 -0
  26. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/reference/bot.py +0 -0
  27. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/reference/lib.py +0 -0
  28. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/reference/tool.py +0 -0
  29. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/reference/workflow.py +0 -0
  30. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ui/__init__.py +0 -0
  31. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ui/base.py +0 -0
  32. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ui/color.py +0 -0
  33. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ui/typ.py +0 -0
  34. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/ui/ui_def.py +0 -0
  35. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/utils/__init__.py +0 -0
  36. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/utils/arg.py +0 -0
  37. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/utils/env.py +0 -0
  38. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/utils/socket.py +0 -0
  39. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze/utils/text_or_file.py +0 -0
  40. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze.egg-info/SOURCES.txt +0 -0
  41. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze.egg-info/dependency_links.txt +0 -0
  42. {pycoze-0.1.398 → pycoze-0.1.400}/pycoze.egg-info/top_level.txt +0 -0
  43. {pycoze-0.1.398 → pycoze-0.1.400}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pycoze
3
- Version: 0.1.398
3
+ Version: 0.1.400
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -110,8 +110,8 @@ def chat(bot_setting_file: str):
110
110
  abilities = get_abilities(bot_setting)
111
111
 
112
112
  continuouslyRememberToolResults = bot_setting["continuouslyRememberToolResults"]
113
- programmer_mode = bot_setting["programmerMode"]
114
- if programmer_mode:
113
+ folder_context = bot_setting["folderContext"]
114
+ if folder_context:
115
115
  cwd = bot_setting["specifiedWorkingDirectory"]
116
116
  else:
117
117
  cwd = tempfile.mkdtemp()
@@ -40,11 +40,11 @@ def generate_user_task_prompt(conversation_history, cwd, user_input: str, bot_se
40
40
  # 需要重新读取openedFiles和activeFile
41
41
  with open(bot_setting_file, encoding="utf-8") as f:
42
42
  bot_setting = json.load(f)
43
- programmer_mode = bot_setting["programmerMode"]
43
+ folder_context = bot_setting["folderContext"]
44
44
  opened_files = bot_setting["openedFiles"]
45
45
  active_file = bot_setting["activeFile"]
46
46
 
47
- if programmer_mode:
47
+ if folder_context:
48
48
  potential_paths = guess_files_in_message(cwd, user_input)
49
49
 
50
50
  existing_files = get_formatted_filelist_str(cwd, True, 200)
@@ -82,7 +82,7 @@ def get_system_prompt(abilities, bot_setting):
82
82
  "allow_search_files": False,
83
83
  "allow_list_files": False,
84
84
  "allow_access_webpage": False,
85
- "programmer_mode": bot_setting["programmerMode"],
85
+ "folder_context": bot_setting["folderContext"],
86
86
  }
87
87
 
88
88
  context.update(bot_setting["systemAbility"])
@@ -91,7 +91,7 @@ def get_system_prompt(abilities, bot_setting):
91
91
  if len(abilities) > 0:
92
92
  has_any_tool = True
93
93
  for key in bot_setting["systemAbility"]:
94
- if key != "programmer_mode" and bot_setting["systemAbility"][key] == True:
94
+ if key != "folder_context" and bot_setting["systemAbility"][key] == True:
95
95
  has_any_tool = True
96
96
  break
97
97
 
@@ -7,7 +7,6 @@ You have access to a set of tools running on the {{ system }} system that are ex
7
7
  ### Tool Usage Format
8
8
  Tool usage is structured in JSON format. The tool name serves as the key, and parameters are nested objects. Note that every JSON structure you provide will be recognized as a tool command, so avoid outputting JSON except when intending to execute a tool. Below is the structure:
9
9
 
10
- Here's the translation in English:
11
10
 
12
11
  ```json
13
12
  {
@@ -318,7 +317,7 @@ def complete_all_tasks(result: str, command: str = None) -> None:
318
317
  3. The values of explanatory parameters such as {% if allow_access_webpage %} "question" {% endif %} {% if allow_access_webpage and no_exit_if_incomplete %} and {% endif %} {% if no_exit_if_incomplete %} "result" and "<thinking>" {% endif %} need to be in the language used in the <task>...task content</task> by the user;
319
318
  {% endif %}
320
319
  4. When encountering an irreparable error, please explain to the user what specific error has been encountered.
321
- {% if programmer_mode %}
320
+ {% if folder_context %}
322
321
  5. Be thorough, precise, and thoughtful in every interaction.
323
322
  6. Always explain your reasoning, offering insights into why your solution is optimal rather than just presenting json content.
324
323
  7. Consider edge cases, potential impacts, and backward compatibility in your suggestions.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pycoze
3
- Version: 0.1.398
3
+ Version: 0.1.400
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pycoze",
5
- version="0.1.398",
5
+ version="0.1.400",
6
6
  packages=find_packages(),
7
7
  install_requires=[],
8
8
  author="Yuan Jie Xiong",
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