5d109ea290
test / unit (push) Successful in 44s
test / integration-docker (push) Successful in 47s
lint / lint (push) Successful in 54s
Update Quality Badges / update-badges (push) Successful in 55s
test / integration-firecracker (push) Successful in 4m47s
test / coverage (push) Successful in 15s
test / publish-infra (push) Successful in 1m49s
- 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
|