mirror of
https://github.com/katanemo/plano.git
synced 2026-05-24 14:05:14 +02:00
feat: enhance CLI agent support with Codex and OpenCode integration
This commit is contained in:
parent
5d35a3ae18
commit
fe43cf5ecb
2 changed files with 117 additions and 40 deletions
|
|
@ -388,7 +388,9 @@ def logs(debug, follow):
|
|||
|
||||
|
||||
@click.command()
|
||||
@click.argument("type", type=click.Choice(["claude"]), required=True)
|
||||
@click.argument(
|
||||
"type", type=click.Choice(["claude", "codex", "opencode"]), required=True
|
||||
)
|
||||
@click.argument("file", required=False) # Optional file argument
|
||||
@click.option(
|
||||
"--path", default=".", help="Path to the directory containing plano_config.yaml"
|
||||
|
|
@ -401,7 +403,7 @@ def logs(debug, follow):
|
|||
def cli_agent(type, file, path, settings):
|
||||
"""Start a CLI agent connected to Plano.
|
||||
|
||||
CLI_AGENT: The type of CLI agent to start (currently only 'claude' is supported)
|
||||
CLI_AGENT: The type of CLI agent to start (claude, codex, opencode)
|
||||
"""
|
||||
|
||||
# Check if plano docker container is running
|
||||
|
|
@ -418,7 +420,7 @@ def cli_agent(type, file, path, settings):
|
|||
sys.exit(1)
|
||||
|
||||
try:
|
||||
start_cli_agent(plano_config_file, settings)
|
||||
start_cli_agent(plano_config_file, settings, type)
|
||||
except SystemExit:
|
||||
# Re-raise SystemExit to preserve exit codes
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue