agentainer 0.1.5 → 0.1.7
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.
- package/README.md +1 -0
- package/lib/swarm.py +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,6 +108,7 @@ the CLI, and types each agent's first prompt into it.
|
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
110
|
npm install -g agentainer
|
|
111
|
+
agentainer --version # print the installed version (also: agentainer -v)
|
|
111
112
|
agentainer doctor # check tmux/python3 are present; report which agent CLIs it found
|
|
112
113
|
```
|
|
113
114
|
|
package/lib/swarm.py
CHANGED
|
@@ -2307,11 +2307,25 @@ def default_config() -> str:
|
|
|
2307
2307
|
return "agents.yaml"
|
|
2308
2308
|
|
|
2309
2309
|
|
|
2310
|
+
def read_version() -> str:
|
|
2311
|
+
"""Best-effort read of the package version from package.json (single source
|
|
2312
|
+
of truth), falling back to 'unknown' if it cannot be found or parsed."""
|
|
2313
|
+
try:
|
|
2314
|
+
data = json.loads((SWARM_HOME / "package.json").read_text())
|
|
2315
|
+
return str(data.get("version") or "unknown")
|
|
2316
|
+
except Exception:
|
|
2317
|
+
return "unknown"
|
|
2318
|
+
|
|
2319
|
+
|
|
2310
2320
|
def build_parser() -> argparse.ArgumentParser:
|
|
2311
2321
|
parser = argparse.ArgumentParser(
|
|
2312
2322
|
prog=os.environ.get("SWARM_PROG", "agentainer"),
|
|
2313
2323
|
description="Run a swarm of coding agents (claude, codex, gemini, hermes) in tmux.",
|
|
2314
2324
|
)
|
|
2325
|
+
parser.add_argument(
|
|
2326
|
+
"-v", "--version", action="version", version=f"agentainer {read_version()}",
|
|
2327
|
+
help="show the Agentainer version and exit",
|
|
2328
|
+
)
|
|
2315
2329
|
parser.add_argument(
|
|
2316
2330
|
"-c", "--config", default=default_config(), help="path to the swarm YAML (default: agents.yaml)"
|
|
2317
2331
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentainer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Zero-dependency multi-agent orchestrator: run a team of AI coding agents (Claude Code, Codex, Gemini, Hermes) side by side in tmux with a YAML-defined ACL.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|