xinvxueyuan/cordis-plugin-local-dream ↗★ 0
@xinvxueyuan/cordis-plugin-local-dream
Cordis (DeepSeek Harness) plugin: drive the Android Local Dream Stable Diffusion app over its embedded HTTP backend — LAN-first, USB/adb fallback — with automatic device connection management 适合需要调用安卓手机本地 Local Dream 进行 AI 绘图的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置(Config)
| 字段 | 默认 | 说明 |
|---|---|---|
mode | auto | auto:先 LAN 再 USB;lan / usb 强制单一传输 |
host | `` | 手机局域网 IP/主机名;空 = 自动发现 |
port | 8081 | 手机端生成后端端口 |
controlPort | 8808 | 手机端 Device Link 控制平面端口;0 = 关闭控制平面;主机模式本身即强制 LAN 绑定,不需要打开「允许局域网访问」 |
localPort | 0 | USB 转发本地端口;0 = 优先 8081,被占用则挑空闲端口 |
adbPath | `` | 显式 adb 可执行文件(指定即唯一候选,不做回退) |
bundledAdbDir | `` | 覆盖内置 platform-tools 目录 |
serial | `` | 目标设备 serial;多设备时必须显式指定(插件绝不猜测) |
autoSelect | true | 后端未运行时,自动经 8808 POST /select 启动它 |
model | `` | 要激活的 model_id;空 = 用 /models 目录里的第一个 |
selectWidth | 0 | /select 宽度;0 = 由模型 generation_size 推导,再兜底 512 |
selectHeight | 0 | /select 高度;同上 |
waitTimeoutMs | 120000 | 等不到连接的总预算(0 = 快速失败) |
pollIntervalMs | 2000 | 等待阶段的轮询间隔,也是控制平面状态轮询间隔 |
retryCount | 3 | 调用中途断连的重连重试次数 |
retryDelayMs | 2000 | 重连退避基数(retryDelayMs * 2^n + 抖动,封顶 30s) |
probeTimeoutMs | 5000 | 单次探活/控制请求超时 |
requestTimeoutMs | 300000 | 单请求的静默预算(SSE 按块判定,不是整体上限) |
discovery.enabled | true | 是否扫本地网段找手机 |
discovery.concurrency | 64 | 扫描并发 TCP 连接数 |
discovery.connectTimeoutMs | 400 | 单次连接超时 |
discovery.maxHosts | 1024 | 单次扫描主机上限(防失控) |
discovery.subnets | [] | 显式 CIDR 列表,覆盖按网卡推导的 /24 |
outputDir | `` | PNG 输出目录;空 = /outputs/local-dream |
assertConfig 会拒绝:本该为正整数却非正的值、port/controlPort/localPort 超出 0–65535、未知 mode。
2) 创建 annotated + GPG 签名 tag(私钥仅在本机使用;本机需能完成 GPG 签名)
git tag -s v0.1.1 -m "v0.1.1"