reactive-resume
reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:1215chen/dsh-plugin-task-notify
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
把 DSH 的任务完成、失败和授权请求推送到安卓手机,并在 DSH 左侧栏里配置
中文 | English
AI 生成声明:本项目的大部分代码、文档和测试由 AI 编程助手生成,维护者已进行审查、运行和修正。
DSH 任务通知是一个自托管的手机通知方案:DSH 每轮任务结束、执行失败,或弹出工具授权请求时,把结果推送到安卓手机。
两条通道可以同时开启:
不依赖 FCM、ntfy、账号体系或第三方推送服务。
flowchart LR
D["DSH Desktop<br/>dsh-plugin-task-notify"] -->|"LAN: HTTP 8765"| P["Android App"]
D -->|"Cloud: HTTPS POST"| R["Self-hosted relay"]
R -->|"SSE stream"| P
P --> N["Notification + local history"]
U["左侧栏「通知」面板"] -.->|"本机回环 HTTP"| D
| 功能 | 说明 |
|---|---|
| 任务通知 | 完成、失败、取消、中断、输出上限等回合结束状态 |
| 授权通知 | 监听 approval/asked,标题「需要授权」,正文包含工具名和原因 |
| 双通道 | 局域网直连和云端中继可同时开启,任一路成功即视为送达 |
| 左侧栏设置面板 | DSH 左侧栏新增「通知」入口,可直接改局域网令牌、云服务器地址/设备/令牌、证书指纹,并可发送测试通知 |
| 去重 | 同一 payload.id 在 10 分钟窗口内只保留一条通知和一条历史 |
| 本地历史 | 最近 50 条,点按查看详情,点通知自动定位 |
| 自托管云端 | 无第三方推送;SSE 断线重连、离线队列、Last-Event-ID 补发 |
| 证书信任 | 手机按「首次确认指纹」固定服务器证书,不需要重新打包 APK;插件可用指纹或 CA 文件校验同一张证书 |
| 项目 | 要求 |
|---|---|
| 电脑 | Windows,已安装 DSH |
| 手机 | Android 8.0+(minSdk 26) |
| 局域网 | 手机和电脑在同一 Wi-Fi / 网段 |
| 云端(可选) | Ubuntu 等 Linux 服务器、可访问的 TCP 端口、HTTPS 证书 |
从 Releases 下载:
DSH-Task-Notify-1.2.2.apk:安卓 Appdsh-plugin-task-notify-1.2.2.tgz:DSH 插件SHA256SUMS.txt:校验值192.168.1.23:8765。使用 ADB 安装:
adb install -r release\DSH-Task-Notify-1.2.2.apk
从 1.2.1 升级:1.2.2 使用了新的签名密钥,Android 不允许覆盖安装不同签名的 APK。请先卸载旧版(会清空 App 内的历史与设置),再安装 1.2.2。签名密钥与密码在本地
apk\keystore\和apk\keystore\password.txt,已被.gitignore排除,请自行备份。
dsh plugin --profile desktop add "$env:USERPROFILE\Downloads\dsh-plugin-task-notify-1.2.2.tgz"
也可以在 DSH 的插件页面选择本地的 dsh-plugin-task-notify-1.2.2.tgz。
安装后确认 profile 的 package.json 包含:
"dependencies": {
"dsh-plugin-task-notify": "file:vendor/dsh-plugin-task-notify-1.2.2.tgz"
}
并且 dsh.profile.bundles 包含 dsh-plugin-task-notify。
设置保存在 %USERPROFILE%\.dsh\storages\task-notify\settings.json,只在本机回环地址可读可写;它覆盖 profile 里的同名配置,删除该文件即可回到 cordis.patch.yml 的值。
云端是完全可选的。需要手机和电脑不在同一网络时,可以部署一个单用户中继:
部署、证书、令牌轮换和新增手机见:
.
├─ plugin/ DSH 插件源码(宿主 lib/index.js + 浏览器 lib/client.js)
├─ apk/ Android 源码、资源、JVM 测试
├─ cloud/ 云端中继、systemd/Docker 配置
├─ docs/
│ ├─ setup.md 从服务器到手机的完整配置过程
│ ├─ protocol.md LAN HTTP、云端 SSE、通知 JSON
│ └─ device-test-report.md
├─ release/ 已签名 APK、插件包、校验值
├─ build-apk.cmd 一键打包 APK
└─ 使用说明.md 中文使用与排错手册
需要:
-encoding UTF-8 编译源码)仓库不包含 _sdk/、签名密钥或构建产物。准备 SDK 后:
$env:DSH_KEYSTORE_PASSWORD = "your-keystore-password"
.\build-apk.cmd
首次构建会在 apk\keystore\ 生成本地签名密钥;该目录已被 .gitignore 排除。
APK 输出到 release\DSH-Task-Notify-1.2.2.apk。
更详细的构建、测试和签名说明见 apk/README.md。
token。https://(只有本机回环地址允许 http://);App 已关闭明文流量。cloud.fingerprint 或 cloud.caFile 校验同一张证书。/etc/dsh-notify.env 的 TOKEN,重启中继,再在 DSH 左侧栏和 App 里更新。includePreview: false。欢迎提交 Issue 和 Pull Request:
# 插件集成测试(需要先启动 JVM 接收端)
node apk/test/plugin-integration.mjs
# 设置面板 API 测试(纯 Node)
node plugin/test/settings-api.mjs
# 云端中继协议测试(需要本地 relay)
node cloud/test-relay.mjs
本项目的大部分代码、文档、测试和发布说明由 AI 编程助手生成,维护者负责需求、审查、真机测试和修正。
AI 输出可能包含错误、过时信息或不适合生产环境的默认值。使用前请自行审查,尤其是:
如果你发现 AI 生成内容中的问题,欢迎提交 Issue 或 Pull Request。
插件与 App 源码采用 MIT License。Android SDK 工具仅用于本地构建,不随交付物分发。
AI-generated disclosure: Most of the code, documentation and tests in this project were generated by AI coding assistants, then reviewed, run and corrected by the maintainer.
Push DSH task completion, failure and approval requests to an Android phone. The desktop plugin also adds a Notifications entry to the DSH left sidebar where the LAN token and the cloud relay settings can be edited without touching YAML.
http:// is refused except for loopback testing.flowchart LR
D["DSH Desktop<br/>plugin"] -->|"LAN HTTP 8765"| P["Android App"]
D -->|"HTTPS POST"| R["Self-hosted relay"]
R -->|"SSE"| P
P --> N["Notification + history"]
| Feature | Description |
|---|---|
| Task events | Completed, failed, cancelled, interrupted, token limit |
| Approval | approval/asked → “Approval required” with tool name and reason |
| Dual channel | LAN and cloud can be enabled together |
| Sidebar settings | LAN token, relay URL/device/token, certificate fingerprint, test notification |
| Dedupe | The same payload.id is delivered once in a 10-minute window |
| History | Last 50 notifications, tap to view details |
| Self-hosted cloud | SSE reconnect, offline queue and Last-Event-ID replay |
| Trust | Phone pins the relay certificate; plugin pins the same fingerprint or CA file |
Download the latest APK and plugin from Releases.
Install the APK, grant notification permission and allow background activity. On vivo/iQOO also allow high background power consumption.
Install the desktop plugin:
dsh plugin --profile desktop add "$env:USERPROFILE\Downloads\dsh-plugin-task-notify-1.2.2.tgz"
Restart DSH. The left sidebar now has a Notifications entry (通知).
LAN only needs the phone and desktop on the same Wi-Fi. For cloud, fill in the relay URL, device id, token, click Get fingerprint, then Use this fingerprint and save.
Verify with the Send test notification button or the phone_notify tool.
Detailed server/CA/token setup: docs/setup.md. Relay operations: cloud/README.md.
Requirements: JDK 17+, Android build-tools 34, platform android-34 and Node.js 22+.
$env:DSH_KEYSTORE_PASSWORD = "your-keystore-password"
.\build-apk.cmd
The APK is written to release\DSH-Task-Notify-1.2.2.apk. The signing key and _sdk/
are git-ignored. Version 1.2.2 uses a new signing key, so a 1.2.1 installation must be
removed first (Android refuses an update signed by a different key).
includePreview: false if needed.Most of the code, documentation, tests and release notes in this project were generated by AI coding assistants. The maintainer owns the requirements, review, real-device testing and fixes.
AI output can contain mistakes, stale information or unsafe defaults. Review it before production use, especially cloud deployment, certificates, tokens, Android signing and the security boundary between LAN and cloud.
MIT. Android SDK tools are only used for local builds and are not distributed.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: self-hosted。