EN 中文

# Push Notifications via Webhooks

# 推送通知 — Webhook 桥

Push cron completions, autopilot results, and long-turn notifications to your phone.

将 cron 任务完成、autopilot 结果、长时间交互回合通知推送到你的手机。

## Supported Channels

## 支持的渠道

Format | 格式 | Purpose | 用途 | Example Service | 示例服务
--- | --- | --- | --- | --- | ---
`ntfy` | ntfy.sh or self-hosted | ntfy.sh 或自托管 | ntfy.sh
`slack` | Slack Incoming Webhook | Slack Webhook | Slack
`discord` | Discord Channel Webhook | Discord Webhook | Discord
`feishu` | Feishu / Lark Bot | 飞书自定义机器人 | Feishu / Lark
`feishu-flow` | Feishu Flow trigger | 飞书 Flow 触发器 | Feishu Flow
`template` | Custom JSON template | 自定义 JSON 模板 | Any JSON POST webhook
`raw` (default) | Raw JSON payload | 纯 JSON 负载 | Generic

## Configuration

## 配置方法

Edit `~/.seek/config.json` (create if not exists):

编辑 ~/.seek/config.json：

    {
      "push_webhooks": [
        { "url": "https://ntfy.sh/your-topic",  "format": "ntfy" },
        { "url": "https://hooks.slack.com/...",  "format": "slack" },
        { "url": "https://discord.com/api/...", "format": "discord" }
      ]
    }

### Per-webhook options

### 配置项详解

Field | 字段 | Type | 类型 | Description | 说明
--- | --- | --- | --- | --- | ---
`url` | string | Webhook endpoint URL | Webhook 地址
`format` | string | Format name from table above | 上述格式名
`events` | [string] | Subscribe to specific events (default: all) | 订阅特定事件（默认全部）
`devices` | [string] | Target device IDs for push | 目标设备 ID

### Event types

### 事件类型

- cron.completed — a scheduled job finished
- cron.completed——定时任务完成
- goal.completed — a goal run finished (met/capped/stalled/error)
- goal.completed——goal 运行结束
- session.completed — an interactive TUI turn that ran over `session_notify_seconds`
- session.completed——交互回合持续超过 session_notify_seconds

### Global relevant config

### 全局相关配置

    {
      "session_notify_seconds": 60  // Default 60s. 0 = disable session push.
    }

Design: PRD feature-mobile-push.md

设计文档：PRD feature-mobile-push.md