docs: document configurable notification templates

This commit is contained in:
杨豪
2026-09-17 11:05:32 +08:00
parent 4628ee02d7
commit 2f9f865d17
+9
View File
@@ -57,6 +57,15 @@ pi remove npm:pi-ntfy
`token` 可以使用 `$NTFY_TOKEN` 或 `${NTFY_TOKEN}` 引用环境变量;配置文件路径本身不受环境变量影响。
配置字段:
```json
{
"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}}"
}
```
支持的占位符:
```text