tunacode-cli 0.0.64__py3-none-any.whl → 0.0.65__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.

@@ -115,18 +115,33 @@ class UpdateCommand(SimpleCommand):
115
115
  venv_python = os.path.join(venv_dir, "bin", "python")
116
116
 
117
117
  if os.path.exists(venv_tunacode) and os.path.exists(venv_python):
118
- try:
119
- # Try python -m pip first (works with UV-created venvs)
120
- result = subprocess.run(
121
- [venv_python, "-m", "pip", "show", "tunacode-cli"],
122
- capture_output=True,
123
- text=True,
124
- timeout=10,
125
- )
126
- if result.returncode == 0:
127
- installation_method = "venv"
128
- except (subprocess.TimeoutExpired, subprocess.CalledProcessError):
129
- pass
118
+ # Try UV first if available (UV-created venvs don't have pip module)
119
+ if shutil.which("uv"):
120
+ try:
121
+ result = subprocess.run(
122
+ ["uv", "pip", "show", "--python", venv_python, "tunacode-cli"],
123
+ capture_output=True,
124
+ text=True,
125
+ timeout=10,
126
+ )
127
+ if result.returncode == 0:
128
+ installation_method = "venv"
129
+ except (subprocess.TimeoutExpired, subprocess.CalledProcessError):
130
+ pass
131
+
132
+ # Fall back to python -m pip for pip-created venvs
133
+ if not installation_method:
134
+ try:
135
+ result = subprocess.run(
136
+ [venv_python, "-m", "pip", "show", "tunacode-cli"],
137
+ capture_output=True,
138
+ text=True,
139
+ timeout=10,
140
+ )
141
+ if result.returncode == 0:
142
+ installation_method = "venv"
143
+ except (subprocess.TimeoutExpired, subprocess.CalledProcessError):
144
+ pass
130
145
 
131
146
  # Check if installed via pip
132
147
  if not installation_method:
tunacode/constants.py CHANGED
@@ -9,7 +9,7 @@ from enum import Enum
9
9
 
10
10
  # Application info
11
11
  APP_NAME = "TunaCode"
12
- APP_VERSION = "0.0.64"
12
+ APP_VERSION = "0.0.65"
13
13
 
14
14
 
15
15
  # File patterns
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tunacode-cli
3
- Version: 0.0.64
3
+ Version: 0.0.65
4
4
  Summary: Your agentic CLI developer.
5
5
  Project-URL: Homepage, https://tunacode.xyz/
6
6
  Project-URL: Repository, https://github.com/alchemiststudiosDOTai/tunacode
@@ -1,5 +1,5 @@
1
1
  tunacode/__init__.py,sha256=yUul8igNYMfUrHnYfioIGAqvrH8b5BKiO_pt1wVnmd0,119
2
- tunacode/constants.py,sha256=ZswgmnVTy2xIvgk8bl_MbQKeO2ycsF6J8-skeAg6IaE,6100
2
+ tunacode/constants.py,sha256=8cAm6_lIJiQ-o66ZdtYf2IA8G6KX397L_tZdyh7bl_Y,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=5Ig_7ws0egTH2ckIbEezQHgsyDyAQz2fOqdPqCmbpSE,10085
21
+ tunacode/cli/commands/implementations/system.py,sha256=AtBhF44HalJrfh6F0Dl0NtdoIngqX-od2Uh_ucbogSM,10833
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.64.dist-info/METADATA,sha256=Qh7-DTPFkOqpaPQqaSBCE3wj1QPkHf9a2_v-vDhvhiI,10930
138
- tunacode_cli-0.0.64.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
139
- tunacode_cli-0.0.64.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
140
- tunacode_cli-0.0.64.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
141
- tunacode_cli-0.0.64.dist-info/RECORD,,
137
+ tunacode_cli-0.0.65.dist-info/METADATA,sha256=Sv9EOkTz5Yg544b07rJ1mK8Hlt5pzPCcbNIOb7wW0IA,10930
138
+ tunacode_cli-0.0.65.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
139
+ tunacode_cli-0.0.65.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
140
+ tunacode_cli-0.0.65.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
141
+ tunacode_cli-0.0.65.dist-info/RECORD,,