Skip to content

cli: add app hive shortcut command#303

Merged
maximelb merged 1 commit into
cli-v2from
cli-app-hive
Jun 14, 2026
Merged

cli: add app hive shortcut command#303
maximelb merged 1 commit into
cli-v2from
cli-app-hive

Conversation

@maximelb

Copy link
Copy Markdown
Contributor

Summary

Adds an app hive-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 new app hive added in legion_config_hive (hives/def_app.go).

The app hive 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 via make_hive_group("app", "app", "app"), giving list/get/set/delete/enable/disable/tag subcommands 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_MAP for lazy loading.
  • tests/unit/test_cli_lazy_loading_regression.py — add app to 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 --help and limacharlie app set --ai-help render as expected.

🤖 Generated with Claude Code

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>
@maximelb maximelb requested review from a team and lcbill June 14, 2026 23:27
@maximelb maximelb marked this pull request as ready for review June 14, 2026 23:27
@maximelb maximelb merged commit fc74c16 into cli-v2 Jun 14, 2026
7 checks passed
@maximelb maximelb deleted the cli-app-hive branch June 14, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant