pycoze 0.1.486__py3-none-any.whl → 0.1.488__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/bot/prompt.md +3 -10
- pycoze/bot/tools.py +1 -1
- {pycoze-0.1.486.dist-info → pycoze-0.1.488.dist-info}/METADATA +1 -1
- {pycoze-0.1.486.dist-info → pycoze-0.1.488.dist-info}/RECORD +7 -7
- {pycoze-0.1.486.dist-info → pycoze-0.1.488.dist-info}/LICENSE +0 -0
- {pycoze-0.1.486.dist-info → pycoze-0.1.488.dist-info}/WHEEL +0 -0
- {pycoze-0.1.486.dist-info → pycoze-0.1.488.dist-info}/top_level.txt +0 -0
pycoze/bot/prompt.md
CHANGED
@@ -157,17 +157,10 @@ def replace_part_of_a_file(path: str, diff: str) -> None:
|
|
157
157
|
Parameters:
|
158
158
|
path (str): The file path to modify.
|
159
159
|
diff (str): One or more SEARCH/REPLACE blocks following this format:
|
160
|
-
<<<<<<< SEARCH
|
161
|
-
|
162
|
-
=======
|
163
|
-
[The new content to replace with]
|
164
|
-
>>>>>>> REPLACE
|
160
|
+
<<<<<<< SEARCH\n[The exact content to find]\n=======\n[The new content to replace with]\n>>>>>>> REPLACE
|
161
|
+
|
165
162
|
Example:
|
166
|
-
<<<<<<< SEARCH
|
167
|
-
int mian() {
|
168
|
-
=======
|
169
|
-
int main() {
|
170
|
-
>>>>>>> REPLACE
|
163
|
+
<<<<<<< SEARCH\nint mian() {\n=======\nint main() {\n>>>>>>> REPLACE
|
171
164
|
|
172
165
|
Returns:
|
173
166
|
None
|
pycoze/bot/tools.py
CHANGED
@@ -117,7 +117,7 @@ class WriteFileTool(Tool):
|
|
117
117
|
# 创建目录并写入或覆盖文件
|
118
118
|
os.makedirs(os.path.dirname(path), exist_ok=True)
|
119
119
|
with open(path, "w", encoding="utf-8") as f:
|
120
|
-
f.write(self.params["content"].replace("@`@`@`@", "```")
|
120
|
+
f.write(self.params["content"].replace("@`@`@`@", "```"))
|
121
121
|
return f"File [[{path}]] written successfully."
|
122
122
|
|
123
123
|
|
@@ -14,8 +14,8 @@ pycoze/bot/chat.py,sha256=UjiQeK-7rGmBY1w5EhQCx_-Y9ccHXHY_2F5LQX5NIa8,6582
|
|
14
14
|
pycoze/bot/chat_base.py,sha256=9w5r-08EQyh2Xa6_BSh7b6ggcJ-yPXsqez0yH6nV15g,12795
|
15
15
|
pycoze/bot/lib.py,sha256=WU4h3B7SG7vh9p9BxhtPlaJ7TkU9VsL3HyCn9hKhWOo,7753
|
16
16
|
pycoze/bot/message.py,sha256=udnIi-h4QgGzkbr_5VcAsVGjoLp9wXJSfBCeuOz7_Bk,802
|
17
|
-
pycoze/bot/prompt.md,sha256=
|
18
|
-
pycoze/bot/tools.py,sha256=
|
17
|
+
pycoze/bot/prompt.md,sha256=M8vlfuSd_DsNioiijFKyDYH7JFm913EnjIV4XC7kqW8,14358
|
18
|
+
pycoze/bot/tools.py,sha256=8WgDPi41saEcvBov_S69n0mfGL4qeesdINNRiAcvtJw,11186
|
19
19
|
pycoze/reference/__init__.py,sha256=u25FWJnOBWsDRoL8_O4jzW4tkJrHT3Sqp9EGCxUhS3E,211
|
20
20
|
pycoze/reference/bot.py,sha256=UZK24Qm8kpqpwXJy_zNZeTEEDee05luXdSBeUm0NCt0,2029
|
21
21
|
pycoze/reference/fn.py,sha256=ZXnG2ctbHMgr3quQp-4bpnErIkuT-t2_ToSET5LTLbc,750
|
@@ -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.488.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
37
|
+
pycoze-0.1.488.dist-info/METADATA,sha256=DTz7Cgp0sYAt2i2yfM-JFZwIZo7oeblaA-BrMbQYtWA,854
|
38
|
+
pycoze-0.1.488.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
39
|
+
pycoze-0.1.488.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
40
|
+
pycoze-0.1.488.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|