WeKnora
Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
GooDAnDReaDY/dsh-image-gen
Image generation & visual processing suite for DeepSeek Harness: pluggable providers (FAL, Replicate, OpenAI, ChatGPT Plus, Grok, ComfyUI, SeaDream, Gemini), tools (remove_background, upscale_image, vectorize_image, blend_images), style presets and chat card.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:GooDAnDReaDY/dsh-image-gen
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
upscale_image, remove_background, blend_images, and vectorize_image now consistently return toLosslessJson and formatted markdown summary for text-only LLMs.extract_design_tokens, image_to_css_gradient, and check_image_contrast explicitly validate source image readability instead of silent fallback.test/tool-consistency.test.mjs covering tokenization, gradient generator, and PWA suite.🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明
|
⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.
🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version. |
lib/ now strictly meet the <= 600 line threshold: extracted lib/tools/generation-pack.js (74 lines, reduces lib/tools/generation.js to 547 lines), lib/history.js (93 lines), and lib/attachment-helper.js (82 lines, reduces lib/index.js to 557 lines). Client codebase modularized across 15 sub-modules in src/client/* (all <= 337 lines).AGENTS.md, index.md) fully untracked from Git and excluded via .gitignore and .gitattributes.--dsw-alias-* variables and color-mix(...) state tints.README.ru.md and README.zh.md to npm package files allowlist.rgba(...) and hex color literals in the Web UI (src/client/10-css.js, src/client/80-gallery.js) with native DSH theme variables (--dsw-alias-*) and dynamic color-mix(...). Badges, alerts, and modal overlays automatically adapt to light and dark themes with zero hardcoded values.generate_responsive_mockups, #173): Single product prompt generates coherent Mobile (9:16), Tablet (3:4), and Desktop (16:9) viewports in parallel via asyncPool concurrency limit (3). Interactive toolview with tabbed preview navigation.generate_seamless_pattern, #178): Automated tileable background texture generation with periodic boundary condition checks and CSS tiling preview.generate_spritesheet, #177): Produces horizontal animation strips with CSS keyframe generator and multi-frame SVG previews for 2D game dev and web UI animations.lib/client.js into 15 structured fragments under src/client/* with automated build runner scripts/build-client.mjs. Preflight check FAIL=0, 179/179 automated tests passing..gitattributes with export-ignore for AGENTS.md, index.md, docs/, and .gitea/ so GitHub source archives and git archive no longer ship internal workflow files.fal- CSS class prefixes to the ig- system and bound colors to DSH theme variables via var(--dsw-alias-*, <fallback>).0600 permissions after write.listCuratedStyles; split oversized server modules — providers.js utils extracted to provider-utils.js, processing.js into processing-basic.js + processing-advanced.js. Client file split is tracked separately (#244).UpdaterSection) backed by /api/dsh-image-gen/update. Fetches the npm registry for release manifests, verifies semver differences, and securely triggers dsh plugin add @goodandready/dsh-image-gen@latest restricted to loopback and private LAN connections.Config schema in lib/index.js with client UI fields (lib/client.js), exposing autoEnhancePrompt and defaultStylePreset under the ✨ Enhancer tab.testProviderConnection for Replicate (/v1/models), Google Gemini (/v1beta/models), and ByteDance Seedream with timeout protection and live roundtrip latency tracking.en and zh localization bundles embedded in core package; modularized Russian language support via goodandready/dsh-russian-lang per DSH plugin guidelines. Exactly 0 Cyrillic characters in product code (lib/).role="tablist", role="tab", aria-selected, aria-controls, role="tabpanel", aria-describedby, and role="alert".Maximum update depth exceeded) in FalSettingsCardController and CardForm.prototype.bind. Store snapshots are referentially cached during render cycles (Object.is(prev, next) === true), completely preventing infinite re-render loops in React 18 / useSyncExternalStore.@deepseek-ai/dsh-client-store (runtime.createSnapshotStore) paired with a robust standalone snapshot caching fallback.test/client-syntax.test.mjs verifying snapshot immutability across repeated reads, single-notification publish triggers, and clean listener lifecycle.FalImageCard and Gallery. Fine-tune variations with a continuous creativity / denoising strength slider (0.05 to 0.95), preset quick buttons ("Subtle 0.25", "Creative 0.65"), and prompt modifier guidance.smart_crop_image): Instant lossless aspect ratio framing for social and responsive surfaces (1:1, 16:9, 9:16, 4:3, 3:2, 2:3) supporting focal heuristics (auto_focus, center, rule_of_thirds, letterbox) via zero-dependency pure Node.js SVG vector raster wrapper.export_asset_pack): Production-ready automated brand asset generation producing SVG favicons, PWA application icon suite (icon-192.svg, icon-512.svg), manifest.webmanifest, high-resolution OpenGraph social banner preview (og-card.svg at 1200×630), and an asset manifest catalog (catalog.json).zh and en UI dictionary integration; Russian locale registered via goodandready/dsh-russian-lang.sidebarRightTabs and sidebar.right.pane.tab), betterSidebar, and a quick-access utility chip in the conversation header (conversation.session.header.utilities). Browse past generations, inspect metadata, copy prompts, and export links without cluttering the chat.cinematic, photorealistic, anime, minimalist_vector, isometric_3d, analog_film, cyberpunk, pixel_art, oil_painting, claymation), optional autoEnhancePrompt setting, and style_preset tool parameter.assemble_image_grid): Stitch 2 to 4 images into clean side-by-side, 2x2 grid, or vertical collage comparison graphics via pure Node.js SVG raster rendering, zero heavy external binaries (< 250 KiB package size).palette_colors (hex color array) into generate_image to mathematically bias the prompt and negative prompt toward your exact brand color palette with automated WCAG contrast validation.edit_image: Added mask_image (alias for mask) and fine-grained strength (0.0 to 1.0) control for localized inpainting in Fal.ai and custom gateways.zh and en localization coverage in Web UI, with Russian translation registered via goodandready/dsh-russian-lang.count > 1, prompts array) and generate_image_pack multi-ratio workflows now execute concurrently with a concurrency limit (concurrency: 3) via asyncPool, reducing generation wait times by up to 3x.pollStatus and queue runners (Fal.ai, ComfyUI), inspecting generation status immediately on first attempt and shaving 1–1.5s off fast generative workflows.isFatalClientError, enabling immediate, clean fallback transitions without fruitless retry loops.test/batch5-speed-quality.test.mjs, bringing total test coverage to 136 automated unit tests (100% pass).apply(): host lifecycle in lib/index.js is now a thin cordis entry (~650 lines). Tool definitions live in lib/tools/{generation,processing,editing,inspect,frontend}.js behind lib/register-tools.js.ctx.effect: each of the 15 tools registers in its own effect (dsh-image-gen: tool <name>) for clean unload/reload disposal.AGENTS.md and index.md document architecture, constraints, and the test matrix (internal workflow files — not shipped in the npm package).docs/design/DESIGN.md no longer advertises the removed HistoryGallery UI (#203).test/lifecycle-structure.test.mjs asserts modular layout, labeled effects, and meta files. Suite: 132 unit tests.@goodandready/dsh-image-gen is a premier graphic generation and visual processing suite for DeepSeek Harness. It equips autonomous agents with an extensible set of tools for image generation, transformation, background removal, upscaling, vectorization, multi-reference blending, and quality inspection across 8 generative backends.
Parameters chunks in standard format.generate_image: Generate images with pluggable providers, seeds, aspect ratios, and style presets.edit_image: Targeted inpainting and modification with automatic session reference resolution (#142, #144, #145).vary_image: Controlled variation generation preserving composition (#143, #144).remove_background: Extract subject with transparent PNG output (FAL BiRefNet / Rembg).upscale_image: 2x / 4x super-resolution with clarity reconstruction.vectorize_image: Convert raster graphics to clean scalable SVG vectors with palette quantization.blend_images: Multi-reference composition mixing.generate_image_pack: Simultaneous multi-aspect ratio rendering with graceful partial recovery.generate_responsive_mockups (#173): One shared product prompt rendered as Mobile (9:16), Tablet (3:4) and Desktop (16:9) UI mockups in parallel. Keeps style/palette coherent across viewports, saves mockup-mobile.png / mockup-tablet.png / mockup-desktop.png, and shows a tabbed viewport preview in chat.compare_images: Pixel-level visual difference ratio comparison.inspect_image_quality: Automated visual audit, Laplacian sharpness scoring, and defect detection.extract_design_tokens: Extract CSS Variables, Tailwind color palettes, and W3C Design Tokens from concept art (#172).image_to_css_gradient: Generate lightweight pure CSS Mesh / Radial / Linear gradients (< 1KB) from image colors (#174).check_image_contrast: Evaluate background luminance and WCAG 2.1 AA/AAA contrast for text with scrim suggestions (#175).optimize_vector_svg: Clean and sanitize SVG, normalize viewBox, and export ready-to-use React TSX components (#176).generate_pwa_icon_suite: Generate full PWA icon sets, HTML meta tags, and web app manifest.json (#190).ctx.effect for proper disposal on reload.peerDependencies (host-webserver, settings, llm, system-prompt).FalImageCard.[object Object] from appearing in provider refusal chains, extracting deep .message, .detail, and .error objects cleanly.codex: codex: ... prefixes.FAL_API_KEY and FAL_KEY in credentials and environment.16:9, 3:2, 9:16, 2:3) to appropriate subscription dimensions (1536x1024 / 1024x1536) instead of falling back to default square 1024x1024.saveAttachmentSafe across all 8 visual tools (generate_image, variations, remove_background, upscale_image, blend_images, etc.). When running in headless CLI mode or when the attachment store is unavailable, outputs are safely written to disk with full file paths and data references rather than crashing tool execution./dsh-image-gen/image route against malformed or NaN parameters (b, w, h), cleanly responding with HTTP 400 or 404 without leaking internal system traces.extractComfyNodeErrors to parse node execution errors from /history/{pid} status responses, immediately reporting root-cause node diagnostics rather than timing out.formatErrorMessage, eliminating raw JSON or [object Object] artifacts on 4xx/5xx API responses.test/batch4-hardening.test.mjs, expanding test coverage to 128 automated unit tests (100% pass).loopGuardLimit: 0 (configured to disable protection) enforced a limit of 1 due to Math.max(1, limit). Setting limit to 0 now properly bypasses loop checks.r8_...) and Google Gemini API keys (AIza...) in sanitizeErrorAndLogs.getCachedGeneration so that metadata write contention does not discard valid image bytes on cache hits.resolveConversationImage preventing OOM crashes on huge files.vectorize_image now registers the SVG in ctx.attachments and provides url, enabling interactive preview in tool.call.toolview.optimizeSvgContent rejecting non-SVG strings with descriptive errors.assertBudgetAvailable to handle string/undefined/NaN values safely.test/batch3-quality.test.mjs expanding suite to 126 automated tests (100% pass).dsh-clinebot unified design system. Added top quick stats row (.ig-grid-4, .ig-stat-box) showing active provider, default specs, safety/loop guard, and daily budget/cache status. Integrated status badges (.ig-badge-ok/warn/bad).ErrorBoundary with retry capability, preventing any component render crash from affecting DSH core UI.Config schema in lib/index.js, staged FIELDS in lib/client.js, and localization dictionaries (en/ru). Exposes controls: qualityGate, dailyBudgetUsd, loopGuardLimit, diskCache, subscriptionQuality, cacheBySeed, cacheByPrompt.tool.call.toolview for all 8 visual tools (generate_image, edit_image, vary_image, blend_images, generate_image_pack, remove_background, upscale_image, vectorize_image).trackAndAssertLoopGuard, assertBudgetAvailable, and sanitizeErrorAndLogs error masking across edit_image, vary_image, blend_images, remove_background, and upscale_image. Added seedreamBaseURL support.Settings → Plugins → Plugin settings section (settings.plugin.item slot). Removed the legacy fallback to settings.section that previously caused duplicate entries in the top-level sidebar navigation.registerSlotWhenReady): Implemented robust deferred injection via ctx.slots.inject ensuring the settings card safely mounts when the parent settings container is rendered, eliminating timing collisions at startup.const hPrompt) in checkCache within lib/index.js which could prevent plugin initialization on strict Node.js runtimes. Added automated syntax check across all source modules to test suite.dsh-vision-bridge hook; performs silent re-rolls (up to 2 attempts) for blank, corrupted, or solid frames before returning results.~/.dsh/storages/dsh-image-gen-spend.json, dispatch to dsh-cost-meter, and hard daily budget enforcement via dailyBudgetUsd.Bearer sk-...abcd), with 0600 file permission enforcement.force: true bypass.booleanField spec in client runtime that prevented the settings configuration pane from rendering in DSH Web UI. All configuration fields (providers, model identifiers, API credentials, style presets, LLM enhancer, timeouts, cache retention) render cleanly.registerFirst helper with graceful fallback between settings.plugin.item and settings.section.fal (Default): FAL.ai queue for FLUX.1, SDXL, Clarity Upscaler, and BiRefNet.replicate: FLUX and SDXL models via Replicate API.custom: OpenAI-compatible endpoint (DALL-E 3, SiliconFlow, Together AI, local gateways).codex: ChatGPT Plus/Pro subscription generation via dsh-subscriptions (OAuth).grok: Grok Imagine subscription generation via dsh-subscriptions (OAuth).local: Local ComfyUI workflow execution or Automatic1111 web API.seedream: ByteDance SeaDream generative API.gemini: Google Imagen 3 via GenAI API.dsh plugin --profile web add @goodandready/dsh-image-gen
MIT © GooDAnDReaDY
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: image-generation。