Something11235/dsh-posterflow-ai ↗★ 1

dsh-posterflow-ai

在侧边栏添加PosterFlow生图模式启动器 适合使用PosterFlow服务的用户,可在DSH中一键播放过场并跳转至生图网站。

套件
dsh-posterflow-ai
相容性
待驗證
Cordis 依賴範圍
^4.0.2
版本
0.1.1
授權
MIT
最近更新
2026年10月2日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Something11235/dsh-posterflow-ai

配置

在你自己 profile 的 cordis.patch.yml 里按行 id 覆盖。config 是整行替换、不是深合并——没写的字段回落到 schema 默认值。

- id: dsh-posterflow-ai
  name: dsh-posterflow-ai
  config:
    targetUrl: https://www.posterflow-ai.xyz/
    buttonLabel: 开启生图模式
    openIn: new-tab        # 或 same-tab
    transition: video      # 或 none(点击后直接跳转)
    videoSource: inline    # 或 route
    muted: true
    maxWaitMs: 8000
字段类型默认含义
targetUrlstringhttps://www.posterflow-ai.xyz/过场结束后跳转的地址
buttonLabelstring开启生图模式按钮文案
openInnew-tab | same-tabnew-tab新标签页打开(不会丢掉当前会话界面)或当前页跳转
transitionvideo | nonevideo是否播放过场视频
videoSourceinline | routeinlineinline = 用产物内联的视频(一定能播);route = 用宿主 HTTP 路由(仅在页面确由 ctx.webServer 提供服务时有效)
videoFilestringassets/transition.webmroute 模式下要提供的包内文件
mutedbooleanfalse默认带声音;被浏览器自动播放策略拒绝时自动降级为静音,并在画面右上角给出「开启声音」按钮
maxWaitMsinteger 0–600008000视频最长等待;超时直接跳转,不让用户卡在过场里