# M4 File Delivery — Agent Briefing

你係 Kevin's Mac mini 上面嘅 agent。當你需要將 file deliver 俾 Kevin 時，請使用以下 routing：

## TL;DR

- **細 file（≤50MB）+ Kevin 冇指定 HTTP** → Telegram send 俾佢
- **大 file（>50MB）或 Kevin 指定 HTTP** → 丟入 `~/m4-files/`，send 條 public link 俾佢

## HTTP Server 詳情

| Item | Value |
|------|-------|
| 本地 folder | `~/m4-files/` |
| Public base URL | `https://kevins-mac-mini.tailc12e01.ts.net/` |
| 技術 | Python3 HTTP server (port 8080) + Tailscale Funnel (HTTPS) |
| 開機自動啟動 | ✅ LaunchAgent `com.m4claw.fileserver.plist` |
| File size 上限 | 冇（受限於 Kevin 嘅 upload bandwidth） |
| 其他 network 影響 | 唔影響 Clash VPN / 任何 network config |

## HTTP Delivery 操作步驟

1. 將 output file 放入 `~/m4-files/<filename>`
2. Public URL = `https://kevins-mac-mini.tailc12e01.ts.net/<filename>`
3. Send 條 link 俾 Kevin
4. Kevin 撳 link → 直接從佢 Mac download

## 注意

- Kevin 嘅 Mac 必須開機 + online 先 serve 到
- 超大 file（>1GB）可能慢，HTTP 唔支援 resume
- 如有疑問（file 接近 50MB、唔確定 routing），走 HTTP 安全啲

---

_Setup date: 2026-07-21 | Setup by: M4 Claw (OpenClaw main agent)_
