cli: add app hive shortcut command#303
Merged
Merged
Conversation
Add an `app` hive-shortcut group mirroring the other hive shortcuts
(secret, lookup, playbook, note, sop, ...) for the new `app` hive added
in legion_config_hive. The app hive holds user-authored, AI-generated
mini web apps (a single self-contained HTML document rendered in a
sandboxed iframe by the web UI).
- New limacharlie/commands/app.py via make_hive_group("app", "app", "app")
with app-specific --ai-help/explain text covering the record shape
(display_name, html, required_permissions, allowed_origins,
required_services, locations, expected_context).
- Register "app" in cli.py _COMMAND_MODULE_MAP.
- Update lazy-loading regression test (top-level set, module map,
subcommands map, hive-shortcut load test).
- Document the shortcut in doc/cli/hive-data.md.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an
apphive-shortcut command group to the CLI, mirroring the existing hive shortcuts (secret,lookup,playbook,note,sop,external-adapter,cloud-adapter, …). This wires up CLI support for the newapphive added inlegion_config_hive(hives/def_app.go).The
apphive holds user-authored, AI-generated mini web apps — each record is a single self-contained HTML document that the LimaCharlie web UI renders inside a sandboxed<iframe>.Changes
limacharlie/commands/app.py— new module built viamake_hive_group("app", "app", "app"), givinglist/get/set/delete/enable/disable/tagsubcommands for free. Adds app-specific--ai-help/explain text documenting the record shape (display_name,html,required_permissions,allowed_origins,required_services,locations,expected_context).limacharlie/cli.py— register"app"in_COMMAND_MODULE_MAPfor lazy loading.tests/unit/test_cli_lazy_loading_regression.py— addappto the expected top-level commands, module map, subcommands map, and the hive-shortcut load test.doc/cli/hive-data.md— document the new shortcut.Testing
pytest tests/unit/test_cli_lazy_loading_regression.py— 974 passed.limacharlie app --helpandlimacharlie app set --ai-helprender as expected.🤖 Generated with Claude Code