Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions veadk/cli/cli_agentkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def agentkit():

agentkit_commands = get_command(agentkit_typer_app)

if isinstance(agentkit_commands, click.Group):
for cmd_name, cmd in agentkit_commands.commands.items():
agentkit.add_command(cmd, name=cmd_name)
# Re-export the AgentKit CLI's subcommands under `veadk agentkit`. Iterate by
# duck-typing on `.commands` rather than gating on `isinstance(..., click.Group)`:
# since Typer 0.26 a TyperGroup is no longer a click.Group subclass, so the
# isinstance check silently evaluates False and drops every command.
for cmd_name, cmd in getattr(agentkit_commands, "commands", {}).items():
agentkit.add_command(cmd, name=cmd_name)
Loading