pygent 0.1.8__tar.gz → 0.1.10__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 (26) hide show
  1. {pygent-0.1.8 → pygent-0.1.10}/PKG-INFO +1 -1
  2. {pygent-0.1.8 → pygent-0.1.10}/README.md +2 -0
  3. {pygent-0.1.8 → pygent-0.1.10}/pygent/runtime.py +3 -1
  4. {pygent-0.1.8 → pygent-0.1.10}/pygent.egg-info/PKG-INFO +1 -1
  5. {pygent-0.1.8 → pygent-0.1.10}/pyproject.toml +1 -1
  6. {pygent-0.1.8 → pygent-0.1.10}/LICENSE +0 -0
  7. {pygent-0.1.8 → pygent-0.1.10}/pygent/__init__.py +0 -0
  8. {pygent-0.1.8 → pygent-0.1.10}/pygent/__main__.py +0 -0
  9. {pygent-0.1.8 → pygent-0.1.10}/pygent/agent.py +0 -0
  10. {pygent-0.1.8 → pygent-0.1.10}/pygent/cli.py +0 -0
  11. {pygent-0.1.8 → pygent-0.1.10}/pygent/models.py +0 -0
  12. {pygent-0.1.8 → pygent-0.1.10}/pygent/openai_compat.py +0 -0
  13. {pygent-0.1.8 → pygent-0.1.10}/pygent/py.typed +0 -0
  14. {pygent-0.1.8 → pygent-0.1.10}/pygent/tools.py +0 -0
  15. {pygent-0.1.8 → pygent-0.1.10}/pygent/ui.py +0 -0
  16. {pygent-0.1.8 → pygent-0.1.10}/pygent.egg-info/SOURCES.txt +0 -0
  17. {pygent-0.1.8 → pygent-0.1.10}/pygent.egg-info/dependency_links.txt +0 -0
  18. {pygent-0.1.8 → pygent-0.1.10}/pygent.egg-info/entry_points.txt +0 -0
  19. {pygent-0.1.8 → pygent-0.1.10}/pygent.egg-info/requires.txt +0 -0
  20. {pygent-0.1.8 → pygent-0.1.10}/pygent.egg-info/top_level.txt +0 -0
  21. {pygent-0.1.8 → pygent-0.1.10}/setup.cfg +0 -0
  22. {pygent-0.1.8 → pygent-0.1.10}/tests/test_autorun.py +0 -0
  23. {pygent-0.1.8 → pygent-0.1.10}/tests/test_custom_model.py +0 -0
  24. {pygent-0.1.8 → pygent-0.1.10}/tests/test_runtime.py +0 -0
  25. {pygent-0.1.8 → pygent-0.1.10}/tests/test_tools.py +0 -0
  26. {pygent-0.1.8 → pygent-0.1.10}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygent
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Summary: Pygent is a minimalist coding assistant that runs commands in a Docker container when available and falls back to local execution. See https://marianochaves.github.io/pygent for documentation and https://github.com/marianochaves/pygent for the source code.
5
5
  Author-email: Mariano Chaves <mchaves.software@gmail.com>
6
6
  Project-URL: Documentation, https://marianochaves.github.io/pygent
@@ -47,6 +47,8 @@ to force local execution.
47
47
 
48
48
  Type messages normally; use `/exit` to end the session. Each command is executed
49
49
  in the container and the result shown in the terminal.
50
+ Interactive programs that expect input (e.g. running `python` without a script)
51
+ are not supported and will exit immediately.
50
52
  For a minimal web interface run `pygent-ui` instead (requires `pygent[ui]`).
51
53
 
52
54
 
@@ -59,6 +59,7 @@ class Runtime:
59
59
  workdir="/workspace",
60
60
  demux=True,
61
61
  tty=False,
62
+ stdin=False,
62
63
  timeout=timeout,
63
64
  )
64
65
  stdout, stderr = (
@@ -72,6 +73,7 @@ class Runtime:
72
73
  cwd=self.base_dir,
73
74
  capture_output=True,
74
75
  text=True,
76
+ stdin=subprocess.DEVNULL,
75
77
  timeout=timeout,
76
78
  )
77
79
  return f"$ {cmd}\n{proc.stdout + proc.stderr}"
@@ -79,7 +81,7 @@ class Runtime:
79
81
  def write_file(self, path: Union[str, Path], content: str) -> str:
80
82
  p = self.base_dir / path
81
83
  p.parent.mkdir(parents=True, exist_ok=True)
82
- p.write_text(content)
84
+ p.write_text(content, encoding="utf-8")
83
85
  return f"Wrote {p.relative_to(self.base_dir)}"
84
86
 
85
87
  def cleanup(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygent
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Summary: Pygent is a minimalist coding assistant that runs commands in a Docker container when available and falls back to local execution. See https://marianochaves.github.io/pygent for documentation and https://github.com/marianochaves/pygent for the source code.
5
5
  Author-email: Mariano Chaves <mchaves.software@gmail.com>
6
6
  Project-URL: Documentation, https://marianochaves.github.io/pygent
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pygent"
3
- version = "0.1.8"
3
+ version = "0.1.10"
4
4
  description = "Pygent is a minimalist coding assistant that runs commands in a Docker container when available and falls back to local execution. See https://marianochaves.github.io/pygent for documentation and https://github.com/marianochaves/pygent for the source code."
5
5
  authors = [ { name = "Mariano Chaves", email = "mchaves.software@gmail.com" } ]
6
6
  requires-python = ">=3.9"
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