feat(agent): PublishMiniApp — let the agent publish MiniApps to the market - #1875
Merged
Merged
Conversation
Users could ask the agent to build a MiniApp but not to publish it — the market submission flow lived only behind the desktop form. Add a PublishMiniApp agent tool that derives listing metadata from the app manifest (with slug suggestion, local→market category mapping, and release-number resolution from submission history), walks the full draft → package → screenshots → submit flow, and hands the user a GitHub authorization link (polled in the background) when signed out. The submission orchestration moves from the Tauri command into services-integrations::miniapp_market::submit so the desktop UI and the agent tool share one implementation. Upload progress is mirrored onto the existing miniapp-market-upload-progress event so an open submissions view shows agent-driven uploads. The miniapp-dev skill documents the publish flow; the stale InitMiniApp exposure row is corrected.
bobleer
marked this pull request as ready for review
July 30, 2026 04:26
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.
Why
When a user has the BitFun Agent build a MiniApp and then says “发布到市场”, the agent had no way to help — the entire submission flow (auth, packaging, upload, submit) was reachable only through the desktop 我的投稿 form. This PR closes that gap end-to-end.
What
New
PublishMiniAppagent tool (assembly/core):meta.json; the local category is mapped onto the market's category set (utility→utilities, dev→developer, game→entertainment, …); the slug is derived from the app name (CJK-safe fallback); the release number and listing id are resolved automatically from the user's submission history.Shared orchestration (
services-integrations::miniapp_market::submit):miniapp-market-upload-progressevent, so an open submissions view displays agent-driven uploads live.Docs/UI: miniapp-dev skill (both copies) documents the publish flow and its guardrails; tool card metadata added for the chat UI; stale
InitMiniAppexposure-doc row corrected (Deferred → Direct).Testing
cargo test -p bitfun-services-integrations --features miniapp-market miniapp_market::— 10 passed (release resolution, slug suggestion, category mapping)cargo test -p bitfun-core miniapp_publish— 3 passed;registry::— 49 passed;modes::— 10 passed;bitfun-tool-packs— 8 passedcargo check -p bitfun-desktop/-p bitfun-coreclean; web-uitype-checkclean