dsh-post-draft-auto

本地出稿工作台(DSH 插件):post_facts 先把带 sourceUrl 的事实抓回来(bioRxiv/medRxiv DOI 元数据、npm 包、线上版本与发行说明、任意网页),模型再写英文主推与中文回复(各自标 280 计权字数)并生成 1200×675 卡片(出 PNG 需本机 headless Chrome,没有只给 SVG)。右侧栏「出稿」页签与本地工作台可列出草稿、按纯文本复制两稿、标记已发;标记只追加本地台账,真正发到 X 仍由你手动完成——没有 X API、不碰凭据、零依赖。post_save 拒绝没有 facts 的稿子,正文里出现事实中查不到的数字会被记成 blocker。

插件介绍

本地出稿工作台(DSH 插件):post_facts 先把带 sourceUrl 的事实抓回来(bioRxiv/medRxiv DOI 元数据、npm 包、线上版本与发行说明、任意网页),模型再写英文主推与中文回复(各自标 280 计权字数)并生成 1200×675 卡片(出 PNG 需本机 headless Chrome,没有只给 SVG)。右侧栏「出稿」页签与本地工作台可列出草稿、按纯文本复制两稿、标记已发;标记只追加本地台账,真正发到 X 仍由你手动完成——没有 X API、不碰凭据、零依赖。post_save 拒绝没有 facts 的稿子,正文里出现事实中查不到的数字会被记成 blocker。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-post-draft-auto

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:lanechenhku/dsh-post-draft-auto

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。