feat: add pi-ntfy NTFY notification plugin
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"_说明": "pi-ntfy 只支持 NTFY。复制为 config.json 后按需修改。",
|
||||
"_占位符": "{{status}} {{reason}} {{text}} {{title}} {{event}} {{cwd}} {{project}} {{duration}} {{session}} {{sessionId}} {{model}} {{mode}} {{thinking}} {{task}} {{summary}} {{tools}} {{host}} {{time}} {{date}}",
|
||||
"enabled": true,
|
||||
"modes": ["tui"],
|
||||
"timeoutMs": 5000,
|
||||
"shutdownTimeoutMs": 2000,
|
||||
"dedupeMs": 3000,
|
||||
"minDurationSec": 0,
|
||||
"maxTextChars": 2000,
|
||||
"debug": false,
|
||||
"titleTemplate": "[{{project}}] {{status}} · {{session}}",
|
||||
"template": "项目: {{project}}\n会话: {{session}}\n任务: {{task}}\n状态: {{status}}\n原因: {{reason}}\n摘要: {{summary}}\n耗时: {{duration}}\n模型: {{model}}\n主机: {{host}}\n时间: {{date}} {{time}}\n工具: {{tools}}",
|
||||
"events": {
|
||||
"idle": true,
|
||||
"interrupted": true,
|
||||
"needInput": true,
|
||||
"exit": false
|
||||
},
|
||||
"needInputTools": ["ask_user_question", "plan_mode_question"],
|
||||
"channels": [
|
||||
{
|
||||
"type": "ntfy",
|
||||
"name": "手机 ntfy",
|
||||
"enabled": true,
|
||||
"topic": "$NTFY_TOPIC",
|
||||
"server": "$NTFY_HOST",
|
||||
"token": "$NTFY_TOKEN",
|
||||
"priority": "default",
|
||||
"tags": "pi,computer"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user