Files
pi-ntfy/config.example.json

34 lines
1.2 KiB
JSON

{
"_说明": "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": "Agent",
"server": "https://n.ipao.vip",
"token": "$NTFY_TOKEN",
"priority": "default",
"tags": "pi,computer"
}
]
}