agentfeedback-cli 0.0.1__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AgentFeedback contributors
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,18 @@
1
+ Metadata-Version: 2.5
2
+ Name: agentfeedback-cli
3
+ Version: 0.0.1
4
+ Summary: Official package of AgentFeedback (https://github.com/AgentFeedback/agentfeedback). 0.0.x is a launcher for the agentfeedback binary; the packaged binary follows in a later release.
5
+ Project-URL: Homepage, https://github.com/AgentFeedback/agentfeedback
6
+ Project-URL: Repository, https://github.com/AgentFeedback/agentfeedback
7
+ License: MIT
8
+ License-File: LICENSE
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+
12
+ # agentfeedback
13
+
14
+ Official package of AgentFeedback (https://github.com/AgentFeedback/agentfeedback). 0.0.x is a launcher for the agentfeedback binary; the packaged binary follows in a later release.
15
+
16
+ Install the binary: https://github.com/AgentFeedback/agentfeedback/blob/main/AGENT-INSTALL.md#step-21-the-binary
17
+
18
+ Install: `pip install agentfeedback-cli` (or `uv tool install agentfeedback-cli`)
@@ -0,0 +1,7 @@
1
+ # agentfeedback
2
+
3
+ Official package of AgentFeedback (https://github.com/AgentFeedback/agentfeedback). 0.0.x is a launcher for the agentfeedback binary; the packaged binary follows in a later release.
4
+
5
+ Install the binary: https://github.com/AgentFeedback/agentfeedback/blob/main/AGENT-INSTALL.md#step-21-the-binary
6
+
7
+ Install: `pip install agentfeedback-cli` (or `uv tool install agentfeedback-cli`)
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "agentfeedback-cli"
7
+ version = "0.0.1"
8
+ description = "Official package of AgentFeedback (https://github.com/AgentFeedback/agentfeedback). 0.0.x is a launcher for the agentfeedback binary; the packaged binary follows in a later release."
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.8"
12
+
13
+ [project.scripts]
14
+ agentfeedback = "agentfeedback.__main__:main"
15
+
16
+ [project.urls]
17
+ Homepage = "https://github.com/AgentFeedback/agentfeedback"
18
+ Repository = "https://github.com/AgentFeedback/agentfeedback"
19
+
20
+ [tool.hatch.build.targets.wheel]
21
+ packages = ["src/agentfeedback"]
@@ -0,0 +1,2 @@
1
+ """Launcher for the AgentFeedback binary."""
2
+ __version__ = "0.0.1"
@@ -0,0 +1,67 @@
1
+ import os
2
+ import subprocess
3
+ import sys
4
+ import sysconfig
5
+
6
+ MSG = (
7
+ "This package is a launcher for the AgentFeedback binary, which is not on PATH.\n"
8
+ "Install it: https://github.com/AgentFeedback/agentfeedback/blob/main/AGENT-INSTALL.md#step-21-the-binary\n"
9
+ )
10
+
11
+
12
+ def _real(p):
13
+ try:
14
+ return os.path.realpath(p)
15
+ except Exception:
16
+ return None
17
+
18
+
19
+ def _scripts_dirs():
20
+ dirs = set()
21
+ for args in (("scripts",), ("scripts", os.name + "_user")):
22
+ try:
23
+ d = sysconfig.get_path(*args)
24
+ except Exception:
25
+ continue
26
+ if d:
27
+ dirs.add(os.path.normcase(os.path.realpath(d)))
28
+ return dirs
29
+
30
+
31
+ def _find_real():
32
+ self_paths = {_real(__file__)}
33
+ if sys.argv and sys.argv[0]:
34
+ self_paths.add(_real(sys.argv[0]))
35
+ win = os.name == "nt"
36
+ names = ["agentfeedback.exe"] if win else ["agentfeedback"]
37
+ skip_dirs = _scripts_dirs() if win else set()
38
+ for d in os.environ.get("PATH", "").split(os.pathsep):
39
+ if not d:
40
+ continue
41
+ for n in names:
42
+ c = os.path.join(d, n)
43
+ if not os.path.isfile(c) or not os.access(c, os.X_OK):
44
+ continue
45
+ r = _real(c)
46
+ if win and os.path.normcase(os.path.realpath(d)) in skip_dirs:
47
+ continue
48
+ if r and r not in self_paths:
49
+ return c
50
+ return None
51
+
52
+
53
+ def main():
54
+ if not os.environ.get("AGENTFEEDBACK_STUB"):
55
+ b = _find_real()
56
+ if b:
57
+ env = dict(os.environ, AGENTFEEDBACK_STUB="1")
58
+ args = [b] + sys.argv[1:]
59
+ if os.name == "nt":
60
+ sys.exit(subprocess.call(args, env=env))
61
+ os.execve(b, args, env)
62
+ sys.stderr.write(MSG)
63
+ sys.exit(1)
64
+
65
+
66
+ if __name__ == "__main__":
67
+ main()