mirror of
https://github.com/katanemo/plano.git
synced 2026-06-08 14:55:14 +02:00
Prompt targets are no longer actively maintained. Mark them as deprecated in the docs and remove the `planoai generate_prompt_targets` CLI command that existed only to scaffold them. Docs - Add `.. deprecated::` banner to the Prompt Target concept page and to the function-calling guide / quickstart sections that walk users through configuring prompt targets. - Relabel the Prompt Target card on the overview page as deprecated. - Drop the Prompt Targets bullet from the README's Getting Started list. CLI - Remove the `generate_prompt_targets` Click command, its registration, and the `Utilities` rich-click command group. - Delete `cli/planoai/targets.py` (the command's only consumer). - Drop the `planoai prompt_targets` section from the CLI reference page. Skills - Delete the `cli-generate` rule, drop it from `plano-cli-operations` (description, when-to-use, rules list, execution checklist), and update the skills README. Hand-edit AGENTS.md to remove section 6.2 and renumber 6.3/6.4 so the commit stays scoped (regenerating pulled in unrelated drift between rules/ and AGENTS.md). The runtime gateway, schema, and existing demo configs still accept `prompt_targets` blocks; this is deprecation, not removal of behavior.
67 lines
2.2 KiB
Python
67 lines
2.2 KiB
Python
import rich_click as click
|
|
|
|
|
|
def configure_rich_click(plano_color: str) -> None:
|
|
click.rich_click.USE_RICH_MARKUP = True
|
|
click.rich_click.USE_MARKDOWN = False
|
|
click.rich_click.SHOW_ARGUMENTS = True
|
|
click.rich_click.GROUP_ARGUMENTS_OPTIONS = True
|
|
click.rich_click.STYLE_ERRORS_SUGGESTION = "dim italic"
|
|
click.rich_click.ERRORS_SUGGESTION = (
|
|
"Try running the '--help' flag for more information."
|
|
)
|
|
click.rich_click.ERRORS_EPILOGUE = ""
|
|
|
|
# Custom colors matching Plano brand.
|
|
click.rich_click.STYLE_OPTION = f"dim {plano_color}"
|
|
click.rich_click.STYLE_ARGUMENT = f"dim {plano_color}"
|
|
click.rich_click.STYLE_COMMAND = f"bold {plano_color}"
|
|
click.rich_click.STYLE_SWITCH = "bold green"
|
|
click.rich_click.STYLE_METAVAR = "bold yellow"
|
|
click.rich_click.STYLE_USAGE = "bold"
|
|
click.rich_click.STYLE_USAGE_COMMAND = f"bold dim {plano_color}"
|
|
click.rich_click.STYLE_HELPTEXT_FIRST_LINE = "white italic"
|
|
click.rich_click.STYLE_HELPTEXT = ""
|
|
click.rich_click.STYLE_HEADER_TEXT = "bold"
|
|
click.rich_click.STYLE_FOOTER_TEXT = "dim"
|
|
click.rich_click.STYLE_OPTIONS_PANEL_BORDER = "dim"
|
|
click.rich_click.ALIGN_OPTIONS_PANEL = "left"
|
|
click.rich_click.MAX_WIDTH = 100
|
|
|
|
# Option groups for better organization.
|
|
click.rich_click.OPTION_GROUPS = {
|
|
"planoai up": [
|
|
{
|
|
"name": "Configuration",
|
|
"options": ["--path", "file"],
|
|
},
|
|
{
|
|
"name": "Runtime Options",
|
|
"options": ["--foreground", "--with-tracing", "--tracing-port"],
|
|
},
|
|
],
|
|
"planoai logs": [
|
|
{
|
|
"name": "Log Options",
|
|
"options": ["--debug", "--follow"],
|
|
},
|
|
],
|
|
}
|
|
|
|
# Command groups for main help.
|
|
click.rich_click.COMMAND_GROUPS = {
|
|
"planoai": [
|
|
{
|
|
"name": "Gateway Commands",
|
|
"commands": ["up", "down", "build", "logs"],
|
|
},
|
|
{
|
|
"name": "Agent Commands",
|
|
"commands": ["cli-agent"],
|
|
},
|
|
{
|
|
"name": "Observability",
|
|
"commands": ["trace", "obs"],
|
|
},
|
|
],
|
|
}
|