tass 0.1.3__tar.gz → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tass
3
- Version: 0.1.3
3
+ Version: 0.1.4
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "tass"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "A terminal assistant that allows you to ask an LLM to run commands."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -221,14 +221,20 @@ class TassApp:
221
221
  console.print(f" [red]Command failed[/red] (code {result.returncode})")
222
222
  console.print(f" [red]{err}[/red]")
223
223
 
224
- if len(out.split("\n")) > 5000:
224
+ if len(out.split("\n")) > 1000:
225
225
  out_first_1000 = "\n".join(out.split("\n")[:1000])
226
226
  out = f"{out_first_1000}... (Truncated)"
227
227
 
228
- if len(err) > 5000:
228
+ if len(err.split("\n")) > 1000:
229
229
  err_first_1000 = "\n".join(err.split("\n")[:1000])
230
230
  err = f"{err_first_1000}... (Truncated)"
231
231
 
232
+ if len(out) > 20000:
233
+ out = f"{out[:20000]}... (Truncated)"
234
+
235
+ if len(err) > 20000:
236
+ err = f"{err[:20000]}... (Truncated)"
237
+
232
238
  return f"Command output (exit {result.returncode}):\n{out}\n{err}"
233
239
 
234
240
  def run(self):
@@ -261,7 +261,7 @@ wheels = [
261
261
 
262
262
  [[package]]
263
263
  name = "tass"
264
- version = "0.1.3"
264
+ version = "0.1.4"
265
265
  source = { editable = "." }
266
266
  dependencies = [
267
267
  { name = "requests" },
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