@picgo/dsh-plugin
基于PicGo的图片与文件上传插件 适合需要在会话中频繁上传图片至个人图床的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PicGo/dsh-plugin說明文件
閱讀完整 README ↗Configuration
Every field has a working default. Override them from your profile's cordis.patch.yml:
- id: picgo
name: '@picgo/dsh-plugin'
config:
silent: true
timeoutMs: 120000
| Field | Default | Meaning |
|---|---|---|
configPath | '' | PicGo config file; empty uses PicGo's own default (~/.picgo/config.json) |
silent | true | Suppress PicGo's console output and its picgo.log writes |
timeoutMs | 120000 | How long to wait for one upload |
registerSkill | true | Register the bundled picgo-upload skill |
registerCommand | true | Register the /picgo command |
announceSignIn | true | On startup, point a signed-out PicGo Cloud user at /picgo login |
gui | see below | How to reach a running PicGo desktop app |
gui controls the desktop-app route described in Upload routes:
| Field | Default | Meaning |
|---|---|---|
gui.mode | auto | auto uses the app when it answers; off never tries; only requires it rather than uploading to a different host |
gui.host | 127.0.0.1 | Where the app's upload server listens |
gui.port | 36677 | " |
gui.secret | '' | Auth secret, if you enabled one in the app. Empty falls back to $PICGO_SERVER_SECRET |
gui.probeTimeoutMs | 1500 | How long to wait for the app to answer a heartbeat |
gui.probeTtlMs | 5000 | How long a heartbeat result is reused, so a multi-file upload does not re-probe per file |
gui.timeoutMs | 0 | Upload deadline for this route; 0 inherits timeoutMs |
A patch replaces a row's entire config rather than merging keys, so restate every field you want to keep. Within gui, unset keys still fall back to the defaults above — overriding gui.mode alone is fine.