Repository navigation
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
Adds
@magpie-community/opencode-dreamina-auth(packages/dreamina) and registers it inregistry.jsonandREADME.mdso users with a localdreamina-canvasCLI installation can connect Dreamina (即梦) directly inside Magpie (Settings → Models → Images / Video, MCPmagpie-image, and OpenCode).Capabilities
POST /images/generationsandPOST /images/edits(JSON andmultipart/form-data,data:/https://URLs,image,image[],reference_images, plusresponse_format: "url").POST /videos,GET /videos/{id}, andGET /videos/{id}/content.720pvs720P,1.5Kvs2K), reference limits, and durations viadreamina-canvas model list --type image|video, with static catalog fallback.defaultor named) or browser OAuth device-code login; reports VIP plan status and remaining/used credit tracking inauth.usage, with an embedded PNG icon inpackage.json.node quotefirst;creditConfirmationTokenstays strictly in memory and never hits disk or logs. Includesquote_only(defaultfalse) andcredit_guard(200-credit ceiling, defaulttrue) options./chat/completionsand Anthropic/messagesconnection checks/title probes at 0 credit cost, and uses quote-first confirmation for direct chat prompts.Prerequisites
dreamina-canvasCLI (DREAMINA_CANVAS_BIN,PATH, or~/.local/bin/dreamina-canvas); this plugin does not bundle or auto-install the binary.Verification
HOME=$(mktemp -d) bun test packages/dreamina/test/dreamina.test.mjs scripts/check.test.mjs scripts/proc.test.mjs: 45 pass, 0 fail (all CLI calls mocked; zero paid generation executed).bun scripts/check.mjs dreamina:✓ registry.jsonand✓ dreamina.