Skip to content

dreamina 0.1.0: Dreamina (即梦) image and video provider via local dreamina-canvas CLI - #1327

Open
bdhwrsh wants to merge 1 commit into
magpie-community:mainfrom
bdhwrsh:feat/dreamina
Open

bdhwrsh wants to merge 1 commit into
magpie-community:mainfrom
bdhwrsh:feat/dreamina

Conversation

@bdhwrsh

@bdhwrsh bdhwrsh commented Nov 18, 2026

Copy link
Copy Markdown

Summary

Adds @magpie-community/opencode-dreamina-auth (packages/dreamina) and registers it in registry.json and README.md so users with a local dreamina-canvas CLI installation can connect Dreamina (即梦) directly inside Magpie (Settings → Models → Images / Video, MCP magpie-image, and OpenCode).

Capabilities

  • Image models (Seedream series): OpenAI-compatible POST /images/generations and POST /images/edits (JSON and multipart/form-data, data: / https:// URLs, image, image[], reference_images, plus response_format: "url").
  • Video models (Seedance / Vidu / Wan / HappyHorse): OpenAI-compatible POST /videos, GET /videos/{id}, and GET /videos/{id}/content.
  • Live catalog discovery: Discovers available models, ratios, resolution casings (720p vs 720P, 1.5K vs 2K), reference limits, and durations via dreamina-canvas model list --type image|video, with static catalog fallback.
  • Sign-in & quota UI: Supports reusing existing local CLI profile (default or named) or browser OAuth device-code login; reports VIP plan status and remaining/used credit tracking in auth.usage, with an embedded PNG icon in package.json.
  • Credit safety: Every generation saves a canvas node and calls node quote first; creditConfirmationToken stays strictly in memory and never hits disk or logs. Includes quote_only (default false) and credit_guard (200-credit ceiling, default true) options.
  • Model test & direct chat probes: Handles OpenAI /chat/completions and Anthropic /messages connection checks/title probes at 0 credit cost, and uses quote-first confirmation for direct chat prompts.

Prerequisites

  • Users must pre-install the local dreamina-canvas CLI (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.json and ✓ dreamina.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant