pycoze 0.1.257__py3-none-any.whl → 0.1.259__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/window_cls.py +4 -9
- {pycoze-0.1.257.dist-info → pycoze-0.1.259.dist-info}/METADATA +1 -1
- {pycoze-0.1.257.dist-info → pycoze-0.1.259.dist-info}/RECORD +6 -6
- {pycoze-0.1.257.dist-info → pycoze-0.1.259.dist-info}/LICENSE +0 -0
- {pycoze-0.1.257.dist-info → pycoze-0.1.259.dist-info}/WHEEL +0 -0
- {pycoze-0.1.257.dist-info → pycoze-0.1.259.dist-info}/top_level.txt +0 -0
pycoze/api/lib/window_cls.py
CHANGED
@@ -12,19 +12,14 @@ class WindowCls:
|
|
12
12
|
result = socket.post_and_recv_result("get-selected-text", {})
|
13
13
|
return result
|
14
14
|
|
15
|
-
def append_msg(self, message: str, type='info'):
|
15
|
+
def append_msg(self, message: str, type: str = 'info'):
|
16
|
+
assert type in ['info', 'warning', 'success', 'error'], 'type must be info, warning, success or error'
|
16
17
|
if not isinstance(message, str):
|
17
18
|
message = repr(message)
|
18
19
|
socket.post("append-msg", {"message": message, "type": type})
|
19
20
|
|
20
|
-
def
|
21
|
-
socket.
|
22
|
-
|
23
|
-
def screenshot(self, name):
|
24
|
-
socket.post("screenshot", {"name": name})
|
25
|
-
|
26
|
-
def confirm(self, message: str) -> bool:
|
27
|
-
return socket.post_and_recv_result("confirm", {"message": message})
|
21
|
+
def confirm(self, title:str, message: str) -> bool:
|
22
|
+
return socket.post_and_recv_result("confirm", {"title":title, "message": message})
|
28
23
|
|
29
24
|
def maximize(self):
|
30
25
|
socket.post("maximize", {})
|
@@ -8,7 +8,7 @@ pycoze/ai/llm/think.py,sha256=sUgTBdGzcZtL3r-Wx8M3lDuVUmDVz8g3qC0VU8uiKAI,5143
|
|
8
8
|
pycoze/api/__init__.py,sha256=Bb7Trv4y5vti-Tt_4fiu7Zfr1HF_vuxASHReLiUHXn4,137
|
9
9
|
pycoze/api/api.py,sha256=OPLp4t4szP4azCTEBNEHO9CIDl9JrmfZPK9mONpvQC0,137
|
10
10
|
pycoze/api/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
pycoze/api/lib/window_cls.py,sha256=
|
11
|
+
pycoze/api/lib/window_cls.py,sha256=nB6vIRq76hYOPR9uYYBOkXRMRVgvr2_NGkw6Pve4IQ0,1734
|
12
12
|
pycoze/bot/__init__.py,sha256=JxnRoCCqx_LFyVb3pLu0qYCsH8ZLuAaMXAtvVUuCHuE,78
|
13
13
|
pycoze/bot/agent_chat.py,sha256=ARXXsIVCTpmBojz2C4BR69nB0QhM6gkEngL3iq34JPo,4178
|
14
14
|
pycoze/bot/bot.py,sha256=_qmUTZ09FmRLifHrW5stDZWGVK6yuMEMBC3fmeYJnqk,844
|
@@ -34,8 +34,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
34
34
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
35
35
|
pycoze/utils/socket.py,sha256=yyYgx7G40x58sV466OQH0vj3i55xgR3uMDEjbQMbGks,2413
|
36
36
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
39
|
-
pycoze-0.1.
|
40
|
-
pycoze-0.1.
|
41
|
-
pycoze-0.1.
|
37
|
+
pycoze-0.1.259.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
38
|
+
pycoze-0.1.259.dist-info/METADATA,sha256=QHmz5-RJaoD1JFm8lYzLBPC0M24xW7jaqrBftA4t7Bc,699
|
39
|
+
pycoze-0.1.259.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
40
|
+
pycoze-0.1.259.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
41
|
+
pycoze-0.1.259.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|