tass 0.1.0__py3-none-any.whl → 0.1.1__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.
src/app.py CHANGED
@@ -42,9 +42,10 @@ class TassApp:
42
42
  )
43
43
 
44
44
  data = response.json()
45
- if "tool_calls" in data["choices"][0]["message"]:
46
- tool_name = data["choices"][0]["message"]["tool_calls"][0]["function"]["name"]
47
- tool_args_str = data["choices"][0]["message"]["tool_calls"][0]["function"]["arguments"]
45
+ message = data["choices"][0]["message"]
46
+ if message.get("tool_calls"):
47
+ tool_name = message["tool_calls"][0]["function"]["name"]
48
+ tool_args_str = message["tool_calls"][0]["function"]["arguments"]
48
49
  self.messages.append(
49
50
  {
50
51
  "role": "assistant",
@@ -73,7 +74,7 @@ class TassApp:
73
74
  return data["choices"][0]["message"]["content"]
74
75
 
75
76
  def read_file(self, path: str, start: int = 1) -> str:
76
- console.print(f" └ Reading file [bold]{path}[/] (start={start})...")
77
+ console.print(f" └ Reading file [bold]{path}[/]...")
77
78
 
78
79
  lines = []
79
80
  with open(path) as f:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tass
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A terminal assistant that allows you to ask an LLM to run commands.
5
5
  Project-URL: Homepage, https://github.com/cetincan0/tass
6
6
  Author: Can Cetin
@@ -1,5 +1,5 @@
1
1
  src/__init__.py,sha256=tu2q9W5_pkq30l3tRMTGahColBAAubbLP6LaB3l3IFg,89
2
- src/app.py,sha256=WO6KIHrQI8sL9IBLazeyiTaFp9UWG9n9GPiPxt9dRKs,6214
2
+ src/app.py,sha256=8_nX46VV4avs20lqSRL__L0iu7igSiZkV7xjZ1A2fRY,6182
3
3
  src/cli.py,sha256=op3fYcyfek_KqCCiA-Zdlc9jVZSCi036whMmR2ZjjAs,76
4
4
  src/constants.py,sha256=qzqqLwVp6bVCbelvxGZlSYSnMKZFEjFvBWF-bW86ER8,3097
5
5
  src/utils.py,sha256=KLVKfTECfSCXqSkWmT9rK1wtjFvb6FJhusy5q7FGO_A,483
@@ -7,8 +7,8 @@ src/third_party/README.md,sha256=fjgAoAM_Vp1xOCdSYZT1menMom5dVDXa48h9VbDJfVI,160
7
7
  src/third_party/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  src/third_party/apply_patch.md,sha256=Q0bRVZepyrP0wF-IzNiNEfkXYcbFKJ42y7Hrl5Uxyfc,2578
9
9
  src/third_party/apply_patch.py,sha256=zZNWPp4bKuvHikGFQ_aHtDaWZ2ZH39c59J9Fb6NprCE,17575
10
- tass-0.1.0.dist-info/METADATA,sha256=oIKaTt006wFfm6a30O73pkQwM3dolzg_S4JgCaYNu3s,1071
11
- tass-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
- tass-0.1.0.dist-info/entry_points.txt,sha256=pviKuIOuHvaQ7_YiFxatJEY8XYfh3EzVWy4LJh0v-A0,38
13
- tass-0.1.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
14
- tass-0.1.0.dist-info/RECORD,,
10
+ tass-0.1.1.dist-info/METADATA,sha256=hAqKbUGBW_bjz308J-RqJrV3ydTxkx8hT9D7Y34gzQw,1071
11
+ tass-0.1.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
+ tass-0.1.1.dist-info/entry_points.txt,sha256=pviKuIOuHvaQ7_YiFxatJEY8XYfh3EzVWy4LJh0v-A0,38
13
+ tass-0.1.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
14
+ tass-0.1.1.dist-info/RECORD,,
File without changes