c75eb2daf8
test / integration-docker (pull_request) Successful in 16s
tracker-policy-pr / check-pr (pull_request) Successful in 19s
test / unit (pull_request) Successful in 41s
lint / lint (push) Successful in 53s
test / integration-firecracker (pull_request) Successful in 3m21s
test / coverage (pull_request) Failing after 15s
test / publish-infra (pull_request) Has been skipped
- Remove `info` command - Rename `list active` → `active` (new top-level command) - Rename `list available` → `list` (no subcommand argument) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
512 B
Python
21 lines
512 B
Python
"""list: list available agents."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from ..manifest import ManifestIndex
|
|
from ._common import PROG, USER_CWD
|
|
|
|
|
|
def cmd_list(argv: list[str]) -> int:
|
|
if argv and argv[0] in ("-h", "--help"):
|
|
sys.stderr.write(f"usage: {PROG} list\n")
|
|
sys.stderr.write("\nList all available agents from bot-bottle.json.\n")
|
|
return 0
|
|
|
|
manifest = ManifestIndex.resolve(USER_CWD)
|
|
for name in manifest.all_agent_names:
|
|
print(name)
|
|
return 0
|