pycoze 0.1.455__tar.gz → 0.1.457__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 (44) hide show
  1. {pycoze-0.1.455 → pycoze-0.1.457}/PKG-INFO +1 -1
  2. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/api/lib/tab.py +6 -3
  3. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/lib.py +64 -27
  4. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze.egg-info/PKG-INFO +1 -1
  5. {pycoze-0.1.455 → pycoze-0.1.457}/setup.py +1 -1
  6. {pycoze-0.1.455 → pycoze-0.1.457}/LICENSE +0 -0
  7. {pycoze-0.1.455 → pycoze-0.1.457}/README.md +0 -0
  8. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/__init__.py +0 -0
  9. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ai/__init__.py +0 -0
  10. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ai/llm/__init__.py +0 -0
  11. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ai/llm/chat.py +0 -0
  12. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ai/llm/text_to_image_prompt.py +0 -0
  13. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/api/__init__.py +0 -0
  14. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/api/lib/__init__.py +0 -0
  15. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/api/lib/view.py +0 -0
  16. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/api/lib/web.py +0 -0
  17. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/api/lib/window.py +0 -0
  18. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/__init__.py +0 -0
  19. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/chat.py +0 -0
  20. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/chat_base.py +0 -0
  21. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/message.py +0 -0
  22. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/prompt.md +0 -0
  23. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/bot/tools.py +0 -0
  24. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/reference/__init__.py +0 -0
  25. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/reference/bot.py +0 -0
  26. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/reference/fn.py +0 -0
  27. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/reference/lib.py +0 -0
  28. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/reference/tool.py +0 -0
  29. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/reference/workflow.py +0 -0
  30. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ui/__init__.py +0 -0
  31. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ui/base.py +0 -0
  32. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ui/color.py +0 -0
  33. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ui/typ.py +0 -0
  34. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/ui/ui_def.py +0 -0
  35. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/utils/__init__.py +0 -0
  36. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/utils/arg.py +0 -0
  37. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/utils/env.py +0 -0
  38. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/utils/process.py +0 -0
  39. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/utils/socket.py +0 -0
  40. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze/utils/text_or_file.py +0 -0
  41. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze.egg-info/SOURCES.txt +0 -0
  42. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze.egg-info/dependency_links.txt +0 -0
  43. {pycoze-0.1.455 → pycoze-0.1.457}/pycoze.egg-info/top_level.txt +0 -0
  44. {pycoze-0.1.455 → pycoze-0.1.457}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pycoze
3
- Version: 0.1.455
3
+ Version: 0.1.457
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -28,9 +28,12 @@ class TabCls:
28
28
 
29
29
  def open_tab(self, location: list[str], wait_for_open=True):
30
30
  info_path = os.path.join(location[1], "info.json")
31
- with open(info_path, "r", encoding="utf-8") as f:
32
- info = json.load(f)
33
- socket.post("add-tab", {"location": location, "name": info["name"]})
31
+ if os.path.exists(info_path):
32
+ with open(info_path, "r", encoding="utf-8") as f:
33
+ info = json.load(f)
34
+ socket.post("add-tab", {"location": location, "name": info["name"]})
35
+ else:
36
+ socket.post("add-tab", {"location": location, "name": location[1]})
34
37
  if wait_for_open:
35
38
  self.wait_for_tab_open(location)
36
39
  return ViewCls(location)
@@ -127,33 +127,70 @@ def read_local_file(file_path: str) -> str:
127
127
 
128
128
  # 全局忽略列表
129
129
  IGNORE_LIST = [
130
- "node_modules",
131
- ".git",
132
- ".vscode",
133
- ".idea",
134
- "gitServer",
135
- ".DS_Store",
136
- "$RECYCLE.BIN",
137
- ".Trash-1000",
138
- ".Spotlight-V100",
139
- ".Trashes",
140
- ".TemporaryItems",
141
- ".fseventsd",
142
- "System Volume Information",
143
- "pycache",
144
- "env",
145
- "venv",
146
- "target/dependency",
147
- "build/dependencies",
148
- "dist",
149
- "out",
150
- "bundle",
151
- "vendor",
152
- "tmp",
153
- "temp",
154
- "deps",
155
- "pkg",
156
- "Pods",
130
+ 'node_modules',
131
+ '.git',
132
+ '.vscode',
133
+ '.idea',
134
+ 'gitServer',
135
+ '.DS_Store',
136
+ '$RECYCLE.BIN',
137
+ '.Trash-1000',
138
+ '.Spotlight-V100',
139
+ '.Trashes',
140
+ '.TemporaryItems',
141
+ '.fseventsd',
142
+ 'System Volume Information',
143
+ 'pycache',
144
+ 'env',
145
+ 'venv',
146
+ 'target/dependency',
147
+ 'build/dependencies',
148
+ 'dist',
149
+ 'out',
150
+ 'bundle',
151
+ 'vendor',
152
+ 'tmp',
153
+ 'temp',
154
+ 'deps',
155
+ 'pkg',
156
+ 'Pods',
157
+ 'build',
158
+ '.egg-info',
159
+ '.venv',
160
+ '__pycache__',
161
+ '.vs',
162
+ '.next',
163
+ '.nuxt',
164
+ '.cache',
165
+ '.sass-cache',
166
+ '.gradle',
167
+ '.ipynb_checkpoints',
168
+ '.pytest_cache',
169
+ '.mypy_cache',
170
+ '.tox',
171
+ '.hg',
172
+ '.svn',
173
+ '.bzr',
174
+ '.lock-wscript',
175
+ '.wafpickle-[0-9]*',
176
+ '.lock-waf_[0-9]*',
177
+ '.Python',
178
+ '.jupyter',
179
+ '.vscode-test',
180
+ '.history',
181
+ '.yarn',
182
+ '.yarn-cache',
183
+ '.eslintcache',
184
+ '.parcel-cache',
185
+ '.cache-loader',
186
+ '.nyc_output',
187
+ '.node_repl_history',
188
+ '.pnp.js',
189
+ '.pnp',
190
+ '.obsidian',
191
+ ".husky",
192
+ '.github',
193
+ ".changeset"
157
194
  ]
158
195
 
159
196
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pycoze
3
- Version: 0.1.455
3
+ Version: 0.1.457
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.455",
5
+ version="0.1.457",
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
File without changes