Files
plugins/packages/notify/package.json
T
yetone 8adf0a7d79 notify 0.1.4: a sidebar page to edit channels and settings, and a switch that turns every push off (meili145 on X)
The page (magpie.page) edits the plugin's options without a file: add,
pause and remove channels per kind, when to send, agents, language, and an
on/off switch that saves at once (new option enabled, default true; off
sends no turn push and no sign-in push).

Run: bun test packages/notify (67 pass; the enabled test fails on the old
hook), scripts/check.mjs ok. Page tried in magpie's real window (dev build
of origin/main, sandbox HOME, plugin added from the folder) in chromium:
add ntfy channel, Save and the switch wrote plugins.json options, 5
languages at 1000px and 420px with no overflow. Not tried: WebKit (its
launch failed on mote), a real push from the page.
2026-11-11 13:13:40 +08:00

27 lines
1.2 KiB
JSON

{
"name": "@magpie-community/gateway-notify",
"version": "0.1.4",
"description": "A push to your phone or team chat when an agent's turn is done or an account is signed out: ntfy, Bark, Gotify, Server酱, Feishu, DingTalk, WeCom, Telegram or a webhook",
"type": "module",
"files": ["notify.hooks.mjs", "turn.mjs", "channels.mjs", "page/*.html", "page/*.js", "page/*.css", "README.md"],
"keywords": ["magpie", "magpie-gateway", "magpie-hooks", "notification", "ntfy", "bark", "gotify", "feishu", "dingtalk", "telegram"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/notify" },
"magpie": {
"hooks": "./notify.hooks.mjs",
"page": { "title": "Notify", "titles": { "zh": "通知", "zh-TW": "通知", "ja": "通知", "de": "Benachrichtigungen" }, "file": "page/index.html" },
"options": {
"enabled": true,
"channels": [{ "type": "ntfy", "topic": "" }],
"minMinutes": 3,
"cooldownSeconds": 30,
"errors": true,
"agents": [],
"includeText": false,
"lang": "en",
"accounts": true
}
},
"engines": { "bun": ">=1.4.2" }
}