atris 3.32.0 → 3.33.3
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 +43 -1
- package/ax +364 -11
- package/bin/atris.js +53 -4
- package/commands/autoland.js +8 -2
- package/commands/engine.js +299 -0
- package/commands/integrations.js +147 -0
- package/commands/member.js +63 -10
- package/commands/mission.js +119 -18
- package/commands/task.js +173 -14
- package/commands/truth.js +70 -10
- package/lib/fleet.js +354 -0
- package/lib/inspect-fields.js +174 -0
- package/lib/runner-command.js +24 -0
- package/lib/task-db.js +38 -0
- package/package.json +2 -1
- package/scripts/agent_worktree.py +72 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Compatibility wrapper for older agent worktree instructions.
|
|
3
|
+
|
|
4
|
+
Use the canonical Atris CLI:
|
|
5
|
+
atris worktree start --agent <agent> --task "<task>"
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import argparse
|
|
11
|
+
import subprocess
|
|
12
|
+
import sys
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
17
|
+
parser = argparse.ArgumentParser(
|
|
18
|
+
prog="scripts/agent_worktree.py",
|
|
19
|
+
description="Compatibility wrapper around `atris worktree start`.",
|
|
20
|
+
)
|
|
21
|
+
subcommands = parser.add_subparsers(dest="command", required=True)
|
|
22
|
+
|
|
23
|
+
create = subcommands.add_parser("create", help="Create an Atris agent worktree.")
|
|
24
|
+
owner = create.add_mutually_exclusive_group(required=True)
|
|
25
|
+
owner.add_argument("--agent")
|
|
26
|
+
owner.add_argument("--member")
|
|
27
|
+
create.add_argument("--task", required=True)
|
|
28
|
+
create.add_argument("--base")
|
|
29
|
+
create.add_argument("--path")
|
|
30
|
+
create.add_argument("--branch")
|
|
31
|
+
create.add_argument("--claim", action="store_true")
|
|
32
|
+
return parser
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def main(argv: list[str]) -> int:
|
|
36
|
+
args = build_parser().parse_args(argv)
|
|
37
|
+
repo_root = Path(__file__).resolve().parents[1]
|
|
38
|
+
atris_bin = repo_root / "bin" / "atris.js"
|
|
39
|
+
|
|
40
|
+
# Run the Node CLI directly so this wrapper works before a global `atris`
|
|
41
|
+
# binary is on PATH.
|
|
42
|
+
command = ["node", str(atris_bin), "worktree", "start"]
|
|
43
|
+
display = ["atris", "worktree", "start"]
|
|
44
|
+
if args.member:
|
|
45
|
+
command += ["--member", args.member]
|
|
46
|
+
display += ["--member", args.member]
|
|
47
|
+
else:
|
|
48
|
+
command += ["--agent", args.agent]
|
|
49
|
+
display += ["--agent", args.agent]
|
|
50
|
+
command += ["--task", args.task]
|
|
51
|
+
display += ["--task", args.task]
|
|
52
|
+
if args.base:
|
|
53
|
+
command += ["--base", args.base]
|
|
54
|
+
display += ["--base", args.base]
|
|
55
|
+
if args.path:
|
|
56
|
+
command += ["--path", args.path]
|
|
57
|
+
display += ["--path", args.path]
|
|
58
|
+
if args.branch:
|
|
59
|
+
command += ["--branch", args.branch]
|
|
60
|
+
display += ["--branch", args.branch]
|
|
61
|
+
if args.claim:
|
|
62
|
+
command.append("--claim")
|
|
63
|
+
display.append("--claim")
|
|
64
|
+
|
|
65
|
+
print("compat: scripts/agent_worktree.py maps to:")
|
|
66
|
+
print(f" {' '.join(display)}")
|
|
67
|
+
result = subprocess.run(command)
|
|
68
|
+
return int(result.returncode or 0)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
if __name__ == "__main__":
|
|
72
|
+
raise SystemExit(main(sys.argv[1:]))
|