feat: add fullstack app-type and --message to apps +create#1
Merged
Conversation
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
Add a
fullstackapp type toapps +createalongside the existingHTML. When--app-type fullstack, a new--messageflag is required and forwarded verbatim in the create request body so the server can generate the app from the user's description. ForHTML,--messageis silently ignored. The lark-apps skill now routes between HTML and fullstack based on the user's intent.Changes
fullstackto the app-type allow-list and a new--messageflag inshortcuts/apps/apps_create.go; conditional validation (fullstack requires non-blank message) and request-body injection ofmessageonly for fullstack.shortcuts/apps/apps_create_test.go: fullstack success, required/blank message rejection, HTML message-ignore, dry-run, and case-sensitive rejection.--message, the fullstack scenario, and skill description trigger words inskills/lark-apps/SKILL.mdandskills/lark-apps/references/lark-apps-create.md.Test Plan
make unit-testpassed (./shortcuts/apps/green)lark-cli apps +create --name "团队任务看板" --app-type fullstack --message "带登录和数据库的任务看板" --dry-run --as user— request body carriesapp_type: fullstackandmessage; missing message exits 2message) is tentative; real create verification is deferred until the backend shipsRelated Issues
N/A