diff --git a/doc/cli/hive-data.md b/doc/cli/hive-data.md index c8b3ebc..f7ad389 100644 --- a/doc/cli/hive-data.md +++ b/doc/cli/hive-data.md @@ -64,6 +64,18 @@ limacharlie external-adapter list limacharlie cloud-adapter list ``` +### app + +User-authored, AI-generated mini web apps (a self-contained HTML document +rendered in a sandboxed iframe by the web UI). + +```bash +limacharlie app list +limacharlie app get --key my-app +limacharlie app set --key my-app --input-file app.yaml +limacharlie app delete --key my-app --confirm +``` + ## extension ```bash diff --git a/limacharlie/cli.py b/limacharlie/cli.py index d7135d1..56df3d7 100644 --- a/limacharlie/cli.py +++ b/limacharlie/cli.py @@ -102,6 +102,7 @@ def _config_no_warnings() -> bool: "ai-skill": ("ai_skill", "group"), "api": ("api_cmd", "cmd"), "api-key": ("api_key", "group"), + "app": ("app", "group"), "arl": ("arl", "group"), "artifact": ("artifact", "group"), "audit": ("audit", "group"), diff --git a/limacharlie/commands/app.py b/limacharlie/commands/app.py new file mode 100644 index 0000000..18eb214 --- /dev/null +++ b/limacharlie/commands/app.py @@ -0,0 +1,62 @@ +"""App commands for LimaCharlie CLI v2.""" + +from __future__ import annotations + +from ._hive_shortcut import make_hive_group +from ..discovery import register_explain + +group = make_hive_group("app", "app", "app") + +# Override the generic hive explains with app-specific documentation. + +register_explain("app.list", """\ +List all apps stored in the 'app' hive. An app is a user-authored, +AI-generated mini web application: a single self-contained HTML +document that the LimaCharlie web UI renders inside a sandboxed +