Files
pi-ntfy/config.example.json
T
杨豪 6fc9f228a8 feat: default to all modes, switch mode filter from whitelist to excludedModes blacklist
- NotifyConfig.modes (whitelist) → excludedModes (blacklist, default [] = push everywhere)
- valid modes are tui/json/rpc/print (pi ExtensionMode); invalid entries ignored with warning
- legacy "modes" key is ignored with a deprecation warning
- /ntfy status shows 模式: 全部(排除: json)
- migrate local config: modes array → excludedModes: []
2026-10-08 14:16:48 +08:00

34 lines
1.4 KiB
JSON

{
"_说明": "pi-ntfy 只支持 NTFY。默认所有工作模式(tui/json/rpc/print)都会推送;excludedModes 仅列出不需要推送的模式,例如 [\"json\"] 可让 pi --mode json -p 的子代理保持安静。复制为 config.json 后按需修改。",
"_占位符": "{{status}} {{reason}} {{text}} {{title}} {{event}} {{cwd}} {{project}} {{duration}} {{session}} {{sessionId}} {{model}} {{mode}} {{thinking}} {{task}} {{summary}} {{tools}} {{host}} {{time}} {{date}}",
"enabled": true,
"excludedModes": [],
"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"
}
]
}