pycoze 0.1.451__py3-none-any.whl → 0.1.453__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.
- pycoze/api/lib/tab.py +2 -2
- pycoze/api/lib/window.py +2 -2
- pycoze/bot/chat_base.py +3 -3
- {pycoze-0.1.451.dist-info → pycoze-0.1.453.dist-info}/METADATA +9 -7
- {pycoze-0.1.451.dist-info → pycoze-0.1.453.dist-info}/RECORD +8 -8
- {pycoze-0.1.451.dist-info → pycoze-0.1.453.dist-info}/WHEEL +1 -1
- {pycoze-0.1.451.dist-info → pycoze-0.1.453.dist-info}/LICENSE +0 -0
- {pycoze-0.1.451.dist-info → pycoze-0.1.453.dist-info}/top_level.txt +0 -0
pycoze/api/lib/tab.py
CHANGED
@@ -23,10 +23,10 @@ class TabCls:
|
|
23
23
|
location = ["LocalWorkflow", item_path]
|
24
24
|
socket.post("add-tab", {"location": location, "name": info["name"]})
|
25
25
|
if wait_for_open:
|
26
|
-
self.
|
26
|
+
self.wait_for_tab_open(location)
|
27
27
|
return WorkflowCls(location)
|
28
28
|
|
29
|
-
def
|
29
|
+
def wait_for_tab_open(self, location: Union[list[str], ViewCls]):
|
30
30
|
times = 0
|
31
31
|
while not self.is_tab_open(location):
|
32
32
|
time.sleep(0.01)
|
pycoze/api/lib/window.py
CHANGED
@@ -36,8 +36,8 @@ class WindowCls:
|
|
36
36
|
def maximize(self):
|
37
37
|
socket.post("maximize", {})
|
38
38
|
|
39
|
-
def
|
40
|
-
socket.post("
|
39
|
+
def hide_window(self):
|
40
|
+
socket.post("hideWindow", {})
|
41
41
|
|
42
42
|
def get_slected_text(self) -> str:
|
43
43
|
result = socket.post_and_recv_result("get-selected-text", {})
|
pycoze/bot/chat_base.py
CHANGED
@@ -52,9 +52,9 @@ def generate_user_task_prompt(conversation_history, cwd, user_input: str, bot_se
|
|
52
52
|
|
53
53
|
active_file_str = f"Currently viewing: {active_file}" if active_file else ""
|
54
54
|
|
55
|
-
opened_files_str = (
|
56
|
-
|
57
|
-
|
55
|
+
opened_files_str = '\n'.join(opened_files)
|
56
|
+
opened_files_str = f"Open tabs:\n{opened_files_str}" if opened_files else ""
|
57
|
+
|
58
58
|
existing_files_str = f"Files in directory:\n{existing_files}" if existing_files else ""
|
59
59
|
return f"""<task>
|
60
60
|
{user_input}
|
@@ -1,18 +1,22 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: pycoze
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.453
|
4
4
|
Summary: Package for pycoze only!
|
5
|
-
Home-page: UNKNOWN
|
6
5
|
Author: Yuan Jie Xiong
|
7
6
|
Author-email: aiqqqqqqq@qq.com
|
8
|
-
License: UNKNOWN
|
9
|
-
Platform: UNKNOWN
|
10
7
|
Classifier: Programming Language :: Python :: 3
|
11
8
|
Classifier: License :: OSI Approved :: MIT License
|
12
9
|
Classifier: Operating System :: OS Independent
|
13
10
|
Requires-Python: >=3.6
|
14
11
|
Description-Content-Type: text/markdown
|
15
12
|
License-File: LICENSE
|
13
|
+
Dynamic: author
|
14
|
+
Dynamic: author-email
|
15
|
+
Dynamic: classifier
|
16
|
+
Dynamic: description
|
17
|
+
Dynamic: description-content-type
|
18
|
+
Dynamic: requires-python
|
19
|
+
Dynamic: summary
|
16
20
|
|
17
21
|
# PYCOZE
|
18
22
|
|
@@ -28,5 +32,3 @@ Package for pycoze only!
|
|
28
32
|
<!-- python setup.py sdist bdist_wheel -->
|
29
33
|
<!-- twine upload dist/* -->
|
30
34
|
<!-- 修改src\renderer\layout\init\const.ts中的库版本要求 -->
|
31
|
-
|
32
|
-
|
@@ -5,13 +5,13 @@ pycoze/ai/llm/chat.py,sha256=sQZT0ImvRW81fXdlKG0ZrHdDB8g5M4iudaWdG4Kpd6Q,6373
|
|
5
5
|
pycoze/ai/llm/text_to_image_prompt.py,sha256=0bx2C_YRvjAo7iphHGp1-pmGKsKqwur7dM0t3SiA8kA,3398
|
6
6
|
pycoze/api/__init__.py,sha256=TLKvaZlRzTTt0KiXijLjj9b_iCr7fU1siwsXqyd74b8,375
|
7
7
|
pycoze/api/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
pycoze/api/lib/tab.py,sha256=
|
8
|
+
pycoze/api/lib/tab.py,sha256=p5yqOgD_fuGlunIEs5xa8d67qABAyei0Xx0t7u0WwdM,2617
|
9
9
|
pycoze/api/lib/view.py,sha256=_PIpTfeuTPPlMDKshMGsqFQYMq7ZiO4Hg5XwHwDoU60,7357
|
10
10
|
pycoze/api/lib/web.py,sha256=4HaOV_zYHq6-SSQQIc_O7REnC1asIlXIELxee-pU6zc,2421
|
11
|
-
pycoze/api/lib/window.py,sha256=
|
11
|
+
pycoze/api/lib/window.py,sha256=ZZacqnX0fvZUnLUhNVjbbjhBcKkYdi_6E0LswLp1MqM,2071
|
12
12
|
pycoze/bot/__init__.py,sha256=rL3Q-ycczRpSFfKn84fg3QBl5k22WpyeIU5qOEjEby8,79
|
13
13
|
pycoze/bot/chat.py,sha256=bScsMc0hGh2NlvhQxzWEbnA_WXU9JdAJv-rx27SpEB8,6554
|
14
|
-
pycoze/bot/chat_base.py,sha256=
|
14
|
+
pycoze/bot/chat_base.py,sha256=PsniJayqlHU6PrQDjb2r07oW2E23aWdWg8zg2eF9i6Y,12597
|
15
15
|
pycoze/bot/lib.py,sha256=RivPA2f5fqzqbW6jL0sx9X9pwgFPxwkk8lt62CWvaZo,7255
|
16
16
|
pycoze/bot/message.py,sha256=udnIi-h4QgGzkbr_5VcAsVGjoLp9wXJSfBCeuOz7_Bk,802
|
17
17
|
pycoze/bot/prompt.md,sha256=UtwZ31wFvNtvM9ZTA4BU2yT1Rb-qnUdU3Ny1O37Tt3Q,14077
|
@@ -33,8 +33,8 @@ pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
|
33
33
|
pycoze/utils/process.py,sha256=U2MURGmxfyWBqdbKfy5UvyV17M40B6HHlNELgWfgrTE,3824
|
34
34
|
pycoze/utils/socket.py,sha256=4Wm4LlwdWXC_kAV0NnZbUc0Y3Kc6KRMyFRqSw79u-9w,2468
|
35
35
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
36
|
-
pycoze-0.1.
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
39
|
-
pycoze-0.1.
|
40
|
-
pycoze-0.1.
|
36
|
+
pycoze-0.1.453.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
37
|
+
pycoze-0.1.453.dist-info/METADATA,sha256=FP-jLRwmdSew3-VUnj9Th9bZR7gbrbaba3mLkLIdTfQ,854
|
38
|
+
pycoze-0.1.453.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
39
|
+
pycoze-0.1.453.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
40
|
+
pycoze-0.1.453.dist-info/RECORD,,
|
File without changes
|
File without changes
|