@dickpy/dsh-oil-slide
v0.2.9
Published
Oil Slide plugin for DeepSeek Harness with a Studio-aligned design draft gallery, live HTML slide canvas, offline HTML export, and editable native PPTX export
Maintainers
Readme
@dickpy/dsh-oil-slide
Oil Slide plugin for DeepSeek Harness. Review an outline, pick from 1–3 design samples, then download the image PPTX. Generate an editable PPTX separately when you need native text and shapes. The sidebar also includes the existing HTML preview and export tools.
在 DSH 右侧面板审阅大纲、选择实际设计稿、下载纯图版和按需生成可编辑版。在「PPT 素材库」保存企业 Logo、产品图和参考演示文稿,大纲阶段选用。Logo 默认在每页右上角,可调整位置、大小和应用页面,可编辑版中能单独移动或替换。
「生图设置」支持自定义 API、多渠道、模型检测与备用顺序。项目首页
Requirements
- DeepSeek Harness:
>=0.2.1-rc.2 <0.3.0-0(Web UI / Desktop profile, e.g.web) - Node.js:
>=22.19.0 - Staged image PPTX: Python
3.10+, Pillow, requests, and python-pptx - Optional editable reconstruction: The bundled
editpptCLI, installed fromoil-slide/vendor/image-to-editable-ppt/cli. See setup and verification. - Optional HTML preview and compilation: Playwright with Chromium. Run
oil_slide_doctorin DSH for the environment check.
Install and update
In the desktop Plugins page, enter @dickpy/dsh-oil-slide in the install field.
After enabling the plugin, open a conversation, expand the right sidebar and select Oil Slide from the + menu.
For Web / CLI, use your existing profile:
dsh plugin --profile web add @dickpy/dsh-oil-slideCheck the installed package for available versions in Plugins, or use the Oil Slide index in Discover. If Discover is hidden, enable the experimental Custom plugin indexes bundle. DSH handles npm updates for the same package. DSH plugin index guide
Migrate an existing Git installation
When the npm package is available, disable the old dsh-oil-slide bundle, install
@dickpy/dsh-oil-slide in the same DSH profile, then uninstall the legacy bundle.
Both packages read image channels and brand presets from the same local directories.
Project drafts and exports stay in the workspace. Restart when DSH prompts you.
Legacy Git installation
Until the first npm version is available, install the pinned Git package. In the desktop install dialog, paste the quoted package spec without the quotes.
dsh plugin --profile web add "git+https://github.com/dickpy/oil-slide.git#6d023e625138a9811541482268bc71d2d79dc32c&path:/dsh-plugin"Publishing on npm
For the first release, publish the verified tarball as the npm account that owns
the @dickpy scope. In the npm package's Trusted Publishers settings, link
dickpy/oil-slide and release-npm.yml for direct publishing with GitHub Actions.
Afterward, bump the plugin version on main or run Release Oil Slide to npm
from the Actions page. The workflow builds and checks the tarball, publishes it
and records the version in the Discover index once npm returns it.
What It Provides
- Single-source Skill registration: Registers the bundled
oil-slideskill (SKILL.md,references/,scripts/) viactx.skills.registerProvider. - Studio-aligned right-sidebar workspace (
Oil Slide) with automatic Chinese / English UI via DSH locale:- Drafts Gallery (
设计稿): 16:9 design draft grid, exploration pool (assets/explore/),2×2overview, dark frosted lightbox with clickable page jump bar, citation copy, and one-clickEdit slideprefill into the DSH composer. - Live HTML Canvas (
幻灯片): Scaled 1920×1080 (and portrait 3:4) deck preview with inlined local assets, lazy-mounted bottom thumbnail strip, split-curtain / full-page draft comparison, and fullscreen presentation mode. - One-click Export: Download offline single-file standalone
.html(with interactive slide navigation intact) or compile & open native editable.pptx.
- Drafts Gallery (
- Host tools:
oil_slide_doctor: Checks Python 3.10+, Pillow,python-pptx, Playwright/Chromium,oil-slidescripts, and custom image provider configuration.oil_slide_compile_pptx: Compilesweb/index.htmlinto an editable.pptxviascripts/html_to_pptx.py --audit(with optional background job execution).oil_slide_open_preview: Expands and refreshes the right-sidebar panel on thereferenceorcanvastab.
Staged PPTX creation
Ask the DSH agent to create a PowerPoint with the Oil Slide skill. Once the agent creates the outline, the panel lets you choose the sample slide and 1–3 design images, then request the next step from the same conversation. In the outline editor, edit titles and body text, insert, delete or reorder pages and select a saved brand. A preset can include logo, palette, typography, footer and a reference PPTX. In step 3, drag a rectangle to propose a local image edit and compare before accepting. Updating the editable PPTX rebuilds changed slides and retains the other native slides from the project's previous editable export. The selected image becomes the exact final image for that slide. The original image PPTX is available first; optional conversion uses the pinned editppt skill with native object and page validation. Both PPTX files remain separately accessible through the DSH file viewer. Choosing a design answers its matched DSH choice directly. Revise a candidate, compare and restore past designs, or request a fresh set. The four-step sidebar keeps navigation and downloads in place. Compare actual design samples side by side, then review slide images inline with thumbnails and an enlarged view. In the optional editable step, inspect native objects and drag the divider to compare the original with the editable rendering, including in the enlarged view. Update a single changed page or all changed pages. Revise any slide, optionally restyle the whole deck from the sample, and access previous exports. An installed PPTX renderer adds a preview of the exported editable file. Other workflow actions use the active conversation. If its composer already contains text or attachments, the request is copied instead, without overwriting your draft. See the workflow for requirements.
Image API settings
Open Oil Slide → Image settings → Add provider in the sidebar. Enter the API root (including its version prefix) and optional API key, then use Detect models to read both GET /models and GET /models?kind=image. A base without a version also checks the same prefix under /v1. Detection leaves the configured generation URL in place. Choose an image candidate, search All models for deployment aliases, or add an exact ID manually. The catalog does not verify that a model supports image generation or edits.
Use Model order to select the default and order backup models across providers. On connection failures, unavailable models, rate limits, and certain other provider failures, the renderer tries the next configured model with the same prompt and references. Each provider bills its own requests. Samples, final slides, and reconstruction assets share the same settings. Saved keys stay on the DSH host. Install Pillow and requests in the Python environment used for rendering.
Development
pnpm install
pnpm sync:assets
pnpm checkpnpm release:build runs scripts/sync-assets.mjs and the build, writing bundled-assets/ (the oil-slide skill and brand assets) and lib/. Both are committed so the plugin installs straight from npm or GitHub with no build step; rerun it and commit after changing the skill or the plugin source.
For a new release, bump the version in dsh-plugin/package.json, run the
release build, and push the commit that contains both the version and the
artifacts. Then add that version, its full commit SHA, publish time, and
matching engines.dsh to the release index. DSH
compares versions and uses the indexed commit for installation and rollback.
