feat: add frontend as third app type for apps domain - #2072
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe apps create and list shortcuts now accept ChangesFrontend app type support
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@b8946913e0702454307eb4d99fb6cbb009e7e6a2🧩 Skill updatenpx skills add larksuite/cli#feat/frontend-app-type -y -g |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2072 +/- ##
==========================================
+ Coverage 75.89% 76.21% +0.32%
==========================================
Files 962 986 +24
Lines 102085 104268 +2183
==========================================
+ Hits 77480 79472 +1992
- Misses 18720 18752 +32
- Partials 5885 6044 +159 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@skills/lark-apps/references/lark-apps-create.md`:
- Line 12: Update the app type documentation to state only that the accepted
values are lowercase html, frontend, and full_stack. Remove the claim that the
CLI lowercases or normalizes user input, while preserving the enum values and
validation guidance.
In `@skills/lark-apps/references/lark-apps-local-dev.md`:
- Line 3: Update the applicability statement so database debugging is explicitly
limited to full_stack apps, while frontend and html remain covered only for
local development and publishing. Preserve the existing app-type scope and
clarify the workflow wording without changing other documentation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 81db2afe-ef89-4f7b-9689-9ec9c7480d7a
📒 Files selected for processing (5)
skills/lark-apps/references/lark-apps-create.mdskills/lark-apps/references/lark-apps-get.mdskills/lark-apps/references/lark-apps-list.mdskills/lark-apps/references/lark-apps-local-dev.mdskills/lark-apps/references/lark-apps-release-create.md
SKILL.md's routing table already covered frontend, but the per-command reference docs still enumerated only html/full_stack. Update create/list/get enum values, add a frontend local-dev section, and note frontend in the release-create entry so agents document the third app type consistently.
- create.md: state the app-type enum is matched exactly (lowercase), drop the incorrect claim that the CLI normalizes case - local-dev.md: scope database debugging to full_stack (frontend/html have no DB) and add the +release-get finished-status poll to the frontend flow
The E2E coverage table and two test comments still described the --app-type enum as html/full_stack after frontend was added. Update them to html/frontend/full_stack for consistency; assertions are unaffected (they match on substrings, not the full enum set).
f8ca193 to
163b724
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
…ng full_stack The main SKILL.md router declares app_type and dev-method orthogonal and routes no-database interactive tools to frontend, but cloud-dev/create references still hardcoded `+create --app-type full_stack` for cloud generation. This forced a frontend-routed request into a full_stack app (unrecoverable since apps have no +delete). Align with the 2026-07-24 design decision: cloud generation also splits by database need — full_stack when persistence is required, frontend by default when unstated. Verified on BOE that a frontend app runs the full cloud session+chat pipeline to completed.
Summary
The
appsdomain previously exposed onlyhtmlandfull_stackas public app types. This PR addsfrontendas the third public--app-type, letting users create pure-frontend (vite-react) apps viaapps +create --app-type frontendand filter them viaapps +list --app-type frontend. The value passes through to the backend verbatim; the CLI stays production-facing and carries no internal app-type codenames.Changes
frontendto the--app-typeenum, hint, and Tips inshortcuts/apps/apps_create.go; add acceptance test inshortcuts/apps/apps_create_test.gofrontendto the--app-typefilter enum and description inshortcuts/apps/apps_list.gofrontendhandling inshortcuts/apps/apps_init.gocomments (zero-value scaffold policy; verbatim passthrough to the scaffolder, no client-side translation)FRONTENDreturn value in thequeryAppTypecomment inshortcuts/apps/apps_meta.goskills/lark-apps/SKILL.md: three-way boundary (full_stack = has backend/DB, html = static, frontend = JS-interactive default), add type-upgrade guidance, and extend the dev-link note to cover frontendTest Plan
tests/cli_e2e/apps, incl. enum-rejection cases)apps +create --app-type frontend --dry-runsends"app_type":"frontend";apps +create --app-type spais rejected withallowed: html, frontend, full_stackapps +create --app-type frontendthenapps +getround-tripsapp_type=frontendagainst the deployed backendRelated Issues
N/A
Summary by CodeRabbit
frontendas a supported app type for+createand+list, with updated help text and examples.+release-getpolling through publication completion.