tunacode-cli 0.0.66__py3-none-any.whl → 0.0.67__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.
Potentially problematic release.
This version of tunacode-cli might be problematic. Click here for more details.
- tunacode/cli/commands/implementations/system.py +27 -3
- tunacode/constants.py +1 -1
- {tunacode_cli-0.0.66.dist-info → tunacode_cli-0.0.67.dist-info}/METADATA +1 -1
- {tunacode_cli-0.0.66.dist-info → tunacode_cli-0.0.67.dist-info}/RECORD +7 -7
- {tunacode_cli-0.0.66.dist-info → tunacode_cli-0.0.67.dist-info}/WHEEL +0 -0
- {tunacode_cli-0.0.66.dist-info → tunacode_cli-0.0.67.dist-info}/entry_points.txt +0 -0
- {tunacode_cli-0.0.66.dist-info → tunacode_cli-0.0.67.dist-info}/licenses/LICENSE +0 -0
|
@@ -143,6 +143,21 @@ class UpdateCommand(SimpleCommand):
|
|
|
143
143
|
except (subprocess.TimeoutExpired, subprocess.CalledProcessError):
|
|
144
144
|
pass
|
|
145
145
|
|
|
146
|
+
# Check if installed via uv tool
|
|
147
|
+
if not installation_method:
|
|
148
|
+
if shutil.which("uv"):
|
|
149
|
+
try:
|
|
150
|
+
result = subprocess.run(
|
|
151
|
+
["uv", "tool", "list"],
|
|
152
|
+
capture_output=True,
|
|
153
|
+
text=True,
|
|
154
|
+
timeout=10,
|
|
155
|
+
)
|
|
156
|
+
if result.returncode == 0 and "tunacode-cli" in result.stdout.lower():
|
|
157
|
+
installation_method = "uv_tool"
|
|
158
|
+
except (subprocess.TimeoutExpired, subprocess.CalledProcessError):
|
|
159
|
+
pass
|
|
160
|
+
|
|
146
161
|
# Check if installed via pip
|
|
147
162
|
if not installation_method:
|
|
148
163
|
try:
|
|
@@ -160,10 +175,11 @@ class UpdateCommand(SimpleCommand):
|
|
|
160
175
|
if not installation_method:
|
|
161
176
|
await ui.error("Could not detect TunaCode installation method")
|
|
162
177
|
await ui.muted("Manual update options:")
|
|
163
|
-
await ui.muted(" pipx:
|
|
164
|
-
await ui.muted(" pip:
|
|
178
|
+
await ui.muted(" pipx: pipx upgrade tunacode")
|
|
179
|
+
await ui.muted(" pip: pip install --upgrade tunacode-cli")
|
|
180
|
+
await ui.muted(" uv tool: uv tool upgrade tunacode-cli")
|
|
165
181
|
await ui.muted(
|
|
166
|
-
" venv:
|
|
182
|
+
" venv: uv pip install --python ~/.tunacode-venv/bin/python --upgrade tunacode-cli"
|
|
167
183
|
)
|
|
168
184
|
return
|
|
169
185
|
|
|
@@ -206,6 +222,14 @@ class UpdateCommand(SimpleCommand):
|
|
|
206
222
|
text=True,
|
|
207
223
|
timeout=60,
|
|
208
224
|
)
|
|
225
|
+
elif installation_method == "uv_tool":
|
|
226
|
+
await ui.info("Updating via UV tool...")
|
|
227
|
+
result = subprocess.run(
|
|
228
|
+
["uv", "tool", "upgrade", "tunacode-cli"],
|
|
229
|
+
capture_output=True,
|
|
230
|
+
text=True,
|
|
231
|
+
timeout=60,
|
|
232
|
+
)
|
|
209
233
|
else: # pip
|
|
210
234
|
await ui.info("Updating via pip...")
|
|
211
235
|
result = subprocess.run(
|
tunacode/constants.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
tunacode/__init__.py,sha256=yUul8igNYMfUrHnYfioIGAqvrH8b5BKiO_pt1wVnmd0,119
|
|
2
|
-
tunacode/constants.py,sha256=
|
|
2
|
+
tunacode/constants.py,sha256=YowRQCThR1uSoHh2oNFO_8QsVopEruzUEzo91mBRMEo,6100
|
|
3
3
|
tunacode/context.py,sha256=YtfRjUiqsSkk2k9Nn_pjb_m-AXyh6XcOBOJWtFI0wVw,2405
|
|
4
4
|
tunacode/exceptions.py,sha256=oDO1SVKOgjcKIylwqdbqh_g5my4roU5mB9Nv4n_Vb0s,3877
|
|
5
5
|
tunacode/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -18,7 +18,7 @@ tunacode/cli/commands/implementations/debug.py,sha256=ornvceGF4GbJd2OJXnnT9i9KpH
|
|
|
18
18
|
tunacode/cli/commands/implementations/development.py,sha256=I8jHgYY3VgjTU8its0D0ysruuVqKbNTBur0JjPIUIZA,2844
|
|
19
19
|
tunacode/cli/commands/implementations/model.py,sha256=uthx6IX9KwgwywNTDklkJpqCbaTX9h1_p-eVmqL73WQ,2245
|
|
20
20
|
tunacode/cli/commands/implementations/plan.py,sha256=iZtvdGPqvGqMr8_lYil8_8NOL1iyc54Bxtb0gb9VOnw,1825
|
|
21
|
-
tunacode/cli/commands/implementations/system.py,sha256=
|
|
21
|
+
tunacode/cli/commands/implementations/system.py,sha256=2bTbJsiniac11XjGWZU4Cd6Cpug9C2-HtlmLFCgK20I,12009
|
|
22
22
|
tunacode/cli/commands/implementations/template.py,sha256=YeFOjbKKfPswPCHPvlDUwXvg6J0MesyAyVsujiIgPbU,5482
|
|
23
23
|
tunacode/cli/commands/implementations/todo.py,sha256=Dtz5bgcuK2VXGPWEBBZQgnWUMYkRXNzTGf_qkVPLF2U,8125
|
|
24
24
|
tunacode/cli/repl_components/__init__.py,sha256=5ZjPJ3yUvZ5x6Vg9EYJ03-tdxfEEdmfradCmwSlVY3E,334
|
|
@@ -134,8 +134,8 @@ tunacode/utils/system.py,sha256=J8KqJ4ZqQrNSnM5rrJxPeMk9z2xQQp6dWtI1SKBY1-0,1112
|
|
|
134
134
|
tunacode/utils/text_utils.py,sha256=HAwlT4QMy41hr53cDbbNeNo05MI461TpI9b_xdIv8EY,7288
|
|
135
135
|
tunacode/utils/token_counter.py,sha256=dmFuqVz4ywGFdLfAi5Mg9bAGf8v87Ek-mHU-R3fsYjI,2711
|
|
136
136
|
tunacode/utils/user_configuration.py,sha256=Ilz8dpGVJDBE2iLWHAPT0xR8D51VRKV3kIbsAz8Bboc,3275
|
|
137
|
-
tunacode_cli-0.0.
|
|
138
|
-
tunacode_cli-0.0.
|
|
139
|
-
tunacode_cli-0.0.
|
|
140
|
-
tunacode_cli-0.0.
|
|
141
|
-
tunacode_cli-0.0.
|
|
137
|
+
tunacode_cli-0.0.67.dist-info/METADATA,sha256=eAVIDke8Xn7IqFH8O5r0wng3dh8_kVCbV14Ci-SvlGg,10930
|
|
138
|
+
tunacode_cli-0.0.67.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
139
|
+
tunacode_cli-0.0.67.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
|
|
140
|
+
tunacode_cli-0.0.67.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
|
|
141
|
+
tunacode_cli-0.0.67.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|