agentcode 0.2.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.
- agentcode/__init__.py +3 -0
- agentcode/bin/darwin-arm64/agentcode +0 -0
- agentcode/bin/darwin-x64/agentcode +0 -0
- agentcode/bin/linux-x64/agentcode +0 -0
- agentcode/bin/win32-x64/agentcode.exe +0 -0
- agentcode/cli.py +54 -0
- agentcode-0.2.0.dist-info/METADATA +41 -0
- agentcode-0.2.0.dist-info/RECORD +10 -0
- agentcode-0.2.0.dist-info/WHEEL +4 -0
- agentcode-0.2.0.dist-info/entry_points.txt +2 -0
agentcode/__init__.py
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
agentcode/cli.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import platform
|
|
5
|
+
import subprocess
|
|
6
|
+
from importlib import resources
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
import click
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
TARGETS = {
|
|
13
|
+
("Darwin", "arm64"): ("darwin-arm64", "agentcode"),
|
|
14
|
+
("Darwin", "x86_64"): ("darwin-x64", "agentcode"),
|
|
15
|
+
("Linux", "x86_64"): ("linux-x64", "agentcode"),
|
|
16
|
+
("Windows", "AMD64"): ("win32-x64", "agentcode.exe"),
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def get_packaged_binary_path(base_dir: Path | None = None) -> str:
|
|
21
|
+
base_dir = base_dir or Path(resources.files("agentcode"))
|
|
22
|
+
env_override = os.environ.get("AGENTCODE_BINARY")
|
|
23
|
+
if env_override:
|
|
24
|
+
return env_override
|
|
25
|
+
|
|
26
|
+
system = platform.system()
|
|
27
|
+
machine = platform.machine()
|
|
28
|
+
target = TARGETS.get((system, machine))
|
|
29
|
+
if target is None:
|
|
30
|
+
raise click.ClickException(f"Unsupported platform/arch: {system}/{machine}")
|
|
31
|
+
|
|
32
|
+
folder, executable = target
|
|
33
|
+
binary_path = base_dir / "bin" / folder / executable
|
|
34
|
+
if not binary_path.exists():
|
|
35
|
+
raise click.ClickException(
|
|
36
|
+
f"Bundled agentcode binary not found at {binary_path}"
|
|
37
|
+
)
|
|
38
|
+
return str(binary_path)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def get_binary_path() -> str:
|
|
42
|
+
return get_packaged_binary_path()
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@click.command(context_settings={"ignore_unknown_options": True})
|
|
46
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
47
|
+
def cli(args: tuple[str, ...]) -> None:
|
|
48
|
+
"""Python wrapper for the agentcode codebase indexer."""
|
|
49
|
+
result = subprocess.run([get_binary_path(), *args], check=False)
|
|
50
|
+
raise SystemExit(result.returncode)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
if __name__ == "__main__":
|
|
54
|
+
cli()
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentcode
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Python wrapper for the agentcode codebase indexer with bundled runtime binaries
|
|
5
|
+
Author-email: azk <you@example.com>
|
|
6
|
+
License: Unlicense
|
|
7
|
+
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Requires-Dist: click>=8.1.7
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# agentcode (Python)
|
|
14
|
+
|
|
15
|
+
Install `agentcode`, then run `agentcode`.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install agentcode
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Use
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
agentcode map --budget 8k --json
|
|
27
|
+
agentcode mcp
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This package bundles the runtime, so normal installs should work out of the box.
|
|
31
|
+
|
|
32
|
+
## Maintainers
|
|
33
|
+
|
|
34
|
+
The wheel includes bundled binaries for:
|
|
35
|
+
|
|
36
|
+
- `darwin-arm64`
|
|
37
|
+
- `darwin-x64`
|
|
38
|
+
- `linux-x64`
|
|
39
|
+
- `win32-x64`
|
|
40
|
+
|
|
41
|
+
For local development, you can override the bundled runtime with `AGENTCODE_BINARY=/path/to/agentcode`.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
agentcode/__init__.py,sha256=QwLGZDZhVE7dBKbOwCLRt3tRMXTtg8fYYHHDXi3sZ1c,49
|
|
2
|
+
agentcode/cli.py,sha256=0Pl2ubTE4qThecIrVqHMUhan2p76GMe-f9DLmNy8F0c,1549
|
|
3
|
+
agentcode/bin/darwin-arm64/agentcode,sha256=rSaS7DJ7GGfAMXOPrj6-HVtOVXCoR5kK2wDyJ9GT6Rs,7580432
|
|
4
|
+
agentcode/bin/darwin-x64/agentcode,sha256=5xHm83-jlGw3sTXdn3Ol1QsPJ34p59Sxb-bJepLguT0,7674388
|
|
5
|
+
agentcode/bin/linux-x64/agentcode,sha256=iLUNGfzIuEbwOCACotYPG7-Kj2Qk7xy-PijYaWCx-Hg,8077320
|
|
6
|
+
agentcode/bin/win32-x64/agentcode.exe,sha256=OfWHT0W-ikOGEfkaWyFAfhh-RAJ4te2SFiOPPRpbn50,7596544
|
|
7
|
+
agentcode-0.2.0.dist-info/METADATA,sha256=u2c5o_jhTu4WoTYj2qV7MefqISJBc9T2ukH4aRGwIYE,889
|
|
8
|
+
agentcode-0.2.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
9
|
+
agentcode-0.2.0.dist-info/entry_points.txt,sha256=K5VMJIVKxPIH_4aRHBLaF3BmJFjSfkn6FFzjwPQLaLY,48
|
|
10
|
+
agentcode-0.2.0.dist-info/RECORD,,
|